DescribeUPhoneIpRegionsRequest.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 DescribeUPhoneIpRegionsRequest extends Request
  20. {
  21. public function __construct()
  22. {
  23. parent::__construct(["Action" => "DescribeUPhoneIpRegions"]);
  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,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
  46. *
  47. * @return string|null
  48. */
  49. public function getCityId()
  50. {
  51. return $this->get("CityId");
  52. }
  53. /**
  54. * CityId: 城市Id,通过[获取城市列表](https://docs.ucloud.cn/api/uphone-api/describe_u_phone_cities)获取
  55. *
  56. * @param string $cityId
  57. */
  58. public function setCityId($cityId)
  59. {
  60. $this->set("CityId", $cityId);
  61. }
  62. /**
  63. * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
  64. *
  65. * @return string|null
  66. */
  67. public function getProductType()
  68. {
  69. return $this->get("ProductType");
  70. }
  71. /**
  72. * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
  73. *
  74. * @param string $productType
  75. */
  76. public function setProductType($productType)
  77. {
  78. $this->set("ProductType", $productType);
  79. }
  80. }