diff --git a/pkg/multicloud/qcloud/instance.go b/pkg/multicloud/qcloud/instance.go index 5a755ac757..0a06dd7809 100644 --- a/pkg/multicloud/qcloud/instance.go +++ b/pkg/multicloud/qcloud/instance.go @@ -21,6 +21,9 @@ import ( "strings" "time" + qcommon "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" + qvpc "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312" + "yunion.io/x/jsonutils" "yunion.io/x/log" "yunion.io/x/pkg/errors" @@ -288,18 +291,40 @@ func (self *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error) { } func (self *SInstance) GetINics() ([]cloudprovider.ICloudNic, error) { - nics := make([]cloudprovider.ICloudNic, 0) - classic := false - if len(self.VirtualPrivateCloud.VpcId) == 0 { - classic = true + var ( + classic = self.VirtualPrivateCloud.VpcId == "" + region = self.host.zone.region + + nics []cloudprovider.ICloudNic + ) + client, err := region.client.getVpcClient(region.GetId()) + if err != nil { + return nil, err } - for _, ip := range self.VirtualPrivateCloud.PrivateIpAddresses { - nic := SInstanceNic{instance: self, ipAddr: ip} - nics = append(nics, &nic) + req := qvpc.NewDescribeNetworkInterfacesRequest() + req.Filters = []*qvpc.Filter{ + &qvpc.Filter{ + Values: qcommon.StringPtrs([]string{self.InstanceId}), + Name: qcommon.StringPtr("attachment.instance-id"), + }, } - for _, ip := range self.PrivateIpAddresses { - nic := SInstanceNic{instance: self, ipAddr: ip, classic: classic} - nics = append(nics, &nic) + resp, err := client.DescribeNetworkInterfaces(req) + if err != nil { + return nil, err + } + for _, networkInterface := range resp.Response.NetworkInterfaceSet { + nic := &SInstanceNic{ + instance: self, + id: String(networkInterface.NetworkInterfaceId), + macAddr: strings.ToLower(String(networkInterface.MacAddress)), + classic: classic, + } + for _, addr := range networkInterface.PrivateIpAddressSet { + if Bool(addr.Primary) { + nic.ipAddr = String(addr.PrivateIpAddress) + } + } + nics = append(nics, nic) } return nics, nil } diff --git a/pkg/multicloud/qcloud/instancenic.go b/pkg/multicloud/qcloud/instancenic.go index 608d6cd911..2ad1b5abc6 100644 --- a/pkg/multicloud/qcloud/instancenic.go +++ b/pkg/multicloud/qcloud/instancenic.go @@ -15,21 +15,22 @@ package qcloud import ( - "yunion.io/x/pkg/util/netutils" - "yunion.io/x/onecloud/pkg/cloudprovider" ) type SInstanceNic struct { instance *SInstance - ipAddr string - classic bool + + id string + ipAddr string + macAddr string + classic bool cloudprovider.DummyICloudNic } func (self *SInstanceNic) GetId() string { - return "" + return self.id } func (self *SInstanceNic) GetIP() string { @@ -37,8 +38,7 @@ func (self *SInstanceNic) GetIP() string { } func (self *SInstanceNic) GetMAC() string { - ip, _ := netutils.NewIPV4Addr(self.ipAddr) - return ip.ToMac("00:16:") + return self.macAddr } func (self *SInstanceNic) GetDriver() string { diff --git a/pkg/multicloud/qcloud/qcloud.go b/pkg/multicloud/qcloud/qcloud.go index 9622951aae..7133455ea7 100644 --- a/pkg/multicloud/qcloud/qcloud.go +++ b/pkg/multicloud/qcloud/qcloud.go @@ -28,6 +28,7 @@ import ( sdkerrors "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile" + qvpc "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312" "github.com/tencentyun/cos-go-sdk-v5" "github.com/tencentyun/cos-go-sdk-v5/debug" @@ -130,9 +131,13 @@ func NewQcloudClient(cfg *QcloudClientConfig) (*SQcloudClient, error) { // 部分接口支持金融区地域。由于金融区和非金融区是隔离不互通的,因此当公共参数 Region 为金融区地域(例如 ap-shanghai-fsi)时,需要同时指定带金融区地域的域名,最好和 Region 的地域保持一致,例如:clb.ap-shanghai-fsi.tencentcloudapi.com // https://cloud.tencent.com/document/product/416/6479 func apiDomain(product string, params map[string]string) string { - region, ok := params["Region"] - if ok && strings.HasSuffix(region, "-fsi") { - return product + "." + region + ".tencentcloudapi.com" + regionId, _ := params["Region"] + return apiDomainByRegion(product, regionId) +} + +func apiDomainByRegion(product, regionId string) string { + if strings.HasSuffix(regionId, "-fsi") { + return product + "." + regionId + ".tencentcloudapi.com" } else { return product + ".tencentcloudapi.com" } @@ -508,7 +513,11 @@ func (client *SQcloudClient) GetRegions() []SRegion { } func (client *SQcloudClient) getDefaultClient() (*common.Client, error) { - cli, err := common.NewClientWithSecretId(client.secretId, client.secretKey, QCLOUD_DEFAULT_REGION) + return client.getSdkClient(QCLOUD_DEFAULT_REGION) +} + +func (client *SQcloudClient) getSdkClient(regionId string) (*common.Client, error) { + cli, err := common.NewClientWithSecretId(client.secretId, client.secretKey, regionId) if err != nil { return nil, err } @@ -517,6 +526,20 @@ func (client *SQcloudClient) getDefaultClient() (*common.Client, error) { return cli, nil } +func (client *SQcloudClient) getVpcClient(regionId string) (*qvpc.Client, error) { + cli, err := client.getSdkClient(regionId) + if err != nil { + return nil, err + } + vpcClient := &qvpc.Client{ + Client: *cli, + } + cpf := profile.NewClientProfile() + cpf.HttpProfile.Endpoint = apiDomainByRegion("vpc", regionId) + vpcClient.WithProfile(cpf) + return vpcClient, nil +} + func (client *SQcloudClient) vpcRequest(apiName string, params map[string]string) (jsonutils.JSONObject, error) { cli, err := client.getDefaultClient() if err != nil { diff --git a/pkg/multicloud/qcloud/types.go b/pkg/multicloud/qcloud/types.go new file mode 100644 index 0000000000..33898e168a --- /dev/null +++ b/pkg/multicloud/qcloud/types.go @@ -0,0 +1,29 @@ +// Copyright 2019 Yunion +// +// 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. + +package qcloud + +func String(sp *string) string { + if sp != nil { + return *sp + } + return "" +} + +func Bool(sb *bool) bool { + if sb != nil { + return *sb + } + return false +} diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/response.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/response.go index 8dc321dbb0..288f21bdf6 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/response.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/response.go @@ -4,7 +4,6 @@ import ( "encoding/json" "fmt" "io/ioutil" - //"log" "net/http" diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312/client.go new file mode 100644 index 0000000000..fc393e85d9 --- /dev/null +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312/client.go @@ -0,0 +1,4753 @@ +// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. +// +// 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. + +package v20170312 + +import ( + "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" + tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" + "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile" +) + +const APIVersion = "2017-03-12" + +type Client struct { + common.Client +} + +// Deprecated +func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) { + cpf := profile.NewClientProfile() + client = &Client{} + client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf) + return +} + +func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error) { + client = &Client{} + client.Init(region). + WithCredential(credential). + WithProfile(clientProfile) + return +} + + +func NewAcceptAttachCcnInstancesRequest() (request *AcceptAttachCcnInstancesRequest) { + request = &AcceptAttachCcnInstancesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AcceptAttachCcnInstances") + return +} + +func NewAcceptAttachCcnInstancesResponse() (response *AcceptAttachCcnInstancesResponse) { + response = &AcceptAttachCcnInstancesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(AcceptAttachCcnInstances)用于跨账号关联实例时,云联网所有者接受并同意关联操作。 +func (c *Client) AcceptAttachCcnInstances(request *AcceptAttachCcnInstancesRequest) (response *AcceptAttachCcnInstancesResponse, err error) { + if request == nil { + request = NewAcceptAttachCcnInstancesRequest() + } + response = NewAcceptAttachCcnInstancesResponse() + err = c.Send(request, response) + return +} + +func NewAddBandwidthPackageResourcesRequest() (request *AddBandwidthPackageResourcesRequest) { + request = &AddBandwidthPackageResourcesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AddBandwidthPackageResources") + return +} + +func NewAddBandwidthPackageResourcesResponse() (response *AddBandwidthPackageResourcesResponse) { + response = &AddBandwidthPackageResourcesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 接口用于添加带宽包资源,包括[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)和[负载均衡](https://cloud.tencent.com/document/product/214/517)等 +func (c *Client) AddBandwidthPackageResources(request *AddBandwidthPackageResourcesRequest) (response *AddBandwidthPackageResourcesResponse, err error) { + if request == nil { + request = NewAddBandwidthPackageResourcesRequest() + } + response = NewAddBandwidthPackageResourcesResponse() + err = c.Send(request, response) + return +} + +func NewAddIp6RulesRequest() (request *AddIp6RulesRequest) { + request = &AddIp6RulesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AddIp6Rules") + return +} + +func NewAddIp6RulesResponse() (response *AddIp6RulesResponse) { + response = &AddIp6RulesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 1. 该接口用于在转换实例下添加IPV6转换规则。 +// 2. 支持在同一个转换实例下批量添加转换规则,一个账户在一个地域最多50个。 +// 3. 一个完整的转换规则包括vip6:vport6:protocol:vip:vport,其中vip6:vport6:protocol必须是唯一。 +func (c *Client) AddIp6Rules(request *AddIp6RulesRequest) (response *AddIp6RulesResponse, err error) { + if request == nil { + request = NewAddIp6RulesRequest() + } + response = NewAddIp6RulesResponse() + err = c.Send(request, response) + return +} + +func NewAllocateAddressesRequest() (request *AllocateAddressesRequest) { + request = &AllocateAddressesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AllocateAddresses") + return +} + +func NewAllocateAddressesResponse() (response *AllocateAddressesResponse) { + response = &AllocateAddressesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口 (AllocateAddresses) 用于申请一个或多个[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)。 +// * EIP 是专为动态云计算设计的静态 IP 地址。借助 EIP,您可以快速将 EIP 重新映射到您的另一个实例上,从而屏蔽实例故障。 +// * 您的 EIP 与腾讯云账户相关联,而不是与某个实例相关联。在您选择显式释放该地址,或欠费超过24小时之前,它会一直与您的腾讯云账户保持关联。 +// * 一个腾讯云账户在每个地域能申请的 EIP 最大配额有所限制,可参见 [EIP 产品简介](https://cloud.tencent.com/document/product/213/5733),上述配额可通过 DescribeAddressQuota 接口获取。 +func (c *Client) AllocateAddresses(request *AllocateAddressesRequest) (response *AllocateAddressesResponse, err error) { + if request == nil { + request = NewAllocateAddressesRequest() + } + response = NewAllocateAddressesResponse() + err = c.Send(request, response) + return +} + +func NewAllocateIp6AddressesBandwidthRequest() (request *AllocateIp6AddressesBandwidthRequest) { + request = &AllocateIp6AddressesBandwidthRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AllocateIp6AddressesBandwidth") + return +} + +func NewAllocateIp6AddressesBandwidthResponse() (response *AllocateIp6AddressesBandwidthResponse) { + response = &AllocateIp6AddressesBandwidthResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 该接口用于给IPv6地址初次分配公网带宽 +func (c *Client) AllocateIp6AddressesBandwidth(request *AllocateIp6AddressesBandwidthRequest) (response *AllocateIp6AddressesBandwidthResponse, err error) { + if request == nil { + request = NewAllocateIp6AddressesBandwidthRequest() + } + response = NewAllocateIp6AddressesBandwidthResponse() + err = c.Send(request, response) + return +} + +func NewAssignIpv6AddressesRequest() (request *AssignIpv6AddressesRequest) { + request = &AssignIpv6AddressesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AssignIpv6Addresses") + return +} + +func NewAssignIpv6AddressesResponse() (response *AssignIpv6AddressesResponse) { + response = &AssignIpv6AddressesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(AssignIpv6Addresses)用于弹性网卡申请`IPv6`地址。
+// 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`QueryTask`接口。 +// * 一个弹性网卡支持绑定的IP地址是有限制的,更多资源限制信息详见弹性网卡使用限制。 +// * 可以指定`IPv6`地址申请,地址类型不能为主`IP`,`IPv6`地址暂时只支持作为辅助`IP`。 +// * 地址必须要在弹性网卡所在子网内,而且不能被占用。 +// * 在弹性网卡上申请一个到多个辅助`IPv6`地址,接口会在弹性网卡所在子网段内返回指定数量的辅助`IPv6`地址。 +func (c *Client) AssignIpv6Addresses(request *AssignIpv6AddressesRequest) (response *AssignIpv6AddressesResponse, err error) { + if request == nil { + request = NewAssignIpv6AddressesRequest() + } + response = NewAssignIpv6AddressesResponse() + err = c.Send(request, response) + return +} + +func NewAssignIpv6CidrBlockRequest() (request *AssignIpv6CidrBlockRequest) { + request = &AssignIpv6CidrBlockRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AssignIpv6CidrBlock") + return +} + +func NewAssignIpv6CidrBlockResponse() (response *AssignIpv6CidrBlockResponse) { + response = &AssignIpv6CidrBlockResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(AssignIpv6CidrBlock)用于分配IPv6网段。 +// * 使用本接口前,您需要已有VPC实例,如果没有可通过接口CreateVpc创建。 +// * 每个VPC只能申请一个IPv6网段 +func (c *Client) AssignIpv6CidrBlock(request *AssignIpv6CidrBlockRequest) (response *AssignIpv6CidrBlockResponse, err error) { + if request == nil { + request = NewAssignIpv6CidrBlockRequest() + } + response = NewAssignIpv6CidrBlockResponse() + err = c.Send(request, response) + return +} + +func NewAssignIpv6SubnetCidrBlockRequest() (request *AssignIpv6SubnetCidrBlockRequest) { + request = &AssignIpv6SubnetCidrBlockRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AssignIpv6SubnetCidrBlock") + return +} + +func NewAssignIpv6SubnetCidrBlockResponse() (response *AssignIpv6SubnetCidrBlockResponse) { + response = &AssignIpv6SubnetCidrBlockResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(AssignIpv6SubnetCidrBlock)用于分配IPv6子网段。 +// * 给子网分配 `IPv6` 网段,要求子网所属 `VPC` 已获得 `IPv6` 网段。如果尚未分配,请先通过接口 `AssignIpv6CidrBlock` 给子网所属 `VPC` 分配一个 `IPv6` 网段。否则无法分配 `IPv6` 子网段。 +// * 每个子网只能分配一个IPv6网段。 +func (c *Client) AssignIpv6SubnetCidrBlock(request *AssignIpv6SubnetCidrBlockRequest) (response *AssignIpv6SubnetCidrBlockResponse, err error) { + if request == nil { + request = NewAssignIpv6SubnetCidrBlockRequest() + } + response = NewAssignIpv6SubnetCidrBlockResponse() + err = c.Send(request, response) + return +} + +func NewAssignPrivateIpAddressesRequest() (request *AssignPrivateIpAddressesRequest) { + request = &AssignPrivateIpAddressesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AssignPrivateIpAddresses") + return +} + +func NewAssignPrivateIpAddressesResponse() (response *AssignPrivateIpAddressesResponse) { + response = &AssignPrivateIpAddressesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(AssignPrivateIpAddresses)用于弹性网卡申请内网 IP。 +// * 一个弹性网卡支持绑定的IP地址是有限制的,更多资源限制信息详见弹性网卡使用限制。 +// * 可以指定内网IP地址申请,内网IP地址类型不能为主IP,主IP已存在,不能修改,内网IP必须要弹性网卡所在子网内,而且不能被占用。 +// * 在弹性网卡上申请一个到多个辅助内网IP,接口会在弹性网卡所在子网网段内返回指定数量的辅助内网IP。 +func (c *Client) AssignPrivateIpAddresses(request *AssignPrivateIpAddressesRequest) (response *AssignPrivateIpAddressesResponse, err error) { + if request == nil { + request = NewAssignPrivateIpAddressesRequest() + } + response = NewAssignPrivateIpAddressesResponse() + err = c.Send(request, response) + return +} + +func NewAssociateAddressRequest() (request *AssociateAddressRequest) { + request = &AssociateAddressRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AssociateAddress") + return +} + +func NewAssociateAddressResponse() (response *AssociateAddressResponse) { + response = &AssociateAddressResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口 (AssociateAddress) 用于将[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)绑定到实例或弹性网卡的指定内网 IP 上。 +// * 将 EIP 绑定到实例(CVM)上,其本质是将 EIP 绑定到实例上主网卡的主内网 IP 上。 +// * 将 EIP 绑定到主网卡的主内网IP上,绑定过程会把其上绑定的普通公网 IP 自动解绑并释放。 +// * 将 EIP 绑定到指定网卡的内网 IP上(非主网卡的主内网IP),则必须先解绑该 EIP,才能再绑定新的。 +// * 将 EIP 绑定到NAT网关,请使用接口[EipBindNatGateway](https://cloud.tencent.com/document/product/215/4093) +// * EIP 如果欠费或被封堵,则不能被绑定。 +// * 只有状态为 UNBIND 的 EIP 才能够被绑定。 +func (c *Client) AssociateAddress(request *AssociateAddressRequest) (response *AssociateAddressResponse, err error) { + if request == nil { + request = NewAssociateAddressRequest() + } + response = NewAssociateAddressResponse() + err = c.Send(request, response) + return +} + +func NewAssociateNatGatewayAddressRequest() (request *AssociateNatGatewayAddressRequest) { + request = &AssociateNatGatewayAddressRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AssociateNatGatewayAddress") + return +} + +func NewAssociateNatGatewayAddressResponse() (response *AssociateNatGatewayAddressResponse) { + response = &AssociateNatGatewayAddressResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(AssociateNatGatewayAddress)用于NAT网关绑定弹性IP(EIP)。 +func (c *Client) AssociateNatGatewayAddress(request *AssociateNatGatewayAddressRequest) (response *AssociateNatGatewayAddressResponse, err error) { + if request == nil { + request = NewAssociateNatGatewayAddressRequest() + } + response = NewAssociateNatGatewayAddressResponse() + err = c.Send(request, response) + return +} + +func NewAssociateNetworkAclSubnetsRequest() (request *AssociateNetworkAclSubnetsRequest) { + request = &AssociateNetworkAclSubnetsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AssociateNetworkAclSubnets") + return +} + +func NewAssociateNetworkAclSubnetsResponse() (response *AssociateNetworkAclSubnetsResponse) { + response = &AssociateNetworkAclSubnetsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(AssociateNetworkAclSubnets)用于网络ACL关联vpc下的子网。 +func (c *Client) AssociateNetworkAclSubnets(request *AssociateNetworkAclSubnetsRequest) (response *AssociateNetworkAclSubnetsResponse, err error) { + if request == nil { + request = NewAssociateNetworkAclSubnetsRequest() + } + response = NewAssociateNetworkAclSubnetsResponse() + err = c.Send(request, response) + return +} + +func NewAttachCcnInstancesRequest() (request *AttachCcnInstancesRequest) { + request = &AttachCcnInstancesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AttachCcnInstances") + return +} + +func NewAttachCcnInstancesResponse() (response *AttachCcnInstancesResponse) { + response = &AttachCcnInstancesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(AttachCcnInstances)用于将网络实例加载到云联网实例中,网络实例包括VPC和专线网关。
+// 每个云联网能够关联的网络实例个数是有限的,详请参考产品文档。如果需要扩充请联系在线客服。 +func (c *Client) AttachCcnInstances(request *AttachCcnInstancesRequest) (response *AttachCcnInstancesResponse, err error) { + if request == nil { + request = NewAttachCcnInstancesRequest() + } + response = NewAttachCcnInstancesResponse() + err = c.Send(request, response) + return +} + +func NewAttachClassicLinkVpcRequest() (request *AttachClassicLinkVpcRequest) { + request = &AttachClassicLinkVpcRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AttachClassicLinkVpc") + return +} + +func NewAttachClassicLinkVpcResponse() (response *AttachClassicLinkVpcResponse) { + response = &AttachClassicLinkVpcResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(AttachClassicLinkVpc)用于创建私有网络和基础网络设备互通。 +// * 私有网络和基础网络设备必须在同一个地域。 +// * 私有网络和基础网络的区别详见vpc产品文档-私有网络与基础网络。 +func (c *Client) AttachClassicLinkVpc(request *AttachClassicLinkVpcRequest) (response *AttachClassicLinkVpcResponse, err error) { + if request == nil { + request = NewAttachClassicLinkVpcRequest() + } + response = NewAttachClassicLinkVpcResponse() + err = c.Send(request, response) + return +} + +func NewAttachNetworkInterfaceRequest() (request *AttachNetworkInterfaceRequest) { + request = &AttachNetworkInterfaceRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "AttachNetworkInterface") + return +} + +func NewAttachNetworkInterfaceResponse() (response *AttachNetworkInterfaceResponse) { + response = &AttachNetworkInterfaceResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(AttachNetworkInterface)用于弹性网卡绑定云主机。 +// * 一个云主机可以绑定多个弹性网卡,但只能绑定一个主网卡。更多限制信息详见弹性网卡使用限制。 +// * 一个弹性网卡只能同时绑定一个云主机。 +// * 只有运行中或者已关机状态的云主机才能绑定弹性网卡,查看云主机状态详见腾讯云主机信息。 +// * 弹性网卡绑定的云主机必须是私有网络的,而且云主机所在可用区必须和弹性网卡子网的可用区相同。 +func (c *Client) AttachNetworkInterface(request *AttachNetworkInterfaceRequest) (response *AttachNetworkInterfaceResponse, err error) { + if request == nil { + request = NewAttachNetworkInterfaceRequest() + } + response = NewAttachNetworkInterfaceResponse() + err = c.Send(request, response) + return +} + +func NewCheckNetDetectStateRequest() (request *CheckNetDetectStateRequest) { + request = &CheckNetDetectStateRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CheckNetDetectState") + return +} + +func NewCheckNetDetectStateResponse() (response *CheckNetDetectStateResponse) { + response = &CheckNetDetectStateResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CheckNetDetectState)用于验证网络探测。 +func (c *Client) CheckNetDetectState(request *CheckNetDetectStateRequest) (response *CheckNetDetectStateResponse, err error) { + if request == nil { + request = NewCheckNetDetectStateRequest() + } + response = NewCheckNetDetectStateResponse() + err = c.Send(request, response) + return +} + +func NewCreateAddressTemplateRequest() (request *CreateAddressTemplateRequest) { + request = &CreateAddressTemplateRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateAddressTemplate") + return +} + +func NewCreateAddressTemplateResponse() (response *CreateAddressTemplateResponse) { + response = &CreateAddressTemplateResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateAddressTemplate)用于创建IP地址模版 +func (c *Client) CreateAddressTemplate(request *CreateAddressTemplateRequest) (response *CreateAddressTemplateResponse, err error) { + if request == nil { + request = NewCreateAddressTemplateRequest() + } + response = NewCreateAddressTemplateResponse() + err = c.Send(request, response) + return +} + +func NewCreateAddressTemplateGroupRequest() (request *CreateAddressTemplateGroupRequest) { + request = &CreateAddressTemplateGroupRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateAddressTemplateGroup") + return +} + +func NewCreateAddressTemplateGroupResponse() (response *CreateAddressTemplateGroupResponse) { + response = &CreateAddressTemplateGroupResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateAddressTemplateGroup)用于创建IP地址模版集合 +func (c *Client) CreateAddressTemplateGroup(request *CreateAddressTemplateGroupRequest) (response *CreateAddressTemplateGroupResponse, err error) { + if request == nil { + request = NewCreateAddressTemplateGroupRequest() + } + response = NewCreateAddressTemplateGroupResponse() + err = c.Send(request, response) + return +} + +func NewCreateBandwidthPackageRequest() (request *CreateBandwidthPackageRequest) { + request = &CreateBandwidthPackageRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateBandwidthPackage") + return +} + +func NewCreateBandwidthPackageResponse() (response *CreateBandwidthPackageResponse) { + response = &CreateBandwidthPackageResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 接口支持创建[设备带宽包](https://cloud.tencent.com/document/product/684/15246#.E8.AE.BE.E5.A4.87.E5.B8.A6.E5.AE.BD.E5.8C.85)和[IP带宽包](https://cloud.tencent.com/document/product/684/15246#ip-.E5.B8.A6.E5.AE.BD.E5.8C.85) +func (c *Client) CreateBandwidthPackage(request *CreateBandwidthPackageRequest) (response *CreateBandwidthPackageResponse, err error) { + if request == nil { + request = NewCreateBandwidthPackageRequest() + } + response = NewCreateBandwidthPackageResponse() + err = c.Send(request, response) + return +} + +func NewCreateCcnRequest() (request *CreateCcnRequest) { + request = &CreateCcnRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateCcn") + return +} + +func NewCreateCcnResponse() (response *CreateCcnResponse) { + response = &CreateCcnResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateCcn)用于创建云联网(CCN)。
+// * 创建云联网同时可以绑定标签, 应答里的标签列表代表添加成功的标签。 +// 每个账号能创建的云联网实例个数是有限的,详请参考产品文档。如果需要扩充请联系在线客服。 +func (c *Client) CreateCcn(request *CreateCcnRequest) (response *CreateCcnResponse, err error) { + if request == nil { + request = NewCreateCcnRequest() + } + response = NewCreateCcnResponse() + err = c.Send(request, response) + return +} + +func NewCreateCustomerGatewayRequest() (request *CreateCustomerGatewayRequest) { + request = &CreateCustomerGatewayRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateCustomerGateway") + return +} + +func NewCreateCustomerGatewayResponse() (response *CreateCustomerGatewayResponse) { + response = &CreateCustomerGatewayResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateCustomerGateway)用于创建对端网关。 +func (c *Client) CreateCustomerGateway(request *CreateCustomerGatewayRequest) (response *CreateCustomerGatewayResponse, err error) { + if request == nil { + request = NewCreateCustomerGatewayRequest() + } + response = NewCreateCustomerGatewayResponse() + err = c.Send(request, response) + return +} + +func NewCreateDefaultVpcRequest() (request *CreateDefaultVpcRequest) { + request = &CreateDefaultVpcRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateDefaultVpc") + return +} + +func NewCreateDefaultVpcResponse() (response *CreateDefaultVpcResponse) { + response = &CreateDefaultVpcResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateDefaultVpc)用于创建默认私有网络(VPC)。 +// +// 默认VPC适用于快速入门和启动公共实例,您可以像使用任何其他VPC一样使用默认VPC。如果您想创建标准VPC,即指定VPC名称、VPC网段、子网网段、子网可用区,请使用常规创建VPC接口(CreateVpc) +// +// 正常情况,本接口并不一定生产默认VPC,而是根据用户账号的网络属性(DescribeAccountAttributes)来决定的 +// * 支持基础网络、VPC,返回VpcId为0 +// * 只支持VPC,返回默认VPC信息 +// +// 您也可以通过 Force 参数,强制返回默认VPC +func (c *Client) CreateDefaultVpc(request *CreateDefaultVpcRequest) (response *CreateDefaultVpcResponse, err error) { + if request == nil { + request = NewCreateDefaultVpcRequest() + } + response = NewCreateDefaultVpcResponse() + err = c.Send(request, response) + return +} + +func NewCreateDirectConnectGatewayRequest() (request *CreateDirectConnectGatewayRequest) { + request = &CreateDirectConnectGatewayRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateDirectConnectGateway") + return +} + +func NewCreateDirectConnectGatewayResponse() (response *CreateDirectConnectGatewayResponse) { + response = &CreateDirectConnectGatewayResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateDirectConnectGateway)用于创建专线网关。 +func (c *Client) CreateDirectConnectGateway(request *CreateDirectConnectGatewayRequest) (response *CreateDirectConnectGatewayResponse, err error) { + if request == nil { + request = NewCreateDirectConnectGatewayRequest() + } + response = NewCreateDirectConnectGatewayResponse() + err = c.Send(request, response) + return +} + +func NewCreateDirectConnectGatewayCcnRoutesRequest() (request *CreateDirectConnectGatewayCcnRoutesRequest) { + request = &CreateDirectConnectGatewayCcnRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateDirectConnectGatewayCcnRoutes") + return +} + +func NewCreateDirectConnectGatewayCcnRoutesResponse() (response *CreateDirectConnectGatewayCcnRoutesResponse) { + response = &CreateDirectConnectGatewayCcnRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateDirectConnectGatewayCcnRoutes)用于创建专线网关的云联网路由(IDC网段) +func (c *Client) CreateDirectConnectGatewayCcnRoutes(request *CreateDirectConnectGatewayCcnRoutesRequest) (response *CreateDirectConnectGatewayCcnRoutesResponse, err error) { + if request == nil { + request = NewCreateDirectConnectGatewayCcnRoutesRequest() + } + response = NewCreateDirectConnectGatewayCcnRoutesResponse() + err = c.Send(request, response) + return +} + +func NewCreateFlowLogRequest() (request *CreateFlowLogRequest) { + request = &CreateFlowLogRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateFlowLog") + return +} + +func NewCreateFlowLogResponse() (response *CreateFlowLogResponse) { + response = &CreateFlowLogResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateFlowLog)用于创建流日志 +func (c *Client) CreateFlowLog(request *CreateFlowLogRequest) (response *CreateFlowLogResponse, err error) { + if request == nil { + request = NewCreateFlowLogRequest() + } + response = NewCreateFlowLogResponse() + err = c.Send(request, response) + return +} + +func NewCreateHaVipRequest() (request *CreateHaVipRequest) { + request = &CreateHaVipRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateHaVip") + return +} + +func NewCreateHaVipResponse() (response *CreateHaVipResponse) { + response = &CreateHaVipResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateHaVip)用于创建高可用虚拟IP(HAVIP) +func (c *Client) CreateHaVip(request *CreateHaVipRequest) (response *CreateHaVipResponse, err error) { + if request == nil { + request = NewCreateHaVipRequest() + } + response = NewCreateHaVipResponse() + err = c.Send(request, response) + return +} + +func NewCreateIp6TranslatorsRequest() (request *CreateIp6TranslatorsRequest) { + request = &CreateIp6TranslatorsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateIp6Translators") + return +} + +func NewCreateIp6TranslatorsResponse() (response *CreateIp6TranslatorsResponse) { + response = &CreateIp6TranslatorsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 1. 该接口用于创建IPV6转换IPV4实例,支持批量 +// 2. 同一个账户在一个地域最多允许创建10个转换实例 +func (c *Client) CreateIp6Translators(request *CreateIp6TranslatorsRequest) (response *CreateIp6TranslatorsResponse, err error) { + if request == nil { + request = NewCreateIp6TranslatorsRequest() + } + response = NewCreateIp6TranslatorsResponse() + err = c.Send(request, response) + return +} + +func NewCreateNatGatewayRequest() (request *CreateNatGatewayRequest) { + request = &CreateNatGatewayRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateNatGateway") + return +} + +func NewCreateNatGatewayResponse() (response *CreateNatGatewayResponse) { + response = &CreateNatGatewayResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateNatGateway)用于创建NAT网关。 +func (c *Client) CreateNatGateway(request *CreateNatGatewayRequest) (response *CreateNatGatewayResponse, err error) { + if request == nil { + request = NewCreateNatGatewayRequest() + } + response = NewCreateNatGatewayResponse() + err = c.Send(request, response) + return +} + +func NewCreateNatGatewayDestinationIpPortTranslationNatRuleRequest() (request *CreateNatGatewayDestinationIpPortTranslationNatRuleRequest) { + request = &CreateNatGatewayDestinationIpPortTranslationNatRuleRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateNatGatewayDestinationIpPortTranslationNatRule") + return +} + +func NewCreateNatGatewayDestinationIpPortTranslationNatRuleResponse() (response *CreateNatGatewayDestinationIpPortTranslationNatRuleResponse) { + response = &CreateNatGatewayDestinationIpPortTranslationNatRuleResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateNatGatewayDestinationIpPortTranslationNatRule)用于创建NAT网关端口转发规则。 +func (c *Client) CreateNatGatewayDestinationIpPortTranslationNatRule(request *CreateNatGatewayDestinationIpPortTranslationNatRuleRequest) (response *CreateNatGatewayDestinationIpPortTranslationNatRuleResponse, err error) { + if request == nil { + request = NewCreateNatGatewayDestinationIpPortTranslationNatRuleRequest() + } + response = NewCreateNatGatewayDestinationIpPortTranslationNatRuleResponse() + err = c.Send(request, response) + return +} + +func NewCreateNetDetectRequest() (request *CreateNetDetectRequest) { + request = &CreateNetDetectRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateNetDetect") + return +} + +func NewCreateNetDetectResponse() (response *CreateNetDetectResponse) { + response = &CreateNetDetectResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateNetDetect)用于创建网络探测。 +func (c *Client) CreateNetDetect(request *CreateNetDetectRequest) (response *CreateNetDetectResponse, err error) { + if request == nil { + request = NewCreateNetDetectRequest() + } + response = NewCreateNetDetectResponse() + err = c.Send(request, response) + return +} + +func NewCreateNetworkAclRequest() (request *CreateNetworkAclRequest) { + request = &CreateNetworkAclRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateNetworkAcl") + return +} + +func NewCreateNetworkAclResponse() (response *CreateNetworkAclResponse) { + response = &CreateNetworkAclResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateNetworkAcl)用于创建新的网络ACL。 +// * 新建的网络ACL的入站和出站规则默认都是全部拒绝,在创建后通常您需要再调用ModifyNetworkAclEntries将网络ACL的规则设置为需要的规则。 +func (c *Client) CreateNetworkAcl(request *CreateNetworkAclRequest) (response *CreateNetworkAclResponse, err error) { + if request == nil { + request = NewCreateNetworkAclRequest() + } + response = NewCreateNetworkAclResponse() + err = c.Send(request, response) + return +} + +func NewCreateNetworkInterfaceRequest() (request *CreateNetworkInterfaceRequest) { + request = &CreateNetworkInterfaceRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateNetworkInterface") + return +} + +func NewCreateNetworkInterfaceResponse() (response *CreateNetworkInterfaceResponse) { + response = &CreateNetworkInterfaceResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateNetworkInterface)用于创建弹性网卡。 +// * 创建弹性网卡时可以指定内网IP,并且可以指定一个主IP,指定的内网IP必须在弹性网卡所在子网内,而且不能被占用。 +// * 创建弹性网卡时可以指定需要申请的内网IP数量,系统会随机生成内网IP地址。 +// * 一个弹性网卡支持绑定的IP地址是有限制的,更多资源限制信息详见弹性网卡使用限制。 +// * 创建弹性网卡同时可以绑定已有安全组。 +// * 创建弹性网卡同时可以绑定标签, 应答里的标签列表代表添加成功的标签。 +func (c *Client) CreateNetworkInterface(request *CreateNetworkInterfaceRequest) (response *CreateNetworkInterfaceResponse, err error) { + if request == nil { + request = NewCreateNetworkInterfaceRequest() + } + response = NewCreateNetworkInterfaceResponse() + err = c.Send(request, response) + return +} + +func NewCreateRouteTableRequest() (request *CreateRouteTableRequest) { + request = &CreateRouteTableRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateRouteTable") + return +} + +func NewCreateRouteTableResponse() (response *CreateRouteTableResponse) { + response = &CreateRouteTableResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateRouteTable)用于创建路由表。 +// * 创建了VPC后,系统会创建一个默认路由表,所有新建的子网都会关联到默认路由表。默认情况下您可以直接使用默认路由表来管理您的路由策略。当您的路由策略较多时,您可以调用创建路由表接口创建更多路由表管理您的路由策略。 +// * 创建路由表同时可以绑定标签, 应答里的标签列表代表添加成功的标签。 +func (c *Client) CreateRouteTable(request *CreateRouteTableRequest) (response *CreateRouteTableResponse, err error) { + if request == nil { + request = NewCreateRouteTableRequest() + } + response = NewCreateRouteTableResponse() + err = c.Send(request, response) + return +} + +func NewCreateRoutesRequest() (request *CreateRoutesRequest) { + request = &CreateRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateRoutes") + return +} + +func NewCreateRoutesResponse() (response *CreateRoutesResponse) { + response = &CreateRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateRoutes)用于创建路由策略。 +// * 向指定路由表批量新增路由策略。 +func (c *Client) CreateRoutes(request *CreateRoutesRequest) (response *CreateRoutesResponse, err error) { + if request == nil { + request = NewCreateRoutesRequest() + } + response = NewCreateRoutesResponse() + err = c.Send(request, response) + return +} + +func NewCreateSecurityGroupRequest() (request *CreateSecurityGroupRequest) { + request = &CreateSecurityGroupRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateSecurityGroup") + return +} + +func NewCreateSecurityGroupResponse() (response *CreateSecurityGroupResponse) { + response = &CreateSecurityGroupResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateSecurityGroup)用于创建新的安全组(SecurityGroup)。 +// * 每个账户下每个地域的每个项目的安全组数量限制。 +// * 新建的安全组的入站和出站规则默认都是全部拒绝,在创建后通常您需要再调用CreateSecurityGroupPolicies将安全组的规则设置为需要的规则。 +// * 创建安全组同时可以绑定标签, 应答里的标签列表代表添加成功的标签。 +func (c *Client) CreateSecurityGroup(request *CreateSecurityGroupRequest) (response *CreateSecurityGroupResponse, err error) { + if request == nil { + request = NewCreateSecurityGroupRequest() + } + response = NewCreateSecurityGroupResponse() + err = c.Send(request, response) + return +} + +func NewCreateSecurityGroupPoliciesRequest() (request *CreateSecurityGroupPoliciesRequest) { + request = &CreateSecurityGroupPoliciesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateSecurityGroupPolicies") + return +} + +func NewCreateSecurityGroupPoliciesResponse() (response *CreateSecurityGroupPoliciesResponse) { + response = &CreateSecurityGroupPoliciesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateSecurityGroupPolicies)用于创建安全组规则(SecurityGroupPolicy)。 +// +// * Version安全组规则版本号,用户每次更新安全规则版本会自动加1,防止您更新的路由规则已过期,不填不考虑冲突。 +// * Protocol字段支持输入TCP, UDP, ICMP, ICMPV6, GRE, ALL。 +// * CidrBlock字段允许输入符合cidr格式标准的任意字符串。(展开)在基础网络中,如果CidrBlock包含您的账户内的云服务器之外的设备在腾讯云的内网IP,并不代表此规则允许您访问这些设备,租户之间网络隔离规则优先于安全组中的内网规则。 +// * Ipv6CidrBlock字段允许输入符合IPv6 cidr格式标准的任意字符串。(展开)在基础网络中,如果Ipv6CidrBlock包含您的账户内的云服务器之外的设备在腾讯云的内网IPv6,并不代表此规则允许您访问这些设备,租户之间网络隔离规则优先于安全组中的内网规则。 +// * SecurityGroupId字段允许输入与待修改的安全组位于相同项目中的安全组ID,包括这个安全组ID本身,代表安全组下所有云服务器的内网IP。使用这个字段时,这条规则用来匹配网络报文的过程中会随着被使用的这个ID所关联的云服务器变化而变化,不需要重新修改。 +// * Port字段允许输入一个单独端口号,或者用减号分隔的两个端口号代表端口范围,例如80或8000-8010。只有当Protocol字段是TCP或UDP时,Port字段才被接受,即Protocol字段不是TCP或UDP时,Protocol和Port排他关系,不允许同时输入,否则会接口报错。 +// * Action字段只允许输入ACCEPT或DROP。 +// * CidrBlock, Ipv6CidrBlock, SecurityGroupId, AddressTemplate四者是排他关系,不允许同时输入,Protocol + Port和ServiceTemplate二者是排他关系,不允许同时输入。 +// * 一次请求中只能创建单个方向的规则, 如果需要指定索引(PolicyIndex)参数, 多条规则的索引必须一致。 +func (c *Client) CreateSecurityGroupPolicies(request *CreateSecurityGroupPoliciesRequest) (response *CreateSecurityGroupPoliciesResponse, err error) { + if request == nil { + request = NewCreateSecurityGroupPoliciesRequest() + } + response = NewCreateSecurityGroupPoliciesResponse() + err = c.Send(request, response) + return +} + +func NewCreateServiceTemplateRequest() (request *CreateServiceTemplateRequest) { + request = &CreateServiceTemplateRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateServiceTemplate") + return +} + +func NewCreateServiceTemplateResponse() (response *CreateServiceTemplateResponse) { + response = &CreateServiceTemplateResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateServiceTemplate)用于创建协议端口模板 +func (c *Client) CreateServiceTemplate(request *CreateServiceTemplateRequest) (response *CreateServiceTemplateResponse, err error) { + if request == nil { + request = NewCreateServiceTemplateRequest() + } + response = NewCreateServiceTemplateResponse() + err = c.Send(request, response) + return +} + +func NewCreateServiceTemplateGroupRequest() (request *CreateServiceTemplateGroupRequest) { + request = &CreateServiceTemplateGroupRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateServiceTemplateGroup") + return +} + +func NewCreateServiceTemplateGroupResponse() (response *CreateServiceTemplateGroupResponse) { + response = &CreateServiceTemplateGroupResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateServiceTemplateGroup)用于创建协议端口模板集合 +func (c *Client) CreateServiceTemplateGroup(request *CreateServiceTemplateGroupRequest) (response *CreateServiceTemplateGroupResponse, err error) { + if request == nil { + request = NewCreateServiceTemplateGroupRequest() + } + response = NewCreateServiceTemplateGroupResponse() + err = c.Send(request, response) + return +} + +func NewCreateSubnetRequest() (request *CreateSubnetRequest) { + request = &CreateSubnetRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateSubnet") + return +} + +func NewCreateSubnetResponse() (response *CreateSubnetResponse) { + response = &CreateSubnetResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateSubnet)用于创建子网。 +// * 创建子网前必须创建好 VPC。 +// * 子网创建成功后,子网网段不能修改。子网网段必须在VPC网段内,可以和VPC网段相同(VPC有且只有一个子网时),建议子网网段在VPC网段内,预留网段给其他子网使用。 +// * 您可以创建的最小网段子网掩码为28(有16个IP地址),最大网段子网掩码为16(65,536个IP地址)。 +// * 同一个VPC内,多个子网的网段不能重叠。 +// * 子网创建后会自动关联到默认路由表。 +// * 创建子网同时可以绑定标签, 应答里的标签列表代表添加成功的标签。 +func (c *Client) CreateSubnet(request *CreateSubnetRequest) (response *CreateSubnetResponse, err error) { + if request == nil { + request = NewCreateSubnetRequest() + } + response = NewCreateSubnetResponse() + err = c.Send(request, response) + return +} + +func NewCreateSubnetsRequest() (request *CreateSubnetsRequest) { + request = &CreateSubnetsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateSubnets") + return +} + +func NewCreateSubnetsResponse() (response *CreateSubnetsResponse) { + response = &CreateSubnetsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateSubnets)用于批量创建子网。 +// * 创建子网前必须创建好 VPC。 +// * 子网创建成功后,子网网段不能修改。子网网段必须在VPC网段内,可以和VPC网段相同(VPC有且只有一个子网时),建议子网网段在VPC网段内,预留网段给其他子网使用。 +// * 您可以创建的最小网段子网掩码为28(有16个IP地址),最大网段子网掩码为16(65,536个IP地址)。 +// * 同一个VPC内,多个子网的网段不能重叠。 +// * 子网创建后会自动关联到默认路由表。 +// * 创建子网同时可以绑定标签, 应答里的标签列表代表添加成功的标签。 +func (c *Client) CreateSubnets(request *CreateSubnetsRequest) (response *CreateSubnetsResponse, err error) { + if request == nil { + request = NewCreateSubnetsRequest() + } + response = NewCreateSubnetsResponse() + err = c.Send(request, response) + return +} + +func NewCreateVpcRequest() (request *CreateVpcRequest) { + request = &CreateVpcRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateVpc") + return +} + +func NewCreateVpcResponse() (response *CreateVpcResponse) { + response = &CreateVpcResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateVpc)用于创建私有网络(VPC)。 +// * 用户可以创建的最小网段子网掩码为28(有16个IP地址),最大网段子网掩码为16(65,536个IP地址),如果规划VPC网段请参见VPC网段规划说明。 +// * 同一个地域能创建的VPC资源个数也是有限制的,详见 VPC使用限制,如果需要扩充请联系在线客服。 +// * 创建VPC同时可以绑定标签, 应答里的标签列表代表添加成功的标签。 +func (c *Client) CreateVpc(request *CreateVpcRequest) (response *CreateVpcResponse, err error) { + if request == nil { + request = NewCreateVpcRequest() + } + response = NewCreateVpcResponse() + err = c.Send(request, response) + return +} + +func NewCreateVpnConnectionRequest() (request *CreateVpnConnectionRequest) { + request = &CreateVpnConnectionRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateVpnConnection") + return +} + +func NewCreateVpnConnectionResponse() (response *CreateVpnConnectionResponse) { + response = &CreateVpnConnectionResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateVpnConnection)用于创建VPN通道。 +func (c *Client) CreateVpnConnection(request *CreateVpnConnectionRequest) (response *CreateVpnConnectionResponse, err error) { + if request == nil { + request = NewCreateVpnConnectionRequest() + } + response = NewCreateVpnConnectionResponse() + err = c.Send(request, response) + return +} + +func NewCreateVpnGatewayRequest() (request *CreateVpnGatewayRequest) { + request = &CreateVpnGatewayRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "CreateVpnGateway") + return +} + +func NewCreateVpnGatewayResponse() (response *CreateVpnGatewayResponse) { + response = &CreateVpnGatewayResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(CreateVpnGateway)用于创建VPN网关。 +func (c *Client) CreateVpnGateway(request *CreateVpnGatewayRequest) (response *CreateVpnGatewayResponse, err error) { + if request == nil { + request = NewCreateVpnGatewayRequest() + } + response = NewCreateVpnGatewayResponse() + err = c.Send(request, response) + return +} + +func NewDeleteAddressTemplateRequest() (request *DeleteAddressTemplateRequest) { + request = &DeleteAddressTemplateRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteAddressTemplate") + return +} + +func NewDeleteAddressTemplateResponse() (response *DeleteAddressTemplateResponse) { + response = &DeleteAddressTemplateResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteAddressTemplate)用于删除IP地址模板 +func (c *Client) DeleteAddressTemplate(request *DeleteAddressTemplateRequest) (response *DeleteAddressTemplateResponse, err error) { + if request == nil { + request = NewDeleteAddressTemplateRequest() + } + response = NewDeleteAddressTemplateResponse() + err = c.Send(request, response) + return +} + +func NewDeleteAddressTemplateGroupRequest() (request *DeleteAddressTemplateGroupRequest) { + request = &DeleteAddressTemplateGroupRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteAddressTemplateGroup") + return +} + +func NewDeleteAddressTemplateGroupResponse() (response *DeleteAddressTemplateGroupResponse) { + response = &DeleteAddressTemplateGroupResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteAddressTemplateGroup)用于删除IP地址模板集合 +func (c *Client) DeleteAddressTemplateGroup(request *DeleteAddressTemplateGroupRequest) (response *DeleteAddressTemplateGroupResponse, err error) { + if request == nil { + request = NewDeleteAddressTemplateGroupRequest() + } + response = NewDeleteAddressTemplateGroupResponse() + err = c.Send(request, response) + return +} + +func NewDeleteBandwidthPackageRequest() (request *DeleteBandwidthPackageRequest) { + request = &DeleteBandwidthPackageRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteBandwidthPackage") + return +} + +func NewDeleteBandwidthPackageResponse() (response *DeleteBandwidthPackageResponse) { + response = &DeleteBandwidthPackageResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 接口支持删除共享带宽包,包括[设备带宽包](https://cloud.tencent.com/document/product/684/15246#.E8.AE.BE.E5.A4.87.E5.B8.A6.E5.AE.BD.E5.8C.85)和[IP带宽包](https://cloud.tencent.com/document/product/684/15246#ip-.E5.B8.A6.E5.AE.BD.E5.8C.85) +func (c *Client) DeleteBandwidthPackage(request *DeleteBandwidthPackageRequest) (response *DeleteBandwidthPackageResponse, err error) { + if request == nil { + request = NewDeleteBandwidthPackageRequest() + } + response = NewDeleteBandwidthPackageResponse() + err = c.Send(request, response) + return +} + +func NewDeleteCcnRequest() (request *DeleteCcnRequest) { + request = &DeleteCcnRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteCcn") + return +} + +func NewDeleteCcnResponse() (response *DeleteCcnResponse) { + response = &DeleteCcnResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteCcn)用于删除云联网。 +// * 删除后,云联网关联的所有实例间路由将被删除,网络将会中断,请务必确认 +// * 删除云联网是不可逆的操作,请谨慎处理。 +func (c *Client) DeleteCcn(request *DeleteCcnRequest) (response *DeleteCcnResponse, err error) { + if request == nil { + request = NewDeleteCcnRequest() + } + response = NewDeleteCcnResponse() + err = c.Send(request, response) + return +} + +func NewDeleteCustomerGatewayRequest() (request *DeleteCustomerGatewayRequest) { + request = &DeleteCustomerGatewayRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteCustomerGateway") + return +} + +func NewDeleteCustomerGatewayResponse() (response *DeleteCustomerGatewayResponse) { + response = &DeleteCustomerGatewayResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteCustomerGateway)用于删除对端网关。 +func (c *Client) DeleteCustomerGateway(request *DeleteCustomerGatewayRequest) (response *DeleteCustomerGatewayResponse, err error) { + if request == nil { + request = NewDeleteCustomerGatewayRequest() + } + response = NewDeleteCustomerGatewayResponse() + err = c.Send(request, response) + return +} + +func NewDeleteDirectConnectGatewayRequest() (request *DeleteDirectConnectGatewayRequest) { + request = &DeleteDirectConnectGatewayRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteDirectConnectGateway") + return +} + +func NewDeleteDirectConnectGatewayResponse() (response *DeleteDirectConnectGatewayResponse) { + response = &DeleteDirectConnectGatewayResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteDirectConnectGateway)用于删除专线网关。 +//
  • 如果是 NAT 网关,删除专线网关后,NAT 规则以及 ACL 策略都被清理了。
  • +//
  • 删除专线网关后,系统会删除路由表中跟该专线网关相关的路由策略。
  • +// 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`QueryTask`接口 +func (c *Client) DeleteDirectConnectGateway(request *DeleteDirectConnectGatewayRequest) (response *DeleteDirectConnectGatewayResponse, err error) { + if request == nil { + request = NewDeleteDirectConnectGatewayRequest() + } + response = NewDeleteDirectConnectGatewayResponse() + err = c.Send(request, response) + return +} + +func NewDeleteDirectConnectGatewayCcnRoutesRequest() (request *DeleteDirectConnectGatewayCcnRoutesRequest) { + request = &DeleteDirectConnectGatewayCcnRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteDirectConnectGatewayCcnRoutes") + return +} + +func NewDeleteDirectConnectGatewayCcnRoutesResponse() (response *DeleteDirectConnectGatewayCcnRoutesResponse) { + response = &DeleteDirectConnectGatewayCcnRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteDirectConnectGatewayCcnRoutes)用于删除专线网关的云联网路由(IDC网段) +func (c *Client) DeleteDirectConnectGatewayCcnRoutes(request *DeleteDirectConnectGatewayCcnRoutesRequest) (response *DeleteDirectConnectGatewayCcnRoutesResponse, err error) { + if request == nil { + request = NewDeleteDirectConnectGatewayCcnRoutesRequest() + } + response = NewDeleteDirectConnectGatewayCcnRoutesResponse() + err = c.Send(request, response) + return +} + +func NewDeleteFlowLogRequest() (request *DeleteFlowLogRequest) { + request = &DeleteFlowLogRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteFlowLog") + return +} + +func NewDeleteFlowLogResponse() (response *DeleteFlowLogResponse) { + response = &DeleteFlowLogResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteFlowLog)用于删除流日志 +func (c *Client) DeleteFlowLog(request *DeleteFlowLogRequest) (response *DeleteFlowLogResponse, err error) { + if request == nil { + request = NewDeleteFlowLogRequest() + } + response = NewDeleteFlowLogResponse() + err = c.Send(request, response) + return +} + +func NewDeleteHaVipRequest() (request *DeleteHaVipRequest) { + request = &DeleteHaVipRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteHaVip") + return +} + +func NewDeleteHaVipResponse() (response *DeleteHaVipResponse) { + response = &DeleteHaVipResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteHaVip)用于删除高可用虚拟IP(HAVIP)
    +// 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`QueryTask`接口 +func (c *Client) DeleteHaVip(request *DeleteHaVipRequest) (response *DeleteHaVipResponse, err error) { + if request == nil { + request = NewDeleteHaVipRequest() + } + response = NewDeleteHaVipResponse() + err = c.Send(request, response) + return +} + +func NewDeleteIp6TranslatorsRequest() (request *DeleteIp6TranslatorsRequest) { + request = &DeleteIp6TranslatorsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteIp6Translators") + return +} + +func NewDeleteIp6TranslatorsResponse() (response *DeleteIp6TranslatorsResponse) { + response = &DeleteIp6TranslatorsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 1. 该接口用于释放IPV6转换实例,支持批量。 +// 2. 如果IPV6转换实例建立有转换规则,会一并删除。 +func (c *Client) DeleteIp6Translators(request *DeleteIp6TranslatorsRequest) (response *DeleteIp6TranslatorsResponse, err error) { + if request == nil { + request = NewDeleteIp6TranslatorsRequest() + } + response = NewDeleteIp6TranslatorsResponse() + err = c.Send(request, response) + return +} + +func NewDeleteNatGatewayRequest() (request *DeleteNatGatewayRequest) { + request = &DeleteNatGatewayRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteNatGateway") + return +} + +func NewDeleteNatGatewayResponse() (response *DeleteNatGatewayResponse) { + response = &DeleteNatGatewayResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteNatGateway)用于删除NAT网关。 +// 删除 NAT 网关后,系统会自动删除路由表中包含此 NAT 网关的路由项,同时也会解绑弹性公网IP(EIP)。 +func (c *Client) DeleteNatGateway(request *DeleteNatGatewayRequest) (response *DeleteNatGatewayResponse, err error) { + if request == nil { + request = NewDeleteNatGatewayRequest() + } + response = NewDeleteNatGatewayResponse() + err = c.Send(request, response) + return +} + +func NewDeleteNatGatewayDestinationIpPortTranslationNatRuleRequest() (request *DeleteNatGatewayDestinationIpPortTranslationNatRuleRequest) { + request = &DeleteNatGatewayDestinationIpPortTranslationNatRuleRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteNatGatewayDestinationIpPortTranslationNatRule") + return +} + +func NewDeleteNatGatewayDestinationIpPortTranslationNatRuleResponse() (response *DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse) { + response = &DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteNatGatewayDestinationIpPortTranslationNatRule)用于删除NAT网关端口转发规则。 +func (c *Client) DeleteNatGatewayDestinationIpPortTranslationNatRule(request *DeleteNatGatewayDestinationIpPortTranslationNatRuleRequest) (response *DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse, err error) { + if request == nil { + request = NewDeleteNatGatewayDestinationIpPortTranslationNatRuleRequest() + } + response = NewDeleteNatGatewayDestinationIpPortTranslationNatRuleResponse() + err = c.Send(request, response) + return +} + +func NewDeleteNetDetectRequest() (request *DeleteNetDetectRequest) { + request = &DeleteNetDetectRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteNetDetect") + return +} + +func NewDeleteNetDetectResponse() (response *DeleteNetDetectResponse) { + response = &DeleteNetDetectResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteNetDetect)用于删除网络探测实例。 +func (c *Client) DeleteNetDetect(request *DeleteNetDetectRequest) (response *DeleteNetDetectResponse, err error) { + if request == nil { + request = NewDeleteNetDetectRequest() + } + response = NewDeleteNetDetectResponse() + err = c.Send(request, response) + return +} + +func NewDeleteNetworkAclRequest() (request *DeleteNetworkAclRequest) { + request = &DeleteNetworkAclRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteNetworkAcl") + return +} + +func NewDeleteNetworkAclResponse() (response *DeleteNetworkAclResponse) { + response = &DeleteNetworkAclResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteNetworkAcl)用于删除网络ACL。 +func (c *Client) DeleteNetworkAcl(request *DeleteNetworkAclRequest) (response *DeleteNetworkAclResponse, err error) { + if request == nil { + request = NewDeleteNetworkAclRequest() + } + response = NewDeleteNetworkAclResponse() + err = c.Send(request, response) + return +} + +func NewDeleteNetworkInterfaceRequest() (request *DeleteNetworkInterfaceRequest) { + request = &DeleteNetworkInterfaceRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteNetworkInterface") + return +} + +func NewDeleteNetworkInterfaceResponse() (response *DeleteNetworkInterfaceResponse) { + response = &DeleteNetworkInterfaceResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteNetworkInterface)用于删除弹性网卡。 +// * 弹性网卡上绑定了云服务器时,不能被删除。 +// * 删除指定弹性网卡,弹性网卡必须先和子机解绑才能删除。删除之后弹性网卡上所有内网IP都将被退还。 +func (c *Client) DeleteNetworkInterface(request *DeleteNetworkInterfaceRequest) (response *DeleteNetworkInterfaceResponse, err error) { + if request == nil { + request = NewDeleteNetworkInterfaceRequest() + } + response = NewDeleteNetworkInterfaceResponse() + err = c.Send(request, response) + return +} + +func NewDeleteRouteTableRequest() (request *DeleteRouteTableRequest) { + request = &DeleteRouteTableRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteRouteTable") + return +} + +func NewDeleteRouteTableResponse() (response *DeleteRouteTableResponse) { + response = &DeleteRouteTableResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 删除路由表 +func (c *Client) DeleteRouteTable(request *DeleteRouteTableRequest) (response *DeleteRouteTableResponse, err error) { + if request == nil { + request = NewDeleteRouteTableRequest() + } + response = NewDeleteRouteTableResponse() + err = c.Send(request, response) + return +} + +func NewDeleteRoutesRequest() (request *DeleteRoutesRequest) { + request = &DeleteRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteRoutes") + return +} + +func NewDeleteRoutesResponse() (response *DeleteRoutesResponse) { + response = &DeleteRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteRoutes)用于对某个路由表批量删除路由策略(Route)。 +func (c *Client) DeleteRoutes(request *DeleteRoutesRequest) (response *DeleteRoutesResponse, err error) { + if request == nil { + request = NewDeleteRoutesRequest() + } + response = NewDeleteRoutesResponse() + err = c.Send(request, response) + return +} + +func NewDeleteSecurityGroupRequest() (request *DeleteSecurityGroupRequest) { + request = &DeleteSecurityGroupRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteSecurityGroup") + return +} + +func NewDeleteSecurityGroupResponse() (response *DeleteSecurityGroupResponse) { + response = &DeleteSecurityGroupResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteSecurityGroup)用于删除安全组(SecurityGroup)。 +// * 只有当前账号下的安全组允许被删除。 +// * 安全组实例ID如果在其他安全组的规则中被引用,则无法直接删除。这种情况下,需要先进行规则修改,再删除安全组。 +// * 删除的安全组无法再找回,请谨慎调用。 +func (c *Client) DeleteSecurityGroup(request *DeleteSecurityGroupRequest) (response *DeleteSecurityGroupResponse, err error) { + if request == nil { + request = NewDeleteSecurityGroupRequest() + } + response = NewDeleteSecurityGroupResponse() + err = c.Send(request, response) + return +} + +func NewDeleteSecurityGroupPoliciesRequest() (request *DeleteSecurityGroupPoliciesRequest) { + request = &DeleteSecurityGroupPoliciesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteSecurityGroupPolicies") + return +} + +func NewDeleteSecurityGroupPoliciesResponse() (response *DeleteSecurityGroupPoliciesResponse) { + response = &DeleteSecurityGroupPoliciesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteSecurityGroupPolicies)用于用于删除安全组规则(SecurityGroupPolicy)。 +// * SecurityGroupPolicySet.Version 用于指定要操作的安全组的版本。传入 Version 版本号若不等于当前安全组的最新版本,将返回失败;若不传 Version 则直接删除指定PolicyIndex的规则。 +func (c *Client) DeleteSecurityGroupPolicies(request *DeleteSecurityGroupPoliciesRequest) (response *DeleteSecurityGroupPoliciesResponse, err error) { + if request == nil { + request = NewDeleteSecurityGroupPoliciesRequest() + } + response = NewDeleteSecurityGroupPoliciesResponse() + err = c.Send(request, response) + return +} + +func NewDeleteServiceTemplateRequest() (request *DeleteServiceTemplateRequest) { + request = &DeleteServiceTemplateRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteServiceTemplate") + return +} + +func NewDeleteServiceTemplateResponse() (response *DeleteServiceTemplateResponse) { + response = &DeleteServiceTemplateResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteServiceTemplate)用于删除协议端口模板 +func (c *Client) DeleteServiceTemplate(request *DeleteServiceTemplateRequest) (response *DeleteServiceTemplateResponse, err error) { + if request == nil { + request = NewDeleteServiceTemplateRequest() + } + response = NewDeleteServiceTemplateResponse() + err = c.Send(request, response) + return +} + +func NewDeleteServiceTemplateGroupRequest() (request *DeleteServiceTemplateGroupRequest) { + request = &DeleteServiceTemplateGroupRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteServiceTemplateGroup") + return +} + +func NewDeleteServiceTemplateGroupResponse() (response *DeleteServiceTemplateGroupResponse) { + response = &DeleteServiceTemplateGroupResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteServiceTemplateGroup)用于删除协议端口模板集合 +func (c *Client) DeleteServiceTemplateGroup(request *DeleteServiceTemplateGroupRequest) (response *DeleteServiceTemplateGroupResponse, err error) { + if request == nil { + request = NewDeleteServiceTemplateGroupRequest() + } + response = NewDeleteServiceTemplateGroupResponse() + err = c.Send(request, response) + return +} + +func NewDeleteSubnetRequest() (request *DeleteSubnetRequest) { + request = &DeleteSubnetRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteSubnet") + return +} + +func NewDeleteSubnetResponse() (response *DeleteSubnetResponse) { + response = &DeleteSubnetResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteSubnet)用于用于删除子网(Subnet)。 +// * 删除子网前,请清理该子网下所有资源,包括云服务器、负载均衡、云数据、noSql、弹性网卡等资源。 +func (c *Client) DeleteSubnet(request *DeleteSubnetRequest) (response *DeleteSubnetResponse, err error) { + if request == nil { + request = NewDeleteSubnetRequest() + } + response = NewDeleteSubnetResponse() + err = c.Send(request, response) + return +} + +func NewDeleteVpcRequest() (request *DeleteVpcRequest) { + request = &DeleteVpcRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteVpc") + return +} + +func NewDeleteVpcResponse() (response *DeleteVpcResponse) { + response = &DeleteVpcResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteVpc)用于删除私有网络。 +// * 删除前请确保 VPC 内已经没有相关资源,例如云服务器、云数据库、NoSQL、VPN网关、专线网关、负载均衡、对等连接、与之互通的基础网络设备等。 +// * 删除私有网络是不可逆的操作,请谨慎处理。 +func (c *Client) DeleteVpc(request *DeleteVpcRequest) (response *DeleteVpcResponse, err error) { + if request == nil { + request = NewDeleteVpcRequest() + } + response = NewDeleteVpcResponse() + err = c.Send(request, response) + return +} + +func NewDeleteVpnConnectionRequest() (request *DeleteVpnConnectionRequest) { + request = &DeleteVpnConnectionRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteVpnConnection") + return +} + +func NewDeleteVpnConnectionResponse() (response *DeleteVpnConnectionResponse) { + response = &DeleteVpnConnectionResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteVpnConnection)用于删除VPN通道。 +func (c *Client) DeleteVpnConnection(request *DeleteVpnConnectionRequest) (response *DeleteVpnConnectionResponse, err error) { + if request == nil { + request = NewDeleteVpnConnectionRequest() + } + response = NewDeleteVpnConnectionResponse() + err = c.Send(request, response) + return +} + +func NewDeleteVpnGatewayRequest() (request *DeleteVpnGatewayRequest) { + request = &DeleteVpnGatewayRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteVpnGateway") + return +} + +func NewDeleteVpnGatewayResponse() (response *DeleteVpnGatewayResponse) { + response = &DeleteVpnGatewayResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DeleteVpnGateway)用于删除VPN网关。目前只支持删除运行中的按量计费的IPSEC网关实例。 +func (c *Client) DeleteVpnGateway(request *DeleteVpnGatewayRequest) (response *DeleteVpnGatewayResponse, err error) { + if request == nil { + request = NewDeleteVpnGatewayRequest() + } + response = NewDeleteVpnGatewayResponse() + err = c.Send(request, response) + return +} + +func NewDescribeAccountAttributesRequest() (request *DescribeAccountAttributesRequest) { + request = &DescribeAccountAttributesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeAccountAttributes") + return +} + +func NewDescribeAccountAttributesResponse() (response *DescribeAccountAttributesResponse) { + response = &DescribeAccountAttributesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeAccountAttributes)用于查询用户账号私有属性。 +func (c *Client) DescribeAccountAttributes(request *DescribeAccountAttributesRequest) (response *DescribeAccountAttributesResponse, err error) { + if request == nil { + request = NewDescribeAccountAttributesRequest() + } + response = NewDescribeAccountAttributesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeAddressQuotaRequest() (request *DescribeAddressQuotaRequest) { + request = &DescribeAddressQuotaRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeAddressQuota") + return +} + +func NewDescribeAddressQuotaResponse() (response *DescribeAddressQuotaResponse) { + response = &DescribeAddressQuotaResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口 (DescribeAddressQuota) 用于查询您账户的[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)在当前地域的配额信息。配额详情可参见 [EIP 产品简介](https://cloud.tencent.com/document/product/213/5733)。 +func (c *Client) DescribeAddressQuota(request *DescribeAddressQuotaRequest) (response *DescribeAddressQuotaResponse, err error) { + if request == nil { + request = NewDescribeAddressQuotaRequest() + } + response = NewDescribeAddressQuotaResponse() + err = c.Send(request, response) + return +} + +func NewDescribeAddressTemplateGroupsRequest() (request *DescribeAddressTemplateGroupsRequest) { + request = &DescribeAddressTemplateGroupsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeAddressTemplateGroups") + return +} + +func NewDescribeAddressTemplateGroupsResponse() (response *DescribeAddressTemplateGroupsResponse) { + response = &DescribeAddressTemplateGroupsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeAddressTemplateGroups)用于查询IP地址模板集合 +func (c *Client) DescribeAddressTemplateGroups(request *DescribeAddressTemplateGroupsRequest) (response *DescribeAddressTemplateGroupsResponse, err error) { + if request == nil { + request = NewDescribeAddressTemplateGroupsRequest() + } + response = NewDescribeAddressTemplateGroupsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeAddressTemplatesRequest() (request *DescribeAddressTemplatesRequest) { + request = &DescribeAddressTemplatesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeAddressTemplates") + return +} + +func NewDescribeAddressTemplatesResponse() (response *DescribeAddressTemplatesResponse) { + response = &DescribeAddressTemplatesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeAddressTemplates)用于查询IP地址模板 +func (c *Client) DescribeAddressTemplates(request *DescribeAddressTemplatesRequest) (response *DescribeAddressTemplatesResponse, err error) { + if request == nil { + request = NewDescribeAddressTemplatesRequest() + } + response = NewDescribeAddressTemplatesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeAddressesRequest() (request *DescribeAddressesRequest) { + request = &DescribeAddressesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeAddresses") + return +} + +func NewDescribeAddressesResponse() (response *DescribeAddressesResponse) { + response = &DescribeAddressesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口 (DescribeAddresses) 用于查询一个或多个[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)的详细信息。 +// * 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的 EIP。 +func (c *Client) DescribeAddresses(request *DescribeAddressesRequest) (response *DescribeAddressesResponse, err error) { + if request == nil { + request = NewDescribeAddressesRequest() + } + response = NewDescribeAddressesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeBandwidthPackageQuotaRequest() (request *DescribeBandwidthPackageQuotaRequest) { + request = &DescribeBandwidthPackageQuotaRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeBandwidthPackageQuota") + return +} + +func NewDescribeBandwidthPackageQuotaResponse() (response *DescribeBandwidthPackageQuotaResponse) { + response = &DescribeBandwidthPackageQuotaResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 接口用于查询账户在当前地域的带宽包上限数量以及使用数量 +func (c *Client) DescribeBandwidthPackageQuota(request *DescribeBandwidthPackageQuotaRequest) (response *DescribeBandwidthPackageQuotaResponse, err error) { + if request == nil { + request = NewDescribeBandwidthPackageQuotaRequest() + } + response = NewDescribeBandwidthPackageQuotaResponse() + err = c.Send(request, response) + return +} + +func NewDescribeBandwidthPackagesRequest() (request *DescribeBandwidthPackagesRequest) { + request = &DescribeBandwidthPackagesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeBandwidthPackages") + return +} + +func NewDescribeBandwidthPackagesResponse() (response *DescribeBandwidthPackagesResponse) { + response = &DescribeBandwidthPackagesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 接口用于查询带宽包详细信息,包括带宽包唯一标识ID,类型,计费模式,名称,资源信息等 +func (c *Client) DescribeBandwidthPackages(request *DescribeBandwidthPackagesRequest) (response *DescribeBandwidthPackagesResponse, err error) { + if request == nil { + request = NewDescribeBandwidthPackagesRequest() + } + response = NewDescribeBandwidthPackagesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeCcnAttachedInstancesRequest() (request *DescribeCcnAttachedInstancesRequest) { + request = &DescribeCcnAttachedInstancesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCcnAttachedInstances") + return +} + +func NewDescribeCcnAttachedInstancesResponse() (response *DescribeCcnAttachedInstancesResponse) { + response = &DescribeCcnAttachedInstancesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeCcnAttachedInstances)用于查询云联网实例下已关联的网络实例。 +func (c *Client) DescribeCcnAttachedInstances(request *DescribeCcnAttachedInstancesRequest) (response *DescribeCcnAttachedInstancesResponse, err error) { + if request == nil { + request = NewDescribeCcnAttachedInstancesRequest() + } + response = NewDescribeCcnAttachedInstancesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeCcnRegionBandwidthLimitsRequest() (request *DescribeCcnRegionBandwidthLimitsRequest) { + request = &DescribeCcnRegionBandwidthLimitsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCcnRegionBandwidthLimits") + return +} + +func NewDescribeCcnRegionBandwidthLimitsResponse() (response *DescribeCcnRegionBandwidthLimitsResponse) { + response = &DescribeCcnRegionBandwidthLimitsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeCcnRegionBandwidthLimits)用于查询云联网各地域出带宽上限,该接口只返回已关联网络实例包含的地域 +func (c *Client) DescribeCcnRegionBandwidthLimits(request *DescribeCcnRegionBandwidthLimitsRequest) (response *DescribeCcnRegionBandwidthLimitsResponse, err error) { + if request == nil { + request = NewDescribeCcnRegionBandwidthLimitsRequest() + } + response = NewDescribeCcnRegionBandwidthLimitsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeCcnRoutesRequest() (request *DescribeCcnRoutesRequest) { + request = &DescribeCcnRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCcnRoutes") + return +} + +func NewDescribeCcnRoutesResponse() (response *DescribeCcnRoutesResponse) { + response = &DescribeCcnRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeCcnRoutes)用于查询已加入云联网(CCN)的路由 +func (c *Client) DescribeCcnRoutes(request *DescribeCcnRoutesRequest) (response *DescribeCcnRoutesResponse, err error) { + if request == nil { + request = NewDescribeCcnRoutesRequest() + } + response = NewDescribeCcnRoutesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeCcnsRequest() (request *DescribeCcnsRequest) { + request = &DescribeCcnsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCcns") + return +} + +func NewDescribeCcnsResponse() (response *DescribeCcnsResponse) { + response = &DescribeCcnsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeCcns)用于查询云联网(CCN)列表。 +func (c *Client) DescribeCcns(request *DescribeCcnsRequest) (response *DescribeCcnsResponse, err error) { + if request == nil { + request = NewDescribeCcnsRequest() + } + response = NewDescribeCcnsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeClassicLinkInstancesRequest() (request *DescribeClassicLinkInstancesRequest) { + request = &DescribeClassicLinkInstancesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeClassicLinkInstances") + return +} + +func NewDescribeClassicLinkInstancesResponse() (response *DescribeClassicLinkInstancesResponse) { + response = &DescribeClassicLinkInstancesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeClassicLinkInstances)用于查询私有网络和基础网络设备互通列表。 +func (c *Client) DescribeClassicLinkInstances(request *DescribeClassicLinkInstancesRequest) (response *DescribeClassicLinkInstancesResponse, err error) { + if request == nil { + request = NewDescribeClassicLinkInstancesRequest() + } + response = NewDescribeClassicLinkInstancesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeCustomerGatewayVendorsRequest() (request *DescribeCustomerGatewayVendorsRequest) { + request = &DescribeCustomerGatewayVendorsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCustomerGatewayVendors") + return +} + +func NewDescribeCustomerGatewayVendorsResponse() (response *DescribeCustomerGatewayVendorsResponse) { + response = &DescribeCustomerGatewayVendorsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeCustomerGatewayVendors)用于查询可支持的对端网关厂商信息。 +func (c *Client) DescribeCustomerGatewayVendors(request *DescribeCustomerGatewayVendorsRequest) (response *DescribeCustomerGatewayVendorsResponse, err error) { + if request == nil { + request = NewDescribeCustomerGatewayVendorsRequest() + } + response = NewDescribeCustomerGatewayVendorsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeCustomerGatewaysRequest() (request *DescribeCustomerGatewaysRequest) { + request = &DescribeCustomerGatewaysRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCustomerGateways") + return +} + +func NewDescribeCustomerGatewaysResponse() (response *DescribeCustomerGatewaysResponse) { + response = &DescribeCustomerGatewaysResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeCustomerGateways)用于查询对端网关列表。 +func (c *Client) DescribeCustomerGateways(request *DescribeCustomerGatewaysRequest) (response *DescribeCustomerGatewaysResponse, err error) { + if request == nil { + request = NewDescribeCustomerGatewaysRequest() + } + response = NewDescribeCustomerGatewaysResponse() + err = c.Send(request, response) + return +} + +func NewDescribeDirectConnectGatewayCcnRoutesRequest() (request *DescribeDirectConnectGatewayCcnRoutesRequest) { + request = &DescribeDirectConnectGatewayCcnRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeDirectConnectGatewayCcnRoutes") + return +} + +func NewDescribeDirectConnectGatewayCcnRoutesResponse() (response *DescribeDirectConnectGatewayCcnRoutesResponse) { + response = &DescribeDirectConnectGatewayCcnRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeDirectConnectGatewayCcnRoutes)用于查询专线网关的云联网路由(IDC网段) +func (c *Client) DescribeDirectConnectGatewayCcnRoutes(request *DescribeDirectConnectGatewayCcnRoutesRequest) (response *DescribeDirectConnectGatewayCcnRoutesResponse, err error) { + if request == nil { + request = NewDescribeDirectConnectGatewayCcnRoutesRequest() + } + response = NewDescribeDirectConnectGatewayCcnRoutesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeDirectConnectGatewaysRequest() (request *DescribeDirectConnectGatewaysRequest) { + request = &DescribeDirectConnectGatewaysRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeDirectConnectGateways") + return +} + +func NewDescribeDirectConnectGatewaysResponse() (response *DescribeDirectConnectGatewaysResponse) { + response = &DescribeDirectConnectGatewaysResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeDirectConnectGateways)用于查询专线网关。 +func (c *Client) DescribeDirectConnectGateways(request *DescribeDirectConnectGatewaysRequest) (response *DescribeDirectConnectGatewaysResponse, err error) { + if request == nil { + request = NewDescribeDirectConnectGatewaysRequest() + } + response = NewDescribeDirectConnectGatewaysResponse() + err = c.Send(request, response) + return +} + +func NewDescribeFlowLogRequest() (request *DescribeFlowLogRequest) { + request = &DescribeFlowLogRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeFlowLog") + return +} + +func NewDescribeFlowLogResponse() (response *DescribeFlowLogResponse) { + response = &DescribeFlowLogResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeFlowLog)用于查询流日志实例信息 +func (c *Client) DescribeFlowLog(request *DescribeFlowLogRequest) (response *DescribeFlowLogResponse, err error) { + if request == nil { + request = NewDescribeFlowLogRequest() + } + response = NewDescribeFlowLogResponse() + err = c.Send(request, response) + return +} + +func NewDescribeFlowLogsRequest() (request *DescribeFlowLogsRequest) { + request = &DescribeFlowLogsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeFlowLogs") + return +} + +func NewDescribeFlowLogsResponse() (response *DescribeFlowLogsResponse) { + response = &DescribeFlowLogsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeFlowLogs)用于查询获取流日志集合 +func (c *Client) DescribeFlowLogs(request *DescribeFlowLogsRequest) (response *DescribeFlowLogsResponse, err error) { + if request == nil { + request = NewDescribeFlowLogsRequest() + } + response = NewDescribeFlowLogsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeGatewayFlowMonitorDetailRequest() (request *DescribeGatewayFlowMonitorDetailRequest) { + request = &DescribeGatewayFlowMonitorDetailRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeGatewayFlowMonitorDetail") + return +} + +func NewDescribeGatewayFlowMonitorDetailResponse() (response *DescribeGatewayFlowMonitorDetailResponse) { + response = &DescribeGatewayFlowMonitorDetailResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeGatewayFlowMonitorDetail)用于查询网关流量监控明细。 +// * 只支持单个网关实例查询。即入参 `VpnId` `DirectConnectGatewayId` `PeeringConnectionId` `NatId` 最多只支持传一个,且必须传一个。 +// * 如果网关有流量,但调用本接口没有返回数据,请在控制台对应网关详情页确认是否开启网关流量监控。 +func (c *Client) DescribeGatewayFlowMonitorDetail(request *DescribeGatewayFlowMonitorDetailRequest) (response *DescribeGatewayFlowMonitorDetailResponse, err error) { + if request == nil { + request = NewDescribeGatewayFlowMonitorDetailRequest() + } + response = NewDescribeGatewayFlowMonitorDetailResponse() + err = c.Send(request, response) + return +} + +func NewDescribeHaVipsRequest() (request *DescribeHaVipsRequest) { + request = &DescribeHaVipsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeHaVips") + return +} + +func NewDescribeHaVipsResponse() (response *DescribeHaVipsResponse) { + response = &DescribeHaVipsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeHaVips)用于查询高可用虚拟IP(HAVIP)列表。 +func (c *Client) DescribeHaVips(request *DescribeHaVipsRequest) (response *DescribeHaVipsResponse, err error) { + if request == nil { + request = NewDescribeHaVipsRequest() + } + response = NewDescribeHaVipsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeIp6AddressesRequest() (request *DescribeIp6AddressesRequest) { + request = &DescribeIp6AddressesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeIp6Addresses") + return +} + +func NewDescribeIp6AddressesResponse() (response *DescribeIp6AddressesResponse) { + response = &DescribeIp6AddressesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 该接口用于查询IPV6地址信息 +func (c *Client) DescribeIp6Addresses(request *DescribeIp6AddressesRequest) (response *DescribeIp6AddressesResponse, err error) { + if request == nil { + request = NewDescribeIp6AddressesRequest() + } + response = NewDescribeIp6AddressesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeIp6TranslatorQuotaRequest() (request *DescribeIp6TranslatorQuotaRequest) { + request = &DescribeIp6TranslatorQuotaRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeIp6TranslatorQuota") + return +} + +func NewDescribeIp6TranslatorQuotaResponse() (response *DescribeIp6TranslatorQuotaResponse) { + response = &DescribeIp6TranslatorQuotaResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 查询账户在指定地域IPV6转换实例和规则的配额 +func (c *Client) DescribeIp6TranslatorQuota(request *DescribeIp6TranslatorQuotaRequest) (response *DescribeIp6TranslatorQuotaResponse, err error) { + if request == nil { + request = NewDescribeIp6TranslatorQuotaRequest() + } + response = NewDescribeIp6TranslatorQuotaResponse() + err = c.Send(request, response) + return +} + +func NewDescribeIp6TranslatorsRequest() (request *DescribeIp6TranslatorsRequest) { + request = &DescribeIp6TranslatorsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeIp6Translators") + return +} + +func NewDescribeIp6TranslatorsResponse() (response *DescribeIp6TranslatorsResponse) { + response = &DescribeIp6TranslatorsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 1. 该接口用于查询账户下的IPV6转换实例及其绑定的转换规则信息 +// 2. 支持过滤查询 +func (c *Client) DescribeIp6Translators(request *DescribeIp6TranslatorsRequest) (response *DescribeIp6TranslatorsResponse, err error) { + if request == nil { + request = NewDescribeIp6TranslatorsRequest() + } + response = NewDescribeIp6TranslatorsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeNatGatewayDestinationIpPortTranslationNatRulesRequest() (request *DescribeNatGatewayDestinationIpPortTranslationNatRulesRequest) { + request = &DescribeNatGatewayDestinationIpPortTranslationNatRulesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNatGatewayDestinationIpPortTranslationNatRules") + return +} + +func NewDescribeNatGatewayDestinationIpPortTranslationNatRulesResponse() (response *DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse) { + response = &DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeNatGatewayDestinationIpPortTranslationNatRules)用于查询NAT网关端口转发规则对象数组。 +func (c *Client) DescribeNatGatewayDestinationIpPortTranslationNatRules(request *DescribeNatGatewayDestinationIpPortTranslationNatRulesRequest) (response *DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse, err error) { + if request == nil { + request = NewDescribeNatGatewayDestinationIpPortTranslationNatRulesRequest() + } + response = NewDescribeNatGatewayDestinationIpPortTranslationNatRulesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeNatGatewaysRequest() (request *DescribeNatGatewaysRequest) { + request = &DescribeNatGatewaysRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNatGateways") + return +} + +func NewDescribeNatGatewaysResponse() (response *DescribeNatGatewaysResponse) { + response = &DescribeNatGatewaysResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeNatGateways)用于查询 NAT 网关。 +func (c *Client) DescribeNatGateways(request *DescribeNatGatewaysRequest) (response *DescribeNatGatewaysResponse, err error) { + if request == nil { + request = NewDescribeNatGatewaysRequest() + } + response = NewDescribeNatGatewaysResponse() + err = c.Send(request, response) + return +} + +func NewDescribeNetDetectStatesRequest() (request *DescribeNetDetectStatesRequest) { + request = &DescribeNetDetectStatesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNetDetectStates") + return +} + +func NewDescribeNetDetectStatesResponse() (response *DescribeNetDetectStatesResponse) { + response = &DescribeNetDetectStatesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeNetDetectStates)用于查询网络探测验证结果列表。 +func (c *Client) DescribeNetDetectStates(request *DescribeNetDetectStatesRequest) (response *DescribeNetDetectStatesResponse, err error) { + if request == nil { + request = NewDescribeNetDetectStatesRequest() + } + response = NewDescribeNetDetectStatesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeNetDetectsRequest() (request *DescribeNetDetectsRequest) { + request = &DescribeNetDetectsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNetDetects") + return +} + +func NewDescribeNetDetectsResponse() (response *DescribeNetDetectsResponse) { + response = &DescribeNetDetectsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeNetDetects)用于查询网络探测列表。 +func (c *Client) DescribeNetDetects(request *DescribeNetDetectsRequest) (response *DescribeNetDetectsResponse, err error) { + if request == nil { + request = NewDescribeNetDetectsRequest() + } + response = NewDescribeNetDetectsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeNetworkAclsRequest() (request *DescribeNetworkAclsRequest) { + request = &DescribeNetworkAclsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNetworkAcls") + return +} + +func NewDescribeNetworkAclsResponse() (response *DescribeNetworkAclsResponse) { + response = &DescribeNetworkAclsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeNetworkAcls)用于查询网络ACL列表。 +func (c *Client) DescribeNetworkAcls(request *DescribeNetworkAclsRequest) (response *DescribeNetworkAclsResponse, err error) { + if request == nil { + request = NewDescribeNetworkAclsRequest() + } + response = NewDescribeNetworkAclsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeNetworkInterfaceLimitRequest() (request *DescribeNetworkInterfaceLimitRequest) { + request = &DescribeNetworkInterfaceLimitRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNetworkInterfaceLimit") + return +} + +func NewDescribeNetworkInterfaceLimitResponse() (response *DescribeNetworkInterfaceLimitResponse) { + response = &DescribeNetworkInterfaceLimitResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeNetworkInterfaceLimit)根据CVM实例ID查询弹性网卡配额,返回该CVM实例能绑定的弹性网卡配额,以及每个弹性网卡可以分配的IP配额 +func (c *Client) DescribeNetworkInterfaceLimit(request *DescribeNetworkInterfaceLimitRequest) (response *DescribeNetworkInterfaceLimitResponse, err error) { + if request == nil { + request = NewDescribeNetworkInterfaceLimitRequest() + } + response = NewDescribeNetworkInterfaceLimitResponse() + err = c.Send(request, response) + return +} + +func NewDescribeNetworkInterfacesRequest() (request *DescribeNetworkInterfacesRequest) { + request = &DescribeNetworkInterfacesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNetworkInterfaces") + return +} + +func NewDescribeNetworkInterfacesResponse() (response *DescribeNetworkInterfacesResponse) { + response = &DescribeNetworkInterfacesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeNetworkInterfaces)用于查询弹性网卡列表。 +func (c *Client) DescribeNetworkInterfaces(request *DescribeNetworkInterfacesRequest) (response *DescribeNetworkInterfacesResponse, err error) { + if request == nil { + request = NewDescribeNetworkInterfacesRequest() + } + response = NewDescribeNetworkInterfacesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeRouteConflictsRequest() (request *DescribeRouteConflictsRequest) { + request = &DescribeRouteConflictsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeRouteConflicts") + return +} + +func NewDescribeRouteConflictsResponse() (response *DescribeRouteConflictsResponse) { + response = &DescribeRouteConflictsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeRouteConflicts)用于查询自定义路由策略与云联网路由策略冲突列表 +func (c *Client) DescribeRouteConflicts(request *DescribeRouteConflictsRequest) (response *DescribeRouteConflictsResponse, err error) { + if request == nil { + request = NewDescribeRouteConflictsRequest() + } + response = NewDescribeRouteConflictsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeRouteTablesRequest() (request *DescribeRouteTablesRequest) { + request = &DescribeRouteTablesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeRouteTables") + return +} + +func NewDescribeRouteTablesResponse() (response *DescribeRouteTablesResponse) { + response = &DescribeRouteTablesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeRouteTables)用于查询路由表。 +func (c *Client) DescribeRouteTables(request *DescribeRouteTablesRequest) (response *DescribeRouteTablesResponse, err error) { + if request == nil { + request = NewDescribeRouteTablesRequest() + } + response = NewDescribeRouteTablesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeSecurityGroupAssociationStatisticsRequest() (request *DescribeSecurityGroupAssociationStatisticsRequest) { + request = &DescribeSecurityGroupAssociationStatisticsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeSecurityGroupAssociationStatistics") + return +} + +func NewDescribeSecurityGroupAssociationStatisticsResponse() (response *DescribeSecurityGroupAssociationStatisticsResponse) { + response = &DescribeSecurityGroupAssociationStatisticsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeSecurityGroupAssociationStatistics)用于查询安全组关联的实例统计。 +func (c *Client) DescribeSecurityGroupAssociationStatistics(request *DescribeSecurityGroupAssociationStatisticsRequest) (response *DescribeSecurityGroupAssociationStatisticsResponse, err error) { + if request == nil { + request = NewDescribeSecurityGroupAssociationStatisticsRequest() + } + response = NewDescribeSecurityGroupAssociationStatisticsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeSecurityGroupLimitsRequest() (request *DescribeSecurityGroupLimitsRequest) { + request = &DescribeSecurityGroupLimitsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeSecurityGroupLimits") + return +} + +func NewDescribeSecurityGroupLimitsResponse() (response *DescribeSecurityGroupLimitsResponse) { + response = &DescribeSecurityGroupLimitsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeSecurityGroupLimits)用于查询用户安全组配额。 +func (c *Client) DescribeSecurityGroupLimits(request *DescribeSecurityGroupLimitsRequest) (response *DescribeSecurityGroupLimitsResponse, err error) { + if request == nil { + request = NewDescribeSecurityGroupLimitsRequest() + } + response = NewDescribeSecurityGroupLimitsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeSecurityGroupPoliciesRequest() (request *DescribeSecurityGroupPoliciesRequest) { + request = &DescribeSecurityGroupPoliciesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeSecurityGroupPolicies") + return +} + +func NewDescribeSecurityGroupPoliciesResponse() (response *DescribeSecurityGroupPoliciesResponse) { + response = &DescribeSecurityGroupPoliciesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeSecurityGroupPolicies)用于查询安全组规则。 +func (c *Client) DescribeSecurityGroupPolicies(request *DescribeSecurityGroupPoliciesRequest) (response *DescribeSecurityGroupPoliciesResponse, err error) { + if request == nil { + request = NewDescribeSecurityGroupPoliciesRequest() + } + response = NewDescribeSecurityGroupPoliciesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeSecurityGroupsRequest() (request *DescribeSecurityGroupsRequest) { + request = &DescribeSecurityGroupsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeSecurityGroups") + return +} + +func NewDescribeSecurityGroupsResponse() (response *DescribeSecurityGroupsResponse) { + response = &DescribeSecurityGroupsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeSecurityGroups)用于查询安全组。 +func (c *Client) DescribeSecurityGroups(request *DescribeSecurityGroupsRequest) (response *DescribeSecurityGroupsResponse, err error) { + if request == nil { + request = NewDescribeSecurityGroupsRequest() + } + response = NewDescribeSecurityGroupsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeServiceTemplateGroupsRequest() (request *DescribeServiceTemplateGroupsRequest) { + request = &DescribeServiceTemplateGroupsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeServiceTemplateGroups") + return +} + +func NewDescribeServiceTemplateGroupsResponse() (response *DescribeServiceTemplateGroupsResponse) { + response = &DescribeServiceTemplateGroupsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeServiceTemplateGroups)用于查询协议端口模板集合 +func (c *Client) DescribeServiceTemplateGroups(request *DescribeServiceTemplateGroupsRequest) (response *DescribeServiceTemplateGroupsResponse, err error) { + if request == nil { + request = NewDescribeServiceTemplateGroupsRequest() + } + response = NewDescribeServiceTemplateGroupsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeServiceTemplatesRequest() (request *DescribeServiceTemplatesRequest) { + request = &DescribeServiceTemplatesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeServiceTemplates") + return +} + +func NewDescribeServiceTemplatesResponse() (response *DescribeServiceTemplatesResponse) { + response = &DescribeServiceTemplatesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeServiceTemplates)用于查询协议端口模板 +func (c *Client) DescribeServiceTemplates(request *DescribeServiceTemplatesRequest) (response *DescribeServiceTemplatesResponse, err error) { + if request == nil { + request = NewDescribeServiceTemplatesRequest() + } + response = NewDescribeServiceTemplatesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeSubnetsRequest() (request *DescribeSubnetsRequest) { + request = &DescribeSubnetsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeSubnets") + return +} + +func NewDescribeSubnetsResponse() (response *DescribeSubnetsResponse) { + response = &DescribeSubnetsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeSubnets)用于查询子网列表。 +func (c *Client) DescribeSubnets(request *DescribeSubnetsRequest) (response *DescribeSubnetsResponse, err error) { + if request == nil { + request = NewDescribeSubnetsRequest() + } + response = NewDescribeSubnetsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeTaskResultRequest() (request *DescribeTaskResultRequest) { + request = &DescribeTaskResultRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeTaskResult") + return +} + +func NewDescribeTaskResultResponse() (response *DescribeTaskResultResponse) { + response = &DescribeTaskResultResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 查询EIP异步任务执行结果 +func (c *Client) DescribeTaskResult(request *DescribeTaskResultRequest) (response *DescribeTaskResultResponse, err error) { + if request == nil { + request = NewDescribeTaskResultRequest() + } + response = NewDescribeTaskResultResponse() + err = c.Send(request, response) + return +} + +func NewDescribeVpcIpv6AddressesRequest() (request *DescribeVpcIpv6AddressesRequest) { + request = &DescribeVpcIpv6AddressesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcIpv6Addresses") + return +} + +func NewDescribeVpcIpv6AddressesResponse() (response *DescribeVpcIpv6AddressesResponse) { + response = &DescribeVpcIpv6AddressesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeVpcIpv6Addresses)用于查询 `VPC` `IPv6` 信息。 +// 只能查询已使用的`IPv6`信息,当查询未使用的IP时,本接口不会报错,但不会出现在返回结果里。 +func (c *Client) DescribeVpcIpv6Addresses(request *DescribeVpcIpv6AddressesRequest) (response *DescribeVpcIpv6AddressesResponse, err error) { + if request == nil { + request = NewDescribeVpcIpv6AddressesRequest() + } + response = NewDescribeVpcIpv6AddressesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeVpcPrivateIpAddressesRequest() (request *DescribeVpcPrivateIpAddressesRequest) { + request = &DescribeVpcPrivateIpAddressesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcPrivateIpAddresses") + return +} + +func NewDescribeVpcPrivateIpAddressesResponse() (response *DescribeVpcPrivateIpAddressesResponse) { + response = &DescribeVpcPrivateIpAddressesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeVpcPrivateIpAddresses)用于查询VPC内网IP信息。
    +// 只能查询已使用的IP信息,当查询未使用的IP时,本接口不会报错,但不会出现在返回结果里。 +func (c *Client) DescribeVpcPrivateIpAddresses(request *DescribeVpcPrivateIpAddressesRequest) (response *DescribeVpcPrivateIpAddressesResponse, err error) { + if request == nil { + request = NewDescribeVpcPrivateIpAddressesRequest() + } + response = NewDescribeVpcPrivateIpAddressesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeVpcsRequest() (request *DescribeVpcsRequest) { + request = &DescribeVpcsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcs") + return +} + +func NewDescribeVpcsResponse() (response *DescribeVpcsResponse) { + response = &DescribeVpcsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeVpcs)用于查询私有网络列表。 +func (c *Client) DescribeVpcs(request *DescribeVpcsRequest) (response *DescribeVpcsResponse, err error) { + if request == nil { + request = NewDescribeVpcsRequest() + } + response = NewDescribeVpcsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeVpnConnectionsRequest() (request *DescribeVpnConnectionsRequest) { + request = &DescribeVpnConnectionsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpnConnections") + return +} + +func NewDescribeVpnConnectionsResponse() (response *DescribeVpnConnectionsResponse) { + response = &DescribeVpnConnectionsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeVpnConnections)查询VPN通道列表。 +func (c *Client) DescribeVpnConnections(request *DescribeVpnConnectionsRequest) (response *DescribeVpnConnectionsResponse, err error) { + if request == nil { + request = NewDescribeVpnConnectionsRequest() + } + response = NewDescribeVpnConnectionsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeVpnGatewaysRequest() (request *DescribeVpnGatewaysRequest) { + request = &DescribeVpnGatewaysRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpnGateways") + return +} + +func NewDescribeVpnGatewaysResponse() (response *DescribeVpnGatewaysResponse) { + response = &DescribeVpnGatewaysResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DescribeVpnGateways)用于查询VPN网关列表。 +func (c *Client) DescribeVpnGateways(request *DescribeVpnGatewaysRequest) (response *DescribeVpnGatewaysResponse, err error) { + if request == nil { + request = NewDescribeVpnGatewaysRequest() + } + response = NewDescribeVpnGatewaysResponse() + err = c.Send(request, response) + return +} + +func NewDetachCcnInstancesRequest() (request *DetachCcnInstancesRequest) { + request = &DetachCcnInstancesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DetachCcnInstances") + return +} + +func NewDetachCcnInstancesResponse() (response *DetachCcnInstancesResponse) { + response = &DetachCcnInstancesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DetachCcnInstances)用于从云联网实例中解关联指定的网络实例。
    +// 解关联网络实例后,相应的路由策略会一并删除。 +func (c *Client) DetachCcnInstances(request *DetachCcnInstancesRequest) (response *DetachCcnInstancesResponse, err error) { + if request == nil { + request = NewDetachCcnInstancesRequest() + } + response = NewDetachCcnInstancesResponse() + err = c.Send(request, response) + return +} + +func NewDetachClassicLinkVpcRequest() (request *DetachClassicLinkVpcRequest) { + request = &DetachClassicLinkVpcRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DetachClassicLinkVpc") + return +} + +func NewDetachClassicLinkVpcResponse() (response *DetachClassicLinkVpcResponse) { + response = &DetachClassicLinkVpcResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DetachClassicLinkVpc)用于删除私有网络和基础网络设备互通。 +func (c *Client) DetachClassicLinkVpc(request *DetachClassicLinkVpcRequest) (response *DetachClassicLinkVpcResponse, err error) { + if request == nil { + request = NewDetachClassicLinkVpcRequest() + } + response = NewDetachClassicLinkVpcResponse() + err = c.Send(request, response) + return +} + +func NewDetachNetworkInterfaceRequest() (request *DetachNetworkInterfaceRequest) { + request = &DetachNetworkInterfaceRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DetachNetworkInterface") + return +} + +func NewDetachNetworkInterfaceResponse() (response *DetachNetworkInterfaceResponse) { + response = &DetachNetworkInterfaceResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DetachNetworkInterface)用于弹性网卡解绑云主机。 +func (c *Client) DetachNetworkInterface(request *DetachNetworkInterfaceRequest) (response *DetachNetworkInterfaceResponse, err error) { + if request == nil { + request = NewDetachNetworkInterfaceRequest() + } + response = NewDetachNetworkInterfaceResponse() + err = c.Send(request, response) + return +} + +func NewDisableCcnRoutesRequest() (request *DisableCcnRoutesRequest) { + request = &DisableCcnRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DisableCcnRoutes") + return +} + +func NewDisableCcnRoutesResponse() (response *DisableCcnRoutesResponse) { + response = &DisableCcnRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DisableCcnRoutes)用于禁用已经启用的云联网(CCN)路由 +func (c *Client) DisableCcnRoutes(request *DisableCcnRoutesRequest) (response *DisableCcnRoutesResponse, err error) { + if request == nil { + request = NewDisableCcnRoutesRequest() + } + response = NewDisableCcnRoutesResponse() + err = c.Send(request, response) + return +} + +func NewDisableRoutesRequest() (request *DisableRoutesRequest) { + request = &DisableRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DisableRoutes") + return +} + +func NewDisableRoutesResponse() (response *DisableRoutesResponse) { + response = &DisableRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DisableRoutes)用于禁用已启用的子网路由 +func (c *Client) DisableRoutes(request *DisableRoutesRequest) (response *DisableRoutesResponse, err error) { + if request == nil { + request = NewDisableRoutesRequest() + } + response = NewDisableRoutesResponse() + err = c.Send(request, response) + return +} + +func NewDisassociateAddressRequest() (request *DisassociateAddressRequest) { + request = &DisassociateAddressRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DisassociateAddress") + return +} + +func NewDisassociateAddressResponse() (response *DisassociateAddressResponse) { + response = &DisassociateAddressResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口 (DisassociateAddress) 用于解绑[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)。 +// * 支持CVM实例,弹性网卡上的EIP解绑 +// * 不支持NAT上的EIP解绑。NAT上的EIP解绑请参考[EipUnBindNatGateway](https://cloud.tencent.com/document/product/215/4092) +// * 只有状态为 BIND 和 BIND_ENI 的 EIP 才能进行解绑定操作。 +// * EIP 如果被封堵,则不能进行解绑定操作。 +func (c *Client) DisassociateAddress(request *DisassociateAddressRequest) (response *DisassociateAddressResponse, err error) { + if request == nil { + request = NewDisassociateAddressRequest() + } + response = NewDisassociateAddressResponse() + err = c.Send(request, response) + return +} + +func NewDisassociateNatGatewayAddressRequest() (request *DisassociateNatGatewayAddressRequest) { + request = &DisassociateNatGatewayAddressRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DisassociateNatGatewayAddress") + return +} + +func NewDisassociateNatGatewayAddressResponse() (response *DisassociateNatGatewayAddressResponse) { + response = &DisassociateNatGatewayAddressResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DisassociateNatGatewayAddress)用于NAT网关解绑弹性IP。 +func (c *Client) DisassociateNatGatewayAddress(request *DisassociateNatGatewayAddressRequest) (response *DisassociateNatGatewayAddressResponse, err error) { + if request == nil { + request = NewDisassociateNatGatewayAddressRequest() + } + response = NewDisassociateNatGatewayAddressResponse() + err = c.Send(request, response) + return +} + +func NewDisassociateNetworkAclSubnetsRequest() (request *DisassociateNetworkAclSubnetsRequest) { + request = &DisassociateNetworkAclSubnetsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DisassociateNetworkAclSubnets") + return +} + +func NewDisassociateNetworkAclSubnetsResponse() (response *DisassociateNetworkAclSubnetsResponse) { + response = &DisassociateNetworkAclSubnetsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DisassociateNetworkAclSubnets)用于网络ACL解关联vpc下的子网。 +func (c *Client) DisassociateNetworkAclSubnets(request *DisassociateNetworkAclSubnetsRequest) (response *DisassociateNetworkAclSubnetsResponse, err error) { + if request == nil { + request = NewDisassociateNetworkAclSubnetsRequest() + } + response = NewDisassociateNetworkAclSubnetsResponse() + err = c.Send(request, response) + return +} + +func NewDownloadCustomerGatewayConfigurationRequest() (request *DownloadCustomerGatewayConfigurationRequest) { + request = &DownloadCustomerGatewayConfigurationRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "DownloadCustomerGatewayConfiguration") + return +} + +func NewDownloadCustomerGatewayConfigurationResponse() (response *DownloadCustomerGatewayConfigurationResponse) { + response = &DownloadCustomerGatewayConfigurationResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(DownloadCustomerGatewayConfiguration)用于下载VPN通道配置。 +func (c *Client) DownloadCustomerGatewayConfiguration(request *DownloadCustomerGatewayConfigurationRequest) (response *DownloadCustomerGatewayConfigurationResponse, err error) { + if request == nil { + request = NewDownloadCustomerGatewayConfigurationRequest() + } + response = NewDownloadCustomerGatewayConfigurationResponse() + err = c.Send(request, response) + return +} + +func NewEnableCcnRoutesRequest() (request *EnableCcnRoutesRequest) { + request = &EnableCcnRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "EnableCcnRoutes") + return +} + +func NewEnableCcnRoutesResponse() (response *EnableCcnRoutesResponse) { + response = &EnableCcnRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(EnableCcnRoutes)用于启用已经加入云联网(CCN)的路由。
    +// 本接口会校验启用后,是否与已有路由冲突,如果冲突,则无法启用,失败处理。路由冲突时,需要先禁用与之冲突的路由,才能启用该路由。 +func (c *Client) EnableCcnRoutes(request *EnableCcnRoutesRequest) (response *EnableCcnRoutesResponse, err error) { + if request == nil { + request = NewEnableCcnRoutesRequest() + } + response = NewEnableCcnRoutesResponse() + err = c.Send(request, response) + return +} + +func NewEnableRoutesRequest() (request *EnableRoutesRequest) { + request = &EnableRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "EnableRoutes") + return +} + +func NewEnableRoutesResponse() (response *EnableRoutesResponse) { + response = &EnableRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(EnableRoutes)用于启用已禁用的子网路由。
    +// 本接口会校验启用后,是否与已有路由冲突,如果冲突,则无法启用,失败处理。路由冲突时,需要先禁用与之冲突的路由,才能启用该路由。 +func (c *Client) EnableRoutes(request *EnableRoutesRequest) (response *EnableRoutesResponse, err error) { + if request == nil { + request = NewEnableRoutesRequest() + } + response = NewEnableRoutesResponse() + err = c.Send(request, response) + return +} + +func NewHaVipAssociateAddressIpRequest() (request *HaVipAssociateAddressIpRequest) { + request = &HaVipAssociateAddressIpRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "HaVipAssociateAddressIp") + return +} + +func NewHaVipAssociateAddressIpResponse() (response *HaVipAssociateAddressIpResponse) { + response = &HaVipAssociateAddressIpResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(HaVipAssociateAddressIp)用于高可用虚拟IP(HAVIP)绑定弹性公网IP(EIP)
    +// 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`QueryTask`接口 +func (c *Client) HaVipAssociateAddressIp(request *HaVipAssociateAddressIpRequest) (response *HaVipAssociateAddressIpResponse, err error) { + if request == nil { + request = NewHaVipAssociateAddressIpRequest() + } + response = NewHaVipAssociateAddressIpResponse() + err = c.Send(request, response) + return +} + +func NewHaVipDisassociateAddressIpRequest() (request *HaVipDisassociateAddressIpRequest) { + request = &HaVipDisassociateAddressIpRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "HaVipDisassociateAddressIp") + return +} + +func NewHaVipDisassociateAddressIpResponse() (response *HaVipDisassociateAddressIpResponse) { + response = &HaVipDisassociateAddressIpResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(HaVipDisassociateAddressIp)用于将高可用虚拟IP(HAVIP)已绑定的弹性公网IP(EIP)解除绑定
    +// 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`QueryTask`接口 +func (c *Client) HaVipDisassociateAddressIp(request *HaVipDisassociateAddressIpRequest) (response *HaVipDisassociateAddressIpResponse, err error) { + if request == nil { + request = NewHaVipDisassociateAddressIpRequest() + } + response = NewHaVipDisassociateAddressIpResponse() + err = c.Send(request, response) + return +} + +func NewInquiryPriceCreateVpnGatewayRequest() (request *InquiryPriceCreateVpnGatewayRequest) { + request = &InquiryPriceCreateVpnGatewayRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "InquiryPriceCreateVpnGateway") + return +} + +func NewInquiryPriceCreateVpnGatewayResponse() (response *InquiryPriceCreateVpnGatewayResponse) { + response = &InquiryPriceCreateVpnGatewayResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(InquiryPriceCreateVpnGateway)用于创建VPN网关询价。 +func (c *Client) InquiryPriceCreateVpnGateway(request *InquiryPriceCreateVpnGatewayRequest) (response *InquiryPriceCreateVpnGatewayResponse, err error) { + if request == nil { + request = NewInquiryPriceCreateVpnGatewayRequest() + } + response = NewInquiryPriceCreateVpnGatewayResponse() + err = c.Send(request, response) + return +} + +func NewInquiryPriceRenewVpnGatewayRequest() (request *InquiryPriceRenewVpnGatewayRequest) { + request = &InquiryPriceRenewVpnGatewayRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "InquiryPriceRenewVpnGateway") + return +} + +func NewInquiryPriceRenewVpnGatewayResponse() (response *InquiryPriceRenewVpnGatewayResponse) { + response = &InquiryPriceRenewVpnGatewayResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(InquiryPriceRenewVpnGateway)用于续费VPN网关询价。目前仅支持IPSEC类型网关的询价。 +func (c *Client) InquiryPriceRenewVpnGateway(request *InquiryPriceRenewVpnGatewayRequest) (response *InquiryPriceRenewVpnGatewayResponse, err error) { + if request == nil { + request = NewInquiryPriceRenewVpnGatewayRequest() + } + response = NewInquiryPriceRenewVpnGatewayResponse() + err = c.Send(request, response) + return +} + +func NewInquiryPriceResetVpnGatewayInternetMaxBandwidthRequest() (request *InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest) { + request = &InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "InquiryPriceResetVpnGatewayInternetMaxBandwidth") + return +} + +func NewInquiryPriceResetVpnGatewayInternetMaxBandwidthResponse() (response *InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse) { + response = &InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(InquiryPriceResetVpnGatewayInternetMaxBandwidth)调整VPN网关带宽上限询价。 +func (c *Client) InquiryPriceResetVpnGatewayInternetMaxBandwidth(request *InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest) (response *InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse, err error) { + if request == nil { + request = NewInquiryPriceResetVpnGatewayInternetMaxBandwidthRequest() + } + response = NewInquiryPriceResetVpnGatewayInternetMaxBandwidthResponse() + err = c.Send(request, response) + return +} + +func NewMigrateNetworkInterfaceRequest() (request *MigrateNetworkInterfaceRequest) { + request = &MigrateNetworkInterfaceRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "MigrateNetworkInterface") + return +} + +func NewMigrateNetworkInterfaceResponse() (response *MigrateNetworkInterfaceResponse) { + response = &MigrateNetworkInterfaceResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(MigrateNetworkInterface)用于弹性网卡迁移。 +func (c *Client) MigrateNetworkInterface(request *MigrateNetworkInterfaceRequest) (response *MigrateNetworkInterfaceResponse, err error) { + if request == nil { + request = NewMigrateNetworkInterfaceRequest() + } + response = NewMigrateNetworkInterfaceResponse() + err = c.Send(request, response) + return +} + +func NewMigratePrivateIpAddressRequest() (request *MigratePrivateIpAddressRequest) { + request = &MigratePrivateIpAddressRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "MigratePrivateIpAddress") + return +} + +func NewMigratePrivateIpAddressResponse() (response *MigratePrivateIpAddressResponse) { + response = &MigratePrivateIpAddressResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(MigratePrivateIpAddress)用于弹性网卡内网IP迁移。 +// +// * 该接口用于将一个内网IP从一个弹性网卡上迁移到另外一个弹性网卡,主IP地址不支持迁移。 +// * 迁移前后的弹性网卡必须在同一个子网内。 +func (c *Client) MigratePrivateIpAddress(request *MigratePrivateIpAddressRequest) (response *MigratePrivateIpAddressResponse, err error) { + if request == nil { + request = NewMigratePrivateIpAddressRequest() + } + response = NewMigratePrivateIpAddressResponse() + err = c.Send(request, response) + return +} + +func NewModifyAddressAttributeRequest() (request *ModifyAddressAttributeRequest) { + request = &ModifyAddressAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyAddressAttribute") + return +} + +func NewModifyAddressAttributeResponse() (response *ModifyAddressAttributeResponse) { + response = &ModifyAddressAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口 (ModifyAddressAttribute) 用于修改[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)的名称。 +func (c *Client) ModifyAddressAttribute(request *ModifyAddressAttributeRequest) (response *ModifyAddressAttributeResponse, err error) { + if request == nil { + request = NewModifyAddressAttributeRequest() + } + response = NewModifyAddressAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyAddressTemplateAttributeRequest() (request *ModifyAddressTemplateAttributeRequest) { + request = &ModifyAddressTemplateAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyAddressTemplateAttribute") + return +} + +func NewModifyAddressTemplateAttributeResponse() (response *ModifyAddressTemplateAttributeResponse) { + response = &ModifyAddressTemplateAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyAddressTemplateAttribute)用于修改IP地址模板 +func (c *Client) ModifyAddressTemplateAttribute(request *ModifyAddressTemplateAttributeRequest) (response *ModifyAddressTemplateAttributeResponse, err error) { + if request == nil { + request = NewModifyAddressTemplateAttributeRequest() + } + response = NewModifyAddressTemplateAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyAddressTemplateGroupAttributeRequest() (request *ModifyAddressTemplateGroupAttributeRequest) { + request = &ModifyAddressTemplateGroupAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyAddressTemplateGroupAttribute") + return +} + +func NewModifyAddressTemplateGroupAttributeResponse() (response *ModifyAddressTemplateGroupAttributeResponse) { + response = &ModifyAddressTemplateGroupAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyAddressTemplateGroupAttribute)用于修改IP地址模板集合 +func (c *Client) ModifyAddressTemplateGroupAttribute(request *ModifyAddressTemplateGroupAttributeRequest) (response *ModifyAddressTemplateGroupAttributeResponse, err error) { + if request == nil { + request = NewModifyAddressTemplateGroupAttributeRequest() + } + response = NewModifyAddressTemplateGroupAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyAddressesBandwidthRequest() (request *ModifyAddressesBandwidthRequest) { + request = &ModifyAddressesBandwidthRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyAddressesBandwidth") + return +} + +func NewModifyAddressesBandwidthResponse() (response *ModifyAddressesBandwidthResponse) { + response = &ModifyAddressesBandwidthResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyAddressesBandwidth)用于调整[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称EIP)带宽,包括后付费EIP, 预付费EIP和带宽包EIP +func (c *Client) ModifyAddressesBandwidth(request *ModifyAddressesBandwidthRequest) (response *ModifyAddressesBandwidthResponse, err error) { + if request == nil { + request = NewModifyAddressesBandwidthRequest() + } + response = NewModifyAddressesBandwidthResponse() + err = c.Send(request, response) + return +} + +func NewModifyBandwidthPackageAttributeRequest() (request *ModifyBandwidthPackageAttributeRequest) { + request = &ModifyBandwidthPackageAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyBandwidthPackageAttribute") + return +} + +func NewModifyBandwidthPackageAttributeResponse() (response *ModifyBandwidthPackageAttributeResponse) { + response = &ModifyBandwidthPackageAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 接口用于修改带宽包属性,包括带宽包名字等 +func (c *Client) ModifyBandwidthPackageAttribute(request *ModifyBandwidthPackageAttributeRequest) (response *ModifyBandwidthPackageAttributeResponse, err error) { + if request == nil { + request = NewModifyBandwidthPackageAttributeRequest() + } + response = NewModifyBandwidthPackageAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyCcnAttributeRequest() (request *ModifyCcnAttributeRequest) { + request = &ModifyCcnAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyCcnAttribute") + return +} + +func NewModifyCcnAttributeResponse() (response *ModifyCcnAttributeResponse) { + response = &ModifyCcnAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyCcnAttribute)用于修改云联网(CCN)的相关属性。 +func (c *Client) ModifyCcnAttribute(request *ModifyCcnAttributeRequest) (response *ModifyCcnAttributeResponse, err error) { + if request == nil { + request = NewModifyCcnAttributeRequest() + } + response = NewModifyCcnAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyCcnRegionBandwidthLimitsTypeRequest() (request *ModifyCcnRegionBandwidthLimitsTypeRequest) { + request = &ModifyCcnRegionBandwidthLimitsTypeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyCcnRegionBandwidthLimitsType") + return +} + +func NewModifyCcnRegionBandwidthLimitsTypeResponse() (response *ModifyCcnRegionBandwidthLimitsTypeResponse) { + response = &ModifyCcnRegionBandwidthLimitsTypeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyCcnRegionBandwidthLimitsType)用于修改后付费云联网实例修改带宽限速策略。 +func (c *Client) ModifyCcnRegionBandwidthLimitsType(request *ModifyCcnRegionBandwidthLimitsTypeRequest) (response *ModifyCcnRegionBandwidthLimitsTypeResponse, err error) { + if request == nil { + request = NewModifyCcnRegionBandwidthLimitsTypeRequest() + } + response = NewModifyCcnRegionBandwidthLimitsTypeResponse() + err = c.Send(request, response) + return +} + +func NewModifyCustomerGatewayAttributeRequest() (request *ModifyCustomerGatewayAttributeRequest) { + request = &ModifyCustomerGatewayAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyCustomerGatewayAttribute") + return +} + +func NewModifyCustomerGatewayAttributeResponse() (response *ModifyCustomerGatewayAttributeResponse) { + response = &ModifyCustomerGatewayAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyCustomerGatewayAttribute)用于修改对端网关信息。 +func (c *Client) ModifyCustomerGatewayAttribute(request *ModifyCustomerGatewayAttributeRequest) (response *ModifyCustomerGatewayAttributeResponse, err error) { + if request == nil { + request = NewModifyCustomerGatewayAttributeRequest() + } + response = NewModifyCustomerGatewayAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyDirectConnectGatewayAttributeRequest() (request *ModifyDirectConnectGatewayAttributeRequest) { + request = &ModifyDirectConnectGatewayAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyDirectConnectGatewayAttribute") + return +} + +func NewModifyDirectConnectGatewayAttributeResponse() (response *ModifyDirectConnectGatewayAttributeResponse) { + response = &ModifyDirectConnectGatewayAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyDirectConnectGatewayAttribute)用于修改专线网关属性 +func (c *Client) ModifyDirectConnectGatewayAttribute(request *ModifyDirectConnectGatewayAttributeRequest) (response *ModifyDirectConnectGatewayAttributeResponse, err error) { + if request == nil { + request = NewModifyDirectConnectGatewayAttributeRequest() + } + response = NewModifyDirectConnectGatewayAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyFlowLogAttributeRequest() (request *ModifyFlowLogAttributeRequest) { + request = &ModifyFlowLogAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyFlowLogAttribute") + return +} + +func NewModifyFlowLogAttributeResponse() (response *ModifyFlowLogAttributeResponse) { + response = &ModifyFlowLogAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyFlowLogAttribute)用于修改流日志属性 +func (c *Client) ModifyFlowLogAttribute(request *ModifyFlowLogAttributeRequest) (response *ModifyFlowLogAttributeResponse, err error) { + if request == nil { + request = NewModifyFlowLogAttributeRequest() + } + response = NewModifyFlowLogAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyHaVipAttributeRequest() (request *ModifyHaVipAttributeRequest) { + request = &ModifyHaVipAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyHaVipAttribute") + return +} + +func NewModifyHaVipAttributeResponse() (response *ModifyHaVipAttributeResponse) { + response = &ModifyHaVipAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyHaVipAttribute)用于修改高可用虚拟IP(HAVIP)属性 +func (c *Client) ModifyHaVipAttribute(request *ModifyHaVipAttributeRequest) (response *ModifyHaVipAttributeResponse, err error) { + if request == nil { + request = NewModifyHaVipAttributeRequest() + } + response = NewModifyHaVipAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyIp6AddressesBandwidthRequest() (request *ModifyIp6AddressesBandwidthRequest) { + request = &ModifyIp6AddressesBandwidthRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyIp6AddressesBandwidth") + return +} + +func NewModifyIp6AddressesBandwidthResponse() (response *ModifyIp6AddressesBandwidthResponse) { + response = &ModifyIp6AddressesBandwidthResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 该接口用于修改IPV6地址访问internet的带宽 +func (c *Client) ModifyIp6AddressesBandwidth(request *ModifyIp6AddressesBandwidthRequest) (response *ModifyIp6AddressesBandwidthResponse, err error) { + if request == nil { + request = NewModifyIp6AddressesBandwidthRequest() + } + response = NewModifyIp6AddressesBandwidthResponse() + err = c.Send(request, response) + return +} + +func NewModifyIp6RuleRequest() (request *ModifyIp6RuleRequest) { + request = &ModifyIp6RuleRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyIp6Rule") + return +} + +func NewModifyIp6RuleResponse() (response *ModifyIp6RuleResponse) { + response = &ModifyIp6RuleResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 该接口用于修改IPV6转换规则,当前仅支持修改转换规则名称,IPV4地址和IPV4端口号 +func (c *Client) ModifyIp6Rule(request *ModifyIp6RuleRequest) (response *ModifyIp6RuleResponse, err error) { + if request == nil { + request = NewModifyIp6RuleRequest() + } + response = NewModifyIp6RuleResponse() + err = c.Send(request, response) + return +} + +func NewModifyIp6TranslatorRequest() (request *ModifyIp6TranslatorRequest) { + request = &ModifyIp6TranslatorRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyIp6Translator") + return +} + +func NewModifyIp6TranslatorResponse() (response *ModifyIp6TranslatorResponse) { + response = &ModifyIp6TranslatorResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 该接口用于修改IP6转换实例属性,当前仅支持修改实例名称。 +func (c *Client) ModifyIp6Translator(request *ModifyIp6TranslatorRequest) (response *ModifyIp6TranslatorResponse, err error) { + if request == nil { + request = NewModifyIp6TranslatorRequest() + } + response = NewModifyIp6TranslatorResponse() + err = c.Send(request, response) + return +} + +func NewModifyIpv6AddressesAttributeRequest() (request *ModifyIpv6AddressesAttributeRequest) { + request = &ModifyIpv6AddressesAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyIpv6AddressesAttribute") + return +} + +func NewModifyIpv6AddressesAttributeResponse() (response *ModifyIpv6AddressesAttributeResponse) { + response = &ModifyIpv6AddressesAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyIpv6AddressesAttribute)用于修改弹性网卡内网IPv6地址属性。 +func (c *Client) ModifyIpv6AddressesAttribute(request *ModifyIpv6AddressesAttributeRequest) (response *ModifyIpv6AddressesAttributeResponse, err error) { + if request == nil { + request = NewModifyIpv6AddressesAttributeRequest() + } + response = NewModifyIpv6AddressesAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyNatGatewayAttributeRequest() (request *ModifyNatGatewayAttributeRequest) { + request = &ModifyNatGatewayAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNatGatewayAttribute") + return +} + +func NewModifyNatGatewayAttributeResponse() (response *ModifyNatGatewayAttributeResponse) { + response = &ModifyNatGatewayAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyNatGatewayAttribute)用于修改NAT网关的属性。 +func (c *Client) ModifyNatGatewayAttribute(request *ModifyNatGatewayAttributeRequest) (response *ModifyNatGatewayAttributeResponse, err error) { + if request == nil { + request = NewModifyNatGatewayAttributeRequest() + } + response = NewModifyNatGatewayAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyNatGatewayDestinationIpPortTranslationNatRuleRequest() (request *ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest) { + request = &ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNatGatewayDestinationIpPortTranslationNatRule") + return +} + +func NewModifyNatGatewayDestinationIpPortTranslationNatRuleResponse() (response *ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse) { + response = &ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyNatGatewayDestinationIpPortTranslationNatRule)用于修改NAT网关端口转发规则。 +func (c *Client) ModifyNatGatewayDestinationIpPortTranslationNatRule(request *ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest) (response *ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse, err error) { + if request == nil { + request = NewModifyNatGatewayDestinationIpPortTranslationNatRuleRequest() + } + response = NewModifyNatGatewayDestinationIpPortTranslationNatRuleResponse() + err = c.Send(request, response) + return +} + +func NewModifyNetDetectRequest() (request *ModifyNetDetectRequest) { + request = &ModifyNetDetectRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNetDetect") + return +} + +func NewModifyNetDetectResponse() (response *ModifyNetDetectResponse) { + response = &ModifyNetDetectResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyNetDetect)用于修改网络探测参数。 +func (c *Client) ModifyNetDetect(request *ModifyNetDetectRequest) (response *ModifyNetDetectResponse, err error) { + if request == nil { + request = NewModifyNetDetectRequest() + } + response = NewModifyNetDetectResponse() + err = c.Send(request, response) + return +} + +func NewModifyNetworkAclAttributeRequest() (request *ModifyNetworkAclAttributeRequest) { + request = &ModifyNetworkAclAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNetworkAclAttribute") + return +} + +func NewModifyNetworkAclAttributeResponse() (response *ModifyNetworkAclAttributeResponse) { + response = &ModifyNetworkAclAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyNetworkAclAttribute)用于修改网络ACL属性。 +func (c *Client) ModifyNetworkAclAttribute(request *ModifyNetworkAclAttributeRequest) (response *ModifyNetworkAclAttributeResponse, err error) { + if request == nil { + request = NewModifyNetworkAclAttributeRequest() + } + response = NewModifyNetworkAclAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyNetworkAclEntriesRequest() (request *ModifyNetworkAclEntriesRequest) { + request = &ModifyNetworkAclEntriesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNetworkAclEntries") + return +} + +func NewModifyNetworkAclEntriesResponse() (response *ModifyNetworkAclEntriesResponse) { + response = &ModifyNetworkAclEntriesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyNetworkAclEntries)用于修改(包括添加和删除)网络ACL的入站规则和出站规则。 +func (c *Client) ModifyNetworkAclEntries(request *ModifyNetworkAclEntriesRequest) (response *ModifyNetworkAclEntriesResponse, err error) { + if request == nil { + request = NewModifyNetworkAclEntriesRequest() + } + response = NewModifyNetworkAclEntriesResponse() + err = c.Send(request, response) + return +} + +func NewModifyNetworkInterfaceAttributeRequest() (request *ModifyNetworkInterfaceAttributeRequest) { + request = &ModifyNetworkInterfaceAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNetworkInterfaceAttribute") + return +} + +func NewModifyNetworkInterfaceAttributeResponse() (response *ModifyNetworkInterfaceAttributeResponse) { + response = &ModifyNetworkInterfaceAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyNetworkInterfaceAttribute)用于修改弹性网卡属性。 +func (c *Client) ModifyNetworkInterfaceAttribute(request *ModifyNetworkInterfaceAttributeRequest) (response *ModifyNetworkInterfaceAttributeResponse, err error) { + if request == nil { + request = NewModifyNetworkInterfaceAttributeRequest() + } + response = NewModifyNetworkInterfaceAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyPrivateIpAddressesAttributeRequest() (request *ModifyPrivateIpAddressesAttributeRequest) { + request = &ModifyPrivateIpAddressesAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyPrivateIpAddressesAttribute") + return +} + +func NewModifyPrivateIpAddressesAttributeResponse() (response *ModifyPrivateIpAddressesAttributeResponse) { + response = &ModifyPrivateIpAddressesAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyPrivateIpAddressesAttribute)用于修改弹性网卡内网IP属性。 +func (c *Client) ModifyPrivateIpAddressesAttribute(request *ModifyPrivateIpAddressesAttributeRequest) (response *ModifyPrivateIpAddressesAttributeResponse, err error) { + if request == nil { + request = NewModifyPrivateIpAddressesAttributeRequest() + } + response = NewModifyPrivateIpAddressesAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyRouteTableAttributeRequest() (request *ModifyRouteTableAttributeRequest) { + request = &ModifyRouteTableAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyRouteTableAttribute") + return +} + +func NewModifyRouteTableAttributeResponse() (response *ModifyRouteTableAttributeResponse) { + response = &ModifyRouteTableAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyRouteTableAttribute)用于修改路由表(RouteTable)属性。 +func (c *Client) ModifyRouteTableAttribute(request *ModifyRouteTableAttributeRequest) (response *ModifyRouteTableAttributeResponse, err error) { + if request == nil { + request = NewModifyRouteTableAttributeRequest() + } + response = NewModifyRouteTableAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifySecurityGroupAttributeRequest() (request *ModifySecurityGroupAttributeRequest) { + request = &ModifySecurityGroupAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifySecurityGroupAttribute") + return +} + +func NewModifySecurityGroupAttributeResponse() (response *ModifySecurityGroupAttributeResponse) { + response = &ModifySecurityGroupAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifySecurityGroupAttribute)用于修改安全组(SecurityGroupPolicy)属性。 +func (c *Client) ModifySecurityGroupAttribute(request *ModifySecurityGroupAttributeRequest) (response *ModifySecurityGroupAttributeResponse, err error) { + if request == nil { + request = NewModifySecurityGroupAttributeRequest() + } + response = NewModifySecurityGroupAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifySecurityGroupPoliciesRequest() (request *ModifySecurityGroupPoliciesRequest) { + request = &ModifySecurityGroupPoliciesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifySecurityGroupPolicies") + return +} + +func NewModifySecurityGroupPoliciesResponse() (response *ModifySecurityGroupPoliciesResponse) { + response = &ModifySecurityGroupPoliciesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifySecurityGroupPolicies)用于重置安全组出站和入站规则(SecurityGroupPolicy)。 +// +// * 接口是先删除当前所有的出入站规则,然后再添加 Egress 和 Ingress 规则,不支持自定义索引 PolicyIndex 。 +// * 如果指定 SecurityGroupPolicySet.Version 为0, 表示清空所有规则,并忽略Egress和Ingress。 +// * Protocol字段支持输入TCP, UDP, ICMP, ICMPV6, GRE, ALL。 +// * CidrBlock字段允许输入符合cidr格式标准的任意字符串。(展开)在基础网络中,如果CidrBlock包含您的账户内的云服务器之外的设备在腾讯云的内网IP,并不代表此规则允许您访问这些设备,租户之间网络隔离规则优先于安全组中的内网规则。 +// * Ipv6CidrBlock字段允许输入符合IPv6 cidr格式标准的任意字符串。(展开)在基础网络中,如果Ipv6CidrBlock包含您的账户内的云服务器之外的设备在腾讯云的内网IPv6,并不代表此规则允许您访问这些设备,租户之间网络隔离规则优先于安全组中的内网规则。 +// * SecurityGroupId字段允许输入与待修改的安全组位于相同项目中的安全组ID,包括这个安全组ID本身,代表安全组下所有云服务器的内网IP。使用这个字段时,这条规则用来匹配网络报文的过程中会随着被使用的这个ID所关联的云服务器变化而变化,不需要重新修改。 +// * Port字段允许输入一个单独端口号,或者用减号分隔的两个端口号代表端口范围,例如80或8000-8010。只有当Protocol字段是TCP或UDP时,Port字段才被接受。 +// * Action字段只允许输入ACCEPT或DROP。 +// * CidrBlock, Ipv6CidrBlock, SecurityGroupId, AddressTemplate四者是排他关系,不允许同时输入,Protocol + Port和ServiceTemplate二者是排他关系,不允许同时输入。 +func (c *Client) ModifySecurityGroupPolicies(request *ModifySecurityGroupPoliciesRequest) (response *ModifySecurityGroupPoliciesResponse, err error) { + if request == nil { + request = NewModifySecurityGroupPoliciesRequest() + } + response = NewModifySecurityGroupPoliciesResponse() + err = c.Send(request, response) + return +} + +func NewModifyServiceTemplateAttributeRequest() (request *ModifyServiceTemplateAttributeRequest) { + request = &ModifyServiceTemplateAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyServiceTemplateAttribute") + return +} + +func NewModifyServiceTemplateAttributeResponse() (response *ModifyServiceTemplateAttributeResponse) { + response = &ModifyServiceTemplateAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyServiceTemplateAttribute)用于修改协议端口模板 +func (c *Client) ModifyServiceTemplateAttribute(request *ModifyServiceTemplateAttributeRequest) (response *ModifyServiceTemplateAttributeResponse, err error) { + if request == nil { + request = NewModifyServiceTemplateAttributeRequest() + } + response = NewModifyServiceTemplateAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyServiceTemplateGroupAttributeRequest() (request *ModifyServiceTemplateGroupAttributeRequest) { + request = &ModifyServiceTemplateGroupAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyServiceTemplateGroupAttribute") + return +} + +func NewModifyServiceTemplateGroupAttributeResponse() (response *ModifyServiceTemplateGroupAttributeResponse) { + response = &ModifyServiceTemplateGroupAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyServiceTemplateGroupAttribute)用于修改协议端口模板集合。 +func (c *Client) ModifyServiceTemplateGroupAttribute(request *ModifyServiceTemplateGroupAttributeRequest) (response *ModifyServiceTemplateGroupAttributeResponse, err error) { + if request == nil { + request = NewModifyServiceTemplateGroupAttributeRequest() + } + response = NewModifyServiceTemplateGroupAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifySubnetAttributeRequest() (request *ModifySubnetAttributeRequest) { + request = &ModifySubnetAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifySubnetAttribute") + return +} + +func NewModifySubnetAttributeResponse() (response *ModifySubnetAttributeResponse) { + response = &ModifySubnetAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifySubnetAttribute)用于修改子网属性。 +func (c *Client) ModifySubnetAttribute(request *ModifySubnetAttributeRequest) (response *ModifySubnetAttributeResponse, err error) { + if request == nil { + request = NewModifySubnetAttributeRequest() + } + response = NewModifySubnetAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyVpcAttributeRequest() (request *ModifyVpcAttributeRequest) { + request = &ModifyVpcAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyVpcAttribute") + return +} + +func NewModifyVpcAttributeResponse() (response *ModifyVpcAttributeResponse) { + response = &ModifyVpcAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyVpcAttribute)用于修改私有网络(VPC)的相关属性。 +func (c *Client) ModifyVpcAttribute(request *ModifyVpcAttributeRequest) (response *ModifyVpcAttributeResponse, err error) { + if request == nil { + request = NewModifyVpcAttributeRequest() + } + response = NewModifyVpcAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyVpnConnectionAttributeRequest() (request *ModifyVpnConnectionAttributeRequest) { + request = &ModifyVpnConnectionAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyVpnConnectionAttribute") + return +} + +func NewModifyVpnConnectionAttributeResponse() (response *ModifyVpnConnectionAttributeResponse) { + response = &ModifyVpnConnectionAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyVpnConnectionAttribute)用于修改VPN通道。 +func (c *Client) ModifyVpnConnectionAttribute(request *ModifyVpnConnectionAttributeRequest) (response *ModifyVpnConnectionAttributeResponse, err error) { + if request == nil { + request = NewModifyVpnConnectionAttributeRequest() + } + response = NewModifyVpnConnectionAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyVpnGatewayAttributeRequest() (request *ModifyVpnGatewayAttributeRequest) { + request = &ModifyVpnGatewayAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyVpnGatewayAttribute") + return +} + +func NewModifyVpnGatewayAttributeResponse() (response *ModifyVpnGatewayAttributeResponse) { + response = &ModifyVpnGatewayAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ModifyVpnGatewayAttribute)用于修改VPN网关属性。 +func (c *Client) ModifyVpnGatewayAttribute(request *ModifyVpnGatewayAttributeRequest) (response *ModifyVpnGatewayAttributeResponse, err error) { + if request == nil { + request = NewModifyVpnGatewayAttributeRequest() + } + response = NewModifyVpnGatewayAttributeResponse() + err = c.Send(request, response) + return +} + +func NewRejectAttachCcnInstancesRequest() (request *RejectAttachCcnInstancesRequest) { + request = &RejectAttachCcnInstancesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "RejectAttachCcnInstances") + return +} + +func NewRejectAttachCcnInstancesResponse() (response *RejectAttachCcnInstancesResponse) { + response = &RejectAttachCcnInstancesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(RejectAttachCcnInstances)用于跨账号关联实例时,云联网所有者拒绝关联操作。 +func (c *Client) RejectAttachCcnInstances(request *RejectAttachCcnInstancesRequest) (response *RejectAttachCcnInstancesResponse, err error) { + if request == nil { + request = NewRejectAttachCcnInstancesRequest() + } + response = NewRejectAttachCcnInstancesResponse() + err = c.Send(request, response) + return +} + +func NewReleaseAddressesRequest() (request *ReleaseAddressesRequest) { + request = &ReleaseAddressesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ReleaseAddresses") + return +} + +func NewReleaseAddressesResponse() (response *ReleaseAddressesResponse) { + response = &ReleaseAddressesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口 (ReleaseAddresses) 用于释放一个或多个[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)。 +// * 该操作不可逆,释放后 EIP 关联的 IP 地址将不再属于您的名下。 +// * 只有状态为 UNBIND 的 EIP 才能进行释放操作。 +func (c *Client) ReleaseAddresses(request *ReleaseAddressesRequest) (response *ReleaseAddressesResponse, err error) { + if request == nil { + request = NewReleaseAddressesRequest() + } + response = NewReleaseAddressesResponse() + err = c.Send(request, response) + return +} + +func NewReleaseIp6AddressesBandwidthRequest() (request *ReleaseIp6AddressesBandwidthRequest) { + request = &ReleaseIp6AddressesBandwidthRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ReleaseIp6AddressesBandwidth") + return +} + +func NewReleaseIp6AddressesBandwidthResponse() (response *ReleaseIp6AddressesBandwidthResponse) { + response = &ReleaseIp6AddressesBandwidthResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 该接口用于给弹性公网IPv6地址释放带宽。 +func (c *Client) ReleaseIp6AddressesBandwidth(request *ReleaseIp6AddressesBandwidthRequest) (response *ReleaseIp6AddressesBandwidthResponse, err error) { + if request == nil { + request = NewReleaseIp6AddressesBandwidthRequest() + } + response = NewReleaseIp6AddressesBandwidthResponse() + err = c.Send(request, response) + return +} + +func NewRemoveBandwidthPackageResourcesRequest() (request *RemoveBandwidthPackageResourcesRequest) { + request = &RemoveBandwidthPackageResourcesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "RemoveBandwidthPackageResources") + return +} + +func NewRemoveBandwidthPackageResourcesResponse() (response *RemoveBandwidthPackageResourcesResponse) { + response = &RemoveBandwidthPackageResourcesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 接口用于删除带宽包资源,包括[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)和[负载均衡](https://cloud.tencent.com/document/product/214/517)等 +func (c *Client) RemoveBandwidthPackageResources(request *RemoveBandwidthPackageResourcesRequest) (response *RemoveBandwidthPackageResourcesResponse, err error) { + if request == nil { + request = NewRemoveBandwidthPackageResourcesRequest() + } + response = NewRemoveBandwidthPackageResourcesResponse() + err = c.Send(request, response) + return +} + +func NewRemoveIp6RulesRequest() (request *RemoveIp6RulesRequest) { + request = &RemoveIp6RulesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "RemoveIp6Rules") + return +} + +func NewRemoveIp6RulesResponse() (response *RemoveIp6RulesResponse) { + response = &RemoveIp6RulesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 1. 该接口用于删除IPV6转换规则 +// 2. 支持批量删除同一个转换实例下的多个转换规则 +func (c *Client) RemoveIp6Rules(request *RemoveIp6RulesRequest) (response *RemoveIp6RulesResponse, err error) { + if request == nil { + request = NewRemoveIp6RulesRequest() + } + response = NewRemoveIp6RulesResponse() + err = c.Send(request, response) + return +} + +func NewRenewVpnGatewayRequest() (request *RenewVpnGatewayRequest) { + request = &RenewVpnGatewayRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "RenewVpnGateway") + return +} + +func NewRenewVpnGatewayResponse() (response *RenewVpnGatewayResponse) { + response = &RenewVpnGatewayResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(RenewVpnGateway)用于预付费(包年包月)VPN网关续费。目前只支持IPSEC网关。 +func (c *Client) RenewVpnGateway(request *RenewVpnGatewayRequest) (response *RenewVpnGatewayResponse, err error) { + if request == nil { + request = NewRenewVpnGatewayRequest() + } + response = NewRenewVpnGatewayResponse() + err = c.Send(request, response) + return +} + +func NewReplaceDirectConnectGatewayCcnRoutesRequest() (request *ReplaceDirectConnectGatewayCcnRoutesRequest) { + request = &ReplaceDirectConnectGatewayCcnRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ReplaceDirectConnectGatewayCcnRoutes") + return +} + +func NewReplaceDirectConnectGatewayCcnRoutesResponse() (response *ReplaceDirectConnectGatewayCcnRoutesResponse) { + response = &ReplaceDirectConnectGatewayCcnRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ReplaceDirectConnectGatewayCcnRoutes)根据路由ID(RouteId)修改指定的路由(Route),支持批量修改。 +func (c *Client) ReplaceDirectConnectGatewayCcnRoutes(request *ReplaceDirectConnectGatewayCcnRoutesRequest) (response *ReplaceDirectConnectGatewayCcnRoutesResponse, err error) { + if request == nil { + request = NewReplaceDirectConnectGatewayCcnRoutesRequest() + } + response = NewReplaceDirectConnectGatewayCcnRoutesResponse() + err = c.Send(request, response) + return +} + +func NewReplaceRouteTableAssociationRequest() (request *ReplaceRouteTableAssociationRequest) { + request = &ReplaceRouteTableAssociationRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ReplaceRouteTableAssociation") + return +} + +func NewReplaceRouteTableAssociationResponse() (response *ReplaceRouteTableAssociationResponse) { + response = &ReplaceRouteTableAssociationResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ReplaceRouteTableAssociation)用于修改子网(Subnet)关联的路由表(RouteTable)。 +// * 一个子网只能关联一个路由表。 +func (c *Client) ReplaceRouteTableAssociation(request *ReplaceRouteTableAssociationRequest) (response *ReplaceRouteTableAssociationResponse, err error) { + if request == nil { + request = NewReplaceRouteTableAssociationRequest() + } + response = NewReplaceRouteTableAssociationResponse() + err = c.Send(request, response) + return +} + +func NewReplaceRoutesRequest() (request *ReplaceRoutesRequest) { + request = &ReplaceRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ReplaceRoutes") + return +} + +func NewReplaceRoutesResponse() (response *ReplaceRoutesResponse) { + response = &ReplaceRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ReplaceRoutes)根据路由策略ID(RouteId)修改指定的路由策略(Route),支持批量修改。 +func (c *Client) ReplaceRoutes(request *ReplaceRoutesRequest) (response *ReplaceRoutesResponse, err error) { + if request == nil { + request = NewReplaceRoutesRequest() + } + response = NewReplaceRoutesResponse() + err = c.Send(request, response) + return +} + +func NewReplaceSecurityGroupPolicyRequest() (request *ReplaceSecurityGroupPolicyRequest) { + request = &ReplaceSecurityGroupPolicyRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ReplaceSecurityGroupPolicy") + return +} + +func NewReplaceSecurityGroupPolicyResponse() (response *ReplaceSecurityGroupPolicyResponse) { + response = &ReplaceSecurityGroupPolicyResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ReplaceSecurityGroupPolicy)用于替换单条安全组规则(SecurityGroupPolicy)。 +// 单个请求中只能替换单个方向的一条规则, 必须要指定索引(PolicyIndex)。 +func (c *Client) ReplaceSecurityGroupPolicy(request *ReplaceSecurityGroupPolicyRequest) (response *ReplaceSecurityGroupPolicyResponse, err error) { + if request == nil { + request = NewReplaceSecurityGroupPolicyRequest() + } + response = NewReplaceSecurityGroupPolicyResponse() + err = c.Send(request, response) + return +} + +func NewResetAttachCcnInstancesRequest() (request *ResetAttachCcnInstancesRequest) { + request = &ResetAttachCcnInstancesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ResetAttachCcnInstances") + return +} + +func NewResetAttachCcnInstancesResponse() (response *ResetAttachCcnInstancesResponse) { + response = &ResetAttachCcnInstancesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ResetAttachCcnInstances)用于跨账号关联实例申请过期时,重新申请关联操作。 +func (c *Client) ResetAttachCcnInstances(request *ResetAttachCcnInstancesRequest) (response *ResetAttachCcnInstancesResponse, err error) { + if request == nil { + request = NewResetAttachCcnInstancesRequest() + } + response = NewResetAttachCcnInstancesResponse() + err = c.Send(request, response) + return +} + +func NewResetNatGatewayConnectionRequest() (request *ResetNatGatewayConnectionRequest) { + request = &ResetNatGatewayConnectionRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ResetNatGatewayConnection") + return +} + +func NewResetNatGatewayConnectionResponse() (response *ResetNatGatewayConnectionResponse) { + response = &ResetNatGatewayConnectionResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ResetNatGatewayConnection)用来NAT网关并发连接上限。 +func (c *Client) ResetNatGatewayConnection(request *ResetNatGatewayConnectionRequest) (response *ResetNatGatewayConnectionResponse, err error) { + if request == nil { + request = NewResetNatGatewayConnectionRequest() + } + response = NewResetNatGatewayConnectionResponse() + err = c.Send(request, response) + return +} + +func NewResetRoutesRequest() (request *ResetRoutesRequest) { + request = &ResetRoutesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ResetRoutes") + return +} + +func NewResetRoutesResponse() (response *ResetRoutesResponse) { + response = &ResetRoutesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ResetRoutes)用于对某个路由表名称和所有路由策略(Route)进行重新设置。
    +// 注意: 调用本接口是先删除当前路由表中所有路由策略, 再保存新提交的路由策略内容, 会引起网络中断。 +func (c *Client) ResetRoutes(request *ResetRoutesRequest) (response *ResetRoutesResponse, err error) { + if request == nil { + request = NewResetRoutesRequest() + } + response = NewResetRoutesResponse() + err = c.Send(request, response) + return +} + +func NewResetVpnConnectionRequest() (request *ResetVpnConnectionRequest) { + request = &ResetVpnConnectionRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ResetVpnConnection") + return +} + +func NewResetVpnConnectionResponse() (response *ResetVpnConnectionResponse) { + response = &ResetVpnConnectionResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ResetVpnConnection)用于重置VPN通道。 +func (c *Client) ResetVpnConnection(request *ResetVpnConnectionRequest) (response *ResetVpnConnectionResponse, err error) { + if request == nil { + request = NewResetVpnConnectionRequest() + } + response = NewResetVpnConnectionResponse() + err = c.Send(request, response) + return +} + +func NewResetVpnGatewayInternetMaxBandwidthRequest() (request *ResetVpnGatewayInternetMaxBandwidthRequest) { + request = &ResetVpnGatewayInternetMaxBandwidthRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "ResetVpnGatewayInternetMaxBandwidth") + return +} + +func NewResetVpnGatewayInternetMaxBandwidthResponse() (response *ResetVpnGatewayInternetMaxBandwidthResponse) { + response = &ResetVpnGatewayInternetMaxBandwidthResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(ResetVpnGatewayInternetMaxBandwidth)调整VPN网关带宽上限。目前支持升级配置,如果是包年包月VPN网关需要在有效期内。 +func (c *Client) ResetVpnGatewayInternetMaxBandwidth(request *ResetVpnGatewayInternetMaxBandwidthRequest) (response *ResetVpnGatewayInternetMaxBandwidthResponse, err error) { + if request == nil { + request = NewResetVpnGatewayInternetMaxBandwidthRequest() + } + response = NewResetVpnGatewayInternetMaxBandwidthResponse() + err = c.Send(request, response) + return +} + +func NewSetCcnRegionBandwidthLimitsRequest() (request *SetCcnRegionBandwidthLimitsRequest) { + request = &SetCcnRegionBandwidthLimitsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "SetCcnRegionBandwidthLimits") + return +} + +func NewSetCcnRegionBandwidthLimitsResponse() (response *SetCcnRegionBandwidthLimitsResponse) { + response = &SetCcnRegionBandwidthLimitsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(SetCcnRegionBandwidthLimits)用于设置云联网(CCN)各地域出带宽上限,该接口只能设置已关联网络实例包含的地域的出带宽上限 +func (c *Client) SetCcnRegionBandwidthLimits(request *SetCcnRegionBandwidthLimitsRequest) (response *SetCcnRegionBandwidthLimitsResponse, err error) { + if request == nil { + request = NewSetCcnRegionBandwidthLimitsRequest() + } + response = NewSetCcnRegionBandwidthLimitsResponse() + err = c.Send(request, response) + return +} + +func NewTransformAddressRequest() (request *TransformAddressRequest) { + request = &TransformAddressRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "TransformAddress") + return +} + +func NewTransformAddressResponse() (response *TransformAddressResponse) { + response = &TransformAddressResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口 (TransformAddress) 用于将实例的普通公网 IP 转换为[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)。 +// * 平台对用户每地域每日解绑 EIP 重新分配普通公网 IP 次数有所限制(可参见 [EIP 产品简介](/document/product/213/1941))。上述配额可通过 [DescribeAddressQuota](https://cloud.tencent.com/document/api/213/1378) 接口获取。 +func (c *Client) TransformAddress(request *TransformAddressRequest) (response *TransformAddressResponse, err error) { + if request == nil { + request = NewTransformAddressRequest() + } + response = NewTransformAddressResponse() + err = c.Send(request, response) + return +} + +func NewUnassignIpv6AddressesRequest() (request *UnassignIpv6AddressesRequest) { + request = &UnassignIpv6AddressesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "UnassignIpv6Addresses") + return +} + +func NewUnassignIpv6AddressesResponse() (response *UnassignIpv6AddressesResponse) { + response = &UnassignIpv6AddressesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(UnassignIpv6Addresses)用于释放弹性网卡`IPv6`地址。
    +// 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`QueryTask`接口。 +func (c *Client) UnassignIpv6Addresses(request *UnassignIpv6AddressesRequest) (response *UnassignIpv6AddressesResponse, err error) { + if request == nil { + request = NewUnassignIpv6AddressesRequest() + } + response = NewUnassignIpv6AddressesResponse() + err = c.Send(request, response) + return +} + +func NewUnassignIpv6CidrBlockRequest() (request *UnassignIpv6CidrBlockRequest) { + request = &UnassignIpv6CidrBlockRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "UnassignIpv6CidrBlock") + return +} + +func NewUnassignIpv6CidrBlockResponse() (response *UnassignIpv6CidrBlockResponse) { + response = &UnassignIpv6CidrBlockResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(UnassignIpv6CidrBlock)用于释放IPv6网段。
    +// 网段如果还有IP占用且未回收,则网段无法释放。 +func (c *Client) UnassignIpv6CidrBlock(request *UnassignIpv6CidrBlockRequest) (response *UnassignIpv6CidrBlockResponse, err error) { + if request == nil { + request = NewUnassignIpv6CidrBlockRequest() + } + response = NewUnassignIpv6CidrBlockResponse() + err = c.Send(request, response) + return +} + +func NewUnassignIpv6SubnetCidrBlockRequest() (request *UnassignIpv6SubnetCidrBlockRequest) { + request = &UnassignIpv6SubnetCidrBlockRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "UnassignIpv6SubnetCidrBlock") + return +} + +func NewUnassignIpv6SubnetCidrBlockResponse() (response *UnassignIpv6SubnetCidrBlockResponse) { + response = &UnassignIpv6SubnetCidrBlockResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(UnassignIpv6SubnetCidrBlock)用于释放IPv6子网段。
    +// 子网段如果还有IP占用且未回收,则子网段无法释放。 +func (c *Client) UnassignIpv6SubnetCidrBlock(request *UnassignIpv6SubnetCidrBlockRequest) (response *UnassignIpv6SubnetCidrBlockResponse, err error) { + if request == nil { + request = NewUnassignIpv6SubnetCidrBlockRequest() + } + response = NewUnassignIpv6SubnetCidrBlockResponse() + err = c.Send(request, response) + return +} + +func NewUnassignPrivateIpAddressesRequest() (request *UnassignPrivateIpAddressesRequest) { + request = &UnassignPrivateIpAddressesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("vpc", APIVersion, "UnassignPrivateIpAddresses") + return +} + +func NewUnassignPrivateIpAddressesResponse() (response *UnassignPrivateIpAddressesResponse) { + response = &UnassignPrivateIpAddressesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// 本接口(UnassignPrivateIpAddresses)用于弹性网卡退还内网 IP。 +// * 退还弹性网卡上的辅助内网IP,接口自动解关联弹性公网 IP。不能退还弹性网卡的主内网IP。 +func (c *Client) UnassignPrivateIpAddresses(request *UnassignPrivateIpAddressesRequest) (response *UnassignPrivateIpAddressesResponse, err error) { + if request == nil { + request = NewUnassignPrivateIpAddressesRequest() + } + response = NewUnassignPrivateIpAddressesResponse() + err = c.Send(request, response) + return +} diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312/models.go new file mode 100644 index 0000000000..60c858c274 --- /dev/null +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312/models.go @@ -0,0 +1,9438 @@ +// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. +// +// 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. + +package v20170312 + +import ( + "encoding/json" + + tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" +) + +type AcceptAttachCcnInstancesRequest struct { + *tchttp.BaseRequest + + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 接受关联实例列表。 + Instances []*CcnInstance `json:"Instances,omitempty" name:"Instances" list` +} + +func (r *AcceptAttachCcnInstancesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AcceptAttachCcnInstancesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AcceptAttachCcnInstancesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AcceptAttachCcnInstancesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AcceptAttachCcnInstancesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AccountAttribute struct { + + // 属性名 + AttributeName *string `json:"AttributeName,omitempty" name:"AttributeName"` + + // 属性值 + AttributeValues []*string `json:"AttributeValues,omitempty" name:"AttributeValues" list` +} + +type AddBandwidthPackageResourcesRequest struct { + *tchttp.BaseRequest + + // 资源唯一ID,当前支持EIP资源和LB资源,形如'eip-xxxx', 'lb-xxxx' + ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds" list` + + // 带宽包唯一标识ID,形如'bwp-xxxx' + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` + + // 带宽包类型,当前支持'BGP'类型,表示内部资源是BGP IP。 + NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + + // 资源类型,包括'Address', 'LoadBalance' + ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` + + // 带宽包协议类型。当前支持'ipv4'和'ipv6'协议类型。 + Protocol *string `json:"Protocol,omitempty" name:"Protocol"` +} + +func (r *AddBandwidthPackageResourcesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AddBandwidthPackageResourcesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AddBandwidthPackageResourcesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AddBandwidthPackageResourcesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AddBandwidthPackageResourcesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AddIp6RulesRequest struct { + *tchttp.BaseRequest + + // IPV6转换实例唯一ID,形如ip6-xxxxxxxx + Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` + + // IPV6转换规则信息 + Ip6RuleInfos []*Ip6RuleInfo `json:"Ip6RuleInfos,omitempty" name:"Ip6RuleInfos" list` + + // IPV6转换规则名称 + Ip6RuleName *string `json:"Ip6RuleName,omitempty" name:"Ip6RuleName"` +} + +func (r *AddIp6RulesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AddIp6RulesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AddIp6RulesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // IPV6转换规则唯一ID数组,形如rule6-xxxxxxxx + Ip6RuleSet []*string `json:"Ip6RuleSet,omitempty" name:"Ip6RuleSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AddIp6RulesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AddIp6RulesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type Address struct { + + // `EIP`的`ID`,是`EIP`的唯一标识。 + AddressId *string `json:"AddressId,omitempty" name:"AddressId"` + + // `EIP`名称。 + AddressName *string `json:"AddressName,omitempty" name:"AddressName"` + + // `EIP`状态,包含'CREATING'(创建中),'BINDING'(绑定中),'BIND'(已绑定),'UNBINDING'(解绑中),'UNBIND'(已解绑),'OFFLINING'(释放中),'BIND_ENI'(绑定悬空弹性网卡) + AddressStatus *string `json:"AddressStatus,omitempty" name:"AddressStatus"` + + // 外网IP地址 + AddressIp *string `json:"AddressIp,omitempty" name:"AddressIp"` + + // 绑定的资源实例`ID`。可能是一个`CVM`,`NAT`。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 创建时间。按照`ISO8601`标准表示,并且使用`UTC`时间。格式为:`YYYY-MM-DDThh:mm:ssZ`。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // 绑定的弹性网卡ID + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 绑定的资源内网ip + PrivateAddressIp *string `json:"PrivateAddressIp,omitempty" name:"PrivateAddressIp"` + + // 资源隔离状态。true表示eip处于隔离状态,false表示资源处于未隔离状态 + IsArrears *bool `json:"IsArrears,omitempty" name:"IsArrears"` + + // 资源封堵状态。true表示eip处于封堵状态,false表示eip处于未封堵状态 + IsBlocked *bool `json:"IsBlocked,omitempty" name:"IsBlocked"` + + // eip是否支持直通模式。true表示eip支持直通模式,false表示资源不支持直通模式 + IsEipDirectConnection *bool `json:"IsEipDirectConnection,omitempty" name:"IsEipDirectConnection"` + + // eip资源类型,包括"CalcIP","WanIP","EIP","AnycastEIP"。其中"CalcIP"表示设备ip,“WanIP”表示普通公网ip,“EIP”表示弹性公网ip,“AnycastEip”表示加速EIP + AddressType *string `json:"AddressType,omitempty" name:"AddressType"` + + // eip是否在解绑后自动释放。true表示eip将会在解绑后自动释放,false表示eip在解绑后不会自动释放 + CascadeRelease *bool `json:"CascadeRelease,omitempty" name:"CascadeRelease"` + + // EIP ALG开启的协议类型。 + EipAlgType *AlgType `json:"EipAlgType,omitempty" name:"EipAlgType"` +} + +type AddressTemplate struct { + + // IP地址模板名称。 + AddressTemplateName *string `json:"AddressTemplateName,omitempty" name:"AddressTemplateName"` + + // IP地址模板实例唯一ID。 + AddressTemplateId *string `json:"AddressTemplateId,omitempty" name:"AddressTemplateId"` + + // IP地址信息。 + AddressSet []*string `json:"AddressSet,omitempty" name:"AddressSet" list` + + // 创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` +} + +type AddressTemplateGroup struct { + + // IP地址模板集合名称。 + AddressTemplateGroupName *string `json:"AddressTemplateGroupName,omitempty" name:"AddressTemplateGroupName"` + + // IP地址模板集合实例ID,例如:ipmg-dih8xdbq。 + AddressTemplateGroupId *string `json:"AddressTemplateGroupId,omitempty" name:"AddressTemplateGroupId"` + + // IP地址模板ID。 + AddressTemplateIdSet []*string `json:"AddressTemplateIdSet,omitempty" name:"AddressTemplateIdSet" list` + + // 创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // IP地址模板实例。 + AddressTemplateSet []*AddressTemplateItem `json:"AddressTemplateSet,omitempty" name:"AddressTemplateSet" list` +} + +type AddressTemplateItem struct { + + // 起始地址。 + From *string `json:"From,omitempty" name:"From"` + + // 结束地址。 + To *string `json:"To,omitempty" name:"To"` +} + +type AddressTemplateSpecification struct { + + // IP地址ID,例如:ipm-2uw6ujo6。 + AddressId *string `json:"AddressId,omitempty" name:"AddressId"` + + // IP地址组ID,例如:ipmg-2uw6ujo6。 + AddressGroupId *string `json:"AddressGroupId,omitempty" name:"AddressGroupId"` +} + +type AlgType struct { + + // Ftp协议Alg功能是否开启 + Ftp *bool `json:"Ftp,omitempty" name:"Ftp"` + + // Sip协议Alg功能是否开启 + Sip *bool `json:"Sip,omitempty" name:"Sip"` +} + +type AllocateAddressesRequest struct { + *tchttp.BaseRequest + + // EIP数量。默认值:1。 + AddressCount *int64 `json:"AddressCount,omitempty" name:"AddressCount"` + + // EIP线路类型。默认值:BGP。 + // + InternetServiceProvider *string `json:"InternetServiceProvider,omitempty" name:"InternetServiceProvider"` + + // EIP计费方式。 + // + InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"` + + // EIP出带宽上限,单位:Mbps。 + // + InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // EIP类型。默认值:EIP。 + // + AddressType *string `json:"AddressType,omitempty" name:"AddressType"` + + // Anycast发布域。 + // + AnycastZone *string `json:"AnycastZone,omitempty" name:"AnycastZone"` + + // [已废弃] AnycastEIP不再区分是否负载均衡。原参数说明如下: + // AnycastEIP是否用于绑定负载均衡。 + // + ApplicableForCLB *bool `json:"ApplicableForCLB,omitempty" name:"ApplicableForCLB"` +} + +func (r *AllocateAddressesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AllocateAddressesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AllocateAddressesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 申请到的 EIP 的唯一 ID 列表。 + AddressSet []*string `json:"AddressSet,omitempty" name:"AddressSet" list` + + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AllocateAddressesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AllocateAddressesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AllocateIp6AddressesBandwidthRequest struct { + *tchttp.BaseRequest + + // 需要开通公网访问能力的IPV6地址 + Ip6Addresses []*string `json:"Ip6Addresses,omitempty" name:"Ip6Addresses" list` + + // 带宽,单位Mbps。默认是1Mbps + InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // 网络计费模式。IPV6当前支持"TRAFFIC_POSTPAID_BY_HOUR",默认是"TRAFFIC_POSTPAID_BY_HOUR"。 + InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"` +} + +func (r *AllocateIp6AddressesBandwidthRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AllocateIp6AddressesBandwidthRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AllocateIp6AddressesBandwidthResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 弹性公网 IPV6 的唯一 ID 列表。 + AddressSet []*string `json:"AddressSet,omitempty" name:"AddressSet" list` + + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AllocateIp6AddressesBandwidthResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AllocateIp6AddressesBandwidthResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssignIpv6AddressesRequest struct { + *tchttp.BaseRequest + + // 弹性网卡实例`ID`,形如:`eni-m6dyj72l`。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 指定的`IPv6`地址列表,单次最多指定10个。与入参`Ipv6AddressCount`合并计算配额。 + Ipv6Addresses []*Ipv6Address `json:"Ipv6Addresses,omitempty" name:"Ipv6Addresses" list` + + // 自动分配`IPv6`地址个数,内网IP地址个数总和不能超过配数。与入参`Ipv6Addresses`合并计算配额。 + Ipv6AddressCount *uint64 `json:"Ipv6AddressCount,omitempty" name:"Ipv6AddressCount"` +} + +func (r *AssignIpv6AddressesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssignIpv6AddressesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssignIpv6AddressesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 分配给弹性网卡的`IPv6`地址列表。 + Ipv6AddressSet []*Ipv6Address `json:"Ipv6AddressSet,omitempty" name:"Ipv6AddressSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AssignIpv6AddressesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssignIpv6AddressesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssignIpv6CidrBlockRequest struct { + *tchttp.BaseRequest + + // `VPC`实例`ID`,形如:`vpc-f49l6u0z`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` +} + +func (r *AssignIpv6CidrBlockRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssignIpv6CidrBlockRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssignIpv6CidrBlockResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 分配的 `IPv6` 网段。形如:`3402:4e00:20:1000::/56` + Ipv6CidrBlock *string `json:"Ipv6CidrBlock,omitempty" name:"Ipv6CidrBlock"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AssignIpv6CidrBlockResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssignIpv6CidrBlockResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssignIpv6SubnetCidrBlockRequest struct { + *tchttp.BaseRequest + + // 子网所在私有网络`ID`。形如:`vpc-f49l6u0z`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 分配 `IPv6` 子网段列表。 + Ipv6SubnetCidrBlocks []*Ipv6SubnetCidrBlock `json:"Ipv6SubnetCidrBlocks,omitempty" name:"Ipv6SubnetCidrBlocks" list` +} + +func (r *AssignIpv6SubnetCidrBlockRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssignIpv6SubnetCidrBlockRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssignIpv6SubnetCidrBlockResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 分配 `IPv6` 子网段列表。 + Ipv6SubnetCidrBlockSet []*Ipv6SubnetCidrBlock `json:"Ipv6SubnetCidrBlockSet,omitempty" name:"Ipv6SubnetCidrBlockSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AssignIpv6SubnetCidrBlockResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssignIpv6SubnetCidrBlockResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssignPrivateIpAddressesRequest struct { + *tchttp.BaseRequest + + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 指定的内网IP信息,单次最多指定10个。 + PrivateIpAddresses []*PrivateIpAddressSpecification `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses" list` + + // 新申请的内网IP地址个数,内网IP地址个数总和不能超过配额数,详见弹性网卡使用限制。 + SecondaryPrivateIpAddressCount *uint64 `json:"SecondaryPrivateIpAddressCount,omitempty" name:"SecondaryPrivateIpAddressCount"` +} + +func (r *AssignPrivateIpAddressesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssignPrivateIpAddressesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssignPrivateIpAddressesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 内网IP详细信息。 + PrivateIpAddressSet []*PrivateIpAddressSpecification `json:"PrivateIpAddressSet,omitempty" name:"PrivateIpAddressSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AssignPrivateIpAddressesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssignPrivateIpAddressesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssistantCidr struct { + + // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 辅助CIDR。形如:`172.16.0.0/16` + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // 辅助CIDR类型(0:普通辅助CIDR,1:容器辅助CIDR),默认都是0。 + AssistantType *int64 `json:"AssistantType,omitempty" name:"AssistantType"` + + // 辅助CIDR拆分的子网。 + // 注意:此字段可能返回 null,表示取不到有效值。 + SubnetSet []*Subnet `json:"SubnetSet,omitempty" name:"SubnetSet" list` +} + +type AssociateAddressRequest struct { + *tchttp.BaseRequest + + // 标识 EIP 的唯一 ID。EIP 唯一 ID 形如:`eip-11112222`。 + AddressId *string `json:"AddressId,omitempty" name:"AddressId"` + + // 要绑定的实例 ID。实例 ID 形如:`ins-11112222`。可通过登录[控制台](https://console.cloud.tencent.com/cvm)查询,也可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 要绑定的弹性网卡 ID。 弹性网卡 ID 形如:`eni-11112222`。`NetworkInterfaceId` 与 `InstanceId` 不可同时指定。弹性网卡 ID 可通过登录[控制台](https://console.cloud.tencent.com/vpc/eni)查询,也可通过[DescribeNetworkInterfaces](https://cloud.tencent.com/document/api/215/15817)接口返回值中的`networkInterfaceId`获取。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 要绑定的内网 IP。如果指定了 `NetworkInterfaceId` 则也必须指定 `PrivateIpAddress` ,表示将 EIP 绑定到指定弹性网卡的指定内网 IP 上。同时要确保指定的 `PrivateIpAddress` 是指定的 `NetworkInterfaceId` 上的一个内网 IP。指定弹性网卡的内网 IP 可通过登录[控制台](https://console.cloud.tencent.com/vpc/eni)查询,也可通过[DescribeNetworkInterfaces](https://cloud.tencent.com/document/api/215/15817)接口返回值中的`privateIpAddress`获取。 + PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" name:"PrivateIpAddress"` +} + +func (r *AssociateAddressRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssociateAddressRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssociateAddressResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AssociateAddressResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssociateAddressResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssociateNatGatewayAddressRequest struct { + *tchttp.BaseRequest + + // NAT网关的ID,形如:`nat-df45454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // 需要申请的弹性IP个数,系统会按您的要求生产N个弹性IP, 其中AddressCount和PublicAddresses至少传递一个。 + AddressCount *uint64 `json:"AddressCount,omitempty" name:"AddressCount"` + + // 绑定NAT网关的弹性IP数组,其中AddressCount和PublicAddresses至少传递一个。。 + PublicIpAddresses []*string `json:"PublicIpAddresses,omitempty" name:"PublicIpAddresses" list` + + // 弹性IP可以区,自动分配弹性IP时传递。 + Zone *string `json:"Zone,omitempty" name:"Zone"` +} + +func (r *AssociateNatGatewayAddressRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssociateNatGatewayAddressRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssociateNatGatewayAddressResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AssociateNatGatewayAddressResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssociateNatGatewayAddressResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssociateNetworkAclSubnetsRequest struct { + *tchttp.BaseRequest + + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 子网实例ID数组。例如:[subnet-12345678] + SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds" list` +} + +func (r *AssociateNetworkAclSubnetsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssociateNetworkAclSubnetsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AssociateNetworkAclSubnetsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AssociateNetworkAclSubnetsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AssociateNetworkAclSubnetsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AttachCcnInstancesRequest struct { + *tchttp.BaseRequest + + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 关联网络实例列表 + Instances []*CcnInstance `json:"Instances,omitempty" name:"Instances" list` + + // CCN所属UIN(根账号),默认当前账号所属UIN + CcnUin *string `json:"CcnUin,omitempty" name:"CcnUin"` +} + +func (r *AttachCcnInstancesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AttachCcnInstancesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AttachCcnInstancesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AttachCcnInstancesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AttachCcnInstancesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AttachClassicLinkVpcRequest struct { + *tchttp.BaseRequest + + // VPC实例ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // CVM实例ID + InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` +} + +func (r *AttachClassicLinkVpcRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AttachClassicLinkVpcRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AttachClassicLinkVpcResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AttachClassicLinkVpcResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AttachClassicLinkVpcResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AttachNetworkInterfaceRequest struct { + *tchttp.BaseRequest + + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // CVM实例ID。形如:ins-r8hr2upy。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` +} + +func (r *AttachNetworkInterfaceRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AttachNetworkInterfaceRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type AttachNetworkInterfaceResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *AttachNetworkInterfaceResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *AttachNetworkInterfaceResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type BandwidthPackage struct { + + // 带宽包唯一标识Id + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` + + // 带宽包类型,包括'BGP','SINGLEISP','ANYCAST' + NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + + // 带宽包计费类型,包括'TOP5_POSTPAID_BY_MONTH'和'PERCENT95_POSTPAID_BY_MONTH' + ChargeType *string `json:"ChargeType,omitempty" name:"ChargeType"` + + // 带宽包名称 + BandwidthPackageName *string `json:"BandwidthPackageName,omitempty" name:"BandwidthPackageName"` + + // 带宽包创建时间。按照`ISO8601`标准表示,并且使用`UTC`时间。格式为:`YYYY-MM-DDThh:mm:ssZ`。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // 带宽包状态,包括'CREATING','CREATED','DELETING','DELETED' + Status *string `json:"Status,omitempty" name:"Status"` + + // 带宽包资源信息 + ResourceSet []*Resource `json:"ResourceSet,omitempty" name:"ResourceSet" list` + + // 带宽包限速大小。单位:Mbps,-1表示不限速。 + Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` +} + +type CCN struct { + + // 云联网唯一ID + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 云联网名称 + CcnName *string `json:"CcnName,omitempty" name:"CcnName"` + + // 云联网描述信息 + CcnDescription *string `json:"CcnDescription,omitempty" name:"CcnDescription"` + + // 关联实例数量 + InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"` + + // 创建时间 + CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` + + // 实例状态, 'ISOLATED': 隔离中(欠费停服),'AVAILABLE':运行中。 + State *string `json:"State,omitempty" name:"State"` + + // 实例服务质量,’PT’:白金,'AU':金,'AG':银。 + QosLevel *string `json:"QosLevel,omitempty" name:"QosLevel"` + + // 付费类型,PREPAID为预付费,POSTPAID为后付费。 + // 注意:此字段可能返回 null,表示取不到有效值。 + InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` + + // 限速类型,INTER_REGION_LIMIT为地域间限速;OUTER_REGION_LIMIT为地域出口限速。 + // 注意:此字段可能返回 null,表示取不到有效值。 + BandwidthLimitType *string `json:"BandwidthLimitType,omitempty" name:"BandwidthLimitType"` + + // 标签键值对。 + TagSet []*Tag `json:"TagSet,omitempty" name:"TagSet" list` +} + +type CcnAttachedInstance struct { + + // 云联网实例ID。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 关联实例类型: + //
  • `VPC`:私有网络
  • + //
  • `DIRECTCONNECT`:专线网关
  • + //
  • `BMVPC`:黑石私有网络
  • + InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` + + // 关联实例ID。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 关联实例名称。 + InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` + + // 关联实例所属大区,例如:ap-guangzhou。 + InstanceRegion *string `json:"InstanceRegion,omitempty" name:"InstanceRegion"` + + // 关联实例所属UIN(根账号)。 + InstanceUin *string `json:"InstanceUin,omitempty" name:"InstanceUin"` + + // 关联实例CIDR。 + CidrBlock []*string `json:"CidrBlock,omitempty" name:"CidrBlock" list` + + // 关联实例状态: + //
  • `PENDING`:申请中
  • + //
  • `ACTIVE`:已连接
  • + //
  • `EXPIRED`:已过期
  • + //
  • `REJECTED`:已拒绝
  • + //
  • `DELETED`:已删除
  • + //
  • `FAILED`:失败的(2小时后将异步强制解关联)
  • + //
  • `ATTACHING`:关联中
  • + //
  • `DETACHING`:解关联中
  • + //
  • `DETACHFAILED`:解关联失败(2小时后将异步强制解关联)
  • + State *string `json:"State,omitempty" name:"State"` + + // 关联时间。 + AttachedTime *string `json:"AttachedTime,omitempty" name:"AttachedTime"` + + // 云联网所属UIN(根账号)。 + CcnUin *string `json:"CcnUin,omitempty" name:"CcnUin"` +} + +type CcnInstance struct { + + // 关联实例ID。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 关联实例ID所属大区,例如:ap-guangzhou。 + InstanceRegion *string `json:"InstanceRegion,omitempty" name:"InstanceRegion"` + + // 关联实例类型,可选值: + //
  • `VPC`:私有网络
  • + //
  • `DIRECTCONNECT`:专线网关
  • + //
  • `BMVPC`:黑石私有网络
  • + InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` +} + +type CcnRegionBandwidthLimit struct { + + // 地域,例如:ap-guangzhou + Region *string `json:"Region,omitempty" name:"Region"` + + // 出带宽上限,单位:Mbps + BandwidthLimit *uint64 `json:"BandwidthLimit,omitempty" name:"BandwidthLimit"` + + // 是否黑石地域,默认`false`。 + IsBm *bool `json:"IsBm,omitempty" name:"IsBm"` + + // 目的地域,例如:ap-shanghai + // 注意:此字段可能返回 null,表示取不到有效值。 + DstRegion *string `json:"DstRegion,omitempty" name:"DstRegion"` + + // 目的地域是否为黑石地域,默认`false`。 + DstIsBm *bool `json:"DstIsBm,omitempty" name:"DstIsBm"` +} + +type CcnRoute struct { + + // 路由策略ID + RouteId *string `json:"RouteId,omitempty" name:"RouteId"` + + // 目的端 + DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"` + + // 下一跳类型(关联实例类型),所有类型:VPC、DIRECTCONNECT + InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` + + // 下一跳(关联实例) + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 下一跳名称(关联实例名称) + InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` + + // 下一跳所属地域(关联实例所属地域) + InstanceRegion *string `json:"InstanceRegion,omitempty" name:"InstanceRegion"` + + // 更新时间 + UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` + + // 路由是否启用 + Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` + + // 关联实例所属UIN(根账号) + InstanceUin *string `json:"InstanceUin,omitempty" name:"InstanceUin"` +} + +type CheckNetDetectStateRequest struct { + *tchttp.BaseRequest + + // 探测目的IPv4地址数组,最多两个。 + DetectDestinationIp []*string `json:"DetectDestinationIp,omitempty" name:"DetectDestinationIp" list` + + // 下一跳类型,目前我们支持的类型有: + // VPN:VPN网关; + // DIRECTCONNECT:专线网关; + // PEERCONNECTION:对等连接; + // NAT:NAT网关; + // NORMAL_CVM:普通云服务器; + NextHopType *string `json:"NextHopType,omitempty" name:"NextHopType"` + + // 下一跳目的网关,取值与“下一跳类型”相关: + // 下一跳类型为VPN,取值VPN网关ID,形如:vpngw-12345678; + // 下一跳类型为DIRECTCONNECT,取值专线网关ID,形如:dcg-12345678; + // 下一跳类型为PEERCONNECTION,取值对等连接ID,形如:pcx-12345678; + // 下一跳类型为NAT,取值Nat网关,形如:nat-12345678; + // 下一跳类型为NORMAL_CVM,取值云服务器IPv4地址,形如:10.0.0.12; + NextHopDestination *string `json:"NextHopDestination,omitempty" name:"NextHopDestination"` + + // 网络探测实例ID。形如:netd-12345678。 + NetDetectId *string `json:"NetDetectId,omitempty" name:"NetDetectId"` + + // `VPC`实例`ID`。形如:`vpc-12345678` + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 子网实例ID。形如:subnet-12345678。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 网络探测名称,最大长度不能超过60个字节。 + NetDetectName *string `json:"NetDetectName,omitempty" name:"NetDetectName"` +} + +func (r *CheckNetDetectStateRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CheckNetDetectStateRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CheckNetDetectStateResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 网络探测验证结果对象数组。 + NetDetectIpStateSet []*NetDetectIpState `json:"NetDetectIpStateSet,omitempty" name:"NetDetectIpStateSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CheckNetDetectStateResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CheckNetDetectStateResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ClassicLinkInstance struct { + + // VPC实例ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 云服务器实例唯一ID + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` +} + +type CreateAddressTemplateGroupRequest struct { + *tchttp.BaseRequest + + // IP地址模版集合名称。 + AddressTemplateGroupName *string `json:"AddressTemplateGroupName,omitempty" name:"AddressTemplateGroupName"` + + // IP地址模版实例ID,例如:ipm-mdunqeb6。 + AddressTemplateIds []*string `json:"AddressTemplateIds,omitempty" name:"AddressTemplateIds" list` +} + +func (r *CreateAddressTemplateGroupRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateAddressTemplateGroupRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateAddressTemplateGroupResponse struct { + *tchttp.BaseResponse + Response *struct { + + // IP地址模板集合对象。 + AddressTemplateGroup *AddressTemplateGroup `json:"AddressTemplateGroup,omitempty" name:"AddressTemplateGroup"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateAddressTemplateGroupResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateAddressTemplateGroupResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateAddressTemplateRequest struct { + *tchttp.BaseRequest + + // IP地址模版名称 + AddressTemplateName *string `json:"AddressTemplateName,omitempty" name:"AddressTemplateName"` + + // 地址信息,支持 IP、CIDR、IP 范围。 + Addresses []*string `json:"Addresses,omitempty" name:"Addresses" list` +} + +func (r *CreateAddressTemplateRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateAddressTemplateRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateAddressTemplateResponse struct { + *tchttp.BaseResponse + Response *struct { + + // IP地址模板对象。 + AddressTemplate *AddressTemplate `json:"AddressTemplate,omitempty" name:"AddressTemplate"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateAddressTemplateResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateAddressTemplateResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateBandwidthPackageRequest struct { + *tchttp.BaseRequest + + // 带宽包类型,包括'BGP','SINGLEISP','ANYCAST' + NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + + // 带宽包计费类型,包括‘TOP5_POSTPAID_BY_MONTH’,‘PERCENT95_POSTPAID_BY_MONTH’ + ChargeType *string `json:"ChargeType,omitempty" name:"ChargeType"` + + // 带宽包名字 + BandwidthPackageName *string `json:"BandwidthPackageName,omitempty" name:"BandwidthPackageName"` + + // 带宽包数量(非上移账户只能填1) + BandwidthPackageCount *uint64 `json:"BandwidthPackageCount,omitempty" name:"BandwidthPackageCount"` + + // 带宽包限速大小。单位:Mbps,-1表示不限速。 + InternetMaxBandwidth *int64 `json:"InternetMaxBandwidth,omitempty" name:"InternetMaxBandwidth"` + + // 需要关联的标签列表。 + Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` + + // 带宽包协议类型。当前支持'ipv4'和'ipv6'协议带宽包,默认值是'ipv4'。 + Protocol *string `json:"Protocol,omitempty" name:"Protocol"` +} + +func (r *CreateBandwidthPackageRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateBandwidthPackageRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateBandwidthPackageResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 带宽包唯一ID + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` + + // 带宽包唯一ID列表(申请数量大于1时有效) + BandwidthPackageIds []*string `json:"BandwidthPackageIds,omitempty" name:"BandwidthPackageIds" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateBandwidthPackageResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateBandwidthPackageResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateCcnRequest struct { + *tchttp.BaseRequest + + // CCN名称,最大长度不能超过60个字节。 + CcnName *string `json:"CcnName,omitempty" name:"CcnName"` + + // CCN描述信息,最大长度不能超过100个字节。 + CcnDescription *string `json:"CcnDescription,omitempty" name:"CcnDescription"` + + // CCN服务质量,'PT':白金,'AU':金,'AG':银,默认为‘AU’。 + QosLevel *string `json:"QosLevel,omitempty" name:"QosLevel"` + + // 计费模式,PREPAID:表示预付费,即包年包月,POSTPAID:表示后付费,即按量计费。默认:POSTPAID。 + InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` + + // 限速类型,OUTER_REGION_LIMIT表示地域出口限速,INTER_REGION_LIMIT为地域间限速,默认为OUTER_REGION_LIMIT + BandwidthLimitType *string `json:"BandwidthLimitType,omitempty" name:"BandwidthLimitType"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` +} + +func (r *CreateCcnRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateCcnRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateCcnResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 云联网(CCN)对象。 + Ccn *CCN `json:"Ccn,omitempty" name:"Ccn"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateCcnResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateCcnResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateCustomerGatewayRequest struct { + *tchttp.BaseRequest + + // 对端网关名称,可任意命名,但不得超过60个字符。 + CustomerGatewayName *string `json:"CustomerGatewayName,omitempty" name:"CustomerGatewayName"` + + // 对端网关公网IP。 + IpAddress *string `json:"IpAddress,omitempty" name:"IpAddress"` +} + +func (r *CreateCustomerGatewayRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateCustomerGatewayRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateCustomerGatewayResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 对端网关对象 + CustomerGateway *CustomerGateway `json:"CustomerGateway,omitempty" name:"CustomerGateway"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateCustomerGatewayResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateCustomerGatewayResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateDefaultVpcRequest struct { + *tchttp.BaseRequest + + // 子网所在的可用区ID,不指定将随机选择可用区 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 是否强制返回默认VPC + Force *bool `json:"Force,omitempty" name:"Force"` +} + +func (r *CreateDefaultVpcRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateDefaultVpcRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateDefaultVpcResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 默认VPC和子网ID + Vpc *DefaultVpcSubnet `json:"Vpc,omitempty" name:"Vpc"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateDefaultVpcResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateDefaultVpcResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateDirectConnectGatewayCcnRoutesRequest struct { + *tchttp.BaseRequest + + // 专线网关ID,形如:dcg-prpqlmg1 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` + + // 需要连通的IDC网段列表 + Routes []*DirectConnectGatewayCcnRoute `json:"Routes,omitempty" name:"Routes" list` +} + +func (r *CreateDirectConnectGatewayCcnRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateDirectConnectGatewayCcnRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateDirectConnectGatewayCcnRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateDirectConnectGatewayCcnRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateDirectConnectGatewayCcnRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateDirectConnectGatewayRequest struct { + *tchttp.BaseRequest + + // 专线网关名称 + DirectConnectGatewayName *string `json:"DirectConnectGatewayName,omitempty" name:"DirectConnectGatewayName"` + + // 关联网络类型,可选值: + //
  • VPC - 私有网络
  • + //
  • CCN - 云联网
  • + NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + + //
  • NetworkType 为 VPC 时,这里传值为私有网络实例ID
  • + //
  • NetworkType 为 CCN 时,这里传值为云联网实例ID
  • + NetworkInstanceId *string `json:"NetworkInstanceId,omitempty" name:"NetworkInstanceId"` + + // 网关类型,可选值: + //
  • NORMAL - (默认)标准型,注:云联网只支持标准型
  • + //
  • NAT - NAT型
  • NAT类型支持网络地址转换配置,类型确定后不能修改;一个私有网络可以创建一个NAT类型的专线网关和一个非NAT类型的专线网关 + GatewayType *string `json:"GatewayType,omitempty" name:"GatewayType"` +} + +func (r *CreateDirectConnectGatewayRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateDirectConnectGatewayRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateDirectConnectGatewayResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 专线网关对象。 + DirectConnectGateway *DirectConnectGateway `json:"DirectConnectGateway,omitempty" name:"DirectConnectGateway"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateDirectConnectGatewayResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateDirectConnectGatewayResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateFlowLogRequest struct { + *tchttp.BaseRequest + + // 私用网络ID或者统一ID,建议使用统一ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 流日志实例名字 + FlowLogName *string `json:"FlowLogName,omitempty" name:"FlowLogName"` + + // 流日志所属资源类型,VPC|SUBNET|NETWORKINTERFACE + ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` + + // 资源唯一ID + ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` + + // 流日志采集类型,ACCEPT|REJECT|ALL + TrafficType *string `json:"TrafficType,omitempty" name:"TrafficType"` + + // 流日志存储ID + CloudLogId *string `json:"CloudLogId,omitempty" name:"CloudLogId"` + + // 流日志实例描述 + FlowLogDescription *string `json:"FlowLogDescription,omitempty" name:"FlowLogDescription"` +} + +func (r *CreateFlowLogRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateFlowLogRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateFlowLogResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 创建的流日志信息 + FlowLog []*FlowLog `json:"FlowLog,omitempty" name:"FlowLog" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateFlowLogResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateFlowLogResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateHaVipRequest struct { + *tchttp.BaseRequest + + // `HAVIP`所在私有网络`ID`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // `HAVIP`所在子网`ID`。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // `HAVIP`名称。 + HaVipName *string `json:"HaVipName,omitempty" name:"HaVipName"` + + // 指定虚拟IP地址,必须在`VPC`网段内且未被占用。不指定则自动分配。 + Vip *string `json:"Vip,omitempty" name:"Vip"` +} + +func (r *CreateHaVipRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateHaVipRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateHaVipResponse struct { + *tchttp.BaseResponse + Response *struct { + + // `HAVIP`对象。 + HaVip *HaVip `json:"HaVip,omitempty" name:"HaVip"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateHaVipResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateHaVipResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateIp6TranslatorsRequest struct { + *tchttp.BaseRequest + + // 转换实例名称 + Ip6TranslatorName *string `json:"Ip6TranslatorName,omitempty" name:"Ip6TranslatorName"` + + // 创建转换实例数量,默认是1个 + Ip6TranslatorCount *int64 `json:"Ip6TranslatorCount,omitempty" name:"Ip6TranslatorCount"` + + // 转换实例运营商属性,可取"CMCC","CTCC","CUCC","BGP" + Ip6InternetServiceProvider *string `json:"Ip6InternetServiceProvider,omitempty" name:"Ip6InternetServiceProvider"` +} + +func (r *CreateIp6TranslatorsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateIp6TranslatorsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateIp6TranslatorsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 转换实例的唯一ID数组,形如"ip6-xxxxxxxx" + Ip6TranslatorSet []*string `json:"Ip6TranslatorSet,omitempty" name:"Ip6TranslatorSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateIp6TranslatorsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateIp6TranslatorsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateNatGatewayDestinationIpPortTranslationNatRuleRequest struct { + *tchttp.BaseRequest + + // NAT网关的ID,形如:`nat-df45454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // NAT网关的端口转换规则。 + DestinationIpPortTranslationNatRules []*DestinationIpPortTranslationNatRule `json:"DestinationIpPortTranslationNatRules,omitempty" name:"DestinationIpPortTranslationNatRules" list` +} + +func (r *CreateNatGatewayDestinationIpPortTranslationNatRuleRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateNatGatewayDestinationIpPortTranslationNatRuleRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateNatGatewayDestinationIpPortTranslationNatRuleResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateNatGatewayDestinationIpPortTranslationNatRuleResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateNatGatewayDestinationIpPortTranslationNatRuleResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateNatGatewayRequest struct { + *tchttp.BaseRequest + + // NAT网关名称 + NatGatewayName *string `json:"NatGatewayName,omitempty" name:"NatGatewayName"` + + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // NAT网关最大外网出带宽(单位:Mbps),支持的参数值:`20, 50, 100, 200, 500, 1000, 2000, 5000`,默认: `100Mbps`。 + InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // NAT网关并发连接上限,支持参数值:`1000000、3000000、10000000`,默认值为`100000`。 + MaxConcurrentConnection *uint64 `json:"MaxConcurrentConnection,omitempty" name:"MaxConcurrentConnection"` + + // 需要申请的弹性IP个数,系统会按您的要求生产N个弹性IP,其中AddressCount和PublicAddresses至少传递一个。 + AddressCount *uint64 `json:"AddressCount,omitempty" name:"AddressCount"` + + // 绑定NAT网关的弹性IP数组,其中AddressCount和PublicAddresses至少传递一个。 + PublicIpAddresses []*string `json:"PublicIpAddresses,omitempty" name:"PublicIpAddresses" list` + + // 可用区,形如:`ap-guangzhou-1`。 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` +} + +func (r *CreateNatGatewayRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateNatGatewayRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateNatGatewayResponse struct { + *tchttp.BaseResponse + Response *struct { + + // NAT网关对象数组。 + NatGatewaySet []*NatGateway `json:"NatGatewaySet,omitempty" name:"NatGatewaySet" list` + + // 符合条件的 NAT网关对象数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateNatGatewayResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateNatGatewayResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateNetDetectRequest struct { + *tchttp.BaseRequest + + // `VPC`实例`ID`。形如:`vpc-12345678` + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 子网实例ID。形如:subnet-12345678。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 网络探测名称,最大长度不能超过60个字节。 + NetDetectName *string `json:"NetDetectName,omitempty" name:"NetDetectName"` + + // 探测目的IPv4地址数组。最多两个。 + DetectDestinationIp []*string `json:"DetectDestinationIp,omitempty" name:"DetectDestinationIp" list` + + // 下一跳类型,目前我们支持的类型有: + // VPN:VPN网关; + // DIRECTCONNECT:专线网关; + // PEERCONNECTION:对等连接; + // NAT:NAT网关; + // NORMAL_CVM:普通云服务器; + NextHopType *string `json:"NextHopType,omitempty" name:"NextHopType"` + + // 下一跳目的网关,取值与“下一跳类型”相关: + // 下一跳类型为VPN,取值VPN网关ID,形如:vpngw-12345678; + // 下一跳类型为DIRECTCONNECT,取值专线网关ID,形如:dcg-12345678; + // 下一跳类型为PEERCONNECTION,取值对等连接ID,形如:pcx-12345678; + // 下一跳类型为NAT,取值Nat网关,形如:nat-12345678; + // 下一跳类型为NORMAL_CVM,取值云服务器IPv4地址,形如:10.0.0.12; + NextHopDestination *string `json:"NextHopDestination,omitempty" name:"NextHopDestination"` + + // 网络探测描述。 + NetDetectDescription *string `json:"NetDetectDescription,omitempty" name:"NetDetectDescription"` +} + +func (r *CreateNetDetectRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateNetDetectRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateNetDetectResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 网络探测(NetDetect)对象。 + NetDetect *NetDetect `json:"NetDetect,omitempty" name:"NetDetect"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateNetDetectResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateNetDetectResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateNetworkAclRequest struct { + *tchttp.BaseRequest + + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 网络ACL名称,最大长度不能超过60个字节。 + NetworkAclName *string `json:"NetworkAclName,omitempty" name:"NetworkAclName"` +} + +func (r *CreateNetworkAclRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateNetworkAclRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateNetworkAclResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 网络ACL实例。 + NetworkAcl *NetworkAcl `json:"NetworkAcl,omitempty" name:"NetworkAcl"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateNetworkAclResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateNetworkAclResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateNetworkInterfaceRequest struct { + *tchttp.BaseRequest + + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 弹性网卡名称,最大长度不能超过60个字节。 + NetworkInterfaceName *string `json:"NetworkInterfaceName,omitempty" name:"NetworkInterfaceName"` + + // 弹性网卡所在的子网实例ID,例如:subnet-0ap8nwca。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 弹性网卡描述,可任意命名,但不得超过60个字符。 + NetworkInterfaceDescription *string `json:"NetworkInterfaceDescription,omitempty" name:"NetworkInterfaceDescription"` + + // 新申请的内网IP地址个数,内网IP地址个数总和不能超过配数。 + SecondaryPrivateIpAddressCount *uint64 `json:"SecondaryPrivateIpAddressCount,omitempty" name:"SecondaryPrivateIpAddressCount"` + + // 指定绑定的安全组,例如:['sg-1dd51d']。 + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list` + + // 指定的内网IP信息,单次最多指定10个。 + PrivateIpAddresses []*PrivateIpAddressSpecification `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses" list` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` +} + +func (r *CreateNetworkInterfaceRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateNetworkInterfaceRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateNetworkInterfaceResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 弹性网卡实例。 + NetworkInterface *NetworkInterface `json:"NetworkInterface,omitempty" name:"NetworkInterface"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateNetworkInterfaceResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateNetworkInterfaceResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateRouteTableRequest struct { + *tchttp.BaseRequest + + // 待操作的VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 路由表名称,最大长度不能超过60个字节。 + RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` +} + +func (r *CreateRouteTableRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateRouteTableRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateRouteTableResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 路由表对象。 + RouteTable *RouteTable `json:"RouteTable,omitempty" name:"RouteTable"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateRouteTableResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateRouteTableResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateRoutesRequest struct { + *tchttp.BaseRequest + + // 路由表实例ID。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由策略对象。 + Routes []*Route `json:"Routes,omitempty" name:"Routes" list` +} + +func (r *CreateRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 新增的实例个数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 路由表对象。 + RouteTableSet []*RouteTable `json:"RouteTableSet,omitempty" name:"RouteTableSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateSecurityGroupPoliciesRequest struct { + *tchttp.BaseRequest + + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 安全组规则集合。 + SecurityGroupPolicySet *SecurityGroupPolicySet `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` +} + +func (r *CreateSecurityGroupPoliciesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateSecurityGroupPoliciesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateSecurityGroupPoliciesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateSecurityGroupPoliciesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateSecurityGroupPoliciesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateSecurityGroupRequest struct { + *tchttp.BaseRequest + + // 安全组名称,可任意命名,但不得超过60个字符。 + GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + + // 安全组备注,最多100个字符。 + GroupDescription *string `json:"GroupDescription,omitempty" name:"GroupDescription"` + + // 项目ID,默认0。可在qcloud控制台项目管理页面查询到。 + ProjectId *string `json:"ProjectId,omitempty" name:"ProjectId"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` +} + +func (r *CreateSecurityGroupRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateSecurityGroupRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateSecurityGroupResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 安全组对象。 + SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty" name:"SecurityGroup"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateSecurityGroupResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateSecurityGroupResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateServiceTemplateGroupRequest struct { + *tchttp.BaseRequest + + // 协议端口模板集合名称 + ServiceTemplateGroupName *string `json:"ServiceTemplateGroupName,omitempty" name:"ServiceTemplateGroupName"` + + // 协议端口模板实例ID,例如:ppm-4dw6agho。 + ServiceTemplateIds []*string `json:"ServiceTemplateIds,omitempty" name:"ServiceTemplateIds" list` +} + +func (r *CreateServiceTemplateGroupRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateServiceTemplateGroupRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateServiceTemplateGroupResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 协议端口模板集合对象。 + ServiceTemplateGroup *ServiceTemplateGroup `json:"ServiceTemplateGroup,omitempty" name:"ServiceTemplateGroup"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateServiceTemplateGroupResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateServiceTemplateGroupResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateServiceTemplateRequest struct { + *tchttp.BaseRequest + + // 协议端口模板名称 + ServiceTemplateName *string `json:"ServiceTemplateName,omitempty" name:"ServiceTemplateName"` + + // 支持单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。 + Services []*string `json:"Services,omitempty" name:"Services" list` +} + +func (r *CreateServiceTemplateRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateServiceTemplateRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateServiceTemplateResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 协议端口模板对象。 + ServiceTemplate *ServiceTemplate `json:"ServiceTemplate,omitempty" name:"ServiceTemplate"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateServiceTemplateResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateServiceTemplateResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateSubnetRequest struct { + *tchttp.BaseRequest + + // 待操作的VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 子网名称,最大长度不能超过60个字节。 + SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"` + + // 子网网段,子网网段必须在VPC网段内,相同VPC内子网网段不能重叠。 + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // 子网所在的可用区ID,不同子网选择不同可用区可以做跨可用区灾备。 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` +} + +func (r *CreateSubnetRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateSubnetRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateSubnetResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 子网对象。 + Subnet *Subnet `json:"Subnet,omitempty" name:"Subnet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateSubnetResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateSubnetResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateSubnetsRequest struct { + *tchttp.BaseRequest + + // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 子网对象列表。 + Subnets []*SubnetInput `json:"Subnets,omitempty" name:"Subnets" list` + + // 指定绑定的标签列表,注意这里的标签集合为列表中所有子网对象所共享,不能为每个子网对象单独指定标签,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` +} + +func (r *CreateSubnetsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateSubnetsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateSubnetsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 新创建的子网列表。 + SubnetSet []*Subnet `json:"SubnetSet,omitempty" name:"SubnetSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateSubnetsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateSubnetsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateVpcRequest struct { + *tchttp.BaseRequest + + // vpc名称,最大长度不能超过60个字节。 + VpcName *string `json:"VpcName,omitempty" name:"VpcName"` + + // vpc的cidr,只能为10.0.0.0/16,172.16.0.0/16,192.168.0.0/16这三个内网网段内。 + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // 是否开启组播。true: 开启, false: 不开启。 + EnableMulticast *string `json:"EnableMulticast,omitempty" name:"EnableMulticast"` + + // DNS地址,最多支持4个 + DnsServers []*string `json:"DnsServers,omitempty" name:"DnsServers" list` + + // 域名 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags" list` +} + +func (r *CreateVpcRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateVpcRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateVpcResponse struct { + *tchttp.BaseResponse + Response *struct { + + // Vpc对象。 + Vpc *Vpc `json:"Vpc,omitempty" name:"Vpc"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateVpcResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateVpcResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateVpnConnectionRequest struct { + *tchttp.BaseRequest + + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。 + CustomerGatewayId *string `json:"CustomerGatewayId,omitempty" name:"CustomerGatewayId"` + + // 通道名称,可任意命名,但不得超过60个字符。 + VpnConnectionName *string `json:"VpnConnectionName,omitempty" name:"VpnConnectionName"` + + // 预共享密钥。 + PreShareKey *string `json:"PreShareKey,omitempty" name:"PreShareKey"` + + // SPD策略组,例如:{"10.0.0.5/24":["172.123.10.5/16"]},10.0.0.5/24是vpc内网段172.123.10.5/16是IDC网段。用户指定VPC内哪些网段可以和您IDC中哪些网段通信。 + SecurityPolicyDatabases []*SecurityPolicyDatabase `json:"SecurityPolicyDatabases,omitempty" name:"SecurityPolicyDatabases" list` + + // IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议 + IKEOptionsSpecification *IKEOptionsSpecification `json:"IKEOptionsSpecification,omitempty" name:"IKEOptionsSpecification"` + + // IPSec配置,腾讯云提供IPSec安全会话设置 + IPSECOptionsSpecification *IPSECOptionsSpecification `json:"IPSECOptionsSpecification,omitempty" name:"IPSECOptionsSpecification"` +} + +func (r *CreateVpnConnectionRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateVpnConnectionRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateVpnConnectionResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 通道实例对象。 + VpnConnection *VpnConnection `json:"VpnConnection,omitempty" name:"VpnConnection"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateVpnConnectionResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateVpnConnectionResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateVpnGatewayRequest struct { + *tchttp.BaseRequest + + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // VPN网关名称,最大长度不能超过60个字节。 + VpnGatewayName *string `json:"VpnGatewayName,omitempty" name:"VpnGatewayName"` + + // 公网带宽设置。可选带宽规格:5, 10, 20, 50, 100;单位:Mbps + InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // VPN网关计费模式,PREPAID:表示预付费,即包年包月,POSTPAID_BY_HOUR:表示后付费,即按量计费。默认:POSTPAID_BY_HOUR,如果指定预付费模式,参数InstanceChargePrepaid必填。 + InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` + + // 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。 + InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` + + // 可用区,如:ap-guangzhou-2。 + Zone *string `json:"Zone,omitempty" name:"Zone"` +} + +func (r *CreateVpnGatewayRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateVpnGatewayRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateVpnGatewayResponse struct { + *tchttp.BaseResponse + Response *struct { + + // VPN网关对象 + VpnGateway *VpnGateway `json:"VpnGateway,omitempty" name:"VpnGateway"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateVpnGatewayResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *CreateVpnGatewayResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CustomerGateway struct { + + // 用户网关唯一ID + CustomerGatewayId *string `json:"CustomerGatewayId,omitempty" name:"CustomerGatewayId"` + + // 网关名称 + CustomerGatewayName *string `json:"CustomerGatewayName,omitempty" name:"CustomerGatewayName"` + + // 公网地址 + IpAddress *string `json:"IpAddress,omitempty" name:"IpAddress"` + + // 创建时间 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` +} + +type CustomerGatewayVendor struct { + + // 平台。 + Platform *string `json:"Platform,omitempty" name:"Platform"` + + // 软件版本。 + SoftwareVersion *string `json:"SoftwareVersion,omitempty" name:"SoftwareVersion"` + + // 供应商名称。 + VendorName *string `json:"VendorName,omitempty" name:"VendorName"` +} + +type DefaultVpcSubnet struct { + + // 默认VpcId + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 默认SubnetId + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` +} + +type DeleteAddressTemplateGroupRequest struct { + *tchttp.BaseRequest + + // IP地址模板集合实例ID,例如:ipmg-90cex8mq。 + AddressTemplateGroupId *string `json:"AddressTemplateGroupId,omitempty" name:"AddressTemplateGroupId"` +} + +func (r *DeleteAddressTemplateGroupRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteAddressTemplateGroupRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteAddressTemplateGroupResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteAddressTemplateGroupResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteAddressTemplateGroupResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteAddressTemplateRequest struct { + *tchttp.BaseRequest + + // IP地址模板实例ID,例如:ipm-09o5m8kc。 + AddressTemplateId *string `json:"AddressTemplateId,omitempty" name:"AddressTemplateId"` +} + +func (r *DeleteAddressTemplateRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteAddressTemplateRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteAddressTemplateResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteAddressTemplateResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteAddressTemplateResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteBandwidthPackageRequest struct { + *tchttp.BaseRequest + + // 待删除带宽包唯一ID + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` +} + +func (r *DeleteBandwidthPackageRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteBandwidthPackageRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteBandwidthPackageResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteBandwidthPackageResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteBandwidthPackageResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteCcnRequest struct { + *tchttp.BaseRequest + + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` +} + +func (r *DeleteCcnRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteCcnRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteCcnResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteCcnResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteCcnResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteCustomerGatewayRequest struct { + *tchttp.BaseRequest + + // 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。 + CustomerGatewayId *string `json:"CustomerGatewayId,omitempty" name:"CustomerGatewayId"` +} + +func (r *DeleteCustomerGatewayRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteCustomerGatewayRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteCustomerGatewayResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteCustomerGatewayResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteCustomerGatewayResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteDirectConnectGatewayCcnRoutesRequest struct { + *tchttp.BaseRequest + + // 专线网关ID,形如:dcg-prpqlmg1 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` + + // 路由ID。形如:ccnr-f49l6u0z。 + RouteIds []*string `json:"RouteIds,omitempty" name:"RouteIds" list` +} + +func (r *DeleteDirectConnectGatewayCcnRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteDirectConnectGatewayCcnRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteDirectConnectGatewayCcnRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteDirectConnectGatewayCcnRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteDirectConnectGatewayCcnRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteDirectConnectGatewayRequest struct { + *tchttp.BaseRequest + + // 专线网关唯一`ID`,形如:`dcg-9o233uri`。 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` +} + +func (r *DeleteDirectConnectGatewayRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteDirectConnectGatewayRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteDirectConnectGatewayResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteDirectConnectGatewayResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteDirectConnectGatewayResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteFlowLogRequest struct { + *tchttp.BaseRequest + + // 私用网络ID或者统一ID,建议使用统一ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 流日志唯一ID + FlowLogId *string `json:"FlowLogId,omitempty" name:"FlowLogId"` +} + +func (r *DeleteFlowLogRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteFlowLogRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteFlowLogResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteFlowLogResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteFlowLogResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteHaVipRequest struct { + *tchttp.BaseRequest + + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。 + HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` +} + +func (r *DeleteHaVipRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteHaVipRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteHaVipResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteHaVipResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteHaVipResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteIp6TranslatorsRequest struct { + *tchttp.BaseRequest + + // 待释放的IPV6转换实例的唯一ID,形如‘ip6-xxxxxxxx’ + Ip6TranslatorIds []*string `json:"Ip6TranslatorIds,omitempty" name:"Ip6TranslatorIds" list` +} + +func (r *DeleteIp6TranslatorsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteIp6TranslatorsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteIp6TranslatorsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteIp6TranslatorsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteIp6TranslatorsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteNatGatewayDestinationIpPortTranslationNatRuleRequest struct { + *tchttp.BaseRequest + + // NAT网关的ID,形如:`nat-df45454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // NAT网关的端口转换规则。 + DestinationIpPortTranslationNatRules []*DestinationIpPortTranslationNatRule `json:"DestinationIpPortTranslationNatRules,omitempty" name:"DestinationIpPortTranslationNatRules" list` +} + +func (r *DeleteNatGatewayDestinationIpPortTranslationNatRuleRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteNatGatewayDestinationIpPortTranslationNatRuleRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteNatGatewayRequest struct { + *tchttp.BaseRequest + + // NAT网关的ID,形如:`nat-df45454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` +} + +func (r *DeleteNatGatewayRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteNatGatewayRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteNatGatewayResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteNatGatewayResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteNatGatewayResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteNetDetectRequest struct { + *tchttp.BaseRequest + + // 网络探测实例`ID`。形如:`netd-12345678` + NetDetectId *string `json:"NetDetectId,omitempty" name:"NetDetectId"` +} + +func (r *DeleteNetDetectRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteNetDetectRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteNetDetectResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteNetDetectResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteNetDetectResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteNetworkAclRequest struct { + *tchttp.BaseRequest + + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` +} + +func (r *DeleteNetworkAclRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteNetworkAclRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteNetworkAclResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteNetworkAclResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteNetworkAclResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteNetworkInterfaceRequest struct { + *tchttp.BaseRequest + + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` +} + +func (r *DeleteNetworkInterfaceRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteNetworkInterfaceRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteNetworkInterfaceResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteNetworkInterfaceResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteNetworkInterfaceResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteRouteTableRequest struct { + *tchttp.BaseRequest + + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` +} + +func (r *DeleteRouteTableRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteRouteTableRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteRouteTableResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteRouteTableResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteRouteTableResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteRoutesRequest struct { + *tchttp.BaseRequest + + // 路由表实例ID。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由策略对象。 + Routes []*Route `json:"Routes,omitempty" name:"Routes" list` +} + +func (r *DeleteRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteSecurityGroupPoliciesRequest struct { + *tchttp.BaseRequest + + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 安全组规则集合。一个请求中只能删除单个方向的一条或多条规则。支持指定索引(PolicyIndex) 匹配删除和安全组规则匹配删除两种方式,一个请求中只能使用一种匹配方式。 + SecurityGroupPolicySet *SecurityGroupPolicySet `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` +} + +func (r *DeleteSecurityGroupPoliciesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteSecurityGroupPoliciesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteSecurityGroupPoliciesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteSecurityGroupPoliciesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteSecurityGroupPoliciesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteSecurityGroupRequest struct { + *tchttp.BaseRequest + + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` +} + +func (r *DeleteSecurityGroupRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteSecurityGroupRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteSecurityGroupResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteSecurityGroupResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteSecurityGroupResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteServiceTemplateGroupRequest struct { + *tchttp.BaseRequest + + // 协议端口模板集合实例ID,例如:ppmg-n17uxvve。 + ServiceTemplateGroupId *string `json:"ServiceTemplateGroupId,omitempty" name:"ServiceTemplateGroupId"` +} + +func (r *DeleteServiceTemplateGroupRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteServiceTemplateGroupRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteServiceTemplateGroupResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteServiceTemplateGroupResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteServiceTemplateGroupResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteServiceTemplateRequest struct { + *tchttp.BaseRequest + + // 协议端口模板实例ID,例如:ppm-e6dy460g。 + ServiceTemplateId *string `json:"ServiceTemplateId,omitempty" name:"ServiceTemplateId"` +} + +func (r *DeleteServiceTemplateRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteServiceTemplateRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteServiceTemplateResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteServiceTemplateResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteServiceTemplateResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteSubnetRequest struct { + *tchttp.BaseRequest + + // 子网实例ID。可通过DescribeSubnets接口返回值中的SubnetId获取。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` +} + +func (r *DeleteSubnetRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteSubnetRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteSubnetResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteSubnetResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteSubnetResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteVpcRequest struct { + *tchttp.BaseRequest + + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` +} + +func (r *DeleteVpcRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteVpcRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteVpcResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteVpcResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteVpcResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteVpnConnectionRequest struct { + *tchttp.BaseRequest + + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // VPN通道实例ID。形如:vpnx-f49l6u0z。 + VpnConnectionId *string `json:"VpnConnectionId,omitempty" name:"VpnConnectionId"` +} + +func (r *DeleteVpnConnectionRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteVpnConnectionRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteVpnConnectionResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteVpnConnectionResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteVpnConnectionResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteVpnGatewayRequest struct { + *tchttp.BaseRequest + + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` +} + +func (r *DeleteVpnGatewayRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteVpnGatewayRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteVpnGatewayResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteVpnGatewayResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DeleteVpnGatewayResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeAccountAttributesRequest struct { + *tchttp.BaseRequest +} + +func (r *DescribeAccountAttributesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeAccountAttributesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeAccountAttributesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 用户账号属性对象 + AccountAttributeSet []*AccountAttribute `json:"AccountAttributeSet,omitempty" name:"AccountAttributeSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeAccountAttributesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeAccountAttributesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeAddressQuotaRequest struct { + *tchttp.BaseRequest +} + +func (r *DescribeAddressQuotaRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeAddressQuotaRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeAddressQuotaResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 账户 EIP 配额信息。 + QuotaSet []*Quota `json:"QuotaSet,omitempty" name:"QuotaSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeAddressQuotaResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeAddressQuotaResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeAddressTemplateGroupsRequest struct { + *tchttp.BaseRequest + + // 过滤条件。 + //
  • address-template-group-name - String - (过滤条件)IP地址模板集合名称。
  • + //
  • address-template-group-id - String - (过滤条件)IP地址模板实集合例ID,例如:ipmg-mdunqeb6。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeAddressTemplateGroupsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeAddressTemplateGroupsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeAddressTemplateGroupsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // IP地址模板。 + AddressTemplateGroupSet []*AddressTemplateGroup `json:"AddressTemplateGroupSet,omitempty" name:"AddressTemplateGroupSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeAddressTemplateGroupsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeAddressTemplateGroupsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeAddressTemplatesRequest struct { + *tchttp.BaseRequest + + // 过滤条件。 + //
  • address-template-name - String - (过滤条件)IP地址模板名称。
  • + //
  • address-template-id - String - (过滤条件)IP地址模板实例ID,例如:ipm-mdunqeb6。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeAddressTemplatesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeAddressTemplatesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeAddressTemplatesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // IP地址模版。 + AddressTemplateSet []*AddressTemplate `json:"AddressTemplateSet,omitempty" name:"AddressTemplateSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeAddressTemplatesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeAddressTemplatesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeAddressesRequest struct { + *tchttp.BaseRequest + + // 标识 EIP 的唯一 ID 列表。EIP 唯一 ID 形如:`eip-11112222`。参数不支持同时指定`AddressIds`和`Filters`。 + AddressIds []*string `json:"AddressIds,omitempty" name:"AddressIds" list` + + // 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`AddressIds`和`Filters`。详细的过滤条件如下: + //
  • address-id - String - 是否必填:否 - (过滤条件)按照 EIP 的唯一 ID 过滤。EIP 唯一 ID 形如:eip-11112222。
  • + //
  • address-name - String - 是否必填:否 - (过滤条件)按照 EIP 名称过滤。不支持模糊过滤。
  • + //
  • address-ip - String - 是否必填:否 - (过滤条件)按照 EIP 的 IP 地址过滤。
  • + //
  • address-status - String - 是否必填:否 - (过滤条件)按照 EIP 的状态过滤。状态包含:'CREATING','BINDING','BIND','UNBINDING','UNBIND','OFFLINING','BIND_ENI'。
  • + //
  • instance-id - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的实例 ID 过滤。实例 ID 形如:ins-11112222。
  • + //
  • private-ip-address - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的内网 IP 过滤。
  • + //
  • network-interface-id - String - 是否必填:否 - (过滤条件)按照 EIP 绑定的弹性网卡 ID 过滤。弹性网卡 ID 形如:eni-11112222。
  • + //
  • is-arrears - String - 是否必填:否 - (过滤条件)按照 EIP 是否欠费进行过滤。(TRUE:EIP 处于欠费状态|FALSE:EIP 费用状态正常)
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/11646)中的相关小节。 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/11646)中的相关小节。 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeAddressesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeAddressesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeAddressesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的 EIP 数量。 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // EIP 详细信息列表。 + AddressSet []*Address `json:"AddressSet,omitempty" name:"AddressSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeAddressesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeAddressesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeBandwidthPackageQuotaRequest struct { + *tchttp.BaseRequest +} + +func (r *DescribeBandwidthPackageQuotaRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeBandwidthPackageQuotaRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeBandwidthPackageQuotaResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 带宽包配额详细信息 + QuotaSet []*Quota `json:"QuotaSet,omitempty" name:"QuotaSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeBandwidthPackageQuotaResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeBandwidthPackageQuotaResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeBandwidthPackagesRequest struct { + *tchttp.BaseRequest + + // 带宽包唯一ID列表 + BandwidthPackageIds []*string `json:"BandwidthPackageIds,omitempty" name:"BandwidthPackageIds" list` + + // 每次请求的`Filters`的上限为10。参数不支持同时指定`BandwidthPackageIds`和`Filters`。详细的过滤条件如下: + //
  • bandwidth-package_id - String - 是否必填:否 - (过滤条件)按照带宽包的唯一标识ID过滤。
  • + //
  • bandwidth-package-name - String - 是否必填:否 - (过滤条件)按照 带宽包名称过滤。不支持模糊过滤。
  • + //
  • network-type - String - 是否必填:否 - (过滤条件)按照带宽包的类型过滤。类型包括'BGP','SINGLEISP'和'ANYCAST'。
  • + //
  • charge-type - String - 是否必填:否 - (过滤条件)按照带宽包的计费类型过滤。计费类型包括'TOP5_POSTPAID_BY_MONTH'和'PERCENT95_POSTPAID_BY_MONTH'
  • + //
  • resource.resource-type - String - 是否必填:否 - (过滤条件)按照带宽包资源类型过滤。资源类型包括'Address'和'LoadBalance'
  • + //
  • resource.resource-id - String - 是否必填:否 - (过滤条件)按照带宽包资源Id过滤。资源Id形如'eip-xxxx','lb-xxxx'
  • + //
  • resource.address-ip - String - 是否必填:否 - (过滤条件)按照带宽包资源Ip过滤。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 查询带宽包偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 查询带宽包数量限制 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeBandwidthPackagesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeBandwidthPackagesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeBandwidthPackagesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的带宽包数量 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 描述带宽包详细信息 + BandwidthPackageSet []*BandwidthPackage `json:"BandwidthPackageSet,omitempty" name:"BandwidthPackageSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeBandwidthPackagesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeBandwidthPackagesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeCcnAttachedInstancesRequest struct { + *tchttp.BaseRequest + + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件: + //
  • ccn-id - String -(过滤条件)CCN实例ID。
  • + //
  • instance-type - String -(过滤条件)关联实例类型。
  • + //
  • instance-region - String -(过滤条件)关联实例所属地域。
  • + //
  • instance-id - String -(过滤条件)关联实例实例ID。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 云联网实例ID + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 排序字段。支持:`CcnId` `InstanceType` `InstanceId` `InstanceName` `InstanceRegion` `AttachedTime` `State`。 + OrderField *string `json:"OrderField,omitempty" name:"OrderField"` + + // 排序方法。顺序:`ASC`,倒序:`DESC`。 + OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"` +} + +func (r *DescribeCcnAttachedInstancesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeCcnAttachedInstancesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeCcnAttachedInstancesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 关联实例列表。 + InstanceSet []*CcnAttachedInstance `json:"InstanceSet,omitempty" name:"InstanceSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeCcnAttachedInstancesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeCcnAttachedInstancesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeCcnRegionBandwidthLimitsRequest struct { + *tchttp.BaseRequest + + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` +} + +func (r *DescribeCcnRegionBandwidthLimitsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeCcnRegionBandwidthLimitsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeCcnRegionBandwidthLimitsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 云联网(CCN)各地域出带宽上限 + CcnRegionBandwidthLimitSet []*CcnRegionBandwidthLimit `json:"CcnRegionBandwidthLimitSet,omitempty" name:"CcnRegionBandwidthLimitSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeCcnRegionBandwidthLimitsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeCcnRegionBandwidthLimitsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeCcnRoutesRequest struct { + *tchttp.BaseRequest + + // CCN实例ID,形如:ccn-gree226l。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // CCN路由策略唯一ID。形如:ccnr-f49l6u0z。 + RouteIds []*string `json:"RouteIds,omitempty" name:"RouteIds" list` + + // 过滤条件,参数不支持同时指定RouteIds和Filters。 + //
  • route-id - String -(过滤条件)路由策略ID。
  • + //
  • cidr-block - String -(过滤条件)目的端。
  • + //
  • instance-type - String -(过滤条件)下一跳类型。
  • + //
  • instance-region - String -(过滤条件)下一跳所属地域。
  • + //
  • instance-id - String -(过滤条件)下一跳实例ID。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeCcnRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeCcnRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeCcnRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // CCN路由策略对象。 + RouteSet []*CcnRoute `json:"RouteSet,omitempty" name:"RouteSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeCcnRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeCcnRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeCcnsRequest struct { + *tchttp.BaseRequest + + // CCN实例ID。形如:ccn-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定CcnIds和Filters。 + CcnIds []*string `json:"CcnIds,omitempty" name:"CcnIds" list` + + // 过滤条件,参数不支持同时指定CcnIds和Filters。 + //
  • ccn-id - String - (过滤条件)CCN唯一ID,形如:vpc-f49l6u0z。
  • + //
  • ccn-name - String - (过滤条件)CCN名称。
  • + //
  • ccn-description - String - (过滤条件)CCN描述。
  • + //
  • state - String - (过滤条件)实例状态, 'ISOLATED': 隔离中(欠费停服),'AVAILABLE':运行中。
  • + //
  • tag-key - String -是否必填:否- (过滤条件)按照标签键进行过滤。
  • + //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。使用请参考示例:查询绑定了标签的CCN列表。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 排序字段。支持:`CcnId` `CcnName` `CreateTime` `State` `QosLevel` + OrderField *string `json:"OrderField,omitempty" name:"OrderField"` + + // 排序方法。顺序:`ASC`,倒序:`DESC`。 + OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"` +} + +func (r *DescribeCcnsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeCcnsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeCcnsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // CCN对象。 + CcnSet []*CCN `json:"CcnSet,omitempty" name:"CcnSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeCcnsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeCcnsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeClassicLinkInstancesRequest struct { + *tchttp.BaseRequest + + // 过滤条件。 + //
  • vpc-id - String - (过滤条件)VPC实例ID。
  • + //
  • vm-ip - String - (过滤条件)基础网络云服务器IP。
  • + Filters []*FilterObject `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeClassicLinkInstancesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeClassicLinkInstancesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeClassicLinkInstancesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 私有网络和基础网络互通设备。 + ClassicLinkInstanceSet []*ClassicLinkInstance `json:"ClassicLinkInstanceSet,omitempty" name:"ClassicLinkInstanceSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeClassicLinkInstancesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeClassicLinkInstancesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeCustomerGatewayVendorsRequest struct { + *tchttp.BaseRequest +} + +func (r *DescribeCustomerGatewayVendorsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeCustomerGatewayVendorsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeCustomerGatewayVendorsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 对端网关厂商信息对象。 + CustomerGatewayVendorSet []*CustomerGatewayVendor `json:"CustomerGatewayVendorSet,omitempty" name:"CustomerGatewayVendorSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeCustomerGatewayVendorsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeCustomerGatewayVendorsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeCustomerGatewaysRequest struct { + *tchttp.BaseRequest + + // 对端网关ID,例如:cgw-2wqq41m9。每次请求的实例的上限为100。参数不支持同时指定CustomerGatewayIds和Filters。 + CustomerGatewayIds []*string `json:"CustomerGatewayIds,omitempty" name:"CustomerGatewayIds" list` + + // 过滤条件,详见下表:实例过滤条件表。每次请求的Filters的上限为10,Filter.Values的上限为5。参数不支持同时指定CustomerGatewayIds和Filters。 + //
  • customer-gateway-id - String - (过滤条件)用户网关唯一ID形如:`cgw-mgp33pll`。
  • + //
  • customer-gateway-name - String - (过滤条件)用户网关名称形如:`test-cgw`。
  • + //
  • ip-address - String - (过滤条件)公网地址形如:`58.211.1.12`。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。关于Offset的更进一步介绍请参考 API 简介中的相关小节。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeCustomerGatewaysRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeCustomerGatewaysRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeCustomerGatewaysResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 对端网关对象列表 + CustomerGatewaySet []*CustomerGateway `json:"CustomerGatewaySet,omitempty" name:"CustomerGatewaySet" list` + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeCustomerGatewaysResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeCustomerGatewaysResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeDirectConnectGatewayCcnRoutesRequest struct { + *tchttp.BaseRequest + + // 专线网关ID,形如:`dcg-prpqlmg1`。 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` + + // 云联网路由学习类型,可选值: + //
  • `BGP` - 自动学习。
  • + //
  • `STATIC` - 静态,即用户配置,默认值。
  • + CcnRouteType *string `json:"CcnRouteType,omitempty" name:"CcnRouteType"` + + // 偏移量。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeDirectConnectGatewayCcnRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeDirectConnectGatewayCcnRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeDirectConnectGatewayCcnRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 云联网路由(IDC网段)列表。 + RouteSet []*DirectConnectGatewayCcnRoute `json:"RouteSet,omitempty" name:"RouteSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeDirectConnectGatewayCcnRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeDirectConnectGatewayCcnRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeDirectConnectGatewaysRequest struct { + *tchttp.BaseRequest + + // 专线网关唯一`ID`,形如:`dcg-9o233uri`。 + DirectConnectGatewayIds []*string `json:"DirectConnectGatewayIds,omitempty" name:"DirectConnectGatewayIds" list` + + // 过滤条件,参数不支持同时指定`DirectConnectGatewayIds`和`Filters`。 + //
  • direct-connect-gateway-id - String - 专线网关唯一`ID`,形如:`dcg-9o233uri`。
  • + //
  • direct-connect-gateway-name - String - 专线网关名称,默认模糊查询。
  • + //
  • direct-connect-gateway-ip - String - 专线网关`IP`。
  • + //
  • gateway-type - String - 网关类型,可选值:`NORMAL`(普通型)、`NAT`(NAT型)。
  • + //
  • network-type- String - 网络类型,可选值:`VPC`(私有网络类型)、`CCN`(云联网类型)。
  • + //
  • ccn-id - String - 专线网关所在云联网`ID`。
  • + //
  • vpc-id - String - 专线网关所在私有网络`ID`。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeDirectConnectGatewaysRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeDirectConnectGatewaysRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeDirectConnectGatewaysResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 专线网关对象数组。 + DirectConnectGatewaySet []*DirectConnectGateway `json:"DirectConnectGatewaySet,omitempty" name:"DirectConnectGatewaySet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeDirectConnectGatewaysResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeDirectConnectGatewaysResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeFlowLogRequest struct { + *tchttp.BaseRequest + + // 私用网络ID或者统一ID,建议使用统一ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 流日志唯一ID + FlowLogId *string `json:"FlowLogId,omitempty" name:"FlowLogId"` +} + +func (r *DescribeFlowLogRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeFlowLogRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeFlowLogResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 流日志信息 + FlowLog []*FlowLog `json:"FlowLog,omitempty" name:"FlowLog" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeFlowLogResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeFlowLogResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeFlowLogsRequest struct { + *tchttp.BaseRequest + + // 私用网络ID或者统一ID,建议使用统一ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 流日志唯一ID + FlowLogId *string `json:"FlowLogId,omitempty" name:"FlowLogId"` + + // 流日志实例名字 + FlowLogName *string `json:"FlowLogName,omitempty" name:"FlowLogName"` + + // 流日志所属资源类型,VPC|SUBNET|NETWORKINTERFACE + ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` + + // 资源唯一ID + ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` + + // 流日志采集类型,ACCEPT|REJECT|ALL + TrafficType *string `json:"TrafficType,omitempty" name:"TrafficType"` + + // 流日志存储ID + CloudLogId *string `json:"CloudLogId,omitempty" name:"CloudLogId"` + + // 流日志存储ID状态 + CloudLogState *string `json:"CloudLogState,omitempty" name:"CloudLogState"` + + // 按某个字段排序,支持字段:flowLogName,createTime,默认按createTime + OrderField *string `json:"OrderField,omitempty" name:"OrderField"` + + // 升序(asc)还是降序(desc),默认:desc + OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 每页行数,默认为10 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件,参数不支持同时指定FlowLogIds和Filters。 + //
  • tag-key - String -是否必填:否- (过滤条件)按照标签键进行过滤。
  • + //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。
  • + Filters *Filter `json:"Filters,omitempty" name:"Filters"` +} + +func (r *DescribeFlowLogsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeFlowLogsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeFlowLogsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 流日志实例集合 + FlowLog []*FlowLog `json:"FlowLog,omitempty" name:"FlowLog" list` + + // 流日志总数目 + TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeFlowLogsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeFlowLogsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeGatewayFlowMonitorDetailRequest struct { + *tchttp.BaseRequest + + // 时间点。表示要查询这分钟内的明细。如:`2019-02-28 18:15:20`,将查询 `18:15` 这一分钟内的明细。 + TimePoint *string `json:"TimePoint,omitempty" name:"TimePoint"` + + // VPN网关实例ID,形如:`vpn-ltjahce6`。 + VpnId *string `json:"VpnId,omitempty" name:"VpnId"` + + // 专线网关实例ID,形如:`dcg-ltjahce6`。 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` + + // 对等连接实例ID,形如:`pcx-ltjahce6`。 + PeeringConnectionId *string `json:"PeeringConnectionId,omitempty" name:"PeeringConnectionId"` + + // NAT网关实例ID,形如:`nat-ltjahce6`。 + NatId *string `json:"NatId,omitempty" name:"NatId"` + + // 偏移量。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 排序字段。支持 `InPkg` `OutPkg` `InTraffic` `OutTraffic`。 + OrderField *string `json:"OrderField,omitempty" name:"OrderField"` + + // 排序方法。顺序:`ASC`,倒序:`DESC`。 + OrderDirection *string `json:"OrderDirection,omitempty" name:"OrderDirection"` +} + +func (r *DescribeGatewayFlowMonitorDetailRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeGatewayFlowMonitorDetailRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeGatewayFlowMonitorDetailResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 网关流量监控明细。 + GatewayFlowMonitorDetailSet []*GatewayFlowMonitorDetail `json:"GatewayFlowMonitorDetailSet,omitempty" name:"GatewayFlowMonitorDetailSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeGatewayFlowMonitorDetailResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeGatewayFlowMonitorDetailResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeHaVipsRequest struct { + *tchttp.BaseRequest + + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。 + HaVipIds []*string `json:"HaVipIds,omitempty" name:"HaVipIds" list` + + // 过滤条件,参数不支持同时指定`HaVipIds`和`Filters`。 + //
  • havip-id - String - `HAVIP`唯一`ID`,形如:`havip-9o233uri`。
  • + //
  • havip-name - String - `HAVIP`名称。
  • + //
  • vpc-id - String - `HAVIP`所在私有网络`ID`。
  • + //
  • subnet-id - String - `HAVIP`所在子网`ID`。
  • + //
  • address-ip - String - `HAVIP`绑定的弹性公网`IP`。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeHaVipsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeHaVipsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeHaVipsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // `HAVIP`对象数组。 + HaVipSet []*HaVip `json:"HaVipSet,omitempty" name:"HaVipSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeHaVipsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeHaVipsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeIp6AddressesRequest struct { + *tchttp.BaseRequest + + // 标识 IPV6 的唯一 ID 列表。IPV6 唯一 ID 形如:`eip-11112222`。参数不支持同时指定`Ip6AddressIds`和`Filters`。 + Ip6AddressIds []*string `json:"Ip6AddressIds,omitempty" name:"Ip6AddressIds" list` + + // 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`AddressIds`和`Filters`。详细的过滤条件如下: + //
  • address-ip - String - 是否必填:否 - (过滤条件)按照 EIP 的 IP 地址过滤。
  • + //
  • network-interface-id - String - 是否必填:否 - (过滤条件)按照弹性网卡的唯一ID过滤。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/11646)中的相关小节。 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/11646)中的相关小节。 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeIp6AddressesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeIp6AddressesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeIp6AddressesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的 IPV6 数量。 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // IPV6 详细信息列表。 + AddressSet []*Address `json:"AddressSet,omitempty" name:"AddressSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeIp6AddressesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeIp6AddressesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeIp6TranslatorQuotaRequest struct { + *tchttp.BaseRequest + + // 待查询IPV6转换实例的唯一ID列表,形如ip6-xxxxxxxx + Ip6TranslatorIds []*string `json:"Ip6TranslatorIds,omitempty" name:"Ip6TranslatorIds" list` +} + +func (r *DescribeIp6TranslatorQuotaRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeIp6TranslatorQuotaRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeIp6TranslatorQuotaResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 账户在指定地域的IPV6转换实例及规则配额信息 + // QUOTAID属性是TOTAL_TRANSLATOR_QUOTA,表示账户在指定地域的IPV6转换实例配额信息;QUOTAID属性是IPV6转换实例唯一ID(形如ip6-xxxxxxxx),表示账户在该转换实例允许创建的转换规则配额 + QuotaSet []*Quota `json:"QuotaSet,omitempty" name:"QuotaSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeIp6TranslatorQuotaResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeIp6TranslatorQuotaResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeIp6TranslatorsRequest struct { + *tchttp.BaseRequest + + // IPV6转换实例唯一ID数组,形如ip6-xxxxxxxx + Ip6TranslatorIds []*string `json:"Ip6TranslatorIds,omitempty" name:"Ip6TranslatorIds" list` + + // 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`Ip6TranslatorIds`和`Filters`。详细的过滤条件如下: + //
  • ip6-translator-id - String - 是否必填:否 - (过滤条件)按照IPV6转换实例的唯一ID过滤,形如ip6-xxxxxxx。
  • + //
  • ip6-translator-vip6 - String - 是否必填:否 - (过滤条件)按照IPV6地址过滤。不支持模糊过滤。
  • + //
  • ip6-translator-name - String - 是否必填:否 - (过滤条件)按照IPV6转换实例名称过滤。不支持模糊过滤。
  • + //
  • ip6-translator-status - String - 是否必填:否 - (过滤条件)按照IPV6转换实例的状态过滤。状态取值范围为"CREATING","RUNNING","DELETING","MODIFYING" + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/11646)中的相关小节。 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/11646)中的相关小节。 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeIp6TranslatorsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeIp6TranslatorsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeIp6TranslatorsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合过滤条件的IPV6转换实例数量。 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 符合过滤条件的IPV6转换实例详细信息 + Ip6TranslatorSet []*Ip6Translator `json:"Ip6TranslatorSet,omitempty" name:"Ip6TranslatorSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeIp6TranslatorsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeIp6TranslatorsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNatGatewayDestinationIpPortTranslationNatRulesRequest struct { + *tchttp.BaseRequest + + // NAT网关ID。 + NatGatewayIds []*string `json:"NatGatewayIds,omitempty" name:"NatGatewayIds" list` + + // 过滤条件: + // 参数不支持同时指定NatGatewayIds和Filters。 + //
  • nat-gateway-id,NAT网关的ID,如`nat-0yi4hekt`
  • + //
  • vpc-id,私有网络VPC的ID,如`vpc-0yi4hekt`
  • + //
  • public-ip-address, 弹性IP,如`139.199.232.238`。
  • + //
  • public-port, 公网端口。
  • + //
  • private-ip-address, 内网IP,如`10.0.0.1`。
  • + //
  • private-port, 内网端口。
  • + //
  • description,规则描述。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeNatGatewayDestinationIpPortTranslationNatRulesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNatGatewayDestinationIpPortTranslationNatRulesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // NAT网关端口转发规则对象数组。 + NatGatewayDestinationIpPortTranslationNatRuleSet []*NatGatewayDestinationIpPortTranslationNatRule `json:"NatGatewayDestinationIpPortTranslationNatRuleSet,omitempty" name:"NatGatewayDestinationIpPortTranslationNatRuleSet" list` + + // 符合条件的NAT网关端口转发规则对象数目。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNatGatewaysRequest struct { + *tchttp.BaseRequest + + // NAT网关统一 ID,形如:`nat-123xx454`。 + NatGatewayIds []*string `json:"NatGatewayIds,omitempty" name:"NatGatewayIds" list` + + // 过滤条件,参数不支持同时指定NatGatewayIds和Filters。 + //
  • nat-gateway-id - String - (过滤条件)协议端口模板实例ID,形如:`nat-123xx454`。
  • + //
  • vpc-id - String - (过滤条件)私有网络 唯一ID,形如:`vpc-123xx454`。
  • + //
  • nat-gateway-name - String - (过滤条件)协议端口模板实例ID,形如:`test_nat`。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeNatGatewaysRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNatGatewaysRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNatGatewaysResponse struct { + *tchttp.BaseResponse + Response *struct { + + // NAT网关对象数组。 + NatGatewaySet []*NatGateway `json:"NatGatewaySet,omitempty" name:"NatGatewaySet" list` + + // 符合条件的NAT网关对象个数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeNatGatewaysResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNatGatewaysResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNetDetectStatesRequest struct { + *tchttp.BaseRequest + + // 网络探测实例`ID`数组。形如:[`netd-12345678`] + NetDetectIds []*string `json:"NetDetectIds,omitempty" name:"NetDetectIds" list` + + // 过滤条件,参数不支持同时指定NetDetectIds和Filters。 + //
  • net-detect-id - String - (过滤条件)网络探测实例ID,形如:netd-12345678
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeNetDetectStatesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNetDetectStatesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNetDetectStatesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的网络探测验证结果对象数组。 + // 注意:此字段可能返回 null,表示取不到有效值。 + NetDetectStateSet []*NetDetectState `json:"NetDetectStateSet,omitempty" name:"NetDetectStateSet" list` + + // 符合条件的网络探测验证结果对象数量。 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeNetDetectStatesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNetDetectStatesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNetDetectsRequest struct { + *tchttp.BaseRequest + + // 网络探测实例`ID`数组。形如:[`netd-12345678`] + NetDetectIds []*string `json:"NetDetectIds,omitempty" name:"NetDetectIds" list` + + // 过滤条件,参数不支持同时指定NetDetectIds和Filters。 + //
  • vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-12345678
  • + //
  • net-detect-id - String - (过滤条件)网络探测实例ID,形如:netd-12345678
  • + //
  • subnet-id - String - (过滤条件)子网实例ID,形如:subnet-12345678
  • + //
  • net-detect-name - String - (过滤条件)网络探测名称
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeNetDetectsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNetDetectsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNetDetectsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的网络探测对象数组。 + // 注意:此字段可能返回 null,表示取不到有效值。 + NetDetectSet []*NetDetect `json:"NetDetectSet,omitempty" name:"NetDetectSet" list` + + // 符合条件的网络探测对象数量。 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeNetDetectsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNetDetectsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNetworkAclsRequest struct { + *tchttp.BaseRequest + + // 网络ACL实例ID数组。形如:[acl-12345678]。每次请求的实例的上限为100。参数不支持同时指定NetworkAclIds和Filters。 + NetworkAclIds []*string `json:"NetworkAclIds,omitempty" name:"NetworkAclIds" list` + + // 过滤条件,参数不支持同时指定NetworkAclIds和Filters。 + //
  • vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-12345678。
  • + //
  • network-acl-id - String - (过滤条件)网络ACL实例ID,形如:acl-12345678。
  • + //
  • network-acl-name - String - (过滤条件)网络ACL实例名称。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最小值为1,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeNetworkAclsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNetworkAclsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNetworkAclsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 实例详细信息列表。 + NetworkAclSet []*NetworkAcl `json:"NetworkAclSet,omitempty" name:"NetworkAclSet" list` + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeNetworkAclsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNetworkAclsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNetworkInterfaceLimitRequest struct { + *tchttp.BaseRequest + + // 要查询的CVM实例ID + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` +} + +func (r *DescribeNetworkInterfaceLimitRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNetworkInterfaceLimitRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNetworkInterfaceLimitResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 弹性网卡配额 + EniQuantity *int64 `json:"EniQuantity,omitempty" name:"EniQuantity"` + + // 每个弹性网卡可以分配的IP配额 + EniPrivateIpAddressQuantity *int64 `json:"EniPrivateIpAddressQuantity,omitempty" name:"EniPrivateIpAddressQuantity"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeNetworkInterfaceLimitResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNetworkInterfaceLimitResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNetworkInterfacesRequest struct { + *tchttp.BaseRequest + + // 弹性网卡实例ID查询。形如:eni-pxir56ns。每次请求的实例的上限为100。参数不支持同时指定NetworkInterfaceIds和Filters。 + NetworkInterfaceIds []*string `json:"NetworkInterfaceIds,omitempty" name:"NetworkInterfaceIds" list` + + // 过滤条件,参数不支持同时指定NetworkInterfaceIds和Filters。 + //
  • vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
  • + //
  • subnet-id - String - (过滤条件)所属子网实例ID,形如:subnet-f49l6u0z。
  • + //
  • network-interface-id - String - (过滤条件)弹性网卡实例ID,形如:eni-5k56k7k7。
  • + //
  • attachment.instance-id - String - (过滤条件)绑定的云服务器实例ID,形如:ins-3nqpdn3i。
  • + //
  • groups.security-group-id - String - (过滤条件)绑定的安全组实例ID,例如:sg-f9ekbxeq。
  • + //
  • network-interface-name - String - (过滤条件)网卡实例名称。
  • + //
  • network-interface-description - String - (过滤条件)网卡实例描述。
  • + //
  • address-ip - String - (过滤条件)内网IPv4地址。
  • + //
  • tag-key - String -是否必填:否- (过滤条件)按照标签键进行过滤。使用请参考示例2
  • + //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。使用请参考示例3。
  • + //
  • is-primary - Boolean - 是否必填:否 - (过滤条件)按照是否主网卡进行过滤。值为true时,仅过滤主网卡;值为false时,仅过滤辅助网卡;次过滤参数为提供时,同时过滤主网卡和辅助网卡。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeNetworkInterfacesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNetworkInterfacesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeNetworkInterfacesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 实例详细信息列表。 + NetworkInterfaceSet []*NetworkInterface `json:"NetworkInterfaceSet,omitempty" name:"NetworkInterfaceSet" list` + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeNetworkInterfacesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeNetworkInterfacesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeRouteConflictsRequest struct { + *tchttp.BaseRequest + + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 要检查的与之冲突的目的端列表 + DestinationCidrBlocks []*string `json:"DestinationCidrBlocks,omitempty" name:"DestinationCidrBlocks" list` +} + +func (r *DescribeRouteConflictsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeRouteConflictsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeRouteConflictsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 路由策略冲突列表 + RouteConflictSet []*RouteConflict `json:"RouteConflictSet,omitempty" name:"RouteConflictSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeRouteConflictsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeRouteConflictsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeRouteTablesRequest struct { + *tchttp.BaseRequest + + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableIds []*string `json:"RouteTableIds,omitempty" name:"RouteTableIds" list` + + // 过滤条件,参数不支持同时指定RouteTableIds和Filters。 + //
  • route-table-id - String - (过滤条件)路由表实例ID。
  • + //
  • route-table-name - String - (过滤条件)路由表名称。
  • + //
  • vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
  • + //
  • association.main - String - (过滤条件)是否主路由表。
  • + //
  • tag-key - String -是否必填:否- (过滤条件)按照标签键进行过滤。
  • + //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。使用请参考示例2。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 请求对象个数。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeRouteTablesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeRouteTablesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeRouteTablesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 路由表对象。 + RouteTableSet []*RouteTable `json:"RouteTableSet,omitempty" name:"RouteTableSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeRouteTablesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeRouteTablesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeSecurityGroupAssociationStatisticsRequest struct { + *tchttp.BaseRequest + + // 安全实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list` +} + +func (r *DescribeSecurityGroupAssociationStatisticsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeSecurityGroupAssociationStatisticsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeSecurityGroupAssociationStatisticsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 安全组关联实例统计。 + SecurityGroupAssociationStatisticsSet []*SecurityGroupAssociationStatistics `json:"SecurityGroupAssociationStatisticsSet,omitempty" name:"SecurityGroupAssociationStatisticsSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeSecurityGroupAssociationStatisticsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeSecurityGroupAssociationStatisticsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeSecurityGroupLimitsRequest struct { + *tchttp.BaseRequest +} + +func (r *DescribeSecurityGroupLimitsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeSecurityGroupLimitsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeSecurityGroupLimitsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 用户安全组配额限制。 + SecurityGroupLimitSet *SecurityGroupLimitSet `json:"SecurityGroupLimitSet,omitempty" name:"SecurityGroupLimitSet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeSecurityGroupLimitsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeSecurityGroupLimitsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeSecurityGroupPoliciesRequest struct { + *tchttp.BaseRequest + + // 安全组实例ID,例如:sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` +} + +func (r *DescribeSecurityGroupPoliciesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeSecurityGroupPoliciesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeSecurityGroupPoliciesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 安全组规则集合。 + SecurityGroupPolicySet *SecurityGroupPolicySet `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeSecurityGroupPoliciesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeSecurityGroupPoliciesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeSecurityGroupsRequest struct { + *tchttp.BaseRequest + + // 安全组实例ID,例如:sg-33ocnj9n,可通过DescribeSecurityGroups获取。每次请求的实例的上限为100。参数不支持同时指定SecurityGroupIds和Filters。 + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list` + + // 过滤条件,参数不支持同时指定SecurityGroupIds和Filters。 + //
  • security-group-id - String - (过滤条件)安全组ID。
  • + //
  • project-id - Integer - (过滤条件)项目ID。
  • + //
  • security-group-name - String - (过滤条件)安全组名称。
  • + //
  • tag-key - String -是否必填:否- (过滤条件)按照标签键进行过滤。使用请参考示例2。
  • + //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。使用请参考示例3。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeSecurityGroupsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeSecurityGroupsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeSecurityGroupsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 安全组对象。 + SecurityGroupSet []*SecurityGroup `json:"SecurityGroupSet,omitempty" name:"SecurityGroupSet" list` + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeSecurityGroupsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeSecurityGroupsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeServiceTemplateGroupsRequest struct { + *tchttp.BaseRequest + + // 过滤条件。 + //
  • service-template-group-name - String - (过滤条件)协议端口模板集合名称。
  • + //
  • service-template-group-id - String - (过滤条件)协议端口模板集合实例ID,例如:ppmg-e6dy460g。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeServiceTemplateGroupsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeServiceTemplateGroupsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeServiceTemplateGroupsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 协议端口模板集合。 + ServiceTemplateGroupSet []*ServiceTemplateGroup `json:"ServiceTemplateGroupSet,omitempty" name:"ServiceTemplateGroupSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeServiceTemplateGroupsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeServiceTemplateGroupsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeServiceTemplatesRequest struct { + *tchttp.BaseRequest + + // 过滤条件。 + //
  • service-template-name - String - (过滤条件)协议端口模板名称。
  • + //
  • service-template-id - String - (过滤条件)协议端口模板实例ID,例如:ppm-e6dy460g。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeServiceTemplatesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeServiceTemplatesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeServiceTemplatesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 协议端口模板对象。 + ServiceTemplateSet []*ServiceTemplate `json:"ServiceTemplateSet,omitempty" name:"ServiceTemplateSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeServiceTemplatesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeServiceTemplatesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeSubnetsRequest struct { + *tchttp.BaseRequest + + // 子网实例ID查询。形如:subnet-pxir56ns。每次请求的实例的上限为100。参数不支持同时指定SubnetIds和Filters。 + SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds" list` + + // 过滤条件,参数不支持同时指定SubnetIds和Filters。 + //
  • subnet-id - String - (过滤条件)Subnet实例名称。
  • + //
  • vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
  • + //
  • cidr-block - String - (过滤条件)子网网段,形如: 192.168.1.0 。
  • + //
  • is-default - Boolean - (过滤条件)是否是默认子网。
  • + //
  • is-remote-vpc-snat - Boolean - (过滤条件)是否为VPC SNAT地址池子网。
  • + //
  • subnet-name - String - (过滤条件)子网名称。
  • + //
  • zone - String - (过滤条件)可用区。
  • + //
  • tag-key - String -是否必填:否- (过滤条件)按照标签键进行过滤。
  • + //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。使用请参考示例2。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeSubnetsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeSubnetsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeSubnetsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 子网对象。 + SubnetSet []*Subnet `json:"SubnetSet,omitempty" name:"SubnetSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeSubnetsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeSubnetsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeTaskResultRequest struct { + *tchttp.BaseRequest + + // 异步任务ID + TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` + + // 计费订单号 + DealName *string `json:"DealName,omitempty" name:"DealName"` +} + +func (r *DescribeTaskResultRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeTaskResultRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeTaskResultResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 任务ID + TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` + + // 执行结果,包括"SUCCESS", "FAILED", "RUNNING" + Result *string `json:"Result,omitempty" name:"Result"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeTaskResultResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeTaskResultResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeVpcIpv6AddressesRequest struct { + *tchttp.BaseRequest + + // `VPC`实例`ID`,形如:`vpc-f49l6u0z`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // `IP`地址列表,批量查询单次请求最多支持`10`个。 + Ipv6Addresses []*string `json:"Ipv6Addresses,omitempty" name:"Ipv6Addresses" list` + + // 偏移量。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeVpcIpv6AddressesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeVpcIpv6AddressesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeVpcIpv6AddressesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // `IPv6`地址列表。 + Ipv6AddressSet []*VpcIpv6Address `json:"Ipv6AddressSet,omitempty" name:"Ipv6AddressSet" list` + + // `IPv6`地址总数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeVpcIpv6AddressesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeVpcIpv6AddressesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeVpcPrivateIpAddressesRequest struct { + *tchttp.BaseRequest + + // `VPC`实例`ID`,形如:`vpc-f49l6u0z`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 内网`IP`地址列表,批量查询单次请求最多支持`10`个。 + PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses" list` +} + +func (r *DescribeVpcPrivateIpAddressesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeVpcPrivateIpAddressesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeVpcPrivateIpAddressesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 内网`IP`地址信息列表。 + VpcPrivateIpAddressSet []*VpcPrivateIpAddress `json:"VpcPrivateIpAddressSet,omitempty" name:"VpcPrivateIpAddressSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeVpcPrivateIpAddressesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeVpcPrivateIpAddressesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeVpcsRequest struct { + *tchttp.BaseRequest + + // VPC实例ID。形如:vpc-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpcIds和Filters。 + VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds" list` + + // 过滤条件,参数不支持同时指定VpcIds和Filters。 + //
  • vpc-name - String - (过滤条件)VPC实例名称。
  • + //
  • is-default - String - (过滤条件)是否默认VPC。
  • + //
  • vpc-id - String - (过滤条件)VPC实例ID形如:vpc-f49l6u0z。
  • + //
  • cidr-block - String - (过滤条件)vpc的cidr。
  • + //
  • tag-key - String -是否必填:否- (过滤条件)按照标签键进行过滤。
  • + //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。使用请参考示例2。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeVpcsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeVpcsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeVpcsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // VPC对象。 + VpcSet []*Vpc `json:"VpcSet,omitempty" name:"VpcSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeVpcsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeVpcsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeVpnConnectionsRequest struct { + *tchttp.BaseRequest + + // VPN通道实例ID。形如:vpnx-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpnConnectionIds和Filters。 + VpnConnectionIds []*string `json:"VpnConnectionIds,omitempty" name:"VpnConnectionIds" list` + + // 过滤条件。每次请求的Filters的上限为10,Filter.Values的上限为5。参数不支持同时指定VpnConnectionIds和Filters。 + //
  • vpc-id - String - VPC实例ID,形如:`vpc-0a36uwkr`。
  • + //
  • vpn-gateway-id - String - VPN网关实例ID,形如:`vpngw-p4lmqawn`。
  • + //
  • customer-gateway-id - String - 对端网关实例ID,形如:`cgw-l4rblw63`。
  • + //
  • vpn-connection-name - String - 通道名称,形如:`test-vpn`。
  • + //
  • vpn-connection-id - String - 通道实例ID,形如:`vpnx-5p7vkch8"`。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量,默认为0。关于Offset的更进一步介绍请参考 API 简介中的相关小节。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeVpnConnectionsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeVpnConnectionsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeVpnConnectionsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // VPN通道实例。 + VpnConnectionSet []*VpnConnection `json:"VpnConnectionSet,omitempty" name:"VpnConnectionSet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeVpnConnectionsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeVpnConnectionsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeVpnGatewaysRequest struct { + *tchttp.BaseRequest + + // VPN网关实例ID。形如:vpngw-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpnGatewayIds和Filters。 + VpnGatewayIds []*string `json:"VpnGatewayIds,omitempty" name:"VpnGatewayIds" list` + + // 过滤条件,参数不支持同时指定VpnGatewayIds和Filters。 + //
  • vpc-id - String - (过滤条件)VPC实例ID形如:vpc-f49l6u0z。
  • + //
  • vpn-gateway-id - String - (过滤条件)VPN实例ID形如:vpngw-5aluhh9t。
  • + //
  • vpn-gateway-name - String - (过滤条件)VPN实例名称。
  • + //
  • type - String - (过滤条件)VPN网关类型:'IPSEC', 'SSL'。
  • + //
  • public-ip-address- String - (过滤条件)公网IP。
  • + //
  • renew-flag - String - (过滤条件)网关续费类型,手动续费:'NOTIFY_AND_MANUAL_RENEW'、自动续费:'NOTIFY_AND_AUTO_RENEW'。
  • + //
  • zone - String - (过滤条件)VPN所在可用区,形如:ap-guangzhou-2。
  • + Filters []*FilterObject `json:"Filters,omitempty" name:"Filters" list` + + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 请求对象个数 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeVpnGatewaysRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeVpnGatewaysRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeVpnGatewaysResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // VPN网关实例详细信息列表。 + VpnGatewaySet []*VpnGateway `json:"VpnGatewaySet,omitempty" name:"VpnGatewaySet" list` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeVpnGatewaysResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DescribeVpnGatewaysResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DestinationIpPortTranslationNatRule struct { + + // 网络协议,可选值:`TCP`、`UDP`。 + IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` + + // 弹性IP。 + PublicIpAddress *string `json:"PublicIpAddress,omitempty" name:"PublicIpAddress"` + + // 公网端口。 + PublicPort *uint64 `json:"PublicPort,omitempty" name:"PublicPort"` + + // 内网地址。 + PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" name:"PrivateIpAddress"` + + // 内网端口。 + PrivatePort *uint64 `json:"PrivatePort,omitempty" name:"PrivatePort"` + + // NAT网关转发规则描述。 + Description *string `json:"Description,omitempty" name:"Description"` +} + +type DetachCcnInstancesRequest struct { + *tchttp.BaseRequest + + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 要解关联网络实例列表 + Instances []*CcnInstance `json:"Instances,omitempty" name:"Instances" list` +} + +func (r *DetachCcnInstancesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DetachCcnInstancesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DetachCcnInstancesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DetachCcnInstancesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DetachCcnInstancesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DetachClassicLinkVpcRequest struct { + *tchttp.BaseRequest + + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // CVM实例ID查询。形如:ins-r8hr2upy。 + InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list` +} + +func (r *DetachClassicLinkVpcRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DetachClassicLinkVpcRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DetachClassicLinkVpcResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DetachClassicLinkVpcResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DetachClassicLinkVpcResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DetachNetworkInterfaceRequest struct { + *tchttp.BaseRequest + + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // CVM实例ID。形如:ins-r8hr2upy。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` +} + +func (r *DetachNetworkInterfaceRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DetachNetworkInterfaceRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DetachNetworkInterfaceResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DetachNetworkInterfaceResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DetachNetworkInterfaceResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DirectConnectGateway struct { + + // 专线网关`ID`。 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` + + // 专线网关名称。 + DirectConnectGatewayName *string `json:"DirectConnectGatewayName,omitempty" name:"DirectConnectGatewayName"` + + // 专线网关关联`VPC`实例`ID`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 关联网络类型: + //
  • `VPC` - 私有网络
  • + //
  • `CCN` - 云联网
  • + NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + + // 关联网络实例`ID`: + //
  • `NetworkType`为`VPC`时,这里为私有网络实例`ID`
  • + //
  • `NetworkType`为`CCN`时,这里为云联网实例`ID`
  • + NetworkInstanceId *string `json:"NetworkInstanceId,omitempty" name:"NetworkInstanceId"` + + // 网关类型: + //
  • NORMAL - 标准型,注:云联网只支持标准型
  • + //
  • NAT - NAT型
  • + // NAT类型支持网络地址转换配置,类型确定后不能修改;一个私有网络可以创建一个NAT类型的专线网关和一个非NAT类型的专线网关 + GatewayType *string `json:"GatewayType,omitempty" name:"GatewayType"` + + // 创建时间。 + CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` + + // 专线网关IP。 + DirectConnectGatewayIp *string `json:"DirectConnectGatewayIp,omitempty" name:"DirectConnectGatewayIp"` + + // 专线网关关联`CCN`实例`ID`。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 云联网路由学习类型: + //
  • `BGP` - 自动学习。
  • + //
  • `STATIC` - 静态,即用户配置。
  • + CcnRouteType *string `json:"CcnRouteType,omitempty" name:"CcnRouteType"` + + // 是否启用BGP。 + EnableBGP *bool `json:"EnableBGP,omitempty" name:"EnableBGP"` + + // 开启和关闭BGP的community属性。 + EnableBGPCommunity *bool `json:"EnableBGPCommunity,omitempty" name:"EnableBGPCommunity"` +} + +type DirectConnectGatewayCcnRoute struct { + + // 路由ID。 + RouteId *string `json:"RouteId,omitempty" name:"RouteId"` + + // IDC网段。 + DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"` + + // `BGP`的`AS-Path`属性。 + ASPath []*string `json:"ASPath,omitempty" name:"ASPath" list` +} + +type DisableCcnRoutesRequest struct { + *tchttp.BaseRequest + + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // CCN路由策略唯一ID。形如:ccnr-f49l6u0z。 + RouteIds []*string `json:"RouteIds,omitempty" name:"RouteIds" list` +} + +func (r *DisableCcnRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DisableCcnRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DisableCcnRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DisableCcnRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DisableCcnRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DisableRoutesRequest struct { + *tchttp.BaseRequest + + // 路由表唯一ID。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由策略唯一ID。 + RouteIds []*uint64 `json:"RouteIds,omitempty" name:"RouteIds" list` +} + +func (r *DisableRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DisableRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DisableRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DisableRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DisableRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DisassociateAddressRequest struct { + *tchttp.BaseRequest + + // 标识 EIP 的唯一 ID。EIP 唯一 ID 形如:`eip-11112222`。 + AddressId *string `json:"AddressId,omitempty" name:"AddressId"` + + // 表示解绑 EIP 之后是否分配普通公网 IP。取值范围:
  • TRUE:表示解绑 EIP 之后分配普通公网 IP。
  • FALSE:表示解绑 EIP 之后不分配普通公网 IP。
    默认取值:FALSE。

    只有满足以下条件时才能指定该参数:
  • 只有在解绑主网卡的主内网 IP 上的 EIP 时才能指定该参数。
  • 解绑 EIP 后重新分配普通公网 IP 操作一个账号每天最多操作 10 次;详情可通过 [DescribeAddressQuota](https://cloud.tencent.com/document/api/213/1378) 接口获取。 + ReallocateNormalPublicIp *bool `json:"ReallocateNormalPublicIp,omitempty" name:"ReallocateNormalPublicIp"` +} + +func (r *DisassociateAddressRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DisassociateAddressRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DisassociateAddressResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DisassociateAddressResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DisassociateAddressResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DisassociateNatGatewayAddressRequest struct { + *tchttp.BaseRequest + + // NAT网关的ID,形如:`nat-df45454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // 绑定NAT网关的弹性IP数组。 + PublicIpAddresses []*string `json:"PublicIpAddresses,omitempty" name:"PublicIpAddresses" list` +} + +func (r *DisassociateNatGatewayAddressRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DisassociateNatGatewayAddressRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DisassociateNatGatewayAddressResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DisassociateNatGatewayAddressResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DisassociateNatGatewayAddressResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DisassociateNetworkAclSubnetsRequest struct { + *tchttp.BaseRequest + + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 子网实例ID数组。例如:[subnet-12345678] + SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds" list` +} + +func (r *DisassociateNetworkAclSubnetsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DisassociateNetworkAclSubnetsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DisassociateNetworkAclSubnetsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DisassociateNetworkAclSubnetsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DisassociateNetworkAclSubnetsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DownloadCustomerGatewayConfigurationRequest struct { + *tchttp.BaseRequest + + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // VPN通道实例ID。形如:vpnx-f49l6u0z。 + VpnConnectionId *string `json:"VpnConnectionId,omitempty" name:"VpnConnectionId"` + + // 对端网关厂商信息对象,可通过DescribeCustomerGatewayVendors获取。 + CustomerGatewayVendor *CustomerGatewayVendor `json:"CustomerGatewayVendor,omitempty" name:"CustomerGatewayVendor"` + + // 通道接入设备物理接口名称。 + InterfaceName *string `json:"InterfaceName,omitempty" name:"InterfaceName"` +} + +func (r *DownloadCustomerGatewayConfigurationRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DownloadCustomerGatewayConfigurationRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DownloadCustomerGatewayConfigurationResponse struct { + *tchttp.BaseResponse + Response *struct { + + // XML格式配置信息。 + CustomerGatewayConfiguration *string `json:"CustomerGatewayConfiguration,omitempty" name:"CustomerGatewayConfiguration"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DownloadCustomerGatewayConfigurationResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *DownloadCustomerGatewayConfigurationResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type EnableCcnRoutesRequest struct { + *tchttp.BaseRequest + + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // CCN路由策略唯一ID。形如:ccnr-f49l6u0z。 + RouteIds []*string `json:"RouteIds,omitempty" name:"RouteIds" list` +} + +func (r *EnableCcnRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *EnableCcnRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type EnableCcnRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *EnableCcnRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *EnableCcnRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type EnableRoutesRequest struct { + *tchttp.BaseRequest + + // 路由表唯一ID。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由策略唯一ID。 + RouteIds []*uint64 `json:"RouteIds,omitempty" name:"RouteIds" list` +} + +func (r *EnableRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *EnableRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type EnableRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *EnableRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *EnableRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type Filter struct { + + // 属性名称, 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。 + Name *string `json:"Name,omitempty" name:"Name"` + + // 属性值, 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。 + Values []*string `json:"Values,omitempty" name:"Values" list` +} + +type FilterObject struct { + + // 属性名称, 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。 + Name *string `json:"Name,omitempty" name:"Name"` + + // 属性值, 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。 + Values []*string `json:"Values,omitempty" name:"Values" list` +} + +type FlowLog struct { + + // 私用网络ID或者统一ID,建议使用统一ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 流日志唯一ID + FlowLogId *string `json:"FlowLogId,omitempty" name:"FlowLogId"` + + // 流日志实例名字 + FlowLogName *string `json:"FlowLogName,omitempty" name:"FlowLogName"` + + // 流日志所属资源类型,VPC|SUBNET|NETWORKINTERFACE + ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` + + // 资源唯一ID + ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` + + // 流日志采集类型,ACCEPT|REJECT|ALL + TrafficType *string `json:"TrafficType,omitempty" name:"TrafficType"` + + // 流日志存储ID + CloudLogId *string `json:"CloudLogId,omitempty" name:"CloudLogId"` + + // 流日志存储ID状态 + CloudLogState *string `json:"CloudLogState,omitempty" name:"CloudLogState"` + + // 流日志描述信息 + FlowLogDescription *string `json:"FlowLogDescription,omitempty" name:"FlowLogDescription"` + + // 流日志创建时间 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` +} + +type GatewayFlowMonitorDetail struct { + + // 来源`IP`。 + PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" name:"PrivateIpAddress"` + + // 入包量。 + InPkg *uint64 `json:"InPkg,omitempty" name:"InPkg"` + + // 出包量。 + OutPkg *uint64 `json:"OutPkg,omitempty" name:"OutPkg"` + + // 入带宽,单位:`Byte`。 + InTraffic *uint64 `json:"InTraffic,omitempty" name:"InTraffic"` + + // 出带宽,单位:`Byte`。 + OutTraffic *uint64 `json:"OutTraffic,omitempty" name:"OutTraffic"` +} + +type HaVip struct { + + // `HAVIP`的`ID`,是`HAVIP`的唯一标识。 + HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` + + // `HAVIP`名称。 + HaVipName *string `json:"HaVipName,omitempty" name:"HaVipName"` + + // 虚拟IP地址。 + Vip *string `json:"Vip,omitempty" name:"Vip"` + + // `HAVIP`所在私有网络`ID`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // `HAVIP`所在子网`ID`。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // `HAVIP`关联弹性网卡`ID`。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 被绑定的实例`ID`。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 绑定`EIP`。 + AddressIp *string `json:"AddressIp,omitempty" name:"AddressIp"` + + // 状态: + //
  • `AVAILABLE`:运行中
  • + //
  • `UNBIND`:未绑定
  • + State *string `json:"State,omitempty" name:"State"` + + // 创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // 使用havip的业务标识。 + Business *string `json:"Business,omitempty" name:"Business"` +} + +type HaVipAssociateAddressIpRequest struct { + *tchttp.BaseRequest + + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。必须是没有绑定`EIP`的`HAVIP` + HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` + + // 弹性公网`IP`。必须是没有绑定`HAVIP`的`EIP` + AddressIp *string `json:"AddressIp,omitempty" name:"AddressIp"` +} + +func (r *HaVipAssociateAddressIpRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *HaVipAssociateAddressIpRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type HaVipAssociateAddressIpResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *HaVipAssociateAddressIpResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *HaVipAssociateAddressIpResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type HaVipDisassociateAddressIpRequest struct { + *tchttp.BaseRequest + + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。必须是已绑定`EIP`的`HAVIP`。 + HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` +} + +func (r *HaVipDisassociateAddressIpRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *HaVipDisassociateAddressIpRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type HaVipDisassociateAddressIpResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *HaVipDisassociateAddressIpResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *HaVipDisassociateAddressIpResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type IKEOptionsSpecification struct { + + // 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBS-192', 'AES-CBC-256', 'DES-CBC',默认为3DES-CBC + PropoEncryAlgorithm *string `json:"PropoEncryAlgorithm,omitempty" name:"PropoEncryAlgorithm"` + + // 认证算法:可选值:'MD5', 'SHA1',默认为MD5 + PropoAuthenAlgorithm *string `json:"PropoAuthenAlgorithm,omitempty" name:"PropoAuthenAlgorithm"` + + // 协商模式:可选值:'AGGRESSIVE', 'MAIN',默认为MAIN + ExchangeMode *string `json:"ExchangeMode,omitempty" name:"ExchangeMode"` + + // 本端标识类型:可选值:'ADDRESS', 'FQDN',默认为ADDRESS + LocalIdentity *string `json:"LocalIdentity,omitempty" name:"LocalIdentity"` + + // 对端标识类型:可选值:'ADDRESS', 'FQDN',默认为ADDRESS + RemoteIdentity *string `json:"RemoteIdentity,omitempty" name:"RemoteIdentity"` + + // 本端标识,当LocalIdentity选为ADDRESS时,LocalAddress必填。localAddress默认为vpn网关公网IP + LocalAddress *string `json:"LocalAddress,omitempty" name:"LocalAddress"` + + // 对端标识,当RemoteIdentity选为ADDRESS时,RemoteAddress必填 + RemoteAddress *string `json:"RemoteAddress,omitempty" name:"RemoteAddress"` + + // 本端标识,当LocalIdentity选为FQDN时,LocalFqdnName必填 + LocalFqdnName *string `json:"LocalFqdnName,omitempty" name:"LocalFqdnName"` + + // 对端标识,当remoteIdentity选为FQDN时,RemoteFqdnName必填 + RemoteFqdnName *string `json:"RemoteFqdnName,omitempty" name:"RemoteFqdnName"` + + // DH group,指定IKE交换密钥时使用的DH组,可选值:'GROUP1', 'GROUP2', 'GROUP5', 'GROUP14', 'GROUP24', + DhGroupName *string `json:"DhGroupName,omitempty" name:"DhGroupName"` + + // IKE SA Lifetime,单位:秒,设置IKE SA的生存周期,取值范围:60-604800 + IKESaLifetimeSeconds *uint64 `json:"IKESaLifetimeSeconds,omitempty" name:"IKESaLifetimeSeconds"` + + // IKE版本 + IKEVersion *string `json:"IKEVersion,omitempty" name:"IKEVersion"` +} + +type IPSECOptionsSpecification struct { + + // 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBC-192', 'AES-CBC-256', 'DES-CBC', 'NULL', 默认为AES-CBC-128 + EncryptAlgorithm *string `json:"EncryptAlgorithm,omitempty" name:"EncryptAlgorithm"` + + // 认证算法:可选值:'MD5', 'SHA1',默认为 + IntegrityAlgorith *string `json:"IntegrityAlgorith,omitempty" name:"IntegrityAlgorith"` + + // IPsec SA lifetime(s):单位秒,取值范围:180-604800 + IPSECSaLifetimeSeconds *uint64 `json:"IPSECSaLifetimeSeconds,omitempty" name:"IPSECSaLifetimeSeconds"` + + // PFS:可选值:'NULL', 'DH-GROUP1', 'DH-GROUP2', 'DH-GROUP5', 'DH-GROUP14', 'DH-GROUP24',默认为NULL + PfsDhGroup *string `json:"PfsDhGroup,omitempty" name:"PfsDhGroup"` + + // IPsec SA lifetime(KB):单位KB,取值范围:2560-604800 + IPSECSaLifetimeTraffic *uint64 `json:"IPSECSaLifetimeTraffic,omitempty" name:"IPSECSaLifetimeTraffic"` +} + +type InquiryPriceCreateVpnGatewayRequest struct { + *tchttp.BaseRequest + + // 公网带宽设置。可选带宽规格:5, 10, 20, 50, 100;单位:Mbps。 + InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // VPN网关计费模式,PREPAID:表示预付费,即包年包月,POSTPAID_BY_HOUR:表示后付费,即按量计费。默认:POSTPAID_BY_HOUR,如果指定预付费模式,参数InstanceChargePrepaid必填。 + InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` + + // 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。 + InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` +} + +func (r *InquiryPriceCreateVpnGatewayRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *InquiryPriceCreateVpnGatewayRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type InquiryPriceCreateVpnGatewayResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 商品价格。 + Price *Price `json:"Price,omitempty" name:"Price"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *InquiryPriceCreateVpnGatewayResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *InquiryPriceCreateVpnGatewayResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type InquiryPriceRenewVpnGatewayRequest struct { + *tchttp.BaseRequest + + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。 + InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` +} + +func (r *InquiryPriceRenewVpnGatewayRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *InquiryPriceRenewVpnGatewayRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type InquiryPriceRenewVpnGatewayResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 商品价格。 + Price *Price `json:"Price,omitempty" name:"Price"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *InquiryPriceRenewVpnGatewayResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *InquiryPriceRenewVpnGatewayResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest struct { + *tchttp.BaseRequest + + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 公网带宽设置。可选带宽规格:5, 10, 20, 50, 100;单位:Mbps。 + InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` +} + +func (r *InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 商品价格。 + Price *Price `json:"Price,omitempty" name:"Price"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type InstanceChargePrepaid struct { + + // 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36。 + Period *uint64 `json:"Period,omitempty" name:"Period"` + + // 自动续费标识。取值范围: NOTIFY_AND_AUTO_RENEW:通知过期且自动续费, NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费。默认:NOTIFY_AND_MANUAL_RENEW + RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` +} + +type InstanceStatistic struct { + + // 实例的类型 + InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` + + // 实例的个数 + InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"` +} + +type Ip6Rule struct { + + // IPV6转换规则唯一ID,形如rule6-xxxxxxxx + Ip6RuleId *string `json:"Ip6RuleId,omitempty" name:"Ip6RuleId"` + + // IPV6转换规则名称 + Ip6RuleName *string `json:"Ip6RuleName,omitempty" name:"Ip6RuleName"` + + // IPV6地址 + Vip6 *string `json:"Vip6,omitempty" name:"Vip6"` + + // IPV6端口号 + Vport6 *int64 `json:"Vport6,omitempty" name:"Vport6"` + + // 协议类型,支持TCP/UDP + Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + + // IPV4地址 + Vip *string `json:"Vip,omitempty" name:"Vip"` + + // IPV4端口号 + Vport *int64 `json:"Vport,omitempty" name:"Vport"` + + // 转换规则状态,限于CREATING,RUNNING,DELETING,MODIFYING + RuleStatus *string `json:"RuleStatus,omitempty" name:"RuleStatus"` + + // 转换规则创建时间 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` +} + +type Ip6RuleInfo struct { + + // IPV6端口号,可在0~65535范围取值 + Vport6 *int64 `json:"Vport6,omitempty" name:"Vport6"` + + // 协议类型,支持TCP/UDP + Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + + // IPV4地址 + Vip *string `json:"Vip,omitempty" name:"Vip"` + + // IPV4端口号,可在0~65535范围取值 + Vport *int64 `json:"Vport,omitempty" name:"Vport"` +} + +type Ip6Translator struct { + + // IPV6转换实例唯一ID,形如ip6-xxxxxxxx + Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` + + // IPV6转换实例名称 + Ip6TranslatorName *string `json:"Ip6TranslatorName,omitempty" name:"Ip6TranslatorName"` + + // IPV6地址 + Vip6 *string `json:"Vip6,omitempty" name:"Vip6"` + + // IPV6转换地址所属运营商 + IspName *string `json:"IspName,omitempty" name:"IspName"` + + // 转换实例状态,限于CREATING,RUNNING,DELETING,MODIFYING + TranslatorStatus *string `json:"TranslatorStatus,omitempty" name:"TranslatorStatus"` + + // IPV6转换实例创建时间 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // 绑定的IPV6转换规则数量 + Ip6RuleCount *int64 `json:"Ip6RuleCount,omitempty" name:"Ip6RuleCount"` + + // IPV6转换规则信息 + IP6RuleSet []*Ip6Rule `json:"IP6RuleSet,omitempty" name:"IP6RuleSet" list` +} + +type Ipv6Address struct { + + // `IPv6`地址,形如:`3402:4e00:20:100:0:8cd9:2a67:71f3` + Address *string `json:"Address,omitempty" name:"Address"` + + // 是否是主`IP`。 + Primary *bool `json:"Primary,omitempty" name:"Primary"` + + // `EIP`实例`ID`,形如:`eip-hxlqja90`。 + AddressId *string `json:"AddressId,omitempty" name:"AddressId"` + + // 描述信息。 + Description *string `json:"Description,omitempty" name:"Description"` + + // 公网IP是否被封堵。 + IsWanIpBlocked *bool `json:"IsWanIpBlocked,omitempty" name:"IsWanIpBlocked"` + + // `IPv6`地址状态: + //
  • `PENDING`:生产中
  • + //
  • `MIGRATING`:迁移中
  • + //
  • `DELETING`:删除中
  • + //
  • `AVAILABLE`:可用的
  • + State *string `json:"State,omitempty" name:"State"` +} + +type Ipv6SubnetCidrBlock struct { + + // 子网实例`ID`。形如:`subnet-pxir56ns`。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // `IPv6`子网段。形如:`3402:4e00:20:1001::/64` + Ipv6CidrBlock *string `json:"Ipv6CidrBlock,omitempty" name:"Ipv6CidrBlock"` +} + +type ItemPrice struct { + + // 按量计费后付费单价,单位:元。 + UnitPrice *float64 `json:"UnitPrice,omitempty" name:"UnitPrice"` + + // 按量计费后付费计价单元,可取值范围: HOUR:表示计价单元是按每小时来计算。当前涉及该计价单元的场景有:实例按小时后付费(POSTPAID_BY_HOUR)、带宽按小时后付费(BANDWIDTH_POSTPAID_BY_HOUR): GB:表示计价单元是按每GB来计算。当前涉及该计价单元的场景有:流量按小时后付费(TRAFFIC_POSTPAID_BY_HOUR)。 + ChargeUnit *string `json:"ChargeUnit,omitempty" name:"ChargeUnit"` + + // 预付费商品的原价,单位:元。 + OriginalPrice *float64 `json:"OriginalPrice,omitempty" name:"OriginalPrice"` + + // 预付费商品的折扣价,单位:元。 + DiscountPrice *float64 `json:"DiscountPrice,omitempty" name:"DiscountPrice"` +} + +type MigrateNetworkInterfaceRequest struct { + *tchttp.BaseRequest + + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 弹性网卡当前绑定的CVM实例ID。形如:ins-r8hr2upy。 + SourceInstanceId *string `json:"SourceInstanceId,omitempty" name:"SourceInstanceId"` + + // 待迁移的目的CVM实例ID。 + DestinationInstanceId *string `json:"DestinationInstanceId,omitempty" name:"DestinationInstanceId"` +} + +func (r *MigrateNetworkInterfaceRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *MigrateNetworkInterfaceRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type MigrateNetworkInterfaceResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *MigrateNetworkInterfaceResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *MigrateNetworkInterfaceResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type MigratePrivateIpAddressRequest struct { + *tchttp.BaseRequest + + // 当内网IP绑定的弹性网卡实例ID,例如:eni-m6dyj72l。 + SourceNetworkInterfaceId *string `json:"SourceNetworkInterfaceId,omitempty" name:"SourceNetworkInterfaceId"` + + // 待迁移的目的弹性网卡实例ID。 + DestinationNetworkInterfaceId *string `json:"DestinationNetworkInterfaceId,omitempty" name:"DestinationNetworkInterfaceId"` + + // 迁移的内网IP地址,例如:10.0.0.6。 + PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" name:"PrivateIpAddress"` +} + +func (r *MigratePrivateIpAddressRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *MigratePrivateIpAddressRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type MigratePrivateIpAddressResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *MigratePrivateIpAddressResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *MigratePrivateIpAddressResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyAddressAttributeRequest struct { + *tchttp.BaseRequest + + // 标识 EIP 的唯一 ID。EIP 唯一 ID 形如:`eip-11112222`。 + AddressId *string `json:"AddressId,omitempty" name:"AddressId"` + + // 修改后的 EIP 名称。长度上限为20个字符。 + AddressName *string `json:"AddressName,omitempty" name:"AddressName"` + + // 设定EIP是否直通,"TRUE"表示直通,"FALSE"表示非直通。注意该参数仅对EIP直通功能可见的用户可以设定。 + EipDirectConnection *string `json:"EipDirectConnection,omitempty" name:"EipDirectConnection"` +} + +func (r *ModifyAddressAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyAddressAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyAddressAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyAddressAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyAddressAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyAddressTemplateAttributeRequest struct { + *tchttp.BaseRequest + + // IP地址模板实例ID,例如:ipm-mdunqeb6。 + AddressTemplateId *string `json:"AddressTemplateId,omitempty" name:"AddressTemplateId"` + + // IP地址模板名称。 + AddressTemplateName *string `json:"AddressTemplateName,omitempty" name:"AddressTemplateName"` + + // 地址信息,支持 IP、CIDR、IP 范围。 + Addresses []*string `json:"Addresses,omitempty" name:"Addresses" list` +} + +func (r *ModifyAddressTemplateAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyAddressTemplateAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyAddressTemplateAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyAddressTemplateAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyAddressTemplateAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyAddressTemplateGroupAttributeRequest struct { + *tchttp.BaseRequest + + // IP地址模板集合实例ID,例如:ipmg-2uw6ujo6。 + AddressTemplateGroupId *string `json:"AddressTemplateGroupId,omitempty" name:"AddressTemplateGroupId"` + + // IP地址模板集合名称。 + AddressTemplateGroupName *string `json:"AddressTemplateGroupName,omitempty" name:"AddressTemplateGroupName"` + + // IP地址模板实例ID, 例如:ipm-mdunqeb6。 + AddressTemplateIds []*string `json:"AddressTemplateIds,omitempty" name:"AddressTemplateIds" list` +} + +func (r *ModifyAddressTemplateGroupAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyAddressTemplateGroupAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyAddressTemplateGroupAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyAddressTemplateGroupAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyAddressTemplateGroupAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyAddressesBandwidthRequest struct { + *tchttp.BaseRequest + + // EIP唯一标识ID,形如'eip-xxxx' + AddressIds []*string `json:"AddressIds,omitempty" name:"AddressIds" list` + + // 调整带宽目标值 + InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // 包月带宽起始时间 + StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + + // 包月带宽结束时间 + EndTime *string `json:"EndTime,omitempty" name:"EndTime"` +} + +func (r *ModifyAddressesBandwidthRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyAddressesBandwidthRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyAddressesBandwidthResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyAddressesBandwidthResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyAddressesBandwidthResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyBandwidthPackageAttributeRequest struct { + *tchttp.BaseRequest + + // 带宽包唯一标识ID + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` + + // 带宽包名称 + BandwidthPackageName *string `json:"BandwidthPackageName,omitempty" name:"BandwidthPackageName"` + + // 带宽包计费模式 + ChargeType *string `json:"ChargeType,omitempty" name:"ChargeType"` +} + +func (r *ModifyBandwidthPackageAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyBandwidthPackageAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyBandwidthPackageAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyBandwidthPackageAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyBandwidthPackageAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyCcnAttributeRequest struct { + *tchttp.BaseRequest + + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // CCN名称,最大长度不能超过60个字节。 + CcnName *string `json:"CcnName,omitempty" name:"CcnName"` + + // CCN描述信息,最大长度不能超过100个字节。 + CcnDescription *string `json:"CcnDescription,omitempty" name:"CcnDescription"` +} + +func (r *ModifyCcnAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyCcnAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyCcnAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyCcnAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyCcnAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyCcnRegionBandwidthLimitsTypeRequest struct { + *tchttp.BaseRequest + + // 云联网实例ID。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 云联网限速类型,INTER_REGION_LIMIT:地域间限速,OUTER_REGION_LIMIT:地域出口限速。 + BandwidthLimitType *string `json:"BandwidthLimitType,omitempty" name:"BandwidthLimitType"` +} + +func (r *ModifyCcnRegionBandwidthLimitsTypeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyCcnRegionBandwidthLimitsTypeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyCcnRegionBandwidthLimitsTypeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyCcnRegionBandwidthLimitsTypeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyCcnRegionBandwidthLimitsTypeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyCustomerGatewayAttributeRequest struct { + *tchttp.BaseRequest + + // 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。 + CustomerGatewayId *string `json:"CustomerGatewayId,omitempty" name:"CustomerGatewayId"` + + // 对端网关名称,可任意命名,但不得超过60个字符。 + CustomerGatewayName *string `json:"CustomerGatewayName,omitempty" name:"CustomerGatewayName"` +} + +func (r *ModifyCustomerGatewayAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyCustomerGatewayAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyCustomerGatewayAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyCustomerGatewayAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyCustomerGatewayAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyDirectConnectGatewayAttributeRequest struct { + *tchttp.BaseRequest + + // 专线网关唯一`ID`,形如:`dcg-9o233uri`。 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` + + // 专线网关名称,可任意命名,但不得超过60个字符。 + DirectConnectGatewayName *string `json:"DirectConnectGatewayName,omitempty" name:"DirectConnectGatewayName"` + + // 云联网路由学习类型,可选值:`BGP`(自动学习)、`STATIC`(静态,即用户配置)。只有云联网类型专线网关且开启了BGP功能才支持修改`CcnRouteType`。 + CcnRouteType *string `json:"CcnRouteType,omitempty" name:"CcnRouteType"` +} + +func (r *ModifyDirectConnectGatewayAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyDirectConnectGatewayAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyDirectConnectGatewayAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyDirectConnectGatewayAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyDirectConnectGatewayAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyFlowLogAttributeRequest struct { + *tchttp.BaseRequest + + // 私用网络ID或者统一ID,建议使用统一ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 流日志唯一ID + FlowLogId *string `json:"FlowLogId,omitempty" name:"FlowLogId"` + + // 流日志实例名字 + FlowLogName *string `json:"FlowLogName,omitempty" name:"FlowLogName"` + + // 流日志实例描述 + FlowLogDescription *string `json:"FlowLogDescription,omitempty" name:"FlowLogDescription"` +} + +func (r *ModifyFlowLogAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyFlowLogAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyFlowLogAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyFlowLogAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyFlowLogAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyHaVipAttributeRequest struct { + *tchttp.BaseRequest + + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。 + HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` + + // `HAVIP`名称,可任意命名,但不得超过60个字符。 + HaVipName *string `json:"HaVipName,omitempty" name:"HaVipName"` +} + +func (r *ModifyHaVipAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyHaVipAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyHaVipAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyHaVipAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyHaVipAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyIp6AddressesBandwidthRequest struct { + *tchttp.BaseRequest + + // 修改的目标带宽,单位Mbps + InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // IPV6地址。Ip6Addresses和Ip6AddressId必须且只能传一个 + Ip6Addresses []*string `json:"Ip6Addresses,omitempty" name:"Ip6Addresses" list` + + // IPV6地址对应的唯一ID,形如eip-xxxxxxxx。Ip6Addresses和Ip6AddressId必须且只能传一个 + Ip6AddressIds []*string `json:"Ip6AddressIds,omitempty" name:"Ip6AddressIds" list` +} + +func (r *ModifyIp6AddressesBandwidthRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyIp6AddressesBandwidthRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyIp6AddressesBandwidthResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyIp6AddressesBandwidthResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyIp6AddressesBandwidthResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyIp6RuleRequest struct { + *tchttp.BaseRequest + + // IPV6转换实例唯一ID,形如ip6-xxxxxxxx + Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` + + // IPV6转换规则唯一ID,形如rule6-xxxxxxxx + Ip6RuleId *string `json:"Ip6RuleId,omitempty" name:"Ip6RuleId"` + + // IPV6转换规则修改后的名称 + Ip6RuleName *string `json:"Ip6RuleName,omitempty" name:"Ip6RuleName"` + + // IPV6转换规则修改后的IPV4地址 + Vip *string `json:"Vip,omitempty" name:"Vip"` + + // IPV6转换规则修改后的IPV4端口号 + Vport *int64 `json:"Vport,omitempty" name:"Vport"` +} + +func (r *ModifyIp6RuleRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyIp6RuleRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyIp6RuleResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyIp6RuleResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyIp6RuleResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyIp6TranslatorRequest struct { + *tchttp.BaseRequest + + // IPV6转换实例唯一ID,形如ip6-xxxxxxxxx + Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` + + // IPV6转换实例修改名称 + Ip6TranslatorName *string `json:"Ip6TranslatorName,omitempty" name:"Ip6TranslatorName"` +} + +func (r *ModifyIp6TranslatorRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyIp6TranslatorRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyIp6TranslatorResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyIp6TranslatorResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyIp6TranslatorResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyIpv6AddressesAttributeRequest struct { + *tchttp.BaseRequest + + // 弹性网卡实例`ID`,形如:`eni-m6dyj72l`。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 指定的内网IPv6`地址信息。 + Ipv6Addresses []*Ipv6Address `json:"Ipv6Addresses,omitempty" name:"Ipv6Addresses" list` +} + +func (r *ModifyIpv6AddressesAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyIpv6AddressesAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyIpv6AddressesAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyIpv6AddressesAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyIpv6AddressesAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyNatGatewayAttributeRequest struct { + *tchttp.BaseRequest + + // NAT网关的ID,形如:`nat-df45454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // NAT网关的名称,形如:`test_nat`。 + NatGatewayName *string `json:"NatGatewayName,omitempty" name:"NatGatewayName"` + + // NAT网关最大外网出带宽(单位:Mbps)。 + InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` +} + +func (r *ModifyNatGatewayAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyNatGatewayAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyNatGatewayAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyNatGatewayAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyNatGatewayAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest struct { + *tchttp.BaseRequest + + // NAT网关的ID,形如:`nat-df45454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // 源NAT网关的端口转换规则。 + SourceNatRule *DestinationIpPortTranslationNatRule `json:"SourceNatRule,omitempty" name:"SourceNatRule"` + + // 目的NAT网关的端口转换规则。 + DestinationNatRule *DestinationIpPortTranslationNatRule `json:"DestinationNatRule,omitempty" name:"DestinationNatRule"` +} + +func (r *ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyNetDetectRequest struct { + *tchttp.BaseRequest + + // 网络探测实例`ID`。形如:`netd-12345678` + NetDetectId *string `json:"NetDetectId,omitempty" name:"NetDetectId"` + + // 网络探测名称,最大长度不能超过60个字节。 + NetDetectName *string `json:"NetDetectName,omitempty" name:"NetDetectName"` + + // 探测目的IPv4地址数组,最多两个。 + DetectDestinationIp []*string `json:"DetectDestinationIp,omitempty" name:"DetectDestinationIp" list` + + // 下一跳类型,目前我们支持的类型有: + // VPN:VPN网关; + // DIRECTCONNECT:专线网关; + // PEERCONNECTION:对等连接; + // NAT:NAT网关; + // NORMAL_CVM:普通云服务器; + NextHopType *string `json:"NextHopType,omitempty" name:"NextHopType"` + + // 下一跳目的网关,取值与“下一跳类型”相关: + // 下一跳类型为VPN,取值VPN网关ID,形如:vpngw-12345678; + // 下一跳类型为DIRECTCONNECT,取值专线网关ID,形如:dcg-12345678; + // 下一跳类型为PEERCONNECTION,取值对等连接ID,形如:pcx-12345678; + // 下一跳类型为NAT,取值Nat网关,形如:nat-12345678; + // 下一跳类型为NORMAL_CVM,取值云服务器IPv4地址,形如:10.0.0.12; + NextHopDestination *string `json:"NextHopDestination,omitempty" name:"NextHopDestination"` + + // 网络探测描述。 + NetDetectDescription *string `json:"NetDetectDescription,omitempty" name:"NetDetectDescription"` +} + +func (r *ModifyNetDetectRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyNetDetectRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyNetDetectResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyNetDetectResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyNetDetectResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyNetworkAclAttributeRequest struct { + *tchttp.BaseRequest + + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 网络ACL名称,最大长度不能超过60个字节。 + NetworkAclName *string `json:"NetworkAclName,omitempty" name:"NetworkAclName"` +} + +func (r *ModifyNetworkAclAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyNetworkAclAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyNetworkAclAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyNetworkAclAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyNetworkAclAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyNetworkAclEntriesRequest struct { + *tchttp.BaseRequest + + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 网络ACL规则集。 + NetworkAclEntrySet *NetworkAclEntrySet `json:"NetworkAclEntrySet,omitempty" name:"NetworkAclEntrySet"` +} + +func (r *ModifyNetworkAclEntriesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyNetworkAclEntriesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyNetworkAclEntriesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyNetworkAclEntriesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyNetworkAclEntriesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyNetworkInterfaceAttributeRequest struct { + *tchttp.BaseRequest + + // 弹性网卡实例ID,例如:eni-pxir56ns。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 弹性网卡名称,最大长度不能超过60个字节。 + NetworkInterfaceName *string `json:"NetworkInterfaceName,omitempty" name:"NetworkInterfaceName"` + + // 弹性网卡描述,可任意命名,但不得超过60个字符。 + NetworkInterfaceDescription *string `json:"NetworkInterfaceDescription,omitempty" name:"NetworkInterfaceDescription"` + + // 指定绑定的安全组,例如:['sg-1dd51d']。 + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list` +} + +func (r *ModifyNetworkInterfaceAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyNetworkInterfaceAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyNetworkInterfaceAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyNetworkInterfaceAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyNetworkInterfaceAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyPrivateIpAddressesAttributeRequest struct { + *tchttp.BaseRequest + + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 指定的内网IP信息。 + PrivateIpAddresses []*PrivateIpAddressSpecification `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses" list` +} + +func (r *ModifyPrivateIpAddressesAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyPrivateIpAddressesAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyPrivateIpAddressesAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyPrivateIpAddressesAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyPrivateIpAddressesAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyRouteTableAttributeRequest struct { + *tchttp.BaseRequest + + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由表名称。 + RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` +} + +func (r *ModifyRouteTableAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyRouteTableAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyRouteTableAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyRouteTableAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyRouteTableAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifySecurityGroupAttributeRequest struct { + *tchttp.BaseRequest + + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 安全组名称,可任意命名,但不得超过60个字符。 + GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + + // 安全组备注,最多100个字符。 + GroupDescription *string `json:"GroupDescription,omitempty" name:"GroupDescription"` +} + +func (r *ModifySecurityGroupAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifySecurityGroupAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifySecurityGroupAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifySecurityGroupAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifySecurityGroupAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifySecurityGroupPoliciesRequest struct { + *tchttp.BaseRequest + + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 安全组规则集合。 SecurityGroupPolicySet对象必须同时指定新的出(Egress)入(Ingress)站规则。 SecurityGroupPolicy对象不支持自定义索引(PolicyIndex)。 + SecurityGroupPolicySet *SecurityGroupPolicySet `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` + + // 排序安全组标识。值为True时,支持安全组排序;SortPolicys不存在或SortPolicys为False时,为修改安全组规则。 + SortPolicys *bool `json:"SortPolicys,omitempty" name:"SortPolicys"` +} + +func (r *ModifySecurityGroupPoliciesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifySecurityGroupPoliciesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifySecurityGroupPoliciesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifySecurityGroupPoliciesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifySecurityGroupPoliciesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyServiceTemplateAttributeRequest struct { + *tchttp.BaseRequest + + // 协议端口模板实例ID,例如:ppm-529nwwj8。 + ServiceTemplateId *string `json:"ServiceTemplateId,omitempty" name:"ServiceTemplateId"` + + // 协议端口模板名称。 + ServiceTemplateName *string `json:"ServiceTemplateName,omitempty" name:"ServiceTemplateName"` + + // 支持单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。 + Services []*string `json:"Services,omitempty" name:"Services" list` +} + +func (r *ModifyServiceTemplateAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyServiceTemplateAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyServiceTemplateAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyServiceTemplateAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyServiceTemplateAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyServiceTemplateGroupAttributeRequest struct { + *tchttp.BaseRequest + + // 协议端口模板集合实例ID,例如:ppmg-ei8hfd9a。 + ServiceTemplateGroupId *string `json:"ServiceTemplateGroupId,omitempty" name:"ServiceTemplateGroupId"` + + // 协议端口模板集合名称。 + ServiceTemplateGroupName *string `json:"ServiceTemplateGroupName,omitempty" name:"ServiceTemplateGroupName"` + + // 协议端口模板实例ID,例如:ppm-4dw6agho。 + ServiceTemplateIds []*string `json:"ServiceTemplateIds,omitempty" name:"ServiceTemplateIds" list` +} + +func (r *ModifyServiceTemplateGroupAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyServiceTemplateGroupAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyServiceTemplateGroupAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyServiceTemplateGroupAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyServiceTemplateGroupAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifySubnetAttributeRequest struct { + *tchttp.BaseRequest + + // 子网实例ID。形如:subnet-pxir56ns。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 子网名称,最大长度不能超过60个字节。 + SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"` + + // 子网是否开启广播。 + EnableBroadcast *string `json:"EnableBroadcast,omitempty" name:"EnableBroadcast"` +} + +func (r *ModifySubnetAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifySubnetAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifySubnetAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifySubnetAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifySubnetAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyVpcAttributeRequest struct { + *tchttp.BaseRequest + + // VPC实例ID。形如:vpc-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpcIds和Filters。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 私有网络名称,可任意命名,但不得超过60个字符。 + VpcName *string `json:"VpcName,omitempty" name:"VpcName"` + + // 是否开启组播。true: 开启, false: 关闭。 + EnableMulticast *string `json:"EnableMulticast,omitempty" name:"EnableMulticast"` + + // DNS地址,最多支持4个,第1个默认为主,其余为备 + DnsServers []*string `json:"DnsServers,omitempty" name:"DnsServers" list` + + // 域名 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` +} + +func (r *ModifyVpcAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyVpcAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyVpcAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyVpcAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyVpcAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyVpnConnectionAttributeRequest struct { + *tchttp.BaseRequest + + // VPN通道实例ID。形如:vpnx-f49l6u0z。 + VpnConnectionId *string `json:"VpnConnectionId,omitempty" name:"VpnConnectionId"` + + // VPN通道名称,可任意命名,但不得超过60个字符。 + VpnConnectionName *string `json:"VpnConnectionName,omitempty" name:"VpnConnectionName"` + + // 预共享密钥。 + PreShareKey *string `json:"PreShareKey,omitempty" name:"PreShareKey"` + + // SPD策略组,例如:{"10.0.0.5/24":["172.123.10.5/16"]},10.0.0.5/24是vpc内网段172.123.10.5/16是IDC网段。用户指定VPC内哪些网段可以和您IDC中哪些网段通信。 + SecurityPolicyDatabases []*SecurityPolicyDatabase `json:"SecurityPolicyDatabases,omitempty" name:"SecurityPolicyDatabases" list` + + // IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议。 + IKEOptionsSpecification *IKEOptionsSpecification `json:"IKEOptionsSpecification,omitempty" name:"IKEOptionsSpecification"` + + // IPSec配置,腾讯云提供IPSec安全会话设置。 + IPSECOptionsSpecification *IPSECOptionsSpecification `json:"IPSECOptionsSpecification,omitempty" name:"IPSECOptionsSpecification"` +} + +func (r *ModifyVpnConnectionAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyVpnConnectionAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyVpnConnectionAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyVpnConnectionAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyVpnConnectionAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyVpnGatewayAttributeRequest struct { + *tchttp.BaseRequest + + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // VPN网关名称,最大长度不能超过60个字节。 + VpnGatewayName *string `json:"VpnGatewayName,omitempty" name:"VpnGatewayName"` + + // VPN网关计费模式,目前只支持预付费(即包年包月)到后付费(即按量计费)的转换。即参数只支持:POSTPAID_BY_HOUR。 + InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` +} + +func (r *ModifyVpnGatewayAttributeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyVpnGatewayAttributeRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyVpnGatewayAttributeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyVpnGatewayAttributeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ModifyVpnGatewayAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type NatGateway struct { + + // NAT网关的ID。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // NAT网关的名称。 + NatGatewayName *string `json:"NatGatewayName,omitempty" name:"NatGatewayName"` + + // NAT网关创建的时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // NAT网关的状态。 + // 'PENDING':生产中,'DELETING':删除中,'AVAILABLE':运行中,'UPDATING':升级中, + // ‘FAILED’:失败。 + State *string `json:"State,omitempty" name:"State"` + + // 网关最大外网出带宽(单位:Mbps)。 + InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // 网关并发连接上限。 + MaxConcurrentConnection *uint64 `json:"MaxConcurrentConnection,omitempty" name:"MaxConcurrentConnection"` + + // 绑定NAT网关的公网IP对象数组。 + PublicIpAddressSet []*NatGatewayAddress `json:"PublicIpAddressSet,omitempty" name:"PublicIpAddressSet" list` + + // NAT网关网络状态。“AVAILABLE”:运行中, “UNAVAILABLE”:不可用, “INSUFFICIENT”:欠费停服。 + NetworkState *string `json:"NetworkState,omitempty" name:"NetworkState"` + + // NAT网关的端口转发规则。 + DestinationIpPortTranslationNatRuleSet []*DestinationIpPortTranslationNatRule `json:"DestinationIpPortTranslationNatRuleSet,omitempty" name:"DestinationIpPortTranslationNatRuleSet" list` + + // VPC实例ID。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // NAT网关所在的可用区。 + Zone *string `json:"Zone,omitempty" name:"Zone"` +} + +type NatGatewayAddress struct { + + // 弹性公网IP(EIP)的唯一 ID,形如:`eip-11112222`。 + AddressId *string `json:"AddressId,omitempty" name:"AddressId"` + + // 外网IP地址,形如:`123.121.34.33`。 + PublicIpAddress *string `json:"PublicIpAddress,omitempty" name:"PublicIpAddress"` + + // 资源封堵状态。true表示弹性ip处于封堵状态,false表示弹性ip处于未封堵状态。 + IsBlocked *bool `json:"IsBlocked,omitempty" name:"IsBlocked"` +} + +type NatGatewayDestinationIpPortTranslationNatRule struct { + + // 网络协议,可选值:`TCP`、`UDP`。 + IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` + + // 弹性IP。 + PublicIpAddress *string `json:"PublicIpAddress,omitempty" name:"PublicIpAddress"` + + // 公网端口。 + PublicPort *uint64 `json:"PublicPort,omitempty" name:"PublicPort"` + + // 内网地址。 + PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" name:"PrivateIpAddress"` + + // 内网端口。 + PrivatePort *uint64 `json:"PrivatePort,omitempty" name:"PrivatePort"` + + // NAT网关转发规则描述。 + Description *string `json:"Description,omitempty" name:"Description"` + + // NAT网关的ID。 + // 注意:此字段可能返回 null,表示取不到有效值。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // 私有网络VPC的ID。 + // 注意:此字段可能返回 null,表示取不到有效值。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // NAT网关转发规则创建时间。 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` +} + +type NetDetect struct { + + // `VPC`实例`ID`。形如:`vpc-12345678` + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // `VPC`实例名称。 + VpcName *string `json:"VpcName,omitempty" name:"VpcName"` + + // 子网实例ID。形如:subnet-12345678。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 子网实例名称。 + SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"` + + // 网络探测实例ID。形如:netd-12345678。 + NetDetectId *string `json:"NetDetectId,omitempty" name:"NetDetectId"` + + // 网络探测名称,最大长度不能超过60个字节。 + NetDetectName *string `json:"NetDetectName,omitempty" name:"NetDetectName"` + + // 探测目的IPv4地址数组,最多两个。 + DetectDestinationIp []*string `json:"DetectDestinationIp,omitempty" name:"DetectDestinationIp" list` + + // 系统自动分配的探测源IPv4数组。长度为2。 + DetectSourceIp []*string `json:"DetectSourceIp,omitempty" name:"DetectSourceIp" list` + + // 下一跳类型,目前我们支持的类型有: + // VPN:VPN网关; + // DIRECTCONNECT:专线网关; + // PEERCONNECTION:对等连接; + // NAT:NAT网关; + // NORMAL_CVM:普通云服务器; + NextHopType *string `json:"NextHopType,omitempty" name:"NextHopType"` + + // 下一跳目的网关,取值与“下一跳类型”相关: + // 下一跳类型为VPN,取值VPN网关ID,形如:vpngw-12345678; + // 下一跳类型为DIRECTCONNECT,取值专线网关ID,形如:dcg-12345678; + // 下一跳类型为PEERCONNECTION,取值对等连接ID,形如:pcx-12345678; + // 下一跳类型为NAT,取值Nat网关,形如:nat-12345678; + // 下一跳类型为NORMAL_CVM,取值云服务器IPv4地址,形如:10.0.0.12; + NextHopDestination *string `json:"NextHopDestination,omitempty" name:"NextHopDestination"` + + // 下一跳网关名称。 + // 注意:此字段可能返回 null,表示取不到有效值。 + NextHopName *string `json:"NextHopName,omitempty" name:"NextHopName"` + + // 网络探测描述。 + // 注意:此字段可能返回 null,表示取不到有效值。 + NetDetectDescription *string `json:"NetDetectDescription,omitempty" name:"NetDetectDescription"` + + // 创建时间。 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` +} + +type NetDetectIpState struct { + + // 探测目的IPv4地址。 + DetectDestinationIp *string `json:"DetectDestinationIp,omitempty" name:"DetectDestinationIp"` + + // 探测结果。 + // 0:成功; + // -1:查询不到路由丢包; + // -2:外出ACL丢包; + // -3:IN ACL丢包; + // -4:其他错误; + State *int64 `json:"State,omitempty" name:"State"` + + // 时延,单位毫秒 + Delay *uint64 `json:"Delay,omitempty" name:"Delay"` + + // 丢包率 + PacketLossRate *uint64 `json:"PacketLossRate,omitempty" name:"PacketLossRate"` +} + +type NetDetectState struct { + + // 网络探测实例ID。形如:netd-12345678。 + NetDetectId *string `json:"NetDetectId,omitempty" name:"NetDetectId"` + + // 网络探测目的IP验证结果对象数组。 + NetDetectIpStateSet []*NetDetectIpState `json:"NetDetectIpStateSet,omitempty" name:"NetDetectIpStateSet" list` +} + +type NetworkAcl struct { + + // `VPC`实例`ID`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 网络ACL实例`ID`。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 网络ACL名称,最大长度为60。 + NetworkAclName *string `json:"NetworkAclName,omitempty" name:"NetworkAclName"` + + // 创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // 网络ACL关联的子网数组。 + SubnetSet []*Subnet `json:"SubnetSet,omitempty" name:"SubnetSet" list` + + // 网络ACl入站规则。 + IngressEntries []*NetworkAclEntry `json:"IngressEntries,omitempty" name:"IngressEntries" list` + + // 网络ACL出站规则。 + EgressEntries []*NetworkAclEntry `json:"EgressEntries,omitempty" name:"EgressEntries" list` +} + +type NetworkAclEntry struct { + + // 修改时间。 + ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` + + // 协议, 取值: TCP,UDP, ICMP。 + Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + + // 端口(all, 单个port, range)。 + Port *string `json:"Port,omitempty" name:"Port"` + + // 网段或IP(互斥)。 + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // 网段或IPv6(互斥)。 + Ipv6CidrBlock *string `json:"Ipv6CidrBlock,omitempty" name:"Ipv6CidrBlock"` + + // ACCEPT 或 DROP。 + Action *string `json:"Action,omitempty" name:"Action"` + + // 规则描述,最大长度100。 + Description *string `json:"Description,omitempty" name:"Description"` +} + +type NetworkAclEntrySet struct { + + // 入站规则。 + Ingress []*NetworkAclEntry `json:"Ingress,omitempty" name:"Ingress" list` + + // 出站规则。 + Egress []*NetworkAclEntry `json:"Egress,omitempty" name:"Egress" list` +} + +type NetworkInterface struct { + + // 弹性网卡实例ID,例如:eni-f1xjkw1b。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 弹性网卡名称。 + NetworkInterfaceName *string `json:"NetworkInterfaceName,omitempty" name:"NetworkInterfaceName"` + + // 弹性网卡描述。 + NetworkInterfaceDescription *string `json:"NetworkInterfaceDescription,omitempty" name:"NetworkInterfaceDescription"` + + // 子网实例ID。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // VPC实例ID。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 绑定的安全组。 + GroupSet []*string `json:"GroupSet,omitempty" name:"GroupSet" list` + + // 是否是主网卡。 + Primary *bool `json:"Primary,omitempty" name:"Primary"` + + // MAC地址。 + MacAddress *string `json:"MacAddress,omitempty" name:"MacAddress"` + + // 弹性网卡状态: + //
  • `PENDING`:创建中
  • + //
  • `AVAILABLE`:可用的
  • + //
  • `ATTACHING`:绑定中
  • + //
  • `DETACHING`:解绑中
  • + //
  • `DELETING`:删除中
  • + State *string `json:"State,omitempty" name:"State"` + + // 内网IP信息。 + PrivateIpAddressSet []*PrivateIpAddressSpecification `json:"PrivateIpAddressSet,omitempty" name:"PrivateIpAddressSet" list` + + // 绑定的云服务器对象。 + // 注意:此字段可能返回 null,表示取不到有效值。 + Attachment *NetworkInterfaceAttachment `json:"Attachment,omitempty" name:"Attachment"` + + // 可用区。 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // `IPv6`地址列表。 + Ipv6AddressSet []*Ipv6Address `json:"Ipv6AddressSet,omitempty" name:"Ipv6AddressSet" list` + + // 标签键值对。 + TagSet []*Tag `json:"TagSet,omitempty" name:"TagSet" list` + + // 网卡类型。0 - 弹性网卡;1 - evm弹性网卡。 + EniType *uint64 `json:"EniType,omitempty" name:"EniType"` +} + +type NetworkInterfaceAttachment struct { + + // 云主机实例ID。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 网卡在云主机实例内的序号。 + DeviceIndex *uint64 `json:"DeviceIndex,omitempty" name:"DeviceIndex"` + + // 云主机所有者账户信息。 + InstanceAccountId *string `json:"InstanceAccountId,omitempty" name:"InstanceAccountId"` + + // 绑定时间。 + AttachTime *string `json:"AttachTime,omitempty" name:"AttachTime"` +} + +type Price struct { + + // 实例价格。 + InstancePrice *ItemPrice `json:"InstancePrice,omitempty" name:"InstancePrice"` + + // 网络价格。 + BandwidthPrice *ItemPrice `json:"BandwidthPrice,omitempty" name:"BandwidthPrice"` +} + +type PrivateIpAddressSpecification struct { + + // 内网IP地址。 + PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" name:"PrivateIpAddress"` + + // 是否是主IP。 + Primary *bool `json:"Primary,omitempty" name:"Primary"` + + // 公网IP地址。 + PublicIpAddress *string `json:"PublicIpAddress,omitempty" name:"PublicIpAddress"` + + // EIP实例ID,例如:eip-11112222。 + AddressId *string `json:"AddressId,omitempty" name:"AddressId"` + + // 内网IP描述信息。 + Description *string `json:"Description,omitempty" name:"Description"` + + // 公网IP是否被封堵。 + IsWanIpBlocked *bool `json:"IsWanIpBlocked,omitempty" name:"IsWanIpBlocked"` + + // IP状态: + // PENDING:生产中 + // MIGRATING:迁移中 + // DELETING:删除中 + // AVAILABLE:可用的 + State *string `json:"State,omitempty" name:"State"` +} + +type Quota struct { + + // 配额名称,取值范围:
  • `TOTAL_EIP_QUOTA`:用户当前地域下EIP的配额数;
  • `DAILY_EIP_APPLY`:用户当前地域下今日申购次数;
  • `DAILY_PUBLIC_IP_ASSIGN`:用户当前地域下,重新分配公网 IP次数。 + QuotaId *string `json:"QuotaId,omitempty" name:"QuotaId"` + + // 当前数量 + QuotaCurrent *int64 `json:"QuotaCurrent,omitempty" name:"QuotaCurrent"` + + // 配额数量 + QuotaLimit *int64 `json:"QuotaLimit,omitempty" name:"QuotaLimit"` +} + +type RejectAttachCcnInstancesRequest struct { + *tchttp.BaseRequest + + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 拒绝关联实例列表。 + Instances []*CcnInstance `json:"Instances,omitempty" name:"Instances" list` +} + +func (r *RejectAttachCcnInstancesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *RejectAttachCcnInstancesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type RejectAttachCcnInstancesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *RejectAttachCcnInstancesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *RejectAttachCcnInstancesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ReleaseAddressesRequest struct { + *tchttp.BaseRequest + + // 标识 EIP 的唯一 ID 列表。EIP 唯一 ID 形如:`eip-11112222`。 + AddressIds []*string `json:"AddressIds,omitempty" name:"AddressIds" list` +} + +func (r *ReleaseAddressesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ReleaseAddressesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ReleaseAddressesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ReleaseAddressesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ReleaseAddressesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ReleaseIp6AddressesBandwidthRequest struct { + *tchttp.BaseRequest + + // IPV6地址。Ip6Addresses和Ip6AddressIds必须且只能传一个 + Ip6Addresses []*string `json:"Ip6Addresses,omitempty" name:"Ip6Addresses" list` + + // IPV6地址对应的唯一ID,形如eip-xxxxxxxx。Ip6Addresses和Ip6AddressIds必须且只能传一个。 + Ip6AddressIds []*string `json:"Ip6AddressIds,omitempty" name:"Ip6AddressIds" list` +} + +func (r *ReleaseIp6AddressesBandwidthRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ReleaseIp6AddressesBandwidthRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ReleaseIp6AddressesBandwidthResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ReleaseIp6AddressesBandwidthResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ReleaseIp6AddressesBandwidthResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type RemoveBandwidthPackageResourcesRequest struct { + *tchttp.BaseRequest + + // 带宽包唯一标识ID,形如'bwp-xxxx' + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` + + // 资源类型,包括‘Address’, ‘LoadBalance’ + ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` + + // 资源ID,可支持资源形如'eip-xxxx', 'lb-xxxx' + ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds" list` +} + +func (r *RemoveBandwidthPackageResourcesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *RemoveBandwidthPackageResourcesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type RemoveBandwidthPackageResourcesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *RemoveBandwidthPackageResourcesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *RemoveBandwidthPackageResourcesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type RemoveIp6RulesRequest struct { + *tchttp.BaseRequest + + // IPV6转换规则所属的转换实例唯一ID,形如ip6-xxxxxxxx + Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` + + // 待删除IPV6转换规则,形如rule6-xxxxxxxx + Ip6RuleIds []*string `json:"Ip6RuleIds,omitempty" name:"Ip6RuleIds" list` +} + +func (r *RemoveIp6RulesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *RemoveIp6RulesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type RemoveIp6RulesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *RemoveIp6RulesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *RemoveIp6RulesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type RenewVpnGatewayRequest struct { + *tchttp.BaseRequest + + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 预付费计费模式。 + InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` +} + +func (r *RenewVpnGatewayRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *RenewVpnGatewayRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type RenewVpnGatewayResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *RenewVpnGatewayResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *RenewVpnGatewayResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ReplaceDirectConnectGatewayCcnRoutesRequest struct { + *tchttp.BaseRequest + + // 专线网关ID,形如:dcg-prpqlmg1 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` + + // 需要连通的IDC网段列表 + Routes []*DirectConnectGatewayCcnRoute `json:"Routes,omitempty" name:"Routes" list` +} + +func (r *ReplaceDirectConnectGatewayCcnRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ReplaceDirectConnectGatewayCcnRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ReplaceDirectConnectGatewayCcnRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ReplaceDirectConnectGatewayCcnRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ReplaceDirectConnectGatewayCcnRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ReplaceRouteTableAssociationRequest struct { + *tchttp.BaseRequest + + // 子网实例ID,例如:subnet-3x5lf5q0。可通过DescribeSubnets接口查询。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` +} + +func (r *ReplaceRouteTableAssociationRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ReplaceRouteTableAssociationRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ReplaceRouteTableAssociationResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ReplaceRouteTableAssociationResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ReplaceRouteTableAssociationResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ReplaceRoutesRequest struct { + *tchttp.BaseRequest + + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由策略对象。需要指定路由策略ID(RouteId)。 + Routes []*Route `json:"Routes,omitempty" name:"Routes" list` +} + +func (r *ReplaceRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ReplaceRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ReplaceRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ReplaceRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ReplaceRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ReplaceSecurityGroupPolicyRequest struct { + *tchttp.BaseRequest + + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 安全组规则集合对象。 + SecurityGroupPolicySet *SecurityGroupPolicySet `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` +} + +func (r *ReplaceSecurityGroupPolicyRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ReplaceSecurityGroupPolicyRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ReplaceSecurityGroupPolicyResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ReplaceSecurityGroupPolicyResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ReplaceSecurityGroupPolicyResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ResetAttachCcnInstancesRequest struct { + *tchttp.BaseRequest + + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // CCN所属UIN(根账号)。 + CcnUin *string `json:"CcnUin,omitempty" name:"CcnUin"` + + // 重新申请关联网络实例列表。 + Instances []*CcnInstance `json:"Instances,omitempty" name:"Instances" list` +} + +func (r *ResetAttachCcnInstancesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ResetAttachCcnInstancesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ResetAttachCcnInstancesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ResetAttachCcnInstancesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ResetAttachCcnInstancesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ResetNatGatewayConnectionRequest struct { + *tchttp.BaseRequest + + // NAT网关ID。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // NAT网关并发连接上限,形如:1000000、3000000、10000000。 + MaxConcurrentConnection *uint64 `json:"MaxConcurrentConnection,omitempty" name:"MaxConcurrentConnection"` +} + +func (r *ResetNatGatewayConnectionRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ResetNatGatewayConnectionRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ResetNatGatewayConnectionResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ResetNatGatewayConnectionResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ResetNatGatewayConnectionResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ResetRoutesRequest struct { + *tchttp.BaseRequest + + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由表名称,最大长度不能超过60个字节。 + RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` + + // 路由策略。 + Routes []*Route `json:"Routes,omitempty" name:"Routes" list` +} + +func (r *ResetRoutesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ResetRoutesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ResetRoutesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ResetRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ResetRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ResetVpnConnectionRequest struct { + *tchttp.BaseRequest + + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // VPN通道实例ID。形如:vpnx-f49l6u0z。 + VpnConnectionId *string `json:"VpnConnectionId,omitempty" name:"VpnConnectionId"` +} + +func (r *ResetVpnConnectionRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ResetVpnConnectionRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ResetVpnConnectionResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ResetVpnConnectionResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ResetVpnConnectionResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ResetVpnGatewayInternetMaxBandwidthRequest struct { + *tchttp.BaseRequest + + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 公网带宽设置。可选带宽规格:5, 10, 20, 50, 100;单位:Mbps。 + InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` +} + +func (r *ResetVpnGatewayInternetMaxBandwidthRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ResetVpnGatewayInternetMaxBandwidthRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ResetVpnGatewayInternetMaxBandwidthResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ResetVpnGatewayInternetMaxBandwidthResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *ResetVpnGatewayInternetMaxBandwidthResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type Resource struct { + + // 带宽包资源类型,包括'Address'和'LoadBalance' + ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` + + // 带宽包资源Id,形如'eip-xxxx', 'lb-xxxx' + ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` + + // 带宽包资源Ip + AddressIp *string `json:"AddressIp,omitempty" name:"AddressIp"` +} + +type Route struct { + + // 目的网段,取值不能在私有网络网段内,例如:112.20.51.0/24。 + DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"` + + // 下一跳类型,目前我们支持的类型有: + // CVM:公网网关类型的云服务器; + // VPN:VPN网关; + // DIRECTCONNECT:专线网关; + // PEERCONNECTION:对等连接; + // SSLVPN:sslvpn网关; + // NAT:NAT网关; + // NORMAL_CVM:普通云服务器; + // EIP:云服务器的公网IP; + // CCN:云联网。 + GatewayType *string `json:"GatewayType,omitempty" name:"GatewayType"` + + // 下一跳地址,这里只需要指定不同下一跳类型的网关ID,系统会自动匹配到下一跳地址。 + // 特别注意:当 GatewayType 为 EIP 时,GatewayId 固定值 '0' + GatewayId *string `json:"GatewayId,omitempty" name:"GatewayId"` + + // 路由策略ID。 + RouteId *uint64 `json:"RouteId,omitempty" name:"RouteId"` + + // 路由策略描述。 + RouteDescription *string `json:"RouteDescription,omitempty" name:"RouteDescription"` + + // 是否启用 + Enabled *bool `json:"Enabled,omitempty" name:"Enabled"` + + // 路由类型,目前我们支持的类型有: + // USER:用户路由; + // NETD:网络探测路由,创建网络探测实例时,系统默认下发,不可编辑与删除; + // CCN:云联网路由,系统默认下发,不可编辑与删除。 + // 用户只能添加和操作 USER 类型的路由。 + RouteType *string `json:"RouteType,omitempty" name:"RouteType"` + + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` +} + +type RouteConflict struct { + + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 要检查的与之冲突的目的端 + DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"` + + // 冲突的路由策略列表 + ConflictSet []*Route `json:"ConflictSet,omitempty" name:"ConflictSet" list` +} + +type RouteTable struct { + + // VPC实例ID。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由表名称。 + RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` + + // 路由表关联关系。 + AssociationSet []*RouteTableAssociation `json:"AssociationSet,omitempty" name:"AssociationSet" list` + + // 路由表策略集合。 + RouteSet []*Route `json:"RouteSet,omitempty" name:"RouteSet" list` + + // 是否默认路由表。 + Main *bool `json:"Main,omitempty" name:"Main"` + + // 创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // 标签键值对。 + TagSet []*Tag `json:"TagSet,omitempty" name:"TagSet" list` +} + +type RouteTableAssociation struct { + + // 子网实例ID。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 路由表实例ID。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` +} + +type SecurityGroup struct { + + // 安全组实例ID,例如:sg-ohuuioma。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 安全组名称,可任意命名,但不得超过60个字符。 + SecurityGroupName *string `json:"SecurityGroupName,omitempty" name:"SecurityGroupName"` + + // 安全组备注,最多100个字符。 + SecurityGroupDesc *string `json:"SecurityGroupDesc,omitempty" name:"SecurityGroupDesc"` + + // 项目id,默认0。可在qcloud控制台项目管理页面查询到。 + ProjectId *string `json:"ProjectId,omitempty" name:"ProjectId"` + + // 是否是默认安全组,默认安全组不支持删除。 + IsDefault *bool `json:"IsDefault,omitempty" name:"IsDefault"` + + // 安全组创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // 标签键值对。 + TagSet []*Tag `json:"TagSet,omitempty" name:"TagSet" list` +} + +type SecurityGroupAssociationStatistics struct { + + // 安全组实例ID。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 云服务器实例数。 + CVM *uint64 `json:"CVM,omitempty" name:"CVM"` + + // 数据库实例数。 + CDB *uint64 `json:"CDB,omitempty" name:"CDB"` + + // 弹性网卡实例数。 + ENI *uint64 `json:"ENI,omitempty" name:"ENI"` + + // 被安全组引用数。 + SG *uint64 `json:"SG,omitempty" name:"SG"` + + // 负载均衡实例数。 + CLB *uint64 `json:"CLB,omitempty" name:"CLB"` + + // 全量实例的绑定统计。 + InstanceStatistics []*InstanceStatistic `json:"InstanceStatistics,omitempty" name:"InstanceStatistics" list` +} + +type SecurityGroupLimitSet struct { + + // 每个项目每个地域可创建安全组数 + SecurityGroupLimit *uint64 `json:"SecurityGroupLimit,omitempty" name:"SecurityGroupLimit"` + + // 安全组下的最大规则数 + SecurityGroupPolicyLimit *uint64 `json:"SecurityGroupPolicyLimit,omitempty" name:"SecurityGroupPolicyLimit"` + + // 安全组下嵌套安全组规则数 + ReferedSecurityGroupLimit *uint64 `json:"ReferedSecurityGroupLimit,omitempty" name:"ReferedSecurityGroupLimit"` + + // 单安全组关联实例数 + SecurityGroupInstanceLimit *uint64 `json:"SecurityGroupInstanceLimit,omitempty" name:"SecurityGroupInstanceLimit"` + + // 实例关联安全组数 + InstanceSecurityGroupLimit *uint64 `json:"InstanceSecurityGroupLimit,omitempty" name:"InstanceSecurityGroupLimit"` +} + +type SecurityGroupPolicy struct { + + // 安全组规则索引号。 + PolicyIndex *int64 `json:"PolicyIndex,omitempty" name:"PolicyIndex"` + + // 协议, 取值: TCP,UDP, ICMP。 + Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + + // 端口(all, 离散port, range)。 + Port *string `json:"Port,omitempty" name:"Port"` + + // 协议端口ID或者协议端口组ID。ServiceTemplate和Protocol+Port互斥。 + ServiceTemplate *ServiceTemplateSpecification `json:"ServiceTemplate,omitempty" name:"ServiceTemplate"` + + // 网段或IP(互斥)。 + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // 网段或IPv6(互斥)。 + Ipv6CidrBlock *string `json:"Ipv6CidrBlock,omitempty" name:"Ipv6CidrBlock"` + + // 安全组实例ID,例如:sg-ohuuioma。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // IP地址ID或者ID地址组ID。 + AddressTemplate *AddressTemplateSpecification `json:"AddressTemplate,omitempty" name:"AddressTemplate"` + + // ACCEPT 或 DROP。 + Action *string `json:"Action,omitempty" name:"Action"` + + // 安全组规则描述。 + PolicyDescription *string `json:"PolicyDescription,omitempty" name:"PolicyDescription"` + + // 安全组最近修改时间。 + ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` +} + +type SecurityGroupPolicySet struct { + + // 安全组规则当前版本。用户每次更新安全规则版本会自动加1,防止更新的路由规则已过期,不填不考虑冲突。 + Version *string `json:"Version,omitempty" name:"Version"` + + // 出站规则。 + Egress []*SecurityGroupPolicy `json:"Egress,omitempty" name:"Egress" list` + + // 入站规则。 + Ingress []*SecurityGroupPolicy `json:"Ingress,omitempty" name:"Ingress" list` +} + +type SecurityPolicyDatabase struct { + + // 本端网段 + LocalCidrBlock *string `json:"LocalCidrBlock,omitempty" name:"LocalCidrBlock"` + + // 对端网段 + RemoteCidrBlock []*string `json:"RemoteCidrBlock,omitempty" name:"RemoteCidrBlock" list` +} + +type ServiceTemplate struct { + + // 协议端口实例ID,例如:ppm-f5n1f8da。 + ServiceTemplateId *string `json:"ServiceTemplateId,omitempty" name:"ServiceTemplateId"` + + // 模板名称。 + ServiceTemplateName *string `json:"ServiceTemplateName,omitempty" name:"ServiceTemplateName"` + + // 协议端口信息。 + ServiceSet []*string `json:"ServiceSet,omitempty" name:"ServiceSet" list` + + // 创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` +} + +type ServiceTemplateGroup struct { + + // 协议端口模板集合实例ID,例如:ppmg-2klmrefu。 + ServiceTemplateGroupId *string `json:"ServiceTemplateGroupId,omitempty" name:"ServiceTemplateGroupId"` + + // 协议端口模板集合名称。 + ServiceTemplateGroupName *string `json:"ServiceTemplateGroupName,omitempty" name:"ServiceTemplateGroupName"` + + // 协议端口模板实例ID。 + ServiceTemplateIdSet []*string `json:"ServiceTemplateIdSet,omitempty" name:"ServiceTemplateIdSet" list` + + // 创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // 协议端口模板实例信息。 + ServiceTemplateSet []*ServiceTemplate `json:"ServiceTemplateSet,omitempty" name:"ServiceTemplateSet" list` +} + +type ServiceTemplateSpecification struct { + + // 协议端口ID,例如:ppm-f5n1f8da。 + ServiceId *string `json:"ServiceId,omitempty" name:"ServiceId"` + + // 协议端口组ID,例如:ppmg-f5n1f8da。 + ServiceGroupId *string `json:"ServiceGroupId,omitempty" name:"ServiceGroupId"` +} + +type SetCcnRegionBandwidthLimitsRequest struct { + *tchttp.BaseRequest + + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 云联网(CCN)各地域出带宽上限。 + CcnRegionBandwidthLimits []*CcnRegionBandwidthLimit `json:"CcnRegionBandwidthLimits,omitempty" name:"CcnRegionBandwidthLimits" list` +} + +func (r *SetCcnRegionBandwidthLimitsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *SetCcnRegionBandwidthLimitsRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type SetCcnRegionBandwidthLimitsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *SetCcnRegionBandwidthLimitsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *SetCcnRegionBandwidthLimitsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type Subnet struct { + + // `VPC`实例`ID`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 子网实例`ID`,例如:subnet-bthucmmy。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 子网名称。 + SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"` + + // 子网的 `IPv4` `CIDR`。 + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // 是否默认子网。 + IsDefault *bool `json:"IsDefault,omitempty" name:"IsDefault"` + + // 是否开启广播。 + EnableBroadcast *bool `json:"EnableBroadcast,omitempty" name:"EnableBroadcast"` + + // 可用区。 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 路由表实例ID,例如:rtb-l2h8d7c2。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // 可用`IP`数。 + AvailableIpAddressCount *uint64 `json:"AvailableIpAddressCount,omitempty" name:"AvailableIpAddressCount"` + + // 子网的 `IPv6` `CIDR`。 + Ipv6CidrBlock *string `json:"Ipv6CidrBlock,omitempty" name:"Ipv6CidrBlock"` + + // 关联`ACL`ID + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 是否为 `SNAT` 地址池子网。 + IsRemoteVpcSnat *bool `json:"IsRemoteVpcSnat,omitempty" name:"IsRemoteVpcSnat"` + + // 子网`IP`总数。 + TotalIpAddressCount *uint64 `json:"TotalIpAddressCount,omitempty" name:"TotalIpAddressCount"` + + // 标签键值对。 + TagSet []*Tag `json:"TagSet,omitempty" name:"TagSet" list` +} + +type SubnetInput struct { + + // 子网的`CIDR`。 + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // 子网名称。 + SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"` + + // 可用区。形如:`ap-guangzhou-2`。 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 指定关联路由表,形如:`rtb-3ryrwzuu`。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` +} + +type Tag struct { + + // 标签键 + // 注意:此字段可能返回 null,表示取不到有效值。 + Key *string `json:"Key,omitempty" name:"Key"` + + // 标签值 + // 注意:此字段可能返回 null,表示取不到有效值。 + Value *string `json:"Value,omitempty" name:"Value"` +} + +type TransformAddressRequest struct { + *tchttp.BaseRequest + + // 待操作有普通公网 IP 的实例 ID。实例 ID 形如:`ins-11112222`。可通过登录[控制台](https://console.cloud.tencent.com/cvm)查询,也可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/9389) 接口返回值中的`InstanceId`获取。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` +} + +func (r *TransformAddressRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *TransformAddressRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type TransformAddressResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *TransformAddressResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *TransformAddressResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UnassignIpv6AddressesRequest struct { + *tchttp.BaseRequest + + // 弹性网卡实例`ID`,形如:`eni-m6dyj72l`。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 指定的`IPv6`地址列表,单次最多指定10个。 + Ipv6Addresses []*Ipv6Address `json:"Ipv6Addresses,omitempty" name:"Ipv6Addresses" list` +} + +func (r *UnassignIpv6AddressesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *UnassignIpv6AddressesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UnassignIpv6AddressesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *UnassignIpv6AddressesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *UnassignIpv6AddressesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UnassignIpv6CidrBlockRequest struct { + *tchttp.BaseRequest + + // `VPC`实例`ID`,形如:`vpc-f49l6u0z`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // `IPv6`网段。形如:`3402:4e00:20:1000::/56` + Ipv6CidrBlock *string `json:"Ipv6CidrBlock,omitempty" name:"Ipv6CidrBlock"` +} + +func (r *UnassignIpv6CidrBlockRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *UnassignIpv6CidrBlockRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UnassignIpv6CidrBlockResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *UnassignIpv6CidrBlockResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *UnassignIpv6CidrBlockResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UnassignIpv6SubnetCidrBlockRequest struct { + *tchttp.BaseRequest + + // 子网所在私有网络`ID`。形如:`vpc-f49l6u0z`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // `IPv6` 子网段列表。 + Ipv6SubnetCidrBlocks []*Ipv6SubnetCidrBlock `json:"Ipv6SubnetCidrBlocks,omitempty" name:"Ipv6SubnetCidrBlocks" list` +} + +func (r *UnassignIpv6SubnetCidrBlockRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *UnassignIpv6SubnetCidrBlockRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UnassignIpv6SubnetCidrBlockResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *UnassignIpv6SubnetCidrBlockResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *UnassignIpv6SubnetCidrBlockResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UnassignPrivateIpAddressesRequest struct { + *tchttp.BaseRequest + + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 指定的内网IP信息,单次最多指定10个。 + PrivateIpAddresses []*PrivateIpAddressSpecification `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses" list` +} + +func (r *UnassignPrivateIpAddressesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *UnassignPrivateIpAddressesRequest) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UnassignPrivateIpAddressesResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *UnassignPrivateIpAddressesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +func (r *UnassignPrivateIpAddressesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type Vpc struct { + + // `VPC`名称。 + VpcName *string `json:"VpcName,omitempty" name:"VpcName"` + + // `VPC`实例`ID`,例如:vpc-azd4dt1c。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // `VPC`的`IPv4` `CIDR`。 + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // 是否默认`VPC`。 + IsDefault *bool `json:"IsDefault,omitempty" name:"IsDefault"` + + // 是否开启组播。 + EnableMulticast *bool `json:"EnableMulticast,omitempty" name:"EnableMulticast"` + + // 创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // `DNS`列表。 + DnsServerSet []*string `json:"DnsServerSet,omitempty" name:"DnsServerSet" list` + + // `DHCP`域名选项值。 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // `DHCP`选项集`ID`。 + DhcpOptionsId *string `json:"DhcpOptionsId,omitempty" name:"DhcpOptionsId"` + + // 是否开启`DHCP`。 + EnableDhcp *bool `json:"EnableDhcp,omitempty" name:"EnableDhcp"` + + // `VPC`的`IPv6` `CIDR`。 + Ipv6CidrBlock *string `json:"Ipv6CidrBlock,omitempty" name:"Ipv6CidrBlock"` + + // 标签键值对 + TagSet []*Tag `json:"TagSet,omitempty" name:"TagSet" list` + + // 辅助CIDR + // 注意:此字段可能返回 null,表示取不到有效值。 + AssistantCidrSet []*AssistantCidr `json:"AssistantCidrSet,omitempty" name:"AssistantCidrSet" list` +} + +type VpcIpv6Address struct { + + // `VPC`内`IPv6`地址。 + Ipv6Address *string `json:"Ipv6Address,omitempty" name:"Ipv6Address"` + + // 所属子网 `IPv6` `CIDR`。 + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // `IPv6`类型。 + Ipv6AddressType *string `json:"Ipv6AddressType,omitempty" name:"Ipv6AddressType"` + + // `IPv6`申请时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` +} + +type VpcPrivateIpAddress struct { + + // `VPC`内网`IP`。 + PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" name:"PrivateIpAddress"` + + // 所属子网`CIDR`。 + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // 内网`IP`类型。 + PrivateIpAddressType *string `json:"PrivateIpAddressType,omitempty" name:"PrivateIpAddressType"` + + // `IP`申请时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` +} + +type VpnConnection struct { + + // 通道实例ID。 + VpnConnectionId *string `json:"VpnConnectionId,omitempty" name:"VpnConnectionId"` + + // 通道名称。 + VpnConnectionName *string `json:"VpnConnectionName,omitempty" name:"VpnConnectionName"` + + // VPC实例ID。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 对端网关实例ID。 + CustomerGatewayId *string `json:"CustomerGatewayId,omitempty" name:"CustomerGatewayId"` + + // 预共享密钥。 + PreShareKey *string `json:"PreShareKey,omitempty" name:"PreShareKey"` + + // 通道传输协议。 + VpnProto *string `json:"VpnProto,omitempty" name:"VpnProto"` + + // 通道加密协议。 + EncryptProto *string `json:"EncryptProto,omitempty" name:"EncryptProto"` + + // 路由类型。 + RouteType *string `json:"RouteType,omitempty" name:"RouteType"` + + // 创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // 通道的生产状态,PENDING:生产中,AVAILABLE:运行中,DELETING:删除中。 + State *string `json:"State,omitempty" name:"State"` + + // 通道连接状态,AVAILABLE:已连接。 + NetStatus *string `json:"NetStatus,omitempty" name:"NetStatus"` + + // SPD。 + SecurityPolicyDatabaseSet []*SecurityPolicyDatabase `json:"SecurityPolicyDatabaseSet,omitempty" name:"SecurityPolicyDatabaseSet" list` + + // IKE选项。 + IKEOptionsSpecification *IKEOptionsSpecification `json:"IKEOptionsSpecification,omitempty" name:"IKEOptionsSpecification"` + + // IPSEC选择。 + IPSECOptionsSpecification *IPSECOptionsSpecification `json:"IPSECOptionsSpecification,omitempty" name:"IPSECOptionsSpecification"` +} + +type VpnGateway struct { + + // 网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // VPC实例ID。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 网关实例名称。 + VpnGatewayName *string `json:"VpnGatewayName,omitempty" name:"VpnGatewayName"` + + // 网关实例类型:'IPSEC', 'SSL','CCN'。 + Type *string `json:"Type,omitempty" name:"Type"` + + // 网关实例状态, 'PENDING':生产中,'DELETING':删除中,'AVAILABLE':运行中。 + State *string `json:"State,omitempty" name:"State"` + + // 网关公网IP。 + PublicIpAddress *string `json:"PublicIpAddress,omitempty" name:"PublicIpAddress"` + + // 网关续费类型:'NOTIFY_AND_MANUAL_RENEW':手动续费,'NOTIFY_AND_AUTO_RENEW':自动续费,'NOT_NOTIFY_AND_NOT_RENEW':到期不续费。 + RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` + + // 网关付费类型:POSTPAID_BY_HOUR:按小时后付费,PREPAID:包年包月预付费, + InstanceChargeType *string `json:"InstanceChargeType,omitempty" name:"InstanceChargeType"` + + // 网关出带宽。 + InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // 创建时间。 + CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` + + // 预付费网关过期时间。 + ExpiredTime *string `json:"ExpiredTime,omitempty" name:"ExpiredTime"` + + // 公网IP是否被封堵。 + IsAddressBlocked *bool `json:"IsAddressBlocked,omitempty" name:"IsAddressBlocked"` + + // 计费模式变更,PREPAID_TO_POSTPAID:包年包月预付费到期转按小时后付费。 + NewPurchasePlan *string `json:"NewPurchasePlan,omitempty" name:"NewPurchasePlan"` + + // 网关计费装,PROTECTIVELY_ISOLATED:被安全隔离的实例,NORMAL:正常。 + RestrictState *string `json:"RestrictState,omitempty" name:"RestrictState"` + + // 可用区,如:ap-guangzhou-2 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 网关带宽配额信息 + VpnGatewayQuotaSet []*VpnGatewayQuota `json:"VpnGatewayQuotaSet,omitempty" name:"VpnGatewayQuotaSet" list` + + // 网关实例版本信息 + Version *string `json:"Version,omitempty" name:"Version"` + + // Type值为CCN时,该值表示云联网实例ID + NetworkInstanceId *string `json:"NetworkInstanceId,omitempty" name:"NetworkInstanceId"` +} + +type VpnGatewayQuota struct { + + // 带宽配额 + Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + + // 配额中文名称 + Cname *string `json:"Cname,omitempty" name:"Cname"` + + // 配额英文名称 + Name *string `json:"Name,omitempty" name:"Name"` +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 1bf43ee0b9..040f047de9 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -586,6 +586,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312 # github.com/tencentyun/cos-go-sdk-v5 v0.7.10 github.com/tencentyun/cos-go-sdk-v5 github.com/tencentyun/cos-go-sdk-v5/debug