Skip to content

Commit 15c86cc

Browse files
committed
auto code generation
1 parent 8a08fbf commit 15c86cc

File tree

79 files changed

+5267
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+5267
-127
lines changed

src/UHost/Models/AvailableInstanceTypes.php

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,33 +65,21 @@ public function setStatus($status)
6565
/**
6666
* CpuPlatforms: 支持的CPU平台,并且按照Intel、AMD和Ampere分类返回
6767
*
68-
* @return CpuPlatforms[]|null
68+
* @return CpuPlatforms|null
6969
*/
7070
public function getCpuPlatforms()
7171
{
72-
$items = $this->get("CpuPlatforms");
73-
if ($items == null) {
74-
return [];
75-
}
76-
$result = [];
77-
foreach ($items as $i => $item) {
78-
array_push($result, new CpuPlatforms($item));
79-
}
80-
return $result;
72+
return new CpuPlatforms($this->get("CpuPlatforms"));
8173
}
8274

8375
/**
8476
* CpuPlatforms: 支持的CPU平台,并且按照Intel、AMD和Ampere分类返回
8577
*
86-
* @param CpuPlatforms[] $cpuPlatforms
78+
* @param CpuPlatforms $cpuPlatforms
8779
*/
8880
public function setCpuPlatforms(array $cpuPlatforms)
8981
{
90-
$result = [];
91-
foreach ($cpuPlatforms as $i => $item) {
92-
array_push($result, $item->getAll());
93-
}
94-
return $result;
82+
$this->set("CpuPlatforms", $cpuPlatforms->getAll());
9583
}
9684

9785
/**

src/UHost/UHostClient.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,10 @@ public function deleteUHostKeyPairs(DeleteUHostKeyPairsRequest $request = null)
386386
* [
387387
* "Name" => (string) 机型名称:快杰O型|O 、快杰共享型|OM 、快杰内存型|OMEM 、 快杰PRO型|OPRO、通用N型|N、高主频C型|C和GPU G型|G等
388388
* "Status" => (string) 机型状态:可售|Normal 、 公测|Beta、售罄|Soldout、隐藏|Hidden
389-
* "CpuPlatforms" => (array<object>) 支持的CPU平台,并且按照Intel、AMD和Ampere分类返回[
390-
* [
391-
* "Intel" => (array<string>) 返回Intel的CPU平台信息,例如:Intel: ['Intel/CascadeLake','Intel/CascadelakeR','Intel/IceLake']
392-
* "Amd" => (array<string>) 返回AMD的CPU平台信息,例如:AMD: ['Amd/Epyc2']
393-
* "Ampere" => (array<string>) 返回Arm的CPU平台信息,例如:Ampere: ['Ampere/Altra']
394-
* ]
389+
* "CpuPlatforms" => (object) 支持的CPU平台,并且按照Intel、AMD和Ampere分类返回[
390+
* "Intel" => (array<string>) 返回Intel的CPU平台信息,例如:Intel: ['Intel/CascadeLake','Intel/CascadelakeR','Intel/IceLake']
391+
* "Amd" => (array<string>) 返回AMD的CPU平台信息,例如:AMD: ['Amd/Epyc2']
392+
* "Ampere" => (array<string>) 返回Arm的CPU平台信息,例如:Ampere: ['Ampere/Altra']
395393
* ]
396394
* "Disks" => (array<object>) 磁盘信息。磁盘主要分类如下:云盘|cloudDisk、普通本地盘|normalLocalDisk和SSD本地盘|ssdLocalDisk。其中云盘主要包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。MinimalSize为磁盘最小值,如果没有该字段,最小值取基础镜像Size值即可(linux为20G,windows为40G)。MaximalSize为磁盘最大值。InstantResize表示系统盘是否允许扩容,如果是本地盘,则不允许扩容,InstantResize为false。Features为磁盘可支持的服务:数据方舟|DATAARK,快照服务|SNAPSHOT,加密盘|Encrypted。[
397395
* [

src/UNet/Apis/BindEIPRequest.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,24 @@ public function setResourceId($resourceId)
130130
{
131131
$this->set("ResourceId", $resourceId);
132132
}
133+
134+
/**
135+
* PrivateIP: EIP与内网IP进行绑定时需要传入UNI下未绑定过EIP的内网IP
136+
*
137+
* @return string|null
138+
*/
139+
public function getPrivateIP()
140+
{
141+
return $this->get("PrivateIP");
142+
}
143+
144+
/**
145+
* PrivateIP: EIP与内网IP进行绑定时需要传入UNI下未绑定过EIP的内网IP
146+
*
147+
* @param string $privateIP
148+
*/
149+
public function setPrivateIP($privateIP)
150+
{
151+
$this->set("PrivateIP", $privateIP);
152+
}
133153
}

src/UNet/Models/UnetEIPAddrSet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class UnetEIPAddrSet extends Response
2323

2424

2525
/**
26-
* OperatorName: 运营商信息如: 国际: International, BGP: BGP
26+
* OperatorName: 运营商信息如: 电信: Telecom, 联通: Unicom, 国际: International, Duplet: 双线IP(电信+联通), BGP: Bgp
2727
*
2828
* @return string|null
2929
*/
@@ -33,7 +33,7 @@ public function getOperatorName()
3333
}
3434

3535
/**
36-
* OperatorName: 运营商信息如: 国际: International, BGP: BGP
36+
* OperatorName: 运营商信息如: 电信: Telecom, 联通: Unicom, 国际: International, Duplet: 双线IP(电信+联通), BGP: Bgp
3737
*
3838
* @param string $operatorName
3939
*/

src/UNet/UNetClient.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class UNetClient extends Client
122122
* "EIPId" => (string) 申请到的EIP资源ID
123123
* "EIPAddr" => (array<object>) 申请到的IPv4地址. [
124124
* [
125-
* "OperatorName" => (string) 运营商信息如: 国际: International, BGP: BGP
125+
* "OperatorName" => (string) 运营商信息如: 电信: Telecom, 联通: Unicom, 国际: International, Duplet: 双线IP(电信+联通), BGP: Bgp
126126
* "IP" => (string) IP地址
127127
* ]
128128
* ]
@@ -213,6 +213,7 @@ public function associateEIPWithShareBandwidth(AssociateEIPWithShareBandwidthReq
213213
* "EIPId" => (string) 弹性IP的资源Id
214214
* "ResourceType" => (string) 弹性IP请求绑定的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:natgw;udb:udb;vpngw:ipsec vpn;ucdr:云灾备;dbaudit:数据库审计;uni:虚拟网卡;cube,Cube容器。如果EIP为普通带宽计费,且带宽值高于2G,则只允许绑定在快杰型云主机和ULB
215215
* "ResourceId" => (string) 弹性IP请求绑定的资源ID
216+
* "PrivateIP" => (string) EIP与内网IP进行绑定时需要传入UNI下未绑定过EIP的内网IP
216217
* ]
217218
*
218219
* Outputs:
@@ -469,7 +470,7 @@ public function describeBandwidthUsage(DescribeBandwidthUsageRequest $request =
469470
* ]
470471
* "EIPAddr" => (array<object>) 弹性IP的详细信息列表, 具体结构见下方 UnetEIPAddrSet[
471472
* [
472-
* "OperatorName" => (string) 运营商信息如: 国际: International, BGP: BGP
473+
* "OperatorName" => (string) 运营商信息如: 电信: Telecom, 联通: Unicom, 国际: International, Duplet: 双线IP(电信+联通), BGP: Bgp
473474
* "IP" => (string) IP地址
474475
* ]
475476
* ]

src/UPhone/Apis/CreateUPhoneAppRequest.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,24 @@ public function setDescription($description)
8787
{
8888
$this->set("Description", $description);
8989
}
90+
91+
/**
92+
* ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
93+
*
94+
* @return string|null
95+
*/
96+
public function getProductType()
97+
{
98+
return $this->get("ProductType");
99+
}
100+
101+
/**
102+
* ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
103+
*
104+
* @param string $productType
105+
*/
106+
public function setProductType($productType)
107+
{
108+
$this->set("ProductType", $productType);
109+
}
90110
}

src/UPhone/Apis/CreateUPhoneAppVersionRequest.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,24 @@ public function setDescription($description)
129129
{
130130
$this->set("Description", $description);
131131
}
132+
133+
/**
134+
* ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
135+
*
136+
* @return string|null
137+
*/
138+
public function getProductType()
139+
{
140+
return $this->get("ProductType");
141+
}
142+
143+
/**
144+
* ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
145+
*
146+
* @param string $productType
147+
*/
148+
public function setProductType($productType)
149+
{
150+
$this->set("ProductType", $productType);
151+
}
132152
}

src/UPhone/Apis/CreateUPhoneImageRequest.php

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function setProjectId($projectId)
5050
}
5151

5252
/**
53-
* CityId: 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
53+
* CityId: 城市Id,通过[获取城市列表](https://cms-docs.ucloudadmin.com/api/uphone-api/describe_u_phone_cities)获取
5454
*
5555
* @return string|null
5656
*/
@@ -60,7 +60,7 @@ public function getCityId()
6060
}
6161

6262
/**
63-
* CityId: 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
63+
* CityId: 城市Id,通过[获取城市列表](https://cms-docs.ucloudadmin.com/api/uphone-api/describe_u_phone_cities)获取
6464
*
6565
* @param string $cityId
6666
*/
@@ -128,4 +128,24 @@ public function setDescription($description)
128128
{
129129
$this->set("Description", $description);
130130
}
131+
132+
/**
133+
* ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
134+
*
135+
* @return string|null
136+
*/
137+
public function getProductType()
138+
{
139+
return $this->get("ProductType");
140+
}
141+
142+
/**
143+
* ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
144+
*
145+
* @param string $productType
146+
*/
147+
public function setProductType($productType)
148+
{
149+
$this->set("ProductType", $productType);
150+
}
131151
}

src/UPhone/Apis/CreateUPhoneImageResponse.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,24 @@ public function setImageId($imageId)
4141
{
4242
$this->set("ImageId", $imageId);
4343
}
44+
45+
/**
46+
* JobId: 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
47+
*
48+
* @return string|null
49+
*/
50+
public function getJobId()
51+
{
52+
return $this->get("JobId");
53+
}
54+
55+
/**
56+
* JobId: 请求的唯一标识Id,`RetCode`为0时返回,可根据此ID查询请求的执行状态
57+
*
58+
* @param string $jobId
59+
*/
60+
public function setJobId($jobId)
61+
{
62+
$this->set("JobId", $jobId);
63+
}
4464
}

0 commit comments

Comments
 (0)