| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <?php
- /**
- * Copyright 2022 UCloud Technology Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- namespace UCloud\UPhone\Apis;
- use UCloud\Core\Request\Request;
- class DescribeUPhoneRequest extends Request
- {
- public function __construct()
- {
- parent::__construct(["Action" => "DescribeUPhone"]);
- $this->markRequired("CityId");
- }
-
- /**
- * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
- *
- * @return string|null
- */
- public function getProjectId()
- {
- return $this->get("ProjectId");
- }
- /**
- * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
- *
- * @param string $projectId
- */
- public function setProjectId($projectId)
- {
- $this->set("ProjectId", $projectId);
- }
- /**
- * CityId: 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
- *
- * @return string|null
- */
- public function getCityId()
- {
- return $this->get("CityId");
- }
- /**
- * CityId: 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
- *
- * @param string $cityId
- */
- public function setCityId($cityId)
- {
- $this->set("CityId", $cityId);
- }
- /**
- * ServerId: 云手机服务器的资源ID。
- *
- * @return string|null
- */
- public function getServerId()
- {
- return $this->get("ServerId");
- }
- /**
- * ServerId: 云手机服务器的资源ID。
- *
- * @param string $serverId
- */
- public function setServerId($serverId)
- {
- $this->set("ServerId", $serverId);
- }
- /**
- * UPhoneIds: 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望获取信息的云手机 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。如果都不传入,则返回当前 城市 所有符合条件的云手机列表。
- *
- * @return string[]|null
- */
- public function getUPhoneIds()
- {
- return $this->get("UPhoneIds");
- }
- /**
- * UPhoneIds: 【数组】云手机实例的资源 ID,调用方式举例:UPhoneIds.0=希望获取信息的云手机 1 的 UPhoneId,UPhoneIds.1=云手机实例 2 的 UPhoneId。如果都不传入,则返回当前 城市 所有符合条件的云手机列表。
- *
- * @param string[] $uPhoneIds
- */
- public function setUPhoneIds(array $uPhoneIds)
- {
- $this->set("UPhoneIds", $uPhoneIds);
- }
- /**
- * Offset: 列表起始位置偏移量,默认为0
- *
- * @return integer|null
- */
- public function getOffset()
- {
- return $this->get("Offset");
- }
- /**
- * Offset: 列表起始位置偏移量,默认为0
- *
- * @param int $offset
- */
- public function setOffset($offset)
- {
- $this->set("Offset", $offset);
- }
- /**
- * Limit: 返回数据长度,默认为200,最大200
- *
- * @return integer|null
- */
- public function getLimit()
- {
- return $this->get("Limit");
- }
- /**
- * Limit: 返回数据长度,默认为200,最大200
- *
- * @param int $limit
- */
- public function setLimit($limit)
- {
- $this->set("Limit", $limit);
- }
- /**
- * Tag: 要查询的业务组名称
- *
- * @return string|null
- */
- public function getTag()
- {
- return $this->get("Tag");
- }
- /**
- * Tag: 要查询的业务组名称
- *
- * @param string $tag
- */
- public function setTag($tag)
- {
- $this->set("Tag", $tag);
- }
- /**
- * IsAll: 是否返回全部。如果有此参数,分页不生效。
- *
- * @return boolean|null
- */
- public function getIsAll()
- {
- return $this->get("IsAll");
- }
- /**
- * IsAll: 是否返回全部。如果有此参数,分页不生效。
- *
- * @param boolean $isAll
- */
- public function setIsAll($isAll)
- {
- $this->set("IsAll", $isAll);
- }
- /**
- * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
- *
- * @return string|null
- */
- public function getProductType()
- {
- return $this->get("ProductType");
- }
- /**
- * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
- *
- * @param string $productType
- */
- public function setProductType($productType)
- {
- $this->set("ProductType", $productType);
- }
- }
|