DescribeUPhoneRequest.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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 DescribeUPhoneRequest extends Request
  20. {
  21. public function __construct()
  22. {
  23. parent::__construct(["Action" => "DescribeUPhone"]);
  24. $this->markRequired("CityId");
  25. }
  26. /**
  27. * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  28. *
  29. * @return string|null
  30. */
  31. public function getProjectId()
  32. {
  33. return $this->get("ProjectId");
  34. }
  35. /**
  36. * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  37. *
  38. * @param string $projectId
  39. */
  40. public function setProjectId($projectId)
  41. {
  42. $this->set("ProjectId", $projectId);
  43. }
  44. /**
  45. * CityId: 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
  46. *
  47. * @return string|null
  48. */
  49. public function getCityId()
  50. {
  51. return $this->get("CityId");
  52. }
  53. /**
  54. * CityId: 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
  55. *
  56. * @param string $cityId
  57. */
  58. public function setCityId($cityId)
  59. {
  60. $this->set("CityId", $cityId);
  61. }
  62. /**
  63. * ServerId: 云手机服务器的资源ID。
  64. *
  65. * @return string|null
  66. */
  67. public function getServerId()
  68. {
  69. return $this->get("ServerId");
  70. }
  71. /**
  72. * ServerId: 云手机服务器的资源ID。
  73. *
  74. * @param string $serverId
  75. */
  76. public function setServerId($serverId)
  77. {
  78. $this->set("ServerId", $serverId);
  79. }
  80. /**
  81. * UPhoneIds: 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望获取信息的云手机 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。如果都不传入,则返回当前 城市 所有符合条件的云手机列表。
  82. *
  83. * @return string[]|null
  84. */
  85. public function getUPhoneIds()
  86. {
  87. return $this->get("UPhoneIds");
  88. }
  89. /**
  90. * UPhoneIds: 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望获取信息的云手机 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。如果都不传入,则返回当前 城市 所有符合条件的云手机列表。
  91. *
  92. * @param string[] $uPhoneIds
  93. */
  94. public function setUPhoneIds(array $uPhoneIds)
  95. {
  96. $this->set("UPhoneIds", $uPhoneIds);
  97. }
  98. /**
  99. * Offset: 列表起始位置偏移量,默认为0
  100. *
  101. * @return integer|null
  102. */
  103. public function getOffset()
  104. {
  105. return $this->get("Offset");
  106. }
  107. /**
  108. * Offset: 列表起始位置偏移量,默认为0
  109. *
  110. * @param int $offset
  111. */
  112. public function setOffset($offset)
  113. {
  114. $this->set("Offset", $offset);
  115. }
  116. /**
  117. * Limit: 返回数据长度,默认为200,最大200
  118. *
  119. * @return integer|null
  120. */
  121. public function getLimit()
  122. {
  123. return $this->get("Limit");
  124. }
  125. /**
  126. * Limit: 返回数据长度,默认为200,最大200
  127. *
  128. * @param int $limit
  129. */
  130. public function setLimit($limit)
  131. {
  132. $this->set("Limit", $limit);
  133. }
  134. /**
  135. * Tag: 要查询的业务组名称
  136. *
  137. * @return string|null
  138. */
  139. public function getTag()
  140. {
  141. return $this->get("Tag");
  142. }
  143. /**
  144. * Tag: 要查询的业务组名称
  145. *
  146. * @param string $tag
  147. */
  148. public function setTag($tag)
  149. {
  150. $this->set("Tag", $tag);
  151. }
  152. /**
  153. * IsAll: 是否返回全部。如果有此参数,分页不生效。
  154. *
  155. * @return boolean|null
  156. */
  157. public function getIsAll()
  158. {
  159. return $this->get("IsAll");
  160. }
  161. /**
  162. * IsAll: 是否返回全部。如果有此参数,分页不生效。
  163. *
  164. * @param boolean $isAll
  165. */
  166. public function setIsAll($isAll)
  167. {
  168. $this->set("IsAll", $isAll);
  169. }
  170. /**
  171. * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
  172. *
  173. * @return string|null
  174. */
  175. public function getProductType()
  176. {
  177. return $this->get("ProductType");
  178. }
  179. /**
  180. * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
  181. *
  182. * @param string $productType
  183. */
  184. public function setProductType($productType)
  185. {
  186. $this->set("ProductType", $productType);
  187. }
  188. }