Skip to content

Commit 3ada561

Browse files
authored
auto codegen for VPC2.0
1 parent 3359628 commit 3ada561

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

ucloud/services/vpc/client.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,12 @@ def describe_natgw(
852852
- **OperatorName** (str) - IP的运营商信息
853853
854854
855+
**NatGatewaySubnetSet**
856+
- **Subnet** (str) - 子网网段
857+
- **SubnetName** (str) - 子网名字
858+
- **SubnetworkId** (str) - 子网id
859+
860+
855861
**NatGatewayIPSet**
856862
- **Bandwidth** (int) - 带宽
857863
- **BandwidthType** (str) - EIP带宽类型
@@ -860,12 +866,6 @@ def describe_natgw(
860866
- **Weight** (int) - 权重为100的为出口
861867
862868
863-
**NatGatewaySubnetSet**
864-
- **Subnet** (str) - 子网网段
865-
- **SubnetName** (str) - 子网名字
866-
- **SubnetworkId** (str) - 子网id
867-
868-
869869
**NatGatewayDataSet**
870870
- **CreateTime** (int) - natgw创建时间
871871
- **FirewallId** (str) - 绑定的防火墙Id
@@ -965,6 +965,13 @@ def describe_network_acl(
965965
- **SubnetworkId** (str) - 子网ID
966966
967967
968+
**AssociationInfo**
969+
- **AclId** (str) - ACL的ID
970+
- **AssociationId** (str) - 绑定ID
971+
- **CreateTime** (int) - 创建的Unix时间戳
972+
- **SubnetworkId** (str) - 绑定的子网ID
973+
974+
968975
**AclEntryInfo**
969976
- **CidrBlock** (str) - IP段的CIDR信息
970977
- **CreateTime** (int) - 创建的Unix时间戳
@@ -980,13 +987,6 @@ def describe_network_acl(
980987
- **UpdateTime** (int) - 更改的Unix时间戳
981988
982989
983-
**AssociationInfo**
984-
- **AclId** (str) - ACL的ID
985-
- **AssociationId** (str) - 绑定ID
986-
- **CreateTime** (int) - 创建的Unix时间戳
987-
- **SubnetworkId** (str) - 绑定的子网ID
988-
989-
990990
**AclInfo**
991991
- **AclId** (str) - ACL的ID
992992
- **AclName** (str) - 名称
@@ -1444,8 +1444,8 @@ def describe_vpc_intercom(
14441444
14451445
**Request**
14461446
1447-
- **ProjectId** (str) - (Config) 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
1448-
- **Region** (str) - (Config) 源VPC所在地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_
1447+
- **ProjectId** (str) - (Config) 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
1448+
- **Region** (str) - (Config) 源VPC所在地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
14491449
- **VPCId** (str) - (Required) VPC短ID
14501450
- **DstProjectId** (str) - 目的项目ID,默认为全部项目
14511451
- **DstRegion** (str) - 目的VPC所在地域,默认为全部地域
@@ -1457,12 +1457,14 @@ def describe_vpc_intercom(
14571457
**Response Model**
14581458
14591459
**VPCIntercomInfo**
1460+
- **AccountId** (int) - 项目Id(数字)
14601461
- **DstRegion** (str) - 所属地域
14611462
- **Name** (str) - VPC名字
14621463
- **Network** (list) - VPC的地址空间
14631464
- **ProjectId** (str) - 项目Id
14641465
- **Tag** (str) - 业务组(未分组显示为 Default)
14651466
- **VPCId** (str) - VPCId
1467+
- **VPCType** (int) - vpc类型(1表示托管VPC,0表示公有云VPC)
14661468
14671469
14681470
"""

ucloud/services/vpc/schemas/apis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ class DescribeVPCIntercomRequestSchema(schema.RequestSchema):
10961096
fields = {
10971097
"DstProjectId": fields.Str(required=False, dump_to="DstProjectId"),
10981098
"DstRegion": fields.Str(required=False, dump_to="DstRegion"),
1099-
"ProjectId": fields.Str(required=True, dump_to="ProjectId"),
1099+
"ProjectId": fields.Str(required=False, dump_to="ProjectId"),
11001100
"Region": fields.Str(required=True, dump_to="Region"),
11011101
"VPCId": fields.Str(required=True, dump_to="VPCId"),
11021102
}

ucloud/services/vpc/schemas/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,14 @@ class VPCIntercomInfoSchema(schema.ResponseSchema):
288288
"""VPCIntercomInfo -"""
289289

290290
fields = {
291+
"AccountId": fields.Int(required=True, load_from="AccountId"),
291292
"DstRegion": fields.Str(required=False, load_from="DstRegion"),
292293
"Name": fields.Str(required=False, load_from="Name"),
293294
"Network": fields.List(fields.Str()),
294295
"ProjectId": fields.Str(required=False, load_from="ProjectId"),
295296
"Tag": fields.Str(required=False, load_from="Tag"),
296297
"VPCId": fields.Str(required=False, load_from="VPCId"),
298+
"VPCType": fields.Int(required=True, load_from="VPCType"),
297299
}
298300

299301

0 commit comments

Comments
 (0)