ResetUPhoneRequest.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 ResetUPhoneRequest extends Request
  20. {
  21. public function __construct()
  22. {
  23. parent::__construct(["Action" => "ResetUPhone"]);
  24. $this->markRequired("CityId");
  25. $this->markRequired("UPhoneIds");
  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,通过[获取城市列表](#DescribeUPhoneCities)获取
  47. *
  48. * @return string|null
  49. */
  50. public function getCityId()
  51. {
  52. return $this->get("CityId");
  53. }
  54. /**
  55. * CityId: 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
  56. *
  57. * @param string $cityId
  58. */
  59. public function setCityId($cityId)
  60. {
  61. $this->set("CityId", $cityId);
  62. }
  63. /**
  64. * UPhoneIds: 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重置的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
  65. *
  66. * @return string[]|null
  67. */
  68. public function getUPhoneIds()
  69. {
  70. return $this->get("UPhoneIds");
  71. }
  72. /**
  73. * UPhoneIds: 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望重置的云手机实例 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。
  74. *
  75. * @param string[] $uPhoneIds
  76. */
  77. public function setUPhoneIds(array $uPhoneIds)
  78. {
  79. $this->set("UPhoneIds", $uPhoneIds);
  80. }
  81. /**
  82. * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
  83. *
  84. * @return string|null
  85. */
  86. public function getProductType()
  87. {
  88. return $this->get("ProductType");
  89. }
  90. /**
  91. * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
  92. *
  93. * @param string $productType
  94. */
  95. public function setProductType($productType)
  96. {
  97. $this->set("ProductType", $productType);
  98. }
  99. }