Skip to content

Commit b70b7af

Browse files
authored
sdk: rolling update for 0.22.32 (#436)
1 parent 9d7bf53 commit b70b7af

File tree

3 files changed

+37
-16
lines changed

3 files changed

+37
-16
lines changed

services/vpc/apis.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,18 @@ func (c *VPCClient) CreateNetworkAclEntry(req *CreateNetworkAclEntryRequest) (*C
898898
return &res, nil
899899
}
900900

901+
/*
902+
CreateNetworkInterfaceParamPrioritySecGroup is request schema for complex param
903+
*/
904+
type CreateNetworkInterfaceParamPrioritySecGroup struct {
905+
906+
// 安全组优先级
907+
Pripority *int `required:"false"`
908+
909+
// 安全组 ID
910+
SecGroupId *string `required:"false"`
911+
}
912+
901913
// CreateNetworkInterfaceRequest is request schema for CreateNetworkInterface action
902914
type CreateNetworkInterfaceRequest struct {
903915
request.CommonBase
@@ -908,9 +920,15 @@ type CreateNetworkInterfaceRequest struct {
908920
// [公共参数] 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
909921
// Region *string `required:"true"`
910922

923+
// 是否开启EIP直通,默认false
924+
EipDirectMode *bool `required:"false"`
925+
911926
// 虚拟网卡名称,默认为 NetworkInterface
912927
Name *string `required:"false"`
913928

929+
//
930+
PrioritySecGroup []CreateNetworkInterfaceParamPrioritySecGroup `required:"false"`
931+
914932
// 指定内网IP。当前一个网卡仅支持绑定一个内网IP
915933
PrivateIp []string `required:"false"`
916934

@@ -920,6 +938,9 @@ type CreateNetworkInterfaceRequest struct {
920938
// 防火墙GroupId,默认:Web推荐防火墙 可由DescribeSecurityGroupResponse中的GroupId取得
921939
SecurityGroupId *string `required:"false"`
922940

941+
// 指定使用 安全组还是防火墙。为 0 时绑定防火墙,为1时绑定安全组
942+
SecurityMode *int `required:"false"`
943+
923944
// 所属子网ID
924945
SubnetId *string `required:"true"`
925946

services/vpc/models.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -215,21 +215,6 @@ type NatGWIPResInfo struct {
215215
OperatorName string
216216
}
217217

218-
/*
219-
NatGatewaySubnetSet - natgw里面的子网信息
220-
*/
221-
type NatGatewaySubnetSet struct {
222-
223-
// 子网网段
224-
Subnet string
225-
226-
// 子网名字
227-
SubnetName string
228-
229-
// 子网id
230-
SubnetworkId string
231-
}
232-
233218
/*
234219
NatGatewayIPSet - IPSet信息
235220
*/
@@ -251,6 +236,21 @@ type NatGatewayIPSet struct {
251236
Weight int
252237
}
253238

239+
/*
240+
NatGatewaySubnetSet - natgw里面的子网信息
241+
*/
242+
type NatGatewaySubnetSet struct {
243+
244+
// 子网网段
245+
Subnet string
246+
247+
// 子网名字
248+
SubnetName string
249+
250+
// 子网id
251+
SubnetworkId string
252+
}
253+
254254
/*
255255
NatGatewayDataSet - natgw的信息
256256
*/

ucloud/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package version
22

3-
const Version = "0.22.31"
3+
const Version = "0.22.32"

0 commit comments

Comments
 (0)