From f14c7ff576b42fbbd8d82ab20fe00954a2da4bb1 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 11 Jan 2022 09:18:04 +0000 Subject: [PATCH] Generated 2016-04-28 for Vpc. --- ChangeLog.txt | 4 + services/vpc/active_flow_log.go | 2 +- .../add_i_pv6_translator_acl_list_entry.go | 2 +- services/vpc/allocate_eip_address_pro.go | 33 +++--- services/vpc/allocate_eip_segment_address.go | 2 +- .../vpc/allocate_ipv6_internet_bandwidth.go | 2 +- services/vpc/apply_physical_connection_loa.go | 2 +- .../vpc/associate_route_table_with_gateway.go | 106 +++++++++++++++++ ...eck_can_allocate_vpc_private_ip_address.go | 106 +++++++++++++++++ services/vpc/convert_bandwidth_package.go | 2 +- services/vpc/create_bgp_group.go | 2 +- services/vpc/create_dhcp_options_set.go | 2 +- .../vpc/create_express_cloud_connection.go | 2 +- services/vpc/create_ha_vip.go | 2 +- services/vpc/create_i_pv6_translator.go | 4 +- .../vpc/create_i_pv6_translator_acl_list.go | 2 +- services/vpc/create_i_pv6_translator_entry.go | 2 +- services/vpc/create_ipsec_server.go | 6 +- services/vpc/create_ipv4_gateway.go | 108 +++++++++++++++++ services/vpc/create_ipv6_egress_only_rule.go | 2 +- services/vpc/create_ipv6_gateway.go | 2 +- services/vpc/create_network_acl.go | 2 +- services/vpc/create_physical_connection.go | 2 +- services/vpc/create_route_table.go | 6 +- services/vpc/create_router_interface.go | 2 +- services/vpc/create_ssl_vpn_server.go | 2 +- services/vpc/create_traffic_mirror_filter.go | 14 +-- .../vpc/create_traffic_mirror_filter_rules.go | 12 +- services/vpc/create_traffic_mirror_session.go | 2 +- services/vpc/create_vbr_ha.go | 2 +- services/vpc/create_vpc.go | 2 +- services/vpc/create_vpn_gateway.go | 2 +- services/vpc/create_vpn_pbr_route_entry.go | 10 +- services/vpc/create_vpn_route_entry.go | 8 +- services/vpc/deactive_flow_log.go | 2 +- services/vpc/delete_flow_log.go | 2 +- services/vpc/delete_ipv4_gateway.go | 105 +++++++++++++++++ services/vpc/describe_bgp_groups.go | 4 +- services/vpc/describe_bgp_networks.go | 4 +- services/vpc/describe_bgp_peers.go | 4 +- services/vpc/describe_eip_gateway_info.go | 2 +- services/vpc/describe_eip_segment.go | 4 +- .../vpc/describe_forward_table_entries.go | 4 +- .../describe_global_acceleration_instances.go | 4 +- services/vpc/describe_grant_rules_to_cen.go | 4 +- services/vpc/describe_ha_vips.go | 4 +- ...e_high_definition_monitor_log_attribute.go | 4 +- ...be_i_pv6_translator_acl_list_attributes.go | 6 +- .../describe_i_pv6_translator_acl_lists.go | 4 +- .../vpc/describe_i_pv6_translator_entries.go | 4 +- services/vpc/describe_i_pv6_translators.go | 4 +- .../describe_instance_auto_renew_attribute.go | 4 +- services/vpc/describe_ipv6_addresses.go | 4 +- .../vpc/describe_ipv6_egress_only_rules.go | 4 +- .../vpc/describe_ipv6_gateway_attribute.go | 14 +-- services/vpc/describe_ipv6_gateways.go | 4 +- services/vpc/describe_network_acls.go | 4 +- services/vpc/describe_route_entry_list.go | 2 +- services/vpc/describe_route_table_list.go | 2 +- services/vpc/describe_route_tables.go | 4 +- .../describe_router_interface_attribute.go | 68 +++++------ services/vpc/describe_snat_table_entries.go | 4 +- services/vpc/describe_ssl_vpn_client_cert.go | 18 +-- services/vpc/describe_ssl_vpn_client_certs.go | 4 +- services/vpc/describe_ssl_vpn_servers.go | 4 +- services/vpc/describe_v_routers.go | 4 +- services/vpc/describe_v_switch_attributes.go | 18 +-- services/vpc/describe_v_switches.go | 6 +- services/vpc/describe_vbr_ha.go | 10 +- services/vpc/describe_vpc_attribute.go | 22 ++-- services/vpc/describe_vpcs.go | 6 +- services/vpc/describe_vpn_gateway.go | 26 ++-- .../vpc/describe_vpn_pbr_route_entries.go | 4 +- services/vpc/describe_vpn_route_entries.go | 4 +- services/vpc/describe_vpn_ssl_server_logs.go | 4 +- .../dissociate_route_table_from_gateway.go | 106 +++++++++++++++++ services/vpc/enable_vpc_ipv4_gateway.go | 106 +++++++++++++++++ services/vpc/endpoint.go | 1 - services/vpc/get_dhcp_options_set.go | 6 +- services/vpc/get_ipv4_gateway_attribute.go | 111 ++++++++++++++++++ .../vpc/get_nat_gateway_convert_status.go | 6 +- .../vpc/get_traffic_mirror_service_status.go | 2 +- services/vpc/list_dhcp_options_sets.go | 2 +- .../vpc/list_gateway_route_table_entries.go | 109 +++++++++++++++++ services/vpc/list_ipsec_servers.go | 4 +- services/vpc/list_ipv4_gateways.go | 110 +++++++++++++++++ services/vpc/list_nat_gateway_ecs_metric.go | 2 +- services/vpc/list_tag_resources.go | 2 +- services/vpc/list_traffic_mirror_filters.go | 2 +- services/vpc/list_traffic_mirror_sessions.go | 2 +- .../vpc/list_vpn_certificate_associations.go | 4 +- ...odify_common_bandwidth_package_pay_type.go | 4 +- services/vpc/modify_flow_log_attribute.go | 2 +- .../vpc/modify_i_pv6_translator_bandwidth.go | 2 +- services/vpc/modify_route_table_attributes.go | 2 +- services/vpc/modify_router_interface_spec.go | 2 +- services/vpc/modify_ssl_vpn_server.go | 22 ++-- .../vpc/modify_vpn_connection_attribute.go | 14 +-- services/vpc/modify_vpn_gateway_attribute.go | 18 +-- services/vpc/open_traffic_mirror_service.go | 2 +- services/vpc/renew_instance.go | 2 +- .../vpc/struct_access_point_feature_model.go | 2 +- services/vpc/struct_access_point_type.go | 8 +- services/vpc/struct_acl_entry.go | 2 +- services/vpc/struct_associate_vpc.go | 2 +- .../struct_associated_physical_connection.go | 20 ++-- services/vpc/struct_backend_server.go | 4 +- services/vpc/struct_bgp_group.go | 16 +-- services/vpc/struct_bgp_network.go | 2 +- services/vpc/struct_bgp_peer.go | 24 ++-- services/vpc/struct_convert_step.go | 2 +- services/vpc/struct_dhcp_options_set.go | 4 +- services/vpc/struct_eip_address.go | 1 + ...n_describe_new_project_eip_monitor_data.go | 6 +- services/vpc/struct_eip_segment.go | 10 +- .../struct_express_cloud_connection_type.go | 54 ++++----- services/vpc/struct_forward_table_entry.go | 10 +- services/vpc/struct_gateway_ids.go | 21 ++++ .../vpc/struct_gateway_route_entry_models.go | 21 ++++ .../struct_gateway_route_entry_models_item.go | 26 ++++ .../struct_global_acceleration_instance.go | 4 +- services/vpc/struct_ha_vip.go | 14 +-- services/vpc/struct_i_pv6_translator_acl.go | 2 +- .../vpc/struct_instance_renew_attribute.go | 2 +- services/vpc/struct_ipsec_server.go | 18 +-- services/vpc/struct_ipv4_gateway_models.go | 21 ++++ .../vpc/struct_ipv4_gateway_models_item.go | 28 +++++ services/vpc/struct_ipv6_address.go | 16 +-- services/vpc/struct_ipv6_egress_only_rule.go | 6 +- services/vpc/struct_ipv6_gateway.go | 16 +-- .../vpc/struct_ipv6_internet_bandwidth.go | 4 +- services/vpc/struct_ipv6_translator.go | 18 +-- services/vpc/struct_ipv6_translator_entry.go | 14 +-- services/vpc/struct_metric_data.go | 12 +- services/vpc/struct_network_acl.go | 10 +- services/vpc/struct_network_acl_attribute.go | 4 +- services/vpc/struct_next_hop.go | 2 +- services/vpc/struct_next_hop_related_info.go | 2 +- .../vpc/struct_physical_connection_feature.go | 2 +- .../struct_physical_connection_loa_type.go | 14 +-- .../vpc/struct_physical_connection_type.go | 1 + services/vpc/struct_pm_info_item.go | 6 +- services/vpc/struct_public_ip_address.go | 2 +- services/vpc/struct_region.go | 4 +- services/vpc/struct_resource.go | 2 +- services/vpc/struct_route_table.go | 2 +- services/vpc/struct_router_table_list_type.go | 14 ++- services/vpc/struct_snat_table_entry.go | 8 +- .../vpc/struct_ssl_vpn_client_cert_key.go | 10 +- services/vpc/struct_ssl_vpn_server.go | 22 ++-- services/vpc/struct_tag_resource.go | 4 +- services/vpc/struct_traffic_mirror_filter.go | 4 +- services/vpc/struct_traffic_mirror_rule.go | 4 +- services/vpc/struct_traffic_mirror_session.go | 16 +-- services/vpc/struct_v_router.go | 8 +- services/vpc/struct_v_switch.go | 16 +-- ...der_router_for_physical_connection_type.go | 34 +++--- .../vpc/struct_virtual_border_router_type.go | 44 +++---- .../vpc/struct_virtual_physical_connection.go | 1 + services/vpc/struct_vpc.go | 22 ++-- ...nfig_in_modify_vpn_connection_attribute.go | 8 +- .../vpc/struct_vpn_certificate_relation.go | 4 +- services/vpc/struct_vpn_connection_config.go | 6 +- services/vpc/struct_vpn_pbr_route_entry.go | 8 +- services/vpc/struct_vpn_route_entry.go | 10 +- ...ate_gateway_route_table_entry_attribute.go | 110 +++++++++++++++++ services/vpc/update_ipv4_gateway_attribute.go | 107 +++++++++++++++++ services/vpc/update_network_acl_entries.go | 14 +-- .../vpc/update_virtual_physical_connection.go | 1 + 169 files changed, 1883 insertions(+), 568 deletions(-) create mode 100644 services/vpc/associate_route_table_with_gateway.go create mode 100644 services/vpc/check_can_allocate_vpc_private_ip_address.go create mode 100644 services/vpc/create_ipv4_gateway.go create mode 100644 services/vpc/delete_ipv4_gateway.go create mode 100644 services/vpc/dissociate_route_table_from_gateway.go create mode 100644 services/vpc/enable_vpc_ipv4_gateway.go create mode 100644 services/vpc/get_ipv4_gateway_attribute.go create mode 100644 services/vpc/list_gateway_route_table_entries.go create mode 100644 services/vpc/list_ipv4_gateways.go create mode 100644 services/vpc/struct_gateway_ids.go create mode 100644 services/vpc/struct_gateway_route_entry_models.go create mode 100644 services/vpc/struct_gateway_route_entry_models_item.go create mode 100644 services/vpc/struct_ipv4_gateway_models.go create mode 100644 services/vpc/struct_ipv4_gateway_models_item.go create mode 100644 services/vpc/update_gateway_route_table_entry_attribute.go create mode 100644 services/vpc/update_ipv4_gateway_attribute.go diff --git a/ChangeLog.txt b/ChangeLog.txt index 3206cc11dd..195c88bc79 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2022-01-11 Version: v1.61.1439 +- Generated 2016-04-28 for `Vpc`. +- Support new region cn-beijing-finance-1. + 2022-01-11 Version: v1.61.1438 - Generated 2017-09-12 for `Cbn`. - Support DeleteTransitRouter API. diff --git a/services/vpc/active_flow_log.go b/services/vpc/active_flow_log.go index 8e515f5a4f..b5819b6304 100644 --- a/services/vpc/active_flow_log.go +++ b/services/vpc/active_flow_log.go @@ -81,8 +81,8 @@ type ActiveFlowLogRequest struct { // ActiveFlowLogResponse is the response struct for api ActiveFlowLog type ActiveFlowLogResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateActiveFlowLogRequest creates a request to invoke ActiveFlowLog API diff --git a/services/vpc/add_i_pv6_translator_acl_list_entry.go b/services/vpc/add_i_pv6_translator_acl_list_entry.go index 1c84711122..bf229c120f 100644 --- a/services/vpc/add_i_pv6_translator_acl_list_entry.go +++ b/services/vpc/add_i_pv6_translator_acl_list_entry.go @@ -83,8 +83,8 @@ type AddIPv6TranslatorAclListEntryRequest struct { // AddIPv6TranslatorAclListEntryResponse is the response struct for api AddIPv6TranslatorAclListEntry type AddIPv6TranslatorAclListEntryResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` AclEntryId string `json:"AclEntryId" xml:"AclEntryId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateAddIPv6TranslatorAclListEntryRequest creates a request to invoke AddIPv6TranslatorAclListEntry API diff --git a/services/vpc/allocate_eip_address_pro.go b/services/vpc/allocate_eip_address_pro.go index b11b86fa00..ac4e1dba70 100644 --- a/services/vpc/allocate_eip_address_pro.go +++ b/services/vpc/allocate_eip_address_pro.go @@ -71,22 +71,23 @@ func (client *Client) AllocateEipAddressProWithCallback(request *AllocateEipAddr // AllocateEipAddressProRequest is the request struct for api AllocateEipAddressPro type AllocateEipAddressProRequest struct { *requests.RpcRequest - IpAddress string `position:"Query" name:"IpAddress"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - ISP string `position:"Query" name:"ISP"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Netmode string `position:"Query" name:"Netmode"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - Period requests.Integer `position:"Query" name:"Period"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth string `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - PricingCycle string `position:"Query" name:"PricingCycle"` + IpAddress string `position:"Query" name:"IpAddress"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ISP string `position:"Query" name:"ISP"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Netmode string `position:"Query" name:"Netmode"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + Period requests.Integer `position:"Query" name:"Period"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth string `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + SecurityProtectionTypes *[]string `position:"Query" name:"SecurityProtectionTypes" type:"Repeated"` + PricingCycle string `position:"Query" name:"PricingCycle"` } // AllocateEipAddressProResponse is the response struct for api AllocateEipAddressPro diff --git a/services/vpc/allocate_eip_segment_address.go b/services/vpc/allocate_eip_segment_address.go index 413192ceeb..9b8d9ae2af 100644 --- a/services/vpc/allocate_eip_segment_address.go +++ b/services/vpc/allocate_eip_segment_address.go @@ -88,8 +88,8 @@ type AllocateEipSegmentAddressRequest struct { type AllocateEipSegmentAddressResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` - EipSegmentInstanceId string `json:"EipSegmentInstanceId" xml:"EipSegmentInstanceId"` OrderId int64 `json:"OrderId" xml:"OrderId"` + EipSegmentInstanceId string `json:"EipSegmentInstanceId" xml:"EipSegmentInstanceId"` } // CreateAllocateEipSegmentAddressRequest creates a request to invoke AllocateEipSegmentAddress API diff --git a/services/vpc/allocate_ipv6_internet_bandwidth.go b/services/vpc/allocate_ipv6_internet_bandwidth.go index 50822be161..f6e2cd210c 100644 --- a/services/vpc/allocate_ipv6_internet_bandwidth.go +++ b/services/vpc/allocate_ipv6_internet_bandwidth.go @@ -85,8 +85,8 @@ type AllocateIpv6InternetBandwidthRequest struct { // AllocateIpv6InternetBandwidthResponse is the response struct for api AllocateIpv6InternetBandwidth type AllocateIpv6InternetBandwidthResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Ipv6AddressId string `json:"Ipv6AddressId" xml:"Ipv6AddressId"` + RequestId string `json:"RequestId" xml:"RequestId"` InternetBandwidthId string `json:"InternetBandwidthId" xml:"InternetBandwidthId"` } diff --git a/services/vpc/apply_physical_connection_loa.go b/services/vpc/apply_physical_connection_loa.go index f29791c704..304871a7a0 100644 --- a/services/vpc/apply_physical_connection_loa.go +++ b/services/vpc/apply_physical_connection_loa.go @@ -91,8 +91,8 @@ type ApplyPhysicalConnectionLOAPMInfo struct { PMCertificateNo string `name:"PMCertificateNo"` PMName string `name:"PMName"` PMCertificateType string `name:"PMCertificateType"` - PMContactInfo string `name:"PMContactInfo"` PMGender string `name:"PMGender"` + PMContactInfo string `name:"PMContactInfo"` } // ApplyPhysicalConnectionLOAResponse is the response struct for api ApplyPhysicalConnectionLOA diff --git a/services/vpc/associate_route_table_with_gateway.go b/services/vpc/associate_route_table_with_gateway.go new file mode 100644 index 0000000000..93d97c0626 --- /dev/null +++ b/services/vpc/associate_route_table_with_gateway.go @@ -0,0 +1,106 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// AssociateRouteTableWithGateway invokes the vpc.AssociateRouteTableWithGateway API synchronously +func (client *Client) AssociateRouteTableWithGateway(request *AssociateRouteTableWithGatewayRequest) (response *AssociateRouteTableWithGatewayResponse, err error) { + response = CreateAssociateRouteTableWithGatewayResponse() + err = client.DoAction(request, response) + return +} + +// AssociateRouteTableWithGatewayWithChan invokes the vpc.AssociateRouteTableWithGateway API asynchronously +func (client *Client) AssociateRouteTableWithGatewayWithChan(request *AssociateRouteTableWithGatewayRequest) (<-chan *AssociateRouteTableWithGatewayResponse, <-chan error) { + responseChan := make(chan *AssociateRouteTableWithGatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AssociateRouteTableWithGateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AssociateRouteTableWithGatewayWithCallback invokes the vpc.AssociateRouteTableWithGateway API asynchronously +func (client *Client) AssociateRouteTableWithGatewayWithCallback(request *AssociateRouteTableWithGatewayRequest, callback func(response *AssociateRouteTableWithGatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AssociateRouteTableWithGatewayResponse + var err error + defer close(result) + response, err = client.AssociateRouteTableWithGateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AssociateRouteTableWithGatewayRequest is the request struct for api AssociateRouteTableWithGateway +type AssociateRouteTableWithGatewayRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + GatewayId string `position:"Query" name:"GatewayId"` + RouteTableId string `position:"Query" name:"RouteTableId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// AssociateRouteTableWithGatewayResponse is the response struct for api AssociateRouteTableWithGateway +type AssociateRouteTableWithGatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAssociateRouteTableWithGatewayRequest creates a request to invoke AssociateRouteTableWithGateway API +func CreateAssociateRouteTableWithGatewayRequest() (request *AssociateRouteTableWithGatewayRequest) { + request = &AssociateRouteTableWithGatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "AssociateRouteTableWithGateway", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateAssociateRouteTableWithGatewayResponse creates a response to parse from AssociateRouteTableWithGateway response +func CreateAssociateRouteTableWithGatewayResponse() (response *AssociateRouteTableWithGatewayResponse) { + response = &AssociateRouteTableWithGatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/check_can_allocate_vpc_private_ip_address.go b/services/vpc/check_can_allocate_vpc_private_ip_address.go new file mode 100644 index 0000000000..5550e6dd6a --- /dev/null +++ b/services/vpc/check_can_allocate_vpc_private_ip_address.go @@ -0,0 +1,106 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CheckCanAllocateVpcPrivateIpAddress invokes the vpc.CheckCanAllocateVpcPrivateIpAddress API synchronously +func (client *Client) CheckCanAllocateVpcPrivateIpAddress(request *CheckCanAllocateVpcPrivateIpAddressRequest) (response *CheckCanAllocateVpcPrivateIpAddressResponse, err error) { + response = CreateCheckCanAllocateVpcPrivateIpAddressResponse() + err = client.DoAction(request, response) + return +} + +// CheckCanAllocateVpcPrivateIpAddressWithChan invokes the vpc.CheckCanAllocateVpcPrivateIpAddress API asynchronously +func (client *Client) CheckCanAllocateVpcPrivateIpAddressWithChan(request *CheckCanAllocateVpcPrivateIpAddressRequest) (<-chan *CheckCanAllocateVpcPrivateIpAddressResponse, <-chan error) { + responseChan := make(chan *CheckCanAllocateVpcPrivateIpAddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CheckCanAllocateVpcPrivateIpAddress(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CheckCanAllocateVpcPrivateIpAddressWithCallback invokes the vpc.CheckCanAllocateVpcPrivateIpAddress API asynchronously +func (client *Client) CheckCanAllocateVpcPrivateIpAddressWithCallback(request *CheckCanAllocateVpcPrivateIpAddressRequest, callback func(response *CheckCanAllocateVpcPrivateIpAddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CheckCanAllocateVpcPrivateIpAddressResponse + var err error + defer close(result) + response, err = client.CheckCanAllocateVpcPrivateIpAddress(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CheckCanAllocateVpcPrivateIpAddressRequest is the request struct for api CheckCanAllocateVpcPrivateIpAddress +type CheckCanAllocateVpcPrivateIpAddressRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + IpVersion string `position:"Query" name:"IpVersion"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` +} + +// CheckCanAllocateVpcPrivateIpAddressResponse is the response struct for api CheckCanAllocateVpcPrivateIpAddress +type CheckCanAllocateVpcPrivateIpAddressResponse struct { + *responses.BaseResponse + CanAllocate bool `json:"CanAllocate" xml:"CanAllocate"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCheckCanAllocateVpcPrivateIpAddressRequest creates a request to invoke CheckCanAllocateVpcPrivateIpAddress API +func CreateCheckCanAllocateVpcPrivateIpAddressRequest() (request *CheckCanAllocateVpcPrivateIpAddressRequest) { + request = &CheckCanAllocateVpcPrivateIpAddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CheckCanAllocateVpcPrivateIpAddress", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateCheckCanAllocateVpcPrivateIpAddressResponse creates a response to parse from CheckCanAllocateVpcPrivateIpAddress response +func CreateCheckCanAllocateVpcPrivateIpAddressResponse() (response *CheckCanAllocateVpcPrivateIpAddressResponse) { + response = &CheckCanAllocateVpcPrivateIpAddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/convert_bandwidth_package.go b/services/vpc/convert_bandwidth_package.go index e821f6d0f3..ca531a6843 100644 --- a/services/vpc/convert_bandwidth_package.go +++ b/services/vpc/convert_bandwidth_package.go @@ -81,8 +81,8 @@ type ConvertBandwidthPackageRequest struct { // ConvertBandwidthPackageResponse is the response struct for api ConvertBandwidthPackage type ConvertBandwidthPackageResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` ConvertInstanceId string `json:"ConvertInstanceId" xml:"ConvertInstanceId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateConvertBandwidthPackageRequest creates a request to invoke ConvertBandwidthPackage API diff --git a/services/vpc/create_bgp_group.go b/services/vpc/create_bgp_group.go index caba448cd6..a032210394 100644 --- a/services/vpc/create_bgp_group.go +++ b/services/vpc/create_bgp_group.go @@ -89,8 +89,8 @@ type CreateBgpGroupRequest struct { // CreateBgpGroupResponse is the response struct for api CreateBgpGroup type CreateBgpGroupResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` BgpGroupId string `json:"BgpGroupId" xml:"BgpGroupId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateBgpGroupRequest creates a request to invoke CreateBgpGroup API diff --git a/services/vpc/create_dhcp_options_set.go b/services/vpc/create_dhcp_options_set.go index 261de5ca9d..4d8fba54db 100644 --- a/services/vpc/create_dhcp_options_set.go +++ b/services/vpc/create_dhcp_options_set.go @@ -88,8 +88,8 @@ type CreateDhcpOptionsSetRequest struct { // CreateDhcpOptionsSetResponse is the response struct for api CreateDhcpOptionsSet type CreateDhcpOptionsSetResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` DhcpOptionsSetId string `json:"DhcpOptionsSetId" xml:"DhcpOptionsSetId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateDhcpOptionsSetRequest creates a request to invoke CreateDhcpOptionsSet API diff --git a/services/vpc/create_express_cloud_connection.go b/services/vpc/create_express_cloud_connection.go index 58a8ca4c1b..86b409ce45 100644 --- a/services/vpc/create_express_cloud_connection.go +++ b/services/vpc/create_express_cloud_connection.go @@ -91,8 +91,8 @@ type CreateExpressCloudConnectionRequest struct { // CreateExpressCloudConnectionResponse is the response struct for api CreateExpressCloudConnection type CreateExpressCloudConnectionResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` EccId string `json:"EccId" xml:"EccId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateExpressCloudConnectionRequest creates a request to invoke CreateExpressCloudConnection API diff --git a/services/vpc/create_ha_vip.go b/services/vpc/create_ha_vip.go index 75aca346b3..7aa3ffa176 100644 --- a/services/vpc/create_ha_vip.go +++ b/services/vpc/create_ha_vip.go @@ -86,8 +86,8 @@ type CreateHaVipRequest struct { type CreateHaVipResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` - HaVipId string `json:"HaVipId" xml:"HaVipId"` IpAddress string `json:"IpAddress" xml:"IpAddress"` + HaVipId string `json:"HaVipId" xml:"HaVipId"` } // CreateCreateHaVipRequest creates a request to invoke CreateHaVip API diff --git a/services/vpc/create_i_pv6_translator.go b/services/vpc/create_i_pv6_translator.go index 66cbbb77e3..6d639819f2 100644 --- a/services/vpc/create_i_pv6_translator.go +++ b/services/vpc/create_i_pv6_translator.go @@ -88,10 +88,10 @@ type CreateIPv6TranslatorRequest struct { // CreateIPv6TranslatorResponse is the response struct for api CreateIPv6Translator type CreateIPv6TranslatorResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Ipv6TranslatorId string `json:"Ipv6TranslatorId" xml:"Ipv6TranslatorId"` - Name string `json:"Name" xml:"Name"` + RequestId string `json:"RequestId" xml:"RequestId"` Spec string `json:"Spec" xml:"Spec"` + Name string `json:"Name" xml:"Name"` OrderId int64 `json:"OrderId" xml:"OrderId"` } diff --git a/services/vpc/create_i_pv6_translator_acl_list.go b/services/vpc/create_i_pv6_translator_acl_list.go index 9db6982821..486e39a9b7 100644 --- a/services/vpc/create_i_pv6_translator_acl_list.go +++ b/services/vpc/create_i_pv6_translator_acl_list.go @@ -82,8 +82,8 @@ type CreateIPv6TranslatorAclListRequest struct { // CreateIPv6TranslatorAclListResponse is the response struct for api CreateIPv6TranslatorAclList type CreateIPv6TranslatorAclListResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` AclId string `json:"AclId" xml:"AclId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateIPv6TranslatorAclListRequest creates a request to invoke CreateIPv6TranslatorAclList API diff --git a/services/vpc/create_i_pv6_translator_entry.go b/services/vpc/create_i_pv6_translator_entry.go index 83f90e6cdb..d34a1ff9f9 100644 --- a/services/vpc/create_i_pv6_translator_entry.go +++ b/services/vpc/create_i_pv6_translator_entry.go @@ -91,8 +91,8 @@ type CreateIPv6TranslatorEntryRequest struct { // CreateIPv6TranslatorEntryResponse is the response struct for api CreateIPv6TranslatorEntry type CreateIPv6TranslatorEntryResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Ipv6TranslatorEntryId string `json:"Ipv6TranslatorEntryId" xml:"Ipv6TranslatorEntryId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateIPv6TranslatorEntryRequest creates a request to invoke CreateIPv6TranslatorEntry API diff --git a/services/vpc/create_ipsec_server.go b/services/vpc/create_ipsec_server.go index 0a8bfad878..d99537e693 100644 --- a/services/vpc/create_ipsec_server.go +++ b/services/vpc/create_ipsec_server.go @@ -91,12 +91,12 @@ type CreateIpsecServerRequest struct { // CreateIpsecServerResponse is the response struct for api CreateIpsecServer type CreateIpsecServerResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` IpsecServerId string `json:"IpsecServerId" xml:"IpsecServerId"` + RequestId string `json:"RequestId" xml:"RequestId"` IpsecServerName string `json:"IpsecServerName" xml:"IpsecServerName"` VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` + RegionId string `json:"RegionId" xml:"RegionId"` } // CreateCreateIpsecServerRequest creates a request to invoke CreateIpsecServer API diff --git a/services/vpc/create_ipv4_gateway.go b/services/vpc/create_ipv4_gateway.go new file mode 100644 index 0000000000..40bf41395e --- /dev/null +++ b/services/vpc/create_ipv4_gateway.go @@ -0,0 +1,108 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateIpv4Gateway invokes the vpc.CreateIpv4Gateway API synchronously +func (client *Client) CreateIpv4Gateway(request *CreateIpv4GatewayRequest) (response *CreateIpv4GatewayResponse, err error) { + response = CreateCreateIpv4GatewayResponse() + err = client.DoAction(request, response) + return +} + +// CreateIpv4GatewayWithChan invokes the vpc.CreateIpv4Gateway API asynchronously +func (client *Client) CreateIpv4GatewayWithChan(request *CreateIpv4GatewayRequest) (<-chan *CreateIpv4GatewayResponse, <-chan error) { + responseChan := make(chan *CreateIpv4GatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateIpv4Gateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateIpv4GatewayWithCallback invokes the vpc.CreateIpv4Gateway API asynchronously +func (client *Client) CreateIpv4GatewayWithCallback(request *CreateIpv4GatewayRequest, callback func(response *CreateIpv4GatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateIpv4GatewayResponse + var err error + defer close(result) + response, err = client.CreateIpv4Gateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateIpv4GatewayRequest is the request struct for api CreateIpv4Gateway +type CreateIpv4GatewayRequest struct { + *requests.RpcRequest + Ipv4GatewayDescription string `position:"Query" name:"Ipv4GatewayDescription"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Ipv4GatewayName string `position:"Query" name:"Ipv4GatewayName"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VpcId string `position:"Query" name:"VpcId"` +} + +// CreateIpv4GatewayResponse is the response struct for api CreateIpv4Gateway +type CreateIpv4GatewayResponse struct { + *responses.BaseResponse + Ipv4GatewayId string `json:"Ipv4GatewayId" xml:"Ipv4GatewayId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateIpv4GatewayRequest creates a request to invoke CreateIpv4Gateway API +func CreateCreateIpv4GatewayRequest() (request *CreateIpv4GatewayRequest) { + request = &CreateIpv4GatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateIpv4Gateway", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateIpv4GatewayResponse creates a response to parse from CreateIpv4Gateway response +func CreateCreateIpv4GatewayResponse() (response *CreateIpv4GatewayResponse) { + response = &CreateIpv4GatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/create_ipv6_egress_only_rule.go b/services/vpc/create_ipv6_egress_only_rule.go index 6c749d504c..1a4b097839 100644 --- a/services/vpc/create_ipv6_egress_only_rule.go +++ b/services/vpc/create_ipv6_egress_only_rule.go @@ -86,8 +86,8 @@ type CreateIpv6EgressOnlyRuleRequest struct { // CreateIpv6EgressOnlyRuleResponse is the response struct for api CreateIpv6EgressOnlyRule type CreateIpv6EgressOnlyRuleResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Ipv6EgressRuleId string `json:"Ipv6EgressRuleId" xml:"Ipv6EgressRuleId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateIpv6EgressOnlyRuleRequest creates a request to invoke CreateIpv6EgressOnlyRule API diff --git a/services/vpc/create_ipv6_gateway.go b/services/vpc/create_ipv6_gateway.go index dd0ddf999d..59f763c8f3 100644 --- a/services/vpc/create_ipv6_gateway.go +++ b/services/vpc/create_ipv6_gateway.go @@ -85,8 +85,8 @@ type CreateIpv6GatewayRequest struct { // CreateIpv6GatewayResponse is the response struct for api CreateIpv6Gateway type CreateIpv6GatewayResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Ipv6GatewayId string `json:"Ipv6GatewayId" xml:"Ipv6GatewayId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateIpv6GatewayRequest creates a request to invoke CreateIpv6Gateway API diff --git a/services/vpc/create_network_acl.go b/services/vpc/create_network_acl.go index 6c88e8c6a6..6b933be36e 100644 --- a/services/vpc/create_network_acl.go +++ b/services/vpc/create_network_acl.go @@ -83,8 +83,8 @@ type CreateNetworkAclRequest struct { // CreateNetworkAclResponse is the response struct for api CreateNetworkAcl type CreateNetworkAclResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` NetworkAclId string `json:"NetworkAclId" xml:"NetworkAclId"` + RequestId string `json:"RequestId" xml:"RequestId"` NetworkAclAttribute NetworkAclAttribute `json:"NetworkAclAttribute" xml:"NetworkAclAttribute"` } diff --git a/services/vpc/create_physical_connection.go b/services/vpc/create_physical_connection.go index e5a75d6218..9e23bcadf6 100644 --- a/services/vpc/create_physical_connection.go +++ b/services/vpc/create_physical_connection.go @@ -91,8 +91,8 @@ type CreatePhysicalConnectionRequest struct { // CreatePhysicalConnectionResponse is the response struct for api CreatePhysicalConnection type CreatePhysicalConnectionResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreatePhysicalConnectionRequest creates a request to invoke CreatePhysicalConnection API diff --git a/services/vpc/create_route_table.go b/services/vpc/create_route_table.go index 1238518006..40a9e1bf4e 100644 --- a/services/vpc/create_route_table.go +++ b/services/vpc/create_route_table.go @@ -75,6 +75,7 @@ type CreateRouteTableRequest struct { ClientToken string `position:"Query" name:"ClientToken"` Description string `position:"Query" name:"Description"` RouteTableName string `position:"Query" name:"RouteTableName"` + AssociateType string `position:"Query" name:"AssociateType"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` @@ -84,8 +85,9 @@ type CreateRouteTableRequest struct { // CreateRouteTableResponse is the response struct for api CreateRouteTable type CreateRouteTableResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + RequestId string `json:"RequestId" xml:"RequestId"` + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + AssociateType string `json:"AssociateType" xml:"AssociateType"` } // CreateCreateRouteTableRequest creates a request to invoke CreateRouteTable API diff --git a/services/vpc/create_router_interface.go b/services/vpc/create_router_interface.go index 2f13dc122c..4614481094 100644 --- a/services/vpc/create_router_interface.go +++ b/services/vpc/create_router_interface.go @@ -101,8 +101,8 @@ type CreateRouterInterfaceRequest struct { type CreateRouterInterfaceResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` - RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` OrderId int64 `json:"OrderId" xml:"OrderId"` + RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` } // CreateCreateRouterInterfaceRequest creates a request to invoke CreateRouterInterface API diff --git a/services/vpc/create_ssl_vpn_server.go b/services/vpc/create_ssl_vpn_server.go index abedef5e6e..46607d80d7 100644 --- a/services/vpc/create_ssl_vpn_server.go +++ b/services/vpc/create_ssl_vpn_server.go @@ -92,8 +92,8 @@ type CreateSslVpnServerRequest struct { // CreateSslVpnServerResponse is the response struct for api CreateSslVpnServer type CreateSslVpnServerResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` + RequestId string `json:"RequestId" xml:"RequestId"` Name string `json:"Name" xml:"Name"` } diff --git a/services/vpc/create_traffic_mirror_filter.go b/services/vpc/create_traffic_mirror_filter.go index 4aa10b5344..507302dbf7 100644 --- a/services/vpc/create_traffic_mirror_filter.go +++ b/services/vpc/create_traffic_mirror_filter.go @@ -85,31 +85,31 @@ type CreateTrafficMirrorFilterRequest struct { // CreateTrafficMirrorFilterIngressRules is a repeated param struct in CreateTrafficMirrorFilterRequest type CreateTrafficMirrorFilterIngressRules struct { - Priority string `name:"Priority"` Action string `name:"Action"` - Protocol string `name:"Protocol"` - DestinationCidrBlock string `name:"DestinationCidrBlock"` SourceCidrBlock string `name:"SourceCidrBlock"` + Protocol string `name:"Protocol"` DestinationPortRange string `name:"DestinationPortRange"` + Priority string `name:"Priority"` + DestinationCidrBlock string `name:"DestinationCidrBlock"` SourcePortRange string `name:"SourcePortRange"` } // CreateTrafficMirrorFilterEgressRules is a repeated param struct in CreateTrafficMirrorFilterRequest type CreateTrafficMirrorFilterEgressRules struct { - Priority string `name:"Priority"` Action string `name:"Action"` - Protocol string `name:"Protocol"` - DestinationCidrBlock string `name:"DestinationCidrBlock"` SourceCidrBlock string `name:"SourceCidrBlock"` + Protocol string `name:"Protocol"` DestinationPortRange string `name:"DestinationPortRange"` + Priority string `name:"Priority"` + DestinationCidrBlock string `name:"DestinationCidrBlock"` SourcePortRange string `name:"SourcePortRange"` } // CreateTrafficMirrorFilterResponse is the response struct for api CreateTrafficMirrorFilter type CreateTrafficMirrorFilterResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` TrafficMirrorFilterId string `json:"TrafficMirrorFilterId" xml:"TrafficMirrorFilterId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateTrafficMirrorFilterRequest creates a request to invoke CreateTrafficMirrorFilter API diff --git a/services/vpc/create_traffic_mirror_filter_rules.go b/services/vpc/create_traffic_mirror_filter_rules.go index 3cb288137e..ee2b95839f 100644 --- a/services/vpc/create_traffic_mirror_filter_rules.go +++ b/services/vpc/create_traffic_mirror_filter_rules.go @@ -84,23 +84,23 @@ type CreateTrafficMirrorFilterRulesRequest struct { // CreateTrafficMirrorFilterRulesIngressRules is a repeated param struct in CreateTrafficMirrorFilterRulesRequest type CreateTrafficMirrorFilterRulesIngressRules struct { - Priority string `name:"Priority"` Action string `name:"Action"` - Protocol string `name:"Protocol"` - DestinationCidrBlock string `name:"DestinationCidrBlock"` SourceCidrBlock string `name:"SourceCidrBlock"` + Protocol string `name:"Protocol"` DestinationPortRange string `name:"DestinationPortRange"` + Priority string `name:"Priority"` + DestinationCidrBlock string `name:"DestinationCidrBlock"` SourcePortRange string `name:"SourcePortRange"` } // CreateTrafficMirrorFilterRulesEgressRules is a repeated param struct in CreateTrafficMirrorFilterRulesRequest type CreateTrafficMirrorFilterRulesEgressRules struct { - Priority string `name:"Priority"` Action string `name:"Action"` - Protocol string `name:"Protocol"` - DestinationCidrBlock string `name:"DestinationCidrBlock"` SourceCidrBlock string `name:"SourceCidrBlock"` + Protocol string `name:"Protocol"` DestinationPortRange string `name:"DestinationPortRange"` + Priority string `name:"Priority"` + DestinationCidrBlock string `name:"DestinationCidrBlock"` SourcePortRange string `name:"SourcePortRange"` } diff --git a/services/vpc/create_traffic_mirror_session.go b/services/vpc/create_traffic_mirror_session.go index a9531e0d97..f0980cd328 100644 --- a/services/vpc/create_traffic_mirror_session.go +++ b/services/vpc/create_traffic_mirror_session.go @@ -92,8 +92,8 @@ type CreateTrafficMirrorSessionRequest struct { // CreateTrafficMirrorSessionResponse is the response struct for api CreateTrafficMirrorSession type CreateTrafficMirrorSessionResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` TrafficMirrorSessionId string `json:"TrafficMirrorSessionId" xml:"TrafficMirrorSessionId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateTrafficMirrorSessionRequest creates a request to invoke CreateTrafficMirrorSession API diff --git a/services/vpc/create_vbr_ha.go b/services/vpc/create_vbr_ha.go index 52a4b52810..d3c0588113 100644 --- a/services/vpc/create_vbr_ha.go +++ b/services/vpc/create_vbr_ha.go @@ -86,8 +86,8 @@ type CreateVbrHaRequest struct { // CreateVbrHaResponse is the response struct for api CreateVbrHa type CreateVbrHaResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` VbrHaId string `json:"VbrHaId" xml:"VbrHaId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateVbrHaRequest creates a request to invoke CreateVbrHa API diff --git a/services/vpc/create_vpc.go b/services/vpc/create_vpc.go index 9b41cd30b5..4dfeaed3d9 100644 --- a/services/vpc/create_vpc.go +++ b/services/vpc/create_vpc.go @@ -90,9 +90,9 @@ type CreateVpcRequest struct { // CreateVpcResponse is the response struct for api CreateVpc type CreateVpcResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` VpcId string `json:"VpcId" xml:"VpcId"` VRouterId string `json:"VRouterId" xml:"VRouterId"` + RequestId string `json:"RequestId" xml:"RequestId"` RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` } diff --git a/services/vpc/create_vpn_gateway.go b/services/vpc/create_vpn_gateway.go index 2b376b66a3..9eef0fa845 100644 --- a/services/vpc/create_vpn_gateway.go +++ b/services/vpc/create_vpn_gateway.go @@ -92,8 +92,8 @@ type CreateVpnGatewayRequest struct { // CreateVpnGatewayResponse is the response struct for api CreateVpnGateway type CreateVpnGatewayResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + RequestId string `json:"RequestId" xml:"RequestId"` Name string `json:"Name" xml:"Name"` OrderId int64 `json:"OrderId" xml:"OrderId"` } diff --git a/services/vpc/create_vpn_pbr_route_entry.go b/services/vpc/create_vpn_pbr_route_entry.go index a30e286bdf..e116ac7657 100644 --- a/services/vpc/create_vpn_pbr_route_entry.go +++ b/services/vpc/create_vpn_pbr_route_entry.go @@ -89,16 +89,16 @@ type CreateVpnPbrRouteEntryRequest struct { // CreateVpnPbrRouteEntryResponse is the response struct for api CreateVpnPbrRouteEntry type CreateVpnPbrRouteEntryResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - VpnInstanceId string `json:"VpnInstanceId" xml:"VpnInstanceId"` - RouteSource string `json:"RouteSource" xml:"RouteSource"` - RouteDest string `json:"RouteDest" xml:"RouteDest"` NextHop string `json:"NextHop" xml:"NextHop"` Weight int `json:"Weight" xml:"Weight"` - OverlayMode string `json:"OverlayMode" xml:"OverlayMode"` + RouteDest string `json:"RouteDest" xml:"RouteDest"` + RequestId string `json:"RequestId" xml:"RequestId"` Description string `json:"Description" xml:"Description"` State string `json:"State" xml:"State"` CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + OverlayMode string `json:"OverlayMode" xml:"OverlayMode"` + RouteSource string `json:"RouteSource" xml:"RouteSource"` + VpnInstanceId string `json:"VpnInstanceId" xml:"VpnInstanceId"` } // CreateCreateVpnPbrRouteEntryRequest creates a request to invoke CreateVpnPbrRouteEntry API diff --git a/services/vpc/create_vpn_route_entry.go b/services/vpc/create_vpn_route_entry.go index e4b0321e96..b383d5aa15 100644 --- a/services/vpc/create_vpn_route_entry.go +++ b/services/vpc/create_vpn_route_entry.go @@ -88,15 +88,15 @@ type CreateVpnRouteEntryRequest struct { // CreateVpnRouteEntryResponse is the response struct for api CreateVpnRouteEntry type CreateVpnRouteEntryResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - VpnInstanceId string `json:"VpnInstanceId" xml:"VpnInstanceId"` - RouteDest string `json:"RouteDest" xml:"RouteDest"` NextHop string `json:"NextHop" xml:"NextHop"` Weight int `json:"Weight" xml:"Weight"` - OverlayMode string `json:"OverlayMode" xml:"OverlayMode"` + RouteDest string `json:"RouteDest" xml:"RouteDest"` + RequestId string `json:"RequestId" xml:"RequestId"` Description string `json:"Description" xml:"Description"` State string `json:"State" xml:"State"` CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + OverlayMode string `json:"OverlayMode" xml:"OverlayMode"` + VpnInstanceId string `json:"VpnInstanceId" xml:"VpnInstanceId"` } // CreateCreateVpnRouteEntryRequest creates a request to invoke CreateVpnRouteEntry API diff --git a/services/vpc/deactive_flow_log.go b/services/vpc/deactive_flow_log.go index 52499b57c1..1be0d7485f 100644 --- a/services/vpc/deactive_flow_log.go +++ b/services/vpc/deactive_flow_log.go @@ -81,8 +81,8 @@ type DeactiveFlowLogRequest struct { // DeactiveFlowLogResponse is the response struct for api DeactiveFlowLog type DeactiveFlowLogResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateDeactiveFlowLogRequest creates a request to invoke DeactiveFlowLog API diff --git a/services/vpc/delete_flow_log.go b/services/vpc/delete_flow_log.go index fb0358a107..f203e8b966 100644 --- a/services/vpc/delete_flow_log.go +++ b/services/vpc/delete_flow_log.go @@ -81,8 +81,8 @@ type DeleteFlowLogRequest struct { // DeleteFlowLogResponse is the response struct for api DeleteFlowLog type DeleteFlowLogResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateDeleteFlowLogRequest creates a request to invoke DeleteFlowLog API diff --git a/services/vpc/delete_ipv4_gateway.go b/services/vpc/delete_ipv4_gateway.go new file mode 100644 index 0000000000..b124f2665b --- /dev/null +++ b/services/vpc/delete_ipv4_gateway.go @@ -0,0 +1,105 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteIpv4Gateway invokes the vpc.DeleteIpv4Gateway API synchronously +func (client *Client) DeleteIpv4Gateway(request *DeleteIpv4GatewayRequest) (response *DeleteIpv4GatewayResponse, err error) { + response = CreateDeleteIpv4GatewayResponse() + err = client.DoAction(request, response) + return +} + +// DeleteIpv4GatewayWithChan invokes the vpc.DeleteIpv4Gateway API asynchronously +func (client *Client) DeleteIpv4GatewayWithChan(request *DeleteIpv4GatewayRequest) (<-chan *DeleteIpv4GatewayResponse, <-chan error) { + responseChan := make(chan *DeleteIpv4GatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteIpv4Gateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteIpv4GatewayWithCallback invokes the vpc.DeleteIpv4Gateway API asynchronously +func (client *Client) DeleteIpv4GatewayWithCallback(request *DeleteIpv4GatewayRequest, callback func(response *DeleteIpv4GatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteIpv4GatewayResponse + var err error + defer close(result) + response, err = client.DeleteIpv4Gateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteIpv4GatewayRequest is the request struct for api DeleteIpv4Gateway +type DeleteIpv4GatewayRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Ipv4GatewayId string `position:"Query" name:"Ipv4GatewayId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteIpv4GatewayResponse is the response struct for api DeleteIpv4Gateway +type DeleteIpv4GatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteIpv4GatewayRequest creates a request to invoke DeleteIpv4Gateway API +func CreateDeleteIpv4GatewayRequest() (request *DeleteIpv4GatewayRequest) { + request = &DeleteIpv4GatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteIpv4Gateway", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteIpv4GatewayResponse creates a response to parse from DeleteIpv4Gateway response +func CreateDeleteIpv4GatewayResponse() (response *DeleteIpv4GatewayResponse) { + response = &DeleteIpv4GatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/describe_bgp_groups.go b/services/vpc/describe_bgp_groups.go index cb52e8dfc7..d7e50f1639 100644 --- a/services/vpc/describe_bgp_groups.go +++ b/services/vpc/describe_bgp_groups.go @@ -85,10 +85,10 @@ type DescribeBgpGroupsRequest struct { // DescribeBgpGroupsResponse is the response struct for api DescribeBgpGroups type DescribeBgpGroupsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` BgpGroups BgpGroups `json:"BgpGroups" xml:"BgpGroups"` } diff --git a/services/vpc/describe_bgp_networks.go b/services/vpc/describe_bgp_networks.go index 82821dce19..51f7ffd0b6 100644 --- a/services/vpc/describe_bgp_networks.go +++ b/services/vpc/describe_bgp_networks.go @@ -83,10 +83,10 @@ type DescribeBgpNetworksRequest struct { // DescribeBgpNetworksResponse is the response struct for api DescribeBgpNetworks type DescribeBgpNetworksResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` BgpNetworks BgpNetworks `json:"BgpNetworks" xml:"BgpNetworks"` } diff --git a/services/vpc/describe_bgp_peers.go b/services/vpc/describe_bgp_peers.go index 1954e03d6b..a7882293fa 100644 --- a/services/vpc/describe_bgp_peers.go +++ b/services/vpc/describe_bgp_peers.go @@ -86,10 +86,10 @@ type DescribeBgpPeersRequest struct { // DescribeBgpPeersResponse is the response struct for api DescribeBgpPeers type DescribeBgpPeersResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` BgpPeers BgpPeers `json:"BgpPeers" xml:"BgpPeers"` } diff --git a/services/vpc/describe_eip_gateway_info.go b/services/vpc/describe_eip_gateway_info.go index ee47b51197..3691cd7b82 100644 --- a/services/vpc/describe_eip_gateway_info.go +++ b/services/vpc/describe_eip_gateway_info.go @@ -81,9 +81,9 @@ type DescribeEipGatewayInfoRequest struct { // DescribeEipGatewayInfoResponse is the response struct for api DescribeEipGatewayInfo type DescribeEipGatewayInfoResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` EipInfos EipInfos `json:"EipInfos" xml:"EipInfos"` } diff --git a/services/vpc/describe_eip_segment.go b/services/vpc/describe_eip_segment.go index 7905f4f31f..0f968415ff 100644 --- a/services/vpc/describe_eip_segment.go +++ b/services/vpc/describe_eip_segment.go @@ -84,10 +84,10 @@ type DescribeEipSegmentRequest struct { // DescribeEipSegmentResponse is the response struct for api DescribeEipSegment type DescribeEipSegmentResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` EipSegments EipSegments `json:"EipSegments" xml:"EipSegments"` } diff --git a/services/vpc/describe_forward_table_entries.go b/services/vpc/describe_forward_table_entries.go index 4de29b7727..9074351947 100644 --- a/services/vpc/describe_forward_table_entries.go +++ b/services/vpc/describe_forward_table_entries.go @@ -90,10 +90,10 @@ type DescribeForwardTableEntriesRequest struct { // DescribeForwardTableEntriesResponse is the response struct for api DescribeForwardTableEntries type DescribeForwardTableEntriesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` ForwardTableEntries ForwardTableEntries `json:"ForwardTableEntries" xml:"ForwardTableEntries"` } diff --git a/services/vpc/describe_global_acceleration_instances.go b/services/vpc/describe_global_acceleration_instances.go index c20d766725..33e52adb0a 100644 --- a/services/vpc/describe_global_acceleration_instances.go +++ b/services/vpc/describe_global_acceleration_instances.go @@ -90,10 +90,10 @@ type DescribeGlobalAccelerationInstancesRequest struct { // DescribeGlobalAccelerationInstancesResponse is the response struct for api DescribeGlobalAccelerationInstances type DescribeGlobalAccelerationInstancesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` GlobalAccelerationInstances GlobalAccelerationInstancesInDescribeGlobalAccelerationInstances `json:"GlobalAccelerationInstances" xml:"GlobalAccelerationInstances"` } diff --git a/services/vpc/describe_grant_rules_to_cen.go b/services/vpc/describe_grant_rules_to_cen.go index 46ac7d7ee4..284bbcbd96 100644 --- a/services/vpc/describe_grant_rules_to_cen.go +++ b/services/vpc/describe_grant_rules_to_cen.go @@ -84,10 +84,10 @@ type DescribeGrantRulesToCenRequest struct { // DescribeGrantRulesToCenResponse is the response struct for api DescribeGrantRulesToCen type DescribeGrantRulesToCenResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` CenGrantRules CenGrantRules `json:"CenGrantRules" xml:"CenGrantRules"` } diff --git a/services/vpc/describe_ha_vips.go b/services/vpc/describe_ha_vips.go index 464002eb66..56a9cf8931 100644 --- a/services/vpc/describe_ha_vips.go +++ b/services/vpc/describe_ha_vips.go @@ -89,10 +89,10 @@ type DescribeHaVipsFilter struct { // DescribeHaVipsResponse is the response struct for api DescribeHaVips type DescribeHaVipsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` HaVips HaVips `json:"HaVips" xml:"HaVips"` } diff --git a/services/vpc/describe_high_definition_monitor_log_attribute.go b/services/vpc/describe_high_definition_monitor_log_attribute.go index d87e4c2e9c..3ebcedfcc3 100644 --- a/services/vpc/describe_high_definition_monitor_log_attribute.go +++ b/services/vpc/describe_high_definition_monitor_log_attribute.go @@ -82,12 +82,12 @@ type DescribeHighDefinitionMonitorLogAttributeRequest struct { // DescribeHighDefinitionMonitorLogAttributeResponse is the response struct for api DescribeHighDefinitionMonitorLogAttribute type DescribeHighDefinitionMonitorLogAttributeResponse struct { *responses.BaseResponse + LogProject string `json:"LogProject" xml:"LogProject"` RequestId string `json:"RequestId" xml:"RequestId"` + LogStore string `json:"LogStore" xml:"LogStore"` Success string `json:"Success" xml:"Success"` InstanceId string `json:"InstanceId" xml:"InstanceId"` InstanceType string `json:"InstanceType" xml:"InstanceType"` - LogProject string `json:"LogProject" xml:"LogProject"` - LogStore string `json:"LogStore" xml:"LogStore"` } // CreateDescribeHighDefinitionMonitorLogAttributeRequest creates a request to invoke DescribeHighDefinitionMonitorLogAttribute API diff --git a/services/vpc/describe_i_pv6_translator_acl_list_attributes.go b/services/vpc/describe_i_pv6_translator_acl_list_attributes.go index 16b1a6a7d5..b15f28842a 100644 --- a/services/vpc/describe_i_pv6_translator_acl_list_attributes.go +++ b/services/vpc/describe_i_pv6_translator_acl_list_attributes.go @@ -83,12 +83,12 @@ type DescribeIPv6TranslatorAclListAttributesRequest struct { // DescribeIPv6TranslatorAclListAttributesResponse is the response struct for api DescribeIPv6TranslatorAclListAttributes type DescribeIPv6TranslatorAclListAttributesResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` AclId string `json:"AclId" xml:"AclId"` - AclName string `json:"AclName" xml:"AclName"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` PageNumber int `json:"PageNumber" xml:"PageNumber"` PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + AclName string `json:"AclName" xml:"AclName"` AclEntries AclEntries `json:"AclEntries" xml:"AclEntries"` } diff --git a/services/vpc/describe_i_pv6_translator_acl_lists.go b/services/vpc/describe_i_pv6_translator_acl_lists.go index 3869b1c210..5f3630a440 100644 --- a/services/vpc/describe_i_pv6_translator_acl_lists.go +++ b/services/vpc/describe_i_pv6_translator_acl_lists.go @@ -84,10 +84,10 @@ type DescribeIPv6TranslatorAclListsRequest struct { // DescribeIPv6TranslatorAclListsResponse is the response struct for api DescribeIPv6TranslatorAclLists type DescribeIPv6TranslatorAclListsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` Ipv6TranslatorAcls Ipv6TranslatorAcls `json:"Ipv6TranslatorAcls" xml:"Ipv6TranslatorAcls"` } diff --git a/services/vpc/describe_i_pv6_translator_entries.go b/services/vpc/describe_i_pv6_translator_entries.go index d1888c7d3d..e478fc4c3e 100644 --- a/services/vpc/describe_i_pv6_translator_entries.go +++ b/services/vpc/describe_i_pv6_translator_entries.go @@ -94,10 +94,10 @@ type DescribeIPv6TranslatorEntriesRequest struct { // DescribeIPv6TranslatorEntriesResponse is the response struct for api DescribeIPv6TranslatorEntries type DescribeIPv6TranslatorEntriesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` Ipv6TranslatorEntries Ipv6TranslatorEntries `json:"Ipv6TranslatorEntries" xml:"Ipv6TranslatorEntries"` } diff --git a/services/vpc/describe_i_pv6_translators.go b/services/vpc/describe_i_pv6_translators.go index ae888e15ea..9b932840d0 100644 --- a/services/vpc/describe_i_pv6_translators.go +++ b/services/vpc/describe_i_pv6_translators.go @@ -90,10 +90,10 @@ type DescribeIPv6TranslatorsRequest struct { // DescribeIPv6TranslatorsResponse is the response struct for api DescribeIPv6Translators type DescribeIPv6TranslatorsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` Ipv6Translators Ipv6Translators `json:"Ipv6Translators" xml:"Ipv6Translators"` } diff --git a/services/vpc/describe_instance_auto_renew_attribute.go b/services/vpc/describe_instance_auto_renew_attribute.go index 89fd168d25..65defb2252 100644 --- a/services/vpc/describe_instance_auto_renew_attribute.go +++ b/services/vpc/describe_instance_auto_renew_attribute.go @@ -84,10 +84,10 @@ type DescribeInstanceAutoRenewAttributeRequest struct { // DescribeInstanceAutoRenewAttributeResponse is the response struct for api DescribeInstanceAutoRenewAttribute type DescribeInstanceAutoRenewAttributeResponse struct { *responses.BaseResponse + PageNumber string `json:"PageNumber" xml:"PageNumber"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount string `json:"TotalCount" xml:"TotalCount"` PageSize string `json:"PageSize" xml:"PageSize"` - PageNumber string `json:"PageNumber" xml:"PageNumber"` + TotalCount string `json:"TotalCount" xml:"TotalCount"` InstanceRenewAttributes InstanceRenewAttributes `json:"InstanceRenewAttributes" xml:"InstanceRenewAttributes"` } diff --git a/services/vpc/describe_ipv6_addresses.go b/services/vpc/describe_ipv6_addresses.go index 6addebd7ce..4bfc0a1a58 100644 --- a/services/vpc/describe_ipv6_addresses.go +++ b/services/vpc/describe_ipv6_addresses.go @@ -91,10 +91,10 @@ type DescribeIpv6AddressesRequest struct { // DescribeIpv6AddressesResponse is the response struct for api DescribeIpv6Addresses type DescribeIpv6AddressesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` Ipv6Addresses Ipv6Addresses `json:"Ipv6Addresses" xml:"Ipv6Addresses"` } diff --git a/services/vpc/describe_ipv6_egress_only_rules.go b/services/vpc/describe_ipv6_egress_only_rules.go index 53139fad66..c139b1669a 100644 --- a/services/vpc/describe_ipv6_egress_only_rules.go +++ b/services/vpc/describe_ipv6_egress_only_rules.go @@ -87,10 +87,10 @@ type DescribeIpv6EgressOnlyRulesRequest struct { // DescribeIpv6EgressOnlyRulesResponse is the response struct for api DescribeIpv6EgressOnlyRules type DescribeIpv6EgressOnlyRulesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` Ipv6EgressOnlyRules Ipv6EgressOnlyRules `json:"Ipv6EgressOnlyRules" xml:"Ipv6EgressOnlyRules"` } diff --git a/services/vpc/describe_ipv6_gateway_attribute.go b/services/vpc/describe_ipv6_gateway_attribute.go index 1576d1dff5..4dd66f6de4 100644 --- a/services/vpc/describe_ipv6_gateway_attribute.go +++ b/services/vpc/describe_ipv6_gateway_attribute.go @@ -81,18 +81,18 @@ type DescribeIpv6GatewayAttributeRequest struct { // DescribeIpv6GatewayAttributeResponse is the response struct for api DescribeIpv6GatewayAttribute type DescribeIpv6GatewayAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` - Ipv6GatewayId string `json:"Ipv6GatewayId" xml:"Ipv6GatewayId"` VpcId string `json:"VpcId" xml:"VpcId"` Status string `json:"Status" xml:"Status"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` Spec string `json:"Spec" xml:"Spec"` + RegionId string `json:"RegionId" xml:"RegionId"` InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + RequestId string `json:"RequestId" xml:"RequestId"` + Ipv6GatewayId string `json:"Ipv6GatewayId" xml:"Ipv6GatewayId"` + Description string `json:"Description" xml:"Description"` ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + Name string `json:"Name" xml:"Name"` } // CreateDescribeIpv6GatewayAttributeRequest creates a request to invoke DescribeIpv6GatewayAttribute API diff --git a/services/vpc/describe_ipv6_gateways.go b/services/vpc/describe_ipv6_gateways.go index 52475f741f..c12a5d0a66 100644 --- a/services/vpc/describe_ipv6_gateways.go +++ b/services/vpc/describe_ipv6_gateways.go @@ -85,10 +85,10 @@ type DescribeIpv6GatewaysRequest struct { // DescribeIpv6GatewaysResponse is the response struct for api DescribeIpv6Gateways type DescribeIpv6GatewaysResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` Ipv6Gateways Ipv6Gateways `json:"Ipv6Gateways" xml:"Ipv6Gateways"` } diff --git a/services/vpc/describe_network_acls.go b/services/vpc/describe_network_acls.go index dd56eec05a..51d269af33 100644 --- a/services/vpc/describe_network_acls.go +++ b/services/vpc/describe_network_acls.go @@ -87,10 +87,10 @@ type DescribeNetworkAclsRequest struct { // DescribeNetworkAclsResponse is the response struct for api DescribeNetworkAcls type DescribeNetworkAclsResponse struct { *responses.BaseResponse + PageSize string `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount string `json:"TotalCount" xml:"TotalCount"` PageNumber string `json:"PageNumber" xml:"PageNumber"` - PageSize string `json:"PageSize" xml:"PageSize"` + TotalCount string `json:"TotalCount" xml:"TotalCount"` NetworkAcls NetworkAcls `json:"NetworkAcls" xml:"NetworkAcls"` } diff --git a/services/vpc/describe_route_entry_list.go b/services/vpc/describe_route_entry_list.go index 48c73e14da..31a1a77416 100644 --- a/services/vpc/describe_route_entry_list.go +++ b/services/vpc/describe_route_entry_list.go @@ -90,8 +90,8 @@ type DescribeRouteEntryListRequest struct { // DescribeRouteEntryListResponse is the response struct for api DescribeRouteEntryList type DescribeRouteEntryListResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` RouteEntrys RouteEntrysInDescribeRouteEntryList `json:"RouteEntrys" xml:"RouteEntrys"` } diff --git a/services/vpc/describe_route_table_list.go b/services/vpc/describe_route_table_list.go index ba95a85925..280aab0698 100644 --- a/services/vpc/describe_route_table_list.go +++ b/services/vpc/describe_route_table_list.go @@ -96,9 +96,9 @@ type DescribeRouteTableListTag struct { type DescribeRouteTableListResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` Code string `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` - Success bool `json:"Success" xml:"Success"` PageSize int `json:"PageSize" xml:"PageSize"` PageNumber int `json:"PageNumber" xml:"PageNumber"` TotalCount int `json:"TotalCount" xml:"TotalCount"` diff --git a/services/vpc/describe_route_tables.go b/services/vpc/describe_route_tables.go index b27051dd65..2f789787ce 100644 --- a/services/vpc/describe_route_tables.go +++ b/services/vpc/describe_route_tables.go @@ -89,10 +89,10 @@ type DescribeRouteTablesRequest struct { // DescribeRouteTablesResponse is the response struct for api DescribeRouteTables type DescribeRouteTablesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` RouteTables RouteTablesInDescribeRouteTables `json:"RouteTables" xml:"RouteTables"` } diff --git a/services/vpc/describe_router_interface_attribute.go b/services/vpc/describe_router_interface_attribute.go index 90a19a8fe8..8c8d6e48ff 100644 --- a/services/vpc/describe_router_interface_attribute.go +++ b/services/vpc/describe_router_interface_attribute.go @@ -80,49 +80,49 @@ type DescribeRouterInterfaceAttributeRequest struct { // DescribeRouterInterfaceAttributeResponse is the response struct for api DescribeRouterInterfaceAttribute type DescribeRouterInterfaceAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Code string `json:"Code" xml:"Code"` - Message string `json:"Message" xml:"Message"` - Success bool `json:"Success" xml:"Success"` - RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` - OppositeRegionId string `json:"OppositeRegionId" xml:"OppositeRegionId"` - Role string `json:"Role" xml:"Role"` - Spec string `json:"Spec" xml:"Spec"` - Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` - RouterId string `json:"RouterId" xml:"RouterId"` - RouterType string `json:"RouterType" xml:"RouterType"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - GmtModified string `json:"GmtModified" xml:"GmtModified"` - EndTime string `json:"EndTime" xml:"EndTime"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` + ReservationActiveTime string `json:"ReservationActiveTime" xml:"ReservationActiveTime"` + HealthCheckTargetIp string `json:"HealthCheckTargetIp" xml:"HealthCheckTargetIp"` Status string `json:"Status" xml:"Status"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - ConnectedTime string `json:"ConnectedTime" xml:"ConnectedTime"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + ReservationOrderType string `json:"ReservationOrderType" xml:"ReservationOrderType"` OppositeInterfaceId string `json:"OppositeInterfaceId" xml:"OppositeInterfaceId"` - OppositeInterfaceSpec string `json:"OppositeInterfaceSpec" xml:"OppositeInterfaceSpec"` - OppositeInterfaceStatus string `json:"OppositeInterfaceStatus" xml:"OppositeInterfaceStatus"` - OppositeInterfaceBusinessStatus string `json:"OppositeInterfaceBusinessStatus" xml:"OppositeInterfaceBusinessStatus"` - OppositeRouterId string `json:"OppositeRouterId" xml:"OppositeRouterId"` + Spec string `json:"Spec" xml:"Spec"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` + Message string `json:"Message" xml:"Message"` + HcThreshold int `json:"HcThreshold" xml:"HcThreshold"` OppositeRouterType string `json:"OppositeRouterType" xml:"OppositeRouterType"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + VpcInstanceId string `json:"VpcInstanceId" xml:"VpcInstanceId"` OppositeInterfaceOwnerId string `json:"OppositeInterfaceOwnerId" xml:"OppositeInterfaceOwnerId"` - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` - OppositeAccessPointId string `json:"OppositeAccessPointId" xml:"OppositeAccessPointId"` - HealthCheckSourceIp string `json:"HealthCheckSourceIp" xml:"HealthCheckSourceIp"` - HealthCheckTargetIp string `json:"HealthCheckTargetIp" xml:"HealthCheckTargetIp"` OppositeVpcInstanceId string `json:"OppositeVpcInstanceId" xml:"OppositeVpcInstanceId"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - VpcInstanceId string `json:"VpcInstanceId" xml:"VpcInstanceId"` - OppositeBandwidth int `json:"OppositeBandwidth" xml:"OppositeBandwidth"` - HasReservationData string `json:"HasReservationData" xml:"HasReservationData"` - ReservationBandwidth string `json:"ReservationBandwidth" xml:"ReservationBandwidth"` ReservationInternetChargeType string `json:"ReservationInternetChargeType" xml:"ReservationInternetChargeType"` - ReservationActiveTime string `json:"ReservationActiveTime" xml:"ReservationActiveTime"` - ReservationOrderType string `json:"ReservationOrderType" xml:"ReservationOrderType"` CrossBorder bool `json:"CrossBorder" xml:"CrossBorder"` - HcThreshold int `json:"HcThreshold" xml:"HcThreshold"` + RequestId string `json:"RequestId" xml:"RequestId"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + Description string `json:"Description" xml:"Description"` HcRate int `json:"HcRate" xml:"HcRate"` + ReservationBandwidth string `json:"ReservationBandwidth" xml:"ReservationBandwidth"` + Code string `json:"Code" xml:"Code"` + Name string `json:"Name" xml:"Name"` + OppositeRouterId string `json:"OppositeRouterId" xml:"OppositeRouterId"` + OppositeInterfaceSpec string `json:"OppositeInterfaceSpec" xml:"OppositeInterfaceSpec"` + RouterId string `json:"RouterId" xml:"RouterId"` + Success bool `json:"Success" xml:"Success"` + OppositeInterfaceBusinessStatus string `json:"OppositeInterfaceBusinessStatus" xml:"OppositeInterfaceBusinessStatus"` + ConnectedTime string `json:"ConnectedTime" xml:"ConnectedTime"` + HealthCheckSourceIp string `json:"HealthCheckSourceIp" xml:"HealthCheckSourceIp"` + OppositeInterfaceStatus string `json:"OppositeInterfaceStatus" xml:"OppositeInterfaceStatus"` + EndTime string `json:"EndTime" xml:"EndTime"` + OppositeRegionId string `json:"OppositeRegionId" xml:"OppositeRegionId"` + OppositeAccessPointId string `json:"OppositeAccessPointId" xml:"OppositeAccessPointId"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` HealthCheckStatus string `json:"HealthCheckStatus" xml:"HealthCheckStatus"` + OppositeBandwidth int `json:"OppositeBandwidth" xml:"OppositeBandwidth"` + RouterType string `json:"RouterType" xml:"RouterType"` + Role string `json:"Role" xml:"Role"` + HasReservationData string `json:"HasReservationData" xml:"HasReservationData"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` } // CreateDescribeRouterInterfaceAttributeRequest creates a request to invoke DescribeRouterInterfaceAttribute API diff --git a/services/vpc/describe_snat_table_entries.go b/services/vpc/describe_snat_table_entries.go index 60e34fd149..8ffc5cb3d5 100644 --- a/services/vpc/describe_snat_table_entries.go +++ b/services/vpc/describe_snat_table_entries.go @@ -88,10 +88,10 @@ type DescribeSnatTableEntriesRequest struct { // DescribeSnatTableEntriesResponse is the response struct for api DescribeSnatTableEntries type DescribeSnatTableEntriesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` SnatTableEntries SnatTableEntries `json:"SnatTableEntries" xml:"SnatTableEntries"` } diff --git a/services/vpc/describe_ssl_vpn_client_cert.go b/services/vpc/describe_ssl_vpn_client_cert.go index 7aeab4f96e..849efc2b9b 100644 --- a/services/vpc/describe_ssl_vpn_client_cert.go +++ b/services/vpc/describe_ssl_vpn_client_cert.go @@ -81,18 +81,18 @@ type DescribeSslVpnClientCertRequest struct { // DescribeSslVpnClientCertResponse is the response struct for api DescribeSslVpnClientCert type DescribeSslVpnClientCertResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` - SslVpnClientCertId string `json:"SslVpnClientCertId" xml:"SslVpnClientCertId"` - Name string `json:"Name" xml:"Name"` - SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` - CaCert string `json:"CaCert" xml:"CaCert"` - ClientCert string `json:"ClientCert" xml:"ClientCert"` + Status string `json:"Status" xml:"Status"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` ClientKey string `json:"ClientKey" xml:"ClientKey"` + RegionId string `json:"RegionId" xml:"RegionId"` ClientConfig string `json:"ClientConfig" xml:"ClientConfig"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` EndTime int64 `json:"EndTime" xml:"EndTime"` - Status string `json:"Status" xml:"Status"` + RequestId string `json:"RequestId" xml:"RequestId"` + ClientCert string `json:"ClientCert" xml:"ClientCert"` + CaCert string `json:"CaCert" xml:"CaCert"` + SslVpnClientCertId string `json:"SslVpnClientCertId" xml:"SslVpnClientCertId"` + SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` + Name string `json:"Name" xml:"Name"` } // CreateDescribeSslVpnClientCertRequest creates a request to invoke DescribeSslVpnClientCert API diff --git a/services/vpc/describe_ssl_vpn_client_certs.go b/services/vpc/describe_ssl_vpn_client_certs.go index 34515e5a1f..97d299dc0c 100644 --- a/services/vpc/describe_ssl_vpn_client_certs.go +++ b/services/vpc/describe_ssl_vpn_client_certs.go @@ -85,10 +85,10 @@ type DescribeSslVpnClientCertsRequest struct { // DescribeSslVpnClientCertsResponse is the response struct for api DescribeSslVpnClientCerts type DescribeSslVpnClientCertsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` SslVpnClientCertKeys SslVpnClientCertKeys `json:"SslVpnClientCertKeys" xml:"SslVpnClientCertKeys"` } diff --git a/services/vpc/describe_ssl_vpn_servers.go b/services/vpc/describe_ssl_vpn_servers.go index aa1043bdf4..19f29c0cca 100644 --- a/services/vpc/describe_ssl_vpn_servers.go +++ b/services/vpc/describe_ssl_vpn_servers.go @@ -85,10 +85,10 @@ type DescribeSslVpnServersRequest struct { // DescribeSslVpnServersResponse is the response struct for api DescribeSslVpnServers type DescribeSslVpnServersResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` SslVpnServers SslVpnServers `json:"SslVpnServers" xml:"SslVpnServers"` } diff --git a/services/vpc/describe_v_routers.go b/services/vpc/describe_v_routers.go index ea15a1089f..7f76d357dc 100644 --- a/services/vpc/describe_v_routers.go +++ b/services/vpc/describe_v_routers.go @@ -83,10 +83,10 @@ type DescribeVRoutersRequest struct { // DescribeVRoutersResponse is the response struct for api DescribeVRouters type DescribeVRoutersResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` VRouters VRouters `json:"VRouters" xml:"VRouters"` } diff --git a/services/vpc/describe_v_switch_attributes.go b/services/vpc/describe_v_switch_attributes.go index a520b1068e..3e64d13bfd 100644 --- a/services/vpc/describe_v_switch_attributes.go +++ b/services/vpc/describe_v_switch_attributes.go @@ -82,21 +82,21 @@ type DescribeVSwitchAttributesRequest struct { // DescribeVSwitchAttributesResponse is the response struct for api DescribeVSwitchAttributes type DescribeVSwitchAttributesResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` VpcId string `json:"VpcId" xml:"VpcId"` Status string `json:"Status" xml:"Status"` - CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` - Ipv6CidrBlock string `json:"Ipv6CidrBlock" xml:"Ipv6CidrBlock"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - AvailableIpAddressCount int64 `json:"AvailableIpAddressCount" xml:"AvailableIpAddressCount"` - Description string `json:"Description" xml:"Description"` - VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` CreationTime string `json:"CreationTime" xml:"CreationTime"` IsDefault bool `json:"IsDefault" xml:"IsDefault"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + AvailableIpAddressCount int64 `json:"AvailableIpAddressCount" xml:"AvailableIpAddressCount"` NetworkAclId string `json:"NetworkAclId" xml:"NetworkAclId"` OwnerId int64 `json:"OwnerId" xml:"OwnerId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + RequestId string `json:"RequestId" xml:"RequestId"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + Description string `json:"Description" xml:"Description"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Ipv6CidrBlock string `json:"Ipv6CidrBlock" xml:"Ipv6CidrBlock"` + VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` ShareType string `json:"ShareType" xml:"ShareType"` RouteTable RouteTable `json:"RouteTable" xml:"RouteTable"` CloudResources CloudResourcesInDescribeVSwitchAttributes `json:"CloudResources" xml:"CloudResources"` diff --git a/services/vpc/describe_v_switches.go b/services/vpc/describe_v_switches.go index 407c9d477b..1fc289b377 100644 --- a/services/vpc/describe_v_switches.go +++ b/services/vpc/describe_v_switches.go @@ -75,8 +75,8 @@ type DescribeVSwitchesRequest struct { PageNumber requests.Integer `position:"Query" name:"PageNumber"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeVSwitchesTag `position:"Query" name:"Tag" type:"Repeated"` IsDefault requests.Boolean `position:"Query" name:"IsDefault"` + Tag *[]DescribeVSwitchesTag `position:"Query" name:"Tag" type:"Repeated"` RouteTableId string `position:"Query" name:"RouteTableId"` DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` @@ -98,10 +98,10 @@ type DescribeVSwitchesTag struct { // DescribeVSwitchesResponse is the response struct for api DescribeVSwitches type DescribeVSwitchesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` VSwitches VSwitches `json:"VSwitches" xml:"VSwitches"` } diff --git a/services/vpc/describe_vbr_ha.go b/services/vpc/describe_vbr_ha.go index 40e12c98b3..1e693f4ad1 100644 --- a/services/vpc/describe_vbr_ha.go +++ b/services/vpc/describe_vbr_ha.go @@ -84,15 +84,15 @@ type DescribeVbrHaRequest struct { // DescribeVbrHaResponse is the response struct for api DescribeVbrHa type DescribeVbrHaResponse struct { *responses.BaseResponse + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` RequestId string `json:"RequestId" xml:"RequestId"` + Description string `json:"Description" xml:"Description"` VbrHaId string `json:"VbrHaId" xml:"VbrHaId"` - RegionId string `json:"RegionId" xml:"RegionId"` + PeerVbrId string `json:"PeerVbrId" xml:"PeerVbrId"` Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` - Status string `json:"Status" xml:"Status"` VbrId string `json:"VbrId" xml:"VbrId"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - PeerVbrId string `json:"PeerVbrId" xml:"PeerVbrId"` + RegionId string `json:"RegionId" xml:"RegionId"` } // CreateDescribeVbrHaRequest creates a request to invoke DescribeVbrHa API diff --git a/services/vpc/describe_vpc_attribute.go b/services/vpc/describe_vpc_attribute.go index 10ca72d826..ccbed22beb 100644 --- a/services/vpc/describe_vpc_attribute.go +++ b/services/vpc/describe_vpc_attribute.go @@ -83,23 +83,25 @@ type DescribeVpcAttributeRequest struct { // DescribeVpcAttributeResponse is the response struct for api DescribeVpcAttribute type DescribeVpcAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` VpcId string `json:"VpcId" xml:"VpcId"` + IsDefault bool `json:"IsDefault" xml:"IsDefault"` + ClassicLinkEnabled bool `json:"ClassicLinkEnabled" xml:"ClassicLinkEnabled"` + OwnerId int64 `json:"OwnerId" xml:"OwnerId"` RegionId string `json:"RegionId" xml:"RegionId"` - Status string `json:"Status" xml:"Status"` VpcName string `json:"VpcName" xml:"VpcName"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` - Ipv6CidrBlock string `json:"Ipv6CidrBlock" xml:"Ipv6CidrBlock"` VRouterId string `json:"VRouterId" xml:"VRouterId"` + DhcpOptionsSetStatus string `json:"DhcpOptionsSetStatus" xml:"DhcpOptionsSetStatus"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + RequestId string `json:"RequestId" xml:"RequestId"` Description string `json:"Description" xml:"Description"` - IsDefault bool `json:"IsDefault" xml:"IsDefault"` - ClassicLinkEnabled bool `json:"ClassicLinkEnabled" xml:"ClassicLinkEnabled"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` NetworkAclNum string `json:"NetworkAclNum" xml:"NetworkAclNum"` - OwnerId int64 `json:"OwnerId" xml:"OwnerId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` DhcpOptionsSetId string `json:"DhcpOptionsSetId" xml:"DhcpOptionsSetId"` - DhcpOptionsSetStatus string `json:"DhcpOptionsSetStatus" xml:"DhcpOptionsSetStatus"` + Ipv6CidrBlock string `json:"Ipv6CidrBlock" xml:"Ipv6CidrBlock"` + SupportIpv4Gateway bool `json:"SupportIpv4Gateway" xml:"SupportIpv4Gateway"` + Ipv4GatewayId string `json:"Ipv4GatewayId" xml:"Ipv4GatewayId"` VSwitchIds VSwitchIdsInDescribeVpcAttribute `json:"VSwitchIds" xml:"VSwitchIds"` UserCidrs UserCidrsInDescribeVpcAttribute `json:"UserCidrs" xml:"UserCidrs"` SecondaryCidrBlocks SecondaryCidrBlocksInDescribeVpcAttribute `json:"SecondaryCidrBlocks" xml:"SecondaryCidrBlocks"` diff --git a/services/vpc/describe_vpcs.go b/services/vpc/describe_vpcs.go index f9ee5d1aa4..899582dc28 100644 --- a/services/vpc/describe_vpcs.go +++ b/services/vpc/describe_vpcs.go @@ -77,8 +77,8 @@ type DescribeVpcsRequest struct { VpcName string `position:"Query" name:"VpcName"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` PageSize requests.Integer `position:"Query" name:"PageSize"` - Tag *[]DescribeVpcsTag `position:"Query" name:"Tag" type:"Repeated"` IsDefault requests.Boolean `position:"Query" name:"IsDefault"` + Tag *[]DescribeVpcsTag `position:"Query" name:"Tag" type:"Repeated"` DryRun requests.Boolean `position:"Query" name:"DryRun"` DhcpOptionsSetId string `position:"Query" name:"DhcpOptionsSetId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` @@ -97,10 +97,10 @@ type DescribeVpcsTag struct { // DescribeVpcsResponse is the response struct for api DescribeVpcs type DescribeVpcsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` Vpcs Vpcs `json:"Vpcs" xml:"Vpcs"` } diff --git a/services/vpc/describe_vpn_gateway.go b/services/vpc/describe_vpn_gateway.go index 75abae4df6..3943ba4da3 100644 --- a/services/vpc/describe_vpn_gateway.go +++ b/services/vpc/describe_vpn_gateway.go @@ -82,26 +82,26 @@ type DescribeVpnGatewayRequest struct { // DescribeVpnGatewayResponse is the response struct for api DescribeVpnGateway type DescribeVpnGatewayResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + VpnType string `json:"VpnType" xml:"VpnType"` + Status string `json:"Status" xml:"Status"` VpcId string `json:"VpcId" xml:"VpcId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + SslMaxConnections int64 `json:"SslMaxConnections" xml:"SslMaxConnections"` + Spec string `json:"Spec" xml:"Spec"` InternetIp string `json:"InternetIp" xml:"InternetIp"` CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + AutoPropagate bool `json:"AutoPropagate" xml:"AutoPropagate"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + Tag string `json:"Tag" xml:"Tag"` + IpsecVpn string `json:"IpsecVpn" xml:"IpsecVpn"` EndTime int64 `json:"EndTime" xml:"EndTime"` - Spec string `json:"Spec" xml:"Spec"` - Name string `json:"Name" xml:"Name"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + RequestId string `json:"RequestId" xml:"RequestId"` Description string `json:"Description" xml:"Description"` - Status string `json:"Status" xml:"Status"` + EnableBgp bool `json:"EnableBgp" xml:"EnableBgp"` BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - IpsecVpn string `json:"IpsecVpn" xml:"IpsecVpn"` SslVpn string `json:"SslVpn" xml:"SslVpn"` - SslMaxConnections int64 `json:"SslMaxConnections" xml:"SslMaxConnections"` - Tag string `json:"Tag" xml:"Tag"` - EnableBgp bool `json:"EnableBgp" xml:"EnableBgp"` - AutoPropagate bool `json:"AutoPropagate" xml:"AutoPropagate"` - VpnType string `json:"VpnType" xml:"VpnType"` + Name string `json:"Name" xml:"Name"` ReservationData ReservationData `json:"ReservationData" xml:"ReservationData"` Tags TagsInDescribeVpnGateway `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/describe_vpn_pbr_route_entries.go b/services/vpc/describe_vpn_pbr_route_entries.go index 26b9564e26..9c8e3906f7 100644 --- a/services/vpc/describe_vpn_pbr_route_entries.go +++ b/services/vpc/describe_vpn_pbr_route_entries.go @@ -83,10 +83,10 @@ type DescribeVpnPbrRouteEntriesRequest struct { // DescribeVpnPbrRouteEntriesResponse is the response struct for api DescribeVpnPbrRouteEntries type DescribeVpnPbrRouteEntriesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` VpnPbrRouteEntries VpnPbrRouteEntries `json:"VpnPbrRouteEntries" xml:"VpnPbrRouteEntries"` } diff --git a/services/vpc/describe_vpn_route_entries.go b/services/vpc/describe_vpn_route_entries.go index 887717201f..c9a57dbe8a 100644 --- a/services/vpc/describe_vpn_route_entries.go +++ b/services/vpc/describe_vpn_route_entries.go @@ -84,10 +84,10 @@ type DescribeVpnRouteEntriesRequest struct { // DescribeVpnRouteEntriesResponse is the response struct for api DescribeVpnRouteEntries type DescribeVpnRouteEntriesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` VpnRouteEntries VpnRouteEntries `json:"VpnRouteEntries" xml:"VpnRouteEntries"` } diff --git a/services/vpc/describe_vpn_ssl_server_logs.go b/services/vpc/describe_vpn_ssl_server_logs.go index c5ec3e16b0..26219f8020 100644 --- a/services/vpc/describe_vpn_ssl_server_logs.go +++ b/services/vpc/describe_vpn_ssl_server_logs.go @@ -87,11 +87,11 @@ type DescribeVpnSslServerLogsRequest struct { // DescribeVpnSslServerLogsResponse is the response struct for api DescribeVpnSslServerLogs type DescribeVpnSslServerLogsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` RequestId string `json:"RequestId" xml:"RequestId"` Count int `json:"Count" xml:"Count"` IsCompleted bool `json:"IsCompleted" xml:"IsCompleted"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` Data Data `json:"Data" xml:"Data"` } diff --git a/services/vpc/dissociate_route_table_from_gateway.go b/services/vpc/dissociate_route_table_from_gateway.go new file mode 100644 index 0000000000..a05a709bac --- /dev/null +++ b/services/vpc/dissociate_route_table_from_gateway.go @@ -0,0 +1,106 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DissociateRouteTableFromGateway invokes the vpc.DissociateRouteTableFromGateway API synchronously +func (client *Client) DissociateRouteTableFromGateway(request *DissociateRouteTableFromGatewayRequest) (response *DissociateRouteTableFromGatewayResponse, err error) { + response = CreateDissociateRouteTableFromGatewayResponse() + err = client.DoAction(request, response) + return +} + +// DissociateRouteTableFromGatewayWithChan invokes the vpc.DissociateRouteTableFromGateway API asynchronously +func (client *Client) DissociateRouteTableFromGatewayWithChan(request *DissociateRouteTableFromGatewayRequest) (<-chan *DissociateRouteTableFromGatewayResponse, <-chan error) { + responseChan := make(chan *DissociateRouteTableFromGatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DissociateRouteTableFromGateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DissociateRouteTableFromGatewayWithCallback invokes the vpc.DissociateRouteTableFromGateway API asynchronously +func (client *Client) DissociateRouteTableFromGatewayWithCallback(request *DissociateRouteTableFromGatewayRequest, callback func(response *DissociateRouteTableFromGatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DissociateRouteTableFromGatewayResponse + var err error + defer close(result) + response, err = client.DissociateRouteTableFromGateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DissociateRouteTableFromGatewayRequest is the request struct for api DissociateRouteTableFromGateway +type DissociateRouteTableFromGatewayRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + GatewayId string `position:"Query" name:"GatewayId"` + RouteTableId string `position:"Query" name:"RouteTableId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DissociateRouteTableFromGatewayResponse is the response struct for api DissociateRouteTableFromGateway +type DissociateRouteTableFromGatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDissociateRouteTableFromGatewayRequest creates a request to invoke DissociateRouteTableFromGateway API +func CreateDissociateRouteTableFromGatewayRequest() (request *DissociateRouteTableFromGatewayRequest) { + request = &DissociateRouteTableFromGatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DissociateRouteTableFromGateway", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDissociateRouteTableFromGatewayResponse creates a response to parse from DissociateRouteTableFromGateway response +func CreateDissociateRouteTableFromGatewayResponse() (response *DissociateRouteTableFromGatewayResponse) { + response = &DissociateRouteTableFromGatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/enable_vpc_ipv4_gateway.go b/services/vpc/enable_vpc_ipv4_gateway.go new file mode 100644 index 0000000000..ee4d1fc80c --- /dev/null +++ b/services/vpc/enable_vpc_ipv4_gateway.go @@ -0,0 +1,106 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnableVpcIpv4Gateway invokes the vpc.EnableVpcIpv4Gateway API synchronously +func (client *Client) EnableVpcIpv4Gateway(request *EnableVpcIpv4GatewayRequest) (response *EnableVpcIpv4GatewayResponse, err error) { + response = CreateEnableVpcIpv4GatewayResponse() + err = client.DoAction(request, response) + return +} + +// EnableVpcIpv4GatewayWithChan invokes the vpc.EnableVpcIpv4Gateway API asynchronously +func (client *Client) EnableVpcIpv4GatewayWithChan(request *EnableVpcIpv4GatewayRequest) (<-chan *EnableVpcIpv4GatewayResponse, <-chan error) { + responseChan := make(chan *EnableVpcIpv4GatewayResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnableVpcIpv4Gateway(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnableVpcIpv4GatewayWithCallback invokes the vpc.EnableVpcIpv4Gateway API asynchronously +func (client *Client) EnableVpcIpv4GatewayWithCallback(request *EnableVpcIpv4GatewayRequest, callback func(response *EnableVpcIpv4GatewayResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnableVpcIpv4GatewayResponse + var err error + defer close(result) + response, err = client.EnableVpcIpv4Gateway(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnableVpcIpv4GatewayRequest is the request struct for api EnableVpcIpv4Gateway +type EnableVpcIpv4GatewayRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Ipv4GatewayId string `position:"Query" name:"Ipv4GatewayId"` + RouteTableList *[]string `position:"Query" name:"RouteTableList" type:"Repeated"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// EnableVpcIpv4GatewayResponse is the response struct for api EnableVpcIpv4Gateway +type EnableVpcIpv4GatewayResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnableVpcIpv4GatewayRequest creates a request to invoke EnableVpcIpv4Gateway API +func CreateEnableVpcIpv4GatewayRequest() (request *EnableVpcIpv4GatewayRequest) { + request = &EnableVpcIpv4GatewayRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "EnableVpcIpv4Gateway", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateEnableVpcIpv4GatewayResponse creates a response to parse from EnableVpcIpv4Gateway response +func CreateEnableVpcIpv4GatewayResponse() (response *EnableVpcIpv4GatewayResponse) { + response = &EnableVpcIpv4GatewayResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/endpoint.go b/services/vpc/endpoint.go index f34e0111e8..31ba49d8a0 100644 --- a/services/vpc/endpoint.go +++ b/services/vpc/endpoint.go @@ -38,7 +38,6 @@ func GetEndpointMap() map[string]string { "cn-hangzhou-internal-test-1": "vpc.aliyuncs.com", "eu-west-1-oxs": "vpc-nebula.cn-shenzhen-cloudstone.aliyuncs.com", "cn-zhangbei-na61-b01": "vpc.aliyuncs.com", - "cn-beijing-finance-1": "vpc.aliyuncs.com", "cn-hangzhou-internal-test-3": "vpc.aliyuncs.com", "cn-shenzhen-finance-1": "vpc.aliyuncs.com", "cn-hangzhou-internal-test-2": "vpc.aliyuncs.com", diff --git a/services/vpc/get_dhcp_options_set.go b/services/vpc/get_dhcp_options_set.go index e43d2699f3..8a8ad77a76 100644 --- a/services/vpc/get_dhcp_options_set.go +++ b/services/vpc/get_dhcp_options_set.go @@ -81,12 +81,12 @@ type GetDhcpOptionsSetRequest struct { // GetDhcpOptionsSetResponse is the response struct for api GetDhcpOptionsSet type GetDhcpOptionsSetResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - DhcpOptionsSetName string `json:"DhcpOptionsSetName" xml:"DhcpOptionsSetName"` DhcpOptionsSetDescription string `json:"DhcpOptionsSetDescription" xml:"DhcpOptionsSetDescription"` + Status string `json:"Status" xml:"Status"` + RequestId string `json:"RequestId" xml:"RequestId"` DhcpOptionsSetId string `json:"DhcpOptionsSetId" xml:"DhcpOptionsSetId"` + DhcpOptionsSetName string `json:"DhcpOptionsSetName" xml:"DhcpOptionsSetName"` OwnerId int64 `json:"OwnerId" xml:"OwnerId"` - Status string `json:"Status" xml:"Status"` DhcpOptions DhcpOptions `json:"DhcpOptions" xml:"DhcpOptions"` AssociateVpcs []AssociateVpc `json:"AssociateVpcs" xml:"AssociateVpcs"` } diff --git a/services/vpc/get_ipv4_gateway_attribute.go b/services/vpc/get_ipv4_gateway_attribute.go new file mode 100644 index 0000000000..cb3ca1f7bb --- /dev/null +++ b/services/vpc/get_ipv4_gateway_attribute.go @@ -0,0 +1,111 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetIpv4GatewayAttribute invokes the vpc.GetIpv4GatewayAttribute API synchronously +func (client *Client) GetIpv4GatewayAttribute(request *GetIpv4GatewayAttributeRequest) (response *GetIpv4GatewayAttributeResponse, err error) { + response = CreateGetIpv4GatewayAttributeResponse() + err = client.DoAction(request, response) + return +} + +// GetIpv4GatewayAttributeWithChan invokes the vpc.GetIpv4GatewayAttribute API asynchronously +func (client *Client) GetIpv4GatewayAttributeWithChan(request *GetIpv4GatewayAttributeRequest) (<-chan *GetIpv4GatewayAttributeResponse, <-chan error) { + responseChan := make(chan *GetIpv4GatewayAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetIpv4GatewayAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetIpv4GatewayAttributeWithCallback invokes the vpc.GetIpv4GatewayAttribute API asynchronously +func (client *Client) GetIpv4GatewayAttributeWithCallback(request *GetIpv4GatewayAttributeRequest, callback func(response *GetIpv4GatewayAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetIpv4GatewayAttributeResponse + var err error + defer close(result) + response, err = client.GetIpv4GatewayAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetIpv4GatewayAttributeRequest is the request struct for api GetIpv4GatewayAttribute +type GetIpv4GatewayAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Ipv4GatewayId string `position:"Query" name:"Ipv4GatewayId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// GetIpv4GatewayAttributeResponse is the response struct for api GetIpv4GatewayAttribute +type GetIpv4GatewayAttributeResponse struct { + *responses.BaseResponse + VpcId string `json:"VpcId" xml:"VpcId"` + Status string `json:"Status" xml:"Status"` + Ipv4GatewayId string `json:"Ipv4GatewayId" xml:"Ipv4GatewayId"` + RequestId string `json:"RequestId" xml:"RequestId"` + Ipv4GatewayDescription string `json:"Ipv4GatewayDescription" xml:"Ipv4GatewayDescription"` + Enabled bool `json:"Enabled" xml:"Enabled"` + Ipv4GatewayRouteTableId string `json:"Ipv4GatewayRouteTableId" xml:"Ipv4GatewayRouteTableId"` + Ipv4GatewayName string `json:"Ipv4GatewayName" xml:"Ipv4GatewayName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` +} + +// CreateGetIpv4GatewayAttributeRequest creates a request to invoke GetIpv4GatewayAttribute API +func CreateGetIpv4GatewayAttributeRequest() (request *GetIpv4GatewayAttributeRequest) { + request = &GetIpv4GatewayAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "GetIpv4GatewayAttribute", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetIpv4GatewayAttributeResponse creates a response to parse from GetIpv4GatewayAttribute response +func CreateGetIpv4GatewayAttributeResponse() (response *GetIpv4GatewayAttributeResponse) { + response = &GetIpv4GatewayAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/get_nat_gateway_convert_status.go b/services/vpc/get_nat_gateway_convert_status.go index 83dd87ca56..97bcaf23cb 100644 --- a/services/vpc/get_nat_gateway_convert_status.go +++ b/services/vpc/get_nat_gateway_convert_status.go @@ -81,11 +81,11 @@ type GetNatGatewayConvertStatusRequest struct { // GetNatGatewayConvertStatusResponse is the response struct for api GetNatGatewayConvertStatus type GetNatGatewayConvertStatusResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` - Bid string `json:"Bid" xml:"Bid"` AliUid int64 `json:"AliUid" xml:"AliUid"` + RequestId string `json:"RequestId" xml:"RequestId"` DstNatType string `json:"DstNatType" xml:"DstNatType"` + Bid string `json:"Bid" xml:"Bid"` + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` ConvertSteps []ConvertStep `json:"ConvertSteps" xml:"ConvertSteps"` } diff --git a/services/vpc/get_traffic_mirror_service_status.go b/services/vpc/get_traffic_mirror_service_status.go index 61a51f6de8..bd1add8b8a 100644 --- a/services/vpc/get_traffic_mirror_service_status.go +++ b/services/vpc/get_traffic_mirror_service_status.go @@ -77,8 +77,8 @@ type GetTrafficMirrorServiceStatusRequest struct { // GetTrafficMirrorServiceStatusResponse is the response struct for api GetTrafficMirrorServiceStatus type GetTrafficMirrorServiceStatusResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Enabled bool `json:"Enabled" xml:"Enabled"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateGetTrafficMirrorServiceStatusRequest creates a request to invoke GetTrafficMirrorServiceStatus API diff --git a/services/vpc/list_dhcp_options_sets.go b/services/vpc/list_dhcp_options_sets.go index a1ed0bfbba..ce8a9bc074 100644 --- a/services/vpc/list_dhcp_options_sets.go +++ b/services/vpc/list_dhcp_options_sets.go @@ -85,8 +85,8 @@ type ListDhcpOptionsSetsRequest struct { // ListDhcpOptionsSetsResponse is the response struct for api ListDhcpOptionsSets type ListDhcpOptionsSetsResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` DhcpOptionsSets []DhcpOptionsSet `json:"DhcpOptionsSets" xml:"DhcpOptionsSets"` } diff --git a/services/vpc/list_gateway_route_table_entries.go b/services/vpc/list_gateway_route_table_entries.go new file mode 100644 index 0000000000..17d676d574 --- /dev/null +++ b/services/vpc/list_gateway_route_table_entries.go @@ -0,0 +1,109 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListGatewayRouteTableEntries invokes the vpc.ListGatewayRouteTableEntries API synchronously +func (client *Client) ListGatewayRouteTableEntries(request *ListGatewayRouteTableEntriesRequest) (response *ListGatewayRouteTableEntriesResponse, err error) { + response = CreateListGatewayRouteTableEntriesResponse() + err = client.DoAction(request, response) + return +} + +// ListGatewayRouteTableEntriesWithChan invokes the vpc.ListGatewayRouteTableEntries API asynchronously +func (client *Client) ListGatewayRouteTableEntriesWithChan(request *ListGatewayRouteTableEntriesRequest) (<-chan *ListGatewayRouteTableEntriesResponse, <-chan error) { + responseChan := make(chan *ListGatewayRouteTableEntriesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListGatewayRouteTableEntries(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListGatewayRouteTableEntriesWithCallback invokes the vpc.ListGatewayRouteTableEntries API asynchronously +func (client *Client) ListGatewayRouteTableEntriesWithCallback(request *ListGatewayRouteTableEntriesRequest, callback func(response *ListGatewayRouteTableEntriesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListGatewayRouteTableEntriesResponse + var err error + defer close(result) + response, err = client.ListGatewayRouteTableEntries(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListGatewayRouteTableEntriesRequest is the request struct for api ListGatewayRouteTableEntries +type ListGatewayRouteTableEntriesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NextToken string `position:"Query" name:"NextToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + DestinationCidrBlock string `position:"Query" name:"DestinationCidrBlock"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + GatewayRouteTableId string `position:"Query" name:"GatewayRouteTableId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// ListGatewayRouteTableEntriesResponse is the response struct for api ListGatewayRouteTableEntries +type ListGatewayRouteTableEntriesResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount string `json:"TotalCount" xml:"TotalCount"` + GatewayRouteEntryModels []GatewayRouteEntryModelsItem `json:"GatewayRouteEntryModels" xml:"GatewayRouteEntryModels"` +} + +// CreateListGatewayRouteTableEntriesRequest creates a request to invoke ListGatewayRouteTableEntries API +func CreateListGatewayRouteTableEntriesRequest() (request *ListGatewayRouteTableEntriesRequest) { + request = &ListGatewayRouteTableEntriesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ListGatewayRouteTableEntries", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateListGatewayRouteTableEntriesResponse creates a response to parse from ListGatewayRouteTableEntries response +func CreateListGatewayRouteTableEntriesResponse() (response *ListGatewayRouteTableEntriesResponse) { + response = &ListGatewayRouteTableEntriesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/list_ipsec_servers.go b/services/vpc/list_ipsec_servers.go index f3f2c7d690..1f4a2f9f0c 100644 --- a/services/vpc/list_ipsec_servers.go +++ b/services/vpc/list_ipsec_servers.go @@ -83,10 +83,10 @@ type ListIpsecServersRequest struct { // ListIpsecServersResponse is the response struct for api ListIpsecServers type ListIpsecServersResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` NextToken string `json:"NextToken" xml:"NextToken"` - MaxResults int `json:"MaxResults" xml:"MaxResults"` + RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` IpsecServers []IpsecServer `json:"IpsecServers" xml:"IpsecServers"` } diff --git a/services/vpc/list_ipv4_gateways.go b/services/vpc/list_ipv4_gateways.go new file mode 100644 index 0000000000..3a39af5be4 --- /dev/null +++ b/services/vpc/list_ipv4_gateways.go @@ -0,0 +1,110 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListIpv4Gateways invokes the vpc.ListIpv4Gateways API synchronously +func (client *Client) ListIpv4Gateways(request *ListIpv4GatewaysRequest) (response *ListIpv4GatewaysResponse, err error) { + response = CreateListIpv4GatewaysResponse() + err = client.DoAction(request, response) + return +} + +// ListIpv4GatewaysWithChan invokes the vpc.ListIpv4Gateways API asynchronously +func (client *Client) ListIpv4GatewaysWithChan(request *ListIpv4GatewaysRequest) (<-chan *ListIpv4GatewaysResponse, <-chan error) { + responseChan := make(chan *ListIpv4GatewaysResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListIpv4Gateways(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListIpv4GatewaysWithCallback invokes the vpc.ListIpv4Gateways API asynchronously +func (client *Client) ListIpv4GatewaysWithCallback(request *ListIpv4GatewaysRequest, callback func(response *ListIpv4GatewaysResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListIpv4GatewaysResponse + var err error + defer close(result) + response, err = client.ListIpv4Gateways(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListIpv4GatewaysRequest is the request struct for api ListIpv4Gateways +type ListIpv4GatewaysRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Ipv4GatewayName string `position:"Query" name:"Ipv4GatewayName"` + NextToken string `position:"Query" name:"NextToken"` + Ipv4GatewayId string `position:"Query" name:"Ipv4GatewayId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VpcId string `position:"Query" name:"VpcId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// ListIpv4GatewaysResponse is the response struct for api ListIpv4Gateways +type ListIpv4GatewaysResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount string `json:"TotalCount" xml:"TotalCount"` + Ipv4GatewayModels []Ipv4GatewayModelsItem `json:"Ipv4GatewayModels" xml:"Ipv4GatewayModels"` +} + +// CreateListIpv4GatewaysRequest creates a request to invoke ListIpv4Gateways API +func CreateListIpv4GatewaysRequest() (request *ListIpv4GatewaysRequest) { + request = &ListIpv4GatewaysRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ListIpv4Gateways", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateListIpv4GatewaysResponse creates a response to parse from ListIpv4Gateways response +func CreateListIpv4GatewaysResponse() (response *ListIpv4GatewaysResponse) { + response = &ListIpv4GatewaysResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/list_nat_gateway_ecs_metric.go b/services/vpc/list_nat_gateway_ecs_metric.go index bf2aa859e8..ec04166599 100644 --- a/services/vpc/list_nat_gateway_ecs_metric.go +++ b/services/vpc/list_nat_gateway_ecs_metric.go @@ -84,8 +84,8 @@ type ListNatGatewayEcsMetricRequest struct { // ListNatGatewayEcsMetricResponse is the response struct for api ListNatGatewayEcsMetric type ListNatGatewayEcsMetricResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` MaxResults int `json:"MaxResults" xml:"MaxResults"` MetricDataList []MetricData `json:"MetricDataList" xml:"MetricDataList"` } diff --git a/services/vpc/list_tag_resources.go b/services/vpc/list_tag_resources.go index defd1ff61b..fe0364eca0 100644 --- a/services/vpc/list_tag_resources.go +++ b/services/vpc/list_tag_resources.go @@ -91,8 +91,8 @@ type ListTagResourcesTag struct { // ListTagResourcesResponse is the response struct for api ListTagResources type ListTagResourcesResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` TagResources TagResources `json:"TagResources" xml:"TagResources"` } diff --git a/services/vpc/list_traffic_mirror_filters.go b/services/vpc/list_traffic_mirror_filters.go index 4301133662..15475c18b4 100644 --- a/services/vpc/list_traffic_mirror_filters.go +++ b/services/vpc/list_traffic_mirror_filters.go @@ -84,8 +84,8 @@ type ListTrafficMirrorFiltersRequest struct { // ListTrafficMirrorFiltersResponse is the response struct for api ListTrafficMirrorFilters type ListTrafficMirrorFiltersResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` TotalCount string `json:"TotalCount" xml:"TotalCount"` TrafficMirrorFilters []TrafficMirrorFilter `json:"TrafficMirrorFilters" xml:"TrafficMirrorFilters"` } diff --git a/services/vpc/list_traffic_mirror_sessions.go b/services/vpc/list_traffic_mirror_sessions.go index 5353cdacab..9c0e711f39 100644 --- a/services/vpc/list_traffic_mirror_sessions.go +++ b/services/vpc/list_traffic_mirror_sessions.go @@ -90,8 +90,8 @@ type ListTrafficMirrorSessionsRequest struct { // ListTrafficMirrorSessionsResponse is the response struct for api ListTrafficMirrorSessions type ListTrafficMirrorSessionsResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` TotalCount string `json:"TotalCount" xml:"TotalCount"` TrafficMirrorSessions []TrafficMirrorSession `json:"TrafficMirrorSessions" xml:"TrafficMirrorSessions"` } diff --git a/services/vpc/list_vpn_certificate_associations.go b/services/vpc/list_vpn_certificate_associations.go index 2e8180383f..a2a7d8f7d8 100644 --- a/services/vpc/list_vpn_certificate_associations.go +++ b/services/vpc/list_vpn_certificate_associations.go @@ -83,10 +83,10 @@ type ListVpnCertificateAssociationsRequest struct { // ListVpnCertificateAssociationsResponse is the response struct for api ListVpnCertificateAssociations type ListVpnCertificateAssociationsResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` NextToken string `json:"NextToken" xml:"NextToken"` - MaxResults int `json:"MaxResults" xml:"MaxResults"` + RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` VpnCertificateRelations []VpnCertificateRelation `json:"VpnCertificateRelations" xml:"VpnCertificateRelations"` } diff --git a/services/vpc/modify_common_bandwidth_package_pay_type.go b/services/vpc/modify_common_bandwidth_package_pay_type.go index 6e0acb8147..4d02cd7ec7 100644 --- a/services/vpc/modify_common_bandwidth_package_pay_type.go +++ b/services/vpc/modify_common_bandwidth_package_pay_type.go @@ -89,10 +89,10 @@ type ModifyCommonBandwidthPackagePayTypeRequest struct { // ModifyCommonBandwidthPackagePayTypeResponse is the response struct for api ModifyCommonBandwidthPackagePayType type ModifyCommonBandwidthPackagePayTypeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OrderId int64 `json:"OrderId" xml:"OrderId"` Code string `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId int64 `json:"OrderId" xml:"OrderId"` } // CreateModifyCommonBandwidthPackagePayTypeRequest creates a request to invoke ModifyCommonBandwidthPackagePayType API diff --git a/services/vpc/modify_flow_log_attribute.go b/services/vpc/modify_flow_log_attribute.go index 10f11d194c..0a82803bf0 100644 --- a/services/vpc/modify_flow_log_attribute.go +++ b/services/vpc/modify_flow_log_attribute.go @@ -83,8 +83,8 @@ type ModifyFlowLogAttributeRequest struct { // ModifyFlowLogAttributeResponse is the response struct for api ModifyFlowLogAttribute type ModifyFlowLogAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateModifyFlowLogAttributeRequest creates a request to invoke ModifyFlowLogAttribute API diff --git a/services/vpc/modify_i_pv6_translator_bandwidth.go b/services/vpc/modify_i_pv6_translator_bandwidth.go index 579d3c3528..749eb4ef6c 100644 --- a/services/vpc/modify_i_pv6_translator_bandwidth.go +++ b/services/vpc/modify_i_pv6_translator_bandwidth.go @@ -84,8 +84,8 @@ type ModifyIPv6TranslatorBandwidthRequest struct { // ModifyIPv6TranslatorBandwidthResponse is the response struct for api ModifyIPv6TranslatorBandwidth type ModifyIPv6TranslatorBandwidthResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` OrderId string `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateModifyIPv6TranslatorBandwidthRequest creates a request to invoke ModifyIPv6TranslatorBandwidth API diff --git a/services/vpc/modify_route_table_attributes.go b/services/vpc/modify_route_table_attributes.go index 69f910d710..9d754316d2 100644 --- a/services/vpc/modify_route_table_attributes.go +++ b/services/vpc/modify_route_table_attributes.go @@ -87,9 +87,9 @@ type ModifyRouteTableAttributesRequest struct { // ModifyRouteTableAttributesResponse is the response struct for api ModifyRouteTableAttributes type ModifyRouteTableAttributesResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Code string `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` Success bool `json:"Success" xml:"Success"` } diff --git a/services/vpc/modify_router_interface_spec.go b/services/vpc/modify_router_interface_spec.go index 608e61b03a..a794619f61 100644 --- a/services/vpc/modify_router_interface_spec.go +++ b/services/vpc/modify_router_interface_spec.go @@ -83,8 +83,8 @@ type ModifyRouterInterfaceSpecRequest struct { // ModifyRouterInterfaceSpecResponse is the response struct for api ModifyRouterInterfaceSpec type ModifyRouterInterfaceSpecResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Spec string `json:"Spec" xml:"Spec"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateModifyRouterInterfaceSpecRequest creates a request to invoke ModifyRouterInterfaceSpec API diff --git a/services/vpc/modify_ssl_vpn_server.go b/services/vpc/modify_ssl_vpn_server.go index b4b65f7e9e..224e036403 100644 --- a/services/vpc/modify_ssl_vpn_server.go +++ b/services/vpc/modify_ssl_vpn_server.go @@ -92,23 +92,23 @@ type ModifySslVpnServerRequest struct { // ModifySslVpnServerResponse is the response struct for api ModifySslVpnServer type ModifySslVpnServerResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` - SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` + IDaaSInstanceId string `json:"IDaaSInstanceId" xml:"IDaaSInstanceId"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` - Name string `json:"Name" xml:"Name"` + Compress bool `json:"Compress" xml:"Compress"` + Port int `json:"Port" xml:"Port"` LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` - ClientIpPool string `json:"ClientIpPool" xml:"ClientIpPool"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + RegionId string `json:"RegionId" xml:"RegionId"` Cipher string `json:"Cipher" xml:"Cipher"` - Proto string `json:"Proto" xml:"Proto"` - Port int `json:"Port" xml:"Port"` - Compress bool `json:"Compress" xml:"Compress"` + RequestId string `json:"RequestId" xml:"RequestId"` Connections int `json:"Connections" xml:"Connections"` + SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` - InternetIp string `json:"InternetIp" xml:"InternetIp"` + Name string `json:"Name" xml:"Name"` EnableMultiFactorAuth bool `json:"EnableMultiFactorAuth" xml:"EnableMultiFactorAuth"` - IDaaSInstanceId string `json:"IDaaSInstanceId" xml:"IDaaSInstanceId"` + ClientIpPool string `json:"ClientIpPool" xml:"ClientIpPool"` + Proto string `json:"Proto" xml:"Proto"` } // CreateModifySslVpnServerRequest creates a request to invoke ModifySslVpnServer API diff --git a/services/vpc/modify_vpn_connection_attribute.go b/services/vpc/modify_vpn_connection_attribute.go index 2debb2029d..deca56009d 100644 --- a/services/vpc/modify_vpn_connection_attribute.go +++ b/services/vpc/modify_vpn_connection_attribute.go @@ -94,18 +94,18 @@ type ModifyVpnConnectionAttributeRequest struct { // ModifyVpnConnectionAttributeResponse is the response struct for api ModifyVpnConnectionAttribute type ModifyVpnConnectionAttributeResponse struct { *responses.BaseResponse + EnableNatTraversal bool `json:"EnableNatTraversal" xml:"EnableNatTraversal"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + EffectImmediately bool `json:"EffectImmediately" xml:"EffectImmediately"` + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` RequestId string `json:"RequestId" xml:"RequestId"` VpnConnectionId string `json:"VpnConnectionId" xml:"VpnConnectionId"` - CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` - VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` - Name string `json:"Name" xml:"Name"` Description string `json:"Description" xml:"Description"` - LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` RemoteSubnet string `json:"RemoteSubnet" xml:"RemoteSubnet"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` - EffectImmediately bool `json:"EffectImmediately" xml:"EffectImmediately"` + CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` + Name string `json:"Name" xml:"Name"` EnableDpd bool `json:"EnableDpd" xml:"EnableDpd"` - EnableNatTraversal bool `json:"EnableNatTraversal" xml:"EnableNatTraversal"` IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` VcoHealthCheck VcoHealthCheck `json:"VcoHealthCheck" xml:"VcoHealthCheck"` diff --git a/services/vpc/modify_vpn_gateway_attribute.go b/services/vpc/modify_vpn_gateway_attribute.go index 244e572e10..fe771d98b2 100644 --- a/services/vpc/modify_vpn_gateway_attribute.go +++ b/services/vpc/modify_vpn_gateway_attribute.go @@ -85,21 +85,21 @@ type ModifyVpnGatewayAttributeRequest struct { // ModifyVpnGatewayAttributeResponse is the response struct for api ModifyVpnGatewayAttribute type ModifyVpnGatewayAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` VpcId string `json:"VpcId" xml:"VpcId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + Status string `json:"Status" xml:"Status"` InternetIp string `json:"InternetIp" xml:"InternetIp"` - IntranetIp string `json:"IntranetIp" xml:"IntranetIp"` + Spec string `json:"Spec" xml:"Spec"` CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + AutoPropagate bool `json:"AutoPropagate" xml:"AutoPropagate"` + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + IntranetIp string `json:"IntranetIp" xml:"IntranetIp"` EndTime int64 `json:"EndTime" xml:"EndTime"` - Spec string `json:"Spec" xml:"Spec"` - Name string `json:"Name" xml:"Name"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + RequestId string `json:"RequestId" xml:"RequestId"` Description string `json:"Description" xml:"Description"` - Status string `json:"Status" xml:"Status"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` EnableBgp bool `json:"EnableBgp" xml:"EnableBgp"` - AutoPropagate bool `json:"AutoPropagate" xml:"AutoPropagate"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + Name string `json:"Name" xml:"Name"` } // CreateModifyVpnGatewayAttributeRequest creates a request to invoke ModifyVpnGatewayAttribute API diff --git a/services/vpc/open_traffic_mirror_service.go b/services/vpc/open_traffic_mirror_service.go index 757b15f08c..67528a7c81 100644 --- a/services/vpc/open_traffic_mirror_service.go +++ b/services/vpc/open_traffic_mirror_service.go @@ -77,8 +77,8 @@ type OpenTrafficMirrorServiceRequest struct { // OpenTrafficMirrorServiceResponse is the response struct for api OpenTrafficMirrorService type OpenTrafficMirrorServiceResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` OrderId string `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateOpenTrafficMirrorServiceRequest creates a request to invoke OpenTrafficMirrorService API diff --git a/services/vpc/renew_instance.go b/services/vpc/renew_instance.go index fc08a4f12e..b0164b1a1b 100644 --- a/services/vpc/renew_instance.go +++ b/services/vpc/renew_instance.go @@ -83,8 +83,8 @@ type RenewInstanceRequest struct { // RenewInstanceResponse is the response struct for api RenewInstance type RenewInstanceResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` OrderId string `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateRenewInstanceRequest creates a request to invoke RenewInstance API diff --git a/services/vpc/struct_access_point_feature_model.go b/services/vpc/struct_access_point_feature_model.go index 65c0c76679..7abba05bbc 100644 --- a/services/vpc/struct_access_point_feature_model.go +++ b/services/vpc/struct_access_point_feature_model.go @@ -17,6 +17,6 @@ package vpc // AccessPointFeatureModel is a nested struct in vpc response type AccessPointFeatureModel struct { - FeatureKey string `json:"FeatureKey" xml:"FeatureKey"` FeatureValue string `json:"FeatureValue" xml:"FeatureValue"` + FeatureKey string `json:"FeatureKey" xml:"FeatureKey"` } diff --git a/services/vpc/struct_access_point_type.go b/services/vpc/struct_access_point_type.go index 9cf28004dc..305811e103 100644 --- a/services/vpc/struct_access_point_type.go +++ b/services/vpc/struct_access_point_type.go @@ -17,13 +17,13 @@ package vpc // AccessPointType is a nested struct in vpc response type AccessPointType struct { - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` Status string `json:"Status" xml:"Status"` Type string `json:"Type" xml:"Type"` - AttachedRegionNo string `json:"AttachedRegionNo" xml:"AttachedRegionNo"` - Location string `json:"Location" xml:"Location"` HostOperator string `json:"HostOperator" xml:"HostOperator"` - Name string `json:"Name" xml:"Name"` Description string `json:"Description" xml:"Description"` + AttachedRegionNo string `json:"AttachedRegionNo" xml:"AttachedRegionNo"` + Name string `json:"Name" xml:"Name"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + Location string `json:"Location" xml:"Location"` AccessPointFeatureModels AccessPointFeatureModels `json:"AccessPointFeatureModels" xml:"AccessPointFeatureModels"` } diff --git a/services/vpc/struct_acl_entry.go b/services/vpc/struct_acl_entry.go index 463080ef04..295a38884f 100644 --- a/services/vpc/struct_acl_entry.go +++ b/services/vpc/struct_acl_entry.go @@ -17,7 +17,7 @@ package vpc // AclEntry is a nested struct in vpc response type AclEntry struct { + AclEntryComment string `json:"AclEntryComment" xml:"AclEntryComment"` AclEntryId string `json:"AclEntryId" xml:"AclEntryId"` AclEntryIp string `json:"AclEntryIp" xml:"AclEntryIp"` - AclEntryComment string `json:"AclEntryComment" xml:"AclEntryComment"` } diff --git a/services/vpc/struct_associate_vpc.go b/services/vpc/struct_associate_vpc.go index 1f2a4b16e6..d37d03e336 100644 --- a/services/vpc/struct_associate_vpc.go +++ b/services/vpc/struct_associate_vpc.go @@ -17,6 +17,6 @@ package vpc // AssociateVpc is a nested struct in vpc response type AssociateVpc struct { - VpcId string `json:"VpcId" xml:"VpcId"` AssociateStatus string `json:"AssociateStatus" xml:"AssociateStatus"` + VpcId string `json:"VpcId" xml:"VpcId"` } diff --git a/services/vpc/struct_associated_physical_connection.go b/services/vpc/struct_associated_physical_connection.go index d49ec85dcb..4d6dd85e37 100644 --- a/services/vpc/struct_associated_physical_connection.go +++ b/services/vpc/struct_associated_physical_connection.go @@ -17,19 +17,19 @@ package vpc // AssociatedPhysicalConnection is a nested struct in vpc response type AssociatedPhysicalConnection struct { - CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` + Status string `json:"Status" xml:"Status"` VlanInterfaceId string `json:"VlanInterfaceId" xml:"VlanInterfaceId"` + CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` + PeerIpv6GatewayIp string `json:"PeerIpv6GatewayIp" xml:"PeerIpv6GatewayIp"` + LocalIpv6GatewayIp string `json:"LocalIpv6GatewayIp" xml:"LocalIpv6GatewayIp"` + PhysicalConnectionOwnerUid string `json:"PhysicalConnectionOwnerUid" xml:"PhysicalConnectionOwnerUid"` LocalGatewayIp string `json:"LocalGatewayIp" xml:"LocalGatewayIp"` - PeerGatewayIp string `json:"PeerGatewayIp" xml:"PeerGatewayIp"` + PhysicalConnectionBusinessStatus string `json:"PhysicalConnectionBusinessStatus" xml:"PhysicalConnectionBusinessStatus"` PeeringSubnetMask string `json:"PeeringSubnetMask" xml:"PeeringSubnetMask"` - PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + EnableIpv6 bool `json:"EnableIpv6" xml:"EnableIpv6"` PhysicalConnectionStatus string `json:"PhysicalConnectionStatus" xml:"PhysicalConnectionStatus"` - PhysicalConnectionBusinessStatus string `json:"PhysicalConnectionBusinessStatus" xml:"PhysicalConnectionBusinessStatus"` - PhysicalConnectionOwnerUid string `json:"PhysicalConnectionOwnerUid" xml:"PhysicalConnectionOwnerUid"` - VlanId string `json:"VlanId" xml:"VlanId"` - LocalIpv6GatewayIp string `json:"LocalIpv6GatewayIp" xml:"LocalIpv6GatewayIp"` - PeerIpv6GatewayIp string `json:"PeerIpv6GatewayIp" xml:"PeerIpv6GatewayIp"` + PeerGatewayIp string `json:"PeerGatewayIp" xml:"PeerGatewayIp"` PeeringIpv6SubnetMask string `json:"PeeringIpv6SubnetMask" xml:"PeeringIpv6SubnetMask"` - Status string `json:"Status" xml:"Status"` - EnableIpv6 bool `json:"EnableIpv6" xml:"EnableIpv6"` + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + VlanId string `json:"VlanId" xml:"VlanId"` } diff --git a/services/vpc/struct_backend_server.go b/services/vpc/struct_backend_server.go index e22487ae79..4e83565353 100644 --- a/services/vpc/struct_backend_server.go +++ b/services/vpc/struct_backend_server.go @@ -17,8 +17,8 @@ package vpc // BackendServer is a nested struct in vpc response type BackendServer struct { - RegionId string `json:"RegionId" xml:"RegionId"` - ServerId string `json:"ServerId" xml:"ServerId"` ServerIpAddress string `json:"ServerIpAddress" xml:"ServerIpAddress"` + ServerId string `json:"ServerId" xml:"ServerId"` ServerType string `json:"ServerType" xml:"ServerType"` + RegionId string `json:"RegionId" xml:"RegionId"` } diff --git a/services/vpc/struct_bgp_group.go b/services/vpc/struct_bgp_group.go index b5c4e8488e..874466275a 100644 --- a/services/vpc/struct_bgp_group.go +++ b/services/vpc/struct_bgp_group.go @@ -17,18 +17,18 @@ package vpc // BgpGroup is a nested struct in vpc response type BgpGroup struct { - Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` + Status string `json:"Status" xml:"Status"` BgpGroupId string `json:"BgpGroupId" xml:"BgpGroupId"` - PeerAsn string `json:"PeerAsn" xml:"PeerAsn"` - AuthKey string `json:"AuthKey" xml:"AuthKey"` RouterId string `json:"RouterId" xml:"RouterId"` - Status string `json:"Status" xml:"Status"` - Keepalive string `json:"Keepalive" xml:"Keepalive"` + PeerAsn string `json:"PeerAsn" xml:"PeerAsn"` LocalAsn string `json:"LocalAsn" xml:"LocalAsn"` + RegionId string `json:"RegionId" xml:"RegionId"` Hold string `json:"Hold" xml:"Hold"` + IpVersion string `json:"IpVersion" xml:"IpVersion"` + Description string `json:"Description" xml:"Description"` + Keepalive string `json:"Keepalive" xml:"Keepalive"` IsFake string `json:"IsFake" xml:"IsFake"` RouteLimit string `json:"RouteLimit" xml:"RouteLimit"` - RegionId string `json:"RegionId" xml:"RegionId"` - IpVersion string `json:"IpVersion" xml:"IpVersion"` + Name string `json:"Name" xml:"Name"` + AuthKey string `json:"AuthKey" xml:"AuthKey"` } diff --git a/services/vpc/struct_bgp_network.go b/services/vpc/struct_bgp_network.go index 5fe442aeb7..a94579cc65 100644 --- a/services/vpc/struct_bgp_network.go +++ b/services/vpc/struct_bgp_network.go @@ -17,8 +17,8 @@ package vpc // BgpNetwork is a nested struct in vpc response type BgpNetwork struct { + Status string `json:"Status" xml:"Status"` VpcId string `json:"VpcId" xml:"VpcId"` DstCidrBlock string `json:"DstCidrBlock" xml:"DstCidrBlock"` RouterId string `json:"RouterId" xml:"RouterId"` - Status string `json:"Status" xml:"Status"` } diff --git a/services/vpc/struct_bgp_peer.go b/services/vpc/struct_bgp_peer.go index cf4a5a1dd4..131075b956 100644 --- a/services/vpc/struct_bgp_peer.go +++ b/services/vpc/struct_bgp_peer.go @@ -17,23 +17,23 @@ package vpc // BgpPeer is a nested struct in vpc response type BgpPeer struct { - Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` - BgpPeerId string `json:"BgpPeerId" xml:"BgpPeerId"` - BgpGroupId string `json:"BgpGroupId" xml:"BgpGroupId"` + Status string `json:"Status" xml:"Status"` PeerIpAddress string `json:"PeerIpAddress" xml:"PeerIpAddress"` - PeerAsn string `json:"PeerAsn" xml:"PeerAsn"` - AuthKey string `json:"AuthKey" xml:"AuthKey"` RouterId string `json:"RouterId" xml:"RouterId"` + BgpGroupId string `json:"BgpGroupId" xml:"BgpGroupId"` BgpStatus string `json:"BgpStatus" xml:"BgpStatus"` - Status string `json:"Status" xml:"Status"` - Keepalive string `json:"Keepalive" xml:"Keepalive"` + BfdMultiHop int `json:"BfdMultiHop" xml:"BfdMultiHop"` + PeerAsn string `json:"PeerAsn" xml:"PeerAsn"` LocalAsn string `json:"LocalAsn" xml:"LocalAsn"` - Hold string `json:"Hold" xml:"Hold"` - IsFake string `json:"IsFake" xml:"IsFake"` - RouteLimit string `json:"RouteLimit" xml:"RouteLimit"` RegionId string `json:"RegionId" xml:"RegionId"` + BgpPeerId string `json:"BgpPeerId" xml:"BgpPeerId"` EnableBfd bool `json:"EnableBfd" xml:"EnableBfd"` + Hold string `json:"Hold" xml:"Hold"` IpVersion string `json:"IpVersion" xml:"IpVersion"` - BfdMultiHop int `json:"BfdMultiHop" xml:"BfdMultiHop"` + Keepalive string `json:"Keepalive" xml:"Keepalive"` + Description string `json:"Description" xml:"Description"` + RouteLimit string `json:"RouteLimit" xml:"RouteLimit"` + IsFake string `json:"IsFake" xml:"IsFake"` + AuthKey string `json:"AuthKey" xml:"AuthKey"` + Name string `json:"Name" xml:"Name"` } diff --git a/services/vpc/struct_convert_step.go b/services/vpc/struct_convert_step.go index 236b890163..06dc547a89 100644 --- a/services/vpc/struct_convert_step.go +++ b/services/vpc/struct_convert_step.go @@ -17,7 +17,7 @@ package vpc // ConvertStep is a nested struct in vpc response type ConvertStep struct { + StepStartTime string `json:"StepStartTime" xml:"StepStartTime"` StepName string `json:"StepName" xml:"StepName"` StepStatus string `json:"StepStatus" xml:"StepStatus"` - StepStartTime string `json:"StepStartTime" xml:"StepStartTime"` } diff --git a/services/vpc/struct_dhcp_options_set.go b/services/vpc/struct_dhcp_options_set.go index ca780c3e38..e595e3ebc2 100644 --- a/services/vpc/struct_dhcp_options_set.go +++ b/services/vpc/struct_dhcp_options_set.go @@ -17,11 +17,11 @@ package vpc // DhcpOptionsSet is a nested struct in vpc response type DhcpOptionsSet struct { - DhcpOptionsSetName string `json:"DhcpOptionsSetName" xml:"DhcpOptionsSetName"` DhcpOptionsSetDescription string `json:"DhcpOptionsSetDescription" xml:"DhcpOptionsSetDescription"` - OwnerId int64 `json:"OwnerId" xml:"OwnerId"` Status string `json:"Status" xml:"Status"` DhcpOptionsSetId string `json:"DhcpOptionsSetId" xml:"DhcpOptionsSetId"` + DhcpOptionsSetName string `json:"DhcpOptionsSetName" xml:"DhcpOptionsSetName"` AssociateVpcCount int `json:"AssociateVpcCount" xml:"AssociateVpcCount"` + OwnerId int64 `json:"OwnerId" xml:"OwnerId"` DhcpOptions DhcpOptions `json:"DhcpOptions" xml:"DhcpOptions"` } diff --git a/services/vpc/struct_eip_address.go b/services/vpc/struct_eip_address.go index 96ebc60d50..718f8ce801 100644 --- a/services/vpc/struct_eip_address.go +++ b/services/vpc/struct_eip_address.go @@ -24,6 +24,7 @@ type EipAddress struct { Netmode string `json:"Netmode" xml:"Netmode"` ChargeType string `json:"ChargeType" xml:"ChargeType"` Descritpion string `json:"Descritpion" xml:"Descritpion"` + Description string `json:"Description" xml:"Description"` Mode string `json:"Mode" xml:"Mode"` SegmentInstanceId string `json:"SegmentInstanceId" xml:"SegmentInstanceId"` ReservationInternetChargeType string `json:"ReservationInternetChargeType" xml:"ReservationInternetChargeType"` diff --git a/services/vpc/struct_eip_monitor_data_in_describe_new_project_eip_monitor_data.go b/services/vpc/struct_eip_monitor_data_in_describe_new_project_eip_monitor_data.go index f6d52e06d4..91539faa1f 100644 --- a/services/vpc/struct_eip_monitor_data_in_describe_new_project_eip_monitor_data.go +++ b/services/vpc/struct_eip_monitor_data_in_describe_new_project_eip_monitor_data.go @@ -17,10 +17,10 @@ package vpc // EipMonitorDataInDescribeNewProjectEipMonitorData is a nested struct in vpc response type EipMonitorDataInDescribeNewProjectEipMonitorData struct { - EipRX int `json:"EipRX" xml:"EipRX"` EipTX int `json:"EipTX" xml:"EipTX"` - EipFlow int `json:"EipFlow" xml:"EipFlow"` - EipBandwidth int `json:"EipBandwidth" xml:"EipBandwidth"` EipPackets int `json:"EipPackets" xml:"EipPackets"` + EipBandwidth int `json:"EipBandwidth" xml:"EipBandwidth"` TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + EipFlow int `json:"EipFlow" xml:"EipFlow"` + EipRX int `json:"EipRX" xml:"EipRX"` } diff --git a/services/vpc/struct_eip_segment.go b/services/vpc/struct_eip_segment.go index c3048b1f56..d289a008d4 100644 --- a/services/vpc/struct_eip_segment.go +++ b/services/vpc/struct_eip_segment.go @@ -17,12 +17,12 @@ package vpc // EipSegment is a nested struct in vpc response type EipSegment struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Segment string `json:"Segment" xml:"Segment"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` Status string `json:"Status" xml:"Status"` - RegionId string `json:"RegionId" xml:"RegionId"` + Descritpion string `json:"Descritpion" xml:"Descritpion"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` IpCount string `json:"IpCount" xml:"IpCount"` Name string `json:"Name" xml:"Name"` - Descritpion string `json:"Descritpion" xml:"Descritpion"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` + Segment string `json:"Segment" xml:"Segment"` + RegionId string `json:"RegionId" xml:"RegionId"` } diff --git a/services/vpc/struct_express_cloud_connection_type.go b/services/vpc/struct_express_cloud_connection_type.go index fe41cfb80f..15dce17bb8 100644 --- a/services/vpc/struct_express_cloud_connection_type.go +++ b/services/vpc/struct_express_cloud_connection_type.go @@ -17,41 +17,41 @@ package vpc // ExpressCloudConnectionType is a nested struct in vpc response type ExpressCloudConnectionType struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` + ReservationActiveTime string `json:"ReservationActiveTime" xml:"ReservationActiveTime"` + Type string `json:"Type" xml:"Type"` Status string `json:"Status" xml:"Status"` - Name string `json:"Name" xml:"Name"` + ReservationOrderType string `json:"ReservationOrderType" xml:"ReservationOrderType"` + Distance int `json:"Distance" xml:"Distance"` + ConstructionPeriod string `json:"ConstructionPeriod" xml:"ConstructionPeriod"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + ApplicationBandwidth string `json:"ApplicationBandwidth" xml:"ApplicationBandwidth"` + CeIp string `json:"CeIp" xml:"CeIp"` + BgpAs string `json:"BgpAs" xml:"BgpAs"` + IDCardNo string `json:"IDCardNo" xml:"IDCardNo"` + ReservationInternetChargeType string `json:"ReservationInternetChargeType" xml:"ReservationInternetChargeType"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` Description string `json:"Description" xml:"Description"` - GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` - GmtModify string `json:"GmtModify" xml:"GmtModify"` + ReservationBandwidth string `json:"ReservationBandwidth" xml:"ReservationBandwidth"` + ApplicationStatus string `json:"ApplicationStatus" xml:"ApplicationStatus"` PeerCity string `json:"PeerCity" xml:"PeerCity"` PeerLocation string `json:"PeerLocation" xml:"PeerLocation"` - PortType string `json:"PortType" xml:"PortType"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - Distance int `json:"Distance" xml:"Distance"` - RedundantEccId string `json:"RedundantEccId" xml:"RedundantEccId"` + Name string `json:"Name" xml:"Name"` + PeIp string `json:"PeIp" xml:"PeIp"` + ContactMail string `json:"ContactMail" xml:"ContactMail"` + GmtModify string `json:"GmtModify" xml:"GmtModify"` CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` - Isp string `json:"Isp" xml:"Isp"` - Type string `json:"Type" xml:"Type"` - IdcSP string `json:"IdcSP" xml:"IdcSP"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - HasReservationData string `json:"HasReservationData" xml:"HasReservationData"` - ReservationBandwidth string `json:"ReservationBandwidth" xml:"ReservationBandwidth"` - ReservationInternetChargeType string `json:"ReservationInternetChargeType" xml:"ReservationInternetChargeType"` - ReservationActiveTime string `json:"ReservationActiveTime" xml:"ReservationActiveTime"` - ReservationOrderType string `json:"ReservationOrderType" xml:"ReservationOrderType"` ApplicationType string `json:"ApplicationType" xml:"ApplicationType"` - ApplicationId string `json:"ApplicationId" xml:"ApplicationId"` - ApplicationStatus string `json:"ApplicationStatus" xml:"ApplicationStatus"` - ApplicationBandwidth string `json:"ApplicationBandwidth" xml:"ApplicationBandwidth"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RedundantEccId string `json:"RedundantEccId" xml:"RedundantEccId"` + Isp string `json:"Isp" xml:"Isp"` EndTime string `json:"EndTime" xml:"EndTime"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` ContactTel string `json:"ContactTel" xml:"ContactTel"` - ContactMail string `json:"ContactMail" xml:"ContactMail"` - IDCardNo string `json:"IDCardNo" xml:"IDCardNo"` + IdcSP string `json:"IdcSP" xml:"IdcSP"` EstimatedTime string `json:"EstimatedTime" xml:"EstimatedTime"` - BgpAs string `json:"BgpAs" xml:"BgpAs"` - PeIp string `json:"PeIp" xml:"PeIp"` - CeIp string `json:"CeIp" xml:"CeIp"` - ConstructionPeriod string `json:"ConstructionPeriod" xml:"ConstructionPeriod"` + PortType string `json:"PortType" xml:"PortType"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + ApplicationId string `json:"ApplicationId" xml:"ApplicationId"` + HasReservationData string `json:"HasReservationData" xml:"HasReservationData"` VirtualBorderRouterModels VirtualBorderRouterModels `json:"VirtualBorderRouterModels" xml:"VirtualBorderRouterModels"` } diff --git a/services/vpc/struct_forward_table_entry.go b/services/vpc/struct_forward_table_entry.go index e22b086f01..23d72eb09b 100644 --- a/services/vpc/struct_forward_table_entry.go +++ b/services/vpc/struct_forward_table_entry.go @@ -17,13 +17,13 @@ package vpc // ForwardTableEntry is a nested struct in vpc response type ForwardTableEntry struct { - ForwardTableId string `json:"ForwardTableId" xml:"ForwardTableId"` + Status string `json:"Status" xml:"Status"` ForwardEntryId string `json:"ForwardEntryId" xml:"ForwardEntryId"` - ExternalIp string `json:"ExternalIp" xml:"ExternalIp"` - ExternalPort string `json:"ExternalPort" xml:"ExternalPort"` - IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` InternalIp string `json:"InternalIp" xml:"InternalIp"` InternalPort string `json:"InternalPort" xml:"InternalPort"` - Status string `json:"Status" xml:"Status"` ForwardEntryName string `json:"ForwardEntryName" xml:"ForwardEntryName"` + ForwardTableId string `json:"ForwardTableId" xml:"ForwardTableId"` + IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` + ExternalPort string `json:"ExternalPort" xml:"ExternalPort"` + ExternalIp string `json:"ExternalIp" xml:"ExternalIp"` } diff --git a/services/vpc/struct_gateway_ids.go b/services/vpc/struct_gateway_ids.go new file mode 100644 index 0000000000..75fa3994f6 --- /dev/null +++ b/services/vpc/struct_gateway_ids.go @@ -0,0 +1,21 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GatewayIds is a nested struct in vpc response +type GatewayIds struct { + GatewayIds []string `json:"GatewayIds" xml:"GatewayIds"` +} diff --git a/services/vpc/struct_gateway_route_entry_models.go b/services/vpc/struct_gateway_route_entry_models.go new file mode 100644 index 0000000000..2c7bda45a8 --- /dev/null +++ b/services/vpc/struct_gateway_route_entry_models.go @@ -0,0 +1,21 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GatewayRouteEntryModels is a nested struct in vpc response +type GatewayRouteEntryModels struct { + GatewayRouteEntryModelsItem []GatewayRouteEntryModelsItem `json:"GatewayRouteEntryModels" xml:"GatewayRouteEntryModels"` +} diff --git a/services/vpc/struct_gateway_route_entry_models_item.go b/services/vpc/struct_gateway_route_entry_models_item.go new file mode 100644 index 0000000000..5ad006379f --- /dev/null +++ b/services/vpc/struct_gateway_route_entry_models_item.go @@ -0,0 +1,26 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// GatewayRouteEntryModelsItem is a nested struct in vpc response +type GatewayRouteEntryModelsItem struct { + Status string `json:"Status" xml:"Status"` + NextHopId string `json:"NextHopId" xml:"NextHopId"` + Description string `json:"Description" xml:"Description"` + NextHopType string `json:"NextHopType" xml:"NextHopType"` + DestinationCidrBlock string `json:"DestinationCidrBlock" xml:"DestinationCidrBlock"` + Name string `json:"Name" xml:"Name"` +} diff --git a/services/vpc/struct_global_acceleration_instance.go b/services/vpc/struct_global_acceleration_instance.go index 425d6fb606..87c010c135 100644 --- a/services/vpc/struct_global_acceleration_instance.go +++ b/services/vpc/struct_global_acceleration_instance.go @@ -27,11 +27,11 @@ type GlobalAccelerationInstance struct { ServerIpAddress string `json:"ServerIpAddress" xml:"ServerIpAddress"` ReservationBandwidth string `json:"ReservationBandwidth" xml:"ReservationBandwidth"` ReservationActiveTime string `json:"ReservationActiveTime" xml:"ReservationActiveTime"` + ReservationInternetChargeType string `json:"ReservationInternetChargeType" xml:"ReservationInternetChargeType"` RegionId string `json:"RegionId" xml:"RegionId"` AccelerationLocation string `json:"AccelerationLocation" xml:"AccelerationLocation"` - ReservationInternetChargeType string `json:"ReservationInternetChargeType" xml:"ReservationInternetChargeType"` - BandwidthType string `json:"BandwidthType" xml:"BandwidthType"` ReservationOrderType string `json:"ReservationOrderType" xml:"ReservationOrderType"` + BandwidthType string `json:"BandwidthType" xml:"BandwidthType"` Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` GlobalAccelerationInstanceId string `json:"GlobalAccelerationInstanceId" xml:"GlobalAccelerationInstanceId"` diff --git a/services/vpc/struct_ha_vip.go b/services/vpc/struct_ha_vip.go index 165089b198..d59b850038 100644 --- a/services/vpc/struct_ha_vip.go +++ b/services/vpc/struct_ha_vip.go @@ -17,18 +17,18 @@ package vpc // HaVip is a nested struct in vpc response type HaVip struct { + VpcId string `json:"VpcId" xml:"VpcId"` + Status string `json:"Status" xml:"Status"` HaVipId string `json:"HaVipId" xml:"HaVipId"` + AssociatedInstanceType string `json:"AssociatedInstanceType" xml:"AssociatedInstanceType"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` RegionId string `json:"RegionId" xml:"RegionId"` - VpcId string `json:"VpcId" xml:"VpcId"` VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` IpAddress string `json:"IpAddress" xml:"IpAddress"` - Status string `json:"Status" xml:"Status"` - MasterInstanceId string `json:"MasterInstanceId" xml:"MasterInstanceId"` Description string `json:"Description" xml:"Description"` + MasterInstanceId string `json:"MasterInstanceId" xml:"MasterInstanceId"` Name string `json:"Name" xml:"Name"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - AssociatedInstanceType string `json:"AssociatedInstanceType" xml:"AssociatedInstanceType"` - AssociatedInstances AssociatedInstances `json:"AssociatedInstances" xml:"AssociatedInstances"` AssociatedEipAddresses AssociatedEipAddresses `json:"AssociatedEipAddresses" xml:"AssociatedEipAddresses"` + AssociatedInstances AssociatedInstances `json:"AssociatedInstances" xml:"AssociatedInstances"` } diff --git a/services/vpc/struct_i_pv6_translator_acl.go b/services/vpc/struct_i_pv6_translator_acl.go index 90f4eff1a0..3dcb3ed03c 100644 --- a/services/vpc/struct_i_pv6_translator_acl.go +++ b/services/vpc/struct_i_pv6_translator_acl.go @@ -17,6 +17,6 @@ package vpc // IPv6TranslatorAcl is a nested struct in vpc response type IPv6TranslatorAcl struct { - AclId string `json:"AclId" xml:"AclId"` AclName string `json:"AclName" xml:"AclName"` + AclId string `json:"AclId" xml:"AclId"` } diff --git a/services/vpc/struct_instance_renew_attribute.go b/services/vpc/struct_instance_renew_attribute.go index b2c10fe8b6..a99873124d 100644 --- a/services/vpc/struct_instance_renew_attribute.go +++ b/services/vpc/struct_instance_renew_attribute.go @@ -17,8 +17,8 @@ package vpc // InstanceRenewAttribute is a nested struct in vpc response type InstanceRenewAttribute struct { + Duration int `json:"Duration" xml:"Duration"` InstanceId string `json:"InstanceId" xml:"InstanceId"` RenewalStatus string `json:"RenewalStatus" xml:"RenewalStatus"` - Duration int `json:"Duration" xml:"Duration"` PricingCycle string `json:"PricingCycle" xml:"PricingCycle"` } diff --git a/services/vpc/struct_ipsec_server.go b/services/vpc/struct_ipsec_server.go index cdecc0fc25..6d3625b1d2 100644 --- a/services/vpc/struct_ipsec_server.go +++ b/services/vpc/struct_ipsec_server.go @@ -17,21 +17,21 @@ package vpc // IpsecServer is a nested struct in vpc response type IpsecServer struct { - RegionId string `json:"RegionId" xml:"RegionId"` - IpsecServerId string `json:"IpsecServerId" xml:"IpsecServerId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + OnlineClientCount int `json:"OnlineClientCount" xml:"OnlineClientCount"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` IpsecServerName string `json:"IpsecServerName" xml:"IpsecServerName"` + IDaaSInstanceId string `json:"IDaaSInstanceId" xml:"IDaaSInstanceId"` + EffectImmediately bool `json:"EffectImmediately" xml:"EffectImmediately"` VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` - ClientIpPool string `json:"ClientIpPool" xml:"ClientIpPool"` - EffectImmediately bool `json:"EffectImmediately" xml:"EffectImmediately"` + Psk string `json:"Psk" xml:"Psk"` + RegionId string `json:"RegionId" xml:"RegionId"` PskEnabled bool `json:"PskEnabled" xml:"PskEnabled"` + IpsecServerId string `json:"IpsecServerId" xml:"IpsecServerId"` MultiFactorAuthEnabled bool `json:"MultiFactorAuthEnabled" xml:"MultiFactorAuthEnabled"` - Psk string `json:"Psk" xml:"Psk"` - IDaaSInstanceId string `json:"IDaaSInstanceId" xml:"IDaaSInstanceId"` - OnlineClientCount int `json:"OnlineClientCount" xml:"OnlineClientCount"` MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - InternetIp string `json:"InternetIp" xml:"InternetIp"` + ClientIpPool string `json:"ClientIpPool" xml:"ClientIpPool"` IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` } diff --git a/services/vpc/struct_ipv4_gateway_models.go b/services/vpc/struct_ipv4_gateway_models.go new file mode 100644 index 0000000000..663d2e62c6 --- /dev/null +++ b/services/vpc/struct_ipv4_gateway_models.go @@ -0,0 +1,21 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv4GatewayModels is a nested struct in vpc response +type Ipv4GatewayModels struct { + Ipv4GatewayModelsItem []Ipv4GatewayModelsItem `json:"Ipv4GatewayModels" xml:"Ipv4GatewayModels"` +} diff --git a/services/vpc/struct_ipv4_gateway_models_item.go b/services/vpc/struct_ipv4_gateway_models_item.go new file mode 100644 index 0000000000..40a4a08c7c --- /dev/null +++ b/services/vpc/struct_ipv4_gateway_models_item.go @@ -0,0 +1,28 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv4GatewayModelsItem is a nested struct in vpc response +type Ipv4GatewayModelsItem struct { + VpcId string `json:"VpcId" xml:"VpcId"` + Status string `json:"Status" xml:"Status"` + Ipv4GatewayId string `json:"Ipv4GatewayId" xml:"Ipv4GatewayId"` + Ipv4GatewayDescription string `json:"Ipv4GatewayDescription" xml:"Ipv4GatewayDescription"` + Enabled bool `json:"Enabled" xml:"Enabled"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + Ipv4GatewayRouteTableId string `json:"Ipv4GatewayRouteTableId" xml:"Ipv4GatewayRouteTableId"` + Ipv4GatewayName string `json:"Ipv4GatewayName" xml:"Ipv4GatewayName"` +} diff --git a/services/vpc/struct_ipv6_address.go b/services/vpc/struct_ipv6_address.go index ebc993997b..6aac09827f 100644 --- a/services/vpc/struct_ipv6_address.go +++ b/services/vpc/struct_ipv6_address.go @@ -17,18 +17,18 @@ package vpc // Ipv6Address is a nested struct in vpc response type Ipv6Address struct { + VpcId string `json:"VpcId" xml:"VpcId"` + Status string `json:"Status" xml:"Status"` Ipv6AddressId string `json:"Ipv6AddressId" xml:"Ipv6AddressId"` + AllocationTime string `json:"AllocationTime" xml:"AllocationTime"` Ipv6AddressName string `json:"Ipv6AddressName" xml:"Ipv6AddressName"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - VpcId string `json:"VpcId" xml:"VpcId"` - Ipv6GatewayId string `json:"Ipv6GatewayId" xml:"Ipv6GatewayId"` - Ipv6Address string `json:"Ipv6Address" xml:"Ipv6Address"` - AssociatedInstanceId string `json:"AssociatedInstanceId" xml:"AssociatedInstanceId"` AssociatedInstanceType string `json:"AssociatedInstanceType" xml:"AssociatedInstanceType"` - Status string `json:"Status" xml:"Status"` + AssociatedInstanceId string `json:"AssociatedInstanceId" xml:"AssociatedInstanceId"` NetworkType string `json:"NetworkType" xml:"NetworkType"` - RealBandwidth int `json:"RealBandwidth" xml:"RealBandwidth"` - AllocationTime string `json:"AllocationTime" xml:"AllocationTime"` + Ipv6Address string `json:"Ipv6Address" xml:"Ipv6Address"` Ipv6Isp string `json:"Ipv6Isp" xml:"Ipv6Isp"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + Ipv6GatewayId string `json:"Ipv6GatewayId" xml:"Ipv6GatewayId"` + RealBandwidth int `json:"RealBandwidth" xml:"RealBandwidth"` Ipv6InternetBandwidth Ipv6InternetBandwidth `json:"Ipv6InternetBandwidth" xml:"Ipv6InternetBandwidth"` } diff --git a/services/vpc/struct_ipv6_egress_only_rule.go b/services/vpc/struct_ipv6_egress_only_rule.go index b2ac2dca3f..7c8f8c5300 100644 --- a/services/vpc/struct_ipv6_egress_only_rule.go +++ b/services/vpc/struct_ipv6_egress_only_rule.go @@ -17,10 +17,10 @@ package vpc // Ipv6EgressOnlyRule is a nested struct in vpc response type Ipv6EgressOnlyRule struct { + Status string `json:"Status" xml:"Status"` + Description string `json:"Description" xml:"Description"` Ipv6EgressOnlyRuleId string `json:"Ipv6EgressOnlyRuleId" xml:"Ipv6EgressOnlyRuleId"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` InstanceId string `json:"InstanceId" xml:"InstanceId"` - Status string `json:"Status" xml:"Status"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` } diff --git a/services/vpc/struct_ipv6_gateway.go b/services/vpc/struct_ipv6_gateway.go index 606f78bd2d..8e11e434a3 100644 --- a/services/vpc/struct_ipv6_gateway.go +++ b/services/vpc/struct_ipv6_gateway.go @@ -17,15 +17,15 @@ package vpc // Ipv6Gateway is a nested struct in vpc response type Ipv6Gateway struct { - RegionId string `json:"RegionId" xml:"RegionId"` - Ipv6GatewayId string `json:"Ipv6GatewayId" xml:"Ipv6GatewayId"` - VpcId string `json:"VpcId" xml:"VpcId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` Status string `json:"Status" xml:"Status"` - Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` + VpcId string `json:"VpcId" xml:"VpcId"` Spec string `json:"Spec" xml:"Spec"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + Description string `json:"Description" xml:"Description"` + Ipv6GatewayId string `json:"Ipv6GatewayId" xml:"Ipv6GatewayId"` ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + Name string `json:"Name" xml:"Name"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + RegionId string `json:"RegionId" xml:"RegionId"` } diff --git a/services/vpc/struct_ipv6_internet_bandwidth.go b/services/vpc/struct_ipv6_internet_bandwidth.go index f69a295333..ed9c29c136 100644 --- a/services/vpc/struct_ipv6_internet_bandwidth.go +++ b/services/vpc/struct_ipv6_internet_bandwidth.go @@ -17,9 +17,9 @@ package vpc // Ipv6InternetBandwidth is a nested struct in vpc response type Ipv6InternetBandwidth struct { - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` Ipv6InternetBandwidthId string `json:"Ipv6InternetBandwidthId" xml:"Ipv6InternetBandwidthId"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` } diff --git a/services/vpc/struct_ipv6_translator.go b/services/vpc/struct_ipv6_translator.go index 017b1e8c2f..37ff131368 100644 --- a/services/vpc/struct_ipv6_translator.go +++ b/services/vpc/struct_ipv6_translator.go @@ -17,19 +17,19 @@ package vpc // Ipv6Translator is a nested struct in vpc response type Ipv6Translator struct { - Ipv6TranslatorId string `json:"Ipv6TranslatorId" xml:"Ipv6TranslatorId"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` - EndTime int64 `json:"EndTime" xml:"EndTime"` - Spec string `json:"Spec" xml:"Spec"` - Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` Status string `json:"Status" xml:"Status"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + Spec string `json:"Spec" xml:"Spec"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` PayType string `json:"PayType" xml:"PayType"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - AllocateIpv6Addr string `json:"AllocateIpv6Addr" xml:"AllocateIpv6Addr"` + Ipv6TranslatorId string `json:"Ipv6TranslatorId" xml:"Ipv6TranslatorId"` AllocateIpv4Addr string `json:"AllocateIpv4Addr" xml:"AllocateIpv4Addr"` AvailableBandwidth string `json:"AvailableBandwidth" xml:"AvailableBandwidth"` RegionId string `json:"RegionId" xml:"RegionId"` + EndTime int64 `json:"EndTime" xml:"EndTime"` + Description string `json:"Description" xml:"Description"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + AllocateIpv6Addr string `json:"AllocateIpv6Addr" xml:"AllocateIpv6Addr"` + Name string `json:"Name" xml:"Name"` Ipv6TranslatorEntryIds Ipv6TranslatorEntryIds `json:"Ipv6TranslatorEntryIds" xml:"Ipv6TranslatorEntryIds"` } diff --git a/services/vpc/struct_ipv6_translator_entry.go b/services/vpc/struct_ipv6_translator_entry.go index 99c1603372..b5629f815d 100644 --- a/services/vpc/struct_ipv6_translator_entry.go +++ b/services/vpc/struct_ipv6_translator_entry.go @@ -17,19 +17,19 @@ package vpc // Ipv6TranslatorEntry is a nested struct in vpc response type Ipv6TranslatorEntry struct { + AclType string `json:"AclType" xml:"AclType"` + EntryStatus string `json:"EntryStatus" xml:"EntryStatus"` + TransProtocol string `json:"TransProtocol" xml:"TransProtocol"` Ipv6TranslatorId string `json:"Ipv6TranslatorId" xml:"Ipv6TranslatorId"` + EntryDescription string `json:"EntryDescription" xml:"EntryDescription"` Ipv6TranslatorEntryId string `json:"Ipv6TranslatorEntryId" xml:"Ipv6TranslatorEntryId"` - AllocateIpv6Addr string `json:"AllocateIpv6Addr" xml:"AllocateIpv6Addr"` AllocateIpv6Port int `json:"AllocateIpv6Port" xml:"AllocateIpv6Port"` BackendIpv4Addr string `json:"BackendIpv4Addr" xml:"BackendIpv4Addr"` BackendIpv4Port string `json:"BackendIpv4Port" xml:"BackendIpv4Port"` - TransProtocol string `json:"TransProtocol" xml:"TransProtocol"` + RegionId string `json:"RegionId" xml:"RegionId"` EntryBandwidth string `json:"EntryBandwidth" xml:"EntryBandwidth"` - EntryDescription string `json:"EntryDescription" xml:"EntryDescription"` + AclId string `json:"AclId" xml:"AclId"` EntryName string `json:"EntryName" xml:"EntryName"` - EntryStatus string `json:"EntryStatus" xml:"EntryStatus"` AclStatus string `json:"AclStatus" xml:"AclStatus"` - AclType string `json:"AclType" xml:"AclType"` - AclId string `json:"AclId" xml:"AclId"` - RegionId string `json:"RegionId" xml:"RegionId"` + AllocateIpv6Addr string `json:"AllocateIpv6Addr" xml:"AllocateIpv6Addr"` } diff --git a/services/vpc/struct_metric_data.go b/services/vpc/struct_metric_data.go index c59fdd7967..6f347dfbec 100644 --- a/services/vpc/struct_metric_data.go +++ b/services/vpc/struct_metric_data.go @@ -17,13 +17,13 @@ package vpc // MetricData is a nested struct in vpc response type MetricData struct { - NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` - PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` - Timestamp int64 `json:"Timestamp" xml:"Timestamp"` - ActiveSessionNum int64 `json:"ActiveSessionNum" xml:"ActiveSessionNum"` - NewSessionRate int64 `json:"NewSessionRate" xml:"NewSessionRate"` RxBps int64 `json:"RxBps" xml:"RxBps"` + ActiveSessionNum int64 `json:"ActiveSessionNum" xml:"ActiveSessionNum"` TxBps int64 `json:"TxBps" xml:"TxBps"` - RxPps int64 `json:"RxPps" xml:"RxPps"` + NewSessionRate int64 `json:"NewSessionRate" xml:"NewSessionRate"` TxPps int64 `json:"TxPps" xml:"TxPps"` + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` + Timestamp int64 `json:"Timestamp" xml:"Timestamp"` + RxPps int64 `json:"RxPps" xml:"RxPps"` + PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` } diff --git a/services/vpc/struct_network_acl.go b/services/vpc/struct_network_acl.go index 8f86c36f99..e23d01703d 100644 --- a/services/vpc/struct_network_acl.go +++ b/services/vpc/struct_network_acl.go @@ -17,14 +17,14 @@ package vpc // NetworkAcl is a nested struct in vpc response type NetworkAcl struct { - NetworkAclId string `json:"NetworkAclId" xml:"NetworkAclId"` - RegionId string `json:"RegionId" xml:"RegionId"` - NetworkAclName string `json:"NetworkAclName" xml:"NetworkAclName"` - Description string `json:"Description" xml:"Description"` + Status string `json:"Status" xml:"Status"` VpcId string `json:"VpcId" xml:"VpcId"` CreationTime string `json:"CreationTime" xml:"CreationTime"` - Status string `json:"Status" xml:"Status"` + Description string `json:"Description" xml:"Description"` + NetworkAclName string `json:"NetworkAclName" xml:"NetworkAclName"` + NetworkAclId string `json:"NetworkAclId" xml:"NetworkAclId"` OwnerId int64 `json:"OwnerId" xml:"OwnerId"` + RegionId string `json:"RegionId" xml:"RegionId"` IngressAclEntries IngressAclEntriesInDescribeNetworkAcls `json:"IngressAclEntries" xml:"IngressAclEntries"` EgressAclEntries EgressAclEntriesInDescribeNetworkAcls `json:"EgressAclEntries" xml:"EgressAclEntries"` Resources ResourcesInDescribeNetworkAcls `json:"Resources" xml:"Resources"` diff --git a/services/vpc/struct_network_acl_attribute.go b/services/vpc/struct_network_acl_attribute.go index aee04aeb88..3774d56c87 100644 --- a/services/vpc/struct_network_acl_attribute.go +++ b/services/vpc/struct_network_acl_attribute.go @@ -21,11 +21,11 @@ type NetworkAclAttribute struct { RegionId string `json:"RegionId" xml:"RegionId"` NetworkAclId string `json:"NetworkAclId" xml:"NetworkAclId"` CreationTime string `json:"CreationTime" xml:"CreationTime"` - VpcId string `json:"VpcId" xml:"VpcId"` Status string `json:"Status" xml:"Status"` + VpcId string `json:"VpcId" xml:"VpcId"` OwnerId int64 `json:"OwnerId" xml:"OwnerId"` Description string `json:"Description" xml:"Description"` IngressAclEntries IngressAclEntriesInCreateNetworkAcl `json:"IngressAclEntries" xml:"IngressAclEntries"` - Resources ResourcesInCreateNetworkAcl `json:"Resources" xml:"Resources"` EgressAclEntries EgressAclEntriesInCreateNetworkAcl `json:"EgressAclEntries" xml:"EgressAclEntries"` + Resources ResourcesInCreateNetworkAcl `json:"Resources" xml:"Resources"` } diff --git a/services/vpc/struct_next_hop.go b/services/vpc/struct_next_hop.go index c4a26ef88c..fc716890f1 100644 --- a/services/vpc/struct_next_hop.go +++ b/services/vpc/struct_next_hop.go @@ -21,8 +21,8 @@ type NextHop struct { NextHopOppsiteInstanceId string `json:"NextHopOppsiteInstanceId" xml:"NextHopOppsiteInstanceId"` NextHopType string `json:"NextHopType" xml:"NextHopType"` Enabled int `json:"Enabled" xml:"Enabled"` - Weight int `json:"Weight" xml:"Weight"` NextHopRegionId string `json:"NextHopRegionId" xml:"NextHopRegionId"` + Weight int `json:"Weight" xml:"Weight"` NextHopOppsiteType string `json:"NextHopOppsiteType" xml:"NextHopOppsiteType"` NextHopOppsiteRegionId string `json:"NextHopOppsiteRegionId" xml:"NextHopOppsiteRegionId"` NextHopRelatedInfo NextHopRelatedInfo `json:"NextHopRelatedInfo" xml:"NextHopRelatedInfo"` diff --git a/services/vpc/struct_next_hop_related_info.go b/services/vpc/struct_next_hop_related_info.go index 3a24e759e2..3e9b3d61d6 100644 --- a/services/vpc/struct_next_hop_related_info.go +++ b/services/vpc/struct_next_hop_related_info.go @@ -17,7 +17,7 @@ package vpc // NextHopRelatedInfo is a nested struct in vpc response type NextHopRelatedInfo struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` InstanceType string `json:"InstanceType" xml:"InstanceType"` RegionId string `json:"RegionId" xml:"RegionId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` } diff --git a/services/vpc/struct_physical_connection_feature.go b/services/vpc/struct_physical_connection_feature.go index fc808a8bb3..ecdf19f52d 100644 --- a/services/vpc/struct_physical_connection_feature.go +++ b/services/vpc/struct_physical_connection_feature.go @@ -17,6 +17,6 @@ package vpc // PhysicalConnectionFeature is a nested struct in vpc response type PhysicalConnectionFeature struct { - FeatureKey string `json:"FeatureKey" xml:"FeatureKey"` FeatureValue string `json:"FeatureValue" xml:"FeatureValue"` + FeatureKey string `json:"FeatureKey" xml:"FeatureKey"` } diff --git a/services/vpc/struct_physical_connection_loa_type.go b/services/vpc/struct_physical_connection_loa_type.go index ff77afa126..acdcb2353b 100644 --- a/services/vpc/struct_physical_connection_loa_type.go +++ b/services/vpc/struct_physical_connection_loa_type.go @@ -17,15 +17,15 @@ package vpc // PhysicalConnectionLOAType is a nested struct in vpc response type PhysicalConnectionLOAType struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - CompanyName string `json:"CompanyName" xml:"CompanyName"` - CompanyLocalizedName string `json:"CompanyLocalizedName" xml:"CompanyLocalizedName"` - LineType string `json:"LineType" xml:"LineType"` - LineCode string `json:"LineCode" xml:"LineCode"` + Status string `json:"Status" xml:"Status"` LineLabel string `json:"LineLabel" xml:"LineLabel"` + LineCode string `json:"LineCode" xml:"LineCode"` ConstructionTime string `json:"ConstructionTime" xml:"ConstructionTime"` - Status string `json:"Status" xml:"Status"` - LoaUrl string `json:"LoaUrl" xml:"LoaUrl"` SI string `json:"SI" xml:"SI"` + LoaUrl string `json:"LoaUrl" xml:"LoaUrl"` + CompanyLocalizedName string `json:"CompanyLocalizedName" xml:"CompanyLocalizedName"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + LineType string `json:"LineType" xml:"LineType"` + CompanyName string `json:"CompanyName" xml:"CompanyName"` PMInfo PMInfo `json:"PMInfo" xml:"PMInfo"` } diff --git a/services/vpc/struct_physical_connection_type.go b/services/vpc/struct_physical_connection_type.go index f140af8935..36e5aa1ed7 100644 --- a/services/vpc/struct_physical_connection_type.go +++ b/services/vpc/struct_physical_connection_type.go @@ -50,4 +50,5 @@ type PhysicalConnectionType struct { VlanId string `json:"VlanId" xml:"VlanId"` OrderMode string `json:"OrderMode" xml:"OrderMode"` VpconnStatus string `json:"VpconnStatus" xml:"VpconnStatus"` + ExpectSpec string `json:"ExpectSpec" xml:"ExpectSpec"` } diff --git a/services/vpc/struct_pm_info_item.go b/services/vpc/struct_pm_info_item.go index 8d55f16c73..1f29baace3 100644 --- a/services/vpc/struct_pm_info_item.go +++ b/services/vpc/struct_pm_info_item.go @@ -17,9 +17,9 @@ package vpc // PMInfoItem is a nested struct in vpc response type PMInfoItem struct { + PMGender string `json:"PMGender" xml:"PMGender"` + PMCertificateNo string `json:"PMCertificateNo" xml:"PMCertificateNo"` PMName string `json:"PMName" xml:"PMName"` - PMContactInfo string `json:"PMContactInfo" xml:"PMContactInfo"` PMCertificateType string `json:"PMCertificateType" xml:"PMCertificateType"` - PMCertificateNo string `json:"PMCertificateNo" xml:"PMCertificateNo"` - PMGender string `json:"PMGender" xml:"PMGender"` + PMContactInfo string `json:"PMContactInfo" xml:"PMContactInfo"` } diff --git a/services/vpc/struct_public_ip_address.go b/services/vpc/struct_public_ip_address.go index ac542511b8..524c126a4e 100644 --- a/services/vpc/struct_public_ip_address.go +++ b/services/vpc/struct_public_ip_address.go @@ -17,6 +17,6 @@ package vpc // PublicIpAddress is a nested struct in vpc response type PublicIpAddress struct { - AllocationId string `json:"AllocationId" xml:"AllocationId"` IpAddress string `json:"IpAddress" xml:"IpAddress"` + AllocationId string `json:"AllocationId" xml:"AllocationId"` } diff --git a/services/vpc/struct_region.go b/services/vpc/struct_region.go index f757552435..aa7f4f5ad9 100644 --- a/services/vpc/struct_region.go +++ b/services/vpc/struct_region.go @@ -17,7 +17,7 @@ package vpc // Region is a nested struct in vpc response type Region struct { - RegionId string `json:"RegionId" xml:"RegionId"` - LocalName string `json:"LocalName" xml:"LocalName"` RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"` + LocalName string `json:"LocalName" xml:"LocalName"` + RegionId string `json:"RegionId" xml:"RegionId"` } diff --git a/services/vpc/struct_resource.go b/services/vpc/struct_resource.go index 2ad082e781..9fd15d4df6 100644 --- a/services/vpc/struct_resource.go +++ b/services/vpc/struct_resource.go @@ -17,7 +17,7 @@ package vpc // Resource is a nested struct in vpc response type Resource struct { - ResourceId string `json:"ResourceId" xml:"ResourceId"` ResourceType string `json:"ResourceType" xml:"ResourceType"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` Status string `json:"Status" xml:"Status"` } diff --git a/services/vpc/struct_route_table.go b/services/vpc/struct_route_table.go index 0b06d674b6..bd7bea09fb 100644 --- a/services/vpc/struct_route_table.go +++ b/services/vpc/struct_route_table.go @@ -19,8 +19,8 @@ package vpc type RouteTable struct { ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` CreationTime string `json:"CreationTime" xml:"CreationTime"` - RouteTableType string `json:"RouteTableType" xml:"RouteTableType"` Status string `json:"Status" xml:"Status"` + RouteTableType string `json:"RouteTableType" xml:"RouteTableType"` VRouterId string `json:"VRouterId" xml:"VRouterId"` RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` VSwitchIds VSwitchIdsInDescribeRouteTables `json:"VSwitchIds" xml:"VSwitchIds"` diff --git a/services/vpc/struct_router_table_list_type.go b/services/vpc/struct_router_table_list_type.go index 3f6c95fc90..e02c27f49a 100644 --- a/services/vpc/struct_router_table_list_type.go +++ b/services/vpc/struct_router_table_list_type.go @@ -18,16 +18,18 @@ package vpc // RouterTableListType is a nested struct in vpc response type RouterTableListType struct { VpcId string `json:"VpcId" xml:"VpcId"` - RouterType string `json:"RouterType" xml:"RouterType"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` RouterId string `json:"RouterId" xml:"RouterId"` + AssociateType string `json:"AssociateType" xml:"AssociateType"` RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` - RouteTableName string `json:"RouteTableName" xml:"RouteTableName"` - RouteTableType string `json:"RouteTableType" xml:"RouteTableType"` + OwnerId int64 `json:"OwnerId" xml:"OwnerId"` Description string `json:"Description" xml:"Description"` + RouteTableType string `json:"RouteTableType" xml:"RouteTableType"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Status string `json:"Status" xml:"Status"` - OwnerId int64 `json:"OwnerId" xml:"OwnerId"` + RouterType string `json:"RouterType" xml:"RouterType"` + RouteTableName string `json:"RouteTableName" xml:"RouteTableName"` VSwitchIds VSwitchIdsInDescribeRouteTableList `json:"VSwitchIds" xml:"VSwitchIds"` + GatewayIds GatewayIds `json:"GatewayIds" xml:"GatewayIds"` Tags TagsInDescribeRouteTableList `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_snat_table_entry.go b/services/vpc/struct_snat_table_entry.go index 545c910b6e..fd3ce6e0e3 100644 --- a/services/vpc/struct_snat_table_entry.go +++ b/services/vpc/struct_snat_table_entry.go @@ -17,11 +17,11 @@ package vpc // SnatTableEntry is a nested struct in vpc response type SnatTableEntry struct { - SnatTableId string `json:"SnatTableId" xml:"SnatTableId"` - SnatEntryId string `json:"SnatEntryId" xml:"SnatEntryId"` + Status string `json:"Status" xml:"Status"` + SnatEntryName string `json:"SnatEntryName" xml:"SnatEntryName"` SourceVSwitchId string `json:"SourceVSwitchId" xml:"SourceVSwitchId"` SourceCIDR string `json:"SourceCIDR" xml:"SourceCIDR"` + SnatEntryId string `json:"SnatEntryId" xml:"SnatEntryId"` + SnatTableId string `json:"SnatTableId" xml:"SnatTableId"` SnatIp string `json:"SnatIp" xml:"SnatIp"` - Status string `json:"Status" xml:"Status"` - SnatEntryName string `json:"SnatEntryName" xml:"SnatEntryName"` } diff --git a/services/vpc/struct_ssl_vpn_client_cert_key.go b/services/vpc/struct_ssl_vpn_client_cert_key.go index 9061d6f73c..fa8e6ab808 100644 --- a/services/vpc/struct_ssl_vpn_client_cert_key.go +++ b/services/vpc/struct_ssl_vpn_client_cert_key.go @@ -17,11 +17,11 @@ package vpc // SslVpnClientCertKey is a nested struct in vpc response type SslVpnClientCertKey struct { - RegionId string `json:"RegionId" xml:"RegionId"` + Status string `json:"Status" xml:"Status"` + EndTime int64 `json:"EndTime" xml:"EndTime"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` SslVpnClientCertId string `json:"SslVpnClientCertId" xml:"SslVpnClientCertId"` - Name string `json:"Name" xml:"Name"` SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` - EndTime int64 `json:"EndTime" xml:"EndTime"` - Status string `json:"Status" xml:"Status"` + Name string `json:"Name" xml:"Name"` + RegionId string `json:"RegionId" xml:"RegionId"` } diff --git a/services/vpc/struct_ssl_vpn_server.go b/services/vpc/struct_ssl_vpn_server.go index 156e70a181..a8d0558d9f 100644 --- a/services/vpc/struct_ssl_vpn_server.go +++ b/services/vpc/struct_ssl_vpn_server.go @@ -17,21 +17,21 @@ package vpc // SslVpnServer is a nested struct in vpc response type SslVpnServer struct { - RegionId string `json:"RegionId" xml:"RegionId"` - SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` + IDaaSInstanceId string `json:"IDaaSInstanceId" xml:"IDaaSInstanceId"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` - Name string `json:"Name" xml:"Name"` + IDaaSRegionId string `json:"IDaaSRegionId" xml:"IDaaSRegionId"` + Compress bool `json:"Compress" xml:"Compress"` + Port int `json:"Port" xml:"Port"` LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` - ClientIpPool string `json:"ClientIpPool" xml:"ClientIpPool"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + RegionId string `json:"RegionId" xml:"RegionId"` Cipher string `json:"Cipher" xml:"Cipher"` - Proto string `json:"Proto" xml:"Proto"` - Port int `json:"Port" xml:"Port"` - Compress bool `json:"Compress" xml:"Compress"` Connections int `json:"Connections" xml:"Connections"` + SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` - InternetIp string `json:"InternetIp" xml:"InternetIp"` + Name string `json:"Name" xml:"Name"` EnableMultiFactorAuth bool `json:"EnableMultiFactorAuth" xml:"EnableMultiFactorAuth"` - IDaaSInstanceId string `json:"IDaaSInstanceId" xml:"IDaaSInstanceId"` - IDaaSRegionId string `json:"IDaaSRegionId" xml:"IDaaSRegionId"` + ClientIpPool string `json:"ClientIpPool" xml:"ClientIpPool"` + Proto string `json:"Proto" xml:"Proto"` } diff --git a/services/vpc/struct_tag_resource.go b/services/vpc/struct_tag_resource.go index 4c4f2ff7b8..7da69b4417 100644 --- a/services/vpc/struct_tag_resource.go +++ b/services/vpc/struct_tag_resource.go @@ -17,9 +17,9 @@ package vpc // TagResource is a nested struct in vpc response type TagResource struct { - TagKey string `json:"TagKey" xml:"TagKey"` - TagValue string `json:"TagValue" xml:"TagValue"` ResourcId string `json:"ResourcId" xml:"ResourcId"` ResourceType string `json:"ResourceType" xml:"ResourceType"` + TagValue string `json:"TagValue" xml:"TagValue"` ResourceId string `json:"ResourceId" xml:"ResourceId"` + TagKey string `json:"TagKey" xml:"TagKey"` } diff --git a/services/vpc/struct_traffic_mirror_filter.go b/services/vpc/struct_traffic_mirror_filter.go index ba925d0bbf..12aa84d294 100644 --- a/services/vpc/struct_traffic_mirror_filter.go +++ b/services/vpc/struct_traffic_mirror_filter.go @@ -17,10 +17,10 @@ package vpc // TrafficMirrorFilter is a nested struct in vpc response type TrafficMirrorFilter struct { - TrafficMirrorFilterName string `json:"TrafficMirrorFilterName" xml:"TrafficMirrorFilterName"` + TrafficMirrorFilterStatus string `json:"TrafficMirrorFilterStatus" xml:"TrafficMirrorFilterStatus"` TrafficMirrorFilterDescription string `json:"TrafficMirrorFilterDescription" xml:"TrafficMirrorFilterDescription"` TrafficMirrorFilterId string `json:"TrafficMirrorFilterId" xml:"TrafficMirrorFilterId"` - TrafficMirrorFilterStatus string `json:"TrafficMirrorFilterStatus" xml:"TrafficMirrorFilterStatus"` + TrafficMirrorFilterName string `json:"TrafficMirrorFilterName" xml:"TrafficMirrorFilterName"` IngressRules []TrafficMirrorRule `json:"IngressRules" xml:"IngressRules"` EgressRules []TrafficMirrorRule `json:"EgressRules" xml:"EgressRules"` } diff --git a/services/vpc/struct_traffic_mirror_rule.go b/services/vpc/struct_traffic_mirror_rule.go index a5cee2de56..57246e4709 100644 --- a/services/vpc/struct_traffic_mirror_rule.go +++ b/services/vpc/struct_traffic_mirror_rule.go @@ -19,13 +19,13 @@ package vpc type TrafficMirrorRule struct { TrafficMirrorFilterRuleStatus string `json:"TrafficMirrorFilterRuleStatus" xml:"TrafficMirrorFilterRuleStatus"` SourceCidrBlock string `json:"SourceCidrBlock" xml:"SourceCidrBlock"` - Priority int `json:"Priority" xml:"Priority"` Protocol string `json:"Protocol" xml:"Protocol"` + Priority int `json:"Priority" xml:"Priority"` SourcePortRange string `json:"SourcePortRange" xml:"SourcePortRange"` Action string `json:"Action" xml:"Action"` DestinationPortRange string `json:"DestinationPortRange" xml:"DestinationPortRange"` TrafficMirrorFilterId string `json:"TrafficMirrorFilterId" xml:"TrafficMirrorFilterId"` - TrafficMirrorFilterRuleId string `json:"TrafficMirrorFilterRuleId" xml:"TrafficMirrorFilterRuleId"` TrafficDirection string `json:"TrafficDirection" xml:"TrafficDirection"` + TrafficMirrorFilterRuleId string `json:"TrafficMirrorFilterRuleId" xml:"TrafficMirrorFilterRuleId"` DestinationCidrBlock string `json:"DestinationCidrBlock" xml:"DestinationCidrBlock"` } diff --git a/services/vpc/struct_traffic_mirror_session.go b/services/vpc/struct_traffic_mirror_session.go index 6e777f86f9..971db377ad 100644 --- a/services/vpc/struct_traffic_mirror_session.go +++ b/services/vpc/struct_traffic_mirror_session.go @@ -17,17 +17,17 @@ package vpc // TrafficMirrorSession is a nested struct in vpc response type TrafficMirrorSession struct { - TrafficMirrorSessionName string `json:"TrafficMirrorSessionName" xml:"TrafficMirrorSessionName"` - TrafficMirrorSessionDescription string `json:"TrafficMirrorSessionDescription" xml:"TrafficMirrorSessionDescription"` - TrafficMirrorSessionId string `json:"TrafficMirrorSessionId" xml:"TrafficMirrorSessionId"` - TrafficMirrorSessionStatus string `json:"TrafficMirrorSessionStatus" xml:"TrafficMirrorSessionStatus"` TrafficMirrorTargetId string `json:"TrafficMirrorTargetId" xml:"TrafficMirrorTargetId"` - TrafficMirrorTargetType string `json:"TrafficMirrorTargetType" xml:"TrafficMirrorTargetType"` - TrafficMirrorFilterId string `json:"TrafficMirrorFilterId" xml:"TrafficMirrorFilterId"` - VirtualNetworkId int `json:"VirtualNetworkId" xml:"VirtualNetworkId"` + TrafficMirrorSessionId string `json:"TrafficMirrorSessionId" xml:"TrafficMirrorSessionId"` Priority int `json:"Priority" xml:"Priority"` - Enabled bool `json:"Enabled" xml:"Enabled"` + TrafficMirrorTargetType string `json:"TrafficMirrorTargetType" xml:"TrafficMirrorTargetType"` PacketLength int `json:"PacketLength" xml:"PacketLength"` + TrafficMirrorSessionDescription string `json:"TrafficMirrorSessionDescription" xml:"TrafficMirrorSessionDescription"` + TrafficMirrorSessionStatus string `json:"TrafficMirrorSessionStatus" xml:"TrafficMirrorSessionStatus"` + Enabled bool `json:"Enabled" xml:"Enabled"` TrafficMirrorSessionBusinessStatus string `json:"TrafficMirrorSessionBusinessStatus" xml:"TrafficMirrorSessionBusinessStatus"` + VirtualNetworkId int `json:"VirtualNetworkId" xml:"VirtualNetworkId"` + TrafficMirrorFilterId string `json:"TrafficMirrorFilterId" xml:"TrafficMirrorFilterId"` + TrafficMirrorSessionName string `json:"TrafficMirrorSessionName" xml:"TrafficMirrorSessionName"` TrafficMirrorSourceIds []string `json:"TrafficMirrorSourceIds" xml:"TrafficMirrorSourceIds"` } diff --git a/services/vpc/struct_v_router.go b/services/vpc/struct_v_router.go index e681e47022..4a04d1b9be 100644 --- a/services/vpc/struct_v_router.go +++ b/services/vpc/struct_v_router.go @@ -17,11 +17,11 @@ package vpc // VRouter is a nested struct in vpc response type VRouter struct { - RegionId string `json:"RegionId" xml:"RegionId"` VpcId string `json:"VpcId" xml:"VpcId"` - VRouterName string `json:"VRouterName" xml:"VRouterName"` - Description string `json:"Description" xml:"Description"` - VRouterId string `json:"VRouterId" xml:"VRouterId"` CreationTime string `json:"CreationTime" xml:"CreationTime"` + VRouterId string `json:"VRouterId" xml:"VRouterId"` + Description string `json:"Description" xml:"Description"` + VRouterName string `json:"VRouterName" xml:"VRouterName"` + RegionId string `json:"RegionId" xml:"RegionId"` RouteTableIds RouteTableIds `json:"RouteTableIds" xml:"RouteTableIds"` } diff --git a/services/vpc/struct_v_switch.go b/services/vpc/struct_v_switch.go index bf3cc22a80..f3be5605a3 100644 --- a/services/vpc/struct_v_switch.go +++ b/services/vpc/struct_v_switch.go @@ -17,20 +17,20 @@ package vpc // VSwitch is a nested struct in vpc response type VSwitch struct { - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` VpcId string `json:"VpcId" xml:"VpcId"` Status string `json:"Status" xml:"Status"` - CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` - Ipv6CidrBlock string `json:"Ipv6CidrBlock" xml:"Ipv6CidrBlock"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - AvailableIpAddressCount int64 `json:"AvailableIpAddressCount" xml:"AvailableIpAddressCount"` - Description string `json:"Description" xml:"Description"` - VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` CreationTime string `json:"CreationTime" xml:"CreationTime"` IsDefault bool `json:"IsDefault" xml:"IsDefault"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + AvailableIpAddressCount int64 `json:"AvailableIpAddressCount" xml:"AvailableIpAddressCount"` NetworkAclId string `json:"NetworkAclId" xml:"NetworkAclId"` OwnerId int64 `json:"OwnerId" xml:"OwnerId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + Description string `json:"Description" xml:"Description"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Ipv6CidrBlock string `json:"Ipv6CidrBlock" xml:"Ipv6CidrBlock"` + VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` ShareType string `json:"ShareType" xml:"ShareType"` RouteTable RouteTable `json:"RouteTable" xml:"RouteTable"` Tags TagsInDescribeVSwitches `json:"Tags" xml:"Tags"` diff --git a/services/vpc/struct_virtual_border_router_for_physical_connection_type.go b/services/vpc/struct_virtual_border_router_for_physical_connection_type.go index fa80edd2ff..167402b46c 100644 --- a/services/vpc/struct_virtual_border_router_for_physical_connection_type.go +++ b/services/vpc/struct_virtual_border_router_for_physical_connection_type.go @@ -17,27 +17,27 @@ package vpc // VirtualBorderRouterForPhysicalConnectionType is a nested struct in vpc response type VirtualBorderRouterForPhysicalConnectionType struct { - VbrId string `json:"VbrId" xml:"VbrId"` - VbrOwnerUid int64 `json:"VbrOwnerUid" xml:"VbrOwnerUid"` - EccId string `json:"EccId" xml:"EccId"` - Type string `json:"Type" xml:"Type"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` - TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` - RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` - VlanId int `json:"VlanId" xml:"VlanId"` Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Type string `json:"Type" xml:"Type"` + PeerIpv6GatewayIp string `json:"PeerIpv6GatewayIp" xml:"PeerIpv6GatewayIp"` CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` + LocalIpv6GatewayIp string `json:"LocalIpv6GatewayIp" xml:"LocalIpv6GatewayIp"` + PConnVbrExpireTime string `json:"PConnVbrExpireTime" xml:"PConnVbrExpireTime"` LocalGatewayIp string `json:"LocalGatewayIp" xml:"LocalGatewayIp"` - PeerGatewayIp string `json:"PeerGatewayIp" xml:"PeerGatewayIp"` + BandwidthStatus string `json:"BandwidthStatus" xml:"BandwidthStatus"` + ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` + VbrOwnerUid int64 `json:"VbrOwnerUid" xml:"VbrOwnerUid"` PeeringSubnetMask string `json:"PeeringSubnetMask" xml:"PeeringSubnetMask"` - PConnVbrChargeType string `json:"PConnVbrChargeType" xml:"PConnVbrChargeType"` - PConnVbrExpireTime string `json:"PConnVbrExpireTime" xml:"PConnVbrExpireTime"` - PConnVbrBussinessStatus string `json:"PConnVbrBussinessStatus" xml:"PConnVbrBussinessStatus"` + EnableIpv6 bool `json:"EnableIpv6" xml:"EnableIpv6"` + EccId string `json:"EccId" xml:"EccId"` Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` - LocalIpv6GatewayIp string `json:"LocalIpv6GatewayIp" xml:"LocalIpv6GatewayIp"` - PeerIpv6GatewayIp string `json:"PeerIpv6GatewayIp" xml:"PeerIpv6GatewayIp"` + RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` + TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` + PConnVbrBussinessStatus string `json:"PConnVbrBussinessStatus" xml:"PConnVbrBussinessStatus"` + PeerGatewayIp string `json:"PeerGatewayIp" xml:"PeerGatewayIp"` PeeringIpv6SubnetMask string `json:"PeeringIpv6SubnetMask" xml:"PeeringIpv6SubnetMask"` - EnableIpv6 bool `json:"EnableIpv6" xml:"EnableIpv6"` - BandwidthStatus string `json:"BandwidthStatus" xml:"BandwidthStatus"` + VbrId string `json:"VbrId" xml:"VbrId"` + PConnVbrChargeType string `json:"PConnVbrChargeType" xml:"PConnVbrChargeType"` + VlanId int `json:"VlanId" xml:"VlanId"` } diff --git a/services/vpc/struct_virtual_border_router_type.go b/services/vpc/struct_virtual_border_router_type.go index 3f3784dc25..076a03421a 100644 --- a/services/vpc/struct_virtual_border_router_type.go +++ b/services/vpc/struct_virtual_border_router_type.go @@ -17,38 +17,38 @@ package vpc // VirtualBorderRouterType is a nested struct in vpc response type VirtualBorderRouterType struct { - VbrId string `json:"VbrId" xml:"VbrId"` CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` + Type string `json:"Type" xml:"Type"` + MinTxInterval int64 `json:"MinTxInterval" xml:"MinTxInterval"` + PeerIpv6GatewayIp string `json:"PeerIpv6GatewayIp" xml:"PeerIpv6GatewayIp"` + PConnVbrExpireTime string `json:"PConnVbrExpireTime" xml:"PConnVbrExpireTime"` + PhysicalConnectionOwnerUid string `json:"PhysicalConnectionOwnerUid" xml:"PhysicalConnectionOwnerUid"` ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` + PhysicalConnectionBusinessStatus string `json:"PhysicalConnectionBusinessStatus" xml:"PhysicalConnectionBusinessStatus"` + Description string `json:"Description" xml:"Description"` TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` - RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` - Status string `json:"Status" xml:"Status"` + MinRxInterval int64 `json:"MinRxInterval" xml:"MinRxInterval"` + PeerGatewayIp string `json:"PeerGatewayIp" xml:"PeerGatewayIp"` + Name string `json:"Name" xml:"Name"` + VbrId string `json:"VbrId" xml:"VbrId"` VlanId int `json:"VlanId" xml:"VlanId"` - CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` - RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` VlanInterfaceId string `json:"VlanInterfaceId" xml:"VlanInterfaceId"` + CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` + LocalIpv6GatewayIp string `json:"LocalIpv6GatewayIp" xml:"LocalIpv6GatewayIp"` LocalGatewayIp string `json:"LocalGatewayIp" xml:"LocalGatewayIp"` - PeerGatewayIp string `json:"PeerGatewayIp" xml:"PeerGatewayIp"` PeeringSubnetMask string `json:"PeeringSubnetMask" xml:"PeeringSubnetMask"` - PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` - PhysicalConnectionStatus string `json:"PhysicalConnectionStatus" xml:"PhysicalConnectionStatus"` - PhysicalConnectionBusinessStatus string `json:"PhysicalConnectionBusinessStatus" xml:"PhysicalConnectionBusinessStatus"` - PhysicalConnectionOwnerUid string `json:"PhysicalConnectionOwnerUid" xml:"PhysicalConnectionOwnerUid"` - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` - Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` - PConnVbrExpireTime string `json:"PConnVbrExpireTime" xml:"PConnVbrExpireTime"` - EccId string `json:"EccId" xml:"EccId"` - Type string `json:"Type" xml:"Type"` - MinTxInterval int64 `json:"MinTxInterval" xml:"MinTxInterval"` - MinRxInterval int64 `json:"MinRxInterval" xml:"MinRxInterval"` - DetectMultiplier int64 `json:"DetectMultiplier" xml:"DetectMultiplier"` - LocalIpv6GatewayIp string `json:"LocalIpv6GatewayIp" xml:"LocalIpv6GatewayIp"` - PeerIpv6GatewayIp string `json:"PeerIpv6GatewayIp" xml:"PeerIpv6GatewayIp"` - PeeringIpv6SubnetMask string `json:"PeeringIpv6SubnetMask" xml:"PeeringIpv6SubnetMask"` EnableIpv6 bool `json:"EnableIpv6" xml:"EnableIpv6"` + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + DetectMultiplier int64 `json:"DetectMultiplier" xml:"DetectMultiplier"` + EccId string `json:"EccId" xml:"EccId"` CloudBoxInstanceId string `json:"CloudBoxInstanceId" xml:"CloudBoxInstanceId"` + RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` + PhysicalConnectionStatus string `json:"PhysicalConnectionStatus" xml:"PhysicalConnectionStatus"` + PeeringIpv6SubnetMask string `json:"PeeringIpv6SubnetMask" xml:"PeeringIpv6SubnetMask"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` PConnVbrChargeType string `json:"PConnVbrChargeType" xml:"PConnVbrChargeType"` + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` AssociatedPhysicalConnections AssociatedPhysicalConnections `json:"AssociatedPhysicalConnections" xml:"AssociatedPhysicalConnections"` AssociatedCens AssociatedCensInDescribeVirtualBorderRouters `json:"AssociatedCens" xml:"AssociatedCens"` } diff --git a/services/vpc/struct_virtual_physical_connection.go b/services/vpc/struct_virtual_physical_connection.go index 4844d5611d..6985a1ac97 100644 --- a/services/vpc/struct_virtual_physical_connection.go +++ b/services/vpc/struct_virtual_physical_connection.go @@ -45,4 +45,5 @@ type VirtualPhysicalConnection struct { OrderMode string `json:"OrderMode" xml:"OrderMode"` AliUid string `json:"AliUid" xml:"AliUid"` VlanId string `json:"VlanId" xml:"VlanId"` + ExpectSpec string `json:"ExpectSpec" xml:"ExpectSpec"` } diff --git a/services/vpc/struct_vpc.go b/services/vpc/struct_vpc.go index b4e3b33c57..943a61107c 100644 --- a/services/vpc/struct_vpc.go +++ b/services/vpc/struct_vpc.go @@ -17,29 +17,29 @@ package vpc // Vpc is a nested struct in vpc response type Vpc struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` VpcId string `json:"VpcId" xml:"VpcId"` + IsDefault bool `json:"IsDefault" xml:"IsDefault"` + AdvancedResource bool `json:"AdvancedResource" xml:"AdvancedResource"` + OwnerId int64 `json:"OwnerId" xml:"OwnerId"` RegionId string `json:"RegionId" xml:"RegionId"` - Status string `json:"Status" xml:"Status"` VpcName string `json:"VpcName" xml:"VpcName"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` - Ipv6CidrBlock string `json:"Ipv6CidrBlock" xml:"Ipv6CidrBlock"` VRouterId string `json:"VRouterId" xml:"VRouterId"` + DhcpOptionsSetStatus string `json:"DhcpOptionsSetStatus" xml:"DhcpOptionsSetStatus"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` Description string `json:"Description" xml:"Description"` - IsDefault bool `json:"IsDefault" xml:"IsDefault"` NetworkAclNum string `json:"NetworkAclNum" xml:"NetworkAclNum"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - CenStatus string `json:"CenStatus" xml:"CenStatus"` - OwnerId int64 `json:"OwnerId" xml:"OwnerId"` SupportAdvancedFeature bool `json:"SupportAdvancedFeature" xml:"SupportAdvancedFeature"` - AdvancedResource bool `json:"AdvancedResource" xml:"AdvancedResource"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` DhcpOptionsSetId string `json:"DhcpOptionsSetId" xml:"DhcpOptionsSetId"` - DhcpOptionsSetStatus string `json:"DhcpOptionsSetStatus" xml:"DhcpOptionsSetStatus"` + Ipv6CidrBlock string `json:"Ipv6CidrBlock" xml:"Ipv6CidrBlock"` + CenStatus string `json:"CenStatus" xml:"CenStatus"` VSwitchIds VSwitchIdsInDescribeVpcs `json:"VSwitchIds" xml:"VSwitchIds"` + SecondaryCidrBlocks SecondaryCidrBlocksInDescribeVpcs `json:"SecondaryCidrBlocks" xml:"SecondaryCidrBlocks"` UserCidrs UserCidrsInDescribeVpcs `json:"UserCidrs" xml:"UserCidrs"` NatGatewayIds NatGatewayIds `json:"NatGatewayIds" xml:"NatGatewayIds"` RouterTableIds RouterTableIds `json:"RouterTableIds" xml:"RouterTableIds"` - SecondaryCidrBlocks SecondaryCidrBlocksInDescribeVpcs `json:"SecondaryCidrBlocks" xml:"SecondaryCidrBlocks"` Tags TagsInDescribeVpcs `json:"Tags" xml:"Tags"` Ipv6CidrBlocks Ipv6CidrBlocksInDescribeVpcs `json:"Ipv6CidrBlocks" xml:"Ipv6CidrBlocks"` } diff --git a/services/vpc/struct_vpn_bgp_config_in_modify_vpn_connection_attribute.go b/services/vpc/struct_vpn_bgp_config_in_modify_vpn_connection_attribute.go index 6f10442fe2..d4de30b2ca 100644 --- a/services/vpc/struct_vpn_bgp_config_in_modify_vpn_connection_attribute.go +++ b/services/vpc/struct_vpn_bgp_config_in_modify_vpn_connection_attribute.go @@ -17,11 +17,11 @@ package vpc // VpnBgpConfigInModifyVpnConnectionAttribute is a nested struct in vpc response type VpnBgpConfigInModifyVpnConnectionAttribute struct { - EnableBgp string `json:"EnableBgp" xml:"EnableBgp"` + Status string `json:"Status" xml:"Status"` + PeerBgpIp string `json:"PeerBgpIp" xml:"PeerBgpIp"` TunnelCidr string `json:"TunnelCidr" xml:"TunnelCidr"` + EnableBgp string `json:"EnableBgp" xml:"EnableBgp"` LocalBgpIp string `json:"LocalBgpIp" xml:"LocalBgpIp"` - PeerBgpIp string `json:"PeerBgpIp" xml:"PeerBgpIp"` - LocalAsn int `json:"LocalAsn" xml:"LocalAsn"` PeerAsn int `json:"PeerAsn" xml:"PeerAsn"` - Status string `json:"Status" xml:"Status"` + LocalAsn int `json:"LocalAsn" xml:"LocalAsn"` } diff --git a/services/vpc/struct_vpn_certificate_relation.go b/services/vpc/struct_vpn_certificate_relation.go index 218166cfd7..7b9f911b4c 100644 --- a/services/vpc/struct_vpn_certificate_relation.go +++ b/services/vpc/struct_vpn_certificate_relation.go @@ -17,9 +17,9 @@ package vpc // VpnCertificateRelation is a nested struct in vpc response type VpnCertificateRelation struct { - RegionId string `json:"RegionId" xml:"RegionId"` VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` - CertificateId string `json:"CertificateId" xml:"CertificateId"` CertificateType string `json:"CertificateType" xml:"CertificateType"` + CertificateId string `json:"CertificateId" xml:"CertificateId"` AssociationTime string `json:"AssociationTime" xml:"AssociationTime"` + RegionId string `json:"RegionId" xml:"RegionId"` } diff --git a/services/vpc/struct_vpn_connection_config.go b/services/vpc/struct_vpn_connection_config.go index accc63c371..5835e54236 100644 --- a/services/vpc/struct_vpn_connection_config.go +++ b/services/vpc/struct_vpn_connection_config.go @@ -17,10 +17,10 @@ package vpc // VpnConnectionConfig is a nested struct in vpc response type VpnConnectionConfig struct { - LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` - RemoteSubnet string `json:"RemoteSubnet" xml:"RemoteSubnet"` - Local string `json:"Local" xml:"Local"` Remote string `json:"Remote" xml:"Remote"` + Local string `json:"Local" xml:"Local"` + RemoteSubnet string `json:"RemoteSubnet" xml:"RemoteSubnet"` + LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` } diff --git a/services/vpc/struct_vpn_pbr_route_entry.go b/services/vpc/struct_vpn_pbr_route_entry.go index 3abcc15204..eb644369ea 100644 --- a/services/vpc/struct_vpn_pbr_route_entry.go +++ b/services/vpc/struct_vpn_pbr_route_entry.go @@ -17,11 +17,11 @@ package vpc // VpnPbrRouteEntry is a nested struct in vpc response type VpnPbrRouteEntry struct { - VpnInstanceId string `json:"VpnInstanceId" xml:"VpnInstanceId"` - RouteSource string `json:"RouteSource" xml:"RouteSource"` - RouteDest string `json:"RouteDest" xml:"RouteDest"` NextHop string `json:"NextHop" xml:"NextHop"` Weight int `json:"Weight" xml:"Weight"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + RouteDest string `json:"RouteDest" xml:"RouteDest"` State string `json:"State" xml:"State"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + VpnInstanceId string `json:"VpnInstanceId" xml:"VpnInstanceId"` + RouteSource string `json:"RouteSource" xml:"RouteSource"` } diff --git a/services/vpc/struct_vpn_route_entry.go b/services/vpc/struct_vpn_route_entry.go index 278b5e0481..aa1d352dd7 100644 --- a/services/vpc/struct_vpn_route_entry.go +++ b/services/vpc/struct_vpn_route_entry.go @@ -17,14 +17,14 @@ package vpc // VpnRouteEntry is a nested struct in vpc response type VpnRouteEntry struct { - VpnInstanceId string `json:"VpnInstanceId" xml:"VpnInstanceId"` - RouteDest string `json:"RouteDest" xml:"RouteDest"` + RouteEntryType string `json:"RouteEntryType" xml:"RouteEntryType"` NextHop string `json:"NextHop" xml:"NextHop"` Weight int `json:"Weight" xml:"Weight"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` - State string `json:"State" xml:"State"` + RouteDest string `json:"RouteDest" xml:"RouteDest"` AsPath string `json:"AsPath" xml:"AsPath"` + State string `json:"State" xml:"State"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` Community string `json:"Community" xml:"Community"` Source string `json:"Source" xml:"Source"` - RouteEntryType string `json:"RouteEntryType" xml:"RouteEntryType"` + VpnInstanceId string `json:"VpnInstanceId" xml:"VpnInstanceId"` } diff --git a/services/vpc/update_gateway_route_table_entry_attribute.go b/services/vpc/update_gateway_route_table_entry_attribute.go new file mode 100644 index 0000000000..fd3831cbc3 --- /dev/null +++ b/services/vpc/update_gateway_route_table_entry_attribute.go @@ -0,0 +1,110 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateGatewayRouteTableEntryAttribute invokes the vpc.UpdateGatewayRouteTableEntryAttribute API synchronously +func (client *Client) UpdateGatewayRouteTableEntryAttribute(request *UpdateGatewayRouteTableEntryAttributeRequest) (response *UpdateGatewayRouteTableEntryAttributeResponse, err error) { + response = CreateUpdateGatewayRouteTableEntryAttributeResponse() + err = client.DoAction(request, response) + return +} + +// UpdateGatewayRouteTableEntryAttributeWithChan invokes the vpc.UpdateGatewayRouteTableEntryAttribute API asynchronously +func (client *Client) UpdateGatewayRouteTableEntryAttributeWithChan(request *UpdateGatewayRouteTableEntryAttributeRequest) (<-chan *UpdateGatewayRouteTableEntryAttributeResponse, <-chan error) { + responseChan := make(chan *UpdateGatewayRouteTableEntryAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateGatewayRouteTableEntryAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateGatewayRouteTableEntryAttributeWithCallback invokes the vpc.UpdateGatewayRouteTableEntryAttribute API asynchronously +func (client *Client) UpdateGatewayRouteTableEntryAttributeWithCallback(request *UpdateGatewayRouteTableEntryAttributeRequest, callback func(response *UpdateGatewayRouteTableEntryAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateGatewayRouteTableEntryAttributeResponse + var err error + defer close(result) + response, err = client.UpdateGatewayRouteTableEntryAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateGatewayRouteTableEntryAttributeRequest is the request struct for api UpdateGatewayRouteTableEntryAttribute +type UpdateGatewayRouteTableEntryAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + IPv4GatewayRouteTableId string `position:"Query" name:"IPv4GatewayRouteTableId"` + NextHopId string `position:"Query" name:"NextHopId"` + NextHopType string `position:"Query" name:"NextHopType"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + DestinationCidrBlock string `position:"Query" name:"DestinationCidrBlock"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` +} + +// UpdateGatewayRouteTableEntryAttributeResponse is the response struct for api UpdateGatewayRouteTableEntryAttribute +type UpdateGatewayRouteTableEntryAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateGatewayRouteTableEntryAttributeRequest creates a request to invoke UpdateGatewayRouteTableEntryAttribute API +func CreateUpdateGatewayRouteTableEntryAttributeRequest() (request *UpdateGatewayRouteTableEntryAttributeRequest) { + request = &UpdateGatewayRouteTableEntryAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "UpdateGatewayRouteTableEntryAttribute", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateUpdateGatewayRouteTableEntryAttributeResponse creates a response to parse from UpdateGatewayRouteTableEntryAttribute response +func CreateUpdateGatewayRouteTableEntryAttributeResponse() (response *UpdateGatewayRouteTableEntryAttributeResponse) { + response = &UpdateGatewayRouteTableEntryAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/update_ipv4_gateway_attribute.go b/services/vpc/update_ipv4_gateway_attribute.go new file mode 100644 index 0000000000..fcf3f97a62 --- /dev/null +++ b/services/vpc/update_ipv4_gateway_attribute.go @@ -0,0 +1,107 @@ +package vpc + +//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. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UpdateIpv4GatewayAttribute invokes the vpc.UpdateIpv4GatewayAttribute API synchronously +func (client *Client) UpdateIpv4GatewayAttribute(request *UpdateIpv4GatewayAttributeRequest) (response *UpdateIpv4GatewayAttributeResponse, err error) { + response = CreateUpdateIpv4GatewayAttributeResponse() + err = client.DoAction(request, response) + return +} + +// UpdateIpv4GatewayAttributeWithChan invokes the vpc.UpdateIpv4GatewayAttribute API asynchronously +func (client *Client) UpdateIpv4GatewayAttributeWithChan(request *UpdateIpv4GatewayAttributeRequest) (<-chan *UpdateIpv4GatewayAttributeResponse, <-chan error) { + responseChan := make(chan *UpdateIpv4GatewayAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateIpv4GatewayAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateIpv4GatewayAttributeWithCallback invokes the vpc.UpdateIpv4GatewayAttribute API asynchronously +func (client *Client) UpdateIpv4GatewayAttributeWithCallback(request *UpdateIpv4GatewayAttributeRequest, callback func(response *UpdateIpv4GatewayAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateIpv4GatewayAttributeResponse + var err error + defer close(result) + response, err = client.UpdateIpv4GatewayAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateIpv4GatewayAttributeRequest is the request struct for api UpdateIpv4GatewayAttribute +type UpdateIpv4GatewayAttributeRequest struct { + *requests.RpcRequest + Ipv4GatewayDescription string `position:"Query" name:"Ipv4GatewayDescription"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Ipv4GatewayName string `position:"Query" name:"Ipv4GatewayName"` + Ipv4GatewayId string `position:"Query" name:"Ipv4GatewayId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// UpdateIpv4GatewayAttributeResponse is the response struct for api UpdateIpv4GatewayAttribute +type UpdateIpv4GatewayAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateIpv4GatewayAttributeRequest creates a request to invoke UpdateIpv4GatewayAttribute API +func CreateUpdateIpv4GatewayAttributeRequest() (request *UpdateIpv4GatewayAttributeRequest) { + request = &UpdateIpv4GatewayAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "UpdateIpv4GatewayAttribute", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateUpdateIpv4GatewayAttributeResponse creates a response to parse from UpdateIpv4GatewayAttribute response +func CreateUpdateIpv4GatewayAttributeResponse() (response *UpdateIpv4GatewayAttributeResponse) { + response = &UpdateIpv4GatewayAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/update_network_acl_entries.go b/services/vpc/update_network_acl_entries.go index 16f776cce9..6606faed22 100644 --- a/services/vpc/update_network_acl_entries.go +++ b/services/vpc/update_network_acl_entries.go @@ -84,26 +84,26 @@ type UpdateNetworkAclEntriesRequest struct { // UpdateNetworkAclEntriesEgressAclEntries is a repeated param struct in UpdateNetworkAclEntriesRequest type UpdateNetworkAclEntriesEgressAclEntries struct { - NetworkAclEntryName string `name:"NetworkAclEntryName"` NetworkAclEntryId string `name:"NetworkAclEntryId"` + EntryType string `name:"EntryType"` + NetworkAclEntryName string `name:"NetworkAclEntryName"` Policy string `name:"Policy"` + Description string `name:"Description"` Protocol string `name:"Protocol"` DestinationCidrIp string `name:"DestinationCidrIp"` Port string `name:"Port"` - EntryType string `name:"EntryType"` - Description string `name:"Description"` } // UpdateNetworkAclEntriesIngressAclEntries is a repeated param struct in UpdateNetworkAclEntriesRequest type UpdateNetworkAclEntriesIngressAclEntries struct { - NetworkAclEntryName string `name:"NetworkAclEntryName"` NetworkAclEntryId string `name:"NetworkAclEntryId"` + EntryType string `name:"EntryType"` + NetworkAclEntryName string `name:"NetworkAclEntryName"` Policy string `name:"Policy"` - Protocol string `name:"Protocol"` SourceCidrIp string `name:"SourceCidrIp"` - Port string `name:"Port"` - EntryType string `name:"EntryType"` Description string `name:"Description"` + Protocol string `name:"Protocol"` + Port string `name:"Port"` } // UpdateNetworkAclEntriesResponse is the response struct for api UpdateNetworkAclEntries diff --git a/services/vpc/update_virtual_physical_connection.go b/services/vpc/update_virtual_physical_connection.go index 15d30626fc..69e0ef15a5 100644 --- a/services/vpc/update_virtual_physical_connection.go +++ b/services/vpc/update_virtual_physical_connection.go @@ -75,6 +75,7 @@ type UpdateVirtualPhysicalConnectionRequest struct { VlanId requests.Integer `position:"Query" name:"VlanId"` Token string `position:"Query" name:"Token"` InstanceId string `position:"Query" name:"InstanceId"` + ExpectSpec string `position:"Query" name:"ExpectSpec"` } // UpdateVirtualPhysicalConnectionResponse is the response struct for api UpdateVirtualPhysicalConnection