diff --git a/ChangeLog.txt b/ChangeLog.txt index 686a9eb08c..15380883de 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-11-27 Version: v1.63.57 +- Generated 2016-04-28 for `Vpc`. +- Support CreationTime for ListTrafficMirrorFilters. + 2024-11-26 Version: v1.63.56 - Generated 2022-01-01 for `quickbi-public`. - Add SmartqQueryAbility api. diff --git a/services/vpc/add_public_ip_address_pool_cidr_block.go b/services/vpc/add_public_ip_address_pool_cidr_block.go index 00ad42cf93..2d5336ecb4 100644 --- a/services/vpc/add_public_ip_address_pool_cidr_block.go +++ b/services/vpc/add_public_ip_address_pool_cidr_block.go @@ -86,6 +86,7 @@ type AddPublicIpAddressPoolCidrBlockRequest struct { type AddPublicIpAddressPoolCidrBlockResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` } // CreateAddPublicIpAddressPoolCidrBlockRequest creates a request to invoke AddPublicIpAddressPoolCidrBlock API diff --git a/services/vpc/allocate_ipv6_address.go b/services/vpc/allocate_ipv6_address.go new file mode 100644 index 0000000000..34b1d6dbe9 --- /dev/null +++ b/services/vpc/allocate_ipv6_address.go @@ -0,0 +1,120 @@ +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" +) + +// AllocateIpv6Address invokes the vpc.AllocateIpv6Address API synchronously +func (client *Client) AllocateIpv6Address(request *AllocateIpv6AddressRequest) (response *AllocateIpv6AddressResponse, err error) { + response = CreateAllocateIpv6AddressResponse() + err = client.DoAction(request, response) + return +} + +// AllocateIpv6AddressWithChan invokes the vpc.AllocateIpv6Address API asynchronously +func (client *Client) AllocateIpv6AddressWithChan(request *AllocateIpv6AddressRequest) (<-chan *AllocateIpv6AddressResponse, <-chan error) { + responseChan := make(chan *AllocateIpv6AddressResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AllocateIpv6Address(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AllocateIpv6AddressWithCallback invokes the vpc.AllocateIpv6Address API asynchronously +func (client *Client) AllocateIpv6AddressWithCallback(request *AllocateIpv6AddressRequest, callback func(response *AllocateIpv6AddressResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AllocateIpv6AddressResponse + var err error + defer close(result) + response, err = client.AllocateIpv6Address(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AllocateIpv6AddressRequest is the request struct for api AllocateIpv6Address +type AllocateIpv6AddressRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Ipv6AddressDescription string `position:"Query" name:"Ipv6AddressDescription"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + AddressType string `position:"Query" name:"AddressType"` + Tag *[]AllocateIpv6AddressTag `position:"Query" name:"Tag" type:"Repeated"` + Ipv6AddressName string `position:"Query" name:"Ipv6AddressName"` + 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"` + VSwitchId string `position:"Query" name:"VSwitchId"` + Ipv6Address string `position:"Query" name:"Ipv6Address"` +} + +// AllocateIpv6AddressTag is a repeated param struct in AllocateIpv6AddressRequest +type AllocateIpv6AddressTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// AllocateIpv6AddressResponse is the response struct for api AllocateIpv6Address +type AllocateIpv6AddressResponse struct { + *responses.BaseResponse + Ipv6AddressId string `json:"Ipv6AddressId" xml:"Ipv6AddressId"` + Ipv6Address string `json:"Ipv6Address" xml:"Ipv6Address"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAllocateIpv6AddressRequest creates a request to invoke AllocateIpv6Address API +func CreateAllocateIpv6AddressRequest() (request *AllocateIpv6AddressRequest) { + request = &AllocateIpv6AddressRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "AllocateIpv6Address", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateAllocateIpv6AddressResponse creates a response to parse from AllocateIpv6Address response +func CreateAllocateIpv6AddressResponse() (response *AllocateIpv6AddressResponse) { + response = &AllocateIpv6AddressResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/allocate_ipv6_internet_bandwidth.go b/services/vpc/allocate_ipv6_internet_bandwidth.go index f6e2cd210c..6710703784 100644 --- a/services/vpc/allocate_ipv6_internet_bandwidth.go +++ b/services/vpc/allocate_ipv6_internet_bandwidth.go @@ -73,6 +73,7 @@ type AllocateIpv6InternetBandwidthRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ClientToken string `position:"Query" name:"ClientToken"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` diff --git a/services/vpc/associate_global_acceleration_instance.go b/services/vpc/associate_global_acceleration_instance.go deleted file mode 100644 index ff58e5a8ce..0000000000 --- a/services/vpc/associate_global_acceleration_instance.go +++ /dev/null @@ -1,106 +0,0 @@ -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" -) - -// AssociateGlobalAccelerationInstance invokes the vpc.AssociateGlobalAccelerationInstance API synchronously -func (client *Client) AssociateGlobalAccelerationInstance(request *AssociateGlobalAccelerationInstanceRequest) (response *AssociateGlobalAccelerationInstanceResponse, err error) { - response = CreateAssociateGlobalAccelerationInstanceResponse() - err = client.DoAction(request, response) - return -} - -// AssociateGlobalAccelerationInstanceWithChan invokes the vpc.AssociateGlobalAccelerationInstance API asynchronously -func (client *Client) AssociateGlobalAccelerationInstanceWithChan(request *AssociateGlobalAccelerationInstanceRequest) (<-chan *AssociateGlobalAccelerationInstanceResponse, <-chan error) { - responseChan := make(chan *AssociateGlobalAccelerationInstanceResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.AssociateGlobalAccelerationInstance(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// AssociateGlobalAccelerationInstanceWithCallback invokes the vpc.AssociateGlobalAccelerationInstance API asynchronously -func (client *Client) AssociateGlobalAccelerationInstanceWithCallback(request *AssociateGlobalAccelerationInstanceRequest, callback func(response *AssociateGlobalAccelerationInstanceResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *AssociateGlobalAccelerationInstanceResponse - var err error - defer close(result) - response, err = client.AssociateGlobalAccelerationInstance(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// AssociateGlobalAccelerationInstanceRequest is the request struct for api AssociateGlobalAccelerationInstance -type AssociateGlobalAccelerationInstanceRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - GlobalAccelerationInstanceId string `position:"Query" name:"GlobalAccelerationInstanceId"` - BackendServerId string `position:"Query" name:"BackendServerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - BackendServerRegionId string `position:"Query" name:"BackendServerRegionId"` - BackendServerType string `position:"Query" name:"BackendServerType"` -} - -// AssociateGlobalAccelerationInstanceResponse is the response struct for api AssociateGlobalAccelerationInstance -type AssociateGlobalAccelerationInstanceResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateAssociateGlobalAccelerationInstanceRequest creates a request to invoke AssociateGlobalAccelerationInstance API -func CreateAssociateGlobalAccelerationInstanceRequest() (request *AssociateGlobalAccelerationInstanceRequest) { - request = &AssociateGlobalAccelerationInstanceRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Vpc", "2016-04-28", "AssociateGlobalAccelerationInstance", "vpc", "openAPI") - request.Method = requests.POST - return -} - -// CreateAssociateGlobalAccelerationInstanceResponse creates a response to parse from AssociateGlobalAccelerationInstance response -func CreateAssociateGlobalAccelerationInstanceResponse() (response *AssociateGlobalAccelerationInstanceResponse) { - response = &AssociateGlobalAccelerationInstanceResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/vpc/associate_network_acl.go b/services/vpc/associate_network_acl.go index 4a1d04b968..fd257370cd 100644 --- a/services/vpc/associate_network_acl.go +++ b/services/vpc/associate_network_acl.go @@ -74,8 +74,10 @@ type AssociateNetworkAclRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ClientToken string `position:"Query" name:"ClientToken"` NetworkAclId string `position:"Query" name:"NetworkAclId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` Resource *[]AssociateNetworkAclResource `position:"Query" name:"Resource" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } diff --git a/services/vpc/associate_route_table_with_gateway.go b/services/vpc/associate_route_table_with_gateway.go index 93d97c0626..3e4d92fe7d 100644 --- a/services/vpc/associate_route_table_with_gateway.go +++ b/services/vpc/associate_route_table_with_gateway.go @@ -75,6 +75,7 @@ type AssociateRouteTableWithGatewayRequest struct { ClientToken string `position:"Query" name:"ClientToken"` GatewayId string `position:"Query" name:"GatewayId"` RouteTableId string `position:"Query" name:"RouteTableId"` + GatewayType string `position:"Query" name:"GatewayType"` DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` diff --git a/services/vpc/associate_vpc_cidr_block.go b/services/vpc/associate_vpc_cidr_block.go index 48a0abb7b5..eb0a89062d 100644 --- a/services/vpc/associate_vpc_cidr_block.go +++ b/services/vpc/associate_vpc_cidr_block.go @@ -80,6 +80,7 @@ type AssociateVpcCidrBlockRequest struct { OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` IPv6CidrBlock string `position:"Query" name:"IPv6CidrBlock"` + SecondaryCidrMask requests.Integer `position:"Query" name:"SecondaryCidrMask"` SecondaryCidrBlock string `position:"Query" name:"SecondaryCidrBlock"` VpcId string `position:"Query" name:"VpcId"` } diff --git a/services/vpc/complete_physical_connection_loa.go b/services/vpc/complete_physical_connection_loa.go index c1cda625c5..f4052927d0 100644 --- a/services/vpc/complete_physical_connection_loa.go +++ b/services/vpc/complete_physical_connection_loa.go @@ -74,6 +74,9 @@ type CompletePhysicalConnectionLOARequest struct { LineCode string `position:"Query" name:"LineCode"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ClientToken string `position:"Query" name:"ClientToken"` + LineSPContactInfo string `position:"Query" name:"LineSPContactInfo"` + FinishWork requests.Boolean `position:"Query" name:"FinishWork"` + LineServiceProvider string `position:"Query" name:"LineServiceProvider"` LineLabel string `position:"Query" name:"LineLabel"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` diff --git a/services/vpc/copy_network_acl_entries.go b/services/vpc/copy_network_acl_entries.go index ae24dc69f2..ca39d64004 100644 --- a/services/vpc/copy_network_acl_entries.go +++ b/services/vpc/copy_network_acl_entries.go @@ -75,7 +75,9 @@ type CopyNetworkAclEntriesRequest struct { ClientToken string `position:"Query" name:"ClientToken"` NetworkAclId string `position:"Query" name:"NetworkAclId"` SourceNetworkAclId string `position:"Query" name:"SourceNetworkAclId"` + 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"` } diff --git a/services/vpc/create_customer_gateway.go b/services/vpc/create_customer_gateway.go index cea65b4367..c1b895d57b 100644 --- a/services/vpc/create_customer_gateway.go +++ b/services/vpc/create_customer_gateway.go @@ -76,6 +76,7 @@ type CreateCustomerGatewayRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ClientToken string `position:"Query" name:"ClientToken"` Description string `position:"Query" name:"Description"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` diff --git a/services/vpc/create_express_connect_traffic_qos.go b/services/vpc/create_express_connect_traffic_qos.go new file mode 100644 index 0000000000..ec0187b346 --- /dev/null +++ b/services/vpc/create_express_connect_traffic_qos.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" +) + +// CreateExpressConnectTrafficQos invokes the vpc.CreateExpressConnectTrafficQos API synchronously +func (client *Client) CreateExpressConnectTrafficQos(request *CreateExpressConnectTrafficQosRequest) (response *CreateExpressConnectTrafficQosResponse, err error) { + response = CreateCreateExpressConnectTrafficQosResponse() + err = client.DoAction(request, response) + return +} + +// CreateExpressConnectTrafficQosWithChan invokes the vpc.CreateExpressConnectTrafficQos API asynchronously +func (client *Client) CreateExpressConnectTrafficQosWithChan(request *CreateExpressConnectTrafficQosRequest) (<-chan *CreateExpressConnectTrafficQosResponse, <-chan error) { + responseChan := make(chan *CreateExpressConnectTrafficQosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateExpressConnectTrafficQos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateExpressConnectTrafficQosWithCallback invokes the vpc.CreateExpressConnectTrafficQos API asynchronously +func (client *Client) CreateExpressConnectTrafficQosWithCallback(request *CreateExpressConnectTrafficQosRequest, callback func(response *CreateExpressConnectTrafficQosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateExpressConnectTrafficQosResponse + var err error + defer close(result) + response, err = client.CreateExpressConnectTrafficQos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateExpressConnectTrafficQosRequest is the request struct for api CreateExpressConnectTrafficQos +type CreateExpressConnectTrafficQosRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + QosName string `position:"Query" name:"QosName"` + QosDescription string `position:"Query" name:"QosDescription"` +} + +// CreateExpressConnectTrafficQosResponse is the response struct for api CreateExpressConnectTrafficQos +type CreateExpressConnectTrafficQosResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + QosId string `json:"QosId" xml:"QosId"` +} + +// CreateCreateExpressConnectTrafficQosRequest creates a request to invoke CreateExpressConnectTrafficQos API +func CreateCreateExpressConnectTrafficQosRequest() (request *CreateExpressConnectTrafficQosRequest) { + request = &CreateExpressConnectTrafficQosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateExpressConnectTrafficQos", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateExpressConnectTrafficQosResponse creates a response to parse from CreateExpressConnectTrafficQos response +func CreateCreateExpressConnectTrafficQosResponse() (response *CreateExpressConnectTrafficQosResponse) { + response = &CreateExpressConnectTrafficQosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/create_express_connect_traffic_qos_queue.go b/services/vpc/create_express_connect_traffic_qos_queue.go new file mode 100644 index 0000000000..2094e3ab3e --- /dev/null +++ b/services/vpc/create_express_connect_traffic_qos_queue.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" +) + +// CreateExpressConnectTrafficQosQueue invokes the vpc.CreateExpressConnectTrafficQosQueue API synchronously +func (client *Client) CreateExpressConnectTrafficQosQueue(request *CreateExpressConnectTrafficQosQueueRequest) (response *CreateExpressConnectTrafficQosQueueResponse, err error) { + response = CreateCreateExpressConnectTrafficQosQueueResponse() + err = client.DoAction(request, response) + return +} + +// CreateExpressConnectTrafficQosQueueWithChan invokes the vpc.CreateExpressConnectTrafficQosQueue API asynchronously +func (client *Client) CreateExpressConnectTrafficQosQueueWithChan(request *CreateExpressConnectTrafficQosQueueRequest) (<-chan *CreateExpressConnectTrafficQosQueueResponse, <-chan error) { + responseChan := make(chan *CreateExpressConnectTrafficQosQueueResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateExpressConnectTrafficQosQueue(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateExpressConnectTrafficQosQueueWithCallback invokes the vpc.CreateExpressConnectTrafficQosQueue API asynchronously +func (client *Client) CreateExpressConnectTrafficQosQueueWithCallback(request *CreateExpressConnectTrafficQosQueueRequest, callback func(response *CreateExpressConnectTrafficQosQueueResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateExpressConnectTrafficQosQueueResponse + var err error + defer close(result) + response, err = client.CreateExpressConnectTrafficQosQueue(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateExpressConnectTrafficQosQueueRequest is the request struct for api CreateExpressConnectTrafficQosQueue +type CreateExpressConnectTrafficQosQueueRequest struct { + *requests.RpcRequest + QueueName string `position:"Query" name:"QueueName"` + ClientToken string `position:"Query" name:"ClientToken"` + QueueDescription string `position:"Query" name:"QueueDescription"` + QosId string `position:"Query" name:"QosId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + QueueType string `position:"Query" name:"QueueType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + BandwidthPercent string `position:"Query" name:"BandwidthPercent"` +} + +// CreateExpressConnectTrafficQosQueueResponse is the response struct for api CreateExpressConnectTrafficQosQueue +type CreateExpressConnectTrafficQosQueueResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + QosId string `json:"QosId" xml:"QosId"` + QueueId string `json:"QueueId" xml:"QueueId"` +} + +// CreateCreateExpressConnectTrafficQosQueueRequest creates a request to invoke CreateExpressConnectTrafficQosQueue API +func CreateCreateExpressConnectTrafficQosQueueRequest() (request *CreateExpressConnectTrafficQosQueueRequest) { + request = &CreateExpressConnectTrafficQosQueueRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateExpressConnectTrafficQosQueue", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateExpressConnectTrafficQosQueueResponse creates a response to parse from CreateExpressConnectTrafficQosQueue response +func CreateCreateExpressConnectTrafficQosQueueResponse() (response *CreateExpressConnectTrafficQosQueueResponse) { + response = &CreateExpressConnectTrafficQosQueueResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/create_express_connect_traffic_qos_rule.go b/services/vpc/create_express_connect_traffic_qos_rule.go new file mode 100644 index 0000000000..3181fc64dc --- /dev/null +++ b/services/vpc/create_express_connect_traffic_qos_rule.go @@ -0,0 +1,119 @@ +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" +) + +// CreateExpressConnectTrafficQosRule invokes the vpc.CreateExpressConnectTrafficQosRule API synchronously +func (client *Client) CreateExpressConnectTrafficQosRule(request *CreateExpressConnectTrafficQosRuleRequest) (response *CreateExpressConnectTrafficQosRuleResponse, err error) { + response = CreateCreateExpressConnectTrafficQosRuleResponse() + err = client.DoAction(request, response) + return +} + +// CreateExpressConnectTrafficQosRuleWithChan invokes the vpc.CreateExpressConnectTrafficQosRule API asynchronously +func (client *Client) CreateExpressConnectTrafficQosRuleWithChan(request *CreateExpressConnectTrafficQosRuleRequest) (<-chan *CreateExpressConnectTrafficQosRuleResponse, <-chan error) { + responseChan := make(chan *CreateExpressConnectTrafficQosRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateExpressConnectTrafficQosRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateExpressConnectTrafficQosRuleWithCallback invokes the vpc.CreateExpressConnectTrafficQosRule API asynchronously +func (client *Client) CreateExpressConnectTrafficQosRuleWithCallback(request *CreateExpressConnectTrafficQosRuleRequest, callback func(response *CreateExpressConnectTrafficQosRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateExpressConnectTrafficQosRuleResponse + var err error + defer close(result) + response, err = client.CreateExpressConnectTrafficQosRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateExpressConnectTrafficQosRuleRequest is the request struct for api CreateExpressConnectTrafficQosRule +type CreateExpressConnectTrafficQosRuleRequest struct { + *requests.RpcRequest + DstCidr string `position:"Query" name:"DstCidr"` + ClientToken string `position:"Query" name:"ClientToken"` + RuleName string `position:"Query" name:"RuleName"` + SrcCidr string `position:"Query" name:"SrcCidr"` + DstIPv6Cidr string `position:"Query" name:"DstIPv6Cidr"` + DstPortRange string `position:"Query" name:"DstPortRange"` + Protocol string `position:"Query" name:"Protocol"` + QosId string `position:"Query" name:"QosId"` + QueueId string `position:"Query" name:"QueueId"` + MatchDscp requests.Integer `position:"Query" name:"MatchDscp"` + RuleDescription string `position:"Query" name:"RuleDescription"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + RemarkingDscp requests.Integer `position:"Query" name:"RemarkingDscp"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Priority requests.Integer `position:"Query" name:"Priority"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SrcPortRange string `position:"Query" name:"SrcPortRange"` + SrcIPv6Cidr string `position:"Query" name:"SrcIPv6Cidr"` +} + +// CreateExpressConnectTrafficQosRuleResponse is the response struct for api CreateExpressConnectTrafficQosRule +type CreateExpressConnectTrafficQosRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + QosId string `json:"QosId" xml:"QosId"` + QueueId string `json:"QueueId" xml:"QueueId"` + RuleId string `json:"RuleId" xml:"RuleId"` +} + +// CreateCreateExpressConnectTrafficQosRuleRequest creates a request to invoke CreateExpressConnectTrafficQosRule API +func CreateCreateExpressConnectTrafficQosRuleRequest() (request *CreateExpressConnectTrafficQosRuleRequest) { + request = &CreateExpressConnectTrafficQosRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateExpressConnectTrafficQosRule", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateExpressConnectTrafficQosRuleResponse creates a response to parse from CreateExpressConnectTrafficQosRule response +func CreateCreateExpressConnectTrafficQosRuleResponse() (response *CreateExpressConnectTrafficQosRuleResponse) { + response = &CreateExpressConnectTrafficQosRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/create_failover_test_job.go b/services/vpc/create_failover_test_job.go new file mode 100644 index 0000000000..b1064ae0c1 --- /dev/null +++ b/services/vpc/create_failover_test_job.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" +) + +// CreateFailoverTestJob invokes the vpc.CreateFailoverTestJob API synchronously +func (client *Client) CreateFailoverTestJob(request *CreateFailoverTestJobRequest) (response *CreateFailoverTestJobResponse, err error) { + response = CreateCreateFailoverTestJobResponse() + err = client.DoAction(request, response) + return +} + +// CreateFailoverTestJobWithChan invokes the vpc.CreateFailoverTestJob API asynchronously +func (client *Client) CreateFailoverTestJobWithChan(request *CreateFailoverTestJobRequest) (<-chan *CreateFailoverTestJobResponse, <-chan error) { + responseChan := make(chan *CreateFailoverTestJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateFailoverTestJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateFailoverTestJobWithCallback invokes the vpc.CreateFailoverTestJob API asynchronously +func (client *Client) CreateFailoverTestJobWithCallback(request *CreateFailoverTestJobRequest, callback func(response *CreateFailoverTestJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateFailoverTestJobResponse + var err error + defer close(result) + response, err = client.CreateFailoverTestJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateFailoverTestJobRequest is the request struct for api CreateFailoverTestJob +type CreateFailoverTestJobRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + JobDuration requests.Integer `position:"Query" name:"JobDuration"` + ResourceId *[]string `position:"Query" name:"ResourceId" 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"` + ResourceType string `position:"Query" name:"ResourceType"` + JobType string `position:"Query" name:"JobType"` + Name string `position:"Query" name:"Name"` +} + +// CreateFailoverTestJobResponse is the response struct for api CreateFailoverTestJob +type CreateFailoverTestJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + JobId string `json:"JobId" xml:"JobId"` +} + +// CreateCreateFailoverTestJobRequest creates a request to invoke CreateFailoverTestJob API +func CreateCreateFailoverTestJobRequest() (request *CreateFailoverTestJobRequest) { + request = &CreateFailoverTestJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateFailoverTestJob", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateFailoverTestJobResponse creates a response to parse from CreateFailoverTestJob response +func CreateCreateFailoverTestJobResponse() (response *CreateFailoverTestJobResponse) { + response = &CreateFailoverTestJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/create_flow_log.go b/services/vpc/create_flow_log.go index a0cc33efba..b43a18173b 100644 --- a/services/vpc/create_flow_log.go +++ b/services/vpc/create_flow_log.go @@ -74,6 +74,7 @@ type CreateFlowLogRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` Description string `position:"Query" name:"Description"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + IpVersion string `position:"Query" name:"IpVersion"` Tag *[]CreateFlowLogTag `position:"Query" name:"Tag" type:"Repeated"` ResourceId string `position:"Query" name:"ResourceId"` ProjectName string `position:"Query" name:"ProjectName"` diff --git a/services/vpc/create_high_reliable_physical_connection.go b/services/vpc/create_high_reliable_physical_connection.go new file mode 100644 index 0000000000..eac789aeeb --- /dev/null +++ b/services/vpc/create_high_reliable_physical_connection.go @@ -0,0 +1,133 @@ +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" +) + +// CreateHighReliablePhysicalConnection invokes the vpc.CreateHighReliablePhysicalConnection API synchronously +func (client *Client) CreateHighReliablePhysicalConnection(request *CreateHighReliablePhysicalConnectionRequest) (response *CreateHighReliablePhysicalConnectionResponse, err error) { + response = CreateCreateHighReliablePhysicalConnectionResponse() + err = client.DoAction(request, response) + return +} + +// CreateHighReliablePhysicalConnectionWithChan invokes the vpc.CreateHighReliablePhysicalConnection API asynchronously +func (client *Client) CreateHighReliablePhysicalConnectionWithChan(request *CreateHighReliablePhysicalConnectionRequest) (<-chan *CreateHighReliablePhysicalConnectionResponse, <-chan error) { + responseChan := make(chan *CreateHighReliablePhysicalConnectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateHighReliablePhysicalConnection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateHighReliablePhysicalConnectionWithCallback invokes the vpc.CreateHighReliablePhysicalConnection API asynchronously +func (client *Client) CreateHighReliablePhysicalConnectionWithCallback(request *CreateHighReliablePhysicalConnectionRequest, callback func(response *CreateHighReliablePhysicalConnectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateHighReliablePhysicalConnectionResponse + var err error + defer close(result) + response, err = client.CreateHighReliablePhysicalConnection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateHighReliablePhysicalConnectionRequest is the request struct for api CreateHighReliablePhysicalConnection +type CreateHighReliablePhysicalConnectionRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PortType string `position:"Query" name:"PortType"` + ClientToken string `position:"Query" name:"ClientToken"` + HighReliableType string `position:"Query" name:"HighReliableType"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]CreateHighReliablePhysicalConnectionTag `position:"Query" name:"Tag" type:"Repeated"` + DryRun string `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ApList *[]CreateHighReliablePhysicalConnectionApList `position:"Query" name:"ApList" type:"Repeated"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + DeviceAdvancedCapacity *[]string `position:"Query" name:"DeviceAdvancedCapacity" type:"Repeated"` +} + +// CreateHighReliablePhysicalConnectionTag is a repeated param struct in CreateHighReliablePhysicalConnectionRequest +type CreateHighReliablePhysicalConnectionTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateHighReliablePhysicalConnectionApList is a repeated param struct in CreateHighReliablePhysicalConnectionRequest +type CreateHighReliablePhysicalConnectionApList struct { + Name string `name:"Name"` + Description string `name:"Description"` + RegionId string `name:"RegionId"` + LineOperator string `name:"LineOperator"` + AccessPointId string `name:"AccessPointId"` + PortNum string `name:"PortNum"` + Type string `name:"Type"` + Bandwidth string `name:"Bandwidth"` + PeerLocation string `name:"PeerLocation"` + CircuitCode string `name:"CircuitCode"` +} + +// CreateHighReliablePhysicalConnectionResponse is the response struct for api CreateHighReliablePhysicalConnection +type CreateHighReliablePhysicalConnectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PhysicalConnectionList PhysicalConnectionList `json:"PhysicalConnectionList" xml:"PhysicalConnectionList"` + ErrorInfoList ErrorInfoList `json:"ErrorInfoList" xml:"ErrorInfoList"` +} + +// CreateCreateHighReliablePhysicalConnectionRequest creates a request to invoke CreateHighReliablePhysicalConnection API +func CreateCreateHighReliablePhysicalConnectionRequest() (request *CreateHighReliablePhysicalConnectionRequest) { + request = &CreateHighReliablePhysicalConnectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateHighReliablePhysicalConnection", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateHighReliablePhysicalConnectionResponse creates a response to parse from CreateHighReliablePhysicalConnection response +func CreateCreateHighReliablePhysicalConnectionResponse() (response *CreateHighReliablePhysicalConnectionResponse) { + response = &CreateHighReliablePhysicalConnectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/create_nat_gateway.go b/services/vpc/create_nat_gateway.go index 121617a897..f06c3a933b 100644 --- a/services/vpc/create_nat_gateway.go +++ b/services/vpc/create_nat_gateway.go @@ -97,6 +97,7 @@ type CreateNatGatewayRequest struct { PrivateLinkEnabled requests.Boolean `position:"Query" name:"PrivateLinkEnabled"` EipBindMode string `position:"Query" name:"EipBindMode"` PricingCycle string `position:"Query" name:"PricingCycle"` + AccessMode CreateNatGatewayAccessMode `position:"Query" name:"AccessMode" type:"Struct"` } // CreateNatGatewayTag is a repeated param struct in CreateNatGatewayRequest @@ -114,6 +115,12 @@ type CreateNatGatewayBandwidthPackage struct { IpCount string `name:"IpCount"` } +// CreateNatGatewayAccessMode is a repeated param struct in CreateNatGatewayRequest +type CreateNatGatewayAccessMode struct { + ModeValue string `name:"ModeValue"` + TunnelType string `name:"TunnelType"` +} + // CreateNatGatewayResponse is the response struct for api CreateNatGateway type CreateNatGatewayResponse struct { *responses.BaseResponse diff --git a/services/vpc/create_network_acl.go b/services/vpc/create_network_acl.go index 16ec4f6d77..ff3c8f3f70 100644 --- a/services/vpc/create_network_acl.go +++ b/services/vpc/create_network_acl.go @@ -75,7 +75,9 @@ type CreateNetworkAclRequest struct { ClientToken string `position:"Query" name:"ClientToken"` Description string `position:"Query" name:"Description"` Tag *[]CreateNetworkAclTag `position:"Query" name:"Tag" type:"Repeated"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` NetworkAclName string `position:"Query" name:"NetworkAclName"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` VpcId string `position:"Query" name:"VpcId"` diff --git a/services/vpc/create_physical_connection.go b/services/vpc/create_physical_connection.go index 5378d4c942..24270d2cb2 100644 --- a/services/vpc/create_physical_connection.go +++ b/services/vpc/create_physical_connection.go @@ -89,6 +89,7 @@ type CreatePhysicalConnectionRequest struct { OwnerId requests.Integer `position:"Query" name:"OwnerId"` LineOperator string `position:"Query" name:"LineOperator"` Name string `position:"Query" name:"Name"` + DeviceAdvancedCapacity *[]string `position:"Query" name:"DeviceAdvancedCapacity" type:"Repeated"` } // CreatePhysicalConnectionTag is a repeated param struct in CreatePhysicalConnectionRequest diff --git a/services/vpc/create_public_ip_address_pool.go b/services/vpc/create_public_ip_address_pool.go index fcb568efd1..00cf7c1512 100644 --- a/services/vpc/create_public_ip_address_pool.go +++ b/services/vpc/create_public_ip_address_pool.go @@ -71,17 +71,20 @@ func (client *Client) CreatePublicIpAddressPoolWithCallback(request *CreatePubli // CreatePublicIpAddressPoolRequest is the request struct for api CreatePublicIpAddressPool type CreatePublicIpAddressPoolRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Isp string `position:"Query" name:"Isp"` - Description string `position:"Query" name:"Description"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]CreatePublicIpAddressPoolTag `position:"Query" name:"Tag" 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"` - Name string `position:"Query" name:"Name"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Isp string `position:"Query" name:"Isp"` + Description string `position:"Query" name:"Description"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]CreatePublicIpAddressPoolTag `position:"Query" name:"Tag" type:"Repeated"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Zones *[]string `position:"Query" name:"Zones" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + BizType string `position:"Query" name:"BizType"` + Name string `position:"Query" name:"Name"` + SecurityProtectionTypes *[]string `position:"Query" name:"SecurityProtectionTypes" type:"Repeated"` } // CreatePublicIpAddressPoolTag is a repeated param struct in CreatePublicIpAddressPoolRequest @@ -96,6 +99,7 @@ type CreatePublicIpAddressPoolResponse struct { PulbicIpAddressPoolId string `json:"PulbicIpAddressPoolId" xml:"PulbicIpAddressPoolId"` RequestId string `json:"RequestId" xml:"RequestId"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + PublicIpAddressPoolId string `json:"PublicIpAddressPoolId" xml:"PublicIpAddressPoolId"` } // CreateCreatePublicIpAddressPoolRequest creates a request to invoke CreatePublicIpAddressPool API diff --git a/services/vpc/create_snat_entry.go b/services/vpc/create_snat_entry.go index 8e738f4256..2fbb3bfeb6 100644 --- a/services/vpc/create_snat_entry.go +++ b/services/vpc/create_snat_entry.go @@ -82,6 +82,7 @@ type CreateSnatEntryRequest struct { SnatTableId string `position:"Query" name:"SnatTableId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` SnatEntryName string `position:"Query" name:"SnatEntryName"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` } // CreateSnatEntryResponse is the response struct for api CreateSnatEntry diff --git a/services/vpc/create_ssl_vpn_server.go b/services/vpc/create_ssl_vpn_server.go index 46607d80d7..ec8446bc3a 100644 --- a/services/vpc/create_ssl_vpn_server.go +++ b/services/vpc/create_ssl_vpn_server.go @@ -78,6 +78,7 @@ type CreateSslVpnServerRequest struct { EnableMultiFactorAuth requests.Boolean `position:"Query" name:"EnableMultiFactorAuth"` IDaaSInstanceId string `position:"Query" name:"IDaaSInstanceId"` Cipher string `position:"Query" name:"Cipher"` + IDaaSApplicationId string `position:"Query" name:"IDaaSApplicationId"` ClientIpPool string `position:"Query" name:"ClientIpPool"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` Compress requests.Boolean `position:"Query" name:"Compress"` diff --git a/services/vpc/create_v_switch_cidr_reservation.go b/services/vpc/create_v_switch_cidr_reservation.go new file mode 100644 index 0000000000..d98474e872 --- /dev/null +++ b/services/vpc/create_v_switch_cidr_reservation.go @@ -0,0 +1,119 @@ +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" +) + +// CreateVSwitchCidrReservation invokes the vpc.CreateVSwitchCidrReservation API synchronously +func (client *Client) CreateVSwitchCidrReservation(request *CreateVSwitchCidrReservationRequest) (response *CreateVSwitchCidrReservationResponse, err error) { + response = CreateCreateVSwitchCidrReservationResponse() + err = client.DoAction(request, response) + return +} + +// CreateVSwitchCidrReservationWithChan invokes the vpc.CreateVSwitchCidrReservation API asynchronously +func (client *Client) CreateVSwitchCidrReservationWithChan(request *CreateVSwitchCidrReservationRequest) (<-chan *CreateVSwitchCidrReservationResponse, <-chan error) { + responseChan := make(chan *CreateVSwitchCidrReservationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateVSwitchCidrReservation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateVSwitchCidrReservationWithCallback invokes the vpc.CreateVSwitchCidrReservation API asynchronously +func (client *Client) CreateVSwitchCidrReservationWithCallback(request *CreateVSwitchCidrReservationRequest, callback func(response *CreateVSwitchCidrReservationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateVSwitchCidrReservationResponse + var err error + defer close(result) + response, err = client.CreateVSwitchCidrReservation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateVSwitchCidrReservationRequest is the request struct for api CreateVSwitchCidrReservation +type CreateVSwitchCidrReservationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + VSwitchCidrReservationType string `position:"Query" name:"VSwitchCidrReservationType"` + VSwitchCidrReservationDescription string `position:"Query" name:"VSwitchCidrReservationDescription"` + VSwitchCidrReservationName string `position:"Query" name:"VSwitchCidrReservationName"` + IpVersion string `position:"Query" name:"IpVersion"` + Tag *[]CreateVSwitchCidrReservationTag `position:"Query" name:"Tag" 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"` + VSwitchId string `position:"Query" name:"VSwitchId"` + VSwitchCidrReservationMask string `position:"Query" name:"VSwitchCidrReservationMask"` + VSwitchCidrReservationCidr string `position:"Query" name:"VSwitchCidrReservationCidr"` +} + +// CreateVSwitchCidrReservationTag is a repeated param struct in CreateVSwitchCidrReservationRequest +type CreateVSwitchCidrReservationTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateVSwitchCidrReservationResponse is the response struct for api CreateVSwitchCidrReservation +type CreateVSwitchCidrReservationResponse struct { + *responses.BaseResponse + VSwitchCidrReservationId string `json:"VSwitchCidrReservationId" xml:"VSwitchCidrReservationId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateVSwitchCidrReservationRequest creates a request to invoke CreateVSwitchCidrReservation API +func CreateCreateVSwitchCidrReservationRequest() (request *CreateVSwitchCidrReservationRequest) { + request = &CreateVSwitchCidrReservationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "CreateVSwitchCidrReservation", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateVSwitchCidrReservationResponse creates a response to parse from CreateVSwitchCidrReservation response +func CreateCreateVSwitchCidrReservationResponse() (response *CreateVSwitchCidrReservationResponse) { + response = &CreateVSwitchCidrReservationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/create_vpc.go b/services/vpc/create_vpc.go index 7c407f3a11..f729b092ef 100644 --- a/services/vpc/create_vpc.go +++ b/services/vpc/create_vpc.go @@ -75,6 +75,7 @@ type CreateVpcRequest struct { ClientToken string `position:"Query" name:"ClientToken"` EnableIpv6 requests.Boolean `position:"Query" name:"EnableIpv6"` Description string `position:"Query" name:"Description"` + Ipv4CidrMask requests.Integer `position:"Query" name:"Ipv4CidrMask"` VpcName string `position:"Query" name:"VpcName"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` Ipv4IpamPoolId string `position:"Query" name:"Ipv4IpamPoolId"` @@ -82,6 +83,7 @@ type CreateVpcRequest struct { UserCidr string `position:"Query" name:"UserCidr"` Tag *[]CreateVpcTag `position:"Query" name:"Tag" type:"Repeated"` DryRun requests.Boolean `position:"Query" name:"DryRun"` + EnableDnsHostname requests.Boolean `position:"Query" name:"EnableDnsHostname"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` diff --git a/services/vpc/create_vpn_attachment.go b/services/vpc/create_vpn_attachment.go index db50e0b97f..cf465549ef 100644 --- a/services/vpc/create_vpn_attachment.go +++ b/services/vpc/create_vpn_attachment.go @@ -71,31 +71,74 @@ func (client *Client) CreateVpnAttachmentWithCallback(request *CreateVpnAttachme // CreateVpnAttachmentRequest is the request struct for api CreateVpnAttachment type CreateVpnAttachmentRequest struct { *requests.RpcRequest - IkeConfig string `position:"Query" name:"IkeConfig"` - AutoConfigRoute requests.Boolean `position:"Query" name:"AutoConfigRoute"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CenId string `position:"Query" name:"CenId"` - AttachType string `position:"Query" name:"AttachType"` - ClientToken string `position:"Query" name:"ClientToken"` - IpsecConfig string `position:"Query" name:"IpsecConfig"` - BgpConfig string `position:"Query" name:"BgpConfig"` - RouteTableAssociationEnabled requests.Boolean `position:"Query" name:"RouteTableAssociationEnabled"` - NetworkType string `position:"Query" name:"NetworkType"` - HealthCheckConfig string `position:"Query" name:"HealthCheckConfig"` - CustomerGatewayId string `position:"Query" name:"CustomerGatewayId"` - LocalSubnet string `position:"Query" name:"LocalSubnet"` - RemoteCaCert string `position:"Query" name:"RemoteCaCert"` - AutoPublishRouteEnabled requests.Boolean `position:"Query" name:"AutoPublishRouteEnabled"` - RouteTablePropagationEnabled requests.Boolean `position:"Query" name:"RouteTablePropagationEnabled"` - RemoteSubnet string `position:"Query" name:"RemoteSubnet"` - EffectImmediately requests.Boolean `position:"Query" name:"EffectImmediately"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EnableDpd requests.Boolean `position:"Query" name:"EnableDpd"` - Tags *[]CreateVpnAttachmentTags `position:"Query" name:"Tags" type:"Repeated"` - Name string `position:"Query" name:"Name"` - ZoneId string `position:"Query" name:"ZoneId"` - EnableNatTraversal requests.Boolean `position:"Query" name:"EnableNatTraversal"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AttachType string `position:"Query" name:"AttachType"` + BgpConfig string `position:"Query" name:"BgpConfig"` + RouteTableAssociationEnabled requests.Boolean `position:"Query" name:"RouteTableAssociationEnabled"` + NetworkType string `position:"Query" name:"NetworkType"` + LocalSubnet string `position:"Query" name:"LocalSubnet"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + AutoPublishRouteEnabled requests.Boolean `position:"Query" name:"AutoPublishRouteEnabled"` + RouteTablePropagationEnabled requests.Boolean `position:"Query" name:"RouteTablePropagationEnabled"` + RemoteSubnet string `position:"Query" name:"RemoteSubnet"` + EffectImmediately requests.Boolean `position:"Query" name:"EffectImmediately"` + EnableDpd requests.Boolean `position:"Query" name:"EnableDpd"` + Tags *[]CreateVpnAttachmentTags `position:"Query" name:"Tags" type:"Repeated"` + Name string `position:"Query" name:"Name"` + ZoneId string `position:"Query" name:"ZoneId"` + EnableNatTraversal requests.Boolean `position:"Query" name:"EnableNatTraversal"` + IkeConfig string `position:"Query" name:"IkeConfig"` + AutoConfigRoute requests.Boolean `position:"Query" name:"AutoConfigRoute"` + CenId string `position:"Query" name:"CenId"` + ClientToken string `position:"Query" name:"ClientToken"` + IpsecConfig string `position:"Query" name:"IpsecConfig"` + HealthCheckConfig string `position:"Query" name:"HealthCheckConfig"` + CustomerGatewayId string `position:"Query" name:"CustomerGatewayId"` + RemoteCaCert string `position:"Query" name:"RemoteCaCert"` + EnableTunnelsBgp requests.Boolean `position:"Query" name:"EnableTunnelsBgp"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + TunnelOptionsSpecification *[]CreateVpnAttachmentTunnelOptionsSpecification `position:"Body" name:"TunnelOptionsSpecification" type:"Repeated"` +} + +// CreateVpnAttachmentTunnelOptionsSpecification is a repeated param struct in CreateVpnAttachmentRequest +type CreateVpnAttachmentTunnelOptionsSpecification struct { + TunnelIpsecConfig CreateVpnAttachmentTunnelOptionsSpecificationTunnelIpsecConfig `name:"TunnelIpsecConfig" type:"Struct"` + TunnelBgpConfig CreateVpnAttachmentTunnelOptionsSpecificationTunnelBgpConfig `name:"TunnelBgpConfig" type:"Struct"` + RemoteCaCertificate string `name:"RemoteCaCertificate"` + TunnelIkeConfig CreateVpnAttachmentTunnelOptionsSpecificationTunnelIkeConfig `name:"TunnelIkeConfig" type:"Struct"` + EnableNatTraversal string `name:"EnableNatTraversal"` + EnableDpd string `name:"EnableDpd"` + TunnelIndex string `name:"TunnelIndex"` + CustomerGatewayId string `name:"CustomerGatewayId"` +} + +// CreateVpnAttachmentTunnelOptionsSpecificationTunnelIpsecConfig is a repeated param struct in CreateVpnAttachmentRequest +type CreateVpnAttachmentTunnelOptionsSpecificationTunnelIpsecConfig struct { + IpsecPfs string `name:"IpsecPfs"` + IpsecLifetime string `name:"IpsecLifetime"` + IpsecAuthAlg string `name:"IpsecAuthAlg"` + IpsecEncAlg string `name:"IpsecEncAlg"` +} + +// CreateVpnAttachmentTunnelOptionsSpecificationTunnelBgpConfig is a repeated param struct in CreateVpnAttachmentRequest +type CreateVpnAttachmentTunnelOptionsSpecificationTunnelBgpConfig struct { + LocalAsn string `name:"LocalAsn"` + TunnelCidr string `name:"TunnelCidr"` + LocalBgpIp string `name:"LocalBgpIp"` +} + +// CreateVpnAttachmentTunnelOptionsSpecificationTunnelIkeConfig is a repeated param struct in CreateVpnAttachmentRequest +type CreateVpnAttachmentTunnelOptionsSpecificationTunnelIkeConfig struct { + IkeVersion string `name:"IkeVersion"` + IkeMode string `name:"IkeMode"` + IkeAuthAlg string `name:"IkeAuthAlg"` + Psk string `name:"Psk"` + IkePfs string `name:"IkePfs"` + IkeLifetime string `name:"IkeLifetime"` + LocalId string `name:"LocalId"` + IkeEncAlg string `name:"IkeEncAlg"` + RemoteId string `name:"RemoteId"` } // CreateVpnAttachmentTags is a repeated param struct in CreateVpnAttachmentRequest @@ -112,8 +155,8 @@ type CreateVpnAttachmentResponse struct { Name string `json:"Name" xml:"Name"` CreateTime int64 `json:"CreateTime" xml:"CreateTime"` Code string `json:"Code" xml:"Code"` - Success bool `json:"Success" xml:"Success"` Message string `json:"Message" xml:"Message"` + Success bool `json:"Success" xml:"Success"` } // CreateCreateVpnAttachmentRequest creates a request to invoke CreateVpnAttachment API diff --git a/services/vpc/create_vpn_gateway.go b/services/vpc/create_vpn_gateway.go index 62e90656f5..4c4b7333dc 100644 --- a/services/vpc/create_vpn_gateway.go +++ b/services/vpc/create_vpn_gateway.go @@ -75,6 +75,7 @@ type CreateVpnGatewayRequest struct { ClientToken string `position:"Query" name:"ClientToken"` EnableIpsec requests.Boolean `position:"Query" name:"EnableIpsec"` NetworkType string `position:"Query" name:"NetworkType"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` InstanceChargeType string `position:"Query" name:"InstanceChargeType"` Period requests.Integer `position:"Query" name:"Period"` AutoPay requests.Boolean `position:"Query" name:"AutoPay"` diff --git a/services/vpc/delete_express_connect_traffic_qos.go b/services/vpc/delete_express_connect_traffic_qos.go new file mode 100644 index 0000000000..61e5939981 --- /dev/null +++ b/services/vpc/delete_express_connect_traffic_qos.go @@ -0,0 +1,103 @@ +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" +) + +// DeleteExpressConnectTrafficQos invokes the vpc.DeleteExpressConnectTrafficQos API synchronously +func (client *Client) DeleteExpressConnectTrafficQos(request *DeleteExpressConnectTrafficQosRequest) (response *DeleteExpressConnectTrafficQosResponse, err error) { + response = CreateDeleteExpressConnectTrafficQosResponse() + err = client.DoAction(request, response) + return +} + +// DeleteExpressConnectTrafficQosWithChan invokes the vpc.DeleteExpressConnectTrafficQos API asynchronously +func (client *Client) DeleteExpressConnectTrafficQosWithChan(request *DeleteExpressConnectTrafficQosRequest) (<-chan *DeleteExpressConnectTrafficQosResponse, <-chan error) { + responseChan := make(chan *DeleteExpressConnectTrafficQosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteExpressConnectTrafficQos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteExpressConnectTrafficQosWithCallback invokes the vpc.DeleteExpressConnectTrafficQos API asynchronously +func (client *Client) DeleteExpressConnectTrafficQosWithCallback(request *DeleteExpressConnectTrafficQosRequest, callback func(response *DeleteExpressConnectTrafficQosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteExpressConnectTrafficQosResponse + var err error + defer close(result) + response, err = client.DeleteExpressConnectTrafficQos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteExpressConnectTrafficQosRequest is the request struct for api DeleteExpressConnectTrafficQos +type DeleteExpressConnectTrafficQosRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + QosId string `position:"Query" name:"QosId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteExpressConnectTrafficQosResponse is the response struct for api DeleteExpressConnectTrafficQos +type DeleteExpressConnectTrafficQosResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteExpressConnectTrafficQosRequest creates a request to invoke DeleteExpressConnectTrafficQos API +func CreateDeleteExpressConnectTrafficQosRequest() (request *DeleteExpressConnectTrafficQosRequest) { + request = &DeleteExpressConnectTrafficQosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteExpressConnectTrafficQos", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteExpressConnectTrafficQosResponse creates a response to parse from DeleteExpressConnectTrafficQos response +func CreateDeleteExpressConnectTrafficQosResponse() (response *DeleteExpressConnectTrafficQosResponse) { + response = &DeleteExpressConnectTrafficQosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/delete_express_connect_traffic_qos_queue.go b/services/vpc/delete_express_connect_traffic_qos_queue.go new file mode 100644 index 0000000000..804448a08a --- /dev/null +++ b/services/vpc/delete_express_connect_traffic_qos_queue.go @@ -0,0 +1,104 @@ +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" +) + +// DeleteExpressConnectTrafficQosQueue invokes the vpc.DeleteExpressConnectTrafficQosQueue API synchronously +func (client *Client) DeleteExpressConnectTrafficQosQueue(request *DeleteExpressConnectTrafficQosQueueRequest) (response *DeleteExpressConnectTrafficQosQueueResponse, err error) { + response = CreateDeleteExpressConnectTrafficQosQueueResponse() + err = client.DoAction(request, response) + return +} + +// DeleteExpressConnectTrafficQosQueueWithChan invokes the vpc.DeleteExpressConnectTrafficQosQueue API asynchronously +func (client *Client) DeleteExpressConnectTrafficQosQueueWithChan(request *DeleteExpressConnectTrafficQosQueueRequest) (<-chan *DeleteExpressConnectTrafficQosQueueResponse, <-chan error) { + responseChan := make(chan *DeleteExpressConnectTrafficQosQueueResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteExpressConnectTrafficQosQueue(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteExpressConnectTrafficQosQueueWithCallback invokes the vpc.DeleteExpressConnectTrafficQosQueue API asynchronously +func (client *Client) DeleteExpressConnectTrafficQosQueueWithCallback(request *DeleteExpressConnectTrafficQosQueueRequest, callback func(response *DeleteExpressConnectTrafficQosQueueResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteExpressConnectTrafficQosQueueResponse + var err error + defer close(result) + response, err = client.DeleteExpressConnectTrafficQosQueue(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteExpressConnectTrafficQosQueueRequest is the request struct for api DeleteExpressConnectTrafficQosQueue +type DeleteExpressConnectTrafficQosQueueRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + QosId string `position:"Query" name:"QosId"` + QueueId string `position:"Query" name:"QueueId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteExpressConnectTrafficQosQueueResponse is the response struct for api DeleteExpressConnectTrafficQosQueue +type DeleteExpressConnectTrafficQosQueueResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteExpressConnectTrafficQosQueueRequest creates a request to invoke DeleteExpressConnectTrafficQosQueue API +func CreateDeleteExpressConnectTrafficQosQueueRequest() (request *DeleteExpressConnectTrafficQosQueueRequest) { + request = &DeleteExpressConnectTrafficQosQueueRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteExpressConnectTrafficQosQueue", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteExpressConnectTrafficQosQueueResponse creates a response to parse from DeleteExpressConnectTrafficQosQueue response +func CreateDeleteExpressConnectTrafficQosQueueResponse() (response *DeleteExpressConnectTrafficQosQueueResponse) { + response = &DeleteExpressConnectTrafficQosQueueResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/delete_express_connect_traffic_qos_rule.go b/services/vpc/delete_express_connect_traffic_qos_rule.go new file mode 100644 index 0000000000..113b28a525 --- /dev/null +++ b/services/vpc/delete_express_connect_traffic_qos_rule.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" +) + +// DeleteExpressConnectTrafficQosRule invokes the vpc.DeleteExpressConnectTrafficQosRule API synchronously +func (client *Client) DeleteExpressConnectTrafficQosRule(request *DeleteExpressConnectTrafficQosRuleRequest) (response *DeleteExpressConnectTrafficQosRuleResponse, err error) { + response = CreateDeleteExpressConnectTrafficQosRuleResponse() + err = client.DoAction(request, response) + return +} + +// DeleteExpressConnectTrafficQosRuleWithChan invokes the vpc.DeleteExpressConnectTrafficQosRule API asynchronously +func (client *Client) DeleteExpressConnectTrafficQosRuleWithChan(request *DeleteExpressConnectTrafficQosRuleRequest) (<-chan *DeleteExpressConnectTrafficQosRuleResponse, <-chan error) { + responseChan := make(chan *DeleteExpressConnectTrafficQosRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteExpressConnectTrafficQosRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteExpressConnectTrafficQosRuleWithCallback invokes the vpc.DeleteExpressConnectTrafficQosRule API asynchronously +func (client *Client) DeleteExpressConnectTrafficQosRuleWithCallback(request *DeleteExpressConnectTrafficQosRuleRequest, callback func(response *DeleteExpressConnectTrafficQosRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteExpressConnectTrafficQosRuleResponse + var err error + defer close(result) + response, err = client.DeleteExpressConnectTrafficQosRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteExpressConnectTrafficQosRuleRequest is the request struct for api DeleteExpressConnectTrafficQosRule +type DeleteExpressConnectTrafficQosRuleRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + QosId string `position:"Query" name:"QosId"` + QueueId string `position:"Query" name:"QueueId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RuleId string `position:"Query" name:"RuleId"` +} + +// DeleteExpressConnectTrafficQosRuleResponse is the response struct for api DeleteExpressConnectTrafficQosRule +type DeleteExpressConnectTrafficQosRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteExpressConnectTrafficQosRuleRequest creates a request to invoke DeleteExpressConnectTrafficQosRule API +func CreateDeleteExpressConnectTrafficQosRuleRequest() (request *DeleteExpressConnectTrafficQosRuleRequest) { + request = &DeleteExpressConnectTrafficQosRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteExpressConnectTrafficQosRule", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteExpressConnectTrafficQosRuleResponse creates a response to parse from DeleteExpressConnectTrafficQosRule response +func CreateDeleteExpressConnectTrafficQosRuleResponse() (response *DeleteExpressConnectTrafficQosRuleResponse) { + response = &DeleteExpressConnectTrafficQosRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/delete_failover_test_job.go b/services/vpc/delete_failover_test_job.go new file mode 100644 index 0000000000..ee0002914c --- /dev/null +++ b/services/vpc/delete_failover_test_job.go @@ -0,0 +1,103 @@ +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" +) + +// DeleteFailoverTestJob invokes the vpc.DeleteFailoverTestJob API synchronously +func (client *Client) DeleteFailoverTestJob(request *DeleteFailoverTestJobRequest) (response *DeleteFailoverTestJobResponse, err error) { + response = CreateDeleteFailoverTestJobResponse() + err = client.DoAction(request, response) + return +} + +// DeleteFailoverTestJobWithChan invokes the vpc.DeleteFailoverTestJob API asynchronously +func (client *Client) DeleteFailoverTestJobWithChan(request *DeleteFailoverTestJobRequest) (<-chan *DeleteFailoverTestJobResponse, <-chan error) { + responseChan := make(chan *DeleteFailoverTestJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteFailoverTestJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteFailoverTestJobWithCallback invokes the vpc.DeleteFailoverTestJob API asynchronously +func (client *Client) DeleteFailoverTestJobWithCallback(request *DeleteFailoverTestJobRequest, callback func(response *DeleteFailoverTestJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteFailoverTestJobResponse + var err error + defer close(result) + response, err = client.DeleteFailoverTestJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteFailoverTestJobRequest is the request struct for api DeleteFailoverTestJob +type DeleteFailoverTestJobRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + JobId string `position:"Query" name:"JobId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteFailoverTestJobResponse is the response struct for api DeleteFailoverTestJob +type DeleteFailoverTestJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteFailoverTestJobRequest creates a request to invoke DeleteFailoverTestJob API +func CreateDeleteFailoverTestJobRequest() (request *DeleteFailoverTestJobRequest) { + request = &DeleteFailoverTestJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteFailoverTestJob", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteFailoverTestJobResponse creates a response to parse from DeleteFailoverTestJob response +func CreateDeleteFailoverTestJobResponse() (response *DeleteFailoverTestJobResponse) { + response = &DeleteFailoverTestJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/delete_ipv4_gateway.go b/services/vpc/delete_ipv4_gateway.go index b124f2665b..b946234ac5 100644 --- a/services/vpc/delete_ipv4_gateway.go +++ b/services/vpc/delete_ipv4_gateway.go @@ -78,6 +78,7 @@ type DeleteIpv4GatewayRequest struct { ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InternetMode string `position:"Query" name:"InternetMode"` } // DeleteIpv4GatewayResponse is the response struct for api DeleteIpv4Gateway diff --git a/services/vpc/delete_ipv6_gateway.go b/services/vpc/delete_ipv6_gateway.go index a3efb95f65..479bbcd07d 100644 --- a/services/vpc/delete_ipv6_gateway.go +++ b/services/vpc/delete_ipv6_gateway.go @@ -72,6 +72,8 @@ func (client *Client) DeleteIpv6GatewayWithCallback(request *DeleteIpv6GatewayRe type DeleteIpv6GatewayRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + 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"` diff --git a/services/vpc/delete_ipv6_internet_bandwidth.go b/services/vpc/delete_ipv6_internet_bandwidth.go index 8b395c9f81..97535d32fe 100644 --- a/services/vpc/delete_ipv6_internet_bandwidth.go +++ b/services/vpc/delete_ipv6_internet_bandwidth.go @@ -72,7 +72,9 @@ func (client *Client) DeleteIpv6InternetBandwidthWithCallback(request *DeleteIpv type DeleteIpv6InternetBandwidthRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` Ipv6InternetBandwidthId string `position:"Query" name:"Ipv6InternetBandwidthId"` + 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"` diff --git a/services/vpc/delete_network_acl.go b/services/vpc/delete_network_acl.go index aac486f367..4e904ee855 100644 --- a/services/vpc/delete_network_acl.go +++ b/services/vpc/delete_network_acl.go @@ -74,7 +74,9 @@ type DeleteNetworkAclRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ClientToken string `position:"Query" name:"ClientToken"` NetworkAclId string `position:"Query" name:"NetworkAclId"` + 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"` } diff --git a/services/vpc/delete_v_switch_cidr_reservation.go b/services/vpc/delete_v_switch_cidr_reservation.go new file mode 100644 index 0000000000..66f9bad8c4 --- /dev/null +++ b/services/vpc/delete_v_switch_cidr_reservation.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" +) + +// DeleteVSwitchCidrReservation invokes the vpc.DeleteVSwitchCidrReservation API synchronously +func (client *Client) DeleteVSwitchCidrReservation(request *DeleteVSwitchCidrReservationRequest) (response *DeleteVSwitchCidrReservationResponse, err error) { + response = CreateDeleteVSwitchCidrReservationResponse() + err = client.DoAction(request, response) + return +} + +// DeleteVSwitchCidrReservationWithChan invokes the vpc.DeleteVSwitchCidrReservation API asynchronously +func (client *Client) DeleteVSwitchCidrReservationWithChan(request *DeleteVSwitchCidrReservationRequest) (<-chan *DeleteVSwitchCidrReservationResponse, <-chan error) { + responseChan := make(chan *DeleteVSwitchCidrReservationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteVSwitchCidrReservation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteVSwitchCidrReservationWithCallback invokes the vpc.DeleteVSwitchCidrReservation API asynchronously +func (client *Client) DeleteVSwitchCidrReservationWithCallback(request *DeleteVSwitchCidrReservationRequest, callback func(response *DeleteVSwitchCidrReservationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteVSwitchCidrReservationResponse + var err error + defer close(result) + response, err = client.DeleteVSwitchCidrReservation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteVSwitchCidrReservationRequest is the request struct for api DeleteVSwitchCidrReservation +type DeleteVSwitchCidrReservationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + 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"` + VSwitchCidrReservationId string `position:"Query" name:"VSwitchCidrReservationId"` +} + +// DeleteVSwitchCidrReservationResponse is the response struct for api DeleteVSwitchCidrReservation +type DeleteVSwitchCidrReservationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteVSwitchCidrReservationRequest creates a request to invoke DeleteVSwitchCidrReservation API +func CreateDeleteVSwitchCidrReservationRequest() (request *DeleteVSwitchCidrReservationRequest) { + request = &DeleteVSwitchCidrReservationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DeleteVSwitchCidrReservation", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteVSwitchCidrReservationResponse creates a response to parse from DeleteVSwitchCidrReservation response +func CreateDeleteVSwitchCidrReservationResponse() (response *DeleteVSwitchCidrReservationResponse) { + response = &DeleteVSwitchCidrReservationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/delete_vpc.go b/services/vpc/delete_vpc.go index 99c3e59c99..adbad2fab8 100644 --- a/services/vpc/delete_vpc.go +++ b/services/vpc/delete_vpc.go @@ -72,6 +72,7 @@ func (client *Client) DeleteVpcWithCallback(request *DeleteVpcRequest, callback type DeleteVpcRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` ForceDelete requests.Boolean `position:"Query" name:"ForceDelete"` DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` diff --git a/services/vpc/describe95_traffic.go b/services/vpc/describe95_traffic.go new file mode 100644 index 0000000000..b189973e48 --- /dev/null +++ b/services/vpc/describe95_traffic.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" +) + +// Describe95Traffic invokes the vpc.Describe95Traffic API synchronously +func (client *Client) Describe95Traffic(request *Describe95TrafficRequest) (response *Describe95TrafficResponse, err error) { + response = CreateDescribe95TrafficResponse() + err = client.DoAction(request, response) + return +} + +// Describe95TrafficWithChan invokes the vpc.Describe95Traffic API asynchronously +func (client *Client) Describe95TrafficWithChan(request *Describe95TrafficRequest) (<-chan *Describe95TrafficResponse, <-chan error) { + responseChan := make(chan *Describe95TrafficResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.Describe95Traffic(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// Describe95TrafficWithCallback invokes the vpc.Describe95Traffic API asynchronously +func (client *Client) Describe95TrafficWithCallback(request *Describe95TrafficRequest, callback func(response *Describe95TrafficResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *Describe95TrafficResponse + var err error + defer close(result) + response, err = client.Describe95Traffic(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// Describe95TrafficRequest is the request struct for api Describe95Traffic +type Describe95TrafficRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Day string `position:"Query" name:"Day"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// Describe95TrafficResponse is the response struct for api Describe95Traffic +type Describe95TrafficResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Traffic95Summary Traffic95Summary `json:"Traffic95Summary" xml:"Traffic95Summary"` +} + +// CreateDescribe95TrafficRequest creates a request to invoke Describe95Traffic API +func CreateDescribe95TrafficRequest() (request *Describe95TrafficRequest) { + request = &Describe95TrafficRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "Describe95Traffic", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribe95TrafficResponse creates a response to parse from Describe95Traffic response +func CreateDescribe95TrafficResponse() (response *Describe95TrafficResponse) { + response = &Describe95TrafficResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/describe_customer_gateway.go b/services/vpc/describe_customer_gateway.go index 878df8278b..22690c715d 100644 --- a/services/vpc/describe_customer_gateway.go +++ b/services/vpc/describe_customer_gateway.go @@ -89,6 +89,7 @@ type DescribeCustomerGatewayResponse struct { CreateTime int64 `json:"CreateTime" xml:"CreateTime"` Name string `json:"Name" xml:"Name"` AuthKey string `json:"AuthKey" xml:"AuthKey"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` Tags TagsInDescribeCustomerGateway `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/describe_customer_gateways.go b/services/vpc/describe_customer_gateways.go index b86e87ba88..10cd805ca5 100644 --- a/services/vpc/describe_customer_gateways.go +++ b/services/vpc/describe_customer_gateways.go @@ -74,6 +74,7 @@ type DescribeCustomerGatewaysRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` CustomerGatewayId string `position:"Query" name:"CustomerGatewayId"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` PageSize requests.Integer `position:"Query" name:"PageSize"` Tag *[]DescribeCustomerGatewaysTag `position:"Query" name:"Tag" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` diff --git a/services/vpc/describe_eip_addresses.go b/services/vpc/describe_eip_addresses.go index fcfa948518..b6a700496c 100644 --- a/services/vpc/describe_eip_addresses.go +++ b/services/vpc/describe_eip_addresses.go @@ -74,30 +74,31 @@ type DescribeEipAddressesRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` PublicIpAddressPoolId string `position:"Query" name:"PublicIpAddressPoolId"` Filter2Value string `position:"Query" name:"Filter.2.Value"` - SecurityProtectionEnabled requests.Boolean `position:"Query" name:"SecurityProtectionEnabled"` ISP string `position:"Query" name:"ISP"` EipName string `position:"Query" name:"EipName"` - AllocationId string `position:"Query" name:"AllocationId"` - IncludeReservationData requests.Boolean `position:"Query" name:"IncludeReservationData"` EipAddress string `position:"Query" name:"EipAddress"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` LockReason string `position:"Query" name:"LockReason"` Filter1Key string `position:"Query" name:"Filter.1.Key"` - AssociatedInstanceType string `position:"Query" name:"AssociatedInstanceType"` - PageSize requests.Integer `position:"Query" name:"PageSize"` Tag *[]DescribeEipAddressesTag `position:"Query" name:"Tag" type:"Repeated"` SegmentInstanceId string `position:"Query" name:"SegmentInstanceId"` DryRun requests.Boolean `position:"Query" name:"DryRun"` + Filter1Value string `position:"Query" name:"Filter.1.Value"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Status string `position:"Query" name:"Status"` + SecurityProtectionEnabled requests.Boolean `position:"Query" name:"SecurityProtectionEnabled"` + ServiceManaged requests.Boolean `position:"Query" name:"ServiceManaged"` + AllocationId string `position:"Query" name:"AllocationId"` + IncludeReservationData requests.Boolean `position:"Query" name:"IncludeReservationData"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + AssociatedInstanceType string `position:"Query" name:"AssociatedInstanceType"` + PageSize requests.Integer `position:"Query" name:"PageSize"` BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - Filter1Value string `position:"Query" name:"Filter.1.Value"` Filter2Key string `position:"Query" name:"Filter.2.Key"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` ChargeType string `position:"Query" name:"ChargeType"` AssociatedInstanceId string `position:"Query" name:"AssociatedInstanceId"` - Status string `position:"Query" name:"Status"` } // DescribeEipAddressesTag is a repeated param struct in DescribeEipAddressesRequest diff --git a/services/vpc/describe_express_connect_traffic_qos.go b/services/vpc/describe_express_connect_traffic_qos.go new file mode 100644 index 0000000000..ece7ee2651 --- /dev/null +++ b/services/vpc/describe_express_connect_traffic_qos.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" +) + +// DescribeExpressConnectTrafficQos invokes the vpc.DescribeExpressConnectTrafficQos API synchronously +func (client *Client) DescribeExpressConnectTrafficQos(request *DescribeExpressConnectTrafficQosRequest) (response *DescribeExpressConnectTrafficQosResponse, err error) { + response = CreateDescribeExpressConnectTrafficQosResponse() + err = client.DoAction(request, response) + return +} + +// DescribeExpressConnectTrafficQosWithChan invokes the vpc.DescribeExpressConnectTrafficQos API asynchronously +func (client *Client) DescribeExpressConnectTrafficQosWithChan(request *DescribeExpressConnectTrafficQosRequest) (<-chan *DescribeExpressConnectTrafficQosResponse, <-chan error) { + responseChan := make(chan *DescribeExpressConnectTrafficQosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeExpressConnectTrafficQos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeExpressConnectTrafficQosWithCallback invokes the vpc.DescribeExpressConnectTrafficQos API asynchronously +func (client *Client) DescribeExpressConnectTrafficQosWithCallback(request *DescribeExpressConnectTrafficQosRequest, callback func(response *DescribeExpressConnectTrafficQosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeExpressConnectTrafficQosResponse + var err error + defer close(result) + response, err = client.DescribeExpressConnectTrafficQos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeExpressConnectTrafficQosRequest is the request struct for api DescribeExpressConnectTrafficQos +type DescribeExpressConnectTrafficQosRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + NextToken string `position:"Query" name:"NextToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + QosIdList *[]string `position:"Query" name:"QosIdList" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + QosNameList *[]string `position:"Query" name:"QosNameList" type:"Repeated"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribeExpressConnectTrafficQosResponse is the response struct for api DescribeExpressConnectTrafficQos +type DescribeExpressConnectTrafficQosResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextToken string `json:"NextToken" xml:"NextToken"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Count string `json:"Count" xml:"Count"` + QosList []QosListItem `json:"QosList" xml:"QosList"` +} + +// CreateDescribeExpressConnectTrafficQosRequest creates a request to invoke DescribeExpressConnectTrafficQos API +func CreateDescribeExpressConnectTrafficQosRequest() (request *DescribeExpressConnectTrafficQosRequest) { + request = &DescribeExpressConnectTrafficQosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeExpressConnectTrafficQos", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeExpressConnectTrafficQosResponse creates a response to parse from DescribeExpressConnectTrafficQos response +func CreateDescribeExpressConnectTrafficQosResponse() (response *DescribeExpressConnectTrafficQosResponse) { + response = &DescribeExpressConnectTrafficQosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/describe_express_connect_traffic_qos_queue.go b/services/vpc/describe_express_connect_traffic_qos_queue.go new file mode 100644 index 0000000000..37d98605eb --- /dev/null +++ b/services/vpc/describe_express_connect_traffic_qos_queue.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" +) + +// DescribeExpressConnectTrafficQosQueue invokes the vpc.DescribeExpressConnectTrafficQosQueue API synchronously +func (client *Client) DescribeExpressConnectTrafficQosQueue(request *DescribeExpressConnectTrafficQosQueueRequest) (response *DescribeExpressConnectTrafficQosQueueResponse, err error) { + response = CreateDescribeExpressConnectTrafficQosQueueResponse() + err = client.DoAction(request, response) + return +} + +// DescribeExpressConnectTrafficQosQueueWithChan invokes the vpc.DescribeExpressConnectTrafficQosQueue API asynchronously +func (client *Client) DescribeExpressConnectTrafficQosQueueWithChan(request *DescribeExpressConnectTrafficQosQueueRequest) (<-chan *DescribeExpressConnectTrafficQosQueueResponse, <-chan error) { + responseChan := make(chan *DescribeExpressConnectTrafficQosQueueResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeExpressConnectTrafficQosQueue(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeExpressConnectTrafficQosQueueWithCallback invokes the vpc.DescribeExpressConnectTrafficQosQueue API asynchronously +func (client *Client) DescribeExpressConnectTrafficQosQueueWithCallback(request *DescribeExpressConnectTrafficQosQueueRequest, callback func(response *DescribeExpressConnectTrafficQosQueueResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeExpressConnectTrafficQosQueueResponse + var err error + defer close(result) + response, err = client.DescribeExpressConnectTrafficQosQueue(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeExpressConnectTrafficQosQueueRequest is the request struct for api DescribeExpressConnectTrafficQosQueue +type DescribeExpressConnectTrafficQosQueueRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + QosId string `position:"Query" name:"QosId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + QueueIdList *[]string `position:"Query" name:"QueueIdList" type:"Repeated"` + QueueNameList *[]string `position:"Query" name:"QueueNameList" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeExpressConnectTrafficQosQueueResponse is the response struct for api DescribeExpressConnectTrafficQosQueue +type DescribeExpressConnectTrafficQosQueueResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + QueueList []QueueListItem `json:"QueueList" xml:"QueueList"` +} + +// CreateDescribeExpressConnectTrafficQosQueueRequest creates a request to invoke DescribeExpressConnectTrafficQosQueue API +func CreateDescribeExpressConnectTrafficQosQueueRequest() (request *DescribeExpressConnectTrafficQosQueueRequest) { + request = &DescribeExpressConnectTrafficQosQueueRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeExpressConnectTrafficQosQueue", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeExpressConnectTrafficQosQueueResponse creates a response to parse from DescribeExpressConnectTrafficQosQueue response +func CreateDescribeExpressConnectTrafficQosQueueResponse() (response *DescribeExpressConnectTrafficQosQueueResponse) { + response = &DescribeExpressConnectTrafficQosQueueResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/describe_express_connect_traffic_qos_rule.go b/services/vpc/describe_express_connect_traffic_qos_rule.go new file mode 100644 index 0000000000..b264aea65a --- /dev/null +++ b/services/vpc/describe_express_connect_traffic_qos_rule.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" +) + +// DescribeExpressConnectTrafficQosRule invokes the vpc.DescribeExpressConnectTrafficQosRule API synchronously +func (client *Client) DescribeExpressConnectTrafficQosRule(request *DescribeExpressConnectTrafficQosRuleRequest) (response *DescribeExpressConnectTrafficQosRuleResponse, err error) { + response = CreateDescribeExpressConnectTrafficQosRuleResponse() + err = client.DoAction(request, response) + return +} + +// DescribeExpressConnectTrafficQosRuleWithChan invokes the vpc.DescribeExpressConnectTrafficQosRule API asynchronously +func (client *Client) DescribeExpressConnectTrafficQosRuleWithChan(request *DescribeExpressConnectTrafficQosRuleRequest) (<-chan *DescribeExpressConnectTrafficQosRuleResponse, <-chan error) { + responseChan := make(chan *DescribeExpressConnectTrafficQosRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeExpressConnectTrafficQosRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeExpressConnectTrafficQosRuleWithCallback invokes the vpc.DescribeExpressConnectTrafficQosRule API asynchronously +func (client *Client) DescribeExpressConnectTrafficQosRuleWithCallback(request *DescribeExpressConnectTrafficQosRuleRequest, callback func(response *DescribeExpressConnectTrafficQosRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeExpressConnectTrafficQosRuleResponse + var err error + defer close(result) + response, err = client.DescribeExpressConnectTrafficQosRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeExpressConnectTrafficQosRuleRequest is the request struct for api DescribeExpressConnectTrafficQosRule +type DescribeExpressConnectTrafficQosRuleRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + RuleIdList *[]string `position:"Query" name:"RuleIdList" type:"Repeated"` + QosId string `position:"Query" name:"QosId"` + QueueId string `position:"Query" name:"QueueId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RuleNameList *[]string `position:"Query" name:"RuleNameList" type:"Repeated"` +} + +// DescribeExpressConnectTrafficQosRuleResponse is the response struct for api DescribeExpressConnectTrafficQosRule +type DescribeExpressConnectTrafficQosRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + RuleList []RuleListItem `json:"RuleList" xml:"RuleList"` +} + +// CreateDescribeExpressConnectTrafficQosRuleRequest creates a request to invoke DescribeExpressConnectTrafficQosRule API +func CreateDescribeExpressConnectTrafficQosRuleRequest() (request *DescribeExpressConnectTrafficQosRuleRequest) { + request = &DescribeExpressConnectTrafficQosRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeExpressConnectTrafficQosRule", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeExpressConnectTrafficQosRuleResponse creates a response to parse from DescribeExpressConnectTrafficQosRule response +func CreateDescribeExpressConnectTrafficQosRuleResponse() (response *DescribeExpressConnectTrafficQosRuleResponse) { + response = &DescribeExpressConnectTrafficQosRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/describe_failover_test_job.go b/services/vpc/describe_failover_test_job.go new file mode 100644 index 0000000000..5dcfd4eb82 --- /dev/null +++ b/services/vpc/describe_failover_test_job.go @@ -0,0 +1,104 @@ +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" +) + +// DescribeFailoverTestJob invokes the vpc.DescribeFailoverTestJob API synchronously +func (client *Client) DescribeFailoverTestJob(request *DescribeFailoverTestJobRequest) (response *DescribeFailoverTestJobResponse, err error) { + response = CreateDescribeFailoverTestJobResponse() + err = client.DoAction(request, response) + return +} + +// DescribeFailoverTestJobWithChan invokes the vpc.DescribeFailoverTestJob API asynchronously +func (client *Client) DescribeFailoverTestJobWithChan(request *DescribeFailoverTestJobRequest) (<-chan *DescribeFailoverTestJobResponse, <-chan error) { + responseChan := make(chan *DescribeFailoverTestJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeFailoverTestJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeFailoverTestJobWithCallback invokes the vpc.DescribeFailoverTestJob API asynchronously +func (client *Client) DescribeFailoverTestJobWithCallback(request *DescribeFailoverTestJobRequest, callback func(response *DescribeFailoverTestJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeFailoverTestJobResponse + var err error + defer close(result) + response, err = client.DescribeFailoverTestJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeFailoverTestJobRequest is the request struct for api DescribeFailoverTestJob +type DescribeFailoverTestJobRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + JobId string `position:"Query" name:"JobId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeFailoverTestJobResponse is the response struct for api DescribeFailoverTestJob +type DescribeFailoverTestJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + FailoverTestJobModel FailoverTestJobModel `json:"FailoverTestJobModel" xml:"FailoverTestJobModel"` +} + +// CreateDescribeFailoverTestJobRequest creates a request to invoke DescribeFailoverTestJob API +func CreateDescribeFailoverTestJobRequest() (request *DescribeFailoverTestJobRequest) { + request = &DescribeFailoverTestJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeFailoverTestJob", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeFailoverTestJobResponse creates a response to parse from DescribeFailoverTestJob response +func CreateDescribeFailoverTestJobResponse() (response *DescribeFailoverTestJobResponse) { + response = &DescribeFailoverTestJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/describe_failover_test_jobs.go b/services/vpc/describe_failover_test_jobs.go new file mode 100644 index 0000000000..35abc95657 --- /dev/null +++ b/services/vpc/describe_failover_test_jobs.go @@ -0,0 +1,116 @@ +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" +) + +// DescribeFailoverTestJobs invokes the vpc.DescribeFailoverTestJobs API synchronously +func (client *Client) DescribeFailoverTestJobs(request *DescribeFailoverTestJobsRequest) (response *DescribeFailoverTestJobsResponse, err error) { + response = CreateDescribeFailoverTestJobsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeFailoverTestJobsWithChan invokes the vpc.DescribeFailoverTestJobs API asynchronously +func (client *Client) DescribeFailoverTestJobsWithChan(request *DescribeFailoverTestJobsRequest) (<-chan *DescribeFailoverTestJobsResponse, <-chan error) { + responseChan := make(chan *DescribeFailoverTestJobsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeFailoverTestJobs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeFailoverTestJobsWithCallback invokes the vpc.DescribeFailoverTestJobs API asynchronously +func (client *Client) DescribeFailoverTestJobsWithCallback(request *DescribeFailoverTestJobsRequest, callback func(response *DescribeFailoverTestJobsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeFailoverTestJobsResponse + var err error + defer close(result) + response, err = client.DescribeFailoverTestJobs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeFailoverTestJobsRequest is the request struct for api DescribeFailoverTestJobs +type DescribeFailoverTestJobsRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + NextToken string `position:"Query" name:"NextToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Filter *[]DescribeFailoverTestJobsFilter `position:"Query" name:"Filter" type:"Repeated"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribeFailoverTestJobsFilter is a repeated param struct in DescribeFailoverTestJobsRequest +type DescribeFailoverTestJobsFilter struct { + Key string `name:"Key"` + Value *[]string `name:"Value" type:"Repeated"` +} + +// DescribeFailoverTestJobsResponse is the response struct for api DescribeFailoverTestJobs +type DescribeFailoverTestJobsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextToken string `json:"NextToken" xml:"NextToken"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Count int `json:"Count" xml:"Count"` + FailoverTestJobList []FailoverTestJobListItem `json:"FailoverTestJobList" xml:"FailoverTestJobList"` +} + +// CreateDescribeFailoverTestJobsRequest creates a request to invoke DescribeFailoverTestJobs API +func CreateDescribeFailoverTestJobsRequest() (request *DescribeFailoverTestJobsRequest) { + request = &DescribeFailoverTestJobsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeFailoverTestJobs", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeFailoverTestJobsResponse creates a response to parse from DescribeFailoverTestJobs response +func CreateDescribeFailoverTestJobsResponse() (response *DescribeFailoverTestJobsResponse) { + response = &DescribeFailoverTestJobsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/describe_ipv6_addresses.go b/services/vpc/describe_ipv6_addresses.go index 76b84b42ab..851cfb2d6b 100644 --- a/services/vpc/describe_ipv6_addresses.go +++ b/services/vpc/describe_ipv6_addresses.go @@ -71,22 +71,32 @@ func (client *Client) DescribeIpv6AddressesWithCallback(request *DescribeIpv6Add // DescribeIpv6AddressesRequest is the request struct for api DescribeIpv6Addresses type DescribeIpv6AddressesRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Ipv6InternetBandwidthId string `position:"Query" name:"Ipv6InternetBandwidthId"` - NetworkType string `position:"Query" name:"NetworkType"` - IncludeReservationData requests.Boolean `position:"Query" name:"IncludeReservationData"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - AssociatedInstanceType string `position:"Query" name:"AssociatedInstanceType"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - 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"` - Ipv6AddressId string `position:"Query" name:"Ipv6AddressId"` - VpcId string `position:"Query" name:"VpcId"` - Name string `position:"Query" name:"Name"` - Ipv6Address string `position:"Query" name:"Ipv6Address"` - AssociatedInstanceId string `position:"Query" name:"AssociatedInstanceId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ServiceManaged requests.Boolean `position:"Query" name:"ServiceManaged"` + Ipv6InternetBandwidthId string `position:"Query" name:"Ipv6InternetBandwidthId"` + NetworkType string `position:"Query" name:"NetworkType"` + IncludeReservationData requests.Boolean `position:"Query" name:"IncludeReservationData"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + AssociatedInstanceType string `position:"Query" name:"AssociatedInstanceType"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + AddressType string `position:"Query" name:"AddressType"` + Tag *[]DescribeIpv6AddressesTag `position:"Query" name:"Tag" type:"Repeated"` + 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"` + Ipv6AddressId string `position:"Query" name:"Ipv6AddressId"` + VpcId string `position:"Query" name:"VpcId"` + Name string `position:"Query" name:"Name"` + Ipv6Address string `position:"Query" name:"Ipv6Address"` + AssociatedInstanceId string `position:"Query" name:"AssociatedInstanceId"` +} + +// DescribeIpv6AddressesTag is a repeated param struct in DescribeIpv6AddressesRequest +type DescribeIpv6AddressesTag struct { + Key string `name:"Key"` + Value string `name:"Value"` } // DescribeIpv6AddressesResponse is the response struct for api DescribeIpv6Addresses diff --git a/services/vpc/describe_ipv6_gateway_attribute.go b/services/vpc/describe_ipv6_gateway_attribute.go index e5247ccf5e..b19f13df86 100644 --- a/services/vpc/describe_ipv6_gateway_attribute.go +++ b/services/vpc/describe_ipv6_gateway_attribute.go @@ -81,20 +81,21 @@ type DescribeIpv6GatewayAttributeRequest struct { // DescribeIpv6GatewayAttributeResponse is the response struct for api DescribeIpv6GatewayAttribute type DescribeIpv6GatewayAttributeResponse struct { *responses.BaseResponse - VpcId string `json:"VpcId" xml:"VpcId"` - Status string `json:"Status" xml:"Status"` - 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"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - Name string `json:"Name" xml:"Name"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - Tags TagsInDescribeIpv6GatewayAttribute `json:"Tags" xml:"Tags"` + VpcId string `json:"VpcId" xml:"VpcId"` + Status string `json:"Status" xml:"Status"` + 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"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + Name string `json:"Name" xml:"Name"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + GatewayRouteTableId string `json:"GatewayRouteTableId" xml:"GatewayRouteTableId"` + Tags TagsInDescribeIpv6GatewayAttribute `json:"Tags" xml:"Tags"` } // CreateDescribeIpv6GatewayAttributeRequest creates a request to invoke DescribeIpv6GatewayAttribute API diff --git a/services/vpc/describe_nat_gateway_associate_network_interfaces.go b/services/vpc/describe_nat_gateway_associate_network_interfaces.go new file mode 100644 index 0000000000..026813c5cb --- /dev/null +++ b/services/vpc/describe_nat_gateway_associate_network_interfaces.go @@ -0,0 +1,126 @@ +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" +) + +// DescribeNatGatewayAssociateNetworkInterfaces invokes the vpc.DescribeNatGatewayAssociateNetworkInterfaces API synchronously +func (client *Client) DescribeNatGatewayAssociateNetworkInterfaces(request *DescribeNatGatewayAssociateNetworkInterfacesRequest) (response *DescribeNatGatewayAssociateNetworkInterfacesResponse, err error) { + response = CreateDescribeNatGatewayAssociateNetworkInterfacesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeNatGatewayAssociateNetworkInterfacesWithChan invokes the vpc.DescribeNatGatewayAssociateNetworkInterfaces API asynchronously +func (client *Client) DescribeNatGatewayAssociateNetworkInterfacesWithChan(request *DescribeNatGatewayAssociateNetworkInterfacesRequest) (<-chan *DescribeNatGatewayAssociateNetworkInterfacesResponse, <-chan error) { + responseChan := make(chan *DescribeNatGatewayAssociateNetworkInterfacesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeNatGatewayAssociateNetworkInterfaces(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeNatGatewayAssociateNetworkInterfacesWithCallback invokes the vpc.DescribeNatGatewayAssociateNetworkInterfaces API asynchronously +func (client *Client) DescribeNatGatewayAssociateNetworkInterfacesWithCallback(request *DescribeNatGatewayAssociateNetworkInterfacesRequest, callback func(response *DescribeNatGatewayAssociateNetworkInterfacesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeNatGatewayAssociateNetworkInterfacesResponse + var err error + defer close(result) + response, err = client.DescribeNatGatewayAssociateNetworkInterfaces(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeNatGatewayAssociateNetworkInterfacesRequest is the request struct for api DescribeNatGatewayAssociateNetworkInterfaces +type DescribeNatGatewayAssociateNetworkInterfacesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` + Tag *[]DescribeNatGatewayAssociateNetworkInterfacesTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Filter *[]DescribeNatGatewayAssociateNetworkInterfacesFilter `position:"Query" name:"Filter" type:"Repeated"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribeNatGatewayAssociateNetworkInterfacesFilter is a repeated param struct in DescribeNatGatewayAssociateNetworkInterfacesRequest +type DescribeNatGatewayAssociateNetworkInterfacesFilter struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeNatGatewayAssociateNetworkInterfacesTag is a repeated param struct in DescribeNatGatewayAssociateNetworkInterfacesRequest +type DescribeNatGatewayAssociateNetworkInterfacesTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeNatGatewayAssociateNetworkInterfacesResponse is the response struct for api DescribeNatGatewayAssociateNetworkInterfaces +type DescribeNatGatewayAssociateNetworkInterfacesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextToken string `json:"NextToken" xml:"NextToken"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + AssociateNetworkInterfaces AssociateNetworkInterfaces `json:"AssociateNetworkInterfaces" xml:"AssociateNetworkInterfaces"` +} + +// CreateDescribeNatGatewayAssociateNetworkInterfacesRequest creates a request to invoke DescribeNatGatewayAssociateNetworkInterfaces API +func CreateDescribeNatGatewayAssociateNetworkInterfacesRequest() (request *DescribeNatGatewayAssociateNetworkInterfacesRequest) { + request = &DescribeNatGatewayAssociateNetworkInterfacesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeNatGatewayAssociateNetworkInterfaces", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeNatGatewayAssociateNetworkInterfacesResponse creates a response to parse from DescribeNatGatewayAssociateNetworkInterfaces response +func CreateDescribeNatGatewayAssociateNetworkInterfacesResponse() (response *DescribeNatGatewayAssociateNetworkInterfacesResponse) { + response = &DescribeNatGatewayAssociateNetworkInterfacesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/describe_network_acl_attributes.go b/services/vpc/describe_network_acl_attributes.go index 4efd8a2029..aa2ba607fd 100644 --- a/services/vpc/describe_network_acl_attributes.go +++ b/services/vpc/describe_network_acl_attributes.go @@ -75,6 +75,7 @@ type DescribeNetworkAclAttributesRequest struct { ClientToken string `position:"Query" name:"ClientToken"` NetworkAclId string `position:"Query" name:"NetworkAclId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } diff --git a/services/vpc/describe_network_acls.go b/services/vpc/describe_network_acls.go index 10f2152e5c..136f2f8a32 100644 --- a/services/vpc/describe_network_acls.go +++ b/services/vpc/describe_network_acls.go @@ -78,6 +78,7 @@ type DescribeNetworkAclsRequest struct { NetworkAclId string `position:"Query" name:"NetworkAclId"` ResourceId string `position:"Query" name:"ResourceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` NetworkAclName string `position:"Query" name:"NetworkAclName"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ResourceType string `position:"Query" name:"ResourceType"` diff --git a/services/vpc/describe_public_ip_address.go b/services/vpc/describe_public_ip_address.go index 79d4def896..97870c076c 100644 --- a/services/vpc/describe_public_ip_address.go +++ b/services/vpc/describe_public_ip_address.go @@ -75,6 +75,7 @@ type DescribePublicIpAddressRequest struct { PageNumber requests.Integer `position:"Query" name:"PageNumber"` ResourceUid requests.Integer `position:"Query" name:"ResourceUid"` PageSize requests.Integer `position:"Query" name:"PageSize"` + IpVersion string `position:"Query" name:"IpVersion"` Bandwidth string `position:"Query" name:"Bandwidth"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` diff --git a/services/vpc/describe_route_table_list.go b/services/vpc/describe_route_table_list.go index 280aab0698..0b5de1c114 100644 --- a/services/vpc/describe_route_table_list.go +++ b/services/vpc/describe_route_table_list.go @@ -84,6 +84,7 @@ type DescribeRouteTableListRequest struct { RouterType string `position:"Query" name:"RouterType"` RouterId string `position:"Query" name:"RouterId"` VpcId string `position:"Query" name:"VpcId"` + RouteTableType string `position:"Query" name:"RouteTableType"` } // DescribeRouteTableListTag is a repeated param struct in DescribeRouteTableListRequest diff --git a/services/vpc/describe_router_interface_attribute.go b/services/vpc/describe_router_interface_attribute.go index 3ede3553bf..d3d8b91e12 100644 --- a/services/vpc/describe_router_interface_attribute.go +++ b/services/vpc/describe_router_interface_attribute.go @@ -124,6 +124,7 @@ type DescribeRouterInterfaceAttributeResponse struct { HasReservationData string `json:"HasReservationData" xml:"HasReservationData"` AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + FastLinkMode string `json:"FastLinkMode" xml:"FastLinkMode"` Tags TagsInDescribeRouterInterfaceAttribute `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/describe_snat_table_entries.go b/services/vpc/describe_snat_table_entries.go index 9182c5b77e..f16ebd06ec 100644 --- a/services/vpc/describe_snat_table_entries.go +++ b/services/vpc/describe_snat_table_entries.go @@ -72,6 +72,7 @@ func (client *Client) DescribeSnatTableEntriesWithCallback(request *DescribeSnat type DescribeSnatTableEntriesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NetworkInterfaceIds *[]string `position:"Query" name:"NetworkInterfaceIds" type:"Repeated"` SourceCIDR string `position:"Query" name:"SourceCIDR"` SnatIp string `position:"Query" name:"SnatIp"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` diff --git a/services/vpc/describe_ssl_vpn_client_cert.go b/services/vpc/describe_ssl_vpn_client_cert.go index 849efc2b9b..1100944353 100644 --- a/services/vpc/describe_ssl_vpn_client_cert.go +++ b/services/vpc/describe_ssl_vpn_client_cert.go @@ -93,6 +93,7 @@ type DescribeSslVpnClientCertResponse struct { SslVpnClientCertId string `json:"SslVpnClientCertId" xml:"SslVpnClientCertId"` SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` Name string `json:"Name" xml:"Name"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` } // 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 97d299dc0c..fb0e8e015c 100644 --- a/services/vpc/describe_ssl_vpn_client_certs.go +++ b/services/vpc/describe_ssl_vpn_client_certs.go @@ -74,6 +74,7 @@ type DescribeSslVpnClientCertsRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` SslVpnServerId string `position:"Query" name:"SslVpnServerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` PageSize requests.Integer `position:"Query" name:"PageSize"` SslVpnClientCertId string `position:"Query" name:"SslVpnClientCertId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` diff --git a/services/vpc/describe_ssl_vpn_servers.go b/services/vpc/describe_ssl_vpn_servers.go index 19f29c0cca..d9c1c6b7c9 100644 --- a/services/vpc/describe_ssl_vpn_servers.go +++ b/services/vpc/describe_ssl_vpn_servers.go @@ -74,6 +74,7 @@ type DescribeSslVpnServersRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` SslVpnServerId string `position:"Query" name:"SslVpnServerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` PageSize requests.Integer `position:"Query" name:"PageSize"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` diff --git a/services/vpc/describe_v_switches.go b/services/vpc/describe_v_switches.go index 1fc289b377..ff005b98ec 100644 --- a/services/vpc/describe_v_switches.go +++ b/services/vpc/describe_v_switches.go @@ -72,6 +72,7 @@ func (client *Client) DescribeVSwitchesWithCallback(request *DescribeVSwitchesRe type DescribeVSwitchesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + EnableIpv6 requests.Boolean `position:"Query" name:"EnableIpv6"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` PageSize requests.Integer `position:"Query" name:"PageSize"` diff --git a/services/vpc/describe_vco_route_entries.go b/services/vpc/describe_vco_route_entries.go index 76637cf284..d7c251fc4d 100644 --- a/services/vpc/describe_vco_route_entries.go +++ b/services/vpc/describe_vco_route_entries.go @@ -89,6 +89,7 @@ type DescribeVcoRouteEntriesResponse struct { PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` VcoRouteEntries []VcoRouteEntrie `json:"VcoRouteEntries" xml:"VcoRouteEntries"` + VpnRouteCounts []VpnRouteCount `json:"VpnRouteCounts" xml:"VpnRouteCounts"` } // CreateDescribeVcoRouteEntriesRequest creates a request to invoke DescribeVcoRouteEntries API diff --git a/services/vpc/describe_vpc_attribute.go b/services/vpc/describe_vpc_attribute.go index 245e6a1841..33384928a6 100644 --- a/services/vpc/describe_vpc_attribute.go +++ b/services/vpc/describe_vpc_attribute.go @@ -83,32 +83,35 @@ type DescribeVpcAttributeRequest struct { // DescribeVpcAttributeResponse is the response struct for api DescribeVpcAttribute type DescribeVpcAttributeResponse struct { *responses.BaseResponse - 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"` - VpcName string `json:"VpcName" xml:"VpcName"` - 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"` - NetworkAclNum string `json:"NetworkAclNum" xml:"NetworkAclNum"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - DhcpOptionsSetId string `json:"DhcpOptionsSetId" xml:"DhcpOptionsSetId"` - 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"` - AssociatedCens AssociatedCensInDescribeVpcAttribute `json:"AssociatedCens" xml:"AssociatedCens"` - CloudResources CloudResourcesInDescribeVpcAttribute `json:"CloudResources" xml:"CloudResources"` - Ipv6CidrBlocks Ipv6CidrBlocksInDescribeVpcAttribute `json:"Ipv6CidrBlocks" xml:"Ipv6CidrBlocks"` - Tags TagsInDescribeVpcAttribute `json:"Tags" xml:"Tags"` + 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"` + VpcName string `json:"VpcName" xml:"VpcName"` + 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"` + NetworkAclNum string `json:"NetworkAclNum" xml:"NetworkAclNum"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + DhcpOptionsSetId string `json:"DhcpOptionsSetId" xml:"DhcpOptionsSetId"` + Ipv6CidrBlock string `json:"Ipv6CidrBlock" xml:"Ipv6CidrBlock"` + SupportIpv4Gateway bool `json:"SupportIpv4Gateway" xml:"SupportIpv4Gateway"` + Ipv4GatewayId string `json:"Ipv4GatewayId" xml:"Ipv4GatewayId"` + EnabledIpv6 bool `json:"EnabledIpv6" xml:"EnabledIpv6"` + DnsHostnameStatus string `json:"DnsHostnameStatus" xml:"DnsHostnameStatus"` + VSwitchIds VSwitchIdsInDescribeVpcAttribute `json:"VSwitchIds" xml:"VSwitchIds"` + UserCidrs UserCidrsInDescribeVpcAttribute `json:"UserCidrs" xml:"UserCidrs"` + SecondaryCidrBlocks SecondaryCidrBlocksInDescribeVpcAttribute `json:"SecondaryCidrBlocks" xml:"SecondaryCidrBlocks"` + AssociatedCens AssociatedCensInDescribeVpcAttribute `json:"AssociatedCens" xml:"AssociatedCens"` + CloudResources CloudResourcesInDescribeVpcAttribute `json:"CloudResources" xml:"CloudResources"` + Ipv6CidrBlocks Ipv6CidrBlocksInDescribeVpcAttribute `json:"Ipv6CidrBlocks" xml:"Ipv6CidrBlocks"` + Tags TagsInDescribeVpcAttribute `json:"Tags" xml:"Tags"` + AssociatedPropagationSources AssociatedPropagationSources `json:"AssociatedPropagationSources" xml:"AssociatedPropagationSources"` } // CreateDescribeVpcAttributeRequest creates a request to invoke DescribeVpcAttribute API diff --git a/services/vpc/describe_vpcs.go b/services/vpc/describe_vpcs.go index 899582dc28..1d28156c8a 100644 --- a/services/vpc/describe_vpcs.go +++ b/services/vpc/describe_vpcs.go @@ -73,6 +73,7 @@ type DescribeVpcsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` VpcOwnerId requests.Integer `position:"Query" name:"VpcOwnerId"` + EnableIpv6 requests.Boolean `position:"Query" name:"EnableIpv6"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` VpcName string `position:"Query" name:"VpcName"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` diff --git a/services/vpc/describe_vpn_connection.go b/services/vpc/describe_vpn_connection.go index fad42fa268..07a1022f35 100644 --- a/services/vpc/describe_vpn_connection.go +++ b/services/vpc/describe_vpn_connection.go @@ -105,6 +105,7 @@ type DescribeVpnConnectionResponse struct { TransitRouterName string `json:"TransitRouterName" xml:"TransitRouterName"` CrossAccountAuthorized bool `json:"CrossAccountAuthorized" xml:"CrossAccountAuthorized"` EnableTunnelsBgp bool `json:"EnableTunnelsBgp" xml:"EnableTunnelsBgp"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` VcoHealthCheck VcoHealthCheck `json:"VcoHealthCheck" xml:"VcoHealthCheck"` diff --git a/services/vpc/describe_vpn_connections.go b/services/vpc/describe_vpn_connections.go index 69c9a0bd1c..2a08544170 100644 --- a/services/vpc/describe_vpn_connections.go +++ b/services/vpc/describe_vpn_connections.go @@ -74,6 +74,7 @@ type DescribeVpnConnectionsRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` CustomerGatewayId string `position:"Query" name:"CustomerGatewayId"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` PageSize requests.Integer `position:"Query" name:"PageSize"` Tag *[]DescribeVpnConnectionsTag `position:"Query" name:"Tag" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` @@ -92,11 +93,11 @@ type DescribeVpnConnectionsTag struct { // DescribeVpnConnectionsResponse is the response struct for api DescribeVpnConnections type DescribeVpnConnectionsResponse struct { *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - VpnConnections VpnConnections `json:"VpnConnections" xml:"VpnConnections"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + VpnConnections VpnConnectionsInDescribeVpnConnections `json:"VpnConnections" xml:"VpnConnections"` } // CreateDescribeVpnConnectionsRequest creates a request to invoke DescribeVpnConnections API diff --git a/services/vpc/describe_vpn_gateway.go b/services/vpc/describe_vpn_gateway.go index 244a7084c5..a65ee24cde 100644 --- a/services/vpc/describe_vpn_gateway.go +++ b/services/vpc/describe_vpn_gateway.go @@ -82,32 +82,34 @@ type DescribeVpnGatewayRequest struct { // DescribeVpnGatewayResponse is the response struct for api DescribeVpnGateway type DescribeVpnGatewayResponse struct { *responses.BaseResponse - VpnType string `json:"VpnType" xml:"VpnType"` - Status string `json:"Status" xml:"Status"` - VpcId string `json:"VpcId" xml:"VpcId"` - 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"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - RequestId string `json:"RequestId" xml:"RequestId"` - Description string `json:"Description" xml:"Description"` - EnableBgp bool `json:"EnableBgp" xml:"EnableBgp"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - SslVpn string `json:"SslVpn" xml:"SslVpn"` - Name string `json:"Name" xml:"Name"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - DisasterRecoveryInternetIp string `json:"DisasterRecoveryInternetIp" xml:"DisasterRecoveryInternetIp"` - DisasterRecoveryVSwitchId string `json:"DisasterRecoveryVSwitchId" xml:"DisasterRecoveryVSwitchId"` - SslVpnInternetIp string `json:"SslVpnInternetIp" xml:"SslVpnInternetIp"` - ReservationData ReservationData `json:"ReservationData" xml:"ReservationData"` - Tags TagsInDescribeVpnGateway `json:"Tags" xml:"Tags"` + VpnType string `json:"VpnType" xml:"VpnType"` + Status string `json:"Status" xml:"Status"` + VpcId string `json:"VpcId" xml:"VpcId"` + 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"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + RequestId string `json:"RequestId" xml:"RequestId"` + Description string `json:"Description" xml:"Description"` + EnableBgp bool `json:"EnableBgp" xml:"EnableBgp"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + SslVpn string `json:"SslVpn" xml:"SslVpn"` + Name string `json:"Name" xml:"Name"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + DisasterRecoveryInternetIp string `json:"DisasterRecoveryInternetIp" xml:"DisasterRecoveryInternetIp"` + DisasterRecoveryVSwitchId string `json:"DisasterRecoveryVSwitchId" xml:"DisasterRecoveryVSwitchId"` + SslVpnInternetIp string `json:"SslVpnInternetIp" xml:"SslVpnInternetIp"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + EniInstanceIds EniInstanceIdsInDescribeVpnGateway `json:"EniInstanceIds" xml:"EniInstanceIds"` + ReservationData ReservationData `json:"ReservationData" xml:"ReservationData"` + Tags TagsInDescribeVpnGateway `json:"Tags" xml:"Tags"` } // CreateDescribeVpnGatewayRequest creates a request to invoke DescribeVpnGateway API diff --git a/services/vpc/describe_vpn_gateway_available_zones.go b/services/vpc/describe_vpn_gateway_available_zones.go new file mode 100644 index 0000000000..cafca3c078 --- /dev/null +++ b/services/vpc/describe_vpn_gateway_available_zones.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" +) + +// DescribeVpnGatewayAvailableZones invokes the vpc.DescribeVpnGatewayAvailableZones API synchronously +func (client *Client) DescribeVpnGatewayAvailableZones(request *DescribeVpnGatewayAvailableZonesRequest) (response *DescribeVpnGatewayAvailableZonesResponse, err error) { + response = CreateDescribeVpnGatewayAvailableZonesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeVpnGatewayAvailableZonesWithChan invokes the vpc.DescribeVpnGatewayAvailableZones API asynchronously +func (client *Client) DescribeVpnGatewayAvailableZonesWithChan(request *DescribeVpnGatewayAvailableZonesRequest) (<-chan *DescribeVpnGatewayAvailableZonesResponse, <-chan error) { + responseChan := make(chan *DescribeVpnGatewayAvailableZonesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeVpnGatewayAvailableZones(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeVpnGatewayAvailableZonesWithCallback invokes the vpc.DescribeVpnGatewayAvailableZones API asynchronously +func (client *Client) DescribeVpnGatewayAvailableZonesWithCallback(request *DescribeVpnGatewayAvailableZonesRequest, callback func(response *DescribeVpnGatewayAvailableZonesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeVpnGatewayAvailableZonesResponse + var err error + defer close(result) + response, err = client.DescribeVpnGatewayAvailableZones(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeVpnGatewayAvailableZonesRequest is the request struct for api DescribeVpnGatewayAvailableZones +type DescribeVpnGatewayAvailableZonesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Spec string `position:"Query" name:"Spec"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// DescribeVpnGatewayAvailableZonesResponse is the response struct for api DescribeVpnGatewayAvailableZones +type DescribeVpnGatewayAvailableZonesResponse struct { + *responses.BaseResponse + RegionId string `json:"RegionId" xml:"RegionId"` + RequestId string `json:"RequestId" xml:"RequestId"` + AvailableZoneIdList []AvailableZoneId `json:"AvailableZoneIdList" xml:"AvailableZoneIdList"` +} + +// CreateDescribeVpnGatewayAvailableZonesRequest creates a request to invoke DescribeVpnGatewayAvailableZones API +func CreateDescribeVpnGatewayAvailableZonesRequest() (request *DescribeVpnGatewayAvailableZonesRequest) { + request = &DescribeVpnGatewayAvailableZonesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DescribeVpnGatewayAvailableZones", "vpc", "openAPI") + request.Method = requests.GET + return +} + +// CreateDescribeVpnGatewayAvailableZonesResponse creates a response to parse from DescribeVpnGatewayAvailableZones response +func CreateDescribeVpnGatewayAvailableZonesResponse() (response *DescribeVpnGatewayAvailableZonesResponse) { + response = &DescribeVpnGatewayAvailableZonesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/describe_vpn_gateways.go b/services/vpc/describe_vpn_gateways.go index c99ecc022c..8e57d333f9 100644 --- a/services/vpc/describe_vpn_gateways.go +++ b/services/vpc/describe_vpn_gateways.go @@ -74,6 +74,7 @@ type DescribeVpnGatewaysRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` IncludeReservationData requests.Boolean `position:"Query" name:"IncludeReservationData"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` PageSize requests.Integer `position:"Query" name:"PageSize"` Tag *[]DescribeVpnGatewaysTag `position:"Query" name:"Tag" type:"Repeated"` BusinessStatus string `position:"Query" name:"BusinessStatus"` diff --git a/services/vpc/describe_vpn_route_entries.go b/services/vpc/describe_vpn_route_entries.go index c9a57dbe8a..7f0e33efbb 100644 --- a/services/vpc/describe_vpn_route_entries.go +++ b/services/vpc/describe_vpn_route_entries.go @@ -84,11 +84,12 @@ 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"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - VpnRouteEntries VpnRouteEntries `json:"VpnRouteEntries" xml:"VpnRouteEntries"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + VpnRouteEntries VpnRouteEntries `json:"VpnRouteEntries" xml:"VpnRouteEntries"` + VpnRouteCounts VpnRouteCountsInDescribeVpnRouteEntries `json:"VpnRouteCounts" xml:"VpnRouteCounts"` } // CreateDescribeVpnRouteEntriesRequest creates a request to invoke DescribeVpnRouteEntries API diff --git a/services/vpc/diagnose_vpn_connections.go b/services/vpc/diagnose_vpn_connections.go new file mode 100644 index 0000000000..3cb8ad0a42 --- /dev/null +++ b/services/vpc/diagnose_vpn_connections.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" +) + +// DiagnoseVpnConnections invokes the vpc.DiagnoseVpnConnections API synchronously +func (client *Client) DiagnoseVpnConnections(request *DiagnoseVpnConnectionsRequest) (response *DiagnoseVpnConnectionsResponse, err error) { + response = CreateDiagnoseVpnConnectionsResponse() + err = client.DoAction(request, response) + return +} + +// DiagnoseVpnConnectionsWithChan invokes the vpc.DiagnoseVpnConnections API asynchronously +func (client *Client) DiagnoseVpnConnectionsWithChan(request *DiagnoseVpnConnectionsRequest) (<-chan *DiagnoseVpnConnectionsResponse, <-chan error) { + responseChan := make(chan *DiagnoseVpnConnectionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DiagnoseVpnConnections(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DiagnoseVpnConnectionsWithCallback invokes the vpc.DiagnoseVpnConnections API asynchronously +func (client *Client) DiagnoseVpnConnectionsWithCallback(request *DiagnoseVpnConnectionsRequest, callback func(response *DiagnoseVpnConnectionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DiagnoseVpnConnectionsResponse + var err error + defer close(result) + response, err = client.DiagnoseVpnConnections(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DiagnoseVpnConnectionsRequest is the request struct for api DiagnoseVpnConnections +type DiagnoseVpnConnectionsRequest struct { + *requests.RpcRequest + TunnelIds *[]string `position:"Query" name:"TunnelIds" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VpnGatewayId string `position:"Query" name:"VpnGatewayId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + VpnConnectionIds *[]string `position:"Query" name:"VpnConnectionIds" type:"Repeated"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DiagnoseVpnConnectionsResponse is the response struct for api DiagnoseVpnConnections +type DiagnoseVpnConnectionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + VpnConnections []VpnConnection `json:"VpnConnections" xml:"VpnConnections"` +} + +// CreateDiagnoseVpnConnectionsRequest creates a request to invoke DiagnoseVpnConnections API +func CreateDiagnoseVpnConnectionsRequest() (request *DiagnoseVpnConnectionsRequest) { + request = &DiagnoseVpnConnectionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "DiagnoseVpnConnections", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateDiagnoseVpnConnectionsResponse creates a response to parse from DiagnoseVpnConnections response +func CreateDiagnoseVpnConnectionsResponse() (response *DiagnoseVpnConnectionsResponse) { + response = &DiagnoseVpnConnectionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/dissociate_route_table_from_gateway.go b/services/vpc/dissociate_route_table_from_gateway.go index a05a709bac..87818dcf53 100644 --- a/services/vpc/dissociate_route_table_from_gateway.go +++ b/services/vpc/dissociate_route_table_from_gateway.go @@ -75,6 +75,7 @@ type DissociateRouteTableFromGatewayRequest struct { ClientToken string `position:"Query" name:"ClientToken"` GatewayId string `position:"Query" name:"GatewayId"` RouteTableId string `position:"Query" name:"RouteTableId"` + GatewayType string `position:"Query" name:"GatewayType"` DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` diff --git a/services/vpc/enable_physical_connection.go b/services/vpc/enable_physical_connection.go index 6053c18b6d..83b23e6256 100644 --- a/services/vpc/enable_physical_connection.go +++ b/services/vpc/enable_physical_connection.go @@ -76,6 +76,7 @@ type EnablePhysicalConnectionRequest struct { ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ByPassSp requests.Boolean `position:"Query" name:"ByPassSp"` PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` } diff --git a/services/vpc/endpoint.go b/services/vpc/endpoint.go index 31ba49d8a0..3ef507c05b 100644 --- a/services/vpc/endpoint.go +++ b/services/vpc/endpoint.go @@ -10,45 +10,37 @@ var EndpointType = "regional" func GetEndpointMap() map[string]string { if EndpointMap == nil { EndpointMap = map[string]string{ - "cn-shanghai-internal-test-1": "vpc.aliyuncs.com", + "cn-shanghai-internal-test-1": "vpc-pre.cn-hangzhou.aliyuncs.com", "cn-beijing-gov-1": "vpc.aliyuncs.com", "cn-shenzhen-su18-b01": "vpc.aliyuncs.com", - "cn-beijing": "vpc.aliyuncs.com", "cn-shanghai-inner": "vpc.aliyuncs.com", "cn-shenzhen-st4-d01": "vpc.aliyuncs.com", "cn-haidian-cm12-c01": "vpc.aliyuncs.com", "cn-hangzhou-internal-prod-1": "vpc.aliyuncs.com", "cn-north-2-gov-1": "vpc.aliyuncs.com", "cn-yushanfang": "vpc.aliyuncs.com", - "cn-qingdao": "vpc.aliyuncs.com", "cn-hongkong-finance-pop": "vpc.aliyuncs.com", "cn-qingdao-nebula": "vpc-nebula.cn-qingdao-nebula.aliyuncs.com", - "cn-shanghai": "vpc.aliyuncs.com", "cn-shanghai-finance-1": "vpc.aliyuncs.com", - "cn-hongkong": "vpc.aliyuncs.com", "cn-beijing-finance-pop": "vpc.aliyuncs.com", "cn-wuhan": "vpc.aliyuncs.com", - "us-west-1": "vpc.aliyuncs.com", "cn-zhangbei": "vpc.aliyuncs.com", - "cn-shenzhen": "vpc.aliyuncs.com", "cn-zhengzhou-nebula-1": "vpc-nebula.cn-qingdao-nebula.aliyuncs.com", "rus-west-1-pop": "vpc.aliyuncs.com", - "cn-shanghai-et15-b01": "vpc.aliyuncs.com", + "cn-shanghai-et15-b01": "vpc-pre.cn-hangzhou.aliyuncs.com", "cn-hangzhou-bj-b01": "vpc.aliyuncs.com", - "cn-hangzhou-internal-test-1": "vpc.aliyuncs.com", + "cn-hangzhou-internal-test-1": "vpc-pre.cn-hangzhou.aliyuncs.com", "eu-west-1-oxs": "vpc-nebula.cn-shenzhen-cloudstone.aliyuncs.com", "cn-zhangbei-na61-b01": "vpc.aliyuncs.com", - "cn-hangzhou-internal-test-3": "vpc.aliyuncs.com", + "cn-hangzhou-internal-test-3": "vpc-pre.cn-hangzhou.aliyuncs.com", "cn-shenzhen-finance-1": "vpc.aliyuncs.com", - "cn-hangzhou-internal-test-2": "vpc.aliyuncs.com", - "cn-hangzhou-test-306": "vpc.aliyuncs.com", + "cn-hangzhou-internal-test-2": "vpc-inner-pre.cn-hangzhou.aliyuncs.com", + "cn-hangzhou-test-306": "vpc-pre.cn-hangzhou.aliyuncs.com", "cn-huhehaote-nebula-1": "vpc-nebula.cn-qingdao-nebula.aliyuncs.com", "cn-shanghai-et2-b01": "vpc.aliyuncs.com", "cn-hangzhou-finance": "vpc.aliyuncs.com", - "ap-southeast-1": "vpc.aliyuncs.com", "cn-beijing-nu16-b01": "vpc.aliyuncs.com", "cn-edge-1": "vpc-nebula.cn-qingdao-nebula.aliyuncs.com", - "us-east-1": "vpc.aliyuncs.com", "cn-fujian": "vpc.aliyuncs.com", "ap-northeast-2-pop": "vpc.aliyuncs.com", "cn-shenzhen-inner": "vpc.aliyuncs.com", diff --git a/services/vpc/get_nat_gateway_attribute.go b/services/vpc/get_nat_gateway_attribute.go index 39b5b1a350..b3e442a16c 100644 --- a/services/vpc/get_nat_gateway_attribute.go +++ b/services/vpc/get_nat_gateway_attribute.go @@ -97,12 +97,15 @@ type GetNatGatewayAttributeResponse struct { Name string `json:"Name" xml:"Name"` PrivateLinkEnabled bool `json:"PrivateLinkEnabled" xml:"PrivateLinkEnabled"` PrivateLinkMode string `json:"PrivateLinkMode" xml:"PrivateLinkMode"` + EnableSessionLog bool `json:"EnableSessionLog" xml:"EnableSessionLog"` ForwardTable ForwardTable `json:"ForwardTable" xml:"ForwardTable"` SnatTable SnatTable `json:"SnatTable" xml:"SnatTable"` FullNatTable FullNatTable `json:"FullNatTable" xml:"FullNatTable"` BillingConfig BillingConfig `json:"BillingConfig" xml:"BillingConfig"` PrivateInfo PrivateInfo `json:"PrivateInfo" xml:"PrivateInfo"` DeletionProtectionInfo DeletionProtectionInfo `json:"DeletionProtectionInfo" xml:"DeletionProtectionInfo"` + LogDelivery LogDelivery `json:"LogDelivery" xml:"LogDelivery"` + AccessMode AccessMode `json:"AccessMode" xml:"AccessMode"` IpList []IpListItem `json:"IpList" xml:"IpList"` } diff --git a/services/vpc/get_nat_gateway_convert_status.go b/services/vpc/get_nat_gateway_convert_status.go deleted file mode 100644 index 97bcaf23cb..0000000000 --- a/services/vpc/get_nat_gateway_convert_status.go +++ /dev/null @@ -1,108 +0,0 @@ -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" -) - -// GetNatGatewayConvertStatus invokes the vpc.GetNatGatewayConvertStatus API synchronously -func (client *Client) GetNatGatewayConvertStatus(request *GetNatGatewayConvertStatusRequest) (response *GetNatGatewayConvertStatusResponse, err error) { - response = CreateGetNatGatewayConvertStatusResponse() - err = client.DoAction(request, response) - return -} - -// GetNatGatewayConvertStatusWithChan invokes the vpc.GetNatGatewayConvertStatus API asynchronously -func (client *Client) GetNatGatewayConvertStatusWithChan(request *GetNatGatewayConvertStatusRequest) (<-chan *GetNatGatewayConvertStatusResponse, <-chan error) { - responseChan := make(chan *GetNatGatewayConvertStatusResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.GetNatGatewayConvertStatus(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// GetNatGatewayConvertStatusWithCallback invokes the vpc.GetNatGatewayConvertStatus API asynchronously -func (client *Client) GetNatGatewayConvertStatusWithCallback(request *GetNatGatewayConvertStatusRequest, callback func(response *GetNatGatewayConvertStatusResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *GetNatGatewayConvertStatusResponse - var err error - defer close(result) - response, err = client.GetNatGatewayConvertStatus(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// GetNatGatewayConvertStatusRequest is the request struct for api GetNatGatewayConvertStatus -type GetNatGatewayConvertStatusRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NatGatewayId string `position:"Query" name:"NatGatewayId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// GetNatGatewayConvertStatusResponse is the response struct for api GetNatGatewayConvertStatus -type GetNatGatewayConvertStatusResponse struct { - *responses.BaseResponse - 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"` -} - -// CreateGetNatGatewayConvertStatusRequest creates a request to invoke GetNatGatewayConvertStatus API -func CreateGetNatGatewayConvertStatusRequest() (request *GetNatGatewayConvertStatusRequest) { - request = &GetNatGatewayConvertStatusRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Vpc", "2016-04-28", "GetNatGatewayConvertStatus", "vpc", "openAPI") - request.Method = requests.POST - return -} - -// CreateGetNatGatewayConvertStatusResponse creates a response to parse from GetNatGatewayConvertStatus response -func CreateGetNatGatewayConvertStatusResponse() (response *GetNatGatewayConvertStatusResponse) { - response = &GetNatGatewayConvertStatusResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/vpc/get_public_ip_address_pool_service_status.go b/services/vpc/get_public_ip_address_pool_service_status.go new file mode 100644 index 0000000000..b98a2dc74f --- /dev/null +++ b/services/vpc/get_public_ip_address_pool_service_status.go @@ -0,0 +1,104 @@ +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" +) + +// GetPublicIpAddressPoolServiceStatus invokes the vpc.GetPublicIpAddressPoolServiceStatus API synchronously +func (client *Client) GetPublicIpAddressPoolServiceStatus(request *GetPublicIpAddressPoolServiceStatusRequest) (response *GetPublicIpAddressPoolServiceStatusResponse, err error) { + response = CreateGetPublicIpAddressPoolServiceStatusResponse() + err = client.DoAction(request, response) + return +} + +// GetPublicIpAddressPoolServiceStatusWithChan invokes the vpc.GetPublicIpAddressPoolServiceStatus API asynchronously +func (client *Client) GetPublicIpAddressPoolServiceStatusWithChan(request *GetPublicIpAddressPoolServiceStatusRequest) (<-chan *GetPublicIpAddressPoolServiceStatusResponse, <-chan error) { + responseChan := make(chan *GetPublicIpAddressPoolServiceStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPublicIpAddressPoolServiceStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPublicIpAddressPoolServiceStatusWithCallback invokes the vpc.GetPublicIpAddressPoolServiceStatus API asynchronously +func (client *Client) GetPublicIpAddressPoolServiceStatusWithCallback(request *GetPublicIpAddressPoolServiceStatusRequest, callback func(response *GetPublicIpAddressPoolServiceStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPublicIpAddressPoolServiceStatusResponse + var err error + defer close(result) + response, err = client.GetPublicIpAddressPoolServiceStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPublicIpAddressPoolServiceStatusRequest is the request struct for api GetPublicIpAddressPoolServiceStatus +type GetPublicIpAddressPoolServiceStatusRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// GetPublicIpAddressPoolServiceStatusResponse is the response struct for api GetPublicIpAddressPoolServiceStatus +type GetPublicIpAddressPoolServiceStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Enabled bool `json:"Enabled" xml:"Enabled"` +} + +// CreateGetPublicIpAddressPoolServiceStatusRequest creates a request to invoke GetPublicIpAddressPoolServiceStatus API +func CreateGetPublicIpAddressPoolServiceStatusRequest() (request *GetPublicIpAddressPoolServiceStatusRequest) { + request = &GetPublicIpAddressPoolServiceStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "GetPublicIpAddressPoolServiceStatus", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetPublicIpAddressPoolServiceStatusResponse creates a response to parse from GetPublicIpAddressPoolServiceStatus response +func CreateGetPublicIpAddressPoolServiceStatusResponse() (response *GetPublicIpAddressPoolServiceStatusResponse) { + response = &GetPublicIpAddressPoolServiceStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/get_v_switch_cidr_reservation_usage.go b/services/vpc/get_v_switch_cidr_reservation_usage.go new file mode 100644 index 0000000000..b9f3afb431 --- /dev/null +++ b/services/vpc/get_v_switch_cidr_reservation_usage.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" +) + +// GetVSwitchCidrReservationUsage invokes the vpc.GetVSwitchCidrReservationUsage API synchronously +func (client *Client) GetVSwitchCidrReservationUsage(request *GetVSwitchCidrReservationUsageRequest) (response *GetVSwitchCidrReservationUsageResponse, err error) { + response = CreateGetVSwitchCidrReservationUsageResponse() + err = client.DoAction(request, response) + return +} + +// GetVSwitchCidrReservationUsageWithChan invokes the vpc.GetVSwitchCidrReservationUsage API asynchronously +func (client *Client) GetVSwitchCidrReservationUsageWithChan(request *GetVSwitchCidrReservationUsageRequest) (<-chan *GetVSwitchCidrReservationUsageResponse, <-chan error) { + responseChan := make(chan *GetVSwitchCidrReservationUsageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetVSwitchCidrReservationUsage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetVSwitchCidrReservationUsageWithCallback invokes the vpc.GetVSwitchCidrReservationUsage API asynchronously +func (client *Client) GetVSwitchCidrReservationUsageWithCallback(request *GetVSwitchCidrReservationUsageRequest, callback func(response *GetVSwitchCidrReservationUsageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetVSwitchCidrReservationUsageResponse + var err error + defer close(result) + response, err = client.GetVSwitchCidrReservationUsage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetVSwitchCidrReservationUsageRequest is the request struct for api GetVSwitchCidrReservationUsage +type GetVSwitchCidrReservationUsageRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NextToken string `position:"Query" name:"NextToken"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + VSwitchCidrReservationId string `position:"Query" name:"VSwitchCidrReservationId"` +} + +// GetVSwitchCidrReservationUsageResponse is the response struct for api GetVSwitchCidrReservationUsage +type GetVSwitchCidrReservationUsageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextToken string `json:"NextToken" xml:"NextToken"` + TotalCount int64 `json:"TotalCount" xml:"TotalCount"` + MaxResults int64 `json:"MaxResults" xml:"MaxResults"` + CidrReservationUsages []VSwitchCidrReservationUsage `json:"CidrReservationUsages" xml:"CidrReservationUsages"` +} + +// CreateGetVSwitchCidrReservationUsageRequest creates a request to invoke GetVSwitchCidrReservationUsage API +func CreateGetVSwitchCidrReservationUsageRequest() (request *GetVSwitchCidrReservationUsageRequest) { + request = &GetVSwitchCidrReservationUsageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "GetVSwitchCidrReservationUsage", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetVSwitchCidrReservationUsageResponse creates a response to parse from GetVSwitchCidrReservationUsage response +func CreateGetVSwitchCidrReservationUsageResponse() (response *GetVSwitchCidrReservationUsageResponse) { + response = &GetVSwitchCidrReservationUsageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/list_enhanhced_nat_gateway_available_zones.go b/services/vpc/list_enhanhced_nat_gateway_available_zones.go index 754fa4f48f..7b69da3f82 100644 --- a/services/vpc/list_enhanhced_nat_gateway_available_zones.go +++ b/services/vpc/list_enhanhced_nat_gateway_available_zones.go @@ -71,11 +71,18 @@ func (client *Client) ListEnhanhcedNatGatewayAvailableZonesWithCallback(request // ListEnhanhcedNatGatewayAvailableZonesRequest is the request struct for api ListEnhanhcedNatGatewayAvailableZones type ListEnhanhcedNatGatewayAvailableZonesRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Filter *[]ListEnhanhcedNatGatewayAvailableZonesFilter `position:"Query" name:"Filter" type:"Repeated"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// ListEnhanhcedNatGatewayAvailableZonesFilter is a repeated param struct in ListEnhanhcedNatGatewayAvailableZonesRequest +type ListEnhanhcedNatGatewayAvailableZonesFilter struct { + Key string `name:"Key"` + Value string `name:"Value"` } // ListEnhanhcedNatGatewayAvailableZonesResponse is the response struct for api ListEnhanhcedNatGatewayAvailableZones diff --git a/services/vpc/list_full_nat_entries.go b/services/vpc/list_full_nat_entries.go index 9745585ccd..049d80a2a4 100644 --- a/services/vpc/list_full_nat_entries.go +++ b/services/vpc/list_full_nat_entries.go @@ -76,6 +76,7 @@ type ListFullNatEntriesRequest struct { NetworkInterfaceIds *[]string `position:"Query" name:"NetworkInterfaceIds" type:"Repeated"` FullNatEntryStatus string `position:"Query" name:"FullNatEntryStatus"` FullNatEntryId string `position:"Query" name:"FullNatEntryId"` + NatIpPort string `position:"Query" name:"NatIpPort"` FullNatTableId string `position:"Query" name:"FullNatTableId"` NextToken string `position:"Query" name:"NextToken"` FullNatEntryNames *[]string `position:"Query" name:"FullNatEntryNames" type:"Repeated"` @@ -84,6 +85,7 @@ type ListFullNatEntriesRequest struct { IpProtocol string `position:"Query" name:"IpProtocol"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NatIp string `position:"Query" name:"NatIp"` MaxResults requests.Integer `position:"Query" name:"MaxResults"` } diff --git a/services/vpc/list_ipsec_servers.go b/services/vpc/list_ipsec_servers.go index 1f4a2f9f0c..f835e32713 100644 --- a/services/vpc/list_ipsec_servers.go +++ b/services/vpc/list_ipsec_servers.go @@ -74,6 +74,7 @@ type ListIpsecServersRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` VpnGatewayId string `position:"Query" name:"VpnGatewayId"` CallerBid string `position:"Query" name:"callerBid"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` NextToken string `position:"Query" name:"NextToken"` IpsecServerName string `position:"Query" name:"IpsecServerName"` MaxResults requests.Integer `position:"Query" name:"MaxResults"` diff --git a/services/vpc/list_public_ip_address_pools.go b/services/vpc/list_public_ip_address_pools.go index 1c9350f082..692340e245 100644 --- a/services/vpc/list_public_ip_address_pools.go +++ b/services/vpc/list_public_ip_address_pools.go @@ -71,19 +71,21 @@ func (client *Client) ListPublicIpAddressPoolsWithCallback(request *ListPublicIp // ListPublicIpAddressPoolsRequest is the request struct for api ListPublicIpAddressPools type ListPublicIpAddressPoolsRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Isp string `position:"Query" name:"Isp"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - NextToken string `position:"Query" name:"NextToken"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - PublicIpAddressPoolIds *[]string `position:"Query" name:"PublicIpAddressPoolIds" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags *[]ListPublicIpAddressPoolsTags `position:"Query" name:"Tags" type:"Repeated"` - Name string `position:"Query" name:"Name"` - MaxResults requests.Integer `position:"Query" name:"MaxResults"` - Status string `position:"Query" name:"Status"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityProtectionEnabled requests.Boolean `position:"Query" name:"SecurityProtectionEnabled"` + Isp string `position:"Query" name:"Isp"` + SecurityProtectionEnabledForCommonBuy requests.Integer `position:"Query" name:"SecurityProtectionEnabledForCommonBuy"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + PublicIpAddressPoolIds *[]string `position:"Query" name:"PublicIpAddressPoolIds" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags *[]ListPublicIpAddressPoolsTags `position:"Query" name:"Tags" type:"Repeated"` + Name string `position:"Query" name:"Name"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + Status string `position:"Query" name:"Status"` } // ListPublicIpAddressPoolsTags is a repeated param struct in ListPublicIpAddressPoolsRequest diff --git a/services/vpc/list_v_switch_cidr_reservations.go b/services/vpc/list_v_switch_cidr_reservations.go new file mode 100644 index 0000000000..7578a12631 --- /dev/null +++ b/services/vpc/list_v_switch_cidr_reservations.go @@ -0,0 +1,119 @@ +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" +) + +// ListVSwitchCidrReservations invokes the vpc.ListVSwitchCidrReservations API synchronously +func (client *Client) ListVSwitchCidrReservations(request *ListVSwitchCidrReservationsRequest) (response *ListVSwitchCidrReservationsResponse, err error) { + response = CreateListVSwitchCidrReservationsResponse() + err = client.DoAction(request, response) + return +} + +// ListVSwitchCidrReservationsWithChan invokes the vpc.ListVSwitchCidrReservations API asynchronously +func (client *Client) ListVSwitchCidrReservationsWithChan(request *ListVSwitchCidrReservationsRequest) (<-chan *ListVSwitchCidrReservationsResponse, <-chan error) { + responseChan := make(chan *ListVSwitchCidrReservationsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListVSwitchCidrReservations(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListVSwitchCidrReservationsWithCallback invokes the vpc.ListVSwitchCidrReservations API asynchronously +func (client *Client) ListVSwitchCidrReservationsWithCallback(request *ListVSwitchCidrReservationsRequest, callback func(response *ListVSwitchCidrReservationsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListVSwitchCidrReservationsResponse + var err error + defer close(result) + response, err = client.ListVSwitchCidrReservations(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListVSwitchCidrReservationsRequest is the request struct for api ListVSwitchCidrReservations +type ListVSwitchCidrReservationsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VSwitchCidrReservationType string `position:"Query" name:"VSwitchCidrReservationType"` + NextToken string `position:"Query" name:"NextToken"` + VSwitchCidrReservationIds *[]string `position:"Query" name:"VSwitchCidrReservationIds" type:"Repeated"` + 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"` + Tags *[]ListVSwitchCidrReservationsTags `position:"Query" name:"Tags" type:"Repeated"` + VSwitchId string `position:"Query" name:"VSwitchId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// ListVSwitchCidrReservationsTags is a repeated param struct in ListVSwitchCidrReservationsRequest +type ListVSwitchCidrReservationsTags struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// ListVSwitchCidrReservationsResponse is the response struct for api ListVSwitchCidrReservations +type ListVSwitchCidrReservationsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextToken string `json:"NextToken" xml:"NextToken"` + TotalCount int64 `json:"TotalCount" xml:"TotalCount"` + MaxResults int64 `json:"MaxResults" xml:"MaxResults"` + VSwitchCidrReservations []VSwitchCidrReservation `json:"VSwitchCidrReservations" xml:"VSwitchCidrReservations"` +} + +// CreateListVSwitchCidrReservationsRequest creates a request to invoke ListVSwitchCidrReservations API +func CreateListVSwitchCidrReservationsRequest() (request *ListVSwitchCidrReservationsRequest) { + request = &ListVSwitchCidrReservationsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ListVSwitchCidrReservations", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateListVSwitchCidrReservationsResponse creates a response to parse from ListVSwitchCidrReservations response +func CreateListVSwitchCidrReservationsResponse() (response *ListVSwitchCidrReservationsResponse) { + response = &ListVSwitchCidrReservationsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/list_vpc_endpoint_services_by_end_user.go b/services/vpc/list_vpc_endpoint_services_by_end_user.go index 0304c808ea..881f493673 100644 --- a/services/vpc/list_vpc_endpoint_services_by_end_user.go +++ b/services/vpc/list_vpc_endpoint_services_by_end_user.go @@ -86,6 +86,7 @@ type ListVpcEndpointServicesByEndUserResponse struct { RequestId string `json:"RequestId" xml:"RequestId"` NextToken string `json:"NextToken" xml:"NextToken"` MaxResults int64 `json:"MaxResults" xml:"MaxResults"` + TotalCount string `json:"TotalCount" xml:"TotalCount"` Services []Service `json:"Services" xml:"Services"` } diff --git a/services/vpc/list_vpc_published_route_entries.go b/services/vpc/list_vpc_published_route_entries.go new file mode 100644 index 0000000000..5e5a5e3307 --- /dev/null +++ b/services/vpc/list_vpc_published_route_entries.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" +) + +// ListVpcPublishedRouteEntries invokes the vpc.ListVpcPublishedRouteEntries API synchronously +func (client *Client) ListVpcPublishedRouteEntries(request *ListVpcPublishedRouteEntriesRequest) (response *ListVpcPublishedRouteEntriesResponse, err error) { + response = CreateListVpcPublishedRouteEntriesResponse() + err = client.DoAction(request, response) + return +} + +// ListVpcPublishedRouteEntriesWithChan invokes the vpc.ListVpcPublishedRouteEntries API asynchronously +func (client *Client) ListVpcPublishedRouteEntriesWithChan(request *ListVpcPublishedRouteEntriesRequest) (<-chan *ListVpcPublishedRouteEntriesResponse, <-chan error) { + responseChan := make(chan *ListVpcPublishedRouteEntriesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListVpcPublishedRouteEntries(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListVpcPublishedRouteEntriesWithCallback invokes the vpc.ListVpcPublishedRouteEntries API asynchronously +func (client *Client) ListVpcPublishedRouteEntriesWithCallback(request *ListVpcPublishedRouteEntriesRequest, callback func(response *ListVpcPublishedRouteEntriesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListVpcPublishedRouteEntriesResponse + var err error + defer close(result) + response, err = client.ListVpcPublishedRouteEntries(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListVpcPublishedRouteEntriesRequest is the request struct for api ListVpcPublishedRouteEntries +type ListVpcPublishedRouteEntriesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TargetType string `position:"Query" name:"TargetType"` + NextToken string `position:"Query" name:"NextToken"` + RouteTableId string `position:"Query" name:"RouteTableId"` + 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"` + TargetInstanceId string `position:"Query" name:"TargetInstanceId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// ListVpcPublishedRouteEntriesResponse is the response struct for api ListVpcPublishedRouteEntries +type ListVpcPublishedRouteEntriesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextToken string `json:"NextToken" xml:"NextToken"` + RouteEntries []RouteEntryInListVpcPublishedRouteEntries `json:"RouteEntries" xml:"RouteEntries"` +} + +// CreateListVpcPublishedRouteEntriesRequest creates a request to invoke ListVpcPublishedRouteEntries API +func CreateListVpcPublishedRouteEntriesRequest() (request *ListVpcPublishedRouteEntriesRequest) { + request = &ListVpcPublishedRouteEntriesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ListVpcPublishedRouteEntries", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateListVpcPublishedRouteEntriesResponse creates a response to parse from ListVpcPublishedRouteEntries response +func CreateListVpcPublishedRouteEntriesResponse() (response *ListVpcPublishedRouteEntriesResponse) { + response = &ListVpcPublishedRouteEntriesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/modify_customer_gateway_attribute.go b/services/vpc/modify_customer_gateway_attribute.go index 30fa86d9e1..b2775f8c6a 100644 --- a/services/vpc/modify_customer_gateway_attribute.go +++ b/services/vpc/modify_customer_gateway_attribute.go @@ -91,6 +91,7 @@ type ModifyCustomerGatewayAttributeResponse struct { CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` CreateTime int64 `json:"CreateTime" xml:"CreateTime"` Name string `json:"Name" xml:"Name"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` } // CreateModifyCustomerGatewayAttributeRequest creates a request to invoke ModifyCustomerGatewayAttribute API diff --git a/services/vpc/modify_express_connect_traffic_qos.go b/services/vpc/modify_express_connect_traffic_qos.go new file mode 100644 index 0000000000..37e6600311 --- /dev/null +++ b/services/vpc/modify_express_connect_traffic_qos.go @@ -0,0 +1,119 @@ +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" +) + +// ModifyExpressConnectTrafficQos invokes the vpc.ModifyExpressConnectTrafficQos API synchronously +func (client *Client) ModifyExpressConnectTrafficQos(request *ModifyExpressConnectTrafficQosRequest) (response *ModifyExpressConnectTrafficQosResponse, err error) { + response = CreateModifyExpressConnectTrafficQosResponse() + err = client.DoAction(request, response) + return +} + +// ModifyExpressConnectTrafficQosWithChan invokes the vpc.ModifyExpressConnectTrafficQos API asynchronously +func (client *Client) ModifyExpressConnectTrafficQosWithChan(request *ModifyExpressConnectTrafficQosRequest) (<-chan *ModifyExpressConnectTrafficQosResponse, <-chan error) { + responseChan := make(chan *ModifyExpressConnectTrafficQosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyExpressConnectTrafficQos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyExpressConnectTrafficQosWithCallback invokes the vpc.ModifyExpressConnectTrafficQos API asynchronously +func (client *Client) ModifyExpressConnectTrafficQosWithCallback(request *ModifyExpressConnectTrafficQosRequest, callback func(response *ModifyExpressConnectTrafficQosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyExpressConnectTrafficQosResponse + var err error + defer close(result) + response, err = client.ModifyExpressConnectTrafficQos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyExpressConnectTrafficQosRequest is the request struct for api ModifyExpressConnectTrafficQos +type ModifyExpressConnectTrafficQosRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + RemoveInstanceList *[]ModifyExpressConnectTrafficQosRemoveInstanceList `position:"Query" name:"RemoveInstanceList" type:"Repeated"` + AddInstanceList *[]ModifyExpressConnectTrafficQosAddInstanceList `position:"Query" name:"AddInstanceList" type:"Repeated"` + QosId string `position:"Query" name:"QosId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + QosName string `position:"Query" name:"QosName"` + QosDescription string `position:"Query" name:"QosDescription"` +} + +// ModifyExpressConnectTrafficQosRemoveInstanceList is a repeated param struct in ModifyExpressConnectTrafficQosRequest +type ModifyExpressConnectTrafficQosRemoveInstanceList struct { + InstanceId string `name:"InstanceId"` + InstanceType string `name:"InstanceType"` +} + +// ModifyExpressConnectTrafficQosAddInstanceList is a repeated param struct in ModifyExpressConnectTrafficQosRequest +type ModifyExpressConnectTrafficQosAddInstanceList struct { + InstanceId string `name:"InstanceId"` + InstanceType string `name:"InstanceType"` +} + +// ModifyExpressConnectTrafficQosResponse is the response struct for api ModifyExpressConnectTrafficQos +type ModifyExpressConnectTrafficQosResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyExpressConnectTrafficQosRequest creates a request to invoke ModifyExpressConnectTrafficQos API +func CreateModifyExpressConnectTrafficQosRequest() (request *ModifyExpressConnectTrafficQosRequest) { + request = &ModifyExpressConnectTrafficQosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyExpressConnectTrafficQos", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyExpressConnectTrafficQosResponse creates a response to parse from ModifyExpressConnectTrafficQos response +func CreateModifyExpressConnectTrafficQosResponse() (response *ModifyExpressConnectTrafficQosResponse) { + response = &ModifyExpressConnectTrafficQosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/modify_express_connect_traffic_qos_queue.go b/services/vpc/modify_express_connect_traffic_qos_queue.go new file mode 100644 index 0000000000..bcf6a9fe63 --- /dev/null +++ b/services/vpc/modify_express_connect_traffic_qos_queue.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" +) + +// ModifyExpressConnectTrafficQosQueue invokes the vpc.ModifyExpressConnectTrafficQosQueue API synchronously +func (client *Client) ModifyExpressConnectTrafficQosQueue(request *ModifyExpressConnectTrafficQosQueueRequest) (response *ModifyExpressConnectTrafficQosQueueResponse, err error) { + response = CreateModifyExpressConnectTrafficQosQueueResponse() + err = client.DoAction(request, response) + return +} + +// ModifyExpressConnectTrafficQosQueueWithChan invokes the vpc.ModifyExpressConnectTrafficQosQueue API asynchronously +func (client *Client) ModifyExpressConnectTrafficQosQueueWithChan(request *ModifyExpressConnectTrafficQosQueueRequest) (<-chan *ModifyExpressConnectTrafficQosQueueResponse, <-chan error) { + responseChan := make(chan *ModifyExpressConnectTrafficQosQueueResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyExpressConnectTrafficQosQueue(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyExpressConnectTrafficQosQueueWithCallback invokes the vpc.ModifyExpressConnectTrafficQosQueue API asynchronously +func (client *Client) ModifyExpressConnectTrafficQosQueueWithCallback(request *ModifyExpressConnectTrafficQosQueueRequest, callback func(response *ModifyExpressConnectTrafficQosQueueResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyExpressConnectTrafficQosQueueResponse + var err error + defer close(result) + response, err = client.ModifyExpressConnectTrafficQosQueue(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyExpressConnectTrafficQosQueueRequest is the request struct for api ModifyExpressConnectTrafficQosQueue +type ModifyExpressConnectTrafficQosQueueRequest struct { + *requests.RpcRequest + QueueName string `position:"Query" name:"QueueName"` + ClientToken string `position:"Query" name:"ClientToken"` + QueueDescription string `position:"Query" name:"QueueDescription"` + QosId string `position:"Query" name:"QosId"` + QueueId string `position:"Query" name:"QueueId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + BandwidthPercent string `position:"Query" name:"BandwidthPercent"` +} + +// ModifyExpressConnectTrafficQosQueueResponse is the response struct for api ModifyExpressConnectTrafficQosQueue +type ModifyExpressConnectTrafficQosQueueResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyExpressConnectTrafficQosQueueRequest creates a request to invoke ModifyExpressConnectTrafficQosQueue API +func CreateModifyExpressConnectTrafficQosQueueRequest() (request *ModifyExpressConnectTrafficQosQueueRequest) { + request = &ModifyExpressConnectTrafficQosQueueRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyExpressConnectTrafficQosQueue", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyExpressConnectTrafficQosQueueResponse creates a response to parse from ModifyExpressConnectTrafficQosQueue response +func CreateModifyExpressConnectTrafficQosQueueResponse() (response *ModifyExpressConnectTrafficQosQueueResponse) { + response = &ModifyExpressConnectTrafficQosQueueResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/modify_express_connect_traffic_qos_rule.go b/services/vpc/modify_express_connect_traffic_qos_rule.go new file mode 100644 index 0000000000..cd88946594 --- /dev/null +++ b/services/vpc/modify_express_connect_traffic_qos_rule.go @@ -0,0 +1,117 @@ +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" +) + +// ModifyExpressConnectTrafficQosRule invokes the vpc.ModifyExpressConnectTrafficQosRule API synchronously +func (client *Client) ModifyExpressConnectTrafficQosRule(request *ModifyExpressConnectTrafficQosRuleRequest) (response *ModifyExpressConnectTrafficQosRuleResponse, err error) { + response = CreateModifyExpressConnectTrafficQosRuleResponse() + err = client.DoAction(request, response) + return +} + +// ModifyExpressConnectTrafficQosRuleWithChan invokes the vpc.ModifyExpressConnectTrafficQosRule API asynchronously +func (client *Client) ModifyExpressConnectTrafficQosRuleWithChan(request *ModifyExpressConnectTrafficQosRuleRequest) (<-chan *ModifyExpressConnectTrafficQosRuleResponse, <-chan error) { + responseChan := make(chan *ModifyExpressConnectTrafficQosRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyExpressConnectTrafficQosRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyExpressConnectTrafficQosRuleWithCallback invokes the vpc.ModifyExpressConnectTrafficQosRule API asynchronously +func (client *Client) ModifyExpressConnectTrafficQosRuleWithCallback(request *ModifyExpressConnectTrafficQosRuleRequest, callback func(response *ModifyExpressConnectTrafficQosRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyExpressConnectTrafficQosRuleResponse + var err error + defer close(result) + response, err = client.ModifyExpressConnectTrafficQosRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyExpressConnectTrafficQosRuleRequest is the request struct for api ModifyExpressConnectTrafficQosRule +type ModifyExpressConnectTrafficQosRuleRequest struct { + *requests.RpcRequest + DstCidr string `position:"Query" name:"DstCidr"` + ClientToken string `position:"Query" name:"ClientToken"` + RuleName string `position:"Query" name:"RuleName"` + SrcCidr string `position:"Query" name:"SrcCidr"` + DstIPv6Cidr string `position:"Query" name:"DstIPv6Cidr"` + DstPortRange string `position:"Query" name:"DstPortRange"` + Protocol string `position:"Query" name:"Protocol"` + QosId string `position:"Query" name:"QosId"` + QueueId string `position:"Query" name:"QueueId"` + MatchDscp requests.Integer `position:"Query" name:"MatchDscp"` + RuleDescription string `position:"Query" name:"RuleDescription"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + RemarkingDscp requests.Integer `position:"Query" name:"RemarkingDscp"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Priority requests.Integer `position:"Query" name:"Priority"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SrcPortRange string `position:"Query" name:"SrcPortRange"` + RuleId string `position:"Query" name:"RuleId"` + SrcIPv6Cidr string `position:"Query" name:"SrcIPv6Cidr"` +} + +// ModifyExpressConnectTrafficQosRuleResponse is the response struct for api ModifyExpressConnectTrafficQosRule +type ModifyExpressConnectTrafficQosRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyExpressConnectTrafficQosRuleRequest creates a request to invoke ModifyExpressConnectTrafficQosRule API +func CreateModifyExpressConnectTrafficQosRuleRequest() (request *ModifyExpressConnectTrafficQosRuleRequest) { + request = &ModifyExpressConnectTrafficQosRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyExpressConnectTrafficQosRule", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyExpressConnectTrafficQosRuleResponse creates a response to parse from ModifyExpressConnectTrafficQosRule response +func CreateModifyExpressConnectTrafficQosRuleResponse() (response *ModifyExpressConnectTrafficQosRuleResponse) { + response = &ModifyExpressConnectTrafficQosRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/modify_flow_log_attribute.go b/services/vpc/modify_flow_log_attribute.go index 335105c761..fbb424fad1 100644 --- a/services/vpc/modify_flow_log_attribute.go +++ b/services/vpc/modify_flow_log_attribute.go @@ -73,6 +73,7 @@ type ModifyFlowLogAttributeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` Description string `position:"Query" name:"Description"` + IpVersion string `position:"Query" name:"IpVersion"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` AggregationInterval requests.Integer `position:"Query" name:"AggregationInterval"` diff --git a/services/vpc/modify_ipv6_address_attribute.go b/services/vpc/modify_ipv6_address_attribute.go index d74a629cef..be81b98f66 100644 --- a/services/vpc/modify_ipv6_address_attribute.go +++ b/services/vpc/modify_ipv6_address_attribute.go @@ -72,7 +72,9 @@ func (client *Client) ModifyIpv6AddressAttributeWithCallback(request *ModifyIpv6 type ModifyIpv6AddressAttributeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` Description string `position:"Query" name:"Description"` + 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"` diff --git a/services/vpc/modify_ipv6_gateway_attribute.go b/services/vpc/modify_ipv6_gateway_attribute.go index aa3317bbb4..2125525a37 100644 --- a/services/vpc/modify_ipv6_gateway_attribute.go +++ b/services/vpc/modify_ipv6_gateway_attribute.go @@ -72,7 +72,9 @@ func (client *Client) ModifyIpv6GatewayAttributeWithCallback(request *ModifyIpv6 type ModifyIpv6GatewayAttributeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` Description string `position:"Query" name:"Description"` + 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"` diff --git a/services/vpc/modify_ipv6_internet_bandwidth.go b/services/vpc/modify_ipv6_internet_bandwidth.go index 6ba71d93a6..a8ff965c50 100644 --- a/services/vpc/modify_ipv6_internet_bandwidth.go +++ b/services/vpc/modify_ipv6_internet_bandwidth.go @@ -74,6 +74,7 @@ type ModifyIpv6InternetBandwidthRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ClientToken string `position:"Query" name:"ClientToken"` Ipv6InternetBandwidthId string `position:"Query" name:"Ipv6InternetBandwidthId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` diff --git a/services/vpc/modify_nat_gateway_attribute.go b/services/vpc/modify_nat_gateway_attribute.go index dc329fbb3e..8853e4fa92 100644 --- a/services/vpc/modify_nat_gateway_attribute.go +++ b/services/vpc/modify_nat_gateway_attribute.go @@ -71,17 +71,25 @@ func (client *Client) ModifyNatGatewayAttributeWithCallback(request *ModifyNatGa // ModifyNatGatewayAttributeRequest is the request struct for api ModifyNatGatewayAttribute type ModifyNatGatewayAttributeRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityProtectionEnabled requests.Boolean `position:"Query" name:"SecurityProtectionEnabled"` - Description string `position:"Query" name:"Description"` - IcmpReplyEnabled requests.Boolean `position:"Query" name:"IcmpReplyEnabled"` - NatGatewayId string `position:"Query" name:"NatGatewayId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - PrivateLinkMode string `position:"Query" name:"PrivateLinkMode"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` - EipBindMode string `position:"Query" name:"EipBindMode"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityProtectionEnabled requests.Boolean `position:"Query" name:"SecurityProtectionEnabled"` + Description string `position:"Query" name:"Description"` + LogDelivery ModifyNatGatewayAttributeLogDelivery `position:"Query" name:"LogDelivery" type:"Struct"` + IcmpReplyEnabled requests.Boolean `position:"Query" name:"IcmpReplyEnabled"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PrivateLinkMode string `position:"Query" name:"PrivateLinkMode"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + EnableSessionLog requests.Boolean `position:"Query" name:"EnableSessionLog"` + Name string `position:"Query" name:"Name"` + EipBindMode string `position:"Query" name:"EipBindMode"` +} + +// ModifyNatGatewayAttributeLogDelivery is a repeated param struct in ModifyNatGatewayAttributeRequest +type ModifyNatGatewayAttributeLogDelivery struct { + LogDeliveryType string `name:"LogDeliveryType"` + LogDestination string `name:"LogDestination"` } // ModifyNatGatewayAttributeResponse is the response struct for api ModifyNatGatewayAttribute diff --git a/services/vpc/modify_network_acl_attributes.go b/services/vpc/modify_network_acl_attributes.go index 23022c710d..32aeda8fb7 100644 --- a/services/vpc/modify_network_acl_attributes.go +++ b/services/vpc/modify_network_acl_attributes.go @@ -75,7 +75,9 @@ type ModifyNetworkAclAttributesRequest struct { ClientToken string `position:"Query" name:"ClientToken"` Description string `position:"Query" name:"Description"` NetworkAclId string `position:"Query" name:"NetworkAclId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` NetworkAclName string `position:"Query" name:"NetworkAclName"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } diff --git a/services/vpc/modify_route_entry.go b/services/vpc/modify_route_entry.go index d4db1eae5c..2e78108699 100644 --- a/services/vpc/modify_route_entry.go +++ b/services/vpc/modify_route_entry.go @@ -74,9 +74,13 @@ type ModifyRouteEntryRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` RouteEntryName string `position:"Query" name:"RouteEntryName"` Description string `position:"Query" name:"Description"` + NewNextHopId string `position:"Query" name:"NewNextHopId"` + RouteTableId string `position:"Query" name:"RouteTableId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` + DestinationCidrBlock string `position:"Query" name:"DestinationCidrBlock"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NewNextHopType string `position:"Query" name:"NewNextHopType"` RouteEntryId string `position:"Query" name:"RouteEntryId"` } diff --git a/services/vpc/modify_route_table_attributes.go b/services/vpc/modify_route_table_attributes.go index 9d754316d2..0e682c5d16 100644 --- a/services/vpc/modify_route_table_attributes.go +++ b/services/vpc/modify_route_table_attributes.go @@ -71,17 +71,18 @@ func (client *Client) ModifyRouteTableAttributesWithCallback(request *ModifyRout // ModifyRouteTableAttributesRequest is the request struct for api ModifyRouteTableAttributes type ModifyRouteTableAttributesRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - RouteTableName string `position:"Query" name:"RouteTableName"` - ResourceUid requests.Integer `position:"Query" name:"ResourceUid"` - RouteTableId string `position:"Query" name:"RouteTableId"` - 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"` - KbpsBandwidth string `position:"Query" name:"KbpsBandwidth"` - ResourceBid string `position:"Query" name:"ResourceBid"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + RouteTableName string `position:"Query" name:"RouteTableName"` + ResourceUid requests.Integer `position:"Query" name:"ResourceUid"` + RouteTableId string `position:"Query" name:"RouteTableId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth string `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + RoutePropagationEnable requests.Boolean `position:"Query" name:"RoutePropagationEnable"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + KbpsBandwidth string `position:"Query" name:"KbpsBandwidth"` + ResourceBid string `position:"Query" name:"ResourceBid"` } // ModifyRouteTableAttributesResponse is the response struct for api ModifyRouteTableAttributes diff --git a/services/vpc/modify_snat_entry.go b/services/vpc/modify_snat_entry.go index c2d16a1c2e..5da0e79f60 100644 --- a/services/vpc/modify_snat_entry.go +++ b/services/vpc/modify_snat_entry.go @@ -74,12 +74,14 @@ type ModifySnatEntryRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ClientToken string `position:"Query" name:"ClientToken"` SnatIp string `position:"Query" name:"SnatIp"` + EipAffinity requests.Integer `position:"Query" name:"EipAffinity"` SnatEntryId string `position:"Query" name:"SnatEntryId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` SnatTableId string `position:"Query" name:"SnatTableId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` SnatEntryName string `position:"Query" name:"SnatEntryName"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` } // ModifySnatEntryResponse is the response struct for api ModifySnatEntry diff --git a/services/vpc/modify_ssl_vpn_server.go b/services/vpc/modify_ssl_vpn_server.go index 224e036403..d8857ef006 100644 --- a/services/vpc/modify_ssl_vpn_server.go +++ b/services/vpc/modify_ssl_vpn_server.go @@ -79,6 +79,7 @@ type ModifySslVpnServerRequest struct { EnableMultiFactorAuth requests.Boolean `position:"Query" name:"EnableMultiFactorAuth"` IDaaSInstanceId string `position:"Query" name:"IDaaSInstanceId"` Cipher string `position:"Query" name:"Cipher"` + IDaaSApplicationId string `position:"Query" name:"IDaaSApplicationId"` ClientIpPool string `position:"Query" name:"ClientIpPool"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` Compress requests.Boolean `position:"Query" name:"Compress"` @@ -109,6 +110,9 @@ type ModifySslVpnServerResponse struct { EnableMultiFactorAuth bool `json:"EnableMultiFactorAuth" xml:"EnableMultiFactorAuth"` ClientIpPool string `json:"ClientIpPool" xml:"ClientIpPool"` Proto string `json:"Proto" xml:"Proto"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + IDaaSApplicationId string `json:"IDaaSApplicationId" xml:"IDaaSApplicationId"` + IDaaSInstanceVersion string `json:"IDaaSInstanceVersion" xml:"IDaaSInstanceVersion"` } // CreateModifySslVpnServerRequest creates a request to invoke ModifySslVpnServer API diff --git a/services/vpc/modify_tunnel_attribute.go b/services/vpc/modify_tunnel_attribute.go new file mode 100644 index 0000000000..d1c14207b8 --- /dev/null +++ b/services/vpc/modify_tunnel_attribute.go @@ -0,0 +1,157 @@ +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" +) + +// ModifyTunnelAttribute invokes the vpc.ModifyTunnelAttribute API synchronously +func (client *Client) ModifyTunnelAttribute(request *ModifyTunnelAttributeRequest) (response *ModifyTunnelAttributeResponse, err error) { + response = CreateModifyTunnelAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyTunnelAttributeWithChan invokes the vpc.ModifyTunnelAttribute API asynchronously +func (client *Client) ModifyTunnelAttributeWithChan(request *ModifyTunnelAttributeRequest) (<-chan *ModifyTunnelAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyTunnelAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyTunnelAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyTunnelAttributeWithCallback invokes the vpc.ModifyTunnelAttribute API asynchronously +func (client *Client) ModifyTunnelAttributeWithCallback(request *ModifyTunnelAttributeRequest, callback func(response *ModifyTunnelAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyTunnelAttributeResponse + var err error + defer close(result) + response, err = client.ModifyTunnelAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyTunnelAttributeRequest is the request struct for api ModifyTunnelAttribute +type ModifyTunnelAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TunnelOptionsSpecification ModifyTunnelAttributeTunnelOptionsSpecification `position:"Query" name:"TunnelOptionsSpecification" type:"Struct"` + VpnConnectionId string `position:"Query" name:"VpnConnectionId"` + TunnelId string `position:"Query" name:"TunnelId"` +} + +// ModifyTunnelAttributeTunnelOptionsSpecification is a repeated param struct in ModifyTunnelAttributeRequest +type ModifyTunnelAttributeTunnelOptionsSpecification struct { + TunnelIpsecConfig ModifyTunnelAttributeTunnelOptionsSpecificationTunnelIpsecConfig `name:"TunnelIpsecConfig" type:"Struct"` + TunnelBgpConfig ModifyTunnelAttributeTunnelOptionsSpecificationTunnelBgpConfig `name:"TunnelBgpConfig" type:"Struct"` + RemoteCaCertificate string `name:"RemoteCaCertificate"` + TunnelIkeConfig ModifyTunnelAttributeTunnelOptionsSpecificationTunnelIkeConfig `name:"TunnelIkeConfig" type:"Struct"` + EnableNatTraversal string `name:"EnableNatTraversal"` + EnableDpd string `name:"EnableDpd"` + CustomerGatewayId string `name:"CustomerGatewayId"` +} + +// ModifyTunnelAttributeTunnelOptionsSpecificationTunnelIpsecConfig is a repeated param struct in ModifyTunnelAttributeRequest +type ModifyTunnelAttributeTunnelOptionsSpecificationTunnelIpsecConfig struct { + IpsecPfs string `name:"IpsecPfs"` + IpsecLifetime string `name:"IpsecLifetime"` + IpsecAuthAlg string `name:"IpsecAuthAlg"` + IpsecEncAlg string `name:"IpsecEncAlg"` +} + +// ModifyTunnelAttributeTunnelOptionsSpecificationTunnelBgpConfig is a repeated param struct in ModifyTunnelAttributeRequest +type ModifyTunnelAttributeTunnelOptionsSpecificationTunnelBgpConfig struct { + LocalAsn string `name:"LocalAsn"` + TunnelCidr string `name:"TunnelCidr"` + LocalBgpIp string `name:"LocalBgpIp"` +} + +// ModifyTunnelAttributeTunnelOptionsSpecificationTunnelIkeConfig is a repeated param struct in ModifyTunnelAttributeRequest +type ModifyTunnelAttributeTunnelOptionsSpecificationTunnelIkeConfig struct { + IkeVersion string `name:"IkeVersion"` + IkeMode string `name:"IkeMode"` + IkeAuthAlg string `name:"IkeAuthAlg"` + Psk string `name:"Psk"` + IkePfs string `name:"IkePfs"` + IkeLifetime string `name:"IkeLifetime"` + LocalId string `name:"LocalId"` + IkeEncAlg string `name:"IkeEncAlg"` + RemoteId string `name:"RemoteId"` +} + +// ModifyTunnelAttributeResponse is the response struct for api ModifyTunnelAttribute +type ModifyTunnelAttributeResponse struct { + *responses.BaseResponse + TunnelId string `json:"TunnelId" xml:"TunnelId"` + RequestId string `json:"RequestId" xml:"RequestId"` + EnableNatTraversal bool `json:"EnableNatTraversal" xml:"EnableNatTraversal"` + EnableDpd bool `json:"EnableDpd" xml:"EnableDpd"` + RemoteCaCertificate string `json:"RemoteCaCertificate" xml:"RemoteCaCertificate"` + CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` + Role string `json:"Role" xml:"Role"` + ZoneNo string `json:"ZoneNo" xml:"ZoneNo"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` + State string `json:"State" xml:"State"` + TunnelIkeConfig TunnelIkeConfigInModifyTunnelAttribute `json:"TunnelIkeConfig" xml:"TunnelIkeConfig"` + TunnelIpsecConfig TunnelIpsecConfigInModifyTunnelAttribute `json:"TunnelIpsecConfig" xml:"TunnelIpsecConfig"` + TunnelBgpConfig TunnelBgpConfigInModifyTunnelAttribute `json:"TunnelBgpConfig" xml:"TunnelBgpConfig"` +} + +// CreateModifyTunnelAttributeRequest creates a request to invoke ModifyTunnelAttribute API +func CreateModifyTunnelAttributeRequest() (request *ModifyTunnelAttributeRequest) { + request = &ModifyTunnelAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyTunnelAttribute", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyTunnelAttributeResponse creates a response to parse from ModifyTunnelAttribute response +func CreateModifyTunnelAttributeResponse() (response *ModifyTunnelAttributeResponse) { + response = &ModifyTunnelAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/modify_v_switch_cidr_reservation_attribute.go b/services/vpc/modify_v_switch_cidr_reservation_attribute.go new file mode 100644 index 0000000000..71f50feaef --- /dev/null +++ b/services/vpc/modify_v_switch_cidr_reservation_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" +) + +// ModifyVSwitchCidrReservationAttribute invokes the vpc.ModifyVSwitchCidrReservationAttribute API synchronously +func (client *Client) ModifyVSwitchCidrReservationAttribute(request *ModifyVSwitchCidrReservationAttributeRequest) (response *ModifyVSwitchCidrReservationAttributeResponse, err error) { + response = CreateModifyVSwitchCidrReservationAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVSwitchCidrReservationAttributeWithChan invokes the vpc.ModifyVSwitchCidrReservationAttribute API asynchronously +func (client *Client) ModifyVSwitchCidrReservationAttributeWithChan(request *ModifyVSwitchCidrReservationAttributeRequest) (<-chan *ModifyVSwitchCidrReservationAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyVSwitchCidrReservationAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVSwitchCidrReservationAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVSwitchCidrReservationAttributeWithCallback invokes the vpc.ModifyVSwitchCidrReservationAttribute API asynchronously +func (client *Client) ModifyVSwitchCidrReservationAttributeWithCallback(request *ModifyVSwitchCidrReservationAttributeRequest, callback func(response *ModifyVSwitchCidrReservationAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVSwitchCidrReservationAttributeResponse + var err error + defer close(result) + response, err = client.ModifyVSwitchCidrReservationAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVSwitchCidrReservationAttributeRequest is the request struct for api ModifyVSwitchCidrReservationAttribute +type ModifyVSwitchCidrReservationAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + VSwitchCidrReservationDescription string `position:"Query" name:"VSwitchCidrReservationDescription"` + VSwitchCidrReservationName string `position:"Query" name:"VSwitchCidrReservationName"` + 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"` + VSwitchCidrReservationId string `position:"Query" name:"VSwitchCidrReservationId"` +} + +// ModifyVSwitchCidrReservationAttributeResponse is the response struct for api ModifyVSwitchCidrReservationAttribute +type ModifyVSwitchCidrReservationAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyVSwitchCidrReservationAttributeRequest creates a request to invoke ModifyVSwitchCidrReservationAttribute API +func CreateModifyVSwitchCidrReservationAttributeRequest() (request *ModifyVSwitchCidrReservationAttributeRequest) { + request = &ModifyVSwitchCidrReservationAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyVSwitchCidrReservationAttribute", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyVSwitchCidrReservationAttributeResponse creates a response to parse from ModifyVSwitchCidrReservationAttribute response +func CreateModifyVSwitchCidrReservationAttributeResponse() (response *ModifyVSwitchCidrReservationAttributeResponse) { + response = &ModifyVSwitchCidrReservationAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/modify_virtual_border_router_attribute.go b/services/vpc/modify_virtual_border_router_attribute.go index 8eac3a108c..ba1852f4a3 100644 --- a/services/vpc/modify_virtual_border_router_attribute.go +++ b/services/vpc/modify_virtual_border_router_attribute.go @@ -91,6 +91,7 @@ type ModifyVirtualBorderRouterAttributeRequest struct { OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` MinRxInterval requests.Integer `position:"Query" name:"MinRxInterval"` + SitelinkEnable requests.Boolean `position:"Query" name:"SitelinkEnable"` LocalIpv6GatewayIp string `position:"Query" name:"LocalIpv6GatewayIp"` Name string `position:"Query" name:"Name"` } diff --git a/services/vpc/modify_vpc_attribute.go b/services/vpc/modify_vpc_attribute.go index e10e20d69c..b6dd0312c3 100644 --- a/services/vpc/modify_vpc_attribute.go +++ b/services/vpc/modify_vpc_attribute.go @@ -76,6 +76,7 @@ type ModifyVpcAttributeRequest struct { Description string `position:"Query" name:"Description"` VpcName string `position:"Query" name:"VpcName"` Ipv6Isp string `position:"Query" name:"Ipv6Isp"` + EnableDnsHostname requests.Boolean `position:"Query" name:"EnableDnsHostname"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` diff --git a/services/vpc/modify_vpn_attachment_attribute.go b/services/vpc/modify_vpn_attachment_attribute.go index a5d92f1c12..9efd9cb802 100644 --- a/services/vpc/modify_vpn_attachment_attribute.go +++ b/services/vpc/modify_vpn_attachment_attribute.go @@ -71,51 +71,97 @@ func (client *Client) ModifyVpnAttachmentAttributeWithCallback(request *ModifyVp // ModifyVpnAttachmentAttributeRequest is the request struct for api ModifyVpnAttachmentAttribute type ModifyVpnAttachmentAttributeRequest struct { *requests.RpcRequest - IkeConfig string `position:"Query" name:"IkeConfig"` - AutoConfigRoute requests.Boolean `position:"Query" name:"AutoConfigRoute"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - IpsecConfig string `position:"Query" name:"IpsecConfig"` - BgpConfig string `position:"Query" name:"BgpConfig"` - NetworkType string `position:"Query" name:"NetworkType"` - HealthCheckConfig string `position:"Query" name:"HealthCheckConfig"` - CustomerGatewayId string `position:"Query" name:"CustomerGatewayId"` - LocalSubnet string `position:"Query" name:"LocalSubnet"` - RemoteCaCert string `position:"Query" name:"RemoteCaCert"` - RemoteSubnet string `position:"Query" name:"RemoteSubnet"` - EffectImmediately requests.Boolean `position:"Query" name:"EffectImmediately"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EnableDpd requests.Boolean `position:"Query" name:"EnableDpd"` - VpnConnectionId string `position:"Query" name:"VpnConnectionId"` - Name string `position:"Query" name:"Name"` - EnableNatTraversal requests.Boolean `position:"Query" name:"EnableNatTraversal"` + IkeConfig string `position:"Query" name:"IkeConfig"` + AutoConfigRoute requests.Boolean `position:"Query" name:"AutoConfigRoute"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + IpsecConfig string `position:"Query" name:"IpsecConfig"` + BgpConfig string `position:"Query" name:"BgpConfig"` + NetworkType string `position:"Query" name:"NetworkType"` + HealthCheckConfig string `position:"Query" name:"HealthCheckConfig"` + CustomerGatewayId string `position:"Query" name:"CustomerGatewayId"` + LocalSubnet string `position:"Query" name:"LocalSubnet"` + RemoteCaCert string `position:"Query" name:"RemoteCaCert"` + EnableTunnelsBgp requests.Boolean `position:"Query" name:"EnableTunnelsBgp"` + RemoteSubnet string `position:"Query" name:"RemoteSubnet"` + EffectImmediately requests.Boolean `position:"Query" name:"EffectImmediately"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EnableDpd requests.Boolean `position:"Query" name:"EnableDpd"` + TunnelOptionsSpecification *[]ModifyVpnAttachmentAttributeTunnelOptionsSpecification `position:"Body" name:"TunnelOptionsSpecification" type:"Repeated"` + VpnConnectionId string `position:"Query" name:"VpnConnectionId"` + Name string `position:"Query" name:"Name"` + EnableNatTraversal requests.Boolean `position:"Query" name:"EnableNatTraversal"` +} + +// ModifyVpnAttachmentAttributeTunnelOptionsSpecification is a repeated param struct in ModifyVpnAttachmentAttributeRequest +type ModifyVpnAttachmentAttributeTunnelOptionsSpecification struct { + TunnelIpsecConfig ModifyVpnAttachmentAttributeTunnelOptionsSpecificationTunnelIpsecConfig `name:"TunnelIpsecConfig" type:"Struct"` + TunnelBgpConfig ModifyVpnAttachmentAttributeTunnelOptionsSpecificationTunnelBgpConfig `name:"TunnelBgpConfig" type:"Struct"` + RemoteCaCertificate string `name:"RemoteCaCertificate"` + TunnelId string `name:"TunnelId"` + TunnelIkeConfig ModifyVpnAttachmentAttributeTunnelOptionsSpecificationTunnelIkeConfig `name:"TunnelIkeConfig" type:"Struct"` + EnableNatTraversal string `name:"EnableNatTraversal"` + TunnelIndex string `name:"TunnelIndex"` + EnableDpd string `name:"EnableDpd"` + CustomerGatewayId string `name:"CustomerGatewayId"` +} + +// ModifyVpnAttachmentAttributeTunnelOptionsSpecificationTunnelIpsecConfig is a repeated param struct in ModifyVpnAttachmentAttributeRequest +type ModifyVpnAttachmentAttributeTunnelOptionsSpecificationTunnelIpsecConfig struct { + IpsecPfs string `name:"IpsecPfs"` + IpsecLifetime string `name:"IpsecLifetime"` + IpsecAuthAlg string `name:"IpsecAuthAlg"` + IpsecEncAlg string `name:"IpsecEncAlg"` +} + +// ModifyVpnAttachmentAttributeTunnelOptionsSpecificationTunnelBgpConfig is a repeated param struct in ModifyVpnAttachmentAttributeRequest +type ModifyVpnAttachmentAttributeTunnelOptionsSpecificationTunnelBgpConfig struct { + LocalAsn string `name:"LocalAsn"` + TunnelCidr string `name:"TunnelCidr"` + LocalBgpIp string `name:"LocalBgpIp"` +} + +// ModifyVpnAttachmentAttributeTunnelOptionsSpecificationTunnelIkeConfig is a repeated param struct in ModifyVpnAttachmentAttributeRequest +type ModifyVpnAttachmentAttributeTunnelOptionsSpecificationTunnelIkeConfig struct { + IkeVersion string `name:"IkeVersion"` + IkeMode string `name:"IkeMode"` + IkeAuthAlg string `name:"IkeAuthAlg"` + Psk string `name:"Psk"` + IkePfs string `name:"IkePfs"` + IkeLifetime string `name:"IkeLifetime"` + LocalId string `name:"LocalId"` + IkeEncAlg string `name:"IkeEncAlg"` + RemoteId string `name:"RemoteId"` } // ModifyVpnAttachmentAttributeResponse is the response struct for api ModifyVpnAttachmentAttribute type ModifyVpnAttachmentAttributeResponse struct { *responses.BaseResponse - 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"` - Status string `json:"Status" xml:"Status"` - EnableDpd bool `json:"EnableDpd" xml:"EnableDpd"` - EnableNatTraversal bool `json:"EnableNatTraversal" xml:"EnableNatTraversal"` - AttachType string `json:"AttachType" xml:"AttachType"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - AttachInstanceId string `json:"AttachInstanceId" xml:"AttachInstanceId"` - Spec string `json:"Spec" xml:"Spec"` - RequestId string `json:"RequestId" xml:"RequestId"` - IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` - IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` - VcoHealthCheck VcoHealthCheck `json:"VcoHealthCheck" xml:"VcoHealthCheck"` - VpnBgpConfig VpnBgpConfig `json:"VpnBgpConfig" xml:"VpnBgpConfig"` + 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"` + Status string `json:"Status" xml:"Status"` + EnableDpd bool `json:"EnableDpd" xml:"EnableDpd"` + EnableNatTraversal bool `json:"EnableNatTraversal" xml:"EnableNatTraversal"` + AttachType string `json:"AttachType" xml:"AttachType"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + AttachInstanceId string `json:"AttachInstanceId" xml:"AttachInstanceId"` + Spec string `json:"Spec" xml:"Spec"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + EnableTunnelsBgp bool `json:"EnableTunnelsBgp" xml:"EnableTunnelsBgp"` + RequestId string `json:"RequestId" xml:"RequestId"` + IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` + IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` + VcoHealthCheck VcoHealthCheck `json:"VcoHealthCheck" xml:"VcoHealthCheck"` + VpnBgpConfig VpnBgpConfig `json:"VpnBgpConfig" xml:"VpnBgpConfig"` + TunnelOptionsSpecification []TunnelOptionsInModifyVpnAttachmentAttribute `json:"TunnelOptionsSpecification" xml:"TunnelOptionsSpecification"` } // CreateModifyVpnAttachmentAttributeRequest creates a request to invoke ModifyVpnAttachmentAttribute API diff --git a/services/vpc/modify_vpn_connection_attribute.go b/services/vpc/modify_vpn_connection_attribute.go index 6c84d3d545..602df1fa4c 100644 --- a/services/vpc/modify_vpn_connection_attribute.go +++ b/services/vpc/modify_vpn_connection_attribute.go @@ -96,12 +96,14 @@ type ModifyVpnConnectionAttributeRequest struct { // ModifyVpnConnectionAttributeTunnelOptionsSpecification is a repeated param struct in ModifyVpnConnectionAttributeRequest type ModifyVpnConnectionAttributeTunnelOptionsSpecification struct { TunnelIpsecConfig ModifyVpnConnectionAttributeTunnelOptionsSpecificationTunnelIpsecConfig `name:"TunnelIpsecConfig" type:"Struct"` + Role string `name:"Role"` TunnelBgpConfig ModifyVpnConnectionAttributeTunnelOptionsSpecificationTunnelBgpConfig `name:"TunnelBgpConfig" type:"Struct"` RemoteCaCertificate string `name:"RemoteCaCertificate"` TunnelId string `name:"TunnelId"` TunnelIkeConfig ModifyVpnConnectionAttributeTunnelOptionsSpecificationTunnelIkeConfig `name:"TunnelIkeConfig" type:"Struct"` EnableNatTraversal string `name:"EnableNatTraversal"` EnableDpd string `name:"EnableDpd"` + CustomerGatewayId string `name:"CustomerGatewayId"` } // ModifyVpnConnectionAttributeTunnelOptionsSpecificationTunnelIpsecConfig is a repeated param struct in ModifyVpnConnectionAttributeRequest @@ -148,6 +150,7 @@ type ModifyVpnConnectionAttributeResponse struct { Name string `json:"Name" xml:"Name"` EnableDpd bool `json:"EnableDpd" xml:"EnableDpd"` EnableTunnelsBgp bool `json:"EnableTunnelsBgp" xml:"EnableTunnelsBgp"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` 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 626ec09343..d53350757d 100644 --- a/services/vpc/modify_vpn_gateway_attribute.go +++ b/services/vpc/modify_vpn_gateway_attribute.go @@ -103,6 +103,7 @@ type ModifyVpnGatewayAttributeResponse struct { DisasterRecoveryInternetIp string `json:"DisasterRecoveryInternetIp" xml:"DisasterRecoveryInternetIp"` DisasterRecoveryVSwitchId string `json:"DisasterRecoveryVSwitchId" xml:"DisasterRecoveryVSwitchId"` SslVpnInternetIp string `json:"SslVpnInternetIp" xml:"SslVpnInternetIp"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` } // CreateModifyVpnGatewayAttributeRequest creates a request to invoke ModifyVpnGatewayAttribute API diff --git a/services/vpc/move_vpn_resource_group.go b/services/vpc/move_vpn_resource_group.go new file mode 100644 index 0000000000..daaec180a7 --- /dev/null +++ b/services/vpc/move_vpn_resource_group.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" +) + +// MoveVpnResourceGroup invokes the vpc.MoveVpnResourceGroup API synchronously +func (client *Client) MoveVpnResourceGroup(request *MoveVpnResourceGroupRequest) (response *MoveVpnResourceGroupResponse, err error) { + response = CreateMoveVpnResourceGroupResponse() + err = client.DoAction(request, response) + return +} + +// MoveVpnResourceGroupWithChan invokes the vpc.MoveVpnResourceGroup API asynchronously +func (client *Client) MoveVpnResourceGroupWithChan(request *MoveVpnResourceGroupRequest) (<-chan *MoveVpnResourceGroupResponse, <-chan error) { + responseChan := make(chan *MoveVpnResourceGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.MoveVpnResourceGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// MoveVpnResourceGroupWithCallback invokes the vpc.MoveVpnResourceGroup API asynchronously +func (client *Client) MoveVpnResourceGroupWithCallback(request *MoveVpnResourceGroupRequest, callback func(response *MoveVpnResourceGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *MoveVpnResourceGroupResponse + var err error + defer close(result) + response, err = client.MoveVpnResourceGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// MoveVpnResourceGroupRequest is the request struct for api MoveVpnResourceGroup +type MoveVpnResourceGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + InstanceId string `position:"Query" name:"InstanceId"` + NewResourceGroupId string `position:"Query" name:"NewResourceGroupId"` +} + +// MoveVpnResourceGroupResponse is the response struct for api MoveVpnResourceGroup +type MoveVpnResourceGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateMoveVpnResourceGroupRequest creates a request to invoke MoveVpnResourceGroup API +func CreateMoveVpnResourceGroupRequest() (request *MoveVpnResourceGroupRequest) { + request = &MoveVpnResourceGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "MoveVpnResourceGroup", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateMoveVpnResourceGroupResponse creates a response to parse from MoveVpnResourceGroup response +func CreateMoveVpnResourceGroupResponse() (response *MoveVpnResourceGroupResponse) { + response = &MoveVpnResourceGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/open_public_ip_address_pool_service.go b/services/vpc/open_public_ip_address_pool_service.go new file mode 100644 index 0000000000..6696de7875 --- /dev/null +++ b/services/vpc/open_public_ip_address_pool_service.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" +) + +// OpenPublicIpAddressPoolService invokes the vpc.OpenPublicIpAddressPoolService API synchronously +func (client *Client) OpenPublicIpAddressPoolService(request *OpenPublicIpAddressPoolServiceRequest) (response *OpenPublicIpAddressPoolServiceResponse, err error) { + response = CreateOpenPublicIpAddressPoolServiceResponse() + err = client.DoAction(request, response) + return +} + +// OpenPublicIpAddressPoolServiceWithChan invokes the vpc.OpenPublicIpAddressPoolService API asynchronously +func (client *Client) OpenPublicIpAddressPoolServiceWithChan(request *OpenPublicIpAddressPoolServiceRequest) (<-chan *OpenPublicIpAddressPoolServiceResponse, <-chan error) { + responseChan := make(chan *OpenPublicIpAddressPoolServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.OpenPublicIpAddressPoolService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// OpenPublicIpAddressPoolServiceWithCallback invokes the vpc.OpenPublicIpAddressPoolService API asynchronously +func (client *Client) OpenPublicIpAddressPoolServiceWithCallback(request *OpenPublicIpAddressPoolServiceRequest, callback func(response *OpenPublicIpAddressPoolServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *OpenPublicIpAddressPoolServiceResponse + var err error + defer close(result) + response, err = client.OpenPublicIpAddressPoolService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// OpenPublicIpAddressPoolServiceRequest is the request struct for api OpenPublicIpAddressPoolService +type OpenPublicIpAddressPoolServiceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// OpenPublicIpAddressPoolServiceResponse is the response struct for api OpenPublicIpAddressPoolService +type OpenPublicIpAddressPoolServiceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` +} + +// CreateOpenPublicIpAddressPoolServiceRequest creates a request to invoke OpenPublicIpAddressPoolService API +func CreateOpenPublicIpAddressPoolServiceRequest() (request *OpenPublicIpAddressPoolServiceRequest) { + request = &OpenPublicIpAddressPoolServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "OpenPublicIpAddressPoolService", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateOpenPublicIpAddressPoolServiceResponse creates a response to parse from OpenPublicIpAddressPoolService response +func CreateOpenPublicIpAddressPoolServiceResponse() (response *OpenPublicIpAddressPoolServiceResponse) { + response = &OpenPublicIpAddressPoolServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/publish_vpc_route_entries.go b/services/vpc/publish_vpc_route_entries.go new file mode 100644 index 0000000000..e796c10b36 --- /dev/null +++ b/services/vpc/publish_vpc_route_entries.go @@ -0,0 +1,112 @@ +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" +) + +// PublishVpcRouteEntries invokes the vpc.PublishVpcRouteEntries API synchronously +func (client *Client) PublishVpcRouteEntries(request *PublishVpcRouteEntriesRequest) (response *PublishVpcRouteEntriesResponse, err error) { + response = CreatePublishVpcRouteEntriesResponse() + err = client.DoAction(request, response) + return +} + +// PublishVpcRouteEntriesWithChan invokes the vpc.PublishVpcRouteEntries API asynchronously +func (client *Client) PublishVpcRouteEntriesWithChan(request *PublishVpcRouteEntriesRequest) (<-chan *PublishVpcRouteEntriesResponse, <-chan error) { + responseChan := make(chan *PublishVpcRouteEntriesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PublishVpcRouteEntries(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PublishVpcRouteEntriesWithCallback invokes the vpc.PublishVpcRouteEntries API asynchronously +func (client *Client) PublishVpcRouteEntriesWithCallback(request *PublishVpcRouteEntriesRequest, callback func(response *PublishVpcRouteEntriesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PublishVpcRouteEntriesResponse + var err error + defer close(result) + response, err = client.PublishVpcRouteEntries(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PublishVpcRouteEntriesRequest is the request struct for api PublishVpcRouteEntries +type PublishVpcRouteEntriesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TargetType string `position:"Query" name:"TargetType"` + 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"` + TargetInstanceId string `position:"Query" name:"TargetInstanceId"` + RouteEntries *[]PublishVpcRouteEntriesRouteEntries `position:"Query" name:"RouteEntries" type:"Repeated"` +} + +// PublishVpcRouteEntriesRouteEntries is a repeated param struct in PublishVpcRouteEntriesRequest +type PublishVpcRouteEntriesRouteEntries struct { + RouteTableId string `name:"RouteTableId"` + DestinationCidrBlock string `name:"DestinationCidrBlock"` +} + +// PublishVpcRouteEntriesResponse is the response struct for api PublishVpcRouteEntries +type PublishVpcRouteEntriesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreatePublishVpcRouteEntriesRequest creates a request to invoke PublishVpcRouteEntries API +func CreatePublishVpcRouteEntriesRequest() (request *PublishVpcRouteEntriesRequest) { + request = &PublishVpcRouteEntriesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "PublishVpcRouteEntries", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreatePublishVpcRouteEntriesResponse creates a response to parse from PublishVpcRouteEntries response +func CreatePublishVpcRouteEntriesResponse() (response *PublishVpcRouteEntriesResponse) { + response = &PublishVpcRouteEntriesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/modify_ipv6_gateway_spec.go b/services/vpc/release_ipv6_address.go similarity index 51% rename from services/vpc/modify_ipv6_gateway_spec.go rename to services/vpc/release_ipv6_address.go index e41df72b9e..0687b8694c 100644 --- a/services/vpc/modify_ipv6_gateway_spec.go +++ b/services/vpc/release_ipv6_address.go @@ -20,21 +20,21 @@ import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" ) -// ModifyIpv6GatewaySpec invokes the vpc.ModifyIpv6GatewaySpec API synchronously -func (client *Client) ModifyIpv6GatewaySpec(request *ModifyIpv6GatewaySpecRequest) (response *ModifyIpv6GatewaySpecResponse, err error) { - response = CreateModifyIpv6GatewaySpecResponse() +// ReleaseIpv6Address invokes the vpc.ReleaseIpv6Address API synchronously +func (client *Client) ReleaseIpv6Address(request *ReleaseIpv6AddressRequest) (response *ReleaseIpv6AddressResponse, err error) { + response = CreateReleaseIpv6AddressResponse() err = client.DoAction(request, response) return } -// ModifyIpv6GatewaySpecWithChan invokes the vpc.ModifyIpv6GatewaySpec API asynchronously -func (client *Client) ModifyIpv6GatewaySpecWithChan(request *ModifyIpv6GatewaySpecRequest) (<-chan *ModifyIpv6GatewaySpecResponse, <-chan error) { - responseChan := make(chan *ModifyIpv6GatewaySpecResponse, 1) +// ReleaseIpv6AddressWithChan invokes the vpc.ReleaseIpv6Address API asynchronously +func (client *Client) ReleaseIpv6AddressWithChan(request *ReleaseIpv6AddressRequest) (<-chan *ReleaseIpv6AddressResponse, <-chan error) { + responseChan := make(chan *ReleaseIpv6AddressResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(responseChan) defer close(errChan) - response, err := client.ModifyIpv6GatewaySpec(request) + response, err := client.ReleaseIpv6Address(request) if err != nil { errChan <- err } else { @@ -49,14 +49,14 @@ func (client *Client) ModifyIpv6GatewaySpecWithChan(request *ModifyIpv6GatewaySp return responseChan, errChan } -// ModifyIpv6GatewaySpecWithCallback invokes the vpc.ModifyIpv6GatewaySpec API asynchronously -func (client *Client) ModifyIpv6GatewaySpecWithCallback(request *ModifyIpv6GatewaySpecRequest, callback func(response *ModifyIpv6GatewaySpecResponse, err error)) <-chan int { +// ReleaseIpv6AddressWithCallback invokes the vpc.ReleaseIpv6Address API asynchronously +func (client *Client) ReleaseIpv6AddressWithCallback(request *ReleaseIpv6AddressRequest, callback func(response *ReleaseIpv6AddressResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { - var response *ModifyIpv6GatewaySpecResponse + var response *ReleaseIpv6AddressResponse var err error defer close(result) - response, err = client.ModifyIpv6GatewaySpec(request) + response, err = client.ReleaseIpv6Address(request) callback(response, err) result <- 1 }) @@ -68,37 +68,37 @@ func (client *Client) ModifyIpv6GatewaySpecWithCallback(request *ModifyIpv6Gatew return result } -// ModifyIpv6GatewaySpecRequest is the request struct for api ModifyIpv6GatewaySpec -type ModifyIpv6GatewaySpecRequest struct { +// ReleaseIpv6AddressRequest is the request struct for api ReleaseIpv6Address +type ReleaseIpv6AddressRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ClientToken string `position:"Query" name:"ClientToken"` - Spec string `position:"Query" name:"Spec"` + 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"` - Ipv6GatewayId string `position:"Query" name:"Ipv6GatewayId"` + Ipv6AddressId string `position:"Query" name:"Ipv6AddressId"` } -// ModifyIpv6GatewaySpecResponse is the response struct for api ModifyIpv6GatewaySpec -type ModifyIpv6GatewaySpecResponse struct { +// ReleaseIpv6AddressResponse is the response struct for api ReleaseIpv6Address +type ReleaseIpv6AddressResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` } -// CreateModifyIpv6GatewaySpecRequest creates a request to invoke ModifyIpv6GatewaySpec API -func CreateModifyIpv6GatewaySpecRequest() (request *ModifyIpv6GatewaySpecRequest) { - request = &ModifyIpv6GatewaySpecRequest{ +// CreateReleaseIpv6AddressRequest creates a request to invoke ReleaseIpv6Address API +func CreateReleaseIpv6AddressRequest() (request *ReleaseIpv6AddressRequest) { + request = &ReleaseIpv6AddressRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Vpc", "2016-04-28", "ModifyIpv6GatewaySpec", "vpc", "openAPI") + request.InitWithApiInfo("Vpc", "2016-04-28", "ReleaseIpv6Address", "vpc", "openAPI") request.Method = requests.POST return } -// CreateModifyIpv6GatewaySpecResponse creates a response to parse from ModifyIpv6GatewaySpec response -func CreateModifyIpv6GatewaySpecResponse() (response *ModifyIpv6GatewaySpecResponse) { - response = &ModifyIpv6GatewaySpecResponse{ +// CreateReleaseIpv6AddressResponse creates a response to parse from ReleaseIpv6Address response +func CreateReleaseIpv6AddressResponse() (response *ReleaseIpv6AddressResponse) { + response = &ReleaseIpv6AddressResponse{ BaseResponse: &responses.BaseResponse{}, } return diff --git a/services/vpc/second_apply_physical_connection_loa.go b/services/vpc/second_apply_physical_connection_loa.go new file mode 100644 index 0000000000..5fed114922 --- /dev/null +++ b/services/vpc/second_apply_physical_connection_loa.go @@ -0,0 +1,120 @@ +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" +) + +// SecondApplyPhysicalConnectionLOA invokes the vpc.SecondApplyPhysicalConnectionLOA API synchronously +func (client *Client) SecondApplyPhysicalConnectionLOA(request *SecondApplyPhysicalConnectionLOARequest) (response *SecondApplyPhysicalConnectionLOAResponse, err error) { + response = CreateSecondApplyPhysicalConnectionLOAResponse() + err = client.DoAction(request, response) + return +} + +// SecondApplyPhysicalConnectionLOAWithChan invokes the vpc.SecondApplyPhysicalConnectionLOA API asynchronously +func (client *Client) SecondApplyPhysicalConnectionLOAWithChan(request *SecondApplyPhysicalConnectionLOARequest) (<-chan *SecondApplyPhysicalConnectionLOAResponse, <-chan error) { + responseChan := make(chan *SecondApplyPhysicalConnectionLOAResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SecondApplyPhysicalConnectionLOA(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SecondApplyPhysicalConnectionLOAWithCallback invokes the vpc.SecondApplyPhysicalConnectionLOA API asynchronously +func (client *Client) SecondApplyPhysicalConnectionLOAWithCallback(request *SecondApplyPhysicalConnectionLOARequest, callback func(response *SecondApplyPhysicalConnectionLOAResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SecondApplyPhysicalConnectionLOAResponse + var err error + defer close(result) + response, err = client.SecondApplyPhysicalConnectionLOA(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SecondApplyPhysicalConnectionLOARequest is the request struct for api SecondApplyPhysicalConnectionLOA +type SecondApplyPhysicalConnectionLOARequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + LineType string `position:"Query" name:"LineType"` + Si string `position:"Query" name:"Si"` + PeerLocation string `position:"Query" name:"PeerLocation"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ConstructionTime string `position:"Query" name:"ConstructionTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + CompanyName string `position:"Query" name:"CompanyName"` + PMInfo *[]SecondApplyPhysicalConnectionLOAPMInfo `position:"Query" name:"PMInfo" type:"Repeated"` +} + +// SecondApplyPhysicalConnectionLOAPMInfo is a repeated param struct in SecondApplyPhysicalConnectionLOARequest +type SecondApplyPhysicalConnectionLOAPMInfo struct { + PMCertificateNo string `name:"PMCertificateNo"` + PMName string `name:"PMName"` + PMCertificateType string `name:"PMCertificateType"` + PMGender string `name:"PMGender"` + PMContactInfo string `name:"PMContactInfo"` +} + +// SecondApplyPhysicalConnectionLOAResponse is the response struct for api SecondApplyPhysicalConnectionLOA +type SecondApplyPhysicalConnectionLOAResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSecondApplyPhysicalConnectionLOARequest creates a request to invoke SecondApplyPhysicalConnectionLOA API +func CreateSecondApplyPhysicalConnectionLOARequest() (request *SecondApplyPhysicalConnectionLOARequest) { + request = &SecondApplyPhysicalConnectionLOARequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "SecondApplyPhysicalConnectionLOA", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateSecondApplyPhysicalConnectionLOAResponse creates a response to parse from SecondApplyPhysicalConnectionLOA response +func CreateSecondApplyPhysicalConnectionLOAResponse() (response *SecondApplyPhysicalConnectionLOAResponse) { + response = &SecondApplyPhysicalConnectionLOAResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/start_failover_test_job.go b/services/vpc/start_failover_test_job.go new file mode 100644 index 0000000000..668ef76a83 --- /dev/null +++ b/services/vpc/start_failover_test_job.go @@ -0,0 +1,103 @@ +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" +) + +// StartFailoverTestJob invokes the vpc.StartFailoverTestJob API synchronously +func (client *Client) StartFailoverTestJob(request *StartFailoverTestJobRequest) (response *StartFailoverTestJobResponse, err error) { + response = CreateStartFailoverTestJobResponse() + err = client.DoAction(request, response) + return +} + +// StartFailoverTestJobWithChan invokes the vpc.StartFailoverTestJob API asynchronously +func (client *Client) StartFailoverTestJobWithChan(request *StartFailoverTestJobRequest) (<-chan *StartFailoverTestJobResponse, <-chan error) { + responseChan := make(chan *StartFailoverTestJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartFailoverTestJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartFailoverTestJobWithCallback invokes the vpc.StartFailoverTestJob API asynchronously +func (client *Client) StartFailoverTestJobWithCallback(request *StartFailoverTestJobRequest, callback func(response *StartFailoverTestJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartFailoverTestJobResponse + var err error + defer close(result) + response, err = client.StartFailoverTestJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartFailoverTestJobRequest is the request struct for api StartFailoverTestJob +type StartFailoverTestJobRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + JobId string `position:"Query" name:"JobId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StartFailoverTestJobResponse is the response struct for api StartFailoverTestJob +type StartFailoverTestJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartFailoverTestJobRequest creates a request to invoke StartFailoverTestJob API +func CreateStartFailoverTestJobRequest() (request *StartFailoverTestJobRequest) { + request = &StartFailoverTestJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "StartFailoverTestJob", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateStartFailoverTestJobResponse creates a response to parse from StartFailoverTestJob response +func CreateStartFailoverTestJobResponse() (response *StartFailoverTestJobResponse) { + response = &StartFailoverTestJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/stop_failover_test_job.go b/services/vpc/stop_failover_test_job.go new file mode 100644 index 0000000000..f972bcf3de --- /dev/null +++ b/services/vpc/stop_failover_test_job.go @@ -0,0 +1,103 @@ +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" +) + +// StopFailoverTestJob invokes the vpc.StopFailoverTestJob API synchronously +func (client *Client) StopFailoverTestJob(request *StopFailoverTestJobRequest) (response *StopFailoverTestJobResponse, err error) { + response = CreateStopFailoverTestJobResponse() + err = client.DoAction(request, response) + return +} + +// StopFailoverTestJobWithChan invokes the vpc.StopFailoverTestJob API asynchronously +func (client *Client) StopFailoverTestJobWithChan(request *StopFailoverTestJobRequest) (<-chan *StopFailoverTestJobResponse, <-chan error) { + responseChan := make(chan *StopFailoverTestJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopFailoverTestJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopFailoverTestJobWithCallback invokes the vpc.StopFailoverTestJob API asynchronously +func (client *Client) StopFailoverTestJobWithCallback(request *StopFailoverTestJobRequest, callback func(response *StopFailoverTestJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopFailoverTestJobResponse + var err error + defer close(result) + response, err = client.StopFailoverTestJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopFailoverTestJobRequest is the request struct for api StopFailoverTestJob +type StopFailoverTestJobRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + JobId string `position:"Query" name:"JobId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StopFailoverTestJobResponse is the response struct for api StopFailoverTestJob +type StopFailoverTestJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopFailoverTestJobRequest creates a request to invoke StopFailoverTestJob API +func CreateStopFailoverTestJobRequest() (request *StopFailoverTestJobRequest) { + request = &StopFailoverTestJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "StopFailoverTestJob", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateStopFailoverTestJobResponse creates a response to parse from StopFailoverTestJob response +func CreateStopFailoverTestJobResponse() (response *StopFailoverTestJobResponse) { + response = &StopFailoverTestJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/struct_access_mode.go b/services/vpc/struct_access_mode.go new file mode 100644 index 0000000000..719f0c8658 --- /dev/null +++ b/services/vpc/struct_access_mode.go @@ -0,0 +1,22 @@ +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. + +// AccessMode is a nested struct in vpc response +type AccessMode struct { + TunnelType string `json:"TunnelType" xml:"TunnelType"` + ModeValue string `json:"ModeValue" xml:"ModeValue"` +} diff --git a/services/vpc/struct_associate_network_interface.go b/services/vpc/struct_associate_network_interface.go new file mode 100644 index 0000000000..d6af0fc949 --- /dev/null +++ b/services/vpc/struct_associate_network_interface.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. + +// AssociateNetworkInterface is a nested struct in vpc response +type AssociateNetworkInterface struct { + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + ResourceOwnerId string `json:"ResourceOwnerId" xml:"ResourceOwnerId"` + TunnelIndex string `json:"TunnelIndex" xml:"TunnelIndex"` + IPv4Sets IPv4Sets `json:"IPv4Sets" xml:"IPv4Sets"` +} diff --git a/services/vpc/struct_convert_step.go b/services/vpc/struct_associate_network_interfaces.go similarity index 73% rename from services/vpc/struct_convert_step.go rename to services/vpc/struct_associate_network_interfaces.go index 06dc547a89..4660fee0c0 100644 --- a/services/vpc/struct_convert_step.go +++ b/services/vpc/struct_associate_network_interfaces.go @@ -15,9 +15,7 @@ package vpc // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// 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"` +// AssociateNetworkInterfaces is a nested struct in vpc response +type AssociateNetworkInterfaces struct { + AssociateNetworkInterface []AssociateNetworkInterface `json:"AssociateNetworkInterface" xml:"AssociateNetworkInterface"` } diff --git a/services/vpc/struct_associated_instance_list.go b/services/vpc/struct_associated_instance_list.go new file mode 100644 index 0000000000..04b11f9cb3 --- /dev/null +++ b/services/vpc/struct_associated_instance_list.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. + +// AssociatedInstanceList is a nested struct in vpc response +type AssociatedInstanceList struct { + AssociatedInstanceListItem []AssociatedInstanceListItem `json:"associatedInstanceList" xml:"associatedInstanceList"` +} diff --git a/services/vpc/struct_associated_instance_list_item.go b/services/vpc/struct_associated_instance_list_item.go new file mode 100644 index 0000000000..7f551e27e1 --- /dev/null +++ b/services/vpc/struct_associated_instance_list_item.go @@ -0,0 +1,24 @@ +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. + +// AssociatedInstanceListItem is a nested struct in vpc response +type AssociatedInstanceListItem struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + InstanceStatus string `json:"InstanceStatus" xml:"InstanceStatus"` + InstanceProgressing int `json:"InstanceProgressing" xml:"InstanceProgressing"` +} diff --git a/services/vpc/struct_associated_propagation_sources.go b/services/vpc/struct_associated_propagation_sources.go new file mode 100644 index 0000000000..1a28067729 --- /dev/null +++ b/services/vpc/struct_associated_propagation_sources.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. + +// AssociatedPropagationSources is a nested struct in vpc response +type AssociatedPropagationSources struct { + AssociatedPropagationSourcesItem []AssociatedPropagationSourcesItem `json:"AssociatedPropagationSources" xml:"AssociatedPropagationSources"` +} diff --git a/services/vpc/struct_associated_propagation_sources_item.go b/services/vpc/struct_associated_propagation_sources_item.go new file mode 100644 index 0000000000..d28e05e1fd --- /dev/null +++ b/services/vpc/struct_associated_propagation_sources_item.go @@ -0,0 +1,25 @@ +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. + +// AssociatedPropagationSourcesItem is a nested struct in vpc response +type AssociatedPropagationSourcesItem struct { + SourceType string `json:"SourceType" xml:"SourceType"` + SourceOwnerId int64 `json:"SourceOwnerId" xml:"SourceOwnerId"` + SourceInstanceId string `json:"SourceInstanceId" xml:"SourceInstanceId"` + Status string `json:"Status" xml:"Status"` + RoutePropagated bool `json:"RoutePropagated" xml:"RoutePropagated"` +} diff --git a/services/vpc/struct_available_zone_id.go b/services/vpc/struct_available_zone_id.go new file mode 100644 index 0000000000..1feebdd925 --- /dev/null +++ b/services/vpc/struct_available_zone_id.go @@ -0,0 +1,22 @@ +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. + +// AvailableZoneId is a nested struct in vpc response +type AvailableZoneId struct { + ZoneId string `json:"ZoneId" xml:"ZoneId"` + ZoneName string `json:"ZoneName" xml:"ZoneName"` +} diff --git a/services/vpc/struct_available_zone_id_list.go b/services/vpc/struct_available_zone_id_list.go new file mode 100644 index 0000000000..746d3cb5f6 --- /dev/null +++ b/services/vpc/struct_available_zone_id_list.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. + +// AvailableZoneIdList is a nested struct in vpc response +type AvailableZoneIdList struct { + AvailableZoneId []AvailableZoneId `json:"AvailableZoneId" xml:"AvailableZoneId"` +} diff --git a/services/vpc/struct_cidr_reservation_usages.go b/services/vpc/struct_cidr_reservation_usages.go new file mode 100644 index 0000000000..ec23bc6a32 --- /dev/null +++ b/services/vpc/struct_cidr_reservation_usages.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. + +// CidrReservationUsages is a nested struct in vpc response +type CidrReservationUsages struct { + VSwitchCidrReservationUsage []VSwitchCidrReservationUsage `json:"VSwitchCidrReservationUsage" xml:"VSwitchCidrReservationUsage"` +} diff --git a/services/vpc/struct_common_bandwidth_package.go b/services/vpc/struct_common_bandwidth_package.go index 1570840a88..a52a450fda 100644 --- a/services/vpc/struct_common_bandwidth_package.go +++ b/services/vpc/struct_common_bandwidth_package.go @@ -38,6 +38,8 @@ type CommonBandwidthPackage struct { Name string `json:"Name" xml:"Name"` ISP string `json:"ISP" xml:"ISP"` HasReservationData string `json:"HasReservationData" xml:"HasReservationData"` + BizType string `json:"BizType" xml:"BizType"` + Zone string `json:"Zone" xml:"Zone"` SecurityProtectionTypes SecurityProtectionTypesInDescribeCommonBandwidthPackages `json:"SecurityProtectionTypes" xml:"SecurityProtectionTypes"` PublicIpAddresses PublicIpAddressesInDescribeCommonBandwidthPackages `json:"PublicIpAddresses" xml:"PublicIpAddresses"` Tags TagsInDescribeCommonBandwidthPackages `json:"Tags" xml:"Tags"` diff --git a/services/vpc/struct_customer_gateway.go b/services/vpc/struct_customer_gateway.go index d23ed5da06..4db29a0621 100644 --- a/services/vpc/struct_customer_gateway.go +++ b/services/vpc/struct_customer_gateway.go @@ -24,5 +24,6 @@ type CustomerGateway struct { CreateTime int64 `json:"CreateTime" xml:"CreateTime"` Name string `json:"Name" xml:"Name"` AuthKey string `json:"AuthKey" xml:"AuthKey"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` Tags TagsInDescribeCustomerGateways `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_egress_acl_entry.go b/services/vpc/struct_egress_acl_entry.go index 6fed59caca..e96498fffb 100644 --- a/services/vpc/struct_egress_acl_entry.go +++ b/services/vpc/struct_egress_acl_entry.go @@ -23,6 +23,7 @@ type EgressAclEntry struct { Port string `json:"Port" xml:"Port"` NetworkAclEntryName string `json:"NetworkAclEntryName" xml:"NetworkAclEntryName"` EntryType string `json:"EntryType" xml:"EntryType"` + IpVersion string `json:"IpVersion" xml:"IpVersion"` Policy string `json:"Policy" xml:"Policy"` Description string `json:"Description" xml:"Description"` } diff --git a/services/vpc/struct_eip_address.go b/services/vpc/struct_eip_address.go index 9d2e7f6455..4d348b6c67 100644 --- a/services/vpc/struct_eip_address.go +++ b/services/vpc/struct_eip_address.go @@ -55,6 +55,7 @@ type EipAddress struct { PublicIpAddressPoolId string `json:"PublicIpAddressPoolId" xml:"PublicIpAddressPoolId"` VpcId string `json:"VpcId" xml:"VpcId"` Zone string `json:"Zone" xml:"Zone"` + BizType string `json:"BizType" xml:"BizType"` AvailableRegions AvailableRegions `json:"AvailableRegions" xml:"AvailableRegions"` SecurityProtectionTypes SecurityProtectionTypesInDescribeEipAddresses `json:"SecurityProtectionTypes" xml:"SecurityProtectionTypes"` OperationLocks OperationLocksInDescribeEipAddresses `json:"OperationLocks" xml:"OperationLocks"` diff --git a/services/vpc/struct_eni_instance_ids_in_describe_vpn_gateway.go b/services/vpc/struct_eni_instance_ids_in_describe_vpn_gateway.go new file mode 100644 index 0000000000..0c4673d3c2 --- /dev/null +++ b/services/vpc/struct_eni_instance_ids_in_describe_vpn_gateway.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. + +// EniInstanceIdsInDescribeVpnGateway is a nested struct in vpc response +type EniInstanceIdsInDescribeVpnGateway struct { + EniInstanceId []string `json:"EniInstanceId" xml:"EniInstanceId"` +} diff --git a/services/vpc/struct_eni_instance_ids_in_describe_vpn_gateways.go b/services/vpc/struct_eni_instance_ids_in_describe_vpn_gateways.go new file mode 100644 index 0000000000..13710d3a16 --- /dev/null +++ b/services/vpc/struct_eni_instance_ids_in_describe_vpn_gateways.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. + +// EniInstanceIdsInDescribeVpnGateways is a nested struct in vpc response +type EniInstanceIdsInDescribeVpnGateways struct { + EniInstanceId []string `json:"EniInstanceId" xml:"EniInstanceId"` +} diff --git a/services/vpc/struct_error_info_list.go b/services/vpc/struct_error_info_list.go new file mode 100644 index 0000000000..0da5b5f5cc --- /dev/null +++ b/services/vpc/struct_error_info_list.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. + +// ErrorInfoList is a nested struct in vpc response +type ErrorInfoList struct { + ErrorInfoListItem []ErrorInfoListItem `json:"errorInfoList" xml:"errorInfoList"` +} diff --git a/services/vpc/struct_error_info_list_item.go b/services/vpc/struct_error_info_list_item.go new file mode 100644 index 0000000000..78570bf333 --- /dev/null +++ b/services/vpc/struct_error_info_list_item.go @@ -0,0 +1,23 @@ +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. + +// ErrorInfoListItem is a nested struct in vpc response +type ErrorInfoListItem struct { + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/services/vpc/struct_failover_test_job_list.go b/services/vpc/struct_failover_test_job_list.go new file mode 100644 index 0000000000..ad6079d199 --- /dev/null +++ b/services/vpc/struct_failover_test_job_list.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. + +// FailoverTestJobList is a nested struct in vpc response +type FailoverTestJobList struct { + FailoverTestJobListItem []FailoverTestJobListItem `json:"FailoverTestJobList" xml:"FailoverTestJobList"` +} diff --git a/services/vpc/struct_failover_test_job_list_item.go b/services/vpc/struct_failover_test_job_list_item.go new file mode 100644 index 0000000000..1925f9d888 --- /dev/null +++ b/services/vpc/struct_failover_test_job_list_item.go @@ -0,0 +1,30 @@ +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. + +// FailoverTestJobListItem is a nested struct in vpc response +type FailoverTestJobListItem struct { + JobId string `json:"JobId" xml:"JobId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + JobType string `json:"JobType" xml:"JobType"` + JobDuration string `json:"JobDuration" xml:"JobDuration"` + StartTime string `json:"StartTime" xml:"StartTime"` + StopTime string `json:"StopTime" xml:"StopTime"` + Status string `json:"Status" xml:"Status"` + ResourceId []string `json:"ResourceId" xml:"ResourceId"` +} diff --git a/services/vpc/struct_failover_test_job_model.go b/services/vpc/struct_failover_test_job_model.go new file mode 100644 index 0000000000..a360964153 --- /dev/null +++ b/services/vpc/struct_failover_test_job_model.go @@ -0,0 +1,30 @@ +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. + +// FailoverTestJobModel is a nested struct in vpc response +type FailoverTestJobModel struct { + JobId string `json:"JobId" xml:"JobId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + JobType string `json:"JobType" xml:"JobType"` + JobDuration string `json:"JobDuration" xml:"JobDuration"` + StartTime string `json:"StartTime" xml:"StartTime"` + StopTime string `json:"StopTime" xml:"StopTime"` + Status string `json:"Status" xml:"Status"` + ResourceId []string `json:"ResourceId" xml:"ResourceId"` +} diff --git a/services/vpc/struct_flow_log.go b/services/vpc/struct_flow_log.go index 39899c4495..ba7256dab6 100644 --- a/services/vpc/struct_flow_log.go +++ b/services/vpc/struct_flow_log.go @@ -34,6 +34,7 @@ type FlowLog struct { ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` FlowLogDeliverStatus string `json:"FlowLogDeliverStatus" xml:"FlowLogDeliverStatus"` FlowLogDeliverErrorMessage string `json:"FlowLogDeliverErrorMessage" xml:"FlowLogDeliverErrorMessage"` + IpVersion string `json:"IpVersion" xml:"IpVersion"` TrafficPath TrafficPath `json:"TrafficPath" xml:"TrafficPath"` Tags TagsInDescribeFlowLogs `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_forward_table_entry.go b/services/vpc/struct_forward_table_entry.go index 23d72eb09b..9fe2f0925b 100644 --- a/services/vpc/struct_forward_table_entry.go +++ b/services/vpc/struct_forward_table_entry.go @@ -26,4 +26,5 @@ type ForwardTableEntry struct { IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` ExternalPort string `json:"ExternalPort" xml:"ExternalPort"` ExternalIp string `json:"ExternalIp" xml:"ExternalIp"` + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` } diff --git a/services/vpc/struct_i_pv4_set.go b/services/vpc/struct_i_pv4_set.go new file mode 100644 index 0000000000..e3a2c26fd3 --- /dev/null +++ b/services/vpc/struct_i_pv4_set.go @@ -0,0 +1,22 @@ +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. + +// IPv4Set is a nested struct in vpc response +type IPv4Set struct { + IPv4Address string `json:"IPv4Address" xml:"IPv4Address"` + Primary bool `json:"Primary" xml:"Primary"` +} diff --git a/services/vpc/struct_convert_steps.go b/services/vpc/struct_i_pv4_sets.go similarity index 82% rename from services/vpc/struct_convert_steps.go rename to services/vpc/struct_i_pv4_sets.go index a3b6ebc006..24cb337bfb 100644 --- a/services/vpc/struct_convert_steps.go +++ b/services/vpc/struct_i_pv4_sets.go @@ -15,7 +15,7 @@ package vpc // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ConvertSteps is a nested struct in vpc response -type ConvertSteps struct { - ConvertStep []ConvertStep `json:"ConvertStep" xml:"ConvertStep"` +// IPv4Sets is a nested struct in vpc response +type IPv4Sets struct { + IPv4Set []IPv4Set `json:"IPv4Set" xml:"IPv4Set"` } diff --git a/services/vpc/struct_ingress_acl_entry.go b/services/vpc/struct_ingress_acl_entry.go index 43324826f3..bf0bebda79 100644 --- a/services/vpc/struct_ingress_acl_entry.go +++ b/services/vpc/struct_ingress_acl_entry.go @@ -23,6 +23,7 @@ type IngressAclEntry struct { SourceCidrIp string `json:"SourceCidrIp" xml:"SourceCidrIp"` NetworkAclEntryName string `json:"NetworkAclEntryName" xml:"NetworkAclEntryName"` EntryType string `json:"EntryType" xml:"EntryType"` + IpVersion string `json:"IpVersion" xml:"IpVersion"` Policy string `json:"Policy" xml:"Policy"` Description string `json:"Description" xml:"Description"` } diff --git a/services/vpc/struct_ipsec_server.go b/services/vpc/struct_ipsec_server.go index 6d3625b1d2..a93d16df49 100644 --- a/services/vpc/struct_ipsec_server.go +++ b/services/vpc/struct_ipsec_server.go @@ -32,6 +32,7 @@ type IpsecServer struct { MultiFactorAuthEnabled bool `json:"MultiFactorAuthEnabled" xml:"MultiFactorAuthEnabled"` MaxConnections int `json:"MaxConnections" xml:"MaxConnections"` ClientIpPool string `json:"ClientIpPool" xml:"ClientIpPool"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` } diff --git a/services/vpc/struct_ipv6_address.go b/services/vpc/struct_ipv6_address.go index 6aac09827f..2e7a092c89 100644 --- a/services/vpc/struct_ipv6_address.go +++ b/services/vpc/struct_ipv6_address.go @@ -17,18 +17,23 @@ 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"` - AssociatedInstanceType string `json:"AssociatedInstanceType" xml:"AssociatedInstanceType"` - AssociatedInstanceId string `json:"AssociatedInstanceId" xml:"AssociatedInstanceId"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - 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"` + 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"` + Ipv6AddressDescription string `json:"Ipv6AddressDescription" xml:"Ipv6AddressDescription"` + AssociatedInstanceType string `json:"AssociatedInstanceType" xml:"AssociatedInstanceType"` + AssociatedInstanceId string `json:"AssociatedInstanceId" xml:"AssociatedInstanceId"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + Ipv6Address string `json:"Ipv6Address" xml:"Ipv6Address"` + AddressType string `json:"AddressType" xml:"AddressType"` + Ipv6Isp string `json:"Ipv6Isp" xml:"Ipv6Isp"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + Ipv6GatewayId string `json:"Ipv6GatewayId" xml:"Ipv6GatewayId"` + RealBandwidth int `json:"RealBandwidth" xml:"RealBandwidth"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ServiceManaged int `json:"ServiceManaged" xml:"ServiceManaged"` + Ipv6InternetBandwidth Ipv6InternetBandwidth `json:"Ipv6InternetBandwidth" xml:"Ipv6InternetBandwidth"` + Tags TagsInDescribeIpv6Addresses `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_log_delivery.go b/services/vpc/struct_log_delivery.go new file mode 100644 index 0000000000..bf43c6ef8b --- /dev/null +++ b/services/vpc/struct_log_delivery.go @@ -0,0 +1,24 @@ +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. + +// LogDelivery is a nested struct in vpc response +type LogDelivery struct { + LogDeliveryType string `json:"LogDeliveryType" xml:"LogDeliveryType"` + LogDestination string `json:"LogDestination" xml:"LogDestination"` + DeliveryStatus string `json:"DeliveryStatus" xml:"DeliveryStatus"` + DeliverLogsErrorMessage string `json:"DeliverLogsErrorMessage" xml:"DeliverLogsErrorMessage"` +} diff --git a/services/vpc/struct_nat_gateway.go b/services/vpc/struct_nat_gateway.go index 4644a767f0..7c85125b1c 100644 --- a/services/vpc/struct_nat_gateway.go +++ b/services/vpc/struct_nat_gateway.go @@ -40,11 +40,13 @@ type NatGateway struct { PrivateLinkEnabled bool `json:"PrivateLinkEnabled" xml:"PrivateLinkEnabled"` PrivateLinkMode string `json:"PrivateLinkMode" xml:"PrivateLinkMode"` EipBindMode string `json:"EipBindMode" xml:"EipBindMode"` + EnableSessionLog string `json:"EnableSessionLog" xml:"EnableSessionLog"` ForwardTableIds ForwardTableIdsInDescribeNatGateways `json:"ForwardTableIds" xml:"ForwardTableIds"` SnatTableIds SnatTableIdsInDescribeNatGateways `json:"SnatTableIds" xml:"SnatTableIds"` FullNatTableIds FullNatTableIdsInDescribeNatGateways `json:"FullNatTableIds" xml:"FullNatTableIds"` BandwidthPackageIds BandwidthPackageIdsInDescribeNatGateways `json:"BandwidthPackageIds" xml:"BandwidthPackageIds"` NatGatewayPrivateInfo NatGatewayPrivateInfo `json:"NatGatewayPrivateInfo" xml:"NatGatewayPrivateInfo"` + AccessMode AccessMode `json:"AccessMode" xml:"AccessMode"` IpLists IpLists `json:"IpLists" xml:"IpLists"` Tags TagsInDescribeNatGateways `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_network_acl_attribute.go b/services/vpc/struct_network_acl_attribute.go index ee450dba79..fc1d1c8d76 100644 --- a/services/vpc/struct_network_acl_attribute.go +++ b/services/vpc/struct_network_acl_attribute.go @@ -17,16 +17,16 @@ package vpc // NetworkAclAttribute is a nested struct in vpc response type NetworkAclAttribute struct { - NetworkAclName string `json:"NetworkAclName" xml:"NetworkAclName"` - RegionId string `json:"RegionId" xml:"RegionId"` - NetworkAclId string `json:"NetworkAclId" xml:"NetworkAclId"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - 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"` - Tags TagsInDescribeNetworkAclAttributes `json:"Tags" xml:"Tags"` - EgressAclEntries EgressAclEntriesInCreateNetworkAcl `json:"EgressAclEntries" xml:"EgressAclEntries"` - Resources ResourcesInCreateNetworkAcl `json:"Resources" xml:"Resources"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + OwnerId int64 `json:"OwnerId" xml:"OwnerId"` + NetworkAclName string `json:"NetworkAclName" xml:"NetworkAclName"` + RegionId string `json:"RegionId" xml:"RegionId"` + NetworkAclId string `json:"NetworkAclId" xml:"NetworkAclId"` + Status string `json:"Status" xml:"Status"` + VpcId string `json:"VpcId" xml:"VpcId"` + Description string `json:"Description" xml:"Description"` + IngressAclEntries IngressAclEntriesInCreateNetworkAcl `json:"IngressAclEntries" xml:"IngressAclEntries"` + Tags TagsInDescribeNetworkAclAttributes `json:"Tags" xml:"Tags"` + EgressAclEntries EgressAclEntriesInDescribeNetworkAclAttributes `json:"EgressAclEntries" xml:"EgressAclEntries"` + Resources ResourcesInCreateNetworkAcl `json:"Resources" xml:"Resources"` } diff --git a/services/vpc/struct_next_hop_tunnel_id_list.go b/services/vpc/struct_next_hop_tunnel_id_list.go new file mode 100644 index 0000000000..e3c6a45f2d --- /dev/null +++ b/services/vpc/struct_next_hop_tunnel_id_list.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. + +// NextHopTunnelIdList is a nested struct in vpc response +type NextHopTunnelIdList struct { + NextHopTunnelId []string `json:"NextHopTunnelId" xml:"NextHopTunnelId"` +} diff --git a/services/vpc/struct_physical_connection_list.go b/services/vpc/struct_physical_connection_list.go new file mode 100644 index 0000000000..45d79d945f --- /dev/null +++ b/services/vpc/struct_physical_connection_list.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. + +// PhysicalConnectionList is a nested struct in vpc response +type PhysicalConnectionList struct { + PhysicalConnectionListItem []PhysicalConnectionListItem `json:"physicalConnectionList" xml:"physicalConnectionList"` +} diff --git a/services/vpc/struct_physical_connection_list_item.go b/services/vpc/struct_physical_connection_list_item.go new file mode 100644 index 0000000000..94ea5afb7d --- /dev/null +++ b/services/vpc/struct_physical_connection_list_item.go @@ -0,0 +1,22 @@ +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. + +// PhysicalConnectionListItem is a nested struct in vpc response +type PhysicalConnectionListItem struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RegionNo string `json:"RegionNo" xml:"RegionNo"` +} diff --git a/services/vpc/struct_physical_connection_loa_type.go b/services/vpc/struct_physical_connection_loa_type.go index acdcb2353b..b062ba07e9 100644 --- a/services/vpc/struct_physical_connection_loa_type.go +++ b/services/vpc/struct_physical_connection_loa_type.go @@ -27,5 +27,7 @@ type PhysicalConnectionLOAType struct { InstanceId string `json:"InstanceId" xml:"InstanceId"` LineType string `json:"LineType" xml:"LineType"` CompanyName string `json:"CompanyName" xml:"CompanyName"` + LineServiceProvider string `json:"LineServiceProvider" xml:"LineServiceProvider"` + LineSPContactInfo string `json:"LineSPContactInfo" xml:"LineSPContactInfo"` 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 7ef2428935..c59fa1eaeb 100644 --- a/services/vpc/struct_physical_connection_type.go +++ b/services/vpc/struct_physical_connection_type.go @@ -17,40 +17,42 @@ package vpc // PhysicalConnectionType is a nested struct in vpc response type PhysicalConnectionType struct { - Type string `json:"Type" xml:"Type"` - Status string `json:"Status" xml:"Status"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - AdLocation string `json:"AdLocation" xml:"AdLocation"` - ReservationActiveTime string `json:"ReservationActiveTime" xml:"ReservationActiveTime"` - ReservationOrderType string `json:"ReservationOrderType" xml:"ReservationOrderType"` - PortNumber string `json:"PortNumber" xml:"PortNumber"` - Spec string `json:"Spec" xml:"Spec"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - ReservationInternetChargeType string `json:"ReservationInternetChargeType" xml:"ReservationInternetChargeType"` - Description string `json:"Description" xml:"Description"` - Bandwidth int64 `json:"Bandwidth" xml:"Bandwidth"` - EnabledTime string `json:"EnabledTime" xml:"EnabledTime"` - LineOperator string `json:"LineOperator" xml:"LineOperator"` - PeerLocation string `json:"PeerLocation" xml:"PeerLocation"` - RedundantPhysicalConnectionId string `json:"RedundantPhysicalConnectionId" xml:"RedundantPhysicalConnectionId"` - Name string `json:"Name" xml:"Name"` - CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` - EndTime string `json:"EndTime" xml:"EndTime"` - PortType string `json:"PortType" xml:"PortType"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - LoaStatus string `json:"LoaStatus" xml:"LoaStatus"` - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` - AccessPointType string `json:"AccessPointType" xml:"AccessPointType"` - HasReservationData string `json:"HasReservationData" xml:"HasReservationData"` - PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` - ProductType string `json:"ProductType" xml:"ProductType"` - VirtualPhysicalConnectionCount int `json:"VirtualPhysicalConnectionCount" xml:"VirtualPhysicalConnectionCount"` - ParentPhysicalConnectionId string `json:"ParentPhysicalConnectionId" xml:"ParentPhysicalConnectionId"` - ParentPhysicalConnectionAliUid int64 `json:"ParentPhysicalConnectionAliUid" xml:"ParentPhysicalConnectionAliUid"` - VlanId string `json:"VlanId" xml:"VlanId"` - OrderMode string `json:"OrderMode" xml:"OrderMode"` - VpconnStatus string `json:"VpconnStatus" xml:"VpconnStatus"` - ExpectSpec string `json:"ExpectSpec" xml:"ExpectSpec"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - AdDetailLocation string `json:"AdDetailLocation" xml:"AdDetailLocation"` + Type string `json:"Type" xml:"Type"` + Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + AdLocation string `json:"AdLocation" xml:"AdLocation"` + ReservationActiveTime string `json:"ReservationActiveTime" xml:"ReservationActiveTime"` + ReservationOrderType string `json:"ReservationOrderType" xml:"ReservationOrderType"` + PortNumber string `json:"PortNumber" xml:"PortNumber"` + Spec string `json:"Spec" xml:"Spec"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + ReservationInternetChargeType string `json:"ReservationInternetChargeType" xml:"ReservationInternetChargeType"` + Description string `json:"Description" xml:"Description"` + Bandwidth int64 `json:"Bandwidth" xml:"Bandwidth"` + EnabledTime string `json:"EnabledTime" xml:"EnabledTime"` + LineOperator string `json:"LineOperator" xml:"LineOperator"` + PeerLocation string `json:"PeerLocation" xml:"PeerLocation"` + RedundantPhysicalConnectionId string `json:"RedundantPhysicalConnectionId" xml:"RedundantPhysicalConnectionId"` + Name string `json:"Name" xml:"Name"` + CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` + EndTime string `json:"EndTime" xml:"EndTime"` + PortType string `json:"PortType" xml:"PortType"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + LoaStatus string `json:"LoaStatus" xml:"LoaStatus"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + AccessPointType string `json:"AccessPointType" xml:"AccessPointType"` + HasReservationData string `json:"HasReservationData" xml:"HasReservationData"` + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + ProductType string `json:"ProductType" xml:"ProductType"` + VirtualPhysicalConnectionCount int `json:"VirtualPhysicalConnectionCount" xml:"VirtualPhysicalConnectionCount"` + ParentPhysicalConnectionId string `json:"ParentPhysicalConnectionId" xml:"ParentPhysicalConnectionId"` + ParentPhysicalConnectionAliUid int64 `json:"ParentPhysicalConnectionAliUid" xml:"ParentPhysicalConnectionAliUid"` + VlanId string `json:"VlanId" xml:"VlanId"` + OrderMode string `json:"OrderMode" xml:"OrderMode"` + VpconnStatus string `json:"VpconnStatus" xml:"VpconnStatus"` + ExpectSpec string `json:"ExpectSpec" xml:"ExpectSpec"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + AdDetailLocation string `json:"AdDetailLocation" xml:"AdDetailLocation"` + QosId string `json:"QosId" xml:"QosId"` + Tags TagsInDescribePhysicalConnections `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_prefix_list.go b/services/vpc/struct_prefix_list.go index 9baa1c3d1e..1f63da611f 100644 --- a/services/vpc/struct_prefix_list.go +++ b/services/vpc/struct_prefix_list.go @@ -29,6 +29,7 @@ type PrefixList struct { PrefixListStatus string `json:"PrefixListStatus" xml:"PrefixListStatus"` RegionId string `json:"RegionId" xml:"RegionId"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + PrefixListType string `json:"PrefixListType" xml:"PrefixListType"` CidrBlocks []string `json:"CidrBlocks" xml:"CidrBlocks"` Tags []Tag `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_public_ip_address_pool.go b/services/vpc/struct_public_ip_address_pool.go index f4fdeb59f1..396eaa11c6 100644 --- a/services/vpc/struct_public_ip_address_pool.go +++ b/services/vpc/struct_public_ip_address_pool.go @@ -17,20 +17,24 @@ package vpc // PublicIpAddressPool is a nested struct in vpc response type PublicIpAddressPool struct { - PublicIpAddressPoolId string `json:"PublicIpAddressPoolId" xml:"PublicIpAddressPoolId"` - RegionId string `json:"RegionId" xml:"RegionId"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Isp string `json:"Isp" xml:"Isp"` - Name string `json:"Name" xml:"Name"` - Status string `json:"Status" xml:"Status"` - Description string `json:"Description" xml:"Description"` - TotalIpNum int `json:"TotalIpNum" xml:"TotalIpNum"` - UsedIpNum int `json:"UsedIpNum" xml:"UsedIpNum"` - IpAddressRemaining bool `json:"IpAddressRemaining" xml:"IpAddressRemaining"` - UserType bool `json:"UserType" xml:"UserType"` - OwnerId int64 `json:"OwnerId" xml:"OwnerId"` - ShareType string `json:"ShareType" xml:"ShareType"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - PublicIpCidrBlockList []PublicIpCidrBlock `json:"PublicIpCidrBlockList" xml:"PublicIpCidrBlockList"` - Tags []Tag `json:"Tags" xml:"Tags"` + PublicIpAddressPoolId string `json:"PublicIpAddressPoolId" xml:"PublicIpAddressPoolId"` + RegionId string `json:"RegionId" xml:"RegionId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Isp string `json:"Isp" xml:"Isp"` + Name string `json:"Name" xml:"Name"` + Status string `json:"Status" xml:"Status"` + Description string `json:"Description" xml:"Description"` + TotalIpNum int `json:"TotalIpNum" xml:"TotalIpNum"` + UsedIpNum int `json:"UsedIpNum" xml:"UsedIpNum"` + IpAddressRemaining bool `json:"IpAddressRemaining" xml:"IpAddressRemaining"` + UserType string `json:"UserType" xml:"UserType"` + OwnerId int64 `json:"OwnerId" xml:"OwnerId"` + ShareType string `json:"ShareType" xml:"ShareType"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + BizType string `json:"BizType" xml:"BizType"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + Zones []string `json:"Zones" xml:"Zones"` + SecurityProtectionTypes []string `json:"SecurityProtectionTypes" xml:"SecurityProtectionTypes"` + PublicIpCidrBlockList []PublicIpCidrBlock `json:"PublicIpCidrBlockList" xml:"PublicIpCidrBlockList"` + Tags []Tag `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_qos_list.go b/services/vpc/struct_qos_list.go new file mode 100644 index 0000000000..4a507f2842 --- /dev/null +++ b/services/vpc/struct_qos_list.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. + +// QosList is a nested struct in vpc response +type QosList struct { + QosListItem []QosListItem `json:"qosList" xml:"qosList"` +} diff --git a/services/vpc/struct_qos_list_item.go b/services/vpc/struct_qos_list_item.go new file mode 100644 index 0000000000..fd14208114 --- /dev/null +++ b/services/vpc/struct_qos_list_item.go @@ -0,0 +1,27 @@ +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. + +// QosListItem is a nested struct in vpc response +type QosListItem struct { + QosId string `json:"QosId" xml:"QosId"` + QosName string `json:"QosName" xml:"QosName"` + QosDescription string `json:"QosDescription" xml:"QosDescription"` + Status string `json:"Status" xml:"Status"` + Progressing int `json:"Progressing" xml:"Progressing"` + AssociatedInstanceList []AssociatedInstanceListItem `json:"AssociatedInstanceList" xml:"AssociatedInstanceList"` + QueueList []QueueListItem `json:"QueueList" xml:"QueueList"` +} diff --git a/services/vpc/struct_queue_list_in_describe_express_connect_traffic_qos.go b/services/vpc/struct_queue_list_in_describe_express_connect_traffic_qos.go new file mode 100644 index 0000000000..2892a97ed9 --- /dev/null +++ b/services/vpc/struct_queue_list_in_describe_express_connect_traffic_qos.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. + +// QueueListInDescribeExpressConnectTrafficQos is a nested struct in vpc response +type QueueListInDescribeExpressConnectTrafficQos struct { + QueueListItem []QueueListItem `json:"queueList" xml:"queueList"` +} diff --git a/services/vpc/struct_queue_list_in_describe_express_connect_traffic_qos_queue.go b/services/vpc/struct_queue_list_in_describe_express_connect_traffic_qos_queue.go new file mode 100644 index 0000000000..ccf9919e12 --- /dev/null +++ b/services/vpc/struct_queue_list_in_describe_express_connect_traffic_qos_queue.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. + +// QueueListInDescribeExpressConnectTrafficQosQueue is a nested struct in vpc response +type QueueListInDescribeExpressConnectTrafficQosQueue struct { + QueueListItem []QueueListItem `json:"queueList" xml:"queueList"` +} diff --git a/services/vpc/struct_queue_list_item.go b/services/vpc/struct_queue_list_item.go new file mode 100644 index 0000000000..d6a587e860 --- /dev/null +++ b/services/vpc/struct_queue_list_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. + +// QueueListItem is a nested struct in vpc response +type QueueListItem struct { + QueueName string `json:"QueueName" xml:"QueueName"` + QueueDescription string `json:"QueueDescription" xml:"QueueDescription"` + QosId string `json:"QosId" xml:"QosId"` + QueueId string `json:"QueueId" xml:"QueueId"` + QueueType string `json:"QueueType" xml:"QueueType"` + BandwidthPercent string `json:"BandwidthPercent" xml:"BandwidthPercent"` + Status string `json:"Status" xml:"Status"` + RuleList []RuleListItem `json:"RuleList" xml:"RuleList"` +} diff --git a/services/vpc/struct_resource_id_in_describe_failover_test_job.go b/services/vpc/struct_resource_id_in_describe_failover_test_job.go new file mode 100644 index 0000000000..6f5312c431 --- /dev/null +++ b/services/vpc/struct_resource_id_in_describe_failover_test_job.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. + +// ResourceIdInDescribeFailoverTestJob is a nested struct in vpc response +type ResourceIdInDescribeFailoverTestJob struct { + ResourceId []string `json:"ResourceId" xml:"ResourceId"` +} diff --git a/services/vpc/struct_resource_id_in_describe_failover_test_jobs.go b/services/vpc/struct_resource_id_in_describe_failover_test_jobs.go new file mode 100644 index 0000000000..2e636ff603 --- /dev/null +++ b/services/vpc/struct_resource_id_in_describe_failover_test_jobs.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. + +// ResourceIdInDescribeFailoverTestJobs is a nested struct in vpc response +type ResourceIdInDescribeFailoverTestJobs struct { + ResourceId []string `json:"ResourceId" xml:"ResourceId"` +} diff --git a/services/vpc/struct_route_entries.go b/services/vpc/struct_route_entries.go new file mode 100644 index 0000000000..63c3496cd0 --- /dev/null +++ b/services/vpc/struct_route_entries.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. + +// RouteEntries is a nested struct in vpc response +type RouteEntries struct { + RouteEntry []RouteEntryInListVpcPublishedRouteEntries `json:"RouteEntry" xml:"RouteEntry"` +} diff --git a/services/vpc/struct_route_entry.go b/services/vpc/struct_route_entry.go index e11da3dfb3..4f0780f613 100644 --- a/services/vpc/struct_route_entry.go +++ b/services/vpc/struct_route_entry.go @@ -25,6 +25,7 @@ type RouteEntry struct { RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` RouteEntryName string `json:"RouteEntryName" xml:"RouteEntryName"` InstanceId string `json:"InstanceId" xml:"InstanceId"` + Origin string `json:"Origin" xml:"Origin"` RouteEntryId string `json:"RouteEntryId" xml:"RouteEntryId"` Status string `json:"Status" xml:"Status"` DestinationCidrBlock string `json:"DestinationCidrBlock" xml:"DestinationCidrBlock"` @@ -35,4 +36,5 @@ type RouteEntry struct { NextHopOppsiteRegionId string `json:"NextHopOppsiteRegionId" xml:"NextHopOppsiteRegionId"` Type string `json:"Type" xml:"Type"` NextHops NextHopsInDescribeRouteTables `json:"NextHops" xml:"NextHops"` + RoutePublishTargets []RoutePublishTarget `json:"RoutePublishTargets" xml:"RoutePublishTargets"` } diff --git a/services/vpc/struct_route_entry_in_list_vpc_published_route_entries.go b/services/vpc/struct_route_entry_in_list_vpc_published_route_entries.go new file mode 100644 index 0000000000..993d636c24 --- /dev/null +++ b/services/vpc/struct_route_entry_in_list_vpc_published_route_entries.go @@ -0,0 +1,24 @@ +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. + +// RouteEntryInListVpcPublishedRouteEntries is a nested struct in vpc response +type RouteEntryInListVpcPublishedRouteEntries struct { + RouteEntryId string `json:"RouteEntryId" xml:"RouteEntryId"` + DestinationCidrBlock string `json:"DestinationCidrBlock" xml:"DestinationCidrBlock"` + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + RoutePublishTargets []RoutePublishTarget `json:"RoutePublishTargets" xml:"RoutePublishTargets"` +} diff --git a/services/vpc/struct_route_publish_target.go b/services/vpc/struct_route_publish_target.go new file mode 100644 index 0000000000..2d0e169a1b --- /dev/null +++ b/services/vpc/struct_route_publish_target.go @@ -0,0 +1,23 @@ +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. + +// RoutePublishTarget is a nested struct in vpc response +type RoutePublishTarget struct { + PublishStatus string `json:"PublishStatus" xml:"PublishStatus"` + PublishTargetType string `json:"PublishTargetType" xml:"PublishTargetType"` + PublishTargetInstanceId string `json:"PublishTargetInstanceId" xml:"PublishTargetInstanceId"` +} diff --git a/services/vpc/struct_route_publish_targets.go b/services/vpc/struct_route_publish_targets.go new file mode 100644 index 0000000000..48f22b7c52 --- /dev/null +++ b/services/vpc/struct_route_publish_targets.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. + +// RoutePublishTargets is a nested struct in vpc response +type RoutePublishTargets struct { + RoutePublishTarget []RoutePublishTarget `json:"RoutePublishTarget" xml:"RoutePublishTarget"` +} diff --git a/services/vpc/struct_router_table_list_type.go b/services/vpc/struct_router_table_list_type.go index e02c27f49a..c5460fd611 100644 --- a/services/vpc/struct_router_table_list_type.go +++ b/services/vpc/struct_router_table_list_type.go @@ -17,19 +17,20 @@ package vpc // RouterTableListType is a nested struct in vpc response type RouterTableListType struct { - VpcId string `json:"VpcId" xml:"VpcId"` - 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"` - OwnerId int64 `json:"OwnerId" xml:"OwnerId"` - Description string `json:"Description" xml:"Description"` - RouteTableType string `json:"RouteTableType" xml:"RouteTableType"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - 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"` + VpcId string `json:"VpcId" xml:"VpcId"` + 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"` + OwnerId int64 `json:"OwnerId" xml:"OwnerId"` + Description string `json:"Description" xml:"Description"` + RouteTableType string `json:"RouteTableType" xml:"RouteTableType"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + RouterType string `json:"RouterType" xml:"RouterType"` + RouteTableName string `json:"RouteTableName" xml:"RouteTableName"` + RoutePropagationEnable bool `json:"RoutePropagationEnable" xml:"RoutePropagationEnable"` + VSwitchIds VSwitchIdsInDescribeRouteTableList `json:"VSwitchIds" xml:"VSwitchIds"` + GatewayIds GatewayIds `json:"GatewayIds" xml:"GatewayIds"` + Tags TagsInDescribeRouteTableList `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_rule_list_in_describe_express_connect_traffic_qos_queue.go b/services/vpc/struct_rule_list_in_describe_express_connect_traffic_qos_queue.go new file mode 100644 index 0000000000..58efa9a208 --- /dev/null +++ b/services/vpc/struct_rule_list_in_describe_express_connect_traffic_qos_queue.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. + +// RuleListInDescribeExpressConnectTrafficQosQueue is a nested struct in vpc response +type RuleListInDescribeExpressConnectTrafficQosQueue struct { + RuleListItem []RuleListItem `json:"ruleList" xml:"ruleList"` +} diff --git a/services/vpc/struct_rule_list_in_describe_express_connect_traffic_qos_rule.go b/services/vpc/struct_rule_list_in_describe_express_connect_traffic_qos_rule.go new file mode 100644 index 0000000000..4cb6a65f4b --- /dev/null +++ b/services/vpc/struct_rule_list_in_describe_express_connect_traffic_qos_rule.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. + +// RuleListInDescribeExpressConnectTrafficQosRule is a nested struct in vpc response +type RuleListInDescribeExpressConnectTrafficQosRule struct { + RuleListItem []RuleListItem `json:"ruleList" xml:"ruleList"` +} diff --git a/services/vpc/struct_rule_list_item.go b/services/vpc/struct_rule_list_item.go new file mode 100644 index 0000000000..79f8eeeac0 --- /dev/null +++ b/services/vpc/struct_rule_list_item.go @@ -0,0 +1,36 @@ +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. + +// RuleListItem is a nested struct in vpc response +type RuleListItem struct { + Priority int `json:"Priority" xml:"Priority"` + Protocol string `json:"Protocol" xml:"Protocol"` + SrcPortRange string `json:"SrcPortRange" xml:"SrcPortRange"` + RuleName string `json:"RuleName" xml:"RuleName"` + SrcIPv6Cidr string `json:"SrcIPv6Cidr" xml:"SrcIPv6Cidr"` + MatchDscp int `json:"MatchDscp" xml:"MatchDscp"` + RemarkingDscp int `json:"RemarkingDscp" xml:"RemarkingDscp"` + SrcCidr string `json:"SrcCidr" xml:"SrcCidr"` + RuleId string `json:"RuleId" xml:"RuleId"` + DstCidr string `json:"DstCidr" xml:"DstCidr"` + QosId string `json:"QosId" xml:"QosId"` + RuleDescription string `json:"RuleDescription" xml:"RuleDescription"` + QueueId string `json:"QueueId" xml:"QueueId"` + DstIPv6Cidr string `json:"DstIPv6Cidr" xml:"DstIPv6Cidr"` + DstPortRange string `json:"DstPortRange" xml:"DstPortRange"` + Status string `json:"Status" xml:"Status"` +} diff --git a/services/vpc/struct_security_protection_types_in_list_public_ip_address_pools.go b/services/vpc/struct_security_protection_types_in_list_public_ip_address_pools.go new file mode 100644 index 0000000000..05750850f3 --- /dev/null +++ b/services/vpc/struct_security_protection_types_in_list_public_ip_address_pools.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. + +// SecurityProtectionTypesInListPublicIpAddressPools is a nested struct in vpc response +type SecurityProtectionTypesInListPublicIpAddressPools struct { + SecurityProtectionType []string `json:"SecurityProtectionType" xml:"SecurityProtectionType"` +} diff --git a/services/vpc/struct_snat_table_entry.go b/services/vpc/struct_snat_table_entry.go index fd3ce6e0e3..cacf4b9ee7 100644 --- a/services/vpc/struct_snat_table_entry.go +++ b/services/vpc/struct_snat_table_entry.go @@ -17,11 +17,14 @@ package vpc // SnatTableEntry is a nested struct in vpc response type SnatTableEntry struct { - 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"` + 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"` + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` + EipAffinity string `json:"EipAffinity" xml:"EipAffinity"` + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` } diff --git a/services/vpc/struct_ssl_vpn_client_cert_key.go b/services/vpc/struct_ssl_vpn_client_cert_key.go index fa8e6ab808..237eaddcf4 100644 --- a/services/vpc/struct_ssl_vpn_client_cert_key.go +++ b/services/vpc/struct_ssl_vpn_client_cert_key.go @@ -24,4 +24,5 @@ type SslVpnClientCertKey struct { SslVpnServerId string `json:"SslVpnServerId" xml:"SslVpnServerId"` Name string `json:"Name" xml:"Name"` RegionId string `json:"RegionId" xml:"RegionId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` } diff --git a/services/vpc/struct_ssl_vpn_server.go b/services/vpc/struct_ssl_vpn_server.go index a8d0558d9f..95871d016c 100644 --- a/services/vpc/struct_ssl_vpn_server.go +++ b/services/vpc/struct_ssl_vpn_server.go @@ -34,4 +34,7 @@ type SslVpnServer struct { EnableMultiFactorAuth bool `json:"EnableMultiFactorAuth" xml:"EnableMultiFactorAuth"` ClientIpPool string `json:"ClientIpPool" xml:"ClientIpPool"` Proto string `json:"Proto" xml:"Proto"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + IDaaSApplicationId string `json:"IDaaSApplicationId" xml:"IDaaSApplicationId"` + IDaaSInstanceVersion string `json:"IDaaSInstanceVersion" xml:"IDaaSInstanceVersion"` } diff --git a/services/vpc/struct_tags_in_describe_ipv6_addresses.go b/services/vpc/struct_tags_in_describe_ipv6_addresses.go new file mode 100644 index 0000000000..fa21619f01 --- /dev/null +++ b/services/vpc/struct_tags_in_describe_ipv6_addresses.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. + +// TagsInDescribeIpv6Addresses is a nested struct in vpc response +type TagsInDescribeIpv6Addresses struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/services/vpc/struct_tags_in_describe_physical_connections.go b/services/vpc/struct_tags_in_describe_physical_connections.go new file mode 100644 index 0000000000..d8b208e40e --- /dev/null +++ b/services/vpc/struct_tags_in_describe_physical_connections.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. + +// TagsInDescribePhysicalConnections is a nested struct in vpc response +type TagsInDescribePhysicalConnections struct { + TagsItem []TagsItem `json:"tags" xml:"tags"` +} diff --git a/services/vpc/struct_tags_in_list_v_switch_cidr_reservations.go b/services/vpc/struct_tags_in_list_v_switch_cidr_reservations.go new file mode 100644 index 0000000000..a5005b95d1 --- /dev/null +++ b/services/vpc/struct_tags_in_list_v_switch_cidr_reservations.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. + +// TagsInListVSwitchCidrReservations is a nested struct in vpc response +type TagsInListVSwitchCidrReservations struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/services/vpc/struct_tags_in_list_virtual_physical_connections.go b/services/vpc/struct_tags_in_list_virtual_physical_connections.go new file mode 100644 index 0000000000..37a995fce5 --- /dev/null +++ b/services/vpc/struct_tags_in_list_virtual_physical_connections.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. + +// TagsInListVirtualPhysicalConnections is a nested struct in vpc response +type TagsInListVirtualPhysicalConnections struct { + TagsItem []TagsItem `json:"tags" xml:"tags"` +} diff --git a/services/vpc/struct_traffic95_detail.go b/services/vpc/struct_traffic95_detail.go new file mode 100644 index 0000000000..9990f9eab6 --- /dev/null +++ b/services/vpc/struct_traffic95_detail.go @@ -0,0 +1,24 @@ +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. + +// Traffic95Detail is a nested struct in vpc response +type Traffic95Detail struct { + Time string `json:"Time" xml:"Time"` + BillBandwidth string `json:"BillBandwidth" xml:"BillBandwidth"` + OutBandwidth string `json:"OutBandwidth" xml:"OutBandwidth"` + InBandwidth string `json:"InBandwidth" xml:"InBandwidth"` +} diff --git a/services/vpc/struct_traffic95_detail_list.go b/services/vpc/struct_traffic95_detail_list.go new file mode 100644 index 0000000000..2390006ee7 --- /dev/null +++ b/services/vpc/struct_traffic95_detail_list.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. + +// Traffic95DetailList is a nested struct in vpc response +type Traffic95DetailList struct { + Traffic95Detail []Traffic95Detail `json:"Traffic95Detail" xml:"Traffic95Detail"` +} diff --git a/services/vpc/struct_traffic95_summary.go b/services/vpc/struct_traffic95_summary.go new file mode 100644 index 0000000000..5abcc6c24e --- /dev/null +++ b/services/vpc/struct_traffic95_summary.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. + +// Traffic95Summary is a nested struct in vpc response +type Traffic95Summary struct { + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Bandwidth int64 `json:"Bandwidth" xml:"Bandwidth"` + FifthPeakBandwidth string `json:"FifthPeakBandwidth" xml:"FifthPeakBandwidth"` + MinimumConsumeBandwidth string `json:"MinimumConsumeBandwidth" xml:"MinimumConsumeBandwidth"` + Traffic95DetailList Traffic95DetailList `json:"Traffic95DetailList" xml:"Traffic95DetailList"` +} diff --git a/services/vpc/struct_traffic_mirror_filter.go b/services/vpc/struct_traffic_mirror_filter.go index 79118899db..692d3f50af 100644 --- a/services/vpc/struct_traffic_mirror_filter.go +++ b/services/vpc/struct_traffic_mirror_filter.go @@ -22,6 +22,7 @@ type TrafficMirrorFilter struct { TrafficMirrorFilterId string `json:"TrafficMirrorFilterId" xml:"TrafficMirrorFilterId"` TrafficMirrorFilterName string `json:"TrafficMirrorFilterName" xml:"TrafficMirrorFilterName"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` IngressRules []TrafficMirrorRule `json:"IngressRules" xml:"IngressRules"` EgressRules []TrafficMirrorRule `json:"EgressRules" xml:"EgressRules"` Tags []Tag `json:"Tags" xml:"Tags"` diff --git a/services/vpc/struct_traffic_mirror_session.go b/services/vpc/struct_traffic_mirror_session.go index 3df0176d78..0e2e3fcc66 100644 --- a/services/vpc/struct_traffic_mirror_session.go +++ b/services/vpc/struct_traffic_mirror_session.go @@ -30,6 +30,7 @@ type TrafficMirrorSession struct { TrafficMirrorFilterId string `json:"TrafficMirrorFilterId" xml:"TrafficMirrorFilterId"` TrafficMirrorSessionName string `json:"TrafficMirrorSessionName" xml:"TrafficMirrorSessionName"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` TrafficMirrorSourceIds []string `json:"TrafficMirrorSourceIds" xml:"TrafficMirrorSourceIds"` Tags []Tag `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_tunnel_bgp_config.go b/services/vpc/struct_tunnel_bgp_config.go index 9b3744df57..a907aa21a2 100644 --- a/services/vpc/struct_tunnel_bgp_config.go +++ b/services/vpc/struct_tunnel_bgp_config.go @@ -19,7 +19,6 @@ package vpc type TunnelBgpConfig struct { PeerAsn string `json:"PeerAsn" xml:"PeerAsn"` BgpStatus string `json:"BgpStatus" xml:"BgpStatus"` - EnableBgp string `json:"EnableBgp" xml:"EnableBgp"` TunnelCidr string `json:"TunnelCidr" xml:"TunnelCidr"` LocalAsn string `json:"LocalAsn" xml:"LocalAsn"` LocalBgpIp string `json:"LocalBgpIp" xml:"LocalBgpIp"` diff --git a/services/vpc/struct_tunnel_bgp_config_in_modify_tunnel_attribute.go b/services/vpc/struct_tunnel_bgp_config_in_modify_tunnel_attribute.go new file mode 100644 index 0000000000..7fe7bb1555 --- /dev/null +++ b/services/vpc/struct_tunnel_bgp_config_in_modify_tunnel_attribute.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. + +// TunnelBgpConfigInModifyTunnelAttribute is a nested struct in vpc response +type TunnelBgpConfigInModifyTunnelAttribute struct { + EnableBgp bool `json:"EnableBgp" xml:"EnableBgp"` + LocalAsn int64 `json:"LocalAsn" xml:"LocalAsn"` + LocalBgpIp string `json:"LocalBgpIp" xml:"LocalBgpIp"` + PeerAsn int64 `json:"PeerAsn" xml:"PeerAsn"` + PeerBgpIp string `json:"PeerBgpIp" xml:"PeerBgpIp"` + TunnelCidr string `json:"TunnelCidr" xml:"TunnelCidr"` +} diff --git a/services/vpc/struct_tunnel_bgp_config_in_modify_vpn_attachment_attribute.go b/services/vpc/struct_tunnel_bgp_config_in_modify_vpn_attachment_attribute.go new file mode 100644 index 0000000000..3974a5b6ea --- /dev/null +++ b/services/vpc/struct_tunnel_bgp_config_in_modify_vpn_attachment_attribute.go @@ -0,0 +1,25 @@ +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. + +// TunnelBgpConfigInModifyVpnAttachmentAttribute is a nested struct in vpc response +type TunnelBgpConfigInModifyVpnAttachmentAttribute struct { + LocalAsn int64 `json:"LocalAsn" xml:"LocalAsn"` + LocalBgpIp string `json:"LocalBgpIp" xml:"LocalBgpIp"` + PeerAsn int64 `json:"PeerAsn" xml:"PeerAsn"` + PeerBgpIp string `json:"PeerBgpIp" xml:"PeerBgpIp"` + TunnelCidr string `json:"TunnelCidr" xml:"TunnelCidr"` +} diff --git a/services/vpc/struct_tunnel_bgp_config_in_modify_vpn_connection_attribute.go b/services/vpc/struct_tunnel_bgp_config_in_modify_vpn_connection_attribute.go index 9cefa976e4..30d68f7b89 100644 --- a/services/vpc/struct_tunnel_bgp_config_in_modify_vpn_connection_attribute.go +++ b/services/vpc/struct_tunnel_bgp_config_in_modify_vpn_connection_attribute.go @@ -17,8 +17,6 @@ package vpc // TunnelBgpConfigInModifyVpnConnectionAttribute is a nested struct in vpc response type TunnelBgpConfigInModifyVpnConnectionAttribute struct { - BgpStatus string `json:"BgpStatus" xml:"BgpStatus"` - EnableBgp bool `json:"EnableBgp" xml:"EnableBgp"` LocalAsn int64 `json:"LocalAsn" xml:"LocalAsn"` LocalBgpIp string `json:"LocalBgpIp" xml:"LocalBgpIp"` PeerAsn int64 `json:"PeerAsn" xml:"PeerAsn"` diff --git a/services/vpc/struct_tunnel_config.go b/services/vpc/struct_tunnel_config.go index 4ceac32fc0..8afa94a620 100644 --- a/services/vpc/struct_tunnel_config.go +++ b/services/vpc/struct_tunnel_config.go @@ -20,7 +20,6 @@ type TunnelConfig struct { TunnelId string `json:"TunnelId" xml:"TunnelId"` Local string `json:"Local" xml:"Local"` Remote string `json:"Remote" xml:"Remote"` - RightCaCert string `json:"RightCaCert" xml:"RightCaCert"` IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` } diff --git a/services/vpc/struct_tunnel_ike_config_in_modify_tunnel_attribute.go b/services/vpc/struct_tunnel_ike_config_in_modify_tunnel_attribute.go new file mode 100644 index 0000000000..0fc560f9e4 --- /dev/null +++ b/services/vpc/struct_tunnel_ike_config_in_modify_tunnel_attribute.go @@ -0,0 +1,29 @@ +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. + +// TunnelIkeConfigInModifyTunnelAttribute is a nested struct in vpc response +type TunnelIkeConfigInModifyTunnelAttribute struct { + IkeAuthAlg string `json:"IkeAuthAlg" xml:"IkeAuthAlg"` + IkeEncAlg string `json:"IkeEncAlg" xml:"IkeEncAlg"` + IkeLifetime int64 `json:"IkeLifetime" xml:"IkeLifetime"` + IkeMode string `json:"IkeMode" xml:"IkeMode"` + IkePfs string `json:"IkePfs" xml:"IkePfs"` + IkeVersion string `json:"IkeVersion" xml:"IkeVersion"` + LocalId string `json:"LocalId" xml:"LocalId"` + Psk string `json:"Psk" xml:"Psk"` + RemoteId string `json:"RemoteId" xml:"RemoteId"` +} diff --git a/services/vpc/struct_tunnel_ike_config_in_modify_vpn_attachment_attribute.go b/services/vpc/struct_tunnel_ike_config_in_modify_vpn_attachment_attribute.go new file mode 100644 index 0000000000..ca057d2f58 --- /dev/null +++ b/services/vpc/struct_tunnel_ike_config_in_modify_vpn_attachment_attribute.go @@ -0,0 +1,29 @@ +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. + +// TunnelIkeConfigInModifyVpnAttachmentAttribute is a nested struct in vpc response +type TunnelIkeConfigInModifyVpnAttachmentAttribute struct { + IkeAuthAlg string `json:"IkeAuthAlg" xml:"IkeAuthAlg"` + IkeEncAlg string `json:"IkeEncAlg" xml:"IkeEncAlg"` + IkeLifetime int64 `json:"IkeLifetime" xml:"IkeLifetime"` + IkeMode string `json:"IkeMode" xml:"IkeMode"` + IkePfs string `json:"IkePfs" xml:"IkePfs"` + IkeVersion string `json:"IkeVersion" xml:"IkeVersion"` + LocalId string `json:"LocalId" xml:"LocalId"` + Psk string `json:"Psk" xml:"Psk"` + RemoteId string `json:"RemoteId" xml:"RemoteId"` +} diff --git a/services/vpc/struct_tunnel_ipsec_config_in_modify_tunnel_attribute.go b/services/vpc/struct_tunnel_ipsec_config_in_modify_tunnel_attribute.go new file mode 100644 index 0000000000..882a631bf3 --- /dev/null +++ b/services/vpc/struct_tunnel_ipsec_config_in_modify_tunnel_attribute.go @@ -0,0 +1,24 @@ +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. + +// TunnelIpsecConfigInModifyTunnelAttribute is a nested struct in vpc response +type TunnelIpsecConfigInModifyTunnelAttribute struct { + IpsecAuthAlg string `json:"IpsecAuthAlg" xml:"IpsecAuthAlg"` + IpsecEncAlg string `json:"IpsecEncAlg" xml:"IpsecEncAlg"` + IpsecLifetime int64 `json:"IpsecLifetime" xml:"IpsecLifetime"` + IpsecPfs string `json:"IpsecPfs" xml:"IpsecPfs"` +} diff --git a/services/vpc/struct_tunnel_ipsec_config_in_modify_vpn_attachment_attribute.go b/services/vpc/struct_tunnel_ipsec_config_in_modify_vpn_attachment_attribute.go new file mode 100644 index 0000000000..b3e810ea33 --- /dev/null +++ b/services/vpc/struct_tunnel_ipsec_config_in_modify_vpn_attachment_attribute.go @@ -0,0 +1,24 @@ +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. + +// TunnelIpsecConfigInModifyVpnAttachmentAttribute is a nested struct in vpc response +type TunnelIpsecConfigInModifyVpnAttachmentAttribute struct { + IpsecAuthAlg string `json:"IpsecAuthAlg" xml:"IpsecAuthAlg"` + IpsecEncAlg string `json:"IpsecEncAlg" xml:"IpsecEncAlg"` + IpsecLifetime int64 `json:"IpsecLifetime" xml:"IpsecLifetime"` + IpsecPfs string `json:"IpsecPfs" xml:"IpsecPfs"` +} diff --git a/services/vpc/struct_tunnel_options.go b/services/vpc/struct_tunnel_options.go index a306c8a052..55ca547bab 100644 --- a/services/vpc/struct_tunnel_options.go +++ b/services/vpc/struct_tunnel_options.go @@ -21,6 +21,7 @@ type TunnelOptions struct { InternetIp string `json:"InternetIp" xml:"InternetIp"` EnableNatTraversal string `json:"EnableNatTraversal" xml:"EnableNatTraversal"` RemoteCaCertificate string `json:"RemoteCaCertificate" xml:"RemoteCaCertificate"` + TunnelIndex int `json:"TunnelIndex" xml:"TunnelIndex"` ZoneNo string `json:"ZoneNo" xml:"ZoneNo"` State string `json:"State" xml:"State"` CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` diff --git a/services/vpc/struct_tunnel_options_in_modify_vpn_attachment_attribute.go b/services/vpc/struct_tunnel_options_in_modify_vpn_attachment_attribute.go new file mode 100644 index 0000000000..143e698fd9 --- /dev/null +++ b/services/vpc/struct_tunnel_options_in_modify_vpn_attachment_attribute.go @@ -0,0 +1,32 @@ +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. + +// TunnelOptionsInModifyVpnAttachmentAttribute is a nested struct in vpc response +type TunnelOptionsInModifyVpnAttachmentAttribute struct { + CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` + EnableDpd bool `json:"EnableDpd" xml:"EnableDpd"` + EnableNatTraversal bool `json:"EnableNatTraversal" xml:"EnableNatTraversal"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` + RemoteCaCertificate string `json:"RemoteCaCertificate" xml:"RemoteCaCertificate"` + Role string `json:"Role" xml:"Role"` + TunnelId string `json:"TunnelId" xml:"TunnelId"` + TunnelIndex int `json:"TunnelIndex" xml:"TunnelIndex"` + State string `json:"State" xml:"State"` + TunnelBgpConfig TunnelBgpConfigInModifyVpnAttachmentAttribute `json:"TunnelBgpConfig" xml:"TunnelBgpConfig"` + TunnelIkeConfig TunnelIkeConfigInModifyVpnAttachmentAttribute `json:"TunnelIkeConfig" xml:"TunnelIkeConfig"` + TunnelIpsecConfig TunnelIpsecConfigInModifyVpnAttachmentAttribute `json:"TunnelIpsecConfig" xml:"TunnelIpsecConfig"` +} diff --git a/services/vpc/struct_tunnel_options_in_modify_vpn_connection_attribute.go b/services/vpc/struct_tunnel_options_in_modify_vpn_connection_attribute.go index c5e9699b02..ddd77c1101 100644 --- a/services/vpc/struct_tunnel_options_in_modify_vpn_connection_attribute.go +++ b/services/vpc/struct_tunnel_options_in_modify_vpn_connection_attribute.go @@ -24,7 +24,6 @@ type TunnelOptionsInModifyVpnConnectionAttribute struct { RemoteCaCertificate string `json:"RemoteCaCertificate" xml:"RemoteCaCertificate"` Role string `json:"Role" xml:"Role"` State string `json:"State" xml:"State"` - Status string `json:"Status" xml:"Status"` TunnelId string `json:"TunnelId" xml:"TunnelId"` ZoneNo string `json:"ZoneNo" xml:"ZoneNo"` TunnelBgpConfig TunnelBgpConfigInModifyVpnConnectionAttribute `json:"TunnelBgpConfig" xml:"TunnelBgpConfig"` diff --git a/services/vpc/struct_tunnel_options_specification_in_modify_vpn_attachment_attribute.go b/services/vpc/struct_tunnel_options_specification_in_modify_vpn_attachment_attribute.go new file mode 100644 index 0000000000..4b05c5612b --- /dev/null +++ b/services/vpc/struct_tunnel_options_specification_in_modify_vpn_attachment_attribute.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. + +// TunnelOptionsSpecificationInModifyVpnAttachmentAttribute is a nested struct in vpc response +type TunnelOptionsSpecificationInModifyVpnAttachmentAttribute struct { + TunnelOptions []TunnelOptionsInModifyVpnAttachmentAttribute `json:"TunnelOptions" xml:"TunnelOptions"` +} diff --git a/services/vpc/struct_v_switch_cidr_reservation.go b/services/vpc/struct_v_switch_cidr_reservation.go new file mode 100644 index 0000000000..bb491c564b --- /dev/null +++ b/services/vpc/struct_v_switch_cidr_reservation.go @@ -0,0 +1,33 @@ +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. + +// VSwitchCidrReservation is a nested struct in vpc response +type VSwitchCidrReservation struct { + VpcId string `json:"VpcId" xml:"VpcId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + VSwitchCidrReservationId string `json:"VSwitchCidrReservationId" xml:"VSwitchCidrReservationId"` + VSwitchCidrReservationCidr string `json:"VSwitchCidrReservationCidr" xml:"VSwitchCidrReservationCidr"` + VSwitchCidrReservationName string `json:"VSwitchCidrReservationName" xml:"VSwitchCidrReservationName"` + VSwitchCidrReservationDescription string `json:"VSwitchCidrReservationDescription" xml:"VSwitchCidrReservationDescription"` + IpVersion string `json:"IpVersion" xml:"IpVersion"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Type string `json:"Type" xml:"Type"` + AvailableCidrCount int `json:"AvailableCidrCount" xml:"AvailableCidrCount"` + AssignedCidrCount int `json:"AssignedCidrCount" xml:"AssignedCidrCount"` + Status string `json:"Status" xml:"Status"` + Tags []Tag `json:"Tags" xml:"Tags"` +} diff --git a/services/vpc/struct_v_switch_cidr_reservation_usage.go b/services/vpc/struct_v_switch_cidr_reservation_usage.go new file mode 100644 index 0000000000..01f776d4a4 --- /dev/null +++ b/services/vpc/struct_v_switch_cidr_reservation_usage.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. + +// VSwitchCidrReservationUsage is a nested struct in vpc response +type VSwitchCidrReservationUsage struct { + VSwitchCidrReservationId string `json:"VSwitchCidrReservationId" xml:"VSwitchCidrReservationId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + IpPrefixId string `json:"IpPrefixId" xml:"IpPrefixId"` + IpPrefixCidr string `json:"IpPrefixCidr" xml:"IpPrefixCidr"` +} diff --git a/services/vpc/struct_v_switch_cidr_reservations.go b/services/vpc/struct_v_switch_cidr_reservations.go new file mode 100644 index 0000000000..3f7b396b90 --- /dev/null +++ b/services/vpc/struct_v_switch_cidr_reservations.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. + +// VSwitchCidrReservations is a nested struct in vpc response +type VSwitchCidrReservations struct { + VSwitchCidrReservation []VSwitchCidrReservation `json:"VSwitchCidrReservation" xml:"VSwitchCidrReservation"` +} diff --git a/services/vpc/struct_vco_route_entrie.go b/services/vpc/struct_vco_route_entrie.go index 3959caf509..15ebb7da32 100644 --- a/services/vpc/struct_vco_route_entrie.go +++ b/services/vpc/struct_vco_route_entrie.go @@ -17,14 +17,15 @@ package vpc // VcoRouteEntrie is a nested struct in vpc response type VcoRouteEntrie struct { - VpnConnectionId string `json:"VpnConnectionId" xml:"VpnConnectionId"` - RouteDest string `json:"RouteDest" xml:"RouteDest"` - NextHop string `json:"NextHop" xml:"NextHop"` - Weight int `json:"Weight" xml:"Weight"` - State string `json:"State" xml:"State"` - RouteEntryType string `json:"RouteEntryType" xml:"RouteEntryType"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` - AsPath string `json:"AsPath" xml:"AsPath"` - Community string `json:"Community" xml:"Community"` - Source string `json:"Source" xml:"Source"` + VpnConnectionId string `json:"VpnConnectionId" xml:"VpnConnectionId"` + RouteDest string `json:"RouteDest" xml:"RouteDest"` + NextHop string `json:"NextHop" xml:"NextHop"` + Weight int `json:"Weight" xml:"Weight"` + State string `json:"State" xml:"State"` + RouteEntryType string `json:"RouteEntryType" xml:"RouteEntryType"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + AsPath string `json:"AsPath" xml:"AsPath"` + Community string `json:"Community" xml:"Community"` + Source string `json:"Source" xml:"Source"` + NextHopTunnelIdList []string `json:"NextHopTunnelIdList" xml:"NextHopTunnelIdList"` } diff --git a/services/vpc/struct_virtual_border_router_type.go b/services/vpc/struct_virtual_border_router_type.go index b2007e90eb..27f339d6d3 100644 --- a/services/vpc/struct_virtual_border_router_type.go +++ b/services/vpc/struct_virtual_border_router_type.go @@ -51,6 +51,10 @@ type VirtualBorderRouterType struct { PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + EcrId string `json:"EcrId" xml:"EcrId"` + SitelinkEnable bool `json:"SitelinkEnable" xml:"SitelinkEnable"` + EcrAttatchStatus string `json:"EcrAttatchStatus" xml:"EcrAttatchStatus"` + EcrOwnerId string `json:"EcrOwnerId" xml:"EcrOwnerId"` AssociatedPhysicalConnections AssociatedPhysicalConnections `json:"AssociatedPhysicalConnections" xml:"AssociatedPhysicalConnections"` AssociatedCens AssociatedCensInDescribeVirtualBorderRouters `json:"AssociatedCens" xml:"AssociatedCens"` Tags TagsInDescribeVirtualBorderRouters `json:"Tags" xml:"Tags"` diff --git a/services/vpc/struct_virtual_physical_connection.go b/services/vpc/struct_virtual_physical_connection.go index 5ebf0b6c4d..1e2523e603 100644 --- a/services/vpc/struct_virtual_physical_connection.go +++ b/services/vpc/struct_virtual_physical_connection.go @@ -17,34 +17,35 @@ package vpc // VirtualPhysicalConnection is a nested struct in vpc response type VirtualPhysicalConnection struct { - Type string `json:"Type" xml:"Type"` - Status string `json:"Status" xml:"Status"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - AdLocation string `json:"AdLocation" xml:"AdLocation"` - PortNumber string `json:"PortNumber" xml:"PortNumber"` - Spec string `json:"Spec" xml:"Spec"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - Description string `json:"Description" xml:"Description"` - Bandwidth int64 `json:"Bandwidth" xml:"Bandwidth"` - EnabledTime string `json:"EnabledTime" xml:"EnabledTime"` - LineOperator string `json:"LineOperator" xml:"LineOperator"` - PeerLocation string `json:"PeerLocation" xml:"PeerLocation"` - RedundantPhysicalConnectionId string `json:"RedundantPhysicalConnectionId" xml:"RedundantPhysicalConnectionId"` - Name string `json:"Name" xml:"Name"` - CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` - EndTime string `json:"EndTime" xml:"EndTime"` - PortType string `json:"PortType" xml:"PortType"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - LoaStatus string `json:"LoaStatus" xml:"LoaStatus"` - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` - PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` - ProductType string `json:"ProductType" xml:"ProductType"` - ParentPhysicalConnectionId string `json:"ParentPhysicalConnectionId" xml:"ParentPhysicalConnectionId"` - VirtualPhysicalConnectionStatus string `json:"VirtualPhysicalConnectionStatus" xml:"VirtualPhysicalConnectionStatus"` - ParentPhysicalConnectionAliUid string `json:"ParentPhysicalConnectionAliUid" xml:"ParentPhysicalConnectionAliUid"` - OrderMode string `json:"OrderMode" xml:"OrderMode"` - AliUid string `json:"AliUid" xml:"AliUid"` - VlanId string `json:"VlanId" xml:"VlanId"` - ExpectSpec string `json:"ExpectSpec" xml:"ExpectSpec"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Type string `json:"Type" xml:"Type"` + Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + AdLocation string `json:"AdLocation" xml:"AdLocation"` + PortNumber string `json:"PortNumber" xml:"PortNumber"` + Spec string `json:"Spec" xml:"Spec"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + Description string `json:"Description" xml:"Description"` + Bandwidth int64 `json:"Bandwidth" xml:"Bandwidth"` + EnabledTime string `json:"EnabledTime" xml:"EnabledTime"` + LineOperator string `json:"LineOperator" xml:"LineOperator"` + PeerLocation string `json:"PeerLocation" xml:"PeerLocation"` + RedundantPhysicalConnectionId string `json:"RedundantPhysicalConnectionId" xml:"RedundantPhysicalConnectionId"` + Name string `json:"Name" xml:"Name"` + CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` + EndTime string `json:"EndTime" xml:"EndTime"` + PortType string `json:"PortType" xml:"PortType"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + LoaStatus string `json:"LoaStatus" xml:"LoaStatus"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + ProductType string `json:"ProductType" xml:"ProductType"` + ParentPhysicalConnectionId string `json:"ParentPhysicalConnectionId" xml:"ParentPhysicalConnectionId"` + VirtualPhysicalConnectionStatus string `json:"VirtualPhysicalConnectionStatus" xml:"VirtualPhysicalConnectionStatus"` + ParentPhysicalConnectionAliUid string `json:"ParentPhysicalConnectionAliUid" xml:"ParentPhysicalConnectionAliUid"` + OrderMode string `json:"OrderMode" xml:"OrderMode"` + AliUid string `json:"AliUid" xml:"AliUid"` + VlanId string `json:"VlanId" xml:"VlanId"` + ExpectSpec string `json:"ExpectSpec" xml:"ExpectSpec"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Tags []TagsItem `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_vpc.go b/services/vpc/struct_vpc.go index 943a61107c..e47a121a0a 100644 --- a/services/vpc/struct_vpc.go +++ b/services/vpc/struct_vpc.go @@ -35,6 +35,8 @@ type Vpc struct { DhcpOptionsSetId string `json:"DhcpOptionsSetId" xml:"DhcpOptionsSetId"` Ipv6CidrBlock string `json:"Ipv6CidrBlock" xml:"Ipv6CidrBlock"` CenStatus string `json:"CenStatus" xml:"CenStatus"` + EnabledIpv6 bool `json:"EnabledIpv6" xml:"EnabledIpv6"` + DnsHostnameStatus string `json:"DnsHostnameStatus" xml:"DnsHostnameStatus"` VSwitchIds VSwitchIdsInDescribeVpcs `json:"VSwitchIds" xml:"VSwitchIds"` SecondaryCidrBlocks SecondaryCidrBlocksInDescribeVpcs `json:"SecondaryCidrBlocks" xml:"SecondaryCidrBlocks"` UserCidrs UserCidrsInDescribeVpcs `json:"UserCidrs" xml:"UserCidrs"` diff --git a/services/vpc/struct_vpn_attachment.go b/services/vpc/struct_vpn_attachment.go index 8286a5f764..8f9d0c7ea3 100644 --- a/services/vpc/struct_vpn_attachment.go +++ b/services/vpc/struct_vpn_attachment.go @@ -24,5 +24,6 @@ type VpnAttachment struct { TransitRouterId string `json:"TransitRouterId" xml:"TransitRouterId"` TransitRouterName string `json:"TransitRouterName" xml:"TransitRouterName"` CrossAccountAuthorized bool `json:"CrossAccountAuthorized" xml:"CrossAccountAuthorized"` + Tag string `json:"Tag" xml:"Tag"` Tags []Tag `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_vpn_connection.go b/services/vpc/struct_vpn_connection.go index ad2b0a6def..e83f5b3961 100644 --- a/services/vpc/struct_vpn_connection.go +++ b/services/vpc/struct_vpn_connection.go @@ -17,32 +17,41 @@ package vpc // VpnConnection is a nested struct in vpc response type VpnConnection struct { - Status string `json:"Status" xml:"Status"` - EnableNatTraversal bool `json:"EnableNatTraversal" xml:"EnableNatTraversal"` - RemoteCaCertificate string `json:"RemoteCaCertificate" xml:"RemoteCaCertificate"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` - EffectImmediately bool `json:"EffectImmediately" xml:"EffectImmediately"` - VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` - LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` - VpnConnectionId string `json:"VpnConnectionId" xml:"VpnConnectionId"` RemoteSubnet string `json:"RemoteSubnet" xml:"RemoteSubnet"` - CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` Name string `json:"Name" xml:"Name"` - EnableDpd bool `json:"EnableDpd" xml:"EnableDpd"` AttachType string `json:"AttachType" xml:"AttachType"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` + MismatchRemoteParam string `json:"MismatchRemoteParam" xml:"MismatchRemoteParam"` + FailedReasonCode string `json:"FailedReasonCode" xml:"FailedReasonCode"` + FailedReason string `json:"FailedReason" xml:"FailedReason"` + EnableNatTraversal bool `json:"EnableNatTraversal" xml:"EnableNatTraversal"` AttachInstanceId string `json:"AttachInstanceId" xml:"AttachInstanceId"` - Spec string `json:"Spec" xml:"Spec"` - State string `json:"State" xml:"State"` + LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` + MismatchLocalParam string `json:"MismatchLocalParam" xml:"MismatchLocalParam"` + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + EnableTunnelsBgp bool `json:"EnableTunnelsBgp" xml:"EnableTunnelsBgp"` + RemoteCaCertificate string `json:"RemoteCaCertificate" xml:"RemoteCaCertificate"` + FailedTime int64 `json:"FailedTime" xml:"FailedTime"` + CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` TransitRouterId string `json:"TransitRouterId" xml:"TransitRouterId"` + TunnelId string `json:"TunnelId" xml:"TunnelId"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` TransitRouterName string `json:"TransitRouterName" xml:"TransitRouterName"` - CrossAccountAuthorized bool `json:"CrossAccountAuthorized" xml:"CrossAccountAuthorized"` InternetIp string `json:"InternetIp" xml:"InternetIp"` - EnableTunnelsBgp bool `json:"EnableTunnelsBgp" xml:"EnableTunnelsBgp"` - IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` + EnableDpd bool `json:"EnableDpd" xml:"EnableDpd"` + CrossAccountAuthorized bool `json:"CrossAccountAuthorized" xml:"CrossAccountAuthorized"` + SourceLog string `json:"SourceLog" xml:"SourceLog"` + Spec string `json:"Spec" xml:"Spec"` + VpnConnectionId string `json:"VpnConnectionId" xml:"VpnConnectionId"` + State string `json:"State" xml:"State"` + Severity string `json:"Severity" xml:"Severity"` + EffectImmediately bool `json:"EffectImmediately" xml:"EffectImmediately"` + Status string `json:"Status" xml:"Status"` + VpnBgpConfig VpnBgpConfig `json:"VpnBgpConfig" xml:"VpnBgpConfig"` IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` + IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` VcoHealthCheck VcoHealthCheck `json:"VcoHealthCheck" xml:"VcoHealthCheck"` - VpnBgpConfig VpnBgpConfig `json:"VpnBgpConfig" xml:"VpnBgpConfig"` Tag TagInDescribeVpnConnections `json:"Tag" xml:"Tag"` TunnelOptionsSpecification TunnelOptionsSpecificationInDescribeVpnConnections `json:"TunnelOptionsSpecification" xml:"TunnelOptionsSpecification"` } diff --git a/services/vpc/struct_vpn_connection_in_describe_vpn_connections.go b/services/vpc/struct_vpn_connection_in_describe_vpn_connections.go new file mode 100644 index 0000000000..871afa2b2a --- /dev/null +++ b/services/vpc/struct_vpn_connection_in_describe_vpn_connections.go @@ -0,0 +1,49 @@ +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. + +// VpnConnectionInDescribeVpnConnections is a nested struct in vpc response +type VpnConnectionInDescribeVpnConnections struct { + Status string `json:"Status" xml:"Status"` + EnableNatTraversal bool `json:"EnableNatTraversal" xml:"EnableNatTraversal"` + RemoteCaCertificate string `json:"RemoteCaCertificate" xml:"RemoteCaCertificate"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + EffectImmediately bool `json:"EffectImmediately" xml:"EffectImmediately"` + VpnGatewayId string `json:"VpnGatewayId" xml:"VpnGatewayId"` + LocalSubnet string `json:"LocalSubnet" xml:"LocalSubnet"` + VpnConnectionId string `json:"VpnConnectionId" xml:"VpnConnectionId"` + RemoteSubnet string `json:"RemoteSubnet" xml:"RemoteSubnet"` + CustomerGatewayId string `json:"CustomerGatewayId" xml:"CustomerGatewayId"` + Name string `json:"Name" xml:"Name"` + EnableDpd bool `json:"EnableDpd" xml:"EnableDpd"` + AttachType string `json:"AttachType" xml:"AttachType"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + AttachInstanceId string `json:"AttachInstanceId" xml:"AttachInstanceId"` + Spec string `json:"Spec" xml:"Spec"` + State string `json:"State" xml:"State"` + TransitRouterId string `json:"TransitRouterId" xml:"TransitRouterId"` + TransitRouterName string `json:"TransitRouterName" xml:"TransitRouterName"` + CrossAccountAuthorized bool `json:"CrossAccountAuthorized" xml:"CrossAccountAuthorized"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` + EnableTunnelsBgp bool `json:"EnableTunnelsBgp" xml:"EnableTunnelsBgp"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + IkeConfig IkeConfig `json:"IkeConfig" xml:"IkeConfig"` + IpsecConfig IpsecConfig `json:"IpsecConfig" xml:"IpsecConfig"` + VcoHealthCheck VcoHealthCheck `json:"VcoHealthCheck" xml:"VcoHealthCheck"` + VpnBgpConfig VpnBgpConfig `json:"VpnBgpConfig" xml:"VpnBgpConfig"` + Tag TagInDescribeVpnConnections `json:"Tag" xml:"Tag"` + TunnelOptionsSpecification TunnelOptionsSpecificationInDescribeVpnConnections `json:"TunnelOptionsSpecification" xml:"TunnelOptionsSpecification"` +} diff --git a/services/vpc/struct_vpn_connections_in_describe_vpn_connections.go b/services/vpc/struct_vpn_connections_in_describe_vpn_connections.go new file mode 100644 index 0000000000..3849812d17 --- /dev/null +++ b/services/vpc/struct_vpn_connections_in_describe_vpn_connections.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. + +// VpnConnectionsInDescribeVpnConnections is a nested struct in vpc response +type VpnConnectionsInDescribeVpnConnections struct { + VpnConnection []VpnConnectionInDescribeVpnConnections `json:"VpnConnection" xml:"VpnConnection"` +} diff --git a/services/vpc/struct_vpn_connections.go b/services/vpc/struct_vpn_connections_in_diagnose_vpn_connections.go similarity index 85% rename from services/vpc/struct_vpn_connections.go rename to services/vpc/struct_vpn_connections_in_diagnose_vpn_connections.go index b33443be55..7a643c21df 100644 --- a/services/vpc/struct_vpn_connections.go +++ b/services/vpc/struct_vpn_connections_in_diagnose_vpn_connections.go @@ -15,7 +15,7 @@ package vpc // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// VpnConnections is a nested struct in vpc response -type VpnConnections struct { +// VpnConnectionsInDiagnoseVpnConnections is a nested struct in vpc response +type VpnConnectionsInDiagnoseVpnConnections struct { VpnConnection []VpnConnection `json:"VpnConnection" xml:"VpnConnection"` } diff --git a/services/vpc/struct_vpn_gateway.go b/services/vpc/struct_vpn_gateway.go index e137d44b18..bf9400212d 100644 --- a/services/vpc/struct_vpn_gateway.go +++ b/services/vpc/struct_vpn_gateway.go @@ -17,29 +17,31 @@ package vpc // VpnGateway is a nested struct in vpc response type VpnGateway struct { - VpnType string `json:"VpnType" xml:"VpnType"` - Status string `json:"Status" xml:"Status"` - VpcId string `json:"VpcId" xml:"VpcId"` - 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"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - Description string `json:"Description" xml:"Description"` - EnableBgp bool `json:"EnableBgp" xml:"EnableBgp"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - SslVpn string `json:"SslVpn" xml:"SslVpn"` - Name string `json:"Name" xml:"Name"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - DisasterRecoveryInternetIp string `json:"DisasterRecoveryInternetIp" xml:"DisasterRecoveryInternetIp"` - DisasterRecoveryVSwitchId string `json:"DisasterRecoveryVSwitchId" xml:"DisasterRecoveryVSwitchId"` - SslVpnInternetIp string `json:"SslVpnInternetIp" xml:"SslVpnInternetIp"` - ReservationData ReservationData `json:"ReservationData" xml:"ReservationData"` - Tags TagsInDescribeVpnGateways `json:"Tags" xml:"Tags"` + VpnType string `json:"VpnType" xml:"VpnType"` + Status string `json:"Status" xml:"Status"` + VpcId string `json:"VpcId" xml:"VpcId"` + 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"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + Description string `json:"Description" xml:"Description"` + EnableBgp bool `json:"EnableBgp" xml:"EnableBgp"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + SslVpn string `json:"SslVpn" xml:"SslVpn"` + Name string `json:"Name" xml:"Name"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + DisasterRecoveryInternetIp string `json:"DisasterRecoveryInternetIp" xml:"DisasterRecoveryInternetIp"` + DisasterRecoveryVSwitchId string `json:"DisasterRecoveryVSwitchId" xml:"DisasterRecoveryVSwitchId"` + SslVpnInternetIp string `json:"SslVpnInternetIp" xml:"SslVpnInternetIp"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + EniInstanceIds EniInstanceIdsInDescribeVpnGateways `json:"EniInstanceIds" xml:"EniInstanceIds"` + ReservationData ReservationData `json:"ReservationData" xml:"ReservationData"` + Tags TagsInDescribeVpnGateways `json:"Tags" xml:"Tags"` } diff --git a/services/vpc/struct_vpn_route_count.go b/services/vpc/struct_vpn_route_count.go new file mode 100644 index 0000000000..24285ea9c8 --- /dev/null +++ b/services/vpc/struct_vpn_route_count.go @@ -0,0 +1,23 @@ +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. + +// VpnRouteCount is a nested struct in vpc response +type VpnRouteCount struct { + RouteEntryType string `json:"RouteEntryType" xml:"RouteEntryType"` + RouteCount int `json:"RouteCount" xml:"RouteCount"` + Source string `json:"Source" xml:"Source"` +} diff --git a/services/vpc/struct_vpn_route_counts_in_describe_vco_route_entries.go b/services/vpc/struct_vpn_route_counts_in_describe_vco_route_entries.go new file mode 100644 index 0000000000..3c5254220d --- /dev/null +++ b/services/vpc/struct_vpn_route_counts_in_describe_vco_route_entries.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. + +// VpnRouteCountsInDescribeVcoRouteEntries is a nested struct in vpc response +type VpnRouteCountsInDescribeVcoRouteEntries struct { + VpnRouteCount []VpnRouteCount `json:"VpnRouteCount" xml:"VpnRouteCount"` +} diff --git a/services/vpc/struct_vpn_route_counts_in_describe_vpn_route_entries.go b/services/vpc/struct_vpn_route_counts_in_describe_vpn_route_entries.go new file mode 100644 index 0000000000..c6da47f05e --- /dev/null +++ b/services/vpc/struct_vpn_route_counts_in_describe_vpn_route_entries.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. + +// VpnRouteCountsInDescribeVpnRouteEntries is a nested struct in vpc response +type VpnRouteCountsInDescribeVpnRouteEntries struct { + VpnRouteCount []VpnRouteCount `json:"VpnRouteCount" xml:"VpnRouteCount"` +} diff --git a/services/vpc/struct_zones_in_list_public_ip_address_pools.go b/services/vpc/struct_zones_in_list_public_ip_address_pools.go new file mode 100644 index 0000000000..c5452887ea --- /dev/null +++ b/services/vpc/struct_zones_in_list_public_ip_address_pools.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. + +// ZonesInListPublicIpAddressPools is a nested struct in vpc response +type ZonesInListPublicIpAddressPools struct { + Zone []string `json:"Zone" xml:"Zone"` +} diff --git a/services/vpc/unassociate_network_acl.go b/services/vpc/unassociate_network_acl.go index 4becd64c65..860c1bdedb 100644 --- a/services/vpc/unassociate_network_acl.go +++ b/services/vpc/unassociate_network_acl.go @@ -74,8 +74,10 @@ type UnassociateNetworkAclRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ClientToken string `position:"Query" name:"ClientToken"` NetworkAclId string `position:"Query" name:"NetworkAclId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` Resource *[]UnassociateNetworkAclResource `position:"Query" name:"Resource" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } diff --git a/services/vpc/update_failover_test_job.go b/services/vpc/update_failover_test_job.go new file mode 100644 index 0000000000..0b7ebaf163 --- /dev/null +++ b/services/vpc/update_failover_test_job.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" +) + +// UpdateFailoverTestJob invokes the vpc.UpdateFailoverTestJob API synchronously +func (client *Client) UpdateFailoverTestJob(request *UpdateFailoverTestJobRequest) (response *UpdateFailoverTestJobResponse, err error) { + response = CreateUpdateFailoverTestJobResponse() + err = client.DoAction(request, response) + return +} + +// UpdateFailoverTestJobWithChan invokes the vpc.UpdateFailoverTestJob API asynchronously +func (client *Client) UpdateFailoverTestJobWithChan(request *UpdateFailoverTestJobRequest) (<-chan *UpdateFailoverTestJobResponse, <-chan error) { + responseChan := make(chan *UpdateFailoverTestJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateFailoverTestJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateFailoverTestJobWithCallback invokes the vpc.UpdateFailoverTestJob API asynchronously +func (client *Client) UpdateFailoverTestJobWithCallback(request *UpdateFailoverTestJobRequest, callback func(response *UpdateFailoverTestJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateFailoverTestJobResponse + var err error + defer close(result) + response, err = client.UpdateFailoverTestJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateFailoverTestJobRequest is the request struct for api UpdateFailoverTestJob +type UpdateFailoverTestJobRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + JobDuration requests.Integer `position:"Query" name:"JobDuration"` + JobId string `position:"Query" name:"JobId"` + ResourceId *[]string `position:"Query" name:"ResourceId" 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"` + Name string `position:"Query" name:"Name"` +} + +// UpdateFailoverTestJobResponse is the response struct for api UpdateFailoverTestJob +type UpdateFailoverTestJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateFailoverTestJobRequest creates a request to invoke UpdateFailoverTestJob API +func CreateUpdateFailoverTestJobRequest() (request *UpdateFailoverTestJobRequest) { + request = &UpdateFailoverTestJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "UpdateFailoverTestJob", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateUpdateFailoverTestJobResponse creates a response to parse from UpdateFailoverTestJob response +func CreateUpdateFailoverTestJobResponse() (response *UpdateFailoverTestJobResponse) { + response = &UpdateFailoverTestJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vpc/update_gateway_route_table_entry_attribute.go b/services/vpc/update_gateway_route_table_entry_attribute.go index fd3831cbc3..7e1b1f37b6 100644 --- a/services/vpc/update_gateway_route_table_entry_attribute.go +++ b/services/vpc/update_gateway_route_table_entry_attribute.go @@ -81,6 +81,7 @@ type UpdateGatewayRouteTableEntryAttributeRequest struct { 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"` Name string `position:"Query" name:"Name"` } diff --git a/services/vpc/update_network_acl_entries.go b/services/vpc/update_network_acl_entries.go index 6606faed22..0f7fcef9b3 100644 --- a/services/vpc/update_network_acl_entries.go +++ b/services/vpc/update_network_acl_entries.go @@ -76,7 +76,9 @@ type UpdateNetworkAclEntriesRequest struct { ClientToken string `position:"Query" name:"ClientToken"` NetworkAclId string `position:"Query" name:"NetworkAclId"` UpdateIngressAclEntries requests.Boolean `position:"Query" name:"UpdateIngressAclEntries"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` UpdateEgressAclEntries requests.Boolean `position:"Query" name:"UpdateEgressAclEntries"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` IngressAclEntries *[]UpdateNetworkAclEntriesIngressAclEntries `position:"Query" name:"IngressAclEntries" type:"Repeated"` @@ -91,6 +93,7 @@ type UpdateNetworkAclEntriesEgressAclEntries struct { Description string `name:"Description"` Protocol string `name:"Protocol"` DestinationCidrIp string `name:"DestinationCidrIp"` + IpVersion string `name:"IpVersion"` Port string `name:"Port"` } @@ -101,6 +104,7 @@ type UpdateNetworkAclEntriesIngressAclEntries struct { NetworkAclEntryName string `name:"NetworkAclEntryName"` Policy string `name:"Policy"` SourceCidrIp string `name:"SourceCidrIp"` + IpVersion string `name:"IpVersion"` Description string `name:"Description"` Protocol string `name:"Protocol"` Port string `name:"Port"` diff --git a/services/vpc/withdraw_vpc_published_route_entries.go b/services/vpc/withdraw_vpc_published_route_entries.go new file mode 100644 index 0000000000..ec52b9bb2b --- /dev/null +++ b/services/vpc/withdraw_vpc_published_route_entries.go @@ -0,0 +1,112 @@ +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" +) + +// WithdrawVpcPublishedRouteEntries invokes the vpc.WithdrawVpcPublishedRouteEntries API synchronously +func (client *Client) WithdrawVpcPublishedRouteEntries(request *WithdrawVpcPublishedRouteEntriesRequest) (response *WithdrawVpcPublishedRouteEntriesResponse, err error) { + response = CreateWithdrawVpcPublishedRouteEntriesResponse() + err = client.DoAction(request, response) + return +} + +// WithdrawVpcPublishedRouteEntriesWithChan invokes the vpc.WithdrawVpcPublishedRouteEntries API asynchronously +func (client *Client) WithdrawVpcPublishedRouteEntriesWithChan(request *WithdrawVpcPublishedRouteEntriesRequest) (<-chan *WithdrawVpcPublishedRouteEntriesResponse, <-chan error) { + responseChan := make(chan *WithdrawVpcPublishedRouteEntriesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.WithdrawVpcPublishedRouteEntries(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// WithdrawVpcPublishedRouteEntriesWithCallback invokes the vpc.WithdrawVpcPublishedRouteEntries API asynchronously +func (client *Client) WithdrawVpcPublishedRouteEntriesWithCallback(request *WithdrawVpcPublishedRouteEntriesRequest, callback func(response *WithdrawVpcPublishedRouteEntriesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *WithdrawVpcPublishedRouteEntriesResponse + var err error + defer close(result) + response, err = client.WithdrawVpcPublishedRouteEntries(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// WithdrawVpcPublishedRouteEntriesRequest is the request struct for api WithdrawVpcPublishedRouteEntries +type WithdrawVpcPublishedRouteEntriesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TargetType string `position:"Query" name:"TargetType"` + 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"` + TargetInstanceId string `position:"Query" name:"TargetInstanceId"` + RouteEntries *[]WithdrawVpcPublishedRouteEntriesRouteEntries `position:"Query" name:"RouteEntries" type:"Repeated"` +} + +// WithdrawVpcPublishedRouteEntriesRouteEntries is a repeated param struct in WithdrawVpcPublishedRouteEntriesRequest +type WithdrawVpcPublishedRouteEntriesRouteEntries struct { + RouteTableId string `name:"RouteTableId"` + DestinationCidrBlock string `name:"DestinationCidrBlock"` +} + +// WithdrawVpcPublishedRouteEntriesResponse is the response struct for api WithdrawVpcPublishedRouteEntries +type WithdrawVpcPublishedRouteEntriesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateWithdrawVpcPublishedRouteEntriesRequest creates a request to invoke WithdrawVpcPublishedRouteEntries API +func CreateWithdrawVpcPublishedRouteEntriesRequest() (request *WithdrawVpcPublishedRouteEntriesRequest) { + request = &WithdrawVpcPublishedRouteEntriesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Vpc", "2016-04-28", "WithdrawVpcPublishedRouteEntries", "vpc", "openAPI") + request.Method = requests.POST + return +} + +// CreateWithdrawVpcPublishedRouteEntriesResponse creates a response to parse from WithdrawVpcPublishedRouteEntries response +func CreateWithdrawVpcPublishedRouteEntriesResponse() (response *WithdrawVpcPublishedRouteEntriesResponse) { + response = &WithdrawVpcPublishedRouteEntriesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +}