Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9677ada

Browse files
authored
sdk: rolling update for 0.3.3 (#13)
1 parent b16e020 commit 9677ada

File tree

85 files changed

+5552
-140
lines changed

Some content is hidden

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

85 files changed

+5552
-140
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.2
1+
0.3.3

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/ULB/Apis/CreateSSLRequest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct()
3131

3232

3333
/**
34-
* Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html)
34+
* Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
3535
*
3636
* @return string|null
3737
*/
@@ -41,7 +41,7 @@ public function getRegion()
4141
}
4242

4343
/**
44-
* Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html)
44+
* Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
4545
*
4646
* @param string $region
4747
*/
@@ -51,7 +51,7 @@ public function setRegion($region)
5151
}
5252

5353
/**
54-
* ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html)
54+
* ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
5555
*
5656
* @return string|null
5757
*/
@@ -61,7 +61,7 @@ public function getProjectId()
6161
}
6262

6363
/**
64-
* ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html)
64+
* ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
6565
*
6666
* @param string $projectId
6767
*/
@@ -71,7 +71,7 @@ public function setProjectId($projectId)
7171
}
7272

7373
/**
74-
* SSLName: SSL证书的名字,默认值为空
74+
* SSLName: SSL证书的名字,默认值不为空
7575
*
7676
* @return string|null
7777
*/
@@ -81,7 +81,7 @@ public function getSSLName()
8181
}
8282

8383
/**
84-
* SSLName: SSL证书的名字,默认值为空
84+
* SSLName: SSL证书的名字,默认值不为空
8585
*
8686
* @param string $sslName
8787
*/

src/ULB/Apis/UpdateBackendAttributeRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function setPort($port)
132132
}
133133

134134
/**
135-
* Weight: 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1
135+
* Weight: 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1
136136
*
137137
* @return integer|null
138138
*/
@@ -142,7 +142,7 @@ public function getWeight()
142142
}
143143

144144
/**
145-
* Weight: 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1
145+
* Weight: 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1
146146
*
147147
* @param int $weight
148148
*/

src/ULB/ULBClient.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ public function createPolicy(CreatePolicyRequest $request = null)
175175
* Arguments:
176176
*
177177
* $args = [
178-
* "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html)
179-
* "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html)
180-
* "SSLName" => (string) SSL证书的名字,默认值为空
178+
* "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
179+
* "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
180+
* "SSLName" => (string) SSL证书的名字,默认值不为空
181181
* "SSLType" => (string) 所添加的SSL证书类型,目前只支持Pem格式
182182
* "SSLContent" => (string) SSL证书的完整内容,包括用户证书、加密证书的私钥、CA证书
183183
* "UserCert" => (string) 用户的证书
@@ -845,7 +845,7 @@ public function unbindSSL(UnbindSSLRequest $request = null)
845845
* "ULBId" => (string) 负载均衡资源ID
846846
* "BackendId" => (string) 后端资源实例的ID(ULB后端ID,非资源自身ID)
847847
* "Port" => (integer) 后端资源服务端口,取值范围[1-65535]
848-
* "Weight" => (integer) 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1
848+
* "Weight" => (integer) 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1
849849
* "Enabled" => (integer) 后端实例状态开关
850850
* "IsBackup" => (integer) 是否为backup0:主rs1:备rs默认为0
851851
* ]

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
}

0 commit comments

Comments
 (0)