UpdateUPhoneImageRequest.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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 UpdateUPhoneImageRequest extends Request
  20. {
  21. public function __construct()
  22. {
  23. parent::__construct(["Action" => "UpdateUPhoneImage"]);
  24. $this->markRequired("ImageId");
  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. * ImageId: 云手机自定义镜像资源ID
  46. *
  47. * @return string|null
  48. */
  49. public function getImageId()
  50. {
  51. return $this->get("ImageId");
  52. }
  53. /**
  54. * ImageId: 云手机自定义镜像资源ID
  55. *
  56. * @param string $imageId
  57. */
  58. public function setImageId($imageId)
  59. {
  60. $this->set("ImageId", $imageId);
  61. }
  62. /**
  63. * Name: 镜像名称。长度为2~128个英文或中文字符。
  64. *
  65. * @return string|null
  66. */
  67. public function getName()
  68. {
  69. return $this->get("Name");
  70. }
  71. /**
  72. * Name: 镜像名称。长度为2~128个英文或中文字符。
  73. *
  74. * @param string $name
  75. */
  76. public function setName($name)
  77. {
  78. $this->set("Name", $name);
  79. }
  80. /**
  81. * Description: 镜像的描述信息。长度为2~256个英文或中文字符
  82. *
  83. * @return string|null
  84. */
  85. public function getDescription()
  86. {
  87. return $this->get("Description");
  88. }
  89. /**
  90. * Description: 镜像的描述信息。长度为2~256个英文或中文字符
  91. *
  92. * @param string $description
  93. */
  94. public function setDescription($description)
  95. {
  96. $this->set("Description", $description);
  97. }
  98. /**
  99. * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
  100. *
  101. * @return string|null
  102. */
  103. public function getProductType()
  104. {
  105. return $this->get("ProductType");
  106. }
  107. /**
  108. * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
  109. *
  110. * @param string $productType
  111. */
  112. public function setProductType($productType)
  113. {
  114. $this->set("ProductType", $productType);
  115. }
  116. }