CreateUPhoneImageRequest.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?php
  2. /**
  3. * Copyright 2022 UCloud Technology Co., Ltd.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. namespace UCloud\UPhone\Apis;
  18. use UCloud\Core\Request\Request;
  19. class CreateUPhoneImageRequest extends Request
  20. {
  21. public function __construct()
  22. {
  23. parent::__construct(["Action" => "CreateUPhoneImage"]);
  24. $this->markRequired("CityId");
  25. $this->markRequired("UPhoneId");
  26. }
  27. /**
  28. * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  29. *
  30. * @return string|null
  31. */
  32. public function getProjectId()
  33. {
  34. return $this->get("ProjectId");
  35. }
  36. /**
  37. * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  38. *
  39. * @param string $projectId
  40. */
  41. public function setProjectId($projectId)
  42. {
  43. $this->set("ProjectId", $projectId);
  44. }
  45. /**
  46. * CityId: 城市Id,通过[获取城市列表](https://cms-docs.ucloudadmin.com/api/uphone-api/describe_u_phone_cities)获取
  47. *
  48. * @return string|null
  49. */
  50. public function getCityId()
  51. {
  52. return $this->get("CityId");
  53. }
  54. /**
  55. * CityId: 城市Id,通过[获取城市列表](https://cms-docs.ucloudadmin.com/api/uphone-api/describe_u_phone_cities)获取
  56. *
  57. * @param string $cityId
  58. */
  59. public function setCityId($cityId)
  60. {
  61. $this->set("CityId", $cityId);
  62. }
  63. /**
  64. * UPhoneId: 手机实例的资源ID
  65. *
  66. * @return string|null
  67. */
  68. public function getUPhoneId()
  69. {
  70. return $this->get("UPhoneId");
  71. }
  72. /**
  73. * UPhoneId: 手机实例的资源ID
  74. *
  75. * @param string $uPhoneId
  76. */
  77. public function setUPhoneId($uPhoneId)
  78. {
  79. $this->set("UPhoneId", $uPhoneId);
  80. }
  81. /**
  82. * Name: 镜像名称。长度为2~128个英文或中文字符。
  83. *
  84. * @return string|null
  85. */
  86. public function getName()
  87. {
  88. return $this->get("Name");
  89. }
  90. /**
  91. * Name: 镜像名称。长度为2~128个英文或中文字符。
  92. *
  93. * @param string $name
  94. */
  95. public function setName($name)
  96. {
  97. $this->set("Name", $name);
  98. }
  99. /**
  100. * Description: 镜像的描述信息。长度为2~256个英文或中文字符
  101. *
  102. * @return string|null
  103. */
  104. public function getDescription()
  105. {
  106. return $this->get("Description");
  107. }
  108. /**
  109. * Description: 镜像的描述信息。长度为2~256个英文或中文字符
  110. *
  111. * @param string $description
  112. */
  113. public function setDescription($description)
  114. {
  115. $this->set("Description", $description);
  116. }
  117. /**
  118. * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
  119. *
  120. * @return string|null
  121. */
  122. public function getProductType()
  123. {
  124. return $this->get("ProductType");
  125. }
  126. /**
  127. * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
  128. *
  129. * @param string $productType
  130. */
  131. public function setProductType($productType)
  132. {
  133. $this->set("ProductType", $productType);
  134. }
  135. }