From 8cda56b1735e519df0397d1d1042ada3108af8a9 Mon Sep 17 00:00:00 2001 From: mikatong Date: Tue, 23 Aug 2022 15:38:00 +0800 Subject: [PATCH 1/2] fix: support set dpd --- go.mod | 2 +- go.sum | 2 + tencentcloud/extension_vpc.go | 10 + tencentcloud/resource_tc_vpn_connection.go | 71 +- .../resource_tc_vpn_connection_test.go | 98 +- .../tencentcloud/common/client.go | 113 +- .../tencentcloud/common/http/request.go | 11 + .../tencentcloud/vpc/v20170312/client.go | 1422 ++- .../tencentcloud/vpc/v20170312/errors.go | 147 + .../tencentcloud/vpc/v20170312/models.go | 9658 ++++++++++++----- vendor/modules.txt | 2 +- 11 files changed, 9067 insertions(+), 2469 deletions(-) diff --git a/go.mod b/go.mod index c55a413888..3c25960b46 100644 --- a/go.mod +++ b/go.mod @@ -62,7 +62,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.472 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke v1.0.438 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vod v1.0.199 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.398 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.479 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199 github.com/tencentyun/cos-go-sdk-v5 v0.7.33 github.com/yangwenmai/ratelimit v0.0.0-20180104140304-44221c2292e1 diff --git a/go.sum b/go.sum index 2afbddc74c..cc5ac9c542 100644 --- a/go.sum +++ b/go.sum @@ -553,6 +553,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vod v1.0.199 h1:6Yt74l4 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vod v1.0.199/go.mod h1:Yw6OQ33z3s4k0HVYTNSffB12qOzEJ2Zf1Vj4+5S3sRs= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.398 h1:1JVKMl+yjZbntwAW0A6esjQI1/dXXqjQ9+OLai7ZS2w= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.398/go.mod h1:+TD/TRnb5WrLcE2SL3db7ROOpwED5gBfbC19gaXnGxs= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.479 h1:eArkuh12SjyaHaKDNfF2oLjkY3f8SnuazgM/2dV9hcA= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.479/go.mod h1:U+ZEKIS6qZu8unIM3K5qWBaK7bO4ydXgzmdNeRBjQQw= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199 h1:hMBLtiJPnZ9GvA677cTB6ELBR6B68wCR2QY1sNoGQc4= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199/go.mod h1:nnY91/H3j/Gu7V/oCA6Zeg8T5D3q36EUdBh4EjmHwqY= github.com/tencentyun/cos-go-sdk-v5 v0.7.33 h1:5jmJU7U/1nf/7ZPDkrUL8KlF1oDUzTHsdtLNY6x0hq4= diff --git a/tencentcloud/extension_vpc.go b/tencentcloud/extension_vpc.go index ed8ec6b551..090e33fcdb 100644 --- a/tencentcloud/extension_vpc.go +++ b/tencentcloud/extension_vpc.go @@ -307,3 +307,13 @@ const ( VPCNotFound = "ResourceNotFound" VPCUnsupportedOperation = "UnsupportedOperation" ) + +const ( + DPD_ACTION_CLEAR = "clear" + DPD_ACTION_RESTART = "restart" +) + +var DPD_ACTIONS = []string{ + DPD_ACTION_CLEAR, + DPD_ACTION_RESTART, +} diff --git a/tencentcloud/resource_tc_vpn_connection.go b/tencentcloud/resource_tc_vpn_connection.go index 87c5dbb2fe..404167383d 100644 --- a/tencentcloud/resource_tc_vpn_connection.go +++ b/tencentcloud/resource_tc_vpn_connection.go @@ -49,6 +49,7 @@ import ( "context" "fmt" "log" + "strconv" "time" "github.com/hashicorp/terraform-plugin-sdk/helper/resource" @@ -249,6 +250,27 @@ func resourceTencentCloudVpnConnection() *schema.Resource { Optional: true, Description: "A list of tags used to associate different resources.", }, + "dpd_enable": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ValidateFunc: validateIntegerInRange(0, 1), + Description: "Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable).", + }, + "dpd_timeout": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + ValidateFunc: validateIntegerInRange(30, 60), + Description: "DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1.", + }, + "dpd_action": { + Type: schema.TypeString, + Optional: true, + Computed: true, + ValidateFunc: validateAllowedStringValue(DPD_ACTIONS), + Description: "The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1.", + }, "create_time": { Type: schema.TypeString, Computed: true, @@ -336,7 +358,16 @@ func resourceTencentCloudVpnConnectionCreate(d *schema.ResourceData, meta interf request.VpnGatewayId = helper.String(d.Get("vpn_gateway_id").(string)) request.CustomerGatewayId = helper.String(d.Get("customer_gateway_id").(string)) request.PreShareKey = helper.String(d.Get("pre_share_key").(string)) - + if v, ok := d.GetOk("dpd_enable"); ok { + dpdEnable := v.(int) + request.DpdEnable = helper.IntInt64(dpdEnable) + } + if v, ok := d.GetOk("dpd_action"); ok { + request.DpdAction = helper.String(v.(string)) + } + if v, ok := d.GetOk("dpd_timeout"); ok { + request.DpdTimeout = helper.String(strconv.Itoa(v.(int))) + } //set up SecurityPolicyDatabases sgps := d.Get("security_group_policy").(*schema.Set).List() @@ -638,6 +669,15 @@ func resourceTencentCloudVpnConnectionRead(d *schema.ResourceData, meta interfac _ = d.Set("enable_health_check", *connection.EnableHealthCheck) _ = d.Set("health_check_local_ip", *connection.HealthCheckLocalIp) _ = d.Set("health_check_remote_ip", *connection.HealthCheckRemoteIp) + // dpd + _ = d.Set("dpd_enable", *connection.DpdEnable) + dpdTimeoutInt, err := strconv.Atoi(*connection.DpdTimeout) + if err != nil { + return err + } + _ = d.Set("dpd_timeout", dpdTimeoutInt) + _ = d.Set("dpd_action", *connection.DpdAction) + //tags tagService := TagService{client: meta.(*TencentCloudClient).apiV3Conn} region := meta.(*TencentCloudClient).apiV3Conn.Region @@ -705,6 +745,24 @@ func resourceTencentCloudVpnConnectionUpdate(d *schema.ResourceData, meta interf } changeFlag = true } + + if d.HasChange("dpd_enable") { + request.DpdEnable = helper.IntInt64(d.Get("dpd_enable").(int)) + changeFlag = true + } + if d.HasChange("dpd_timeout") { + if v, ok := d.GetOk("dpd_timeout"); ok { + request.DpdTimeout = helper.String(strconv.Itoa(v.(int))) + changeFlag = true + } + } + if d.HasChange("dpd_action") { + if v, ok := d.GetOk("dpd_action"); ok { + request.DpdAction = helper.String(v.(string)) + changeFlag = true + } + } + ikeChangeKeySet := map[string]bool{ "ike_proto_encry_algorithm": false, "ike_proto_authen_algorithm": false, @@ -842,6 +900,17 @@ func resourceTencentCloudVpnConnectionUpdate(d *schema.ResourceData, meta interf d.SetPartial(key) } } + + if d.HasChange("dpd_enable") { + d.SetPartial("dpd_enable") + } + if d.HasChange("dpd_timeout") { + d.SetPartial("dpd_timeout") + } + if d.HasChange("dpd_action") { + d.SetPartial("dpd_action") + } + //tag if d.HasChange("tags") { oldInterface, newInterface := d.GetChange("tags") diff --git a/tencentcloud/resource_tc_vpn_connection_test.go b/tencentcloud/resource_tc_vpn_connection_test.go index 595454dc2f..c436489428 100644 --- a/tencentcloud/resource_tc_vpn_connection_test.go +++ b/tencentcloud/resource_tc_vpn_connection_test.go @@ -43,6 +43,9 @@ func TestAccTencentCloudVpnConnection_basic(t *testing.T) { resource.TestCheckResourceAttrSet("tencentcloud_vpn_connection.connection", "encrypt_proto"), resource.TestCheckResourceAttrSet("tencentcloud_vpn_connection.connection", "route_type"), resource.TestCheckResourceAttrSet("tencentcloud_vpn_connection.connection", "vpn_proto"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "dpd_enable", "1"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "dpd_timeout", "30"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "dpd_action", "clear"), resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "enable_health_check", "true"), resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "health_check_local_ip", "192.168.0.2"), resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "health_check_remote_ip", "3.3.3.2"), @@ -73,6 +76,39 @@ func TestAccTencentCloudVpnConnection_basic(t *testing.T) { resource.TestCheckResourceAttrSet("tencentcloud_vpn_connection.connection", "encrypt_proto"), resource.TestCheckResourceAttrSet("tencentcloud_vpn_connection.connection", "route_type"), resource.TestCheckResourceAttrSet("tencentcloud_vpn_connection.connection", "vpn_proto"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "dpd_enable", "0"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "dpd_timeout", "30"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "dpd_action", "clear"), + ), + }, + { + Config: testAccVpnConnectionConfigUpdate2, + Check: resource.ComposeTestCheckFunc( + testAccCheckVpnConnectionExists("tencentcloud_vpn_connection.connection"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "name", "vpn_connection_test2"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "pre_share_key", "testt"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "tags.test", "testt"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "ike_proto_encry_algorithm", "3DES-CBC"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "ike_proto_authen_algorithm", "SHA"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "ike_local_identity", "ADDRESS"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "ike_remote_identity", "ADDRESS"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "ike_dh_group_name", "GROUP2"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "ike_exchange_mode", "AGGRESSIVE"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "ike_sa_lifetime_seconds", "86401"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "ipsec_encrypt_algorithm", "3DES-CBC"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "ipsec_integrity_algorithm", "SHA1"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "ipsec_pfs_dh_group", "NULL"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "ipsec_sa_lifetime_seconds", "7200"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "ipsec_sa_lifetime_traffic", "2570"), + //resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "security_group_policy.0.remote_cidr_block.0", "3.3.3.0/26"), + resource.TestCheckResourceAttrSet("tencentcloud_vpn_connection.connection", "net_status"), + resource.TestCheckResourceAttrSet("tencentcloud_vpn_connection.connection", "state"), + resource.TestCheckResourceAttrSet("tencentcloud_vpn_connection.connection", "encrypt_proto"), + resource.TestCheckResourceAttrSet("tencentcloud_vpn_connection.connection", "route_type"), + resource.TestCheckResourceAttrSet("tencentcloud_vpn_connection.connection", "vpn_proto"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "dpd_enable", "1"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "dpd_timeout", "40"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "dpd_action", "restart"), resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "enable_health_check", "false"), ), }, @@ -209,7 +245,9 @@ resource "tencentcloud_vpn_connection" "connection" { ipsec_sa_lifetime_seconds = 3600 ipsec_pfs_dh_group = "DH-GROUP1" ipsec_sa_lifetime_traffic = 2560 - + dpd_enable = 1 + dpd_timeout = "30" + dpd_action = "clear" security_group_policy { local_cidr_block = "172.16.0.0/16" remote_cidr_block = ["3.3.3.0/32", ] @@ -264,6 +302,64 @@ resource "tencentcloud_vpn_connection" "connection" { ipsec_sa_lifetime_seconds = 7200 ipsec_pfs_dh_group = "NULL" ipsec_sa_lifetime_traffic = 2570 + dpd_enable = 0 + dpd_timeout = "30" + dpd_action = "clear" + + security_group_policy { + local_cidr_block = "172.16.0.0/16" + remote_cidr_block = ["3.3.3.0/26", ] + } + tags = { + test = "testt" + } +} +` + +const testAccVpnConnectionConfigUpdate2 = ` +resource "tencentcloud_vpn_customer_gateway" "cgw" { + name = "terraform_test" + public_ip_address = "1.3.3.3" +} + +# Create VPC and Subnet +data "tencentcloud_vpc_instances" "foo" { + name = "Default-VPC" +} + +resource "tencentcloud_vpn_gateway" "vpn" { + name = "terraform_update" + vpc_id = data.tencentcloud_vpc_instances.foo.instance_list.0.vpc_id + bandwidth = 5 + zone = "ap-guangzhou-3" + + tags = { + test = "test" + } +} +resource "tencentcloud_vpn_connection" "connection" { + name = "vpn_connection_test2" + vpc_id = data.tencentcloud_vpc_instances.foo.instance_list.0.vpc_id + vpn_gateway_id = tencentcloud_vpn_gateway.vpn.id + customer_gateway_id = tencentcloud_vpn_customer_gateway.cgw.id + pre_share_key = "testt" + ike_proto_encry_algorithm = "3DES-CBC" + ike_proto_authen_algorithm = "SHA" + ike_local_identity = "ADDRESS" + ike_exchange_mode = "AGGRESSIVE" + ike_local_address = tencentcloud_vpn_gateway.vpn.public_ip_address + ike_remote_identity = "ADDRESS" + ike_remote_address = tencentcloud_vpn_customer_gateway.cgw.public_ip_address + ike_dh_group_name = "GROUP2" + ike_sa_lifetime_seconds = 86401 + ipsec_encrypt_algorithm = "3DES-CBC" + ipsec_integrity_algorithm = "SHA1" + ipsec_sa_lifetime_seconds = 7200 + ipsec_pfs_dh_group = "NULL" + ipsec_sa_lifetime_traffic = 2570 + dpd_enable = 1 + dpd_timeout = "40" + dpd_action = "restart" security_group_policy { local_cidr_block = "172.16.0.0/16" diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/client.go index 9e35b51789..f636d5a44d 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/client.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/client.go @@ -63,7 +63,7 @@ func (c *Client) Send(request tchttp.Request, response tchttp.Response) (err err safeInjectClientToken(request) } - if c.credential == nil { + if request.GetSkipSign() { // Some APIs can skip signature. return c.sendWithoutSignature(request, response) } else if c.profile.DisableRegionBreaker == true || c.rb == nil { @@ -109,15 +109,114 @@ func (c *Client) sendWithSignature(request tchttp.Request, response tchttp.Respo } func (c *Client) sendWithoutSignature(request tchttp.Request, response tchttp.Response) error { - httpRequest, err := http.NewRequestWithContext(request.GetContext(), request.GetHttpMethod(), request.GetUrl(), request.GetBodyReader()) - if err != nil { - return err + headers := map[string]string{ + "Host": request.GetDomain(), + "X-TC-Action": request.GetAction(), + "X-TC-Version": request.GetVersion(), + "X-TC-Timestamp": request.GetParams()["Timestamp"], + "X-TC-RequestClient": request.GetParams()["RequestClient"], + "X-TC-Language": c.profile.Language, + "Authorization": "SKIP", } - if request.GetHttpMethod() == "POST" { - httpRequest.Header.Set("Content-Type", "application/x-www-form-urlencoded") + if c.region != "" { + headers["X-TC-Region"] = c.region } + if c.credential.GetToken() != "" { + headers["X-TC-Token"] = c.credential.GetToken() + } + if request.GetHttpMethod() == "GET" { + headers["Content-Type"] = "application/x-www-form-urlencoded" + } else { + headers["Content-Type"] = "application/json" + } + isOctetStream := false + cr := &tchttp.CommonRequest{} + ok := false + var octetStreamBody []byte + if cr, ok = request.(*tchttp.CommonRequest); ok { + if cr.IsOctetStream() { + isOctetStream = true + // custom headers must contain Content-Type : application/octet-stream + // todo:the custom header may overwrite headers + for k, v := range cr.GetHeader() { + headers[k] = v + } + octetStreamBody = cr.GetOctetStreamBody() + } + } + for k, v := range request.GetHeader() { - httpRequest.Header.Set(k, v) + switch k { + case "X-TC-Action", "X-TC-Version", "X-TC-Timestamp", "X-TC-RequestClient", + "X-TC-Language", "Content-Type", "X-TC-Region", "X-TC-Token": + c.logger.Printf("Skip header \"%s\": can not specify built-in header", k) + default: + headers[k] = v + } + } + + if !isOctetStream && request.GetContentType() == octetStream { + isOctetStream = true + b, _ := json.Marshal(request) + var m map[string]string + _ = json.Unmarshal(b, &m) + for k, v := range m { + key := "X-" + strings.ToUpper(request.GetService()) + "-" + k + headers[key] = v + } + + headers["Content-Type"] = octetStream + octetStreamBody = request.GetBody() + } + // start signature v3 process + + // build canonical request string + httpRequestMethod := request.GetHttpMethod() + canonicalQueryString := "" + if httpRequestMethod == "GET" { + err := tchttp.ConstructParams(request) + if err != nil { + return err + } + params := make(map[string]string) + for key, value := range request.GetParams() { + params[key] = value + } + delete(params, "Action") + delete(params, "Version") + delete(params, "Nonce") + delete(params, "Region") + delete(params, "RequestClient") + delete(params, "Timestamp") + canonicalQueryString = tchttp.GetUrlQueriesEncoded(params) + } + requestPayload := "" + if httpRequestMethod == "POST" { + if isOctetStream { + // todo Conversion comparison between string and []byte affects performance much + requestPayload = string(octetStreamBody) + } else { + b, err := json.Marshal(request) + if err != nil { + return err + } + requestPayload = string(b) + } + } + if c.unsignedPayload { + headers["X-TC-Content-SHA256"] = "UNSIGNED-PAYLOAD" + } + + url := request.GetScheme() + "://" + request.GetDomain() + request.GetPath() + if canonicalQueryString != "" { + url = url + "?" + canonicalQueryString + } + httpRequest, err := http.NewRequestWithContext(request.GetContext(), httpRequestMethod, url, strings.NewReader(requestPayload)) + if err != nil { + return err + } + for k, v := range headers { + httpRequest.Header[k] = []string{v} } httpResponse, err := c.sendWithRateLimitRetry(httpRequest, isRetryable(request)) if err != nil { diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go index c705c60635..61aadc28fd 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go @@ -40,6 +40,7 @@ type Request interface { GetContentType() string GetContext() context.Context GetHeader() map[string]string + GetSkipSign() bool SetScheme(string) SetRootDomain(string) SetDomain(string) @@ -49,6 +50,7 @@ type Request interface { SetBody([]byte) SetContext(context.Context) SetHeader(header map[string]string) + SetSkipSign(skip bool) } type BaseRequest struct { @@ -58,6 +60,7 @@ type BaseRequest struct { rootDomain string domain string path string + skipSign bool params map[string]string formParams map[string]string header map[string]string @@ -202,6 +205,14 @@ func (r *BaseRequest) SetHeader(header map[string]string) { r.header = header } +func (r *BaseRequest) GetSkipSign() bool { + return r.skipSign +} + +func (r *BaseRequest) SetSkipSign(skip bool) { + r.skipSign = skip +} + func GetUrlQueriesEncoded(params map[string]string) string { values := url.Values{} for key, value := range params { 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 index 506c1690fd..d58cbc97ed 100644 --- 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 @@ -49,6 +49,7 @@ func NewAcceptAttachCcnInstancesRequest() (request *AcceptAttachCcnInstancesRequ request = &AcceptAttachCcnInstancesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AcceptAttachCcnInstances") @@ -116,6 +117,7 @@ func NewAddBandwidthPackageResourcesRequest() (request *AddBandwidthPackageResou request = &AddBandwidthPackageResourcesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AddBandwidthPackageResources") @@ -136,6 +138,7 @@ func NewAddBandwidthPackageResourcesResponse() (response *AddBandwidthPackageRes // INTERNALSERVERERROR = "InternalServerError" // INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDMALFORMED = "InvalidParameterValue.BandwidthPackageIdMalformed" // INVALIDPARAMETERVALUE_BANDWIDTHPACKAGENOTFOUND = "InvalidParameterValue.BandwidthPackageNotFound" +// INVALIDPARAMETERVALUE_COMBINATION = "InvalidParameterValue.Combination" // INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_RESOURCEALREADYEXISTED = "InvalidParameterValue.ResourceAlreadyExisted" @@ -158,6 +161,7 @@ func (c *Client) AddBandwidthPackageResources(request *AddBandwidthPackageResour // INTERNALSERVERERROR = "InternalServerError" // INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDMALFORMED = "InvalidParameterValue.BandwidthPackageIdMalformed" // INVALIDPARAMETERVALUE_BANDWIDTHPACKAGENOTFOUND = "InvalidParameterValue.BandwidthPackageNotFound" +// INVALIDPARAMETERVALUE_COMBINATION = "InvalidParameterValue.Combination" // INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_RESOURCEALREADYEXISTED = "InvalidParameterValue.ResourceAlreadyExisted" @@ -189,6 +193,7 @@ func NewAddIp6RulesRequest() (request *AddIp6RulesRequest) { request = &AddIp6RulesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AddIp6Rules") @@ -248,6 +253,7 @@ func NewAddTemplateMemberRequest() (request *AddTemplateMemberRequest) { request = &AddTemplateMemberRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AddTemplateMember") @@ -303,10 +309,95 @@ func (c *Client) AddTemplateMemberWithContext(ctx context.Context, request *AddT return } +func NewAdjustPublicAddressRequest() (request *AdjustPublicAddressRequest) { + request = &AdjustPublicAddressRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("vpc", APIVersion, "AdjustPublicAddress") + + + return +} + +func NewAdjustPublicAddressResponse() (response *AdjustPublicAddressResponse) { + response = &AdjustPublicAddressResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// AdjustPublicAddress +// 本接口 (AdjustPublicAddress) 用于更换IP地址,支持更换CVM实例的普通公网IP和包月带宽的EIP。 +// +// 可能返回的错误码: +// INVALIDACCOUNT_NOTSUPPORTED = "InvalidAccount.NotSupported" +// INVALIDADDRESSID_BLOCKED = "InvalidAddressId.Blocked" +// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" +// INVALIDPARAMETERVALUE_ADDRESSATTACKED = "InvalidParameterValue.AddressAttacked" +// INVALIDPARAMETERVALUE_ADDRESSIPNOTAVAILABLE = "InvalidParameterValue.AddressIpNotAvailable" +// INVALIDPARAMETERVALUE_ADDRESSNOTFOUND = "InvalidParameterValue.AddressNotFound" +// INVALIDPARAMETERVALUE_INSTANCEHASNOWANIP = "InvalidParameterValue.InstanceHasNoWanIP" +// INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" +// INVALIDPARAMETERVALUE_INSTANCENOWANIP = "InvalidParameterValue.InstanceNoWanIP" +// INVALIDPARAMETERVALUE_RESOURCENOTSUPPORT = "InvalidParameterValue.ResourceNotSupport" +// INVALIDPARAMETERVALUE_UNAVAILABLEZONE = "InvalidParameterValue.UnavailableZone" +// LIMITEXCEEDED_CHANGEADDRESSQUOTA = "LimitExceeded.ChangeAddressQuota" +// LIMITEXCEEDED_DAILYCHANGEADDRESSQUOTA = "LimitExceeded.DailyChangeAddressQuota" +// OPERATIONDENIED_ADDRESSINARREARS = "OperationDenied.AddressInArrears" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" +// RESOURCEINSUFFICIENT = "ResourceInsufficient" +// UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" +// UNSUPPORTEDOPERATION_INVALIDADDRESSINTERNETCHARGETYPE = "UnsupportedOperation.InvalidAddressInternetChargeType" +// UNSUPPORTEDOPERATION_ISPNOTSUPPORTED = "UnsupportedOperation.IspNotSupported" +func (c *Client) AdjustPublicAddress(request *AdjustPublicAddressRequest) (response *AdjustPublicAddressResponse, err error) { + return c.AdjustPublicAddressWithContext(context.Background(), request) +} + +// AdjustPublicAddress +// 本接口 (AdjustPublicAddress) 用于更换IP地址,支持更换CVM实例的普通公网IP和包月带宽的EIP。 +// +// 可能返回的错误码: +// INVALIDACCOUNT_NOTSUPPORTED = "InvalidAccount.NotSupported" +// INVALIDADDRESSID_BLOCKED = "InvalidAddressId.Blocked" +// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" +// INVALIDPARAMETERVALUE_ADDRESSATTACKED = "InvalidParameterValue.AddressAttacked" +// INVALIDPARAMETERVALUE_ADDRESSIPNOTAVAILABLE = "InvalidParameterValue.AddressIpNotAvailable" +// INVALIDPARAMETERVALUE_ADDRESSNOTFOUND = "InvalidParameterValue.AddressNotFound" +// INVALIDPARAMETERVALUE_INSTANCEHASNOWANIP = "InvalidParameterValue.InstanceHasNoWanIP" +// INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" +// INVALIDPARAMETERVALUE_INSTANCENOWANIP = "InvalidParameterValue.InstanceNoWanIP" +// INVALIDPARAMETERVALUE_RESOURCENOTSUPPORT = "InvalidParameterValue.ResourceNotSupport" +// INVALIDPARAMETERVALUE_UNAVAILABLEZONE = "InvalidParameterValue.UnavailableZone" +// LIMITEXCEEDED_CHANGEADDRESSQUOTA = "LimitExceeded.ChangeAddressQuota" +// LIMITEXCEEDED_DAILYCHANGEADDRESSQUOTA = "LimitExceeded.DailyChangeAddressQuota" +// OPERATIONDENIED_ADDRESSINARREARS = "OperationDenied.AddressInArrears" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" +// RESOURCEINSUFFICIENT = "ResourceInsufficient" +// UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" +// UNSUPPORTEDOPERATION_INVALIDADDRESSINTERNETCHARGETYPE = "UnsupportedOperation.InvalidAddressInternetChargeType" +// UNSUPPORTEDOPERATION_ISPNOTSUPPORTED = "UnsupportedOperation.IspNotSupported" +func (c *Client) AdjustPublicAddressWithContext(ctx context.Context, request *AdjustPublicAddressRequest) (response *AdjustPublicAddressResponse, err error) { + if request == nil { + request = NewAdjustPublicAddressRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("AdjustPublicAddress require credential") + } + + request.SetContext(ctx) + + response = NewAdjustPublicAddressResponse() + err = c.Send(request, response) + return +} + func NewAllocateAddressesRequest() (request *AllocateAddressesRequest) { request = &AllocateAddressesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AllocateAddresses") @@ -332,6 +423,7 @@ func NewAllocateAddressesResponse() (response *AllocateAddressesResponse) { // 可能返回的错误码: // ADDRESSQUOTALIMITEXCEEDED = "AddressQuotaLimitExceeded" // ADDRESSQUOTALIMITEXCEEDED_DAILYALLOCATE = "AddressQuotaLimitExceeded.DailyAllocate" +// FAILEDOPERATION_BALANCEINSUFFICIENT = "FailedOperation.BalanceInsufficient" // FAILEDOPERATION_INVALIDREGION = "FailedOperation.InvalidRegion" // INVALIDACCOUNT_NOTSUPPORTED = "InvalidAccount.NotSupported" // INVALIDADDRESSID_BLOCKED = "InvalidAddressId.Blocked" @@ -352,12 +444,15 @@ func NewAllocateAddressesResponse() (response *AllocateAddressesResponse) { // INVALIDPARAMETERVALUE_UNAVAILABLEZONE = "InvalidParameterValue.UnavailableZone" // LIMITEXCEEDED_BANDWIDTHPACKAGEQUOTA = "LimitExceeded.BandwidthPackageQuota" // LIMITEXCEEDED_MONTHLYADDRESSRECOVERYQUOTA = "LimitExceeded.MonthlyAddressRecoveryQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" // RESOURCEINSUFFICIENT = "ResourceInsufficient" +// UNAUTHORIZEDOPERATION_ANYCASTEIP = "UnauthorizedOperation.AnycastEip" // UNAUTHORIZEDOPERATION_INVALIDACCOUNT = "UnauthorizedOperation.InvalidAccount" // UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" // UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported" // UNSUPPORTEDOPERATION_INSTANCESTATENOTSUPPORTED = "UnsupportedOperation.InstanceStateNotSupported" // UNSUPPORTEDOPERATION_INVALIDACTION = "UnsupportedOperation.InvalidAction" +// UNSUPPORTEDOPERATION_OFFLINECHARGETYPE = "UnsupportedOperation.OfflineChargeType" // UNSUPPORTEDOPERATION_UNSUPPORTEDREGION = "UnsupportedOperation.UnsupportedRegion" func (c *Client) AllocateAddresses(request *AllocateAddressesRequest) (response *AllocateAddressesResponse, err error) { return c.AllocateAddressesWithContext(context.Background(), request) @@ -375,6 +470,7 @@ func (c *Client) AllocateAddresses(request *AllocateAddressesRequest) (response // 可能返回的错误码: // ADDRESSQUOTALIMITEXCEEDED = "AddressQuotaLimitExceeded" // ADDRESSQUOTALIMITEXCEEDED_DAILYALLOCATE = "AddressQuotaLimitExceeded.DailyAllocate" +// FAILEDOPERATION_BALANCEINSUFFICIENT = "FailedOperation.BalanceInsufficient" // FAILEDOPERATION_INVALIDREGION = "FailedOperation.InvalidRegion" // INVALIDACCOUNT_NOTSUPPORTED = "InvalidAccount.NotSupported" // INVALIDADDRESSID_BLOCKED = "InvalidAddressId.Blocked" @@ -395,12 +491,15 @@ func (c *Client) AllocateAddresses(request *AllocateAddressesRequest) (response // INVALIDPARAMETERVALUE_UNAVAILABLEZONE = "InvalidParameterValue.UnavailableZone" // LIMITEXCEEDED_BANDWIDTHPACKAGEQUOTA = "LimitExceeded.BandwidthPackageQuota" // LIMITEXCEEDED_MONTHLYADDRESSRECOVERYQUOTA = "LimitExceeded.MonthlyAddressRecoveryQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" // RESOURCEINSUFFICIENT = "ResourceInsufficient" +// UNAUTHORIZEDOPERATION_ANYCASTEIP = "UnauthorizedOperation.AnycastEip" // UNAUTHORIZEDOPERATION_INVALIDACCOUNT = "UnauthorizedOperation.InvalidAccount" // UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" // UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported" // UNSUPPORTEDOPERATION_INSTANCESTATENOTSUPPORTED = "UnsupportedOperation.InstanceStateNotSupported" // UNSUPPORTEDOPERATION_INVALIDACTION = "UnsupportedOperation.InvalidAction" +// UNSUPPORTEDOPERATION_OFFLINECHARGETYPE = "UnsupportedOperation.OfflineChargeType" // UNSUPPORTEDOPERATION_UNSUPPORTEDREGION = "UnsupportedOperation.UnsupportedRegion" func (c *Client) AllocateAddressesWithContext(ctx context.Context, request *AllocateAddressesRequest) (response *AllocateAddressesResponse, err error) { if request == nil { @@ -422,6 +521,7 @@ func NewAllocateIp6AddressesBandwidthRequest() (request *AllocateIp6AddressesBan request = &AllocateIp6AddressesBandwidthRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AllocateIp6AddressesBandwidth") @@ -439,8 +539,10 @@ func NewAllocateIp6AddressesBandwidthResponse() (response *AllocateIp6AddressesB // 该接口用于给IPv6地址初次分配公网带宽 // // 可能返回的错误码: +// FAILEDOPERATION_BALANCEINSUFFICIENT = "FailedOperation.BalanceInsufficient" // INTERNALSERVERERROR = "InternalServerError" // INVALIDACCOUNT_NOTSUPPORTED = "InvalidAccount.NotSupported" +// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETERVALUE_ADDRESSIPNOTFOUND = "InvalidParameterValue.AddressIpNotFound" @@ -459,8 +561,10 @@ func (c *Client) AllocateIp6AddressesBandwidth(request *AllocateIp6AddressesBand // 该接口用于给IPv6地址初次分配公网带宽 // // 可能返回的错误码: +// FAILEDOPERATION_BALANCEINSUFFICIENT = "FailedOperation.BalanceInsufficient" // INTERNALSERVERERROR = "InternalServerError" // INVALIDACCOUNT_NOTSUPPORTED = "InvalidAccount.NotSupported" +// INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETERVALUE_ADDRESSIPNOTFOUND = "InvalidParameterValue.AddressIpNotFound" @@ -491,6 +595,7 @@ func NewAssignIpv6AddressesRequest() (request *AssignIpv6AddressesRequest) { request = &AssignIpv6AddressesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AssignIpv6Addresses") @@ -520,8 +625,12 @@ func NewAssignIpv6AddressesResponse() (response *AssignIpv6AddressesResponse) { // 可能返回的错误码: // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// INVALIDPARAMETERVALUE_RESERVED = "InvalidParameterValue.Reserved" +// LIMITEXCEEDED = "LimitExceeded" // LIMITEXCEEDED_ADDRESS = "LimitExceeded.Address" // MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" // RESOURCEINUSE_ADDRESS = "ResourceInUse.Address" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" @@ -548,8 +657,12 @@ func (c *Client) AssignIpv6Addresses(request *AssignIpv6AddressesRequest) (respo // 可能返回的错误码: // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// INVALIDPARAMETERVALUE_RESERVED = "InvalidParameterValue.Reserved" +// LIMITEXCEEDED = "LimitExceeded" // LIMITEXCEEDED_ADDRESS = "LimitExceeded.Address" // MISSINGPARAMETER = "MissingParameter" +// RESOURCEINUSE = "ResourceInUse" // RESOURCEINUSE_ADDRESS = "ResourceInUse.Address" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" @@ -576,6 +689,7 @@ func NewAssignIpv6CidrBlockRequest() (request *AssignIpv6CidrBlockRequest) { request = &AssignIpv6CidrBlockRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AssignIpv6CidrBlock") @@ -639,6 +753,7 @@ func NewAssignIpv6SubnetCidrBlockRequest() (request *AssignIpv6SubnetCidrBlockRe request = &AssignIpv6SubnetCidrBlockRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AssignIpv6SubnetCidrBlock") @@ -706,6 +821,7 @@ func NewAssignPrivateIpAddressesRequest() (request *AssignPrivateIpAddressesRequ request = &AssignPrivateIpAddressesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AssignPrivateIpAddresses") @@ -799,6 +915,7 @@ func NewAssociateAddressRequest() (request *AssociateAddressRequest) { request = &AssociateAddressRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AssociateAddress") @@ -829,6 +946,7 @@ func NewAssociateAddressResponse() (response *AssociateAddressResponse) { // // 可能返回的错误码: // FAILEDOPERATION_ADDRESSENIINFONOTFOUND = "FailedOperation.AddressEniInfoNotFound" +// FAILEDOPERATION_TASKFAILED = "FailedOperation.TaskFailed" // INVALIDACCOUNT_NOTSUPPORTED = "InvalidAccount.NotSupported" // INVALIDADDRESSID_BLOCKED = "InvalidAddressId.Blocked" // INVALIDADDRESSID_NOTFOUND = "InvalidAddressId.NotFound" @@ -855,6 +973,8 @@ func NewAssociateAddressResponse() (response *AssociateAddressResponse) { // INVALIDPRIVATEIPADDRESS_ALREADYBINDEIP = "InvalidPrivateIpAddress.AlreadyBindEip" // LIMITEXCEEDED_INSTANCEADDRESSQUOTA = "LimitExceeded.InstanceAddressQuota" // MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED_ADDRESSINARREARS = "OperationDenied.AddressInArrears" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" // UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" // UNSUPPORTEDOPERATION_INCORRECTADDRESSRESOURCETYPE = "UnsupportedOperation.IncorrectAddressResourceType" @@ -883,6 +1003,7 @@ func (c *Client) AssociateAddress(request *AssociateAddressRequest) (response *A // // 可能返回的错误码: // FAILEDOPERATION_ADDRESSENIINFONOTFOUND = "FailedOperation.AddressEniInfoNotFound" +// FAILEDOPERATION_TASKFAILED = "FailedOperation.TaskFailed" // INVALIDACCOUNT_NOTSUPPORTED = "InvalidAccount.NotSupported" // INVALIDADDRESSID_BLOCKED = "InvalidAddressId.Blocked" // INVALIDADDRESSID_NOTFOUND = "InvalidAddressId.NotFound" @@ -909,6 +1030,8 @@ func (c *Client) AssociateAddress(request *AssociateAddressRequest) (response *A // INVALIDPRIVATEIPADDRESS_ALREADYBINDEIP = "InvalidPrivateIpAddress.AlreadyBindEip" // LIMITEXCEEDED_INSTANCEADDRESSQUOTA = "LimitExceeded.InstanceAddressQuota" // MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED_ADDRESSINARREARS = "OperationDenied.AddressInArrears" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" // UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" // UNSUPPORTEDOPERATION_INCORRECTADDRESSRESOURCETYPE = "UnsupportedOperation.IncorrectAddressResourceType" @@ -936,6 +1059,7 @@ func NewAssociateDhcpIpWithAddressIpRequest() (request *AssociateDhcpIpWithAddre request = &AssociateDhcpIpWithAddressIpRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AssociateDhcpIpWithAddressIp") @@ -961,6 +1085,7 @@ func NewAssociateDhcpIpWithAddressIpResponse() (response *AssociateDhcpIpWithAdd // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_BINDEIP = "UnsupportedOperation.BindEIP" +// UNSUPPORTEDOPERATION_UNSUPPORTEDBINDLOCALZONEEIP = "UnsupportedOperation.UnsupportedBindLocalZoneEIP" func (c *Client) AssociateDhcpIpWithAddressIp(request *AssociateDhcpIpWithAddressIpRequest) (response *AssociateDhcpIpWithAddressIpResponse, err error) { return c.AssociateDhcpIpWithAddressIpWithContext(context.Background(), request) } @@ -977,6 +1102,7 @@ func (c *Client) AssociateDhcpIpWithAddressIp(request *AssociateDhcpIpWithAddres // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_BINDEIP = "UnsupportedOperation.BindEIP" +// UNSUPPORTEDOPERATION_UNSUPPORTEDBINDLOCALZONEEIP = "UnsupportedOperation.UnsupportedBindLocalZoneEIP" func (c *Client) AssociateDhcpIpWithAddressIpWithContext(ctx context.Context, request *AssociateDhcpIpWithAddressIpRequest) (response *AssociateDhcpIpWithAddressIpResponse, err error) { if request == nil { request = NewAssociateDhcpIpWithAddressIpRequest() @@ -997,6 +1123,7 @@ func NewAssociateDirectConnectGatewayNatGatewayRequest() (request *AssociateDire request = &AssociateDirectConnectGatewayNatGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AssociateDirectConnectGatewayNatGateway") @@ -1056,6 +1183,7 @@ func NewAssociateNatGatewayAddressRequest() (request *AssociateNatGatewayAddress request = &AssociateNatGatewayAddressRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AssociateNatGatewayAddress") @@ -1127,6 +1255,7 @@ func NewAssociateNetworkAclSubnetsRequest() (request *AssociateNetworkAclSubnets request = &AssociateNetworkAclSubnetsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AssociateNetworkAclSubnets") @@ -1182,6 +1311,7 @@ func NewAssociateNetworkInterfaceSecurityGroupsRequest() (request *AssociateNetw request = &AssociateNetworkInterfaceSecurityGroupsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AssociateNetworkInterfaceSecurityGroups") @@ -1237,6 +1367,7 @@ func NewAttachCcnInstancesRequest() (request *AttachCcnInstancesRequest) { request = &AttachCcnInstancesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AttachCcnInstances") @@ -1326,6 +1457,7 @@ func NewAttachClassicLinkVpcRequest() (request *AttachClassicLinkVpcRequest) { request = &AttachClassicLinkVpcRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AttachClassicLinkVpc") @@ -1401,6 +1533,7 @@ func NewAttachNetworkInterfaceRequest() (request *AttachNetworkInterfaceRequest) request = &AttachNetworkInterfaceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AttachNetworkInterface") @@ -1492,6 +1625,7 @@ func NewAuditCrossBorderComplianceRequest() (request *AuditCrossBorderCompliance request = &AuditCrossBorderComplianceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "AuditCrossBorderCompliance") @@ -1549,6 +1683,7 @@ func NewCheckAssistantCidrRequest() (request *CheckAssistantCidrRequest) { request = &CheckAssistantCidrRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CheckAssistantCidr") @@ -1620,6 +1755,7 @@ func NewCheckDefaultSubnetRequest() (request *CheckDefaultSubnetRequest) { request = &CheckDefaultSubnetRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CheckDefaultSubnet") @@ -1669,6 +1805,7 @@ func NewCheckNetDetectStateRequest() (request *CheckNetDetectStateRequest) { request = &CheckNetDetectStateRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CheckNetDetectState") @@ -1746,6 +1883,7 @@ func NewCloneSecurityGroupRequest() (request *CloneSecurityGroupRequest) { request = &CloneSecurityGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CloneSecurityGroup") @@ -1801,6 +1939,7 @@ func NewCreateAddressTemplateRequest() (request *CreateAddressTemplateRequest) { request = &CreateAddressTemplateRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateAddressTemplate") @@ -1821,6 +1960,7 @@ func NewCreateAddressTemplateResponse() (response *CreateAddressTemplateResponse // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" +// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" @@ -1835,6 +1975,7 @@ func (c *Client) CreateAddressTemplate(request *CreateAddressTemplateRequest) (r // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" +// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" @@ -1858,6 +1999,7 @@ func NewCreateAddressTemplateGroupRequest() (request *CreateAddressTemplateGroup request = &CreateAddressTemplateGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateAddressTemplateGroup") @@ -1911,6 +2053,7 @@ func NewCreateAndAttachNetworkInterfaceRequest() (request *CreateAndAttachNetwor request = &CreateAndAttachNetworkInterfaceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateAndAttachNetworkInterface") @@ -2008,6 +2151,7 @@ func NewCreateAssistantCidrRequest() (request *CreateAssistantCidrRequest) { request = &CreateAssistantCidrRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateAssistantCidr") @@ -2032,6 +2176,7 @@ func NewCreateAssistantCidrResponse() (response *CreateAssistantCidrResponse) { // INVALIDPARAMETERVALUE_SUBNETCONFLICT = "InvalidParameterValue.SubnetConflict" // INVALIDPARAMETERVALUE_SUBNETOVERLAPASSISTCIDR = "InvalidParameterValue.SubnetOverlapAssistCidr" // INVALIDPARAMETERVALUE_SUBNETRANGE = "InvalidParameterValue.SubnetRange" +// INVALIDPARAMETERVALUE_VPCCIDRCONFLICT = "InvalidParameterValue.VpcCidrConflict" // LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) CreateAssistantCidr(request *CreateAssistantCidrRequest) (response *CreateAssistantCidrResponse, err error) { @@ -2049,6 +2194,7 @@ func (c *Client) CreateAssistantCidr(request *CreateAssistantCidrRequest) (respo // INVALIDPARAMETERVALUE_SUBNETCONFLICT = "InvalidParameterValue.SubnetConflict" // INVALIDPARAMETERVALUE_SUBNETOVERLAPASSISTCIDR = "InvalidParameterValue.SubnetOverlapAssistCidr" // INVALIDPARAMETERVALUE_SUBNETRANGE = "InvalidParameterValue.SubnetRange" +// INVALIDPARAMETERVALUE_VPCCIDRCONFLICT = "InvalidParameterValue.VpcCidrConflict" // LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) CreateAssistantCidrWithContext(ctx context.Context, request *CreateAssistantCidrRequest) (response *CreateAssistantCidrResponse, err error) { @@ -2071,6 +2217,7 @@ func NewCreateBandwidthPackageRequest() (request *CreateBandwidthPackageRequest) request = &CreateBandwidthPackageRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateBandwidthPackage") @@ -2138,6 +2285,7 @@ func NewCreateCcnRequest() (request *CreateCcnRequest) { request = &CreateCcnRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateCcn") @@ -2163,12 +2311,34 @@ func NewCreateCcnResponse() (response *CreateCcnResponse) { // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // MISSINGPARAMETER = "MissingParameter" // UNAUTHORIZEDOPERATION_NOREALNAMEAUTHENTICATION = "UnauthorizedOperation.NoRealNameAuthentication" // UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_INSUFFICIENTFUNDS = "UnsupportedOperation.InsufficientFunds" // UNSUPPORTEDOPERATION_PREPAIDCCNONLYSUPPORTINTERREGIONLIMIT = "UnsupportedOperation.PrepaidCcnOnlySupportInterRegionLimit" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" // UNSUPPORTEDOPERATION_USERANDCCNCHARGETYPENOTMATCH = "UnsupportedOperation.UserAndCcnChargeTypeNotMatch" func (c *Client) CreateCcn(request *CreateCcnRequest) (response *CreateCcnResponse, err error) { return c.CreateCcnWithContext(context.Background(), request) @@ -2186,12 +2356,34 @@ func (c *Client) CreateCcn(request *CreateCcnRequest) (response *CreateCcnRespon // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // MISSINGPARAMETER = "MissingParameter" // UNAUTHORIZEDOPERATION_NOREALNAMEAUTHENTICATION = "UnauthorizedOperation.NoRealNameAuthentication" // UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_INSUFFICIENTFUNDS = "UnsupportedOperation.InsufficientFunds" // UNSUPPORTEDOPERATION_PREPAIDCCNONLYSUPPORTINTERREGIONLIMIT = "UnsupportedOperation.PrepaidCcnOnlySupportInterRegionLimit" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" // UNSUPPORTEDOPERATION_USERANDCCNCHARGETYPENOTMATCH = "UnsupportedOperation.UserAndCcnChargeTypeNotMatch" func (c *Client) CreateCcnWithContext(ctx context.Context, request *CreateCcnRequest) (response *CreateCcnResponse, err error) { if request == nil { @@ -2213,6 +2405,7 @@ func NewCreateCustomerGatewayRequest() (request *CreateCustomerGatewayRequest) { request = &CreateCustomerGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateCustomerGateway") @@ -2231,8 +2424,30 @@ func NewCreateCustomerGatewayResponse() (response *CreateCustomerGatewayResponse // // 可能返回的错误码: // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" // VPCLIMITEXCEEDED = "VpcLimitExceeded" func (c *Client) CreateCustomerGateway(request *CreateCustomerGatewayRequest) (response *CreateCustomerGatewayResponse, err error) { return c.CreateCustomerGatewayWithContext(context.Background(), request) @@ -2243,8 +2458,30 @@ func (c *Client) CreateCustomerGateway(request *CreateCustomerGatewayRequest) (r // // 可能返回的错误码: // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" // VPCLIMITEXCEEDED = "VpcLimitExceeded" func (c *Client) CreateCustomerGatewayWithContext(ctx context.Context, request *CreateCustomerGatewayRequest) (response *CreateCustomerGatewayResponse, err error) { if request == nil { @@ -2266,6 +2503,7 @@ func NewCreateDefaultSecurityGroupRequest() (request *CreateDefaultSecurityGroup request = &CreateDefaultSecurityGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateDefaultSecurityGroup") @@ -2329,6 +2567,7 @@ func NewCreateDefaultVpcRequest() (request *CreateDefaultVpcRequest) { request = &CreateDefaultVpcRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateDefaultVpc") @@ -2414,6 +2653,7 @@ func NewCreateDhcpIpRequest() (request *CreateDhcpIpRequest) { request = &CreateDhcpIpRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateDhcpIp") @@ -2475,6 +2715,7 @@ func NewCreateDirectConnectGatewayRequest() (request *CreateDirectConnectGateway request = &CreateDirectConnectGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateDirectConnectGateway") @@ -2496,6 +2737,7 @@ func NewCreateDirectConnectGatewayResponse() (response *CreateDirectConnectGatew // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_CCNROUTETABLENOTEXIST = "UnsupportedOperation.CcnRouteTableNotExist" // UNSUPPORTEDOPERATION_UNABLECROSSBORDER = "UnsupportedOperation.UnableCrossBorder" func (c *Client) CreateDirectConnectGateway(request *CreateDirectConnectGatewayRequest) (response *CreateDirectConnectGatewayResponse, err error) { @@ -2510,6 +2752,7 @@ func (c *Client) CreateDirectConnectGateway(request *CreateDirectConnectGatewayR // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_CCNROUTETABLENOTEXIST = "UnsupportedOperation.CcnRouteTableNotExist" // UNSUPPORTEDOPERATION_UNABLECROSSBORDER = "UnsupportedOperation.UnableCrossBorder" func (c *Client) CreateDirectConnectGatewayWithContext(ctx context.Context, request *CreateDirectConnectGatewayRequest) (response *CreateDirectConnectGatewayResponse, err error) { @@ -2532,6 +2775,7 @@ func NewCreateDirectConnectGatewayCcnRoutesRequest() (request *CreateDirectConne request = &CreateDirectConnectGatewayCcnRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateDirectConnectGatewayCcnRoutes") @@ -2583,6 +2827,7 @@ func NewCreateFlowLogRequest() (request *CreateFlowLogRequest) { request = &CreateFlowLogRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateFlowLog") @@ -2605,12 +2850,34 @@ func NewCreateFlowLogResponse() (response *CreateFlowLogResponse) { // INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // RESOURCENOTFOUND = "ResourceNotFound" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNSUPPORTEDOPERATION_FLOWLOGSNOTSUPPORTKOINSTANCEENI = "UnsupportedOperation.FlowLogsNotSupportKoInstanceEni" // UNSUPPORTEDOPERATION_FLOWLOGSNOTSUPPORTNULLINSTANCEENI = "UnsupportedOperation.FlowLogsNotSupportNullInstanceEni" // UNSUPPORTEDOPERATION_ONLYSUPPORTPROFESSIONKAFKA = "UnsupportedOperation.OnlySupportProfessionKafka" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateFlowLog(request *CreateFlowLogRequest) (response *CreateFlowLogResponse, err error) { return c.CreateFlowLogWithContext(context.Background(), request) } @@ -2624,12 +2891,34 @@ func (c *Client) CreateFlowLog(request *CreateFlowLogRequest) (response *CreateF // INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // RESOURCENOTFOUND = "ResourceNotFound" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNSUPPORTEDOPERATION_FLOWLOGSNOTSUPPORTKOINSTANCEENI = "UnsupportedOperation.FlowLogsNotSupportKoInstanceEni" // UNSUPPORTEDOPERATION_FLOWLOGSNOTSUPPORTNULLINSTANCEENI = "UnsupportedOperation.FlowLogsNotSupportNullInstanceEni" // UNSUPPORTEDOPERATION_ONLYSUPPORTPROFESSIONKAFKA = "UnsupportedOperation.OnlySupportProfessionKafka" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateFlowLogWithContext(ctx context.Context, request *CreateFlowLogRequest) (response *CreateFlowLogResponse, err error) { if request == nil { request = NewCreateFlowLogRequest() @@ -2650,6 +2939,7 @@ func NewCreateHaVipRequest() (request *CreateHaVipRequest) { request = &CreateHaVipRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateHaVip") @@ -2672,8 +2962,11 @@ func NewCreateHaVipResponse() (response *CreateHaVipResponse) { // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // INVALIDPARAMETERVALUE_INVALIDBUSINESS = "InvalidParameterValue.InvalidBusiness" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// INVALIDPARAMETERVALUE_RESERVED = "InvalidParameterValue.Reserved" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// RESOURCEINUSE = "ResourceInUse" // RESOURCEINSUFFICIENT = "ResourceInsufficient" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) CreateHaVip(request *CreateHaVipRequest) (response *CreateHaVipResponse, err error) { @@ -2689,8 +2982,11 @@ func (c *Client) CreateHaVip(request *CreateHaVipRequest) (response *CreateHaVip // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // INVALIDPARAMETERVALUE_INVALIDBUSINESS = "InvalidParameterValue.InvalidBusiness" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// INVALIDPARAMETERVALUE_RESERVED = "InvalidParameterValue.Reserved" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// RESOURCEINUSE = "ResourceInUse" // RESOURCEINSUFFICIENT = "ResourceInsufficient" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) CreateHaVipWithContext(ctx context.Context, request *CreateHaVipRequest) (response *CreateHaVipResponse, err error) { @@ -2713,6 +3009,7 @@ func NewCreateIp6TranslatorsRequest() (request *CreateIp6TranslatorsRequest) { request = &CreateIp6TranslatorsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateIp6Translators") @@ -2766,6 +3063,7 @@ func NewCreateLocalGatewayRequest() (request *CreateLocalGatewayRequest) { request = &CreateLocalGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateLocalGateway") @@ -2825,6 +3123,7 @@ func NewCreateNatGatewayRequest() (request *CreateNatGatewayRequest) { request = &CreateNatGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateNatGateway") @@ -2853,6 +3152,18 @@ func NewCreateNatGatewayResponse() (response *CreateNatGatewayResponse) { // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // INVALIDVPCID_MALFORMED = "InvalidVpcId.Malformed" // INVALIDVPCID_NOTFOUND = "InvalidVpcId.NotFound" @@ -2861,6 +3172,12 @@ func NewCreateNatGatewayResponse() (response *CreateNatGatewayResponse) { // LIMITEXCEEDED_NATGATEWAYLIMITEXCEEDED = "LimitExceeded.NatGatewayLimitExceeded" // LIMITEXCEEDED_NATGATEWAYPERVPCLIMITEXCEEDED = "LimitExceeded.NatGatewayPerVpcLimitExceeded" // LIMITEXCEEDED_PUBLICIPADDRESSPERNATGATEWAYLIMITEXCEEDED = "LimitExceeded.PublicIpAddressPerNatGatewayLimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // RESOURCEINUSE_ADDRESS = "ResourceInUse.Address" // RESOURCENOTFOUND = "ResourceNotFound" // UNAUTHORIZEDOPERATION_NOREALNAMEAUTHENTICATION = "UnauthorizedOperation.NoRealNameAuthentication" @@ -2870,6 +3187,10 @@ func NewCreateNatGatewayResponse() (response *CreateNatGatewayResponse) { // UNSUPPORTEDOPERATION_PUBLICIPADDRESSISNOTBGPIP = "UnsupportedOperation.PublicIpAddressIsNotBGPIp" // UNSUPPORTEDOPERATION_PUBLICIPADDRESSISNOTEXISTED = "UnsupportedOperation.PublicIpAddressIsNotExisted" // UNSUPPORTEDOPERATION_PUBLICIPADDRESSNOTBILLEDBYTRAFFIC = "UnsupportedOperation.PublicIpAddressNotBilledByTraffic" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateNatGateway(request *CreateNatGatewayRequest) (response *CreateNatGatewayResponse, err error) { return c.CreateNatGatewayWithContext(context.Background(), request) } @@ -2889,6 +3210,18 @@ func (c *Client) CreateNatGateway(request *CreateNatGatewayRequest) (response *C // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // INVALIDVPCID_MALFORMED = "InvalidVpcId.Malformed" // INVALIDVPCID_NOTFOUND = "InvalidVpcId.NotFound" @@ -2897,6 +3230,12 @@ func (c *Client) CreateNatGateway(request *CreateNatGatewayRequest) (response *C // LIMITEXCEEDED_NATGATEWAYLIMITEXCEEDED = "LimitExceeded.NatGatewayLimitExceeded" // LIMITEXCEEDED_NATGATEWAYPERVPCLIMITEXCEEDED = "LimitExceeded.NatGatewayPerVpcLimitExceeded" // LIMITEXCEEDED_PUBLICIPADDRESSPERNATGATEWAYLIMITEXCEEDED = "LimitExceeded.PublicIpAddressPerNatGatewayLimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // RESOURCEINUSE_ADDRESS = "ResourceInUse.Address" // RESOURCENOTFOUND = "ResourceNotFound" // UNAUTHORIZEDOPERATION_NOREALNAMEAUTHENTICATION = "UnauthorizedOperation.NoRealNameAuthentication" @@ -2906,6 +3245,10 @@ func (c *Client) CreateNatGateway(request *CreateNatGatewayRequest) (response *C // UNSUPPORTEDOPERATION_PUBLICIPADDRESSISNOTBGPIP = "UnsupportedOperation.PublicIpAddressIsNotBGPIp" // UNSUPPORTEDOPERATION_PUBLICIPADDRESSISNOTEXISTED = "UnsupportedOperation.PublicIpAddressIsNotExisted" // UNSUPPORTEDOPERATION_PUBLICIPADDRESSNOTBILLEDBYTRAFFIC = "UnsupportedOperation.PublicIpAddressNotBilledByTraffic" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateNatGatewayWithContext(ctx context.Context, request *CreateNatGatewayRequest) (response *CreateNatGatewayResponse, err error) { if request == nil { request = NewCreateNatGatewayRequest() @@ -2926,6 +3269,7 @@ func NewCreateNatGatewayDestinationIpPortTranslationNatRuleRequest() (request *C request = &CreateNatGatewayDestinationIpPortTranslationNatRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateNatGatewayDestinationIpPortTranslationNatRule") @@ -2952,6 +3296,18 @@ func NewCreateNatGatewayDestinationIpPortTranslationNatRuleResponse() (response // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // INVALIDVPCID_MALFORMED = "InvalidVpcId.Malformed" // INVALIDVPCID_NOTFOUND = "InvalidVpcId.NotFound" @@ -2960,6 +3316,12 @@ func NewCreateNatGatewayDestinationIpPortTranslationNatRuleResponse() (response // LIMITEXCEEDED_NATGATEWAYLIMITEXCEEDED = "LimitExceeded.NatGatewayLimitExceeded" // LIMITEXCEEDED_NATGATEWAYPERVPCLIMITEXCEEDED = "LimitExceeded.NatGatewayPerVpcLimitExceeded" // LIMITEXCEEDED_PUBLICIPADDRESSPERNATGATEWAYLIMITEXCEEDED = "LimitExceeded.PublicIpAddressPerNatGatewayLimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // RESOURCEINUSE_ADDRESS = "ResourceInUse.Address" // RESOURCENOTFOUND = "ResourceNotFound" // UNAUTHORIZEDOPERATION_NOREALNAMEAUTHENTICATION = "UnauthorizedOperation.NoRealNameAuthentication" @@ -2969,6 +3331,10 @@ func NewCreateNatGatewayDestinationIpPortTranslationNatRuleResponse() (response // UNSUPPORTEDOPERATION_PUBLICIPADDRESSISNOTBGPIP = "UnsupportedOperation.PublicIpAddressIsNotBGPIp" // UNSUPPORTEDOPERATION_PUBLICIPADDRESSISNOTEXISTED = "UnsupportedOperation.PublicIpAddressIsNotExisted" // UNSUPPORTEDOPERATION_PUBLICIPADDRESSNOTBILLEDBYTRAFFIC = "UnsupportedOperation.PublicIpAddressNotBilledByTraffic" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateNatGatewayDestinationIpPortTranslationNatRule(request *CreateNatGatewayDestinationIpPortTranslationNatRuleRequest) (response *CreateNatGatewayDestinationIpPortTranslationNatRuleResponse, err error) { return c.CreateNatGatewayDestinationIpPortTranslationNatRuleWithContext(context.Background(), request) } @@ -2986,6 +3352,18 @@ func (c *Client) CreateNatGatewayDestinationIpPortTranslationNatRule(request *Cr // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // INVALIDVPCID_MALFORMED = "InvalidVpcId.Malformed" // INVALIDVPCID_NOTFOUND = "InvalidVpcId.NotFound" @@ -2994,6 +3372,12 @@ func (c *Client) CreateNatGatewayDestinationIpPortTranslationNatRule(request *Cr // LIMITEXCEEDED_NATGATEWAYLIMITEXCEEDED = "LimitExceeded.NatGatewayLimitExceeded" // LIMITEXCEEDED_NATGATEWAYPERVPCLIMITEXCEEDED = "LimitExceeded.NatGatewayPerVpcLimitExceeded" // LIMITEXCEEDED_PUBLICIPADDRESSPERNATGATEWAYLIMITEXCEEDED = "LimitExceeded.PublicIpAddressPerNatGatewayLimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // RESOURCEINUSE_ADDRESS = "ResourceInUse.Address" // RESOURCENOTFOUND = "ResourceNotFound" // UNAUTHORIZEDOPERATION_NOREALNAMEAUTHENTICATION = "UnauthorizedOperation.NoRealNameAuthentication" @@ -3003,6 +3387,10 @@ func (c *Client) CreateNatGatewayDestinationIpPortTranslationNatRule(request *Cr // UNSUPPORTEDOPERATION_PUBLICIPADDRESSISNOTBGPIP = "UnsupportedOperation.PublicIpAddressIsNotBGPIp" // UNSUPPORTEDOPERATION_PUBLICIPADDRESSISNOTEXISTED = "UnsupportedOperation.PublicIpAddressIsNotExisted" // UNSUPPORTEDOPERATION_PUBLICIPADDRESSNOTBILLEDBYTRAFFIC = "UnsupportedOperation.PublicIpAddressNotBilledByTraffic" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateNatGatewayDestinationIpPortTranslationNatRuleWithContext(ctx context.Context, request *CreateNatGatewayDestinationIpPortTranslationNatRuleRequest) (response *CreateNatGatewayDestinationIpPortTranslationNatRuleResponse, err error) { if request == nil { request = NewCreateNatGatewayDestinationIpPortTranslationNatRuleRequest() @@ -3023,6 +3411,7 @@ func NewCreateNatGatewaySourceIpTranslationNatRuleRequest() (request *CreateNatG request = &CreateNatGatewaySourceIpTranslationNatRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateNatGatewaySourceIpTranslationNatRule") @@ -3047,9 +3436,12 @@ func NewCreateNatGatewaySourceIpTranslationNatRuleResponse() (response *CreateNa // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_NATSNATRULEEXISTS = "InvalidParameterValue.NatSnatRuleExists" // LIMITEXCEEDED = "LimitExceeded" +// RESOURCENOTFOUND = "ResourceNotFound" // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION_NATGATEWAYRULEPIPEXISTS = "UnsupportedOperation.NatGatewayRulePipExists" +// UNSUPPORTEDOPERATION_NATGATEWAYSNATPIPNEEDVM = "UnsupportedOperation.NatGatewaySnatPipNeedVm" // UNSUPPORTEDOPERATION_NATGATEWAYTYPENOTSUPPORTSNAT = "UnsupportedOperation.NatGatewayTypeNotSupportSNAT" +// UNSUPPORTEDOPERATION_UNBINDEIP = "UnsupportedOperation.UnbindEIP" func (c *Client) CreateNatGatewaySourceIpTranslationNatRule(request *CreateNatGatewaySourceIpTranslationNatRuleRequest) (response *CreateNatGatewaySourceIpTranslationNatRuleResponse, err error) { return c.CreateNatGatewaySourceIpTranslationNatRuleWithContext(context.Background(), request) } @@ -3065,9 +3457,12 @@ func (c *Client) CreateNatGatewaySourceIpTranslationNatRule(request *CreateNatGa // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_NATSNATRULEEXISTS = "InvalidParameterValue.NatSnatRuleExists" // LIMITEXCEEDED = "LimitExceeded" +// RESOURCENOTFOUND = "ResourceNotFound" // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION_NATGATEWAYRULEPIPEXISTS = "UnsupportedOperation.NatGatewayRulePipExists" +// UNSUPPORTEDOPERATION_NATGATEWAYSNATPIPNEEDVM = "UnsupportedOperation.NatGatewaySnatPipNeedVm" // UNSUPPORTEDOPERATION_NATGATEWAYTYPENOTSUPPORTSNAT = "UnsupportedOperation.NatGatewayTypeNotSupportSNAT" +// UNSUPPORTEDOPERATION_UNBINDEIP = "UnsupportedOperation.UnbindEIP" func (c *Client) CreateNatGatewaySourceIpTranslationNatRuleWithContext(ctx context.Context, request *CreateNatGatewaySourceIpTranslationNatRuleRequest) (response *CreateNatGatewaySourceIpTranslationNatRuleResponse, err error) { if request == nil { request = NewCreateNatGatewaySourceIpTranslationNatRuleRequest() @@ -3088,6 +3483,7 @@ func NewCreateNetDetectRequest() (request *CreateNetDetectRequest) { request = &CreateNetDetectRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateNetDetect") @@ -3165,6 +3561,7 @@ func NewCreateNetworkAclRequest() (request *CreateNetworkAclRequest) { request = &CreateNetworkAclRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateNetworkAcl") @@ -3186,10 +3583,33 @@ func NewCreateNetworkAclResponse() (response *CreateNetworkAclResponse) { // 可能返回的错误码: // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // RESOURCENOTFOUND = "ResourceNotFound" +// UNKNOWNPARAMETER_WITHGUESS = "UnknownParameter.WithGuess" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateNetworkAcl(request *CreateNetworkAclRequest) (response *CreateNetworkAclResponse, err error) { return c.CreateNetworkAclWithContext(context.Background(), request) } @@ -3202,10 +3622,33 @@ func (c *Client) CreateNetworkAcl(request *CreateNetworkAclRequest) (response *C // 可能返回的错误码: // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // RESOURCENOTFOUND = "ResourceNotFound" +// UNKNOWNPARAMETER_WITHGUESS = "UnknownParameter.WithGuess" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateNetworkAclWithContext(ctx context.Context, request *CreateNetworkAclRequest) (response *CreateNetworkAclResponse, err error) { if request == nil { request = NewCreateNetworkAclRequest() @@ -3222,10 +3665,73 @@ func (c *Client) CreateNetworkAclWithContext(ctx context.Context, request *Creat return } +func NewCreateNetworkAclQuintupleEntriesRequest() (request *CreateNetworkAclQuintupleEntriesRequest) { + request = &CreateNetworkAclQuintupleEntriesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("vpc", APIVersion, "CreateNetworkAclQuintupleEntries") + + + return +} + +func NewCreateNetworkAclQuintupleEntriesResponse() (response *CreateNetworkAclQuintupleEntriesResponse) { + response = &CreateNetworkAclQuintupleEntriesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateNetworkAclQuintupleEntries +// 本接口(CreateNetworkAclQuintupleEntries)用于增量网络ACL五元组的入站规则和出站规则。 +// +// 可能返回的错误码: +// INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" +func (c *Client) CreateNetworkAclQuintupleEntries(request *CreateNetworkAclQuintupleEntriesRequest) (response *CreateNetworkAclQuintupleEntriesResponse, err error) { + return c.CreateNetworkAclQuintupleEntriesWithContext(context.Background(), request) +} + +// CreateNetworkAclQuintupleEntries +// 本接口(CreateNetworkAclQuintupleEntries)用于增量网络ACL五元组的入站规则和出站规则。 +// +// 可能返回的错误码: +// INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" +func (c *Client) CreateNetworkAclQuintupleEntriesWithContext(ctx context.Context, request *CreateNetworkAclQuintupleEntriesRequest) (response *CreateNetworkAclQuintupleEntriesResponse, err error) { + if request == nil { + request = NewCreateNetworkAclQuintupleEntriesRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateNetworkAclQuintupleEntries require credential") + } + + request.SetContext(ctx) + + response = NewCreateNetworkAclQuintupleEntriesResponse() + err = c.Send(request, response) + return +} + func NewCreateNetworkInterfaceRequest() (request *CreateNetworkInterfaceRequest) { request = &CreateNetworkInterfaceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateNetworkInterface") @@ -3264,6 +3770,7 @@ func NewCreateNetworkInterfaceResponse() (response *CreateNetworkInterfaceRespon // INVALIDPARAMETERVALUE_RESERVED = "InvalidParameterValue.Reserved" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" // MISSINGPARAMETER = "MissingParameter" // RESOURCEINUSE = "ResourceInUse" // RESOURCEINSUFFICIENT = "ResourceInsufficient" @@ -3299,6 +3806,7 @@ func (c *Client) CreateNetworkInterface(request *CreateNetworkInterfaceRequest) // INVALIDPARAMETERVALUE_RESERVED = "InvalidParameterValue.Reserved" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" // MISSINGPARAMETER = "MissingParameter" // RESOURCEINUSE = "ResourceInUse" // RESOURCEINSUFFICIENT = "ResourceInsufficient" @@ -3325,6 +3833,7 @@ func NewCreateRouteTableRequest() (request *CreateRouteTableRequest) { request = &CreateRouteTableRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateRouteTable") @@ -3351,6 +3860,7 @@ func NewCreateRouteTableResponse() (response *CreateRouteTableResponse) { // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) CreateRouteTable(request *CreateRouteTableRequest) (response *CreateRouteTableResponse, err error) { @@ -3370,6 +3880,7 @@ func (c *Client) CreateRouteTable(request *CreateRouteTableRequest) (response *C // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) CreateRouteTableWithContext(ctx context.Context, request *CreateRouteTableRequest) (response *CreateRouteTableResponse, err error) { @@ -3392,6 +3903,7 @@ func NewCreateRoutesRequest() (request *CreateRoutesRequest) { request = &CreateRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateRoutes") @@ -3473,6 +3985,7 @@ func NewCreateSecurityGroupRequest() (request *CreateSecurityGroupRequest) { request = &CreateSecurityGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateSecurityGroup") @@ -3497,12 +4010,35 @@ func NewCreateSecurityGroupResponse() (response *CreateSecurityGroupResponse) { // // 可能返回的错误码: // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateSecurityGroup(request *CreateSecurityGroupRequest) (response *CreateSecurityGroupResponse, err error) { return c.CreateSecurityGroupWithContext(context.Background(), request) } @@ -3518,12 +4054,35 @@ func (c *Client) CreateSecurityGroup(request *CreateSecurityGroupRequest) (respo // // 可能返回的错误码: // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateSecurityGroupWithContext(ctx context.Context, request *CreateSecurityGroupRequest) (response *CreateSecurityGroupResponse, err error) { if request == nil { request = NewCreateSecurityGroupRequest() @@ -3544,6 +4103,7 @@ func NewCreateSecurityGroupPoliciesRequest() (request *CreateSecurityGroupPolici request = &CreateSecurityGroupPoliciesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateSecurityGroupPolicies") @@ -3584,7 +4144,7 @@ func NewCreateSecurityGroupPoliciesResponse() (response *CreateSecurityGroupPoli // //
  • CidrBlock, Ipv6CidrBlock, SecurityGroupId, AddressTemplate 四者是排他关系,不允许同时输入,Protocol + Port 和 ServiceTemplate 二者是排他关系,不允许同时输入。
  • // -//
  • 一次请求中只能创建单个方向的规则, 如果需要指定索引(PolicyIndex)参数, 多条规则的索引必须一致。
  • +//
  • 一次请求中只能创建单个方向的规则, 如果需要指定索引(PolicyIndex)参数, 多条规则的索引必须一致。如想在规则最前面插入一条,则填0即可,如果想在最后追加,该字段可不填。
  • // // // @@ -3633,7 +4193,7 @@ func (c *Client) CreateSecurityGroupPolicies(request *CreateSecurityGroupPolicie // //
  • CidrBlock, Ipv6CidrBlock, SecurityGroupId, AddressTemplate 四者是排他关系,不允许同时输入,Protocol + Port 和 ServiceTemplate 二者是排他关系,不允许同时输入。
  • // -//
  • 一次请求中只能创建单个方向的规则, 如果需要指定索引(PolicyIndex)参数, 多条规则的索引必须一致。
  • +//
  • 一次请求中只能创建单个方向的规则, 如果需要指定索引(PolicyIndex)参数, 多条规则的索引必须一致。如想在规则最前面插入一条,则填0即可,如果想在最后追加,该字段可不填。
  • // // // @@ -3671,6 +4231,7 @@ func NewCreateSecurityGroupWithPoliciesRequest() (request *CreateSecurityGroupWi request = &CreateSecurityGroupWithPoliciesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateSecurityGroupWithPolicies") @@ -3716,6 +4277,7 @@ func NewCreateSecurityGroupWithPoliciesResponse() (response *CreateSecurityGroup // 可能返回的错误码: // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETERVALUE = "InvalidParameterValue" +// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" @@ -3757,6 +4319,7 @@ func (c *Client) CreateSecurityGroupWithPolicies(request *CreateSecurityGroupWit // 可能返回的错误码: // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETERVALUE = "InvalidParameterValue" +// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" @@ -3782,6 +4345,7 @@ func NewCreateServiceTemplateRequest() (request *CreateServiceTemplateRequest) { request = &CreateServiceTemplateRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateServiceTemplate") @@ -3833,6 +4397,7 @@ func NewCreateServiceTemplateGroupRequest() (request *CreateServiceTemplateGroup request = &CreateServiceTemplateGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateServiceTemplateGroup") @@ -3888,6 +4453,7 @@ func NewCreateSubnetRequest() (request *CreateSubnetRequest) { request = &CreateSubnetRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateSubnet") @@ -3923,14 +4489,39 @@ func NewCreateSubnetResponse() (response *CreateSubnetResponse) { // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_SUBNETCONFLICT = "InvalidParameterValue.SubnetConflict" +// INVALIDPARAMETERVALUE_SUBNETOVERLAP = "InvalidParameterValue.SubnetOverlap" // INVALIDPARAMETERVALUE_SUBNETRANGE = "InvalidParameterValue.SubnetRange" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // INVALIDPARAMETERVALUE_ZONECONFLICT = "InvalidParameterValue.ZoneConflict" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" // UNSUPPORTEDOPERATION_DCGATEWAYSNOTFOUNDINVPC = "UnsupportedOperation.DcGatewaysNotFoundInVpc" +// UNSUPPORTEDOPERATION_RECORDEXISTS = "UnsupportedOperation.RecordExists" +// UNSUPPORTEDOPERATION_RECORDNOTEXISTS = "UnsupportedOperation.RecordNotExists" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateSubnet(request *CreateSubnetRequest) (response *CreateSubnetResponse, err error) { return c.CreateSubnetWithContext(context.Background(), request) } @@ -3957,14 +4548,39 @@ func (c *Client) CreateSubnet(request *CreateSubnetRequest) (response *CreateSub // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_SUBNETCONFLICT = "InvalidParameterValue.SubnetConflict" +// INVALIDPARAMETERVALUE_SUBNETOVERLAP = "InvalidParameterValue.SubnetOverlap" // INVALIDPARAMETERVALUE_SUBNETRANGE = "InvalidParameterValue.SubnetRange" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // INVALIDPARAMETERVALUE_ZONECONFLICT = "InvalidParameterValue.ZoneConflict" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" // UNSUPPORTEDOPERATION_DCGATEWAYSNOTFOUNDINVPC = "UnsupportedOperation.DcGatewaysNotFoundInVpc" +// UNSUPPORTEDOPERATION_RECORDEXISTS = "UnsupportedOperation.RecordExists" +// UNSUPPORTEDOPERATION_RECORDNOTEXISTS = "UnsupportedOperation.RecordNotExists" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateSubnetWithContext(ctx context.Context, request *CreateSubnetRequest) (response *CreateSubnetResponse, err error) { if request == nil { request = NewCreateSubnetRequest() @@ -3985,6 +4601,7 @@ func NewCreateSubnetsRequest() (request *CreateSubnetsRequest) { request = &CreateSubnetsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateSubnets") @@ -4019,13 +4636,35 @@ func NewCreateSubnetsResponse() (response *CreateSubnetsResponse) { // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_SUBNETCONFLICT = "InvalidParameterValue.SubnetConflict" // INVALIDPARAMETERVALUE_SUBNETRANGE = "InvalidParameterValue.SubnetRange" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // INVALIDPARAMETERVALUE_ZONECONFLICT = "InvalidParameterValue.ZoneConflict" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" // UNSUPPORTEDOPERATION_DCGATEWAYSNOTFOUNDINVPC = "UnsupportedOperation.DcGatewaysNotFoundInVpc" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateSubnets(request *CreateSubnetsRequest) (response *CreateSubnetsResponse, err error) { return c.CreateSubnetsWithContext(context.Background(), request) } @@ -4051,13 +4690,35 @@ func (c *Client) CreateSubnets(request *CreateSubnetsRequest) (response *CreateS // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_SUBNETCONFLICT = "InvalidParameterValue.SubnetConflict" // INVALIDPARAMETERVALUE_SUBNETRANGE = "InvalidParameterValue.SubnetRange" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // INVALIDPARAMETERVALUE_ZONECONFLICT = "InvalidParameterValue.ZoneConflict" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" // UNSUPPORTEDOPERATION_DCGATEWAYSNOTFOUNDINVPC = "UnsupportedOperation.DcGatewaysNotFoundInVpc" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateSubnetsWithContext(ctx context.Context, request *CreateSubnetsRequest) (response *CreateSubnetsResponse, err error) { if request == nil { request = NewCreateSubnetsRequest() @@ -4078,6 +4739,7 @@ func NewCreateVpcRequest() (request *CreateVpcRequest) { request = &CreateVpcRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateVpc") @@ -4104,11 +4766,35 @@ func NewCreateVpcResponse() (response *CreateVpcResponse) { // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // MISSINGPARAMETER = "MissingParameter" // RESOURCEINSUFFICIENT = "ResourceInsufficient" // RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNSUPPORTEDOPERATION_RECORDEXISTS = "UnsupportedOperation.RecordExists" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateVpc(request *CreateVpcRequest) (response *CreateVpcResponse, err error) { return c.CreateVpcWithContext(context.Background(), request) } @@ -4126,11 +4812,35 @@ func (c *Client) CreateVpc(request *CreateVpcRequest) (response *CreateVpcRespon // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // MISSINGPARAMETER = "MissingParameter" // RESOURCEINSUFFICIENT = "ResourceInsufficient" // RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNSUPPORTEDOPERATION_RECORDEXISTS = "UnsupportedOperation.RecordExists" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateVpcWithContext(ctx context.Context, request *CreateVpcRequest) (response *CreateVpcResponse, err error) { if request == nil { request = NewCreateVpcRequest() @@ -4151,6 +4861,7 @@ func NewCreateVpcEndPointRequest() (request *CreateVpcEndPointRequest) { request = &CreateVpcEndPointRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateVpcEndPoint") @@ -4181,6 +4892,7 @@ func NewCreateVpcEndPointResponse() (response *CreateVpcEndPointResponse) { // RESOURCEUNAVAILABLE = "ResourceUnavailable" // RESOURCEUNAVAILABLE_SERVICEWHITELISTNOTADDED = "ResourceUnavailable.ServiceWhiteListNotAdded" // UNSUPPORTEDOPERATION_ENDPOINTSERVICE = "UnsupportedOperation.EndPointService" +// UNSUPPORTEDOPERATION_INSUFFICIENTFUNDS = "UnsupportedOperation.InsufficientFunds" // UNSUPPORTEDOPERATION_SPECIALENDPOINTSERVICE = "UnsupportedOperation.SpecialEndPointService" // UNSUPPORTEDOPERATION_VPCMISMATCH = "UnsupportedOperation.VpcMismatch" func (c *Client) CreateVpcEndPoint(request *CreateVpcEndPointRequest) (response *CreateVpcEndPointResponse, err error) { @@ -4204,6 +4916,7 @@ func (c *Client) CreateVpcEndPoint(request *CreateVpcEndPointRequest) (response // RESOURCEUNAVAILABLE = "ResourceUnavailable" // RESOURCEUNAVAILABLE_SERVICEWHITELISTNOTADDED = "ResourceUnavailable.ServiceWhiteListNotAdded" // UNSUPPORTEDOPERATION_ENDPOINTSERVICE = "UnsupportedOperation.EndPointService" +// UNSUPPORTEDOPERATION_INSUFFICIENTFUNDS = "UnsupportedOperation.InsufficientFunds" // UNSUPPORTEDOPERATION_SPECIALENDPOINTSERVICE = "UnsupportedOperation.SpecialEndPointService" // UNSUPPORTEDOPERATION_VPCMISMATCH = "UnsupportedOperation.VpcMismatch" func (c *Client) CreateVpcEndPointWithContext(ctx context.Context, request *CreateVpcEndPointRequest) (response *CreateVpcEndPointResponse, err error) { @@ -4226,6 +4939,7 @@ func NewCreateVpcEndPointServiceRequest() (request *CreateVpcEndPointServiceRequ request = &CreateVpcEndPointServiceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateVpcEndPointService") @@ -4289,6 +5003,7 @@ func NewCreateVpcEndPointServiceWhiteListRequest() (request *CreateVpcEndPointSe request = &CreateVpcEndPointServiceWhiteListRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateVpcEndPointServiceWhiteList") @@ -4344,6 +5059,7 @@ func NewCreateVpnConnectionRequest() (request *CreateVpnConnectionRequest) { request = &CreateVpnConnectionRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateVpnConnection") @@ -4367,15 +5083,37 @@ func NewCreateVpnConnectionResponse() (response *CreateVpnConnectionResponse) { // 可能返回的错误码: // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // INVALIDPARAMETERVALUE_VPCCIDRCONFLICT = "InvalidParameterValue.VpcCidrConflict" // INVALIDPARAMETERVALUE_VPNCONNCIDRCONFLICT = "InvalidParameterValue.VpnConnCidrConflict" // INVALIDPARAMETERVALUE_VPNCONNHEALTHCHECKIPCONFLICT = "InvalidParameterValue.VpnConnHealthCheckIpConflict" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_INVALIDSTATE = "UnsupportedOperation.InvalidState" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateVpnConnection(request *CreateVpnConnectionRequest) (response *CreateVpnConnectionResponse, err error) { return c.CreateVpnConnectionWithContext(context.Background(), request) } @@ -4390,15 +5128,37 @@ func (c *Client) CreateVpnConnection(request *CreateVpnConnectionRequest) (respo // 可能返回的错误码: // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" +// INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" +// INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" +// INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" +// INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" +// INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" +// INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" +// INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" +// INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" +// INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" +// INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" +// INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // INVALIDPARAMETERVALUE_VPCCIDRCONFLICT = "InvalidParameterValue.VpcCidrConflict" // INVALIDPARAMETERVALUE_VPNCONNCIDRCONFLICT = "InvalidParameterValue.VpnConnCidrConflict" // INVALIDPARAMETERVALUE_VPNCONNHEALTHCHECKIPCONFLICT = "InvalidParameterValue.VpnConnHealthCheckIpConflict" // LIMITEXCEEDED = "LimitExceeded" +// LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" +// LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" +// LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" +// LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_INVALIDSTATE = "UnsupportedOperation.InvalidState" +// UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" +// UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" +// UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" +// UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" func (c *Client) CreateVpnConnectionWithContext(ctx context.Context, request *CreateVpnConnectionRequest) (response *CreateVpnConnectionResponse, err error) { if request == nil { request = NewCreateVpnConnectionRequest() @@ -4419,6 +5179,7 @@ func NewCreateVpnGatewayRequest() (request *CreateVpnGatewayRequest) { request = &CreateVpnGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateVpnGateway") @@ -4484,6 +5245,7 @@ func NewCreateVpnGatewayRoutesRequest() (request *CreateVpnGatewayRoutesRequest) request = &CreateVpnGatewayRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateVpnGatewayRoutes") @@ -4545,6 +5307,7 @@ func NewCreateVpnGatewaySslClientRequest() (request *CreateVpnGatewaySslClientRe request = &CreateVpnGatewaySslClientRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateVpnGatewaySslClient") @@ -4598,6 +5361,7 @@ func NewCreateVpnGatewaySslServerRequest() (request *CreateVpnGatewaySslServerRe request = &CreateVpnGatewaySslServerRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "CreateVpnGatewaySslServer") @@ -4615,6 +5379,7 @@ func NewCreateVpnGatewaySslServerResponse() (response *CreateVpnGatewaySslServer // 创建 Server端 // // 可能返回的错误码: +// INVALIDPARAMETERVALUE_CIDRNOTINSSLVPNVPC = "InvalidParameterValue.CidrNotInSslVpnVpc" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // INVALIDPARAMETERVALUE_VPCCIDRCONFLICT = "InvalidParameterValue.VpcCidrConflict" // LIMITEXCEEDED = "LimitExceeded" @@ -4628,6 +5393,7 @@ func (c *Client) CreateVpnGatewaySslServer(request *CreateVpnGatewaySslServerReq // 创建 Server端 // // 可能返回的错误码: +// INVALIDPARAMETERVALUE_CIDRNOTINSSLVPNVPC = "InvalidParameterValue.CidrNotInSslVpnVpc" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // INVALIDPARAMETERVALUE_VPCCIDRCONFLICT = "InvalidParameterValue.VpcCidrConflict" // LIMITEXCEEDED = "LimitExceeded" @@ -4653,6 +5419,7 @@ func NewDeleteAddressTemplateRequest() (request *DeleteAddressTemplateRequest) { request = &DeleteAddressTemplateRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteAddressTemplate") @@ -4704,6 +5471,7 @@ func NewDeleteAddressTemplateGroupRequest() (request *DeleteAddressTemplateGroup request = &DeleteAddressTemplateGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteAddressTemplateGroup") @@ -4755,6 +5523,7 @@ func NewDeleteAssistantCidrRequest() (request *DeleteAssistantCidrRequest) { request = &DeleteAssistantCidrRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteAssistantCidr") @@ -4812,6 +5581,7 @@ func NewDeleteBandwidthPackageRequest() (request *DeleteBandwidthPackageRequest) request = &DeleteBandwidthPackageRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteBandwidthPackage") @@ -4871,6 +5641,7 @@ func NewDeleteCcnRequest() (request *DeleteCcnRequest) { request = &DeleteCcnRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteCcn") @@ -4897,6 +5668,7 @@ func NewDeleteCcnResponse() (response *DeleteCcnResponse) { // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" // UNSUPPORTEDOPERATION_BANDWIDTHNOTEXPIRED = "UnsupportedOperation.BandwidthNotExpired" // UNSUPPORTEDOPERATION_CCNHASFLOWLOG = "UnsupportedOperation.CcnHasFlowLog" func (c *Client) DeleteCcn(request *DeleteCcnRequest) (response *DeleteCcnResponse, err error) { @@ -4916,6 +5688,7 @@ func (c *Client) DeleteCcn(request *DeleteCcnRequest) (response *DeleteCcnRespon // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" // UNSUPPORTEDOPERATION_BANDWIDTHNOTEXPIRED = "UnsupportedOperation.BandwidthNotExpired" // UNSUPPORTEDOPERATION_CCNHASFLOWLOG = "UnsupportedOperation.CcnHasFlowLog" func (c *Client) DeleteCcnWithContext(ctx context.Context, request *DeleteCcnRequest) (response *DeleteCcnResponse, err error) { @@ -4938,6 +5711,7 @@ func NewDeleteCustomerGatewayRequest() (request *DeleteCustomerGatewayRequest) { request = &DeleteCustomerGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteCustomerGateway") @@ -4989,6 +5763,7 @@ func NewDeleteDhcpIpRequest() (request *DeleteDhcpIpRequest) { request = &DeleteDhcpIpRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteDhcpIp") @@ -5050,6 +5825,7 @@ func NewDeleteDirectConnectGatewayRequest() (request *DeleteDirectConnectGateway request = &DeleteDirectConnectGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteDirectConnectGateway") @@ -5075,8 +5851,10 @@ func NewDeleteDirectConnectGatewayResponse() (response *DeleteDirectConnectGatew // 可能返回的错误码: // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_DCGATEWAYNATRULEEXISTS = "UnsupportedOperation.DCGatewayNatRuleExists" func (c *Client) DeleteDirectConnectGateway(request *DeleteDirectConnectGatewayRequest) (response *DeleteDirectConnectGatewayResponse, err error) { return c.DeleteDirectConnectGatewayWithContext(context.Background(), request) } @@ -5093,8 +5871,10 @@ func (c *Client) DeleteDirectConnectGateway(request *DeleteDirectConnectGatewayR // 可能返回的错误码: // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_DCGATEWAYNATRULEEXISTS = "UnsupportedOperation.DCGatewayNatRuleExists" func (c *Client) DeleteDirectConnectGatewayWithContext(ctx context.Context, request *DeleteDirectConnectGatewayRequest) (response *DeleteDirectConnectGatewayResponse, err error) { if request == nil { request = NewDeleteDirectConnectGatewayRequest() @@ -5115,6 +5895,7 @@ func NewDeleteDirectConnectGatewayCcnRoutesRequest() (request *DeleteDirectConne request = &DeleteDirectConnectGatewayCcnRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteDirectConnectGatewayCcnRoutes") @@ -5164,6 +5945,7 @@ func NewDeleteFlowLogRequest() (request *DeleteFlowLogRequest) { request = &DeleteFlowLogRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteFlowLog") @@ -5215,6 +5997,7 @@ func NewDeleteHaVipRequest() (request *DeleteHaVipRequest) { request = &DeleteHaVipRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteHaVip") @@ -5274,6 +6057,7 @@ func NewDeleteIp6TranslatorsRequest() (request *DeleteIp6TranslatorsRequest) { request = &DeleteIp6TranslatorsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteIp6Translators") @@ -5327,6 +6111,7 @@ func NewDeleteLocalGatewayRequest() (request *DeleteLocalGatewayRequest) { request = &DeleteLocalGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteLocalGateway") @@ -5384,6 +6169,7 @@ func NewDeleteNatGatewayRequest() (request *DeleteNatGatewayRequest) { request = &DeleteNatGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteNatGateway") @@ -5441,6 +6227,7 @@ func NewDeleteNatGatewayDestinationIpPortTranslationNatRuleRequest() (request *D request = &DeleteNatGatewayDestinationIpPortTranslationNatRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteNatGatewayDestinationIpPortTranslationNatRule") @@ -5494,6 +6281,7 @@ func NewDeleteNatGatewaySourceIpTranslationNatRuleRequest() (request *DeleteNatG request = &DeleteNatGatewaySourceIpTranslationNatRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteNatGatewaySourceIpTranslationNatRule") @@ -5547,6 +6335,7 @@ func NewDeleteNetDetectRequest() (request *DeleteNetDetectRequest) { request = &DeleteNetDetectRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteNetDetect") @@ -5598,6 +6387,7 @@ func NewDeleteNetworkAclRequest() (request *DeleteNetworkAclRequest) { request = &DeleteNetworkAclRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteNetworkAcl") @@ -5645,10 +6435,73 @@ func (c *Client) DeleteNetworkAclWithContext(ctx context.Context, request *Delet return } +func NewDeleteNetworkAclQuintupleEntriesRequest() (request *DeleteNetworkAclQuintupleEntriesRequest) { + request = &DeleteNetworkAclQuintupleEntriesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("vpc", APIVersion, "DeleteNetworkAclQuintupleEntries") + + + return +} + +func NewDeleteNetworkAclQuintupleEntriesResponse() (response *DeleteNetworkAclQuintupleEntriesResponse) { + response = &DeleteNetworkAclQuintupleEntriesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteNetworkAclQuintupleEntries +// 本接口(DeleteNetworkAclQuintupleEntries)用于删除网络ACL五元组指定的入站规则和出站规则(但不是全量删除该ACL下的所有条目)。在NetworkAclQuintupleEntrySet参数中:NetworkAclQuintupleEntry需要提供NetworkAclQuintupleEntryId。 +// +// 可能返回的错误码: +// INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" +func (c *Client) DeleteNetworkAclQuintupleEntries(request *DeleteNetworkAclQuintupleEntriesRequest) (response *DeleteNetworkAclQuintupleEntriesResponse, err error) { + return c.DeleteNetworkAclQuintupleEntriesWithContext(context.Background(), request) +} + +// DeleteNetworkAclQuintupleEntries +// 本接口(DeleteNetworkAclQuintupleEntries)用于删除网络ACL五元组指定的入站规则和出站规则(但不是全量删除该ACL下的所有条目)。在NetworkAclQuintupleEntrySet参数中:NetworkAclQuintupleEntry需要提供NetworkAclQuintupleEntryId。 +// +// 可能返回的错误码: +// INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" +func (c *Client) DeleteNetworkAclQuintupleEntriesWithContext(ctx context.Context, request *DeleteNetworkAclQuintupleEntriesRequest) (response *DeleteNetworkAclQuintupleEntriesResponse, err error) { + if request == nil { + request = NewDeleteNetworkAclQuintupleEntriesRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteNetworkAclQuintupleEntries require credential") + } + + request.SetContext(ctx) + + response = NewDeleteNetworkAclQuintupleEntriesResponse() + err = c.Send(request, response) + return +} + func NewDeleteNetworkInterfaceRequest() (request *DeleteNetworkInterfaceRequest) { request = &DeleteNetworkInterfaceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteNetworkInterface") @@ -5720,6 +6573,7 @@ func NewDeleteRouteTableRequest() (request *DeleteRouteTableRequest) { request = &DeleteRouteTableRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteRouteTable") @@ -5739,6 +6593,10 @@ func NewDeleteRouteTableResponse() (response *DeleteRouteTableResponse) { // 可能返回的错误码: // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_DELDEFAULTROUTE = "UnsupportedOperation.DelDefaultRoute" +// UNSUPPORTEDOPERATION_DELROUTEWITHSUBNET = "UnsupportedOperation.DelRouteWithSubnet" +// UNSUPPORTEDOPERATION_NOTSUPPORTDELETEDEFAULTROUTETABLE = "UnsupportedOperation.NotSupportDeleteDefaultRouteTable" +// UNSUPPORTEDOPERATION_ROUTETABLEHASSUBNETRULE = "UnsupportedOperation.RouteTableHasSubnetRule" func (c *Client) DeleteRouteTable(request *DeleteRouteTableRequest) (response *DeleteRouteTableResponse, err error) { return c.DeleteRouteTableWithContext(context.Background(), request) } @@ -5749,6 +6607,10 @@ func (c *Client) DeleteRouteTable(request *DeleteRouteTableRequest) (response *D // 可能返回的错误码: // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_DELDEFAULTROUTE = "UnsupportedOperation.DelDefaultRoute" +// UNSUPPORTEDOPERATION_DELROUTEWITHSUBNET = "UnsupportedOperation.DelRouteWithSubnet" +// UNSUPPORTEDOPERATION_NOTSUPPORTDELETEDEFAULTROUTETABLE = "UnsupportedOperation.NotSupportDeleteDefaultRouteTable" +// UNSUPPORTEDOPERATION_ROUTETABLEHASSUBNETRULE = "UnsupportedOperation.RouteTableHasSubnetRule" func (c *Client) DeleteRouteTableWithContext(ctx context.Context, request *DeleteRouteTableRequest) (response *DeleteRouteTableResponse, err error) { if request == nil { request = NewDeleteRouteTableRequest() @@ -5769,6 +6631,7 @@ func NewDeleteRoutesRequest() (request *DeleteRoutesRequest) { request = &DeleteRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteRoutes") @@ -5826,6 +6689,7 @@ func NewDeleteSecurityGroupRequest() (request *DeleteSecurityGroupRequest) { request = &DeleteSecurityGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteSecurityGroup") @@ -5895,6 +6759,7 @@ func NewDeleteSecurityGroupPoliciesRequest() (request *DeleteSecurityGroupPolici request = &DeleteSecurityGroupPoliciesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteSecurityGroupPolicies") @@ -5917,6 +6782,7 @@ func NewDeleteSecurityGroupPoliciesResponse() (response *DeleteSecurityGroupPoli // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_VERSIONMISMATCH = "UnsupportedOperation.VersionMismatch" func (c *Client) DeleteSecurityGroupPolicies(request *DeleteSecurityGroupPoliciesRequest) (response *DeleteSecurityGroupPoliciesResponse, err error) { @@ -5932,6 +6798,7 @@ func (c *Client) DeleteSecurityGroupPolicies(request *DeleteSecurityGroupPolicie // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_VERSIONMISMATCH = "UnsupportedOperation.VersionMismatch" func (c *Client) DeleteSecurityGroupPoliciesWithContext(ctx context.Context, request *DeleteSecurityGroupPoliciesRequest) (response *DeleteSecurityGroupPoliciesResponse, err error) { @@ -5954,6 +6821,7 @@ func NewDeleteServiceTemplateRequest() (request *DeleteServiceTemplateRequest) { request = &DeleteServiceTemplateRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteServiceTemplate") @@ -6005,6 +6873,7 @@ func NewDeleteServiceTemplateGroupRequest() (request *DeleteServiceTemplateGroup request = &DeleteServiceTemplateGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteServiceTemplateGroup") @@ -6056,6 +6925,7 @@ func NewDeleteSubnetRequest() (request *DeleteSubnetRequest) { request = &DeleteSubnetRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteSubnet") @@ -6078,6 +6948,7 @@ func NewDeleteSubnetResponse() (response *DeleteSubnetResponse) { // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_RECORDNOTEXISTS = "UnsupportedOperation.RecordNotExists" func (c *Client) DeleteSubnet(request *DeleteSubnetRequest) (response *DeleteSubnetResponse, err error) { return c.DeleteSubnetWithContext(context.Background(), request) } @@ -6091,6 +6962,7 @@ func (c *Client) DeleteSubnet(request *DeleteSubnetRequest) (response *DeleteSub // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_RECORDNOTEXISTS = "UnsupportedOperation.RecordNotExists" func (c *Client) DeleteSubnetWithContext(ctx context.Context, request *DeleteSubnetRequest) (response *DeleteSubnetResponse, err error) { if request == nil { request = NewDeleteSubnetRequest() @@ -6111,6 +6983,7 @@ func NewDeleteTemplateMemberRequest() (request *DeleteTemplateMemberRequest) { request = &DeleteTemplateMemberRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteTemplateMember") @@ -6164,6 +7037,7 @@ func NewDeleteVpcRequest() (request *DeleteVpcRequest) { request = &DeleteVpcRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteVpc") @@ -6185,10 +7059,13 @@ func NewDeleteVpcResponse() (response *DeleteVpcResponse) { // * 删除私有网络是不可逆的操作,请谨慎处理。 // // 可能返回的错误码: +// FAILEDOPERATION_NETDETECTTIMEOUT = "FailedOperation.NetDetectTimeOut" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" +// UNSUPPORTEDOPERATION_RECORDNOTEXISTS = "UnsupportedOperation.RecordNotExists" +// UNSUPPORTEDOPERATION_ROUTETABLEHASSUBNETRULE = "UnsupportedOperation.RouteTableHasSubnetRule" func (c *Client) DeleteVpc(request *DeleteVpcRequest) (response *DeleteVpcResponse, err error) { return c.DeleteVpcWithContext(context.Background(), request) } @@ -6201,10 +7078,13 @@ func (c *Client) DeleteVpc(request *DeleteVpcRequest) (response *DeleteVpcRespon // * 删除私有网络是不可逆的操作,请谨慎处理。 // // 可能返回的错误码: +// FAILEDOPERATION_NETDETECTTIMEOUT = "FailedOperation.NetDetectTimeOut" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" +// UNSUPPORTEDOPERATION_RECORDNOTEXISTS = "UnsupportedOperation.RecordNotExists" +// UNSUPPORTEDOPERATION_ROUTETABLEHASSUBNETRULE = "UnsupportedOperation.RouteTableHasSubnetRule" func (c *Client) DeleteVpcWithContext(ctx context.Context, request *DeleteVpcRequest) (response *DeleteVpcResponse, err error) { if request == nil { request = NewDeleteVpcRequest() @@ -6225,6 +7105,7 @@ func NewDeleteVpcEndPointRequest() (request *DeleteVpcEndPointRequest) { request = &DeleteVpcEndPointRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteVpcEndPoint") @@ -6278,6 +7159,7 @@ func NewDeleteVpcEndPointServiceRequest() (request *DeleteVpcEndPointServiceRequ request = &DeleteVpcEndPointServiceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteVpcEndPointService") @@ -6335,6 +7217,7 @@ func NewDeleteVpcEndPointServiceWhiteListRequest() (request *DeleteVpcEndPointSe request = &DeleteVpcEndPointServiceWhiteListRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteVpcEndPointServiceWhiteList") @@ -6388,6 +7271,7 @@ func NewDeleteVpnConnectionRequest() (request *DeleteVpnConnectionRequest) { request = &DeleteVpnConnectionRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteVpnConnection") @@ -6441,6 +7325,7 @@ func NewDeleteVpnGatewayRequest() (request *DeleteVpnGatewayRequest) { request = &DeleteVpnGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteVpnGateway") @@ -6496,6 +7381,7 @@ func NewDeleteVpnGatewayRoutesRequest() (request *DeleteVpnGatewayRoutesRequest) request = &DeleteVpnGatewayRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteVpnGatewayRoutes") @@ -6547,6 +7433,7 @@ func NewDeleteVpnGatewaySslClientRequest() (request *DeleteVpnGatewaySslClientRe request = &DeleteVpnGatewaySslClientRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteVpnGatewaySslClient") @@ -6600,6 +7487,7 @@ func NewDeleteVpnGatewaySslServerRequest() (request *DeleteVpnGatewaySslServerRe request = &DeleteVpnGatewaySslServerRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DeleteVpnGatewaySslServer") @@ -6651,6 +7539,7 @@ func NewDescribeAccountAttributesRequest() (request *DescribeAccountAttributesRe request = &DescribeAccountAttributesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeAccountAttributes") @@ -6702,6 +7591,7 @@ func NewDescribeAddressQuotaRequest() (request *DescribeAddressQuotaRequest) { request = &DescribeAddressQuotaRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeAddressQuota") @@ -6720,6 +7610,7 @@ func NewDescribeAddressQuotaResponse() (response *DescribeAddressQuotaResponse) // // 可能返回的错误码: // INTERNALSERVERERROR = "InternalServerError" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeAddressQuota(request *DescribeAddressQuotaRequest) (response *DescribeAddressQuotaResponse, err error) { return c.DescribeAddressQuotaWithContext(context.Background(), request) } @@ -6729,6 +7620,7 @@ func (c *Client) DescribeAddressQuota(request *DescribeAddressQuotaRequest) (res // // 可能返回的错误码: // INTERNALSERVERERROR = "InternalServerError" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeAddressQuotaWithContext(ctx context.Context, request *DescribeAddressQuotaRequest) (response *DescribeAddressQuotaResponse, err error) { if request == nil { request = NewDescribeAddressQuotaRequest() @@ -6749,6 +7641,7 @@ func NewDescribeAddressTemplateGroupsRequest() (request *DescribeAddressTemplate request = &DescribeAddressTemplateGroupsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeAddressTemplateGroups") @@ -6800,6 +7693,7 @@ func NewDescribeAddressTemplatesRequest() (request *DescribeAddressTemplatesRequ request = &DescribeAddressTemplatesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeAddressTemplates") @@ -6853,6 +7747,7 @@ func NewDescribeAddressesRequest() (request *DescribeAddressesRequest) { request = &DescribeAddressesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeAddresses") @@ -6877,6 +7772,7 @@ func NewDescribeAddressesResponse() (response *DescribeAddressesResponse) { // INVALIDPARAMETERVALUE_ADDRESSIDMALFORMED = "InvalidParameterValue.AddressIdMalformed" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // LIMITEXCEEDED_NUMBEROFFILTERS = "LimitExceeded.NumberOfFilters" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeAddresses(request *DescribeAddressesRequest) (response *DescribeAddressesResponse, err error) { return c.DescribeAddressesWithContext(context.Background(), request) } @@ -6892,6 +7788,7 @@ func (c *Client) DescribeAddresses(request *DescribeAddressesRequest) (response // INVALIDPARAMETERVALUE_ADDRESSIDMALFORMED = "InvalidParameterValue.AddressIdMalformed" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // LIMITEXCEEDED_NUMBEROFFILTERS = "LimitExceeded.NumberOfFilters" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeAddressesWithContext(ctx context.Context, request *DescribeAddressesRequest) (response *DescribeAddressesResponse, err error) { if request == nil { request = NewDescribeAddressesRequest() @@ -6912,6 +7809,7 @@ func NewDescribeAssistantCidrRequest() (request *DescribeAssistantCidrRequest) { request = &DescribeAssistantCidrRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeAssistantCidr") @@ -6965,6 +7863,7 @@ func NewDescribeBandwidthPackageBillUsageRequest() (request *DescribeBandwidthPa request = &DescribeBandwidthPackageBillUsageRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeBandwidthPackageBillUsage") @@ -7016,6 +7915,7 @@ func NewDescribeBandwidthPackageQuotaRequest() (request *DescribeBandwidthPackag request = &DescribeBandwidthPackageQuotaRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeBandwidthPackageQuota") @@ -7033,9 +7933,7 @@ func NewDescribeBandwidthPackageQuotaResponse() (response *DescribeBandwidthPack // 接口用于查询账户在当前地域的带宽包上限数量以及使用数量 // // 可能返回的错误码: -// INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDMALFORMED = "InvalidParameterValue.BandwidthPackageIdMalformed" -// INVALIDPARAMETERVALUE_BANDWIDTHPACKAGENOTFOUND = "InvalidParameterValue.BandwidthPackageNotFound" -// UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported" +// INVALIDPARAMETERVALUE_RESOURCENOTSUPPORT = "InvalidParameterValue.ResourceNotSupport" func (c *Client) DescribeBandwidthPackageQuota(request *DescribeBandwidthPackageQuotaRequest) (response *DescribeBandwidthPackageQuotaResponse, err error) { return c.DescribeBandwidthPackageQuotaWithContext(context.Background(), request) } @@ -7044,9 +7942,7 @@ func (c *Client) DescribeBandwidthPackageQuota(request *DescribeBandwidthPackage // 接口用于查询账户在当前地域的带宽包上限数量以及使用数量 // // 可能返回的错误码: -// INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDMALFORMED = "InvalidParameterValue.BandwidthPackageIdMalformed" -// INVALIDPARAMETERVALUE_BANDWIDTHPACKAGENOTFOUND = "InvalidParameterValue.BandwidthPackageNotFound" -// UNSUPPORTEDOPERATION_BANDWIDTHPACKAGEIDNOTSUPPORTED = "UnsupportedOperation.BandwidthPackageIdNotSupported" +// INVALIDPARAMETERVALUE_RESOURCENOTSUPPORT = "InvalidParameterValue.ResourceNotSupport" func (c *Client) DescribeBandwidthPackageQuotaWithContext(ctx context.Context, request *DescribeBandwidthPackageQuotaRequest) (response *DescribeBandwidthPackageQuotaResponse, err error) { if request == nil { request = NewDescribeBandwidthPackageQuotaRequest() @@ -7067,6 +7963,7 @@ func NewDescribeBandwidthPackageResourcesRequest() (request *DescribeBandwidthPa request = &DescribeBandwidthPackageResourcesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeBandwidthPackageResources") @@ -7085,6 +7982,7 @@ func NewDescribeBandwidthPackageResourcesResponse() (response *DescribeBandwidth // // 可能返回的错误码: // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" // INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDMALFORMED = "InvalidParameterValue.BandwidthPackageIdMalformed" // INVALIDPARAMETERVALUE_BANDWIDTHPACKAGENOTFOUND = "InvalidParameterValue.BandwidthPackageNotFound" // INVALIDPARAMETERVALUE_RESOURCEIDMALFORMED = "InvalidParameterValue.ResourceIdMalformed" @@ -7097,6 +7995,7 @@ func (c *Client) DescribeBandwidthPackageResources(request *DescribeBandwidthPac // // 可能返回的错误码: // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter" // INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDMALFORMED = "InvalidParameterValue.BandwidthPackageIdMalformed" // INVALIDPARAMETERVALUE_BANDWIDTHPACKAGENOTFOUND = "InvalidParameterValue.BandwidthPackageNotFound" // INVALIDPARAMETERVALUE_RESOURCEIDMALFORMED = "InvalidParameterValue.ResourceIdMalformed" @@ -7120,6 +8019,7 @@ func NewDescribeBandwidthPackagesRequest() (request *DescribeBandwidthPackagesRe request = &DescribeBandwidthPackagesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeBandwidthPackages") @@ -7141,6 +8041,7 @@ func NewDescribeBandwidthPackagesResponse() (response *DescribeBandwidthPackages // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDMALFORMED = "InvalidParameterValue.BandwidthPackageIdMalformed" // INVALIDPARAMETERVALUE_INVALIDBANDWIDTHPACKAGECHARGETYPE = "InvalidParameterValue.InvalidBandwidthPackageChargeType" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeBandwidthPackages(request *DescribeBandwidthPackagesRequest) (response *DescribeBandwidthPackagesResponse, err error) { return c.DescribeBandwidthPackagesWithContext(context.Background(), request) } @@ -7153,6 +8054,7 @@ func (c *Client) DescribeBandwidthPackages(request *DescribeBandwidthPackagesReq // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_BANDWIDTHPACKAGEIDMALFORMED = "InvalidParameterValue.BandwidthPackageIdMalformed" // INVALIDPARAMETERVALUE_INVALIDBANDWIDTHPACKAGECHARGETYPE = "InvalidParameterValue.InvalidBandwidthPackageChargeType" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeBandwidthPackagesWithContext(ctx context.Context, request *DescribeBandwidthPackagesRequest) (response *DescribeBandwidthPackagesResponse, err error) { if request == nil { request = NewDescribeBandwidthPackagesRequest() @@ -7173,6 +8075,7 @@ func NewDescribeCcnAttachedInstancesRequest() (request *DescribeCcnAttachedInsta request = &DescribeCcnAttachedInstancesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCcnAttachedInstances") @@ -7196,6 +8099,7 @@ func NewDescribeCcnAttachedInstancesResponse() (response *DescribeCcnAttachedIns // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_APPIDNOTFOUND = "UnsupportedOperation.AppIdNotFound" func (c *Client) DescribeCcnAttachedInstances(request *DescribeCcnAttachedInstancesRequest) (response *DescribeCcnAttachedInstancesResponse, err error) { return c.DescribeCcnAttachedInstancesWithContext(context.Background(), request) @@ -7211,6 +8115,7 @@ func (c *Client) DescribeCcnAttachedInstances(request *DescribeCcnAttachedInstan // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_APPIDNOTFOUND = "UnsupportedOperation.AppIdNotFound" func (c *Client) DescribeCcnAttachedInstancesWithContext(ctx context.Context, request *DescribeCcnAttachedInstancesRequest) (response *DescribeCcnAttachedInstancesResponse, err error) { if request == nil { @@ -7232,6 +8137,7 @@ func NewDescribeCcnRegionBandwidthLimitsRequest() (request *DescribeCcnRegionBan request = &DescribeCcnRegionBandwidthLimitsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCcnRegionBandwidthLimits") @@ -7279,6 +8185,7 @@ func NewDescribeCcnRoutesRequest() (request *DescribeCcnRoutesRequest) { request = &DescribeCcnRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCcnRoutes") @@ -7332,6 +8239,7 @@ func NewDescribeCcnsRequest() (request *DescribeCcnsRequest) { request = &DescribeCcnsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCcns") @@ -7359,6 +8267,7 @@ func NewDescribeCcnsResponse() (response *DescribeCcnsResponse) { // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeCcns(request *DescribeCcnsRequest) (response *DescribeCcnsResponse, err error) { return c.DescribeCcnsWithContext(context.Background(), request) } @@ -7377,6 +8286,7 @@ func (c *Client) DescribeCcns(request *DescribeCcnsRequest) (response *DescribeC // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeCcnsWithContext(ctx context.Context, request *DescribeCcnsRequest) (response *DescribeCcnsResponse, err error) { if request == nil { request = NewDescribeCcnsRequest() @@ -7397,6 +8307,7 @@ func NewDescribeClassicLinkInstancesRequest() (request *DescribeClassicLinkInsta request = &DescribeClassicLinkInstancesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeClassicLinkInstances") @@ -7448,6 +8359,7 @@ func NewDescribeCrossBorderCcnRegionBandwidthLimitsRequest() (request *DescribeC request = &DescribeCrossBorderCcnRegionBandwidthLimitsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCrossBorderCcnRegionBandwidthLimits") @@ -7519,6 +8431,7 @@ func NewDescribeCrossBorderComplianceRequest() (request *DescribeCrossBorderComp request = &DescribeCrossBorderComplianceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCrossBorderCompliance") @@ -7539,6 +8452,7 @@ func NewDescribeCrossBorderComplianceResponse() (response *DescribeCrossBorderCo // // 可能返回的错误码: // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" func (c *Client) DescribeCrossBorderCompliance(request *DescribeCrossBorderComplianceRequest) (response *DescribeCrossBorderComplianceResponse, err error) { return c.DescribeCrossBorderComplianceWithContext(context.Background(), request) @@ -7551,6 +8465,7 @@ func (c *Client) DescribeCrossBorderCompliance(request *DescribeCrossBorderCompl // // 可能返回的错误码: // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" func (c *Client) DescribeCrossBorderComplianceWithContext(ctx context.Context, request *DescribeCrossBorderComplianceRequest) (response *DescribeCrossBorderComplianceResponse, err error) { if request == nil { @@ -7572,6 +8487,7 @@ func NewDescribeCustomerGatewayVendorsRequest() (request *DescribeCustomerGatewa request = &DescribeCustomerGatewayVendorsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCustomerGatewayVendors") @@ -7590,6 +8506,7 @@ func NewDescribeCustomerGatewayVendorsResponse() (response *DescribeCustomerGate // // 可能返回的错误码: // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" func (c *Client) DescribeCustomerGatewayVendors(request *DescribeCustomerGatewayVendorsRequest) (response *DescribeCustomerGatewayVendorsResponse, err error) { return c.DescribeCustomerGatewayVendorsWithContext(context.Background(), request) @@ -7600,6 +8517,7 @@ func (c *Client) DescribeCustomerGatewayVendors(request *DescribeCustomerGateway // // 可能返回的错误码: // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" func (c *Client) DescribeCustomerGatewayVendorsWithContext(ctx context.Context, request *DescribeCustomerGatewayVendorsRequest) (response *DescribeCustomerGatewayVendorsResponse, err error) { if request == nil { @@ -7621,6 +8539,7 @@ func NewDescribeCustomerGatewaysRequest() (request *DescribeCustomerGatewaysRequ request = &DescribeCustomerGatewaysRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeCustomerGateways") @@ -7670,6 +8589,7 @@ func NewDescribeDhcpIpsRequest() (request *DescribeDhcpIpsRequest) { request = &DescribeDhcpIpsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeDhcpIps") @@ -7727,6 +8647,7 @@ func NewDescribeDirectConnectGatewayCcnRoutesRequest() (request *DescribeDirectC request = &DescribeDirectConnectGatewayCcnRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeDirectConnectGatewayCcnRoutes") @@ -7776,6 +8697,7 @@ func NewDescribeDirectConnectGatewaysRequest() (request *DescribeDirectConnectGa request = &DescribeDirectConnectGatewaysRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeDirectConnectGateways") @@ -7800,6 +8722,7 @@ func NewDescribeDirectConnectGatewaysResponse() (response *DescribeDirectConnect // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeDirectConnectGateways(request *DescribeDirectConnectGatewaysRequest) (response *DescribeDirectConnectGatewaysResponse, err error) { return c.DescribeDirectConnectGatewaysWithContext(context.Background(), request) } @@ -7815,6 +8738,7 @@ func (c *Client) DescribeDirectConnectGateways(request *DescribeDirectConnectGat // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeDirectConnectGatewaysWithContext(ctx context.Context, request *DescribeDirectConnectGatewaysRequest) (response *DescribeDirectConnectGatewaysResponse, err error) { if request == nil { request = NewDescribeDirectConnectGatewaysRequest() @@ -7835,6 +8759,7 @@ func NewDescribeFlowLogRequest() (request *DescribeFlowLogRequest) { request = &DescribeFlowLogRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeFlowLog") @@ -7884,6 +8809,7 @@ func NewDescribeFlowLogsRequest() (request *DescribeFlowLogsRequest) { request = &DescribeFlowLogsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeFlowLogs") @@ -7903,6 +8829,7 @@ func NewDescribeFlowLogsResponse() (response *DescribeFlowLogsResponse) { // 可能返回的错误码: // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) DescribeFlowLogs(request *DescribeFlowLogsRequest) (response *DescribeFlowLogsResponse, err error) { return c.DescribeFlowLogsWithContext(context.Background(), request) @@ -7914,6 +8841,7 @@ func (c *Client) DescribeFlowLogs(request *DescribeFlowLogsRequest) (response *D // 可能返回的错误码: // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) DescribeFlowLogsWithContext(ctx context.Context, request *DescribeFlowLogsRequest) (response *DescribeFlowLogsResponse, err error) { if request == nil { @@ -7935,6 +8863,7 @@ func NewDescribeGatewayFlowMonitorDetailRequest() (request *DescribeGatewayFlowM request = &DescribeGatewayFlowMonitorDetailRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeGatewayFlowMonitorDetail") @@ -7994,6 +8923,7 @@ func NewDescribeGatewayFlowQosRequest() (request *DescribeGatewayFlowQosRequest) request = &DescribeGatewayFlowQosRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeGatewayFlowQos") @@ -8047,6 +8977,7 @@ func NewDescribeHaVipsRequest() (request *DescribeHaVipsRequest) { request = &DescribeHaVipsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeHaVips") @@ -8102,6 +9033,7 @@ func NewDescribeIp6AddressesRequest() (request *DescribeIp6AddressesRequest) { request = &DescribeIp6AddressesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeIp6Addresses") @@ -8167,6 +9099,7 @@ func NewDescribeIp6TranslatorQuotaRequest() (request *DescribeIp6TranslatorQuota request = &DescribeIp6TranslatorQuotaRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeIp6TranslatorQuota") @@ -8214,6 +9147,7 @@ func NewDescribeIp6TranslatorsRequest() (request *DescribeIp6TranslatorsRequest) request = &DescribeIp6TranslatorsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeIp6Translators") @@ -8267,6 +9201,7 @@ func NewDescribeIpGeolocationDatabaseUrlRequest() (request *DescribeIpGeolocatio request = &DescribeIpGeolocationDatabaseUrlRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeIpGeolocationDatabaseUrl") @@ -8322,6 +9257,7 @@ func NewDescribeIpGeolocationInfosRequest() (request *DescribeIpGeolocationInfos request = &DescribeIpGeolocationInfosRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeIpGeolocationInfos") @@ -8338,7 +9274,7 @@ func NewDescribeIpGeolocationInfosResponse() (response *DescribeIpGeolocationInf // DescribeIpGeolocationInfos // 本接口(DescribeIpGeolocationInfos)用于查询IP地址信息,包括地理位置信息和网络信息。 // -// 本接口目前处于内测中,如需使用,请提交 [工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=660&source=0&data_title=%E5%BC%B9%E6%80%A7%E5%85%AC%E7%BD%91%20EIP&level3_id=662&queue=96&scene_code=16400&step=2)。 +// 本接口仅供存量客户使用,如有疑问,请提交[工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=660&source=0&data_title=%E5%BC%B9%E6%80%A7%E5%85%AC%E7%BD%91%20EIP&level3_id=662&queue=96&scene_code=16400&step=2)。 // // 可能返回的错误码: // INTERNALSERVERERROR = "InternalServerError" @@ -8354,7 +9290,7 @@ func (c *Client) DescribeIpGeolocationInfos(request *DescribeIpGeolocationInfosR // DescribeIpGeolocationInfos // 本接口(DescribeIpGeolocationInfos)用于查询IP地址信息,包括地理位置信息和网络信息。 // -// 本接口目前处于内测中,如需使用,请提交 [工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=660&source=0&data_title=%E5%BC%B9%E6%80%A7%E5%85%AC%E7%BD%91%20EIP&level3_id=662&queue=96&scene_code=16400&step=2)。 +// 本接口仅供存量客户使用,如有疑问,请提交[工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=660&source=0&data_title=%E5%BC%B9%E6%80%A7%E5%85%AC%E7%BD%91%20EIP&level3_id=662&queue=96&scene_code=16400&step=2)。 // // 可能返回的错误码: // INTERNALSERVERERROR = "InternalServerError" @@ -8383,6 +9319,7 @@ func NewDescribeLocalGatewayRequest() (request *DescribeLocalGatewayRequest) { request = &DescribeLocalGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeLocalGateway") @@ -8440,6 +9377,7 @@ func NewDescribeNatGatewayDestinationIpPortTranslationNatRulesRequest() (request request = &DescribeNatGatewayDestinationIpPortTranslationNatRulesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNatGatewayDestinationIpPortTranslationNatRules") @@ -8503,6 +9441,7 @@ func NewDescribeNatGatewayDirectConnectGatewayRouteRequest() (request *DescribeN request = &DescribeNatGatewayDirectConnectGatewayRouteRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNatGatewayDirectConnectGatewayRoute") @@ -8558,6 +9497,7 @@ func NewDescribeNatGatewaySourceIpTranslationNatRulesRequest() (request *Describ request = &DescribeNatGatewaySourceIpTranslationNatRulesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNatGatewaySourceIpTranslationNatRules") @@ -8617,6 +9557,7 @@ func NewDescribeNatGatewaysRequest() (request *DescribeNatGatewaysRequest) { request = &DescribeNatGatewaysRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNatGateways") @@ -8639,6 +9580,7 @@ func NewDescribeNatGatewaysResponse() (response *DescribeNatGatewaysResponse) { // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeNatGateways(request *DescribeNatGatewaysRequest) (response *DescribeNatGatewaysResponse, err error) { return c.DescribeNatGatewaysWithContext(context.Background(), request) } @@ -8652,6 +9594,7 @@ func (c *Client) DescribeNatGateways(request *DescribeNatGatewaysRequest) (respo // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeNatGatewaysWithContext(ctx context.Context, request *DescribeNatGatewaysRequest) (response *DescribeNatGatewaysResponse, err error) { if request == nil { request = NewDescribeNatGatewaysRequest() @@ -8672,6 +9615,7 @@ func NewDescribeNetDetectStatesRequest() (request *DescribeNetDetectStatesReques request = &DescribeNetDetectStatesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNetDetectStates") @@ -8735,6 +9679,7 @@ func NewDescribeNetDetectsRequest() (request *DescribeNetDetectsRequest) { request = &DescribeNetDetectsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNetDetects") @@ -8786,10 +9731,73 @@ func (c *Client) DescribeNetDetectsWithContext(ctx context.Context, request *Des return } +func NewDescribeNetworkAclQuintupleEntriesRequest() (request *DescribeNetworkAclQuintupleEntriesRequest) { + request = &DescribeNetworkAclQuintupleEntriesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNetworkAclQuintupleEntries") + + + return +} + +func NewDescribeNetworkAclQuintupleEntriesResponse() (response *DescribeNetworkAclQuintupleEntriesResponse) { + response = &DescribeNetworkAclQuintupleEntriesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeNetworkAclQuintupleEntries +// 本接口(DescribeNetworkAclQuintupleEntries)查询入方向或出方向网络ACL五元组条目列表。 +// +// 可能返回的错误码: +// INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" +// INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" +// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" +func (c *Client) DescribeNetworkAclQuintupleEntries(request *DescribeNetworkAclQuintupleEntriesRequest) (response *DescribeNetworkAclQuintupleEntriesResponse, err error) { + return c.DescribeNetworkAclQuintupleEntriesWithContext(context.Background(), request) +} + +// DescribeNetworkAclQuintupleEntries +// 本接口(DescribeNetworkAclQuintupleEntries)查询入方向或出方向网络ACL五元组条目列表。 +// +// 可能返回的错误码: +// INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" +// INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" +// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" +func (c *Client) DescribeNetworkAclQuintupleEntriesWithContext(ctx context.Context, request *DescribeNetworkAclQuintupleEntriesRequest) (response *DescribeNetworkAclQuintupleEntriesResponse, err error) { + if request == nil { + request = NewDescribeNetworkAclQuintupleEntriesRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeNetworkAclQuintupleEntries require credential") + } + + request.SetContext(ctx) + + response = NewDescribeNetworkAclQuintupleEntriesResponse() + err = c.Send(request, response) + return +} + func NewDescribeNetworkAclsRequest() (request *DescribeNetworkAclsRequest) { request = &DescribeNetworkAclsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNetworkAcls") @@ -8813,6 +9821,7 @@ func NewDescribeNetworkAclsResponse() (response *DescribeNetworkAclsResponse) { // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" func (c *Client) DescribeNetworkAcls(request *DescribeNetworkAclsRequest) (response *DescribeNetworkAclsResponse, err error) { return c.DescribeNetworkAclsWithContext(context.Background(), request) @@ -8828,6 +9837,7 @@ func (c *Client) DescribeNetworkAcls(request *DescribeNetworkAclsRequest) (respo // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" func (c *Client) DescribeNetworkAclsWithContext(ctx context.Context, request *DescribeNetworkAclsRequest) (response *DescribeNetworkAclsResponse, err error) { if request == nil { @@ -8849,6 +9859,7 @@ func NewDescribeNetworkInterfaceLimitRequest() (request *DescribeNetworkInterfac request = &DescribeNetworkInterfaceLimitRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNetworkInterfaceLimit") @@ -8902,6 +9913,7 @@ func NewDescribeNetworkInterfacesRequest() (request *DescribeNetworkInterfacesRe request = &DescribeNetworkInterfacesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeNetworkInterfaces") @@ -8927,6 +9939,7 @@ func NewDescribeNetworkInterfacesResponse() (response *DescribeNetworkInterfaces // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeNetworkInterfaces(request *DescribeNetworkInterfacesRequest) (response *DescribeNetworkInterfacesResponse, err error) { return c.DescribeNetworkInterfacesWithContext(context.Background(), request) } @@ -8943,6 +9956,7 @@ func (c *Client) DescribeNetworkInterfaces(request *DescribeNetworkInterfacesReq // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeNetworkInterfacesWithContext(ctx context.Context, request *DescribeNetworkInterfacesRequest) (response *DescribeNetworkInterfacesResponse, err error) { if request == nil { request = NewDescribeNetworkInterfacesRequest() @@ -8963,6 +9977,7 @@ func NewDescribeProductQuotaRequest() (request *DescribeProductQuotaRequest) { request = &DescribeProductQuotaRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeProductQuota") @@ -9012,6 +10027,7 @@ func NewDescribeRouteConflictsRequest() (request *DescribeRouteConflictsRequest) request = &DescribeRouteConflictsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeRouteConflicts") @@ -9059,6 +10075,7 @@ func NewDescribeRouteTablesRequest() (request *DescribeRouteTablesRequest) { request = &DescribeRouteTablesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeRouteTables") @@ -9083,6 +10100,7 @@ func NewDescribeRouteTablesResponse() (response *DescribeRouteTablesResponse) { // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeRouteTables(request *DescribeRouteTablesRequest) (response *DescribeRouteTablesResponse, err error) { return c.DescribeRouteTablesWithContext(context.Background(), request) } @@ -9098,6 +10116,7 @@ func (c *Client) DescribeRouteTables(request *DescribeRouteTablesRequest) (respo // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeRouteTablesWithContext(ctx context.Context, request *DescribeRouteTablesRequest) (response *DescribeRouteTablesResponse, err error) { if request == nil { request = NewDescribeRouteTablesRequest() @@ -9118,6 +10137,7 @@ func NewDescribeSecurityGroupAssociationStatisticsRequest() (request *DescribeSe request = &DescribeSecurityGroupAssociationStatisticsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeSecurityGroupAssociationStatistics") @@ -9138,6 +10158,7 @@ func NewDescribeSecurityGroupAssociationStatisticsResponse() (response *Describe // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeSecurityGroupAssociationStatistics(request *DescribeSecurityGroupAssociationStatisticsRequest) (response *DescribeSecurityGroupAssociationStatisticsResponse, err error) { return c.DescribeSecurityGroupAssociationStatisticsWithContext(context.Background(), request) } @@ -9149,6 +10170,7 @@ func (c *Client) DescribeSecurityGroupAssociationStatistics(request *DescribeSec // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeSecurityGroupAssociationStatisticsWithContext(ctx context.Context, request *DescribeSecurityGroupAssociationStatisticsRequest) (response *DescribeSecurityGroupAssociationStatisticsResponse, err error) { if request == nil { request = NewDescribeSecurityGroupAssociationStatisticsRequest() @@ -9169,6 +10191,7 @@ func NewDescribeSecurityGroupLimitsRequest() (request *DescribeSecurityGroupLimi request = &DescribeSecurityGroupLimitsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeSecurityGroupLimits") @@ -9186,9 +10209,7 @@ func NewDescribeSecurityGroupLimitsResponse() (response *DescribeSecurityGroupLi // 本接口(DescribeSecurityGroupLimits)用于查询用户安全组配额。 // // 可能返回的错误码: -// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" -// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" -// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeSecurityGroupLimits(request *DescribeSecurityGroupLimitsRequest) (response *DescribeSecurityGroupLimitsResponse, err error) { return c.DescribeSecurityGroupLimitsWithContext(context.Background(), request) } @@ -9197,9 +10218,7 @@ func (c *Client) DescribeSecurityGroupLimits(request *DescribeSecurityGroupLimit // 本接口(DescribeSecurityGroupLimits)用于查询用户安全组配额。 // // 可能返回的错误码: -// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" -// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" -// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeSecurityGroupLimitsWithContext(ctx context.Context, request *DescribeSecurityGroupLimitsRequest) (response *DescribeSecurityGroupLimitsResponse, err error) { if request == nil { request = NewDescribeSecurityGroupLimitsRequest() @@ -9220,6 +10239,7 @@ func NewDescribeSecurityGroupPoliciesRequest() (request *DescribeSecurityGroupPo request = &DescribeSecurityGroupPoliciesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeSecurityGroupPolicies") @@ -9242,6 +10262,7 @@ func NewDescribeSecurityGroupPoliciesResponse() (response *DescribeSecurityGroup // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeSecurityGroupPolicies(request *DescribeSecurityGroupPoliciesRequest) (response *DescribeSecurityGroupPoliciesResponse, err error) { return c.DescribeSecurityGroupPoliciesWithContext(context.Background(), request) } @@ -9255,6 +10276,7 @@ func (c *Client) DescribeSecurityGroupPolicies(request *DescribeSecurityGroupPol // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeSecurityGroupPoliciesWithContext(ctx context.Context, request *DescribeSecurityGroupPoliciesRequest) (response *DescribeSecurityGroupPoliciesResponse, err error) { if request == nil { request = NewDescribeSecurityGroupPoliciesRequest() @@ -9275,6 +10297,7 @@ func NewDescribeSecurityGroupReferencesRequest() (request *DescribeSecurityGroup request = &DescribeSecurityGroupReferencesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeSecurityGroupReferences") @@ -9326,6 +10349,7 @@ func NewDescribeSecurityGroupsRequest() (request *DescribeSecurityGroupsRequest) request = &DescribeSecurityGroupsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeSecurityGroups") @@ -9351,6 +10375,7 @@ func NewDescribeSecurityGroupsResponse() (response *DescribeSecurityGroupsRespon // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeSecurityGroups(request *DescribeSecurityGroupsRequest) (response *DescribeSecurityGroupsResponse, err error) { return c.DescribeSecurityGroupsWithContext(context.Background(), request) } @@ -9367,6 +10392,7 @@ func (c *Client) DescribeSecurityGroups(request *DescribeSecurityGroupsRequest) // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeSecurityGroupsWithContext(ctx context.Context, request *DescribeSecurityGroupsRequest) (response *DescribeSecurityGroupsResponse, err error) { if request == nil { request = NewDescribeSecurityGroupsRequest() @@ -9387,6 +10413,7 @@ func NewDescribeServiceTemplateGroupsRequest() (request *DescribeServiceTemplate request = &DescribeServiceTemplateGroupsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeServiceTemplateGroups") @@ -9438,6 +10465,7 @@ func NewDescribeServiceTemplatesRequest() (request *DescribeServiceTemplatesRequ request = &DescribeServiceTemplatesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeServiceTemplates") @@ -9487,6 +10515,7 @@ func NewDescribeSubnetsRequest() (request *DescribeSubnetsRequest) { request = &DescribeSubnetsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeSubnets") @@ -9504,6 +10533,7 @@ func NewDescribeSubnetsResponse() (response *DescribeSubnetsResponse) { // 本接口(DescribeSubnets)用于查询子网列表。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" // INVALIDPARAMETER_FILTERNOTDICT = "InvalidParameter.FilterNotDict" @@ -9513,6 +10543,7 @@ func NewDescribeSubnetsResponse() (response *DescribeSubnetsResponse) { // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" func (c *Client) DescribeSubnets(request *DescribeSubnetsRequest) (response *DescribeSubnetsResponse, err error) { return c.DescribeSubnetsWithContext(context.Background(), request) @@ -9522,6 +10553,7 @@ func (c *Client) DescribeSubnets(request *DescribeSubnetsRequest) (response *Des // 本接口(DescribeSubnets)用于查询子网列表。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" // INVALIDPARAMETER_FILTERNOTDICT = "InvalidParameter.FilterNotDict" @@ -9531,6 +10563,7 @@ func (c *Client) DescribeSubnets(request *DescribeSubnetsRequest) (response *Des // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" func (c *Client) DescribeSubnetsWithContext(ctx context.Context, request *DescribeSubnetsRequest) (response *DescribeSubnetsResponse, err error) { if request == nil { @@ -9552,6 +10585,7 @@ func NewDescribeTaskResultRequest() (request *DescribeTaskResultRequest) { request = &DescribeTaskResultRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeTaskResult") @@ -9603,6 +10637,7 @@ func NewDescribeTemplateLimitsRequest() (request *DescribeTemplateLimitsRequest) request = &DescribeTemplateLimitsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeTemplateLimits") @@ -9654,6 +10689,7 @@ func NewDescribeTenantCcnsRequest() (request *DescribeTenantCcnsRequest) { request = &DescribeTenantCcnsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeTenantCcns") @@ -9721,6 +10757,7 @@ func NewDescribeVpcEndPointRequest() (request *DescribeVpcEndPointRequest) { request = &DescribeVpcEndPointRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcEndPoint") @@ -9780,6 +10817,7 @@ func NewDescribeVpcEndPointServiceRequest() (request *DescribeVpcEndPointService request = &DescribeVpcEndPointServiceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcEndPointService") @@ -9803,6 +10841,8 @@ func NewDescribeVpcEndPointServiceResponse() (response *DescribeVpcEndPointServi // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_INSTANCEMISMATCH = "UnsupportedOperation.InstanceMismatch" +// UNSUPPORTEDOPERATION_ROLENOTFOUND = "UnsupportedOperation.RoleNotFound" func (c *Client) DescribeVpcEndPointService(request *DescribeVpcEndPointServiceRequest) (response *DescribeVpcEndPointServiceResponse, err error) { return c.DescribeVpcEndPointServiceWithContext(context.Background(), request) } @@ -9817,6 +10857,8 @@ func (c *Client) DescribeVpcEndPointService(request *DescribeVpcEndPointServiceR // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_INSTANCEMISMATCH = "UnsupportedOperation.InstanceMismatch" +// UNSUPPORTEDOPERATION_ROLENOTFOUND = "UnsupportedOperation.RoleNotFound" func (c *Client) DescribeVpcEndPointServiceWithContext(ctx context.Context, request *DescribeVpcEndPointServiceRequest) (response *DescribeVpcEndPointServiceResponse, err error) { if request == nil { request = NewDescribeVpcEndPointServiceRequest() @@ -9837,6 +10879,7 @@ func NewDescribeVpcEndPointServiceWhiteListRequest() (request *DescribeVpcEndPoi request = &DescribeVpcEndPointServiceWhiteListRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcEndPointServiceWhiteList") @@ -9888,6 +10931,7 @@ func NewDescribeVpcInstancesRequest() (request *DescribeVpcInstancesRequest) { request = &DescribeVpcInstancesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcInstances") @@ -9943,6 +10987,7 @@ func NewDescribeVpcIpv6AddressesRequest() (request *DescribeVpcIpv6AddressesRequ request = &DescribeVpcIpv6AddressesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcIpv6Addresses") @@ -9996,6 +11041,7 @@ func NewDescribeVpcLimitsRequest() (request *DescribeVpcLimitsRequest) { request = &DescribeVpcLimitsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcLimits") @@ -10159,6 +11205,7 @@ func NewDescribeVpcPrivateIpAddressesRequest() (request *DescribeVpcPrivateIpAdd request = &DescribeVpcPrivateIpAddressesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcPrivateIpAddresses") @@ -10216,6 +11263,7 @@ func NewDescribeVpcResourceDashboardRequest() (request *DescribeVpcResourceDashb request = &DescribeVpcResourceDashboardRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcResourceDashboard") @@ -10267,6 +11315,7 @@ func NewDescribeVpcTaskResultRequest() (request *DescribeVpcTaskResultRequest) { request = &DescribeVpcTaskResultRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcTaskResult") @@ -10320,6 +11369,7 @@ func NewDescribeVpcsRequest() (request *DescribeVpcsRequest) { request = &DescribeVpcsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpcs") @@ -10337,13 +11387,16 @@ func NewDescribeVpcsResponse() (response *DescribeVpcsResponse) { // 本接口(DescribeVpcs)用于查询私有网络列表。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" +// INVALIDPARAMETER_FILTERNOTDICT = "InvalidParameter.FilterNotDict" // INVALIDPARAMETER_FILTERVALUESNOTLIST = "InvalidParameter.FilterValuesNotList" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeVpcs(request *DescribeVpcsRequest) (response *DescribeVpcsResponse, err error) { return c.DescribeVpcsWithContext(context.Background(), request) } @@ -10352,13 +11405,16 @@ func (c *Client) DescribeVpcs(request *DescribeVpcsRequest) (response *DescribeV // 本接口(DescribeVpcs)用于查询私有网络列表。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" +// INVALIDPARAMETER_FILTERNOTDICT = "InvalidParameter.FilterNotDict" // INVALIDPARAMETER_FILTERVALUESNOTLIST = "InvalidParameter.FilterValuesNotList" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeVpcsWithContext(ctx context.Context, request *DescribeVpcsRequest) (response *DescribeVpcsResponse, err error) { if request == nil { request = NewDescribeVpcsRequest() @@ -10379,6 +11435,7 @@ func NewDescribeVpnConnectionsRequest() (request *DescribeVpnConnectionsRequest) request = &DescribeVpnConnectionsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpnConnections") @@ -10401,6 +11458,7 @@ func NewDescribeVpnConnectionsResponse() (response *DescribeVpnConnectionsRespon // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeVpnConnections(request *DescribeVpnConnectionsRequest) (response *DescribeVpnConnectionsResponse, err error) { return c.DescribeVpnConnectionsWithContext(context.Background(), request) } @@ -10414,6 +11472,7 @@ func (c *Client) DescribeVpnConnections(request *DescribeVpnConnectionsRequest) // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeVpnConnectionsWithContext(ctx context.Context, request *DescribeVpnConnectionsRequest) (response *DescribeVpnConnectionsResponse, err error) { if request == nil { request = NewDescribeVpnConnectionsRequest() @@ -10434,6 +11493,7 @@ func NewDescribeVpnGatewayCcnRoutesRequest() (request *DescribeVpnGatewayCcnRout request = &DescribeVpnGatewayCcnRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpnGatewayCcnRoutes") @@ -10487,6 +11547,7 @@ func NewDescribeVpnGatewayRoutesRequest() (request *DescribeVpnGatewayRoutesRequ request = &DescribeVpnGatewayRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpnGatewayRoutes") @@ -10550,6 +11611,7 @@ func NewDescribeVpnGatewaySslClientsRequest() (request *DescribeVpnGatewaySslCli request = &DescribeVpnGatewaySslClientsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpnGatewaySslClients") @@ -10601,6 +11663,7 @@ func NewDescribeVpnGatewaySslServersRequest() (request *DescribeVpnGatewaySslSer request = &DescribeVpnGatewaySslServersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpnGatewaySslServers") @@ -10654,6 +11717,7 @@ func NewDescribeVpnGatewaysRequest() (request *DescribeVpnGatewaysRequest) { request = &DescribeVpnGatewaysRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DescribeVpnGateways") @@ -10680,6 +11744,7 @@ func NewDescribeVpnGatewaysResponse() (response *DescribeVpnGatewaysResponse) { // INVALIDVPNGATEWAYID_MALFORMED = "InvalidVpnGatewayId.Malformed" // INVALIDVPNGATEWAYID_NOTFOUND = "InvalidVpnGatewayId.NotFound" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeVpnGateways(request *DescribeVpnGatewaysRequest) (response *DescribeVpnGatewaysResponse, err error) { return c.DescribeVpnGatewaysWithContext(context.Background(), request) } @@ -10697,6 +11762,7 @@ func (c *Client) DescribeVpnGateways(request *DescribeVpnGatewaysRequest) (respo // INVALIDVPNGATEWAYID_MALFORMED = "InvalidVpnGatewayId.Malformed" // INVALIDVPNGATEWAYID_NOTFOUND = "InvalidVpnGatewayId.NotFound" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeVpnGatewaysWithContext(ctx context.Context, request *DescribeVpnGatewaysRequest) (response *DescribeVpnGatewaysResponse, err error) { if request == nil { request = NewDescribeVpnGatewaysRequest() @@ -10717,6 +11783,7 @@ func NewDetachCcnInstancesRequest() (request *DetachCcnInstancesRequest) { request = &DetachCcnInstancesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DetachCcnInstances") @@ -10780,6 +11847,7 @@ func NewDetachClassicLinkVpcRequest() (request *DetachClassicLinkVpcRequest) { request = &DetachClassicLinkVpcRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DetachClassicLinkVpc") @@ -10837,6 +11905,7 @@ func NewDetachNetworkInterfaceRequest() (request *DetachNetworkInterfaceRequest) request = &DetachNetworkInterfaceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DetachNetworkInterface") @@ -10894,6 +11963,7 @@ func NewDisableCcnRoutesRequest() (request *DisableCcnRoutesRequest) { request = &DisableCcnRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DisableCcnRoutes") @@ -10941,10 +12011,61 @@ func (c *Client) DisableCcnRoutesWithContext(ctx context.Context, request *Disab return } +func NewDisableFlowLogsRequest() (request *DisableFlowLogsRequest) { + request = &DisableFlowLogsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("vpc", APIVersion, "DisableFlowLogs") + + + return +} + +func NewDisableFlowLogsResponse() (response *DisableFlowLogsResponse) { + response = &DisableFlowLogsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DisableFlowLogs +// 本接口(DisableFlowLogs)用于停止流日志。 +// +// 可能返回的错误码: +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DisableFlowLogs(request *DisableFlowLogsRequest) (response *DisableFlowLogsResponse, err error) { + return c.DisableFlowLogsWithContext(context.Background(), request) +} + +// DisableFlowLogs +// 本接口(DisableFlowLogs)用于停止流日志。 +// +// 可能返回的错误码: +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DisableFlowLogsWithContext(ctx context.Context, request *DisableFlowLogsRequest) (response *DisableFlowLogsResponse, err error) { + if request == nil { + request = NewDisableFlowLogsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DisableFlowLogs require credential") + } + + request.SetContext(ctx) + + response = NewDisableFlowLogsResponse() + err = c.Send(request, response) + return +} + func NewDisableGatewayFlowMonitorRequest() (request *DisableGatewayFlowMonitorRequest) { request = &DisableGatewayFlowMonitorRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DisableGatewayFlowMonitor") @@ -10996,6 +12117,7 @@ func NewDisableRoutesRequest() (request *DisableRoutesRequest) { request = &DisableRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DisableRoutes") @@ -11057,6 +12179,7 @@ func NewDisableVpnGatewaySslClientCertRequest() (request *DisableVpnGatewaySslCl request = &DisableVpnGatewaySslClientCertRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DisableVpnGatewaySslClientCert") @@ -11106,6 +12229,7 @@ func NewDisassociateAddressRequest() (request *DisassociateAddressRequest) { request = &DisassociateAddressRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DisassociateAddress") @@ -11133,6 +12257,8 @@ func NewDisassociateAddressResponse() (response *DisassociateAddressResponse) { // 可能返回的错误码: // ADDRESSQUOTALIMITEXCEEDED_DAILYALLOCATE = "AddressQuotaLimitExceeded.DailyAllocate" // FAILEDOPERATION_ADDRESSENIINFONOTFOUND = "FailedOperation.AddressEniInfoNotFound" +// FAILEDOPERATION_MASTERENINOTFOUND = "FailedOperation.MasterEniNotFound" +// FAILEDOPERATION_TASKFAILED = "FailedOperation.TaskFailed" // INVALIDADDRESSID_BLOCKED = "InvalidAddressId.Blocked" // INVALIDADDRESSID_NOTFOUND = "InvalidAddressId.NotFound" // INVALIDADDRESSIDSTATUS_NOTPERMIT = "InvalidAddressIdStatus.NotPermit" @@ -11144,6 +12270,7 @@ func NewDisassociateAddressResponse() (response *DisassociateAddressResponse) { // INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" // INVALIDPARAMETERVALUE_ONLYSUPPORTEDFORMASTERNETWORKCARD = "InvalidParameterValue.OnlySupportedForMasterNetworkCard" // INVALIDPARAMETERVALUE_RESOURCENOTSUPPORT = "InvalidParameterValue.ResourceNotSupport" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" // UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" // UNSUPPORTEDOPERATION_INVALIDACTION = "UnsupportedOperation.InvalidAction" @@ -11165,6 +12292,8 @@ func (c *Client) DisassociateAddress(request *DisassociateAddressRequest) (respo // 可能返回的错误码: // ADDRESSQUOTALIMITEXCEEDED_DAILYALLOCATE = "AddressQuotaLimitExceeded.DailyAllocate" // FAILEDOPERATION_ADDRESSENIINFONOTFOUND = "FailedOperation.AddressEniInfoNotFound" +// FAILEDOPERATION_MASTERENINOTFOUND = "FailedOperation.MasterEniNotFound" +// FAILEDOPERATION_TASKFAILED = "FailedOperation.TaskFailed" // INVALIDADDRESSID_BLOCKED = "InvalidAddressId.Blocked" // INVALIDADDRESSID_NOTFOUND = "InvalidAddressId.NotFound" // INVALIDADDRESSIDSTATUS_NOTPERMIT = "InvalidAddressIdStatus.NotPermit" @@ -11176,6 +12305,7 @@ func (c *Client) DisassociateAddress(request *DisassociateAddressRequest) (respo // INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" // INVALIDPARAMETERVALUE_ONLYSUPPORTEDFORMASTERNETWORKCARD = "InvalidParameterValue.OnlySupportedForMasterNetworkCard" // INVALIDPARAMETERVALUE_RESOURCENOTSUPPORT = "InvalidParameterValue.ResourceNotSupport" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" // UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" // UNSUPPORTEDOPERATION_INVALIDACTION = "UnsupportedOperation.InvalidAction" @@ -11199,6 +12329,7 @@ func NewDisassociateDhcpIpWithAddressIpRequest() (request *DisassociateDhcpIpWit request = &DisassociateDhcpIpWithAddressIpRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DisassociateDhcpIpWithAddressIp") @@ -11260,6 +12391,7 @@ func NewDisassociateDirectConnectGatewayNatGatewayRequest() (request *Disassocia request = &DisassociateDirectConnectGatewayNatGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DisassociateDirectConnectGatewayNatGateway") @@ -11315,6 +12447,7 @@ func NewDisassociateNatGatewayAddressRequest() (request *DisassociateNatGatewayA request = &DisassociateNatGatewayAddressRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DisassociateNatGatewayAddress") @@ -11368,6 +12501,7 @@ func NewDisassociateNetworkAclSubnetsRequest() (request *DisassociateNetworkAclS request = &DisassociateNetworkAclSubnetsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DisassociateNetworkAclSubnets") @@ -11421,6 +12555,7 @@ func NewDisassociateNetworkInterfaceSecurityGroupsRequest() (request *Disassocia request = &DisassociateNetworkInterfaceSecurityGroupsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DisassociateNetworkInterfaceSecurityGroups") @@ -11474,6 +12609,7 @@ func NewDisassociateVpcEndPointSecurityGroupsRequest() (request *DisassociateVpc request = &DisassociateVpcEndPointSecurityGroupsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DisassociateVpcEndPointSecurityGroups") @@ -11527,6 +12663,7 @@ func NewDownloadCustomerGatewayConfigurationRequest() (request *DownloadCustomer request = &DownloadCustomerGatewayConfigurationRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DownloadCustomerGatewayConfiguration") @@ -11578,6 +12715,7 @@ func NewDownloadVpnGatewaySslClientCertRequest() (request *DownloadVpnGatewaySsl request = &DownloadVpnGatewaySslClientCertRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "DownloadVpnGatewaySslClientCert") @@ -11597,6 +12735,7 @@ func NewDownloadVpnGatewaySslClientCertResponse() (response *DownloadVpnGatewayS // 可能返回的错误码: // INTERNALERROR = "InternalError" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_SSLVPNCLIENTIDNOTFOUND = "UnsupportedOperation.SslVpnClientIdNotFound" func (c *Client) DownloadVpnGatewaySslClientCert(request *DownloadVpnGatewaySslClientCertRequest) (response *DownloadVpnGatewaySslClientCertResponse, err error) { return c.DownloadVpnGatewaySslClientCertWithContext(context.Background(), request) } @@ -11607,6 +12746,7 @@ func (c *Client) DownloadVpnGatewaySslClientCert(request *DownloadVpnGatewaySslC // 可能返回的错误码: // INTERNALERROR = "InternalError" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_SSLVPNCLIENTIDNOTFOUND = "UnsupportedOperation.SslVpnClientIdNotFound" func (c *Client) DownloadVpnGatewaySslClientCertWithContext(ctx context.Context, request *DownloadVpnGatewaySslClientCertRequest) (response *DownloadVpnGatewaySslClientCertResponse, err error) { if request == nil { request = NewDownloadVpnGatewaySslClientCertRequest() @@ -11627,6 +12767,7 @@ func NewEnableCcnRoutesRequest() (request *EnableCcnRoutesRequest) { request = &EnableCcnRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "EnableCcnRoutes") @@ -11676,10 +12817,61 @@ func (c *Client) EnableCcnRoutesWithContext(ctx context.Context, request *Enable return } +func NewEnableFlowLogsRequest() (request *EnableFlowLogsRequest) { + request = &EnableFlowLogsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("vpc", APIVersion, "EnableFlowLogs") + + + return +} + +func NewEnableFlowLogsResponse() (response *EnableFlowLogsResponse) { + response = &EnableFlowLogsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// EnableFlowLogs +// 本接口(EnableFlowLogs)用于启动流日志。 +// +// 可能返回的错误码: +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) EnableFlowLogs(request *EnableFlowLogsRequest) (response *EnableFlowLogsResponse, err error) { + return c.EnableFlowLogsWithContext(context.Background(), request) +} + +// EnableFlowLogs +// 本接口(EnableFlowLogs)用于启动流日志。 +// +// 可能返回的错误码: +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) EnableFlowLogsWithContext(ctx context.Context, request *EnableFlowLogsRequest) (response *EnableFlowLogsResponse, err error) { + if request == nil { + request = NewEnableFlowLogsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("EnableFlowLogs require credential") + } + + request.SetContext(ctx) + + response = NewEnableFlowLogsResponse() + err = c.Send(request, response) + return +} + func NewEnableGatewayFlowMonitorRequest() (request *EnableGatewayFlowMonitorRequest) { request = &EnableGatewayFlowMonitorRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "EnableGatewayFlowMonitor") @@ -11731,6 +12923,7 @@ func NewEnableRoutesRequest() (request *EnableRoutesRequest) { request = &EnableRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "EnableRoutes") @@ -11804,6 +12997,7 @@ func NewEnableVpcEndPointConnectRequest() (request *EnableVpcEndPointConnectRequ request = &EnableVpcEndPointConnectRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "EnableVpcEndPointConnect") @@ -11857,6 +13051,7 @@ func NewEnableVpnGatewaySslClientCertRequest() (request *EnableVpnGatewaySslClie request = &EnableVpnGatewaySslClientCertRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "EnableVpnGatewaySslClientCert") @@ -11908,6 +13103,7 @@ func NewGetCcnRegionBandwidthLimitsRequest() (request *GetCcnRegionBandwidthLimi request = &GetCcnRegionBandwidthLimitsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "GetCcnRegionBandwidthLimits") @@ -11926,6 +13122,7 @@ func NewGetCcnRegionBandwidthLimitsResponse() (response *GetCcnRegionBandwidthLi // // 可能返回的错误码: // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) GetCcnRegionBandwidthLimits(request *GetCcnRegionBandwidthLimitsRequest) (response *GetCcnRegionBandwidthLimitsResponse, err error) { @@ -11937,6 +13134,7 @@ func (c *Client) GetCcnRegionBandwidthLimits(request *GetCcnRegionBandwidthLimit // // 可能返回的错误码: // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) GetCcnRegionBandwidthLimitsWithContext(ctx context.Context, request *GetCcnRegionBandwidthLimitsRequest) (response *GetCcnRegionBandwidthLimitsResponse, err error) { @@ -11959,6 +13157,7 @@ func NewHaVipAssociateAddressIpRequest() (request *HaVipAssociateAddressIpReques request = &HaVipAssociateAddressIpRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "HaVipAssociateAddressIp") @@ -11982,6 +13181,7 @@ func NewHaVipAssociateAddressIpResponse() (response *HaVipAssociateAddressIpResp // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_BINDEIP = "UnsupportedOperation.BindEIP" // UNSUPPORTEDOPERATION_MUTEXOPERATIONTASKRUNNING = "UnsupportedOperation.MutexOperationTaskRunning" +// UNSUPPORTEDOPERATION_UNSUPPORTEDBINDLOCALZONEEIP = "UnsupportedOperation.UnsupportedBindLocalZoneEIP" func (c *Client) HaVipAssociateAddressIp(request *HaVipAssociateAddressIpRequest) (response *HaVipAssociateAddressIpResponse, err error) { return c.HaVipAssociateAddressIpWithContext(context.Background(), request) } @@ -11996,6 +13196,7 @@ func (c *Client) HaVipAssociateAddressIp(request *HaVipAssociateAddressIpRequest // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_BINDEIP = "UnsupportedOperation.BindEIP" // UNSUPPORTEDOPERATION_MUTEXOPERATIONTASKRUNNING = "UnsupportedOperation.MutexOperationTaskRunning" +// UNSUPPORTEDOPERATION_UNSUPPORTEDBINDLOCALZONEEIP = "UnsupportedOperation.UnsupportedBindLocalZoneEIP" func (c *Client) HaVipAssociateAddressIpWithContext(ctx context.Context, request *HaVipAssociateAddressIpRequest) (response *HaVipAssociateAddressIpResponse, err error) { if request == nil { request = NewHaVipAssociateAddressIpRequest() @@ -12016,6 +13217,7 @@ func NewHaVipDisassociateAddressIpRequest() (request *HaVipDisassociateAddressIp request = &HaVipDisassociateAddressIpRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "HaVipDisassociateAddressIp") @@ -12075,6 +13277,7 @@ func NewInquirePriceCreateDirectConnectGatewayRequest() (request *InquirePriceCr request = &InquirePriceCreateDirectConnectGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "InquirePriceCreateDirectConnectGateway") @@ -12130,6 +13333,7 @@ func NewInquiryPriceCreateVpnGatewayRequest() (request *InquiryPriceCreateVpnGat request = &InquiryPriceCreateVpnGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "InquiryPriceCreateVpnGateway") @@ -12148,6 +13352,7 @@ func NewInquiryPriceCreateVpnGatewayResponse() (response *InquiryPriceCreateVpnG // // 可能返回的错误码: // INVALIDPARAMETERVALUE = "InvalidParameterValue" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) InquiryPriceCreateVpnGateway(request *InquiryPriceCreateVpnGatewayRequest) (response *InquiryPriceCreateVpnGatewayResponse, err error) { return c.InquiryPriceCreateVpnGatewayWithContext(context.Background(), request) } @@ -12157,6 +13362,7 @@ func (c *Client) InquiryPriceCreateVpnGateway(request *InquiryPriceCreateVpnGate // // 可能返回的错误码: // INVALIDPARAMETERVALUE = "InvalidParameterValue" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) InquiryPriceCreateVpnGatewayWithContext(ctx context.Context, request *InquiryPriceCreateVpnGatewayRequest) (response *InquiryPriceCreateVpnGatewayResponse, err error) { if request == nil { request = NewInquiryPriceCreateVpnGatewayRequest() @@ -12177,6 +13383,7 @@ func NewInquiryPriceRenewVpnGatewayRequest() (request *InquiryPriceRenewVpnGatew request = &InquiryPriceRenewVpnGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "InquiryPriceRenewVpnGateway") @@ -12228,6 +13435,7 @@ func NewInquiryPriceResetVpnGatewayInternetMaxBandwidthRequest() (request *Inqui request = &InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "InquiryPriceResetVpnGatewayInternetMaxBandwidth") @@ -12279,6 +13487,7 @@ func NewLockCcnBandwidthsRequest() (request *LockCcnBandwidthsRequest) { request = &LockCcnBandwidthsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "LockCcnBandwidths") @@ -12340,6 +13549,7 @@ func NewLockCcnsRequest() (request *LockCcnsRequest) { request = &LockCcnsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "LockCcns") @@ -12413,6 +13623,7 @@ func NewMigrateNetworkInterfaceRequest() (request *MigrateNetworkInterfaceReques request = &MigrateNetworkInterfaceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "MigrateNetworkInterface") @@ -12470,6 +13681,7 @@ func NewMigratePrivateIpAddressRequest() (request *MigratePrivateIpAddressReques request = &MigratePrivateIpAddressRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "MigratePrivateIpAddress") @@ -12496,6 +13708,7 @@ func NewMigratePrivateIpAddressResponse() (response *MigratePrivateIpAddressResp // // 可能返回的错误码: // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" // UNAUTHORIZEDOPERATION_ATTACHMENTNOTFOUND = "UnauthorizedOperation.AttachmentNotFound" // UNAUTHORIZEDOPERATION_PRIMARYIP = "UnauthorizedOperation.PrimaryIp" @@ -12519,6 +13732,7 @@ func (c *Client) MigratePrivateIpAddress(request *MigratePrivateIpAddressRequest // // 可能返回的错误码: // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" // UNAUTHORIZEDOPERATION_ATTACHMENTNOTFOUND = "UnauthorizedOperation.AttachmentNotFound" // UNAUTHORIZEDOPERATION_PRIMARYIP = "UnauthorizedOperation.PrimaryIp" @@ -12545,6 +13759,7 @@ func NewModifyAddressAttributeRequest() (request *ModifyAddressAttributeRequest) request = &ModifyAddressAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyAddressAttribute") @@ -12568,7 +13783,10 @@ func NewModifyAddressAttributeResponse() (response *ModifyAddressAttributeRespon // INVALIDPARAMETERVALUE_ADDRESSIDMALFORMED = "InvalidParameterValue.AddressIdMalformed" // INVALIDPARAMETERVALUE_ADDRESSNOTFOUND = "InvalidParameterValue.AddressNotFound" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" +// UNSUPPORTEDOPERATION_INCORRECTADDRESSRESOURCETYPE = "UnsupportedOperation.IncorrectAddressResourceType" +// UNSUPPORTEDOPERATION_MODIFYADDRESSATTRIBUTE = "UnsupportedOperation.ModifyAddressAttribute" func (c *Client) ModifyAddressAttribute(request *ModifyAddressAttributeRequest) (response *ModifyAddressAttributeResponse, err error) { return c.ModifyAddressAttributeWithContext(context.Background(), request) } @@ -12583,7 +13801,10 @@ func (c *Client) ModifyAddressAttribute(request *ModifyAddressAttributeRequest) // INVALIDPARAMETERVALUE_ADDRESSIDMALFORMED = "InvalidParameterValue.AddressIdMalformed" // INVALIDPARAMETERVALUE_ADDRESSNOTFOUND = "InvalidParameterValue.AddressNotFound" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" +// UNSUPPORTEDOPERATION_INCORRECTADDRESSRESOURCETYPE = "UnsupportedOperation.IncorrectAddressResourceType" +// UNSUPPORTEDOPERATION_MODIFYADDRESSATTRIBUTE = "UnsupportedOperation.ModifyAddressAttribute" func (c *Client) ModifyAddressAttributeWithContext(ctx context.Context, request *ModifyAddressAttributeRequest) (response *ModifyAddressAttributeResponse, err error) { if request == nil { request = NewModifyAddressAttributeRequest() @@ -12604,6 +13825,7 @@ func NewModifyAddressInternetChargeTypeRequest() (request *ModifyAddressInternet request = &ModifyAddressInternetChargeTypeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyAddressInternetChargeType") @@ -12639,8 +13861,10 @@ func NewModifyAddressInternetChargeTypeResponse() (response *ModifyAddressIntern // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // LIMITEXCEEDED = "LimitExceeded" // LIMITEXCEEDED_MODIFYADDRESSINTERNETCHARGETYPEQUOTA = "LimitExceeded.ModifyAddressInternetChargeTypeQuota" +// OPERATIONDENIED_ADDRESSINARREARS = "OperationDenied.AddressInArrears" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" // UNSUPPORTEDOPERATION_INVALIDACTION = "UnsupportedOperation.InvalidAction" +// UNSUPPORTEDOPERATION_INVALIDADDRESSINTERNETCHARGETYPE = "UnsupportedOperation.InvalidAddressInternetChargeType" // UNSUPPORTEDOPERATION_NATNOTSUPPORTED = "UnsupportedOperation.NatNotSupported" func (c *Client) ModifyAddressInternetChargeType(request *ModifyAddressInternetChargeTypeRequest) (response *ModifyAddressInternetChargeTypeResponse, err error) { return c.ModifyAddressInternetChargeTypeWithContext(context.Background(), request) @@ -12668,8 +13892,10 @@ func (c *Client) ModifyAddressInternetChargeType(request *ModifyAddressInternetC // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // LIMITEXCEEDED = "LimitExceeded" // LIMITEXCEEDED_MODIFYADDRESSINTERNETCHARGETYPEQUOTA = "LimitExceeded.ModifyAddressInternetChargeTypeQuota" +// OPERATIONDENIED_ADDRESSINARREARS = "OperationDenied.AddressInArrears" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" // UNSUPPORTEDOPERATION_INVALIDACTION = "UnsupportedOperation.InvalidAction" +// UNSUPPORTEDOPERATION_INVALIDADDRESSINTERNETCHARGETYPE = "UnsupportedOperation.InvalidAddressInternetChargeType" // UNSUPPORTEDOPERATION_NATNOTSUPPORTED = "UnsupportedOperation.NatNotSupported" func (c *Client) ModifyAddressInternetChargeTypeWithContext(ctx context.Context, request *ModifyAddressInternetChargeTypeRequest) (response *ModifyAddressInternetChargeTypeResponse, err error) { if request == nil { @@ -12691,6 +13917,7 @@ func NewModifyAddressTemplateAttributeRequest() (request *ModifyAddressTemplateA request = &ModifyAddressTemplateAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyAddressTemplateAttribute") @@ -12750,6 +13977,7 @@ func NewModifyAddressTemplateGroupAttributeRequest() (request *ModifyAddressTemp request = &ModifyAddressTemplateGroupAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyAddressTemplateGroupAttribute") @@ -12809,6 +14037,7 @@ func NewModifyAddressesBandwidthRequest() (request *ModifyAddressesBandwidthRequ request = &ModifyAddressesBandwidthRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyAddressesBandwidth") @@ -12840,6 +14069,7 @@ func NewModifyAddressesBandwidthResponse() (response *ModifyAddressesBandwidthRe // INVALIDPARAMETERVALUE_RESOURCEEXPIRED = "InvalidParameterValue.ResourceExpired" // INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted" // INVALIDPARAMETERVALUE_RESOURCENOTSUPPORT = "InvalidParameterValue.ResourceNotSupport" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" // UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" // UNSUPPORTEDOPERATION_INSTANCESTATENOTSUPPORTED = "UnsupportedOperation.InstanceStateNotSupported" @@ -12865,6 +14095,7 @@ func (c *Client) ModifyAddressesBandwidth(request *ModifyAddressesBandwidthReque // INVALIDPARAMETERVALUE_RESOURCEEXPIRED = "InvalidParameterValue.ResourceExpired" // INVALIDPARAMETERVALUE_RESOURCENOTEXISTED = "InvalidParameterValue.ResourceNotExisted" // INVALIDPARAMETERVALUE_RESOURCENOTSUPPORT = "InvalidParameterValue.ResourceNotSupport" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" // UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" // UNSUPPORTEDOPERATION_INSTANCESTATENOTSUPPORTED = "UnsupportedOperation.InstanceStateNotSupported" @@ -12888,6 +14119,7 @@ func NewModifyAssistantCidrRequest() (request *ModifyAssistantCidrRequest) { request = &ModifyAssistantCidrRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyAssistantCidr") @@ -12955,6 +14187,7 @@ func NewModifyBandwidthPackageAttributeRequest() (request *ModifyBandwidthPackag request = &ModifyBandwidthPackageAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyBandwidthPackageAttribute") @@ -13008,6 +14241,7 @@ func NewModifyCcnAttachedInstancesAttributeRequest() (request *ModifyCcnAttached request = &ModifyCcnAttachedInstancesAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyCcnAttachedInstancesAttribute") @@ -13065,6 +14299,7 @@ func NewModifyCcnAttributeRequest() (request *ModifyCcnAttributeRequest) { request = &ModifyCcnAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyCcnAttribute") @@ -13114,6 +14349,7 @@ func NewModifyCcnRegionBandwidthLimitsTypeRequest() (request *ModifyCcnRegionBan request = &ModifyCcnRegionBandwidthLimitsTypeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyCcnRegionBandwidthLimitsType") @@ -13171,6 +14407,7 @@ func NewModifyCustomerGatewayAttributeRequest() (request *ModifyCustomerGatewayA request = &ModifyCustomerGatewayAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyCustomerGatewayAttribute") @@ -13222,6 +14459,7 @@ func NewModifyDhcpIpAttributeRequest() (request *ModifyDhcpIpAttributeRequest) { request = &ModifyDhcpIpAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyDhcpIpAttribute") @@ -13275,6 +14513,7 @@ func NewModifyDirectConnectGatewayAttributeRequest() (request *ModifyDirectConne request = &ModifyDirectConnectGatewayAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyDirectConnectGatewayAttribute") @@ -13297,6 +14536,7 @@ func NewModifyDirectConnectGatewayAttributeResponse() (response *ModifyDirectCon // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" // UNSUPPORTEDOPERATION_DIRECTCONNECTGATEWAYISUPDATINGCOMMUNITY = "UnsupportedOperation.DirectConnectGatewayIsUpdatingCommunity" func (c *Client) ModifyDirectConnectGatewayAttribute(request *ModifyDirectConnectGatewayAttributeRequest) (response *ModifyDirectConnectGatewayAttributeResponse, err error) { return c.ModifyDirectConnectGatewayAttributeWithContext(context.Background(), request) @@ -13311,6 +14551,7 @@ func (c *Client) ModifyDirectConnectGatewayAttribute(request *ModifyDirectConnec // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" // UNSUPPORTEDOPERATION_DIRECTCONNECTGATEWAYISUPDATINGCOMMUNITY = "UnsupportedOperation.DirectConnectGatewayIsUpdatingCommunity" func (c *Client) ModifyDirectConnectGatewayAttributeWithContext(ctx context.Context, request *ModifyDirectConnectGatewayAttributeRequest) (response *ModifyDirectConnectGatewayAttributeResponse, err error) { if request == nil { @@ -13332,6 +14573,7 @@ func NewModifyFlowLogAttributeRequest() (request *ModifyFlowLogAttributeRequest) request = &ModifyFlowLogAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyFlowLogAttribute") @@ -13383,6 +14625,7 @@ func NewModifyGatewayFlowQosRequest() (request *ModifyGatewayFlowQosRequest) { request = &ModifyGatewayFlowQosRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyGatewayFlowQos") @@ -13434,6 +14677,7 @@ func NewModifyHaVipAttributeRequest() (request *ModifyHaVipAttributeRequest) { request = &ModifyHaVipAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyHaVipAttribute") @@ -13489,6 +14733,7 @@ func NewModifyIp6AddressesBandwidthRequest() (request *ModifyIp6AddressesBandwid request = &ModifyIp6AddressesBandwidthRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyIp6AddressesBandwidth") @@ -13564,6 +14809,7 @@ func NewModifyIp6RuleRequest() (request *ModifyIp6RuleRequest) { request = &ModifyIp6RuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyIp6Rule") @@ -13617,6 +14863,7 @@ func NewModifyIp6TranslatorRequest() (request *ModifyIp6TranslatorRequest) { request = &ModifyIp6TranslatorRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyIp6Translator") @@ -13666,6 +14913,7 @@ func NewModifyIpv6AddressesAttributeRequest() (request *ModifyIpv6AddressesAttri request = &ModifyIpv6AddressesAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyIpv6AddressesAttribute") @@ -13719,6 +14967,7 @@ func NewModifyLocalGatewayRequest() (request *ModifyLocalGatewayRequest) { request = &ModifyLocalGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyLocalGateway") @@ -13776,6 +15025,7 @@ func NewModifyNatGatewayAttributeRequest() (request *ModifyNatGatewayAttributeRe request = &ModifyNatGatewayAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNatGatewayAttribute") @@ -13831,6 +15081,7 @@ func NewModifyNatGatewayDestinationIpPortTranslationNatRuleRequest() (request *M request = &ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNatGatewayDestinationIpPortTranslationNatRule") @@ -13886,6 +15137,7 @@ func NewModifyNatGatewaySourceIpTranslationNatRuleRequest() (request *ModifyNatG request = &ModifyNatGatewaySourceIpTranslationNatRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNatGatewaySourceIpTranslationNatRule") @@ -13945,6 +15197,7 @@ func NewModifyNetDetectRequest() (request *ModifyNetDetectRequest) { request = &ModifyNetDetectRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNetDetect") @@ -14012,6 +15265,7 @@ func NewModifyNetworkAclAttributeRequest() (request *ModifyNetworkAclAttributeRe request = &ModifyNetworkAclAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNetworkAclAttribute") @@ -14065,6 +15319,7 @@ func NewModifyNetworkAclEntriesRequest() (request *ModifyNetworkAclEntriesReques request = &ModifyNetworkAclEntriesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNetworkAclEntries") @@ -14130,10 +15385,73 @@ func (c *Client) ModifyNetworkAclEntriesWithContext(ctx context.Context, request return } +func NewModifyNetworkAclQuintupleEntriesRequest() (request *ModifyNetworkAclQuintupleEntriesRequest) { + request = &ModifyNetworkAclQuintupleEntriesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNetworkAclQuintupleEntries") + + + return +} + +func NewModifyNetworkAclQuintupleEntriesResponse() (response *ModifyNetworkAclQuintupleEntriesResponse) { + response = &ModifyNetworkAclQuintupleEntriesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// ModifyNetworkAclQuintupleEntries +// 本接口(ModifyNetworkAclQuintupleEntries)用于修改网络ACL五元组的入站规则和出站规则。在NetworkAclQuintupleEntrySet参数中:NetworkAclQuintupleEntry需要提供NetworkAclQuintupleEntryId。 +// +// 可能返回的错误码: +// INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" +func (c *Client) ModifyNetworkAclQuintupleEntries(request *ModifyNetworkAclQuintupleEntriesRequest) (response *ModifyNetworkAclQuintupleEntriesResponse, err error) { + return c.ModifyNetworkAclQuintupleEntriesWithContext(context.Background(), request) +} + +// ModifyNetworkAclQuintupleEntries +// 本接口(ModifyNetworkAclQuintupleEntries)用于修改网络ACL五元组的入站规则和出站规则。在NetworkAclQuintupleEntrySet参数中:NetworkAclQuintupleEntry需要提供NetworkAclQuintupleEntryId。 +// +// 可能返回的错误码: +// INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" +func (c *Client) ModifyNetworkAclQuintupleEntriesWithContext(ctx context.Context, request *ModifyNetworkAclQuintupleEntriesRequest) (response *ModifyNetworkAclQuintupleEntriesResponse, err error) { + if request == nil { + request = NewModifyNetworkAclQuintupleEntriesRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyNetworkAclQuintupleEntries require credential") + } + + request.SetContext(ctx) + + response = NewModifyNetworkAclQuintupleEntriesResponse() + err = c.Send(request, response) + return +} + func NewModifyNetworkInterfaceAttributeRequest() (request *ModifyNetworkInterfaceAttributeRequest) { request = &ModifyNetworkInterfaceAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNetworkInterfaceAttribute") @@ -14156,6 +15474,7 @@ func NewModifyNetworkInterfaceAttributeResponse() (response *ModifyNetworkInterf // LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_SUBENINOTSUPPORTTRUNKING = "UnsupportedOperation.SubEniNotSupportTrunking" func (c *Client) ModifyNetworkInterfaceAttribute(request *ModifyNetworkInterfaceAttributeRequest) (response *ModifyNetworkInterfaceAttributeResponse, err error) { return c.ModifyNetworkInterfaceAttributeWithContext(context.Background(), request) } @@ -14169,6 +15488,7 @@ func (c *Client) ModifyNetworkInterfaceAttribute(request *ModifyNetworkInterface // LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_SUBENINOTSUPPORTTRUNKING = "UnsupportedOperation.SubEniNotSupportTrunking" func (c *Client) ModifyNetworkInterfaceAttributeWithContext(ctx context.Context, request *ModifyNetworkInterfaceAttributeRequest) (response *ModifyNetworkInterfaceAttributeResponse, err error) { if request == nil { request = NewModifyNetworkInterfaceAttributeRequest() @@ -14189,6 +15509,7 @@ func NewModifyNetworkInterfaceQosRequest() (request *ModifyNetworkInterfaceQosRe request = &ModifyNetworkInterfaceQosRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyNetworkInterfaceQos") @@ -14242,6 +15563,7 @@ func NewModifyPrivateIpAddressesAttributeRequest() (request *ModifyPrivateIpAddr request = &ModifyPrivateIpAddressesAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyPrivateIpAddressesAttribute") @@ -14293,6 +15615,7 @@ func NewModifyRouteTableAttributeRequest() (request *ModifyRouteTableAttributeRe request = &ModifyRouteTableAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyRouteTableAttribute") @@ -14342,6 +15665,7 @@ func NewModifySecurityGroupAttributeRequest() (request *ModifySecurityGroupAttri request = &ModifySecurityGroupAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifySecurityGroupAttribute") @@ -14395,6 +15719,7 @@ func NewModifySecurityGroupPoliciesRequest() (request *ModifySecurityGroupPolici request = &ModifySecurityGroupPoliciesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifySecurityGroupPolicies") @@ -14514,6 +15839,7 @@ func NewModifyServiceTemplateAttributeRequest() (request *ModifyServiceTemplateA request = &ModifyServiceTemplateAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyServiceTemplateAttribute") @@ -14533,6 +15859,7 @@ func NewModifyServiceTemplateAttributeResponse() (response *ModifyServiceTemplat // 可能返回的错误码: // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_MUTEXOPERATIONTASKRUNNING = "UnsupportedOperation.MutexOperationTaskRunning" @@ -14546,6 +15873,7 @@ func (c *Client) ModifyServiceTemplateAttribute(request *ModifyServiceTemplateAt // 可能返回的错误码: // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_MUTEXOPERATIONTASKRUNNING = "UnsupportedOperation.MutexOperationTaskRunning" @@ -14569,6 +15897,7 @@ func NewModifyServiceTemplateGroupAttributeRequest() (request *ModifyServiceTemp request = &ModifyServiceTemplateGroupAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyServiceTemplateGroupAttribute") @@ -14589,6 +15918,7 @@ func NewModifyServiceTemplateGroupAttributeResponse() (response *ModifyServiceTe // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_MUTEXOPERATIONTASKRUNNING = "UnsupportedOperation.MutexOperationTaskRunning" func (c *Client) ModifyServiceTemplateGroupAttribute(request *ModifyServiceTemplateGroupAttributeRequest) (response *ModifyServiceTemplateGroupAttributeResponse, err error) { return c.ModifyServiceTemplateGroupAttributeWithContext(context.Background(), request) } @@ -14600,6 +15930,7 @@ func (c *Client) ModifyServiceTemplateGroupAttribute(request *ModifyServiceTempl // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_MUTEXOPERATIONTASKRUNNING = "UnsupportedOperation.MutexOperationTaskRunning" func (c *Client) ModifyServiceTemplateGroupAttributeWithContext(ctx context.Context, request *ModifyServiceTemplateGroupAttributeRequest) (response *ModifyServiceTemplateGroupAttributeResponse, err error) { if request == nil { request = NewModifyServiceTemplateGroupAttributeRequest() @@ -14620,6 +15951,7 @@ func NewModifySubnetAttributeRequest() (request *ModifySubnetAttributeRequest) { request = &ModifySubnetAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifySubnetAttribute") @@ -14669,6 +16001,7 @@ func NewModifyTemplateMemberRequest() (request *ModifyTemplateMemberRequest) { request = &ModifyTemplateMemberRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyTemplateMember") @@ -14722,6 +16055,7 @@ func NewModifyVpcAttributeRequest() (request *ModifyVpcAttributeRequest) { request = &ModifyVpcAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyVpcAttribute") @@ -14743,6 +16077,8 @@ func NewModifyVpcAttributeResponse() (response *ModifyVpcAttributeResponse) { // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNSUPPORTEDOPERATION_NOTSUPPORTEDUPDATECCNROUTEPUBLISH = "UnsupportedOperation.NotSupportedUpdateCcnRoutePublish" func (c *Client) ModifyVpcAttribute(request *ModifyVpcAttributeRequest) (response *ModifyVpcAttributeResponse, err error) { return c.ModifyVpcAttributeWithContext(context.Background(), request) } @@ -14755,6 +16091,8 @@ func (c *Client) ModifyVpcAttribute(request *ModifyVpcAttributeRequest) (respons // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNSUPPORTEDOPERATION_NOTSUPPORTEDUPDATECCNROUTEPUBLISH = "UnsupportedOperation.NotSupportedUpdateCcnRoutePublish" func (c *Client) ModifyVpcAttributeWithContext(ctx context.Context, request *ModifyVpcAttributeRequest) (response *ModifyVpcAttributeResponse, err error) { if request == nil { request = NewModifyVpcAttributeRequest() @@ -14775,6 +16113,7 @@ func NewModifyVpcEndPointAttributeRequest() (request *ModifyVpcEndPointAttribute request = &ModifyVpcEndPointAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyVpcEndPointAttribute") @@ -14838,6 +16177,7 @@ func NewModifyVpcEndPointServiceAttributeRequest() (request *ModifyVpcEndPointSe request = &ModifyVpcEndPointServiceAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyVpcEndPointServiceAttribute") @@ -14862,6 +16202,7 @@ func NewModifyVpcEndPointServiceAttributeResponse() (response *ModifyVpcEndPoint // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_VPCMISMATCH = "UnsupportedOperation.VpcMismatch" func (c *Client) ModifyVpcEndPointServiceAttribute(request *ModifyVpcEndPointServiceAttributeRequest) (response *ModifyVpcEndPointServiceAttributeResponse, err error) { return c.ModifyVpcEndPointServiceAttributeWithContext(context.Background(), request) @@ -14878,6 +16219,7 @@ func (c *Client) ModifyVpcEndPointServiceAttribute(request *ModifyVpcEndPointSer // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_VPCMISMATCH = "UnsupportedOperation.VpcMismatch" func (c *Client) ModifyVpcEndPointServiceAttributeWithContext(ctx context.Context, request *ModifyVpcEndPointServiceAttributeRequest) (response *ModifyVpcEndPointServiceAttributeResponse, err error) { if request == nil { @@ -14899,6 +16241,7 @@ func NewModifyVpcEndPointServiceWhiteListRequest() (request *ModifyVpcEndPointSe request = &ModifyVpcEndPointServiceWhiteListRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyVpcEndPointServiceWhiteList") @@ -14952,6 +16295,7 @@ func NewModifyVpnConnectionAttributeRequest() (request *ModifyVpnConnectionAttri request = &ModifyVpnConnectionAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyVpnConnectionAttribute") @@ -14971,6 +16315,7 @@ func NewModifyVpnConnectionAttributeResponse() (response *ModifyVpnConnectionAtt // 可能返回的错误码: // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_VPNCONNCIDRCONFLICT = "InvalidParameterValue.VpnConnCidrConflict" +// INVALIDPARAMETERVALUE_VPNCONNHEALTHCHECKIPCONFLICT = "InvalidParameterValue.VpnConnHealthCheckIpConflict" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) ModifyVpnConnectionAttribute(request *ModifyVpnConnectionAttributeRequest) (response *ModifyVpnConnectionAttributeResponse, err error) { return c.ModifyVpnConnectionAttributeWithContext(context.Background(), request) @@ -14982,6 +16327,7 @@ func (c *Client) ModifyVpnConnectionAttribute(request *ModifyVpnConnectionAttrib // 可能返回的错误码: // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_VPNCONNCIDRCONFLICT = "InvalidParameterValue.VpnConnCidrConflict" +// INVALIDPARAMETERVALUE_VPNCONNHEALTHCHECKIPCONFLICT = "InvalidParameterValue.VpnConnHealthCheckIpConflict" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) ModifyVpnConnectionAttributeWithContext(ctx context.Context, request *ModifyVpnConnectionAttributeRequest) (response *ModifyVpnConnectionAttributeResponse, err error) { if request == nil { @@ -15003,6 +16349,7 @@ func NewModifyVpnGatewayAttributeRequest() (request *ModifyVpnGatewayAttributeRe request = &ModifyVpnGatewayAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyVpnGatewayAttribute") @@ -15056,6 +16403,7 @@ func NewModifyVpnGatewayCcnRoutesRequest() (request *ModifyVpnGatewayCcnRoutesRe request = &ModifyVpnGatewayCcnRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyVpnGatewayCcnRoutes") @@ -15105,6 +16453,7 @@ func NewModifyVpnGatewayRoutesRequest() (request *ModifyVpnGatewayRoutesRequest) request = &ModifyVpnGatewayRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ModifyVpnGatewayRoutes") @@ -15162,6 +16511,7 @@ func NewNotifyRoutesRequest() (request *NotifyRoutesRequest) { request = &NotifyRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "NotifyRoutes") @@ -15227,6 +16577,7 @@ func NewRefreshDirectConnectGatewayRouteToNatGatewayRequest() (request *RefreshD request = &RefreshDirectConnectGatewayRouteToNatGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "RefreshDirectConnectGatewayRouteToNatGateway") @@ -15280,6 +16631,7 @@ func NewRejectAttachCcnInstancesRequest() (request *RejectAttachCcnInstancesRequ request = &RejectAttachCcnInstancesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "RejectAttachCcnInstances") @@ -15339,6 +16691,7 @@ func NewReleaseAddressesRequest() (request *ReleaseAddressesRequest) { request = &ReleaseAddressesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ReleaseAddresses") @@ -15360,6 +16713,7 @@ func NewReleaseAddressesResponse() (response *ReleaseAddressesResponse) { // * 只有状态为 UNBIND 的 EIP 才能进行释放操作。 // // 可能返回的错误码: +// FAILEDOPERATION_TASKFAILED = "FailedOperation.TaskFailed" // INVALIDADDRESSID_BLOCKED = "InvalidAddressId.Blocked" // INVALIDADDRESSID_NOTFOUND = "InvalidAddressId.NotFound" // INVALIDADDRESSSTATE = "InvalidAddressState" @@ -15368,6 +16722,7 @@ func NewReleaseAddressesResponse() (response *ReleaseAddressesResponse) { // INVALIDPARAMETERVALUE_ADDRESSNOTEIP = "InvalidParameterValue.AddressNotEIP" // INVALIDPARAMETERVALUE_ADDRESSNOTFOUND = "InvalidParameterValue.AddressNotFound" // LIMITEXCEEDED_ACCOUNTRETURNQUOTA = "LimitExceeded.AccountReturnQuota" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" func (c *Client) ReleaseAddresses(request *ReleaseAddressesRequest) (response *ReleaseAddressesResponse, err error) { return c.ReleaseAddressesWithContext(context.Background(), request) @@ -15381,6 +16736,7 @@ func (c *Client) ReleaseAddresses(request *ReleaseAddressesRequest) (response *R // * 只有状态为 UNBIND 的 EIP 才能进行释放操作。 // // 可能返回的错误码: +// FAILEDOPERATION_TASKFAILED = "FailedOperation.TaskFailed" // INVALIDADDRESSID_BLOCKED = "InvalidAddressId.Blocked" // INVALIDADDRESSID_NOTFOUND = "InvalidAddressId.NotFound" // INVALIDADDRESSSTATE = "InvalidAddressState" @@ -15389,6 +16745,7 @@ func (c *Client) ReleaseAddresses(request *ReleaseAddressesRequest) (response *R // INVALIDPARAMETERVALUE_ADDRESSNOTEIP = "InvalidParameterValue.AddressNotEIP" // INVALIDPARAMETERVALUE_ADDRESSNOTFOUND = "InvalidParameterValue.AddressNotFound" // LIMITEXCEEDED_ACCOUNTRETURNQUOTA = "LimitExceeded.AccountReturnQuota" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" func (c *Client) ReleaseAddressesWithContext(ctx context.Context, request *ReleaseAddressesRequest) (response *ReleaseAddressesResponse, err error) { if request == nil { @@ -15410,6 +16767,7 @@ func NewReleaseIp6AddressesBandwidthRequest() (request *ReleaseIp6AddressesBandw request = &ReleaseIp6AddressesBandwidthRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ReleaseIp6AddressesBandwidth") @@ -15473,6 +16831,7 @@ func NewRemoveBandwidthPackageResourcesRequest() (request *RemoveBandwidthPackag request = &RemoveBandwidthPackageResourcesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "RemoveBandwidthPackageResources") @@ -15532,6 +16891,7 @@ func NewRemoveIp6RulesRequest() (request *RemoveIp6RulesRequest) { request = &RemoveIp6RulesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "RemoveIp6Rules") @@ -15585,6 +16945,7 @@ func NewRenewAddressesRequest() (request *RenewAddressesRequest) { request = &RenewAddressesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "RenewAddresses") @@ -15603,6 +16964,7 @@ func NewRenewAddressesResponse() (response *RenewAddressesResponse) { // // 可能返回的错误码: // INVALIDADDRESSID_NOTFOUND = "InvalidAddressId.NotFound" +// UNSUPPORTEDOPERATION_INVALIDADDRESSINTERNETCHARGETYPE = "UnsupportedOperation.InvalidAddressInternetChargeType" func (c *Client) RenewAddresses(request *RenewAddressesRequest) (response *RenewAddressesResponse, err error) { return c.RenewAddressesWithContext(context.Background(), request) } @@ -15612,6 +16974,7 @@ func (c *Client) RenewAddresses(request *RenewAddressesRequest) (response *Renew // // 可能返回的错误码: // INVALIDADDRESSID_NOTFOUND = "InvalidAddressId.NotFound" +// UNSUPPORTEDOPERATION_INVALIDADDRESSINTERNETCHARGETYPE = "UnsupportedOperation.InvalidAddressInternetChargeType" func (c *Client) RenewAddressesWithContext(ctx context.Context, request *RenewAddressesRequest) (response *RenewAddressesResponse, err error) { if request == nil { request = NewRenewAddressesRequest() @@ -15632,6 +16995,7 @@ func NewRenewVpnGatewayRequest() (request *RenewVpnGatewayRequest) { request = &RenewVpnGatewayRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "RenewVpnGateway") @@ -15681,6 +17045,7 @@ func NewReplaceDirectConnectGatewayCcnRoutesRequest() (request *ReplaceDirectCon request = &ReplaceDirectConnectGatewayCcnRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ReplaceDirectConnectGatewayCcnRoutes") @@ -15730,6 +17095,7 @@ func NewReplaceRouteTableAssociationRequest() (request *ReplaceRouteTableAssocia request = &ReplaceRouteTableAssociationRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ReplaceRouteTableAssociation") @@ -15785,6 +17151,7 @@ func NewReplaceRoutesRequest() (request *ReplaceRoutesRequest) { request = &ReplaceRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ReplaceRoutes") @@ -15858,6 +17225,7 @@ func NewReplaceSecurityGroupPolicyRequest() (request *ReplaceSecurityGroupPolicy request = &ReplaceSecurityGroupPolicyRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ReplaceSecurityGroupPolicy") @@ -15880,6 +17248,7 @@ func NewReplaceSecurityGroupPolicyResponse() (response *ReplaceSecurityGroupPoli // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETERVALUE = "InvalidParameterValue" +// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" @@ -15900,6 +17269,7 @@ func (c *Client) ReplaceSecurityGroupPolicy(request *ReplaceSecurityGroupPolicyR // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETERVALUE = "InvalidParameterValue" +// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // LIMITEXCEEDED = "LimitExceeded" @@ -15927,6 +17297,7 @@ func NewResetAttachCcnInstancesRequest() (request *ResetAttachCcnInstancesReques request = &ResetAttachCcnInstancesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ResetAttachCcnInstances") @@ -15976,6 +17347,7 @@ func NewResetNatGatewayConnectionRequest() (request *ResetNatGatewayConnectionRe request = &ResetNatGatewayConnectionRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ResetNatGatewayConnection") @@ -16027,6 +17399,7 @@ func NewResetRoutesRequest() (request *ResetRoutesRequest) { request = &ResetRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ResetRoutes") @@ -16092,6 +17465,7 @@ func NewResetVpnConnectionRequest() (request *ResetVpnConnectionRequest) { request = &ResetVpnConnectionRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ResetVpnConnection") @@ -16141,6 +17515,7 @@ func NewResetVpnGatewayInternetMaxBandwidthRequest() (request *ResetVpnGatewayIn request = &ResetVpnGatewayInternetMaxBandwidthRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "ResetVpnGatewayInternetMaxBandwidth") @@ -16194,6 +17569,7 @@ func NewSetCcnRegionBandwidthLimitsRequest() (request *SetCcnRegionBandwidthLimi request = &SetCcnRegionBandwidthLimitsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "SetCcnRegionBandwidthLimits") @@ -16245,6 +17621,7 @@ func NewTransformAddressRequest() (request *TransformAddressRequest) { request = &TransformAddressRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "TransformAddress") @@ -16270,10 +17647,13 @@ func NewTransformAddressResponse() (response *TransformAddressResponse) { // INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported" // INVALIDINSTANCEID_ALREADYBINDEIP = "InvalidInstanceId.AlreadyBindEip" // INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" +// INVALIDPARAMETERVALUE_INSTANCEHASNOWANIP = "InvalidParameterValue.InstanceHasNoWanIP" // INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" // INVALIDPARAMETERVALUE_INSTANCENOWANIP = "InvalidParameterValue.InstanceNoWanIP" // INVALIDPARAMETERVALUE_INVALIDINSTANCESTATE = "InvalidParameterValue.InvalidInstanceState" // LIMITEXCEEDED_MONTHLYADDRESSRECOVERYQUOTA = "LimitExceeded.MonthlyAddressRecoveryQuota" +// OPERATIONDENIED_ADDRESSINARREARS = "OperationDenied.AddressInArrears" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" // UNSUPPORTEDOPERATION_INVALIDADDRESSINTERNETCHARGETYPE = "UnsupportedOperation.InvalidAddressInternetChargeType" func (c *Client) TransformAddress(request *TransformAddressRequest) (response *TransformAddressResponse, err error) { @@ -16292,10 +17672,13 @@ func (c *Client) TransformAddress(request *TransformAddressRequest) (response *T // INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported" // INVALIDINSTANCEID_ALREADYBINDEIP = "InvalidInstanceId.AlreadyBindEip" // INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound" +// INVALIDPARAMETERVALUE_INSTANCEHASNOWANIP = "InvalidParameterValue.InstanceHasNoWanIP" // INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = "InvalidParameterValue.InstanceIdMalformed" // INVALIDPARAMETERVALUE_INSTANCENOWANIP = "InvalidParameterValue.InstanceNoWanIP" // INVALIDPARAMETERVALUE_INVALIDINSTANCESTATE = "InvalidParameterValue.InvalidInstanceState" // LIMITEXCEEDED_MONTHLYADDRESSRECOVERYQUOTA = "LimitExceeded.MonthlyAddressRecoveryQuota" +// OPERATIONDENIED_ADDRESSINARREARS = "OperationDenied.AddressInArrears" +// OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" // UNSUPPORTEDOPERATION_ADDRESSSTATUSNOTPERMIT = "UnsupportedOperation.AddressStatusNotPermit" // UNSUPPORTEDOPERATION_INVALIDADDRESSINTERNETCHARGETYPE = "UnsupportedOperation.InvalidAddressInternetChargeType" func (c *Client) TransformAddressWithContext(ctx context.Context, request *TransformAddressRequest) (response *TransformAddressResponse, err error) { @@ -16318,6 +17701,7 @@ func NewUnassignIpv6AddressesRequest() (request *UnassignIpv6AddressesRequest) { request = &UnassignIpv6AddressesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "UnassignIpv6Addresses") @@ -16381,6 +17765,7 @@ func NewUnassignIpv6CidrBlockRequest() (request *UnassignIpv6CidrBlockRequest) { request = &UnassignIpv6CidrBlockRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "UnassignIpv6CidrBlock") @@ -16436,6 +17821,7 @@ func NewUnassignIpv6SubnetCidrBlockRequest() (request *UnassignIpv6SubnetCidrBlo request = &UnassignIpv6SubnetCidrBlockRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "UnassignIpv6SubnetCidrBlock") @@ -16491,6 +17877,7 @@ func NewUnassignPrivateIpAddressesRequest() (request *UnassignPrivateIpAddresses request = &UnassignPrivateIpAddressesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "UnassignPrivateIpAddresses") @@ -16562,6 +17949,7 @@ func NewUnlockCcnBandwidthsRequest() (request *UnlockCcnBandwidthsRequest) { request = &UnlockCcnBandwidthsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "UnlockCcnBandwidths") @@ -16625,6 +18013,7 @@ func NewUnlockCcnsRequest() (request *UnlockCcnsRequest) { request = &UnlockCcnsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "UnlockCcns") @@ -16698,6 +18087,7 @@ func NewWithdrawNotifyRoutesRequest() (request *WithdrawNotifyRoutesRequest) { request = &WithdrawNotifyRoutesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("vpc", APIVersion, "WithdrawNotifyRoutes") diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312/errors.go index 74230fc7f9..b229a0780e 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312/errors.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312/errors.go @@ -29,18 +29,30 @@ const ( // 地址没有弹性网卡信息。 FAILEDOPERATION_ADDRESSENIINFONOTFOUND = "FailedOperation.AddressEniInfoNotFound" + // 账户余额不足。 + FAILEDOPERATION_BALANCEINSUFFICIENT = "FailedOperation.BalanceInsufficient" + // 不支持的地域。 FAILEDOPERATION_INVALIDREGION = "FailedOperation.InvalidRegion" + // 未找到实例的主网卡。 + FAILEDOPERATION_MASTERENINOTFOUND = "FailedOperation.MasterEniNotFound" + // 网络探测超时,请稍后重试。 FAILEDOPERATION_NETDETECTTIMEOUT = "FailedOperation.NetDetectTimeOut" + // 任务执行失败。 + FAILEDOPERATION_TASKFAILED = "FailedOperation.TaskFailed" + // 内部错误。 INTERNALERROR = "InternalError" // 创建Ckafka路由失败,请稍后重试。 INTERNALERROR_CREATECKAFKAROUTEERROR = "InternalError.CreateCkafkaRouteError" + // 内部模块错误。 + INTERNALERROR_MODULEERROR = "InternalError.ModuleError" + // 操作内部错误。 INTERNALSERVERERROR = "InternalServerError" @@ -161,6 +173,9 @@ const ( // 目的网段不在对端VPC的CIDR范围内。 INVALIDPARAMETERVALUE_CIDRNOTINPEERVPC = "InvalidParameterValue.CidrNotInPeerVpc" + // 指定CIDR不在SSL-VPN所属私有网络CIDR内。 + INVALIDPARAMETERVALUE_CIDRNOTINSSLVPNVPC = "InvalidParameterValue.CidrNotInSslVpnVpc" + // 非法入参组合。 INVALIDPARAMETERVALUE_COMBINATION = "InvalidParameterValue.Combination" @@ -185,6 +200,9 @@ const ( // 该实例不支持AnycastEIP。 INVALIDPARAMETERVALUE_INSTANCEDOESNOTSUPPORTANYCAST = "InvalidParameterValue.InstanceDoesNotSupportAnycast" + // 实例不存在公网IP。 + INVALIDPARAMETERVALUE_INSTANCEHASNOWANIP = "InvalidParameterValue.InstanceHasNoWanIP" + // 该实例已有WanIP。 INVALIDPARAMETERVALUE_INSTANCEHASWANIP = "InvalidParameterValue.InstanceHasWanIP" @@ -293,15 +311,51 @@ const ( // 子网CIDR冲突。 INVALIDPARAMETERVALUE_SUBNETCONFLICT = "InvalidParameterValue.SubnetConflict" + // CIDR与同一个私有网络内的另一个子网发生重叠。 + INVALIDPARAMETERVALUE_SUBNETOVERLAP = "InvalidParameterValue.SubnetOverlap" + // 子网与辅助Cidr网段重叠。 INVALIDPARAMETERVALUE_SUBNETOVERLAPASSISTCIDR = "InvalidParameterValue.SubnetOverlapAssistCidr" // 子网CIDR不合法。 INVALIDPARAMETERVALUE_SUBNETRANGE = "InvalidParameterValue.SubnetRange" + // 标签键重复。 + INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" + + // 重复的标签资源类型。 + INVALIDPARAMETERVALUE_TAGDUPLICATERESOURCETYPE = "InvalidParameterValue.TagDuplicateResourceType" + + // 标签键无效。 + INVALIDPARAMETERVALUE_TAGINVALIDKEY = "InvalidParameterValue.TagInvalidKey" + + // 标签键长度无效。 + INVALIDPARAMETERVALUE_TAGINVALIDKEYLEN = "InvalidParameterValue.TagInvalidKeyLen" + + // 标签值无效。 + INVALIDPARAMETERVALUE_TAGINVALIDVAL = "InvalidParameterValue.TagInvalidVal" + + // 标签键不存在。 + INVALIDPARAMETERVALUE_TAGKEYNOTEXISTS = "InvalidParameterValue.TagKeyNotExists" + + // 标签没有分配配额。 + INVALIDPARAMETERVALUE_TAGNOTALLOCATEDQUOTA = "InvalidParameterValue.TagNotAllocatedQuota" + // 该标签和值不存在。 INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" + // 不支持的标签。 + INVALIDPARAMETERVALUE_TAGNOTSUPPORTTAG = "InvalidParameterValue.TagNotSupportTag" + + // '标签资源格式错误。 + INVALIDPARAMETERVALUE_TAGRESOURCEFORMATERROR = "InvalidParameterValue.TagResourceFormatError" + + // 标签时间戳超配。 + INVALIDPARAMETERVALUE_TAGTIMESTAMPEXCEEDED = "InvalidParameterValue.TagTimestampExceeded" + + // 标签值不存在。 + INVALIDPARAMETERVALUE_TAGVALNOTEXISTS = "InvalidParameterValue.TagValNotExists" + // 无效参数值。参数值太长。 INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" @@ -368,12 +422,18 @@ const ( // 带宽包配额超过限制。 LIMITEXCEEDED_BANDWIDTHPACKAGEQUOTA = "LimitExceeded.BandwidthPackageQuota" + // 超过更换IP配额。 + LIMITEXCEEDED_CHANGEADDRESSQUOTA = "LimitExceeded.ChangeAddressQuota" + // VPC分配网段数量达到上限。 LIMITEXCEEDED_CIDRBLOCK = "LimitExceeded.CidrBlock" // 租户每天申请的弹性IP超过上限。 LIMITEXCEEDED_DAILYALLOCATEADDRESSQUOTALIMITEXCEEDED = "LimitExceeded.DailyAllocateAddressQuotaLimitExceeded" + // 超过每日更换IP配额。 + LIMITEXCEEDED_DAILYCHANGEADDRESSQUOTA = "LimitExceeded.DailyChangeAddressQuota" + // 实例绑定的弹性IP超过配额。 LIMITEXCEEDED_INSTANCEADDRESSQUOTA = "LimitExceeded.InstanceAddressQuota" @@ -401,9 +461,33 @@ const ( // 子网分配子网段数量达到上限。 LIMITEXCEEDED_SUBNETCIDRBLOCK = "LimitExceeded.SubnetCidrBlock" + // 标签键已达到上限。 + LIMITEXCEEDED_TAGKEYEXCEEDED = "LimitExceeded.TagKeyExceeded" + + // 每个资源的标签键已达到上限。 + LIMITEXCEEDED_TAGKEYPERRESOURCEEXCEEDED = "LimitExceeded.TagKeyPerResourceExceeded" + + // 没有足够的标签配额。 + LIMITEXCEEDED_TAGNOTENOUGHQUOTA = "LimitExceeded.TagNotEnoughQuota" + + // 标签配额已满,无法创建资源。 + LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" + + // 标签配额已达到上限。 + LIMITEXCEEDED_TAGQUOTAEXCEEDED = "LimitExceeded.TagQuotaExceeded" + + // 标签键的数目已达到上限。 + LIMITEXCEEDED_TAGTAGSEXCEEDED = "LimitExceeded.TagTagsExceeded" + // 缺少参数错误。 MISSINGPARAMETER = "MissingParameter" + // 指定公网IP处于隔离状态。 + OPERATIONDENIED_ADDRESSINARREARS = "OperationDenied.AddressInArrears" + + // 互斥的任务正在执行。 + OPERATIONDENIED_MUTEXTASKRUNNING = "OperationDenied.MutexTaskRunning" + // 资源被占用。 RESOURCEINUSE = "ResourceInUse" @@ -431,6 +515,9 @@ const ( // 未授权操作。 UNAUTHORIZEDOPERATION = "UnauthorizedOperation" + // 无权限申请AnycastEip资源。 + UNAUTHORIZEDOPERATION_ANYCASTEIP = "UnauthorizedOperation.AnycastEip" + // 绑定关系不存在。 UNAUTHORIZEDOPERATION_ATTACHMENTNOTFOUND = "UnauthorizedOperation.AttachmentNotFound" @@ -521,9 +608,18 @@ const ( // 与该VPC下的TKE容器的网段重叠。 UNSUPPORTEDOPERATION_CONFLICTWITHDOCKERROUTE = "UnsupportedOperation.ConflictWithDockerRoute" + // 该专线网关存在关联的NAT规则,不允许删除,请先删调所有的NAT规则。 + UNSUPPORTEDOPERATION_DCGATEWAYNATRULEEXISTS = "UnsupportedOperation.DCGatewayNatRuleExists" + // 指定的VPC未发现专线网关。 UNSUPPORTEDOPERATION_DCGATEWAYSNOTFOUNDINVPC = "UnsupportedOperation.DcGatewaysNotFoundInVpc" + // 禁止删除默认路由表。 + UNSUPPORTEDOPERATION_DELDEFAULTROUTE = "UnsupportedOperation.DelDefaultRoute" + + // 禁止删除已关联子网的路由表。 + UNSUPPORTEDOPERATION_DELROUTEWITHSUBNET = "UnsupportedOperation.DelRouteWithSubnet" + // 专线网关正在更新BGP Community属性。 UNSUPPORTEDOPERATION_DIRECTCONNECTGATEWAYISUPDATINGCOMMUNITY = "UnsupportedOperation.DirectConnectGatewayIsUpdatingCommunity" @@ -557,6 +653,9 @@ const ( // 用户配置的实例和路由表不匹配。 UNSUPPORTEDOPERATION_INSTANCEANDRTBNOTMATCH = "UnsupportedOperation.InstanceAndRtbNotMatch" + // 指定实例资源不匹配。 + UNSUPPORTEDOPERATION_INSTANCEMISMATCH = "UnsupportedOperation.InstanceMismatch" + // 跨账号场景下不支持普通账号实例关联自驾云账号云联网。 UNSUPPORTEDOPERATION_INSTANCEORDINARYACCOUNTREFUSEATTACH = "UnsupportedOperation.InstanceOrdinaryAccountRefuseAttach" @@ -599,12 +698,18 @@ const ( // 指定的CDC已存在本地网关。 UNSUPPORTEDOPERATION_LOCALGATEWAYALREADYEXISTS = "UnsupportedOperation.LocalGatewayAlreadyExists" + // 账户不支持修改公网IP的该属性。 + UNSUPPORTEDOPERATION_MODIFYADDRESSATTRIBUTE = "UnsupportedOperation.ModifyAddressAttribute" + // 资源互斥操作任务正在执行。 UNSUPPORTEDOPERATION_MUTEXOPERATIONTASKRUNNING = "UnsupportedOperation.MutexOperationTaskRunning" // SNAT/DNAT转换规则所指定的内网IP已绑定了其他的规则,无法重复绑定。 UNSUPPORTEDOPERATION_NATGATEWAYRULEPIPEXISTS = "UnsupportedOperation.NatGatewayRulePipExists" + // SNAT转换规则的内网IP需为虚拟机上网卡所用的IP。 + UNSUPPORTEDOPERATION_NATGATEWAYSNATPIPNEEDVM = "UnsupportedOperation.NatGatewaySnatPipNeedVm" + // NAT网关类型不支持SNAT规则。 UNSUPPORTEDOPERATION_NATGATEWAYTYPENOTSUPPORTSNAT = "UnsupportedOperation.NatGatewayTypeNotSupportSNAT" @@ -623,9 +728,18 @@ const ( // 当前云联网为非后付费类型,无法进行此操作。 UNSUPPORTEDOPERATION_NOTPOSTPAIDCCNOPERATION = "UnsupportedOperation.NotPostpaidCcnOperation" + // 不支持删除默认路由表。 + UNSUPPORTEDOPERATION_NOTSUPPORTDELETEDEFAULTROUTETABLE = "UnsupportedOperation.NotSupportDeleteDefaultRouteTable" + + // 当前云联网不支持更新路由发布。 + UNSUPPORTEDOPERATION_NOTSUPPORTEDUPDATECCNROUTEPUBLISH = "UnsupportedOperation.NotSupportedUpdateCcnRoutePublish" + // 指定的路由策略不支持发布或撤销至云联网。 UNSUPPORTEDOPERATION_NOTIFYCCN = "UnsupportedOperation.NotifyCcn" + // 此产品计费方式已下线,请尝试其他计费方式。 + UNSUPPORTEDOPERATION_OFFLINECHARGETYPE = "UnsupportedOperation.OfflineChargeType" + // 仅支持专业版Ckafka。 UNSUPPORTEDOPERATION_ONLYSUPPORTPROFESSIONKAFKA = "UnsupportedOperation.OnlySupportProfessionKafka" @@ -650,15 +764,45 @@ const ( // 当前账号不能在该地域使用产品。 UNSUPPORTEDOPERATION_PURCHASELIMIT = "UnsupportedOperation.PurchaseLimit" + // 记录已存在。 + UNSUPPORTEDOPERATION_RECORDEXISTS = "UnsupportedOperation.RecordExists" + + // 记录不存在。 + UNSUPPORTEDOPERATION_RECORDNOTEXISTS = "UnsupportedOperation.RecordNotExists" + // 输入的资源ID与IP绑定的资源不匹配,请检查。 UNSUPPORTEDOPERATION_RESOURCEMISMATCH = "UnsupportedOperation.ResourceMismatch" + // 未找到相关角色,请确认角色是否授权。 + UNSUPPORTEDOPERATION_ROLENOTFOUND = "UnsupportedOperation.RoleNotFound" + + // 路由表绑定了子网。 + UNSUPPORTEDOPERATION_ROUTETABLEHASSUBNETRULE = "UnsupportedOperation.RouteTableHasSubnetRule" + // 指定的终端节点服务所创建的终端节点不支持绑定安全组。 UNSUPPORTEDOPERATION_SPECIALENDPOINTSERVICE = "UnsupportedOperation.SpecialEndPointService" + // SslVpnClientId 不存在。 + UNSUPPORTEDOPERATION_SSLVPNCLIENTIDNOTFOUND = "UnsupportedOperation.SslVpnClientIdNotFound" + + // 中继网卡不支持该操作。 + UNSUPPORTEDOPERATION_SUBENINOTSUPPORTTRUNKING = "UnsupportedOperation.SubEniNotSupportTrunking" + // 系统路由,禁止操作。 UNSUPPORTEDOPERATION_SYSTEMROUTE = "UnsupportedOperation.SystemRoute" + // 标签正在分配中。 + UNSUPPORTEDOPERATION_TAGALLOCATE = "UnsupportedOperation.TagAllocate" + + // 标签正在释放中。 + UNSUPPORTEDOPERATION_TAGFREE = "UnsupportedOperation.TagFree" + + // 标签没有权限。 + UNSUPPORTEDOPERATION_TAGNOTPERMIT = "UnsupportedOperation.TagNotPermit" + + // 不支持使用系统预留的标签键。 + UNSUPPORTEDOPERATION_TAGSYSTEMRESERVEDTAGKEY = "UnsupportedOperation.TagSystemReservedTagKey" + // 账号ID不存在。 UNSUPPORTEDOPERATION_UINNOTFOUND = "UnsupportedOperation.UinNotFound" @@ -677,6 +821,9 @@ const ( // 账户还有未支付订单,请先完成付款。 UNSUPPORTEDOPERATION_UNPAIDORDERALREADYEXISTS = "UnsupportedOperation.UnpaidOrderAlreadyExists" + // 不支持绑定LocalZone弹性公网IP。 + UNSUPPORTEDOPERATION_UNSUPPORTEDBINDLOCALZONEEIP = "UnsupportedOperation.UnsupportedBindLocalZoneEIP" + // 指定机型不支持弹性网卡。 UNSUPPORTEDOPERATION_UNSUPPORTEDINSTANCEFAMILY = "UnsupportedOperation.UnsupportedInstanceFamily" 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 index 0b85da743f..d09dfab938 100644 --- 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 @@ -20,9 +20,18 @@ import ( tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" ) +// Predefined struct for user +type AcceptAttachCcnInstancesRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 接受关联实例列表。 + Instances []*CcnInstance `json:"Instances,omitempty" name:"Instances"` +} + type AcceptAttachCcnInstancesRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -50,13 +59,15 @@ func (r *AcceptAttachCcnInstancesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AcceptAttachCcnInstancesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type AcceptAttachCcnInstancesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *AcceptAttachCcnInstancesResponseParams `json:"Response"` } func (r *AcceptAttachCcnInstancesResponse) ToJsonString() string { @@ -70,8 +81,24 @@ func (r *AcceptAttachCcnInstancesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type AccountAttribute struct { +type AccessPolicy struct { + // 目的CIDR + TargetCidr *string `json:"TargetCidr,omitempty" name:"TargetCidr"` + + // 策略ID + VpnGatewayIdSslAccessPolicyId *string `json:"VpnGatewayIdSslAccessPolicyId,omitempty" name:"VpnGatewayIdSslAccessPolicyId"` + + // 是否对所有用户都生效。1 生效 0不生效 + ForAllClient *uint64 `json:"ForAllClient,omitempty" name:"ForAllClient"` + + // 用户组ID + UserGroupIds []*string `json:"UserGroupIds,omitempty" name:"UserGroupIds"` + + // 更新时间 + UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` +} +type AccountAttribute struct { // 属性名 AttributeName *string `json:"AttributeName,omitempty" name:"AttributeName"` @@ -79,9 +106,27 @@ type AccountAttribute struct { AttributeValues []*string `json:"AttributeValues,omitempty" name:"AttributeValues"` } +// Predefined struct for user +type AddBandwidthPackageResourcesRequestParams struct { + // 资源唯一ID,当前支持EIP资源和LB资源,形如'eip-xxxx', 'lb-xxxx' + ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"` + + // 带宽包唯一标识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"` +} + type AddBandwidthPackageResourcesRequest struct { *tchttp.BaseRequest - + // 资源唯一ID,当前支持EIP资源和LB资源,形如'eip-xxxx', 'lb-xxxx' ResourceIds []*string `json:"ResourceIds,omitempty" name:"ResourceIds"` @@ -121,13 +166,15 @@ func (r *AddBandwidthPackageResourcesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AddBandwidthPackageResourcesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type AddBandwidthPackageResourcesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *AddBandwidthPackageResourcesResponseParams `json:"Response"` } func (r *AddBandwidthPackageResourcesResponse) ToJsonString() string { @@ -141,9 +188,21 @@ func (r *AddBandwidthPackageResourcesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AddIp6RulesRequestParams struct { + // IPV6转换实例唯一ID,形如ip6-xxxxxxxx + Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` + + // IPV6转换规则信息 + Ip6RuleInfos []*Ip6RuleInfo `json:"Ip6RuleInfos,omitempty" name:"Ip6RuleInfos"` + + // IPV6转换规则名称 + Ip6RuleName *string `json:"Ip6RuleName,omitempty" name:"Ip6RuleName"` +} + type AddIp6RulesRequest struct { *tchttp.BaseRequest - + // IPV6转换实例唯一ID,形如ip6-xxxxxxxx Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` @@ -175,16 +234,18 @@ func (r *AddIp6RulesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type AddIp6RulesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type AddIp6RulesResponseParams struct { + // IPV6转换规则唯一ID数组,形如rule6-xxxxxxxx + Ip6RuleSet []*string `json:"Ip6RuleSet,omitempty" name:"Ip6RuleSet"` - // IPV6转换规则唯一ID数组,形如rule6-xxxxxxxx - Ip6RuleSet []*string `json:"Ip6RuleSet,omitempty" name:"Ip6RuleSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type AddIp6RulesResponse struct { + *tchttp.BaseResponse + Response *AddIp6RulesResponseParams `json:"Response"` } func (r *AddIp6RulesResponse) ToJsonString() string { @@ -198,9 +259,18 @@ func (r *AddIp6RulesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AddTemplateMemberRequestParams struct { + // 参数模板实例ID,支持IP地址、协议端口、IP地址组、协议端口组四种参数模板的实例ID。 + TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` + + // 需要添加的参数模板成员信息,支持IP地址、协议端口、IP地址组、协议端口组四种类型,类型需要与TemplateId参数类型一致。 + TemplateMember []*MemberInfo `json:"TemplateMember,omitempty" name:"TemplateMember"` +} + type AddTemplateMemberRequest struct { *tchttp.BaseRequest - + // 参数模板实例ID,支持IP地址、协议端口、IP地址组、协议端口组四种参数模板的实例ID。 TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` @@ -228,13 +298,15 @@ func (r *AddTemplateMemberRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AddTemplateMemberResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type AddTemplateMemberResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *AddTemplateMemberResponseParams `json:"Response"` } func (r *AddTemplateMemberResponse) ToJsonString() string { @@ -249,7 +321,6 @@ func (r *AddTemplateMemberResponse) FromJsonString(s string) error { } type Address struct { - // `EIP`的`ID`,是`EIP`的唯一标识。 AddressId *string `json:"AddressId,omitempty" name:"AddressId"` @@ -322,7 +393,6 @@ type Address struct { } type AddressChargePrepaid struct { - // 购买实例的时长,单位是月。可支持时长:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36 Period *int64 `json:"Period,omitempty" name:"Period"` @@ -331,7 +401,6 @@ type AddressChargePrepaid struct { } type AddressInfo struct { - // ip地址。 Address *string `json:"Address,omitempty" name:"Address"` @@ -341,7 +410,6 @@ type AddressInfo struct { } type AddressTemplate struct { - // IP地址模板名称。 AddressTemplateName *string `json:"AddressTemplateName,omitempty" name:"AddressTemplateName"` @@ -359,7 +427,6 @@ type AddressTemplate struct { } type AddressTemplateGroup struct { - // IP地址模板集合名称。 AddressTemplateGroupName *string `json:"AddressTemplateGroupName,omitempty" name:"AddressTemplateGroupName"` @@ -377,7 +444,6 @@ type AddressTemplateGroup struct { } type AddressTemplateItem struct { - // 起始地址。 From *string `json:"From,omitempty" name:"From"` @@ -386,7 +452,6 @@ type AddressTemplateItem struct { } type AddressTemplateSpecification struct { - // IP地址ID,例如:ipm-2uw6ujo6。 AddressId *string `json:"AddressId,omitempty" name:"AddressId"` @@ -394,8 +459,71 @@ type AddressTemplateSpecification struct { AddressGroupId *string `json:"AddressGroupId,omitempty" name:"AddressGroupId"` } -type AlgType struct { +// Predefined struct for user +type AdjustPublicAddressRequestParams struct { + // 标识CVM实例的唯一 ID。CVM 唯一 ID 形如:`ins-11112222`。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 标识EIP实例的唯一 ID。EIP 唯一 ID 形如:`eip-11112222`。 + AddressId *string `json:"AddressId,omitempty" name:"AddressId"` +} + +type AdjustPublicAddressRequest struct { + *tchttp.BaseRequest + + // 标识CVM实例的唯一 ID。CVM 唯一 ID 形如:`ins-11112222`。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 标识EIP实例的唯一 ID。EIP 唯一 ID 形如:`eip-11112222`。 + AddressId *string `json:"AddressId,omitempty" name:"AddressId"` +} + +func (r *AdjustPublicAddressRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *AdjustPublicAddressRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "InstanceId") + delete(f, "AddressId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AdjustPublicAddressRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type AdjustPublicAddressResponseParams struct { + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type AdjustPublicAddressResponse struct { + *tchttp.BaseResponse + Response *AdjustPublicAddressResponseParams `json:"Response"` +} + +func (r *AdjustPublicAddressResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *AdjustPublicAddressResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} +type AlgType struct { // Ftp协议Alg功能是否开启 Ftp *bool `json:"Ftp,omitempty" name:"Ftp"` @@ -403,9 +531,64 @@ type AlgType struct { Sip *bool `json:"Sip,omitempty" name:"Sip"` } +// Predefined struct for user +type AllocateAddressesRequestParams struct { + // 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为包月按带宽预付费时,该参数必传,其余场景不需传递 + AddressChargePrepaid *AddressChargePrepaid `json:"AddressChargePrepaid,omitempty" name:"AddressChargePrepaid"` + + // 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"` + + // 需要关联的标签列表。 + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // BGP带宽包唯一ID参数。设定该参数且InternetChargeType为BANDWIDTH_PACKAGE,则表示创建的EIP加入该BGP带宽包并采用带宽包计费 + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` + + // EIP名称,用于申请EIP时用户自定义该EIP的个性化名称,默认值:未命名 + AddressName *string `json:"AddressName,omitempty" name:"AddressName"` +} + type AllocateAddressesRequest struct { *tchttp.BaseRequest - + // EIP数量。默认值:1。 AddressCount *int64 `json:"AddressCount,omitempty" name:"AddressCount"` @@ -488,19 +671,21 @@ func (r *AllocateAddressesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type AllocateAddressesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type AllocateAddressesResponseParams struct { + // 申请到的 EIP 的唯一 ID 列表。 + AddressSet []*string `json:"AddressSet,omitempty" name:"AddressSet"` - // 申请到的 EIP 的唯一 ID 列表。 - AddressSet []*string `json:"AddressSet,omitempty" name:"AddressSet"` + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` - // 异步任务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"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type AllocateAddressesResponse struct { + *tchttp.BaseResponse + Response *AllocateAddressesResponseParams `json:"Response"` } func (r *AllocateAddressesResponse) ToJsonString() string { @@ -514,9 +699,24 @@ func (r *AllocateAddressesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AllocateIp6AddressesBandwidthRequestParams struct { + // 需要开通公网访问能力的IPV6地址 + Ip6Addresses []*string `json:"Ip6Addresses,omitempty" name:"Ip6Addresses"` + + // 带宽,单位Mbps。默认是1Mbps + InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // 网络计费模式。IPV6当前对标准账户类型支持"TRAFFIC_POSTPAID_BY_HOUR",对传统账户类型支持"BANDWIDTH_PACKAGE"。默认网络计费模式是"TRAFFIC_POSTPAID_BY_HOUR"。 + InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"` + + // 带宽包id,上移账号,申请带宽包计费模式的ipv6地址需要传入. + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` +} + type AllocateIp6AddressesBandwidthRequest struct { *tchttp.BaseRequest - + // 需要开通公网访问能力的IPV6地址 Ip6Addresses []*string `json:"Ip6Addresses,omitempty" name:"Ip6Addresses"` @@ -552,19 +752,21 @@ func (r *AllocateIp6AddressesBandwidthRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type AllocateIp6AddressesBandwidthResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type AllocateIp6AddressesBandwidthResponseParams struct { + // 弹性公网 IPV6 的唯一 ID 列表。 + AddressSet []*string `json:"AddressSet,omitempty" name:"AddressSet"` - // 弹性公网 IPV6 的唯一 ID 列表。 - AddressSet []*string `json:"AddressSet,omitempty" name:"AddressSet"` + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` - // 异步任务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"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type AllocateIp6AddressesBandwidthResponse struct { + *tchttp.BaseResponse + Response *AllocateIp6AddressesBandwidthResponseParams `json:"Response"` } func (r *AllocateIp6AddressesBandwidthResponse) ToJsonString() string { @@ -578,9 +780,21 @@ func (r *AllocateIp6AddressesBandwidthResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssignIpv6AddressesRequestParams struct { + // 弹性网卡实例`ID`,形如:`eni-m6dyj72l`。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 指定的`IPv6`地址列表,单次最多指定10个。与入参`Ipv6AddressCount`合并计算配额。与Ipv6AddressCount必填一个。 + Ipv6Addresses []*Ipv6Address `json:"Ipv6Addresses,omitempty" name:"Ipv6Addresses"` + + // 自动分配`IPv6`地址个数,内网IP地址个数总和不能超过配数。与入参`Ipv6Addresses`合并计算配额。与Ipv6Addresses必填一个。 + Ipv6AddressCount *uint64 `json:"Ipv6AddressCount,omitempty" name:"Ipv6AddressCount"` +} + type AssignIpv6AddressesRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例`ID`,形如:`eni-m6dyj72l`。 NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` @@ -612,16 +826,18 @@ func (r *AssignIpv6AddressesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type AssignIpv6AddressesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type AssignIpv6AddressesResponseParams struct { + // 分配给弹性网卡的`IPv6`地址列表。 + Ipv6AddressSet []*Ipv6Address `json:"Ipv6AddressSet,omitempty" name:"Ipv6AddressSet"` - // 分配给弹性网卡的`IPv6`地址列表。 - Ipv6AddressSet []*Ipv6Address `json:"Ipv6AddressSet,omitempty" name:"Ipv6AddressSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type AssignIpv6AddressesResponse struct { + *tchttp.BaseResponse + Response *AssignIpv6AddressesResponseParams `json:"Response"` } func (r *AssignIpv6AddressesResponse) ToJsonString() string { @@ -635,9 +851,15 @@ func (r *AssignIpv6AddressesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssignIpv6CidrBlockRequestParams struct { + // `VPC`实例`ID`,形如:`vpc-f49l6u0z`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` +} + type AssignIpv6CidrBlockRequest struct { *tchttp.BaseRequest - + // `VPC`实例`ID`,形如:`vpc-f49l6u0z`。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` } @@ -661,16 +883,18 @@ func (r *AssignIpv6CidrBlockRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type AssignIpv6CidrBlockResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type AssignIpv6CidrBlockResponseParams struct { + // 分配的 `IPv6` 网段。形如:`3402:4e00:20:1000::/56` + Ipv6CidrBlock *string `json:"Ipv6CidrBlock,omitempty" name:"Ipv6CidrBlock"` - // 分配的 `IPv6` 网段。形如:`3402:4e00:20:1000::/56` - Ipv6CidrBlock *string `json:"Ipv6CidrBlock,omitempty" name:"Ipv6CidrBlock"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type AssignIpv6CidrBlockResponse struct { + *tchttp.BaseResponse + Response *AssignIpv6CidrBlockResponseParams `json:"Response"` } func (r *AssignIpv6CidrBlockResponse) ToJsonString() string { @@ -684,9 +908,18 @@ func (r *AssignIpv6CidrBlockResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssignIpv6SubnetCidrBlockRequestParams struct { + // 子网所在私有网络`ID`。形如:`vpc-f49l6u0z`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 分配 `IPv6` 子网段列表。 + Ipv6SubnetCidrBlocks []*Ipv6SubnetCidrBlock `json:"Ipv6SubnetCidrBlocks,omitempty" name:"Ipv6SubnetCidrBlocks"` +} + type AssignIpv6SubnetCidrBlockRequest struct { *tchttp.BaseRequest - + // 子网所在私有网络`ID`。形如:`vpc-f49l6u0z`。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -714,16 +947,18 @@ func (r *AssignIpv6SubnetCidrBlockRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type AssignIpv6SubnetCidrBlockResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type AssignIpv6SubnetCidrBlockResponseParams struct { + // 分配 `IPv6` 子网段列表。 + Ipv6SubnetCidrBlockSet []*Ipv6SubnetCidrBlock `json:"Ipv6SubnetCidrBlockSet,omitempty" name:"Ipv6SubnetCidrBlockSet"` - // 分配 `IPv6` 子网段列表。 - Ipv6SubnetCidrBlockSet []*Ipv6SubnetCidrBlock `json:"Ipv6SubnetCidrBlockSet,omitempty" name:"Ipv6SubnetCidrBlockSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type AssignIpv6SubnetCidrBlockResponse struct { + *tchttp.BaseResponse + Response *AssignIpv6SubnetCidrBlockResponseParams `json:"Response"` } func (r *AssignIpv6SubnetCidrBlockResponse) ToJsonString() string { @@ -737,9 +972,21 @@ func (r *AssignIpv6SubnetCidrBlockResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssignPrivateIpAddressesRequestParams struct { + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 指定的内网IP信息,单次最多指定10个。与SecondaryPrivateIpAddressCount至少提供一个。 + PrivateIpAddresses []*PrivateIpAddressSpecification `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"` + + // 新申请的内网IP地址个数,与PrivateIpAddresses至少提供一个。内网IP地址个数总和不能超过配额数,详见弹性网卡使用限制。 + SecondaryPrivateIpAddressCount *uint64 `json:"SecondaryPrivateIpAddressCount,omitempty" name:"SecondaryPrivateIpAddressCount"` +} + type AssignPrivateIpAddressesRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例ID,例如:eni-m6dyj72l。 NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` @@ -771,16 +1018,18 @@ func (r *AssignPrivateIpAddressesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type AssignPrivateIpAddressesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type AssignPrivateIpAddressesResponseParams struct { + // 内网IP详细信息。 + PrivateIpAddressSet []*PrivateIpAddressSpecification `json:"PrivateIpAddressSet,omitempty" name:"PrivateIpAddressSet"` - // 内网IP详细信息。 - PrivateIpAddressSet []*PrivateIpAddressSpecification `json:"PrivateIpAddressSet,omitempty" name:"PrivateIpAddressSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type AssignPrivateIpAddressesResponse struct { + *tchttp.BaseResponse + Response *AssignPrivateIpAddressesResponseParams `json:"Response"` } func (r *AssignPrivateIpAddressesResponse) ToJsonString() string { @@ -795,7 +1044,6 @@ func (r *AssignPrivateIpAddressesResponse) FromJsonString(s string) error { } type AssistantCidr struct { - // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -810,9 +1058,27 @@ type AssistantCidr struct { SubnetSet []*Subnet `json:"SubnetSet,omitempty" name:"SubnetSet"` } +// Predefined struct for user +type AssociateAddressRequestParams struct { + // 标识 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"` + + // 指定绑定时是否设置直通。弹性公网 IP 直通请参见 [EIP 直通](https://cloud.tencent.com/document/product/1199/41709)。取值:True、False,默认值为 False。当绑定 CVM 实例、EKS 弹性集群时,可设定此参数为 True。此参数目前处于内测中,如需使用,请提交 [工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20CLB&level3_id=1071&queue=96&scene_code=34639&step=2)。 + EipDirectConnection *bool `json:"EipDirectConnection,omitempty" name:"EipDirectConnection"` +} + type AssociateAddressRequest struct { *tchttp.BaseRequest - + // 标识 EIP 的唯一 ID。EIP 唯一 ID 形如:`eip-11112222`。 AddressId *string `json:"AddressId,omitempty" name:"AddressId"` @@ -852,16 +1118,18 @@ func (r *AssociateAddressRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type AssociateAddressResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type AssociateAddressResponseParams struct { + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` - // 异步任务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"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type AssociateAddressResponse struct { + *tchttp.BaseResponse + Response *AssociateAddressResponseParams `json:"Response"` } func (r *AssociateAddressResponse) ToJsonString() string { @@ -875,9 +1143,18 @@ func (r *AssociateAddressResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssociateDhcpIpWithAddressIpRequestParams struct { + // `DhcpIp`唯一`ID`,形如:`dhcpip-9o233uri`。必须是没有绑定`EIP`的`DhcpIp` + DhcpIpId *string `json:"DhcpIpId,omitempty" name:"DhcpIpId"` + + // 弹性公网`IP`。必须是没有绑定`DhcpIp`的`EIP` + AddressIp *string `json:"AddressIp,omitempty" name:"AddressIp"` +} + type AssociateDhcpIpWithAddressIpRequest struct { *tchttp.BaseRequest - + // `DhcpIp`唯一`ID`,形如:`dhcpip-9o233uri`。必须是没有绑定`EIP`的`DhcpIp` DhcpIpId *string `json:"DhcpIpId,omitempty" name:"DhcpIpId"` @@ -905,13 +1182,15 @@ func (r *AssociateDhcpIpWithAddressIpRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssociateDhcpIpWithAddressIpResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type AssociateDhcpIpWithAddressIpResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *AssociateDhcpIpWithAddressIpResponseParams `json:"Response"` } func (r *AssociateDhcpIpWithAddressIpResponse) ToJsonString() string { @@ -925,9 +1204,21 @@ func (r *AssociateDhcpIpWithAddressIpResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssociateDirectConnectGatewayNatGatewayRequestParams struct { + // 专线网关ID。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // NAT网关ID。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` +} + type AssociateDirectConnectGatewayNatGatewayRequest struct { *tchttp.BaseRequest - + // 专线网关ID。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -959,13 +1250,15 @@ func (r *AssociateDirectConnectGatewayNatGatewayRequest) FromJsonString(s string return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssociateDirectConnectGatewayNatGatewayResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type AssociateDirectConnectGatewayNatGatewayResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *AssociateDirectConnectGatewayNatGatewayResponseParams `json:"Response"` } func (r *AssociateDirectConnectGatewayNatGatewayResponse) ToJsonString() string { @@ -979,9 +1272,33 @@ func (r *AssociateDirectConnectGatewayNatGatewayResponse) FromJsonString(s strin return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssociateNatGatewayAddressRequestParams struct { + // 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"` + + // 弹性IP可用区,自动分配弹性IP时传递。 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 绑定NAT网关的弹性IP带宽大小(单位Mbps),默认为当前用户类型所能使用的最大值。 + StockPublicIpAddressesBandwidthOut *uint64 `json:"StockPublicIpAddressesBandwidthOut,omitempty" name:"StockPublicIpAddressesBandwidthOut"` + + // 需要申请公网IP带宽大小(单位Mbps),默认为当前用户类型所能使用的最大值。 + PublicIpAddressesBandwidthOut *uint64 `json:"PublicIpAddressesBandwidthOut,omitempty" name:"PublicIpAddressesBandwidthOut"` + + // 公网IP是否强制与NAT网关来自同可用区,true表示需要与NAT网关同可用区;false表示可与NAT网关不是同一个可用区。此参数只有当参数Zone存在时才能生效。 + PublicIpFromSameZone *bool `json:"PublicIpFromSameZone,omitempty" name:"PublicIpFromSameZone"` +} + type AssociateNatGatewayAddressRequest struct { *tchttp.BaseRequest - + // NAT网关的ID,形如:`nat-df45454`。 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -1029,13 +1346,15 @@ func (r *AssociateNatGatewayAddressRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssociateNatGatewayAddressResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type AssociateNatGatewayAddressResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *AssociateNatGatewayAddressResponseParams `json:"Response"` } func (r *AssociateNatGatewayAddressResponse) ToJsonString() string { @@ -1049,9 +1368,18 @@ func (r *AssociateNatGatewayAddressResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssociateNetworkAclSubnetsRequestParams struct { + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 子网实例ID数组。例如:[subnet-12345678] + SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` +} + type AssociateNetworkAclSubnetsRequest struct { *tchttp.BaseRequest - + // 网络ACL实例ID。例如:acl-12345678。 NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` @@ -1079,13 +1407,15 @@ func (r *AssociateNetworkAclSubnetsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssociateNetworkAclSubnetsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type AssociateNetworkAclSubnetsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *AssociateNetworkAclSubnetsResponseParams `json:"Response"` } func (r *AssociateNetworkAclSubnetsResponse) ToJsonString() string { @@ -1099,9 +1429,18 @@ func (r *AssociateNetworkAclSubnetsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssociateNetworkInterfaceSecurityGroupsRequestParams struct { + // 弹性网卡实例ID。形如:eni-pxir56ns。每次请求的实例的上限为100。 + NetworkInterfaceIds []*string `json:"NetworkInterfaceIds,omitempty" name:"NetworkInterfaceIds"` + + // 安全组实例ID,例如:sg-33ocnj9n,可通过DescribeSecurityGroups获取。每次请求的实例的上限为100。 + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` +} + type AssociateNetworkInterfaceSecurityGroupsRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例ID。形如:eni-pxir56ns。每次请求的实例的上限为100。 NetworkInterfaceIds []*string `json:"NetworkInterfaceIds,omitempty" name:"NetworkInterfaceIds"` @@ -1129,13 +1468,15 @@ func (r *AssociateNetworkInterfaceSecurityGroupsRequest) FromJsonString(s string return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AssociateNetworkInterfaceSecurityGroupsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type AssociateNetworkInterfaceSecurityGroupsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *AssociateNetworkInterfaceSecurityGroupsResponseParams `json:"Response"` } func (r *AssociateNetworkInterfaceSecurityGroupsResponse) ToJsonString() string { @@ -1149,9 +1490,21 @@ func (r *AssociateNetworkInterfaceSecurityGroupsResponse) FromJsonString(s strin return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AttachCcnInstancesRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 关联网络实例列表 + Instances []*CcnInstance `json:"Instances,omitempty" name:"Instances"` + + // CCN所属UIN(根账号),默认当前账号所属UIN + CcnUin *string `json:"CcnUin,omitempty" name:"CcnUin"` +} + type AttachCcnInstancesRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -1183,13 +1536,15 @@ func (r *AttachCcnInstancesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AttachCcnInstancesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type AttachCcnInstancesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *AttachCcnInstancesResponseParams `json:"Response"` } func (r *AttachCcnInstancesResponse) ToJsonString() string { @@ -1203,9 +1558,18 @@ func (r *AttachCcnInstancesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AttachClassicLinkVpcRequestParams struct { + // VPC实例ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // CVM实例ID + InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` +} + type AttachClassicLinkVpcRequest struct { *tchttp.BaseRequest - + // VPC实例ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -1233,13 +1597,15 @@ func (r *AttachClassicLinkVpcRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AttachClassicLinkVpcResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type AttachClassicLinkVpcResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *AttachClassicLinkVpcResponseParams `json:"Response"` } func (r *AttachClassicLinkVpcResponse) ToJsonString() string { @@ -1253,9 +1619,21 @@ func (r *AttachClassicLinkVpcResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AttachNetworkInterfaceRequestParams struct { + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // CVM实例ID。形如:ins-r8hr2upy。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 网卡的挂载类型:0 标准型,1扩展型,默认值0。 + AttachType *uint64 `json:"AttachType,omitempty" name:"AttachType"` +} + type AttachNetworkInterfaceRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例ID,例如:eni-m6dyj72l。 NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` @@ -1287,13 +1665,15 @@ func (r *AttachNetworkInterfaceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AttachNetworkInterfaceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type AttachNetworkInterfaceResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *AttachNetworkInterfaceResponseParams `json:"Response"` } func (r *AttachNetworkInterfaceResponse) ToJsonString() string { @@ -1307,9 +1687,21 @@ func (r *AttachNetworkInterfaceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AuditCrossBorderComplianceRequestParams struct { + // 服务商, 可选值:`UNICOM`。 + ServiceProvider *string `json:"ServiceProvider,omitempty" name:"ServiceProvider"` + + // 表单唯一`ID`。 + ComplianceId *uint64 `json:"ComplianceId,omitempty" name:"ComplianceId"` + + // 通过:`APPROVED `,拒绝:`DENY`。 + AuditBehavior *string `json:"AuditBehavior,omitempty" name:"AuditBehavior"` +} + type AuditCrossBorderComplianceRequest struct { *tchttp.BaseRequest - + // 服务商, 可选值:`UNICOM`。 ServiceProvider *string `json:"ServiceProvider,omitempty" name:"ServiceProvider"` @@ -1341,13 +1733,15 @@ func (r *AuditCrossBorderComplianceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AuditCrossBorderComplianceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type AuditCrossBorderComplianceResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *AuditCrossBorderComplianceResponseParams `json:"Response"` } func (r *AuditCrossBorderComplianceResponse) ToJsonString() string { @@ -1362,7 +1756,6 @@ func (r *AuditCrossBorderComplianceResponse) FromJsonString(s string) error { } type BandwidthPackage struct { - // 带宽包唯一标识Id BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` @@ -1389,13 +1782,11 @@ type BandwidthPackage struct { } type BandwidthPackageBillBandwidth struct { - // 当前计费用量,单位为 Mbps BandwidthUsage *uint64 `json:"BandwidthUsage,omitempty" name:"BandwidthUsage"` } type CCN struct { - // 云联网唯一ID CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -1441,7 +1832,6 @@ type CCN struct { } type CcnAttachedInstance struct { - // 云联网实例ID。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -1500,7 +1890,6 @@ type CcnAttachedInstance struct { } type CcnBandwidthInfo struct { - // 带宽所属的云联网ID。 // 注意:此字段可能返回 null,表示取不到有效值。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -1531,7 +1920,6 @@ type CcnBandwidthInfo struct { } type CcnInstance struct { - // 关联实例ID。 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -1554,7 +1942,6 @@ type CcnInstance struct { } type CcnRegionBandwidthLimit struct { - // 地域,例如:ap-guangzhou Region *string `json:"Region,omitempty" name:"Region"` @@ -1573,7 +1960,6 @@ type CcnRegionBandwidthLimit struct { } type CcnRoute struct { - // 路由策略ID RouteId *string `json:"RouteId,omitempty" name:"RouteId"` @@ -1614,9 +2000,21 @@ type CcnRoute struct { InstanceExtraName *string `json:"InstanceExtraName,omitempty" name:"InstanceExtraName"` } +// Predefined struct for user +type CheckAssistantCidrRequestParams struct { + // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 待添加的负载CIDR。CIDR数组,格式如["10.0.0.0/16", "172.16.0.0/16"]。入参NewCidrBlocks和OldCidrBlocks至少需要其一。 + NewCidrBlocks []*string `json:"NewCidrBlocks,omitempty" name:"NewCidrBlocks"` + + // 待删除的负载CIDR。CIDR数组,格式如["10.0.0.0/16", "172.16.0.0/16"]。入参NewCidrBlocks和OldCidrBlocks至少需要其一。 + OldCidrBlocks []*string `json:"OldCidrBlocks,omitempty" name:"OldCidrBlocks"` +} + type CheckAssistantCidrRequest struct { *tchttp.BaseRequest - + // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -1648,16 +2046,18 @@ func (r *CheckAssistantCidrRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CheckAssistantCidrResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CheckAssistantCidrResponseParams struct { + // 冲突资源信息数组。 + ConflictSourceSet []*ConflictSource `json:"ConflictSourceSet,omitempty" name:"ConflictSourceSet"` - // 冲突资源信息数组。 - ConflictSourceSet []*ConflictSource `json:"ConflictSourceSet,omitempty" name:"ConflictSourceSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CheckAssistantCidrResponse struct { + *tchttp.BaseResponse + Response *CheckAssistantCidrResponseParams `json:"Response"` } func (r *CheckAssistantCidrResponse) ToJsonString() string { @@ -1671,9 +2071,15 @@ func (r *CheckAssistantCidrResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CheckDefaultSubnetRequestParams struct { + // 子网所在的可用区ID,不同子网选择不同可用区可以做跨可用区灾备。 + Zone *string `json:"Zone,omitempty" name:"Zone"` +} + type CheckDefaultSubnetRequest struct { *tchttp.BaseRequest - + // 子网所在的可用区ID,不同子网选择不同可用区可以做跨可用区灾备。 Zone *string `json:"Zone,omitempty" name:"Zone"` } @@ -1697,16 +2103,18 @@ func (r *CheckDefaultSubnetRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CheckDefaultSubnetResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CheckDefaultSubnetResponseParams struct { + // 检查结果。true为可以创建默认子网,false为不可以创建默认子网。 + Result *bool `json:"Result,omitempty" name:"Result"` - // 检查结果。true为可以创建默认子网,false为不可以创建默认子网。 - Result *bool `json:"Result,omitempty" name:"Result"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CheckDefaultSubnetResponse struct { + *tchttp.BaseResponse + Response *CheckDefaultSubnetResponseParams `json:"Response"` } func (r *CheckDefaultSubnetResponse) ToJsonString() string { @@ -1720,9 +2128,43 @@ func (r *CheckDefaultSubnetResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CheckNetDetectStateRequestParams struct { + // 探测目的IPv4地址数组,最多两个。 + DetectDestinationIp []*string `json:"DetectDestinationIp,omitempty" name:"DetectDestinationIp"` + + // 下一跳类型,目前我们支持的类型有: + // 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。该参数与(VpcId,SubnetId,NetDetectName),至少要有一个。当NetDetectId存在时,使用NetDetectId。 + NetDetectId *string `json:"NetDetectId,omitempty" name:"NetDetectId"` + + // `VPC`实例`ID`。形如:`vpc-12345678`。该参数与(SubnetId,NetDetectName)配合使用,与NetDetectId至少要有一个。当NetDetectId存在时,使用NetDetectId。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 子网实例ID。形如:subnet-12345678。该参数与(VpcId,NetDetectName)配合使用,与NetDetectId至少要有一个。当NetDetectId存在时,使用NetDetectId。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 网络探测名称,最大长度不能超过60个字节。该参数与(VpcId,SubnetId)配合使用,与NetDetectId至少要有一个。当NetDetectId存在时,使用NetDetectId。 + NetDetectName *string `json:"NetDetectName,omitempty" name:"NetDetectName"` +} + type CheckNetDetectStateRequest struct { *tchttp.BaseRequest - + // 探测目的IPv4地址数组,最多两个。 DetectDestinationIp []*string `json:"DetectDestinationIp,omitempty" name:"DetectDestinationIp"` @@ -1780,16 +2222,18 @@ func (r *CheckNetDetectStateRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CheckNetDetectStateResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CheckNetDetectStateResponseParams struct { + // 网络探测验证结果对象数组。 + NetDetectIpStateSet []*NetDetectIpState `json:"NetDetectIpStateSet,omitempty" name:"NetDetectIpStateSet"` - // 网络探测验证结果对象数组。 - NetDetectIpStateSet []*NetDetectIpState `json:"NetDetectIpStateSet,omitempty" name:"NetDetectIpStateSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CheckNetDetectStateResponse struct { + *tchttp.BaseResponse + Response *CheckNetDetectStateResponseParams `json:"Response"` } func (r *CheckNetDetectStateResponse) ToJsonString() string { @@ -1804,7 +2248,6 @@ func (r *CheckNetDetectStateResponse) FromJsonString(s string) error { } type CidrForCcn struct { - // local cidr值。 // 注意:此字段可能返回 null,表示取不到有效值。 Cidr *string `json:"Cidr,omitempty" name:"Cidr"` @@ -1815,7 +2258,6 @@ type CidrForCcn struct { } type ClassicLinkInstance struct { - // VPC实例ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -1823,9 +2265,27 @@ type ClassicLinkInstance struct { InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` } +// Predefined struct for user +type CloneSecurityGroupRequestParams struct { + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 安全组名称,可任意命名,但不得超过60个字符。未提供参数时,克隆后的安全组名称和SecurityGroupId对应的安全组名称相同。 + GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + + // 安全组备注,最多100个字符。未提供参数时,克隆后的安全组备注和SecurityGroupId对应的安全组备注相同。 + GroupDescription *string `json:"GroupDescription,omitempty" name:"GroupDescription"` + + // 项目ID,默认0。可在qcloud控制台项目管理页面查询到。 + ProjectId *string `json:"ProjectId,omitempty" name:"ProjectId"` + + // 源Region,跨地域克隆安全组时,需要传入源安全组所属地域信息,例如:克隆广州的安全组到上海,则这里需要传入广州安全的地域信息:ap-guangzhou。 + RemoteRegion *string `json:"RemoteRegion,omitempty" name:"RemoteRegion"` +} + type CloneSecurityGroupRequest struct { *tchttp.BaseRequest - + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` @@ -1865,17 +2325,19 @@ func (r *CloneSecurityGroupRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CloneSecurityGroupResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 安全组对象。 +// Predefined struct for user +type CloneSecurityGroupResponseParams struct { + // 安全组对象。 // 注意:此字段可能返回 null,表示取不到有效值。 - SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty" name:"SecurityGroup"` + SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty" name:"SecurityGroup"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CloneSecurityGroupResponse struct { + *tchttp.BaseResponse + Response *CloneSecurityGroupResponseParams `json:"Response"` } func (r *CloneSecurityGroupResponse) ToJsonString() string { @@ -1890,7 +2352,6 @@ func (r *CloneSecurityGroupResponse) FromJsonString(s string) error { } type ConflictItem struct { - // 冲突资源的ID ConfilctId *string `json:"ConfilctId,omitempty" name:"ConfilctId"` @@ -1899,7 +2360,6 @@ type ConflictItem struct { } type ConflictSource struct { - // 冲突资源ID ConflictSourceId *string `json:"ConflictSourceId,omitempty" name:"ConflictSourceId"` @@ -1910,9 +2370,18 @@ type ConflictSource struct { ConflictItemSet []*ConflictItem `json:"ConflictItemSet,omitempty" name:"ConflictItemSet"` } -type CreateAddressTemplateGroupRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type CreateAddressTemplateGroupRequestParams struct { + // IP地址模板集合名称。 + AddressTemplateGroupName *string `json:"AddressTemplateGroupName,omitempty" name:"AddressTemplateGroupName"` + + // IP地址模板实例ID,例如:ipm-mdunqeb6。 + AddressTemplateIds []*string `json:"AddressTemplateIds,omitempty" name:"AddressTemplateIds"` +} +type CreateAddressTemplateGroupRequest struct { + *tchttp.BaseRequest + // IP地址模板集合名称。 AddressTemplateGroupName *string `json:"AddressTemplateGroupName,omitempty" name:"AddressTemplateGroupName"` @@ -1940,16 +2409,18 @@ func (r *CreateAddressTemplateGroupRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateAddressTemplateGroupResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateAddressTemplateGroupResponseParams struct { + // IP地址模板集合对象。 + AddressTemplateGroup *AddressTemplateGroup `json:"AddressTemplateGroup,omitempty" name:"AddressTemplateGroup"` - // IP地址模板集合对象。 - AddressTemplateGroup *AddressTemplateGroup `json:"AddressTemplateGroup,omitempty" name:"AddressTemplateGroup"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateAddressTemplateGroupResponse struct { + *tchttp.BaseResponse + Response *CreateAddressTemplateGroupResponseParams `json:"Response"` } func (r *CreateAddressTemplateGroupResponse) ToJsonString() string { @@ -1963,9 +2434,21 @@ func (r *CreateAddressTemplateGroupResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateAddressTemplateRequestParams struct { + // IP地址模板名称。 + AddressTemplateName *string `json:"AddressTemplateName,omitempty" name:"AddressTemplateName"` + + // 地址信息,支持 IP、CIDR、IP 范围。Addresses与AddressesExtra必填其一。 + Addresses []*string `json:"Addresses,omitempty" name:"Addresses"` + + // 地址信息,支持携带备注,支持 IP、CIDR、IP 范围。Addresses与AddressesExtra必填其一。 + AddressesExtra []*AddressInfo `json:"AddressesExtra,omitempty" name:"AddressesExtra"` +} + type CreateAddressTemplateRequest struct { *tchttp.BaseRequest - + // IP地址模板名称。 AddressTemplateName *string `json:"AddressTemplateName,omitempty" name:"AddressTemplateName"` @@ -1997,16 +2480,18 @@ func (r *CreateAddressTemplateRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateAddressTemplateResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateAddressTemplateResponseParams struct { + // IP地址模板对象。 + AddressTemplate *AddressTemplate `json:"AddressTemplate,omitempty" name:"AddressTemplate"` - // IP地址模板对象。 - AddressTemplate *AddressTemplate `json:"AddressTemplate,omitempty" name:"AddressTemplate"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateAddressTemplateResponse struct { + *tchttp.BaseResponse + Response *CreateAddressTemplateResponseParams `json:"Response"` } func (r *CreateAddressTemplateResponse) ToJsonString() string { @@ -2020,9 +2505,42 @@ func (r *CreateAddressTemplateResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateAndAttachNetworkInterfaceRequestParams struct { + // 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"` + + // 云服务器实例ID。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 指定的内网IP信息,单次最多指定10个。 + PrivateIpAddresses []*PrivateIpAddressSpecification `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"` + + // 新申请的内网IP地址个数,内网IP地址个数总和不能超过配数。 + SecondaryPrivateIpAddressCount *uint64 `json:"SecondaryPrivateIpAddressCount,omitempty" name:"SecondaryPrivateIpAddressCount"` + + // 指定绑定的安全组,例如:['sg-1dd51d']。 + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` + + // 弹性网卡描述,可任意命名,但不得超过60个字符。 + NetworkInterfaceDescription *string `json:"NetworkInterfaceDescription,omitempty" name:"NetworkInterfaceDescription"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // 绑定类型:0 标准型 1 扩展型。 + AttachType *uint64 `json:"AttachType,omitempty" name:"AttachType"` +} + type CreateAndAttachNetworkInterfaceRequest struct { *tchttp.BaseRequest - + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -2082,16 +2600,18 @@ func (r *CreateAndAttachNetworkInterfaceRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } -type CreateAndAttachNetworkInterfaceResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateAndAttachNetworkInterfaceResponseParams struct { + // 弹性网卡实例。 + NetworkInterface *NetworkInterface `json:"NetworkInterface,omitempty" name:"NetworkInterface"` - // 弹性网卡实例。 - NetworkInterface *NetworkInterface `json:"NetworkInterface,omitempty" name:"NetworkInterface"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateAndAttachNetworkInterfaceResponse struct { + *tchttp.BaseResponse + Response *CreateAndAttachNetworkInterfaceResponseParams `json:"Response"` } func (r *CreateAndAttachNetworkInterfaceResponse) ToJsonString() string { @@ -2105,9 +2625,18 @@ func (r *CreateAndAttachNetworkInterfaceResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateAssistantCidrRequestParams struct { + // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // CIDR数组,格式如["10.0.0.0/16", "172.16.0.0/16"] + CidrBlocks []*string `json:"CidrBlocks,omitempty" name:"CidrBlocks"` +} + type CreateAssistantCidrRequest struct { *tchttp.BaseRequest - + // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -2135,17 +2664,19 @@ func (r *CreateAssistantCidrRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateAssistantCidrResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 辅助CIDR数组。 +// Predefined struct for user +type CreateAssistantCidrResponseParams struct { + // 辅助CIDR数组。 // 注意:此字段可能返回 null,表示取不到有效值。 - AssistantCidrSet []*AssistantCidr `json:"AssistantCidrSet,omitempty" name:"AssistantCidrSet"` + AssistantCidrSet []*AssistantCidr `json:"AssistantCidrSet,omitempty" name:"AssistantCidrSet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateAssistantCidrResponse struct { + *tchttp.BaseResponse + Response *CreateAssistantCidrResponseParams `json:"Response"` } func (r *CreateAssistantCidrResponse) ToJsonString() string { @@ -2159,9 +2690,38 @@ func (r *CreateAssistantCidrResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateBandwidthPackageRequestParams struct { + // 带宽包类型, 默认值: BGP, 可选值: + //
  • BGP: 普通BGP共享带宽包
  • + //
  • HIGH_QUALITY_BGP: 精品BGP共享带宽包
  • + NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + + // 带宽包计费类型, 默认为: TOP5_POSTPAID_BY_MONTH, 可选值: + //
  • TOP5_POSTPAID_BY_MONTH: 按月后付费TOP5计费
  • + //
  • PERCENT95_POSTPAID_BY_MONTH: 按月后付费月95计费
  • + //
  • FIXED_PREPAID_BY_MONTH: 包月预付费计费
  • + ChargeType *string `json:"ChargeType,omitempty" name:"ChargeType"` + + // 带宽包名称。 + BandwidthPackageName *string `json:"BandwidthPackageName,omitempty" name:"BandwidthPackageName"` + + // 带宽包数量(传统账户类型只能填1), 标准账户类型取值范围为1~20。 + BandwidthPackageCount *uint64 `json:"BandwidthPackageCount,omitempty" name:"BandwidthPackageCount"` + + // 带宽包限速大小。单位:Mbps,-1表示不限速。该功能当前内测中,暂不对外开放。 + InternetMaxBandwidth *int64 `json:"InternetMaxBandwidth,omitempty" name:"InternetMaxBandwidth"` + + // 需要关联的标签列表。 + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // 带宽包协议类型。当前支持'ipv4'和'ipv6'协议带宽包,默认值是'ipv4'。 + Protocol *string `json:"Protocol,omitempty" name:"Protocol"` +} + type CreateBandwidthPackageRequest struct { *tchttp.BaseRequest - + // 带宽包类型, 默认值: BGP, 可选值: //
  • BGP: 普通BGP共享带宽包
  • //
  • HIGH_QUALITY_BGP: 精品BGP共享带宽包
  • @@ -2214,19 +2774,21 @@ func (r *CreateBandwidthPackageRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateBandwidthPackageResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateBandwidthPackageResponseParams struct { + // 带宽包唯一ID。 + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` - // 带宽包唯一ID。 - BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` + // 带宽包唯一ID列表(申请数量大于1时有效)。 + BandwidthPackageIds []*string `json:"BandwidthPackageIds,omitempty" name:"BandwidthPackageIds"` - // 带宽包唯一ID列表(申请数量大于1时有效)。 - BandwidthPackageIds []*string `json:"BandwidthPackageIds,omitempty" name:"BandwidthPackageIds"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateBandwidthPackageResponse struct { + *tchttp.BaseResponse + Response *CreateBandwidthPackageResponseParams `json:"Response"` } func (r *CreateBandwidthPackageResponse) ToJsonString() string { @@ -2240,9 +2802,30 @@ func (r *CreateBandwidthPackageResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateCcnRequestParams struct { + // 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"` +} + type CreateCcnRequest struct { *tchttp.BaseRequest - + // CCN名称,最大长度不能超过60个字节。 CcnName *string `json:"CcnName,omitempty" name:"CcnName"` @@ -2286,16 +2869,18 @@ func (r *CreateCcnRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateCcnResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateCcnResponseParams struct { + // 云联网(CCN)对象。 + Ccn *CCN `json:"Ccn,omitempty" name:"Ccn"` - // 云联网(CCN)对象。 - Ccn *CCN `json:"Ccn,omitempty" name:"Ccn"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateCcnResponse struct { + *tchttp.BaseResponse + Response *CreateCcnResponseParams `json:"Response"` } func (r *CreateCcnResponse) ToJsonString() string { @@ -2309,9 +2894,21 @@ func (r *CreateCcnResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateCustomerGatewayRequestParams struct { + // 对端网关名称,可任意命名,但不得超过60个字符。 + CustomerGatewayName *string `json:"CustomerGatewayName,omitempty" name:"CustomerGatewayName"` + + // 对端网关公网IP。 + IpAddress *string `json:"IpAddress,omitempty" name:"IpAddress"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` +} + type CreateCustomerGatewayRequest struct { *tchttp.BaseRequest - + // 对端网关名称,可任意命名,但不得超过60个字符。 CustomerGatewayName *string `json:"CustomerGatewayName,omitempty" name:"CustomerGatewayName"` @@ -2343,16 +2940,18 @@ func (r *CreateCustomerGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateCustomerGatewayResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateCustomerGatewayResponseParams struct { + // 对端网关对象 + CustomerGateway *CustomerGateway `json:"CustomerGateway,omitempty" name:"CustomerGateway"` - // 对端网关对象 - CustomerGateway *CustomerGateway `json:"CustomerGateway,omitempty" name:"CustomerGateway"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateCustomerGatewayResponse struct { + *tchttp.BaseResponse + Response *CreateCustomerGatewayResponseParams `json:"Response"` } func (r *CreateCustomerGatewayResponse) ToJsonString() string { @@ -2366,9 +2965,15 @@ func (r *CreateCustomerGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateDefaultSecurityGroupRequestParams struct { + // 项目ID,默认0。可在qcloud控制台项目管理页面查询到。 + ProjectId *string `json:"ProjectId,omitempty" name:"ProjectId"` +} + type CreateDefaultSecurityGroupRequest struct { *tchttp.BaseRequest - + // 项目ID,默认0。可在qcloud控制台项目管理页面查询到。 ProjectId *string `json:"ProjectId,omitempty" name:"ProjectId"` } @@ -2392,16 +2997,18 @@ func (r *CreateDefaultSecurityGroupRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateDefaultSecurityGroupResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateDefaultSecurityGroupResponseParams struct { + // 安全组对象。 + SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty" name:"SecurityGroup"` - // 安全组对象。 - SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty" name:"SecurityGroup"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateDefaultSecurityGroupResponse struct { + *tchttp.BaseResponse + Response *CreateDefaultSecurityGroupResponseParams `json:"Response"` } func (r *CreateDefaultSecurityGroupResponse) ToJsonString() string { @@ -2415,9 +3022,18 @@ func (r *CreateDefaultSecurityGroupResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateDefaultVpcRequestParams struct { + // 子网所在的可用区,该参数可通过[DescribeZones](https://cloud.tencent.com/document/product/213/15707)接口获取,例如ap-guangzhou-1,不指定时将随机选择可用区。 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 是否强制返回默认VPC。 + Force *bool `json:"Force,omitempty" name:"Force"` +} + type CreateDefaultVpcRequest struct { *tchttp.BaseRequest - + // 子网所在的可用区,该参数可通过[DescribeZones](https://cloud.tencent.com/document/product/213/15707)接口获取,例如ap-guangzhou-1,不指定时将随机选择可用区。 Zone *string `json:"Zone,omitempty" name:"Zone"` @@ -2445,16 +3061,18 @@ func (r *CreateDefaultVpcRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateDefaultVpcResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateDefaultVpcResponseParams struct { + // 默认VPC和子网ID + Vpc *DefaultVpcSubnet `json:"Vpc,omitempty" name:"Vpc"` - // 默认VPC和子网ID - Vpc *DefaultVpcSubnet `json:"Vpc,omitempty" name:"Vpc"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateDefaultVpcResponse struct { + *tchttp.BaseResponse + Response *CreateDefaultVpcResponseParams `json:"Response"` } func (r *CreateDefaultVpcResponse) ToJsonString() string { @@ -2468,9 +3086,24 @@ func (r *CreateDefaultVpcResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateDhcpIpRequestParams struct { + // 私有网络`ID`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 子网`ID`。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // `DhcpIp`名称。 + DhcpIpName *string `json:"DhcpIpName,omitempty" name:"DhcpIpName"` + + // 新申请的内网IP地址个数。总数不能超过64个。 + SecondaryPrivateIpAddressCount *uint64 `json:"SecondaryPrivateIpAddressCount,omitempty" name:"SecondaryPrivateIpAddressCount"` +} + type CreateDhcpIpRequest struct { *tchttp.BaseRequest - + // 私有网络`ID`。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -2506,16 +3139,18 @@ func (r *CreateDhcpIpRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateDhcpIpResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateDhcpIpResponseParams struct { + // 新创建的`DhcpIp`信息 + DhcpIpSet []*DhcpIp `json:"DhcpIpSet,omitempty" name:"DhcpIpSet"` - // 新创建的`DhcpIp`信息 - DhcpIpSet []*DhcpIp `json:"DhcpIpSet,omitempty" name:"DhcpIpSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateDhcpIpResponse struct { + *tchttp.BaseResponse + Response *CreateDhcpIpResponseParams `json:"Response"` } func (r *CreateDhcpIpResponse) ToJsonString() string { @@ -2529,9 +3164,18 @@ func (r *CreateDhcpIpResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateDirectConnectGatewayCcnRoutesRequestParams struct { + // 专线网关ID,形如:dcg-prpqlmg1 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` + + // 需要连通的IDC网段列表 + Routes []*DirectConnectGatewayCcnRoute `json:"Routes,omitempty" name:"Routes"` +} + type CreateDirectConnectGatewayCcnRoutesRequest struct { *tchttp.BaseRequest - + // 专线网关ID,形如:dcg-prpqlmg1 DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` @@ -2559,13 +3203,15 @@ func (r *CreateDirectConnectGatewayCcnRoutesRequest) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateDirectConnectGatewayCcnRoutesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateDirectConnectGatewayCcnRoutesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateDirectConnectGatewayCcnRoutesResponseParams `json:"Response"` } func (r *CreateDirectConnectGatewayCcnRoutesResponse) ToJsonString() string { @@ -2579,9 +3225,38 @@ func (r *CreateDirectConnectGatewayCcnRoutesResponse) FromJsonString(s string) e return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateDirectConnectGatewayRequestParams struct { + // 专线网关名称 + 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"` + + // 云联网路由发布模式,可选值:`standard`(标准模式)、`exquisite`(精细模式)。只有云联网类型专线网关才支持`ModeType`。 + ModeType *string `json:"ModeType,omitempty" name:"ModeType"` + + // 专线网关可用区 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 专线网关高可用区容灾组ID + HaZoneGroupId *string `json:"HaZoneGroupId,omitempty" name:"HaZoneGroupId"` +} + type CreateDirectConnectGatewayRequest struct { *tchttp.BaseRequest - + // 专线网关名称 DirectConnectGatewayName *string `json:"DirectConnectGatewayName,omitempty" name:"DirectConnectGatewayName"` @@ -2634,16 +3309,18 @@ func (r *CreateDirectConnectGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateDirectConnectGatewayResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateDirectConnectGatewayResponseParams struct { + // 专线网关对象。 + DirectConnectGateway *DirectConnectGateway `json:"DirectConnectGateway,omitempty" name:"DirectConnectGateway"` - // 专线网关对象。 - DirectConnectGateway *DirectConnectGateway `json:"DirectConnectGateway,omitempty" name:"DirectConnectGateway"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateDirectConnectGatewayResponse struct { + *tchttp.BaseResponse + Response *CreateDirectConnectGatewayResponseParams `json:"Response"` } func (r *CreateDirectConnectGatewayResponse) ToJsonString() string { @@ -2657,9 +3334,8 @@ func (r *CreateDirectConnectGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateFlowLogRequest struct { - *tchttp.BaseRequest - +// Predefined struct for user +type CreateFlowLogRequestParams struct { // 流日志实例名字 FlowLogName *string `json:"FlowLogName,omitempty" name:"FlowLogName"` @@ -2689,17 +3365,57 @@ type CreateFlowLogRequest struct { // 流日志消费端信息,当消费端类型为ckafka时,必填。 FlowLogStorage *FlowLogStorage `json:"FlowLogStorage,omitempty" name:"FlowLogStorage"` -} -func (r *CreateFlowLogRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + // 流日志存储ID对应的地域,不传递默认为本地域。 + CloudLogRegion *string `json:"CloudLogRegion,omitempty" name:"CloudLogRegion"` } -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateFlowLogRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) +type CreateFlowLogRequest struct { + *tchttp.BaseRequest + + // 流日志实例名字 + FlowLogName *string `json:"FlowLogName,omitempty" name:"FlowLogName"` + + // 流日志所属资源类型,VPC|SUBNET|NETWORKINTERFACE|CCN|NAT|DCG + 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或者统一ID,建议使用统一ID,当ResourceType为CCN时不填,其他类型必填。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 流日志实例描述 + FlowLogDescription *string `json:"FlowLogDescription,omitempty" name:"FlowLogDescription"` + + // 流日志存储ID + CloudLogId *string `json:"CloudLogId,omitempty" name:"CloudLogId"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // 消费端类型:cls、ckafka + StorageType *string `json:"StorageType,omitempty" name:"StorageType"` + + // 流日志消费端信息,当消费端类型为ckafka时,必填。 + FlowLogStorage *FlowLogStorage `json:"FlowLogStorage,omitempty" name:"FlowLogStorage"` + + // 流日志存储ID对应的地域,不传递默认为本地域。 + CloudLogRegion *string `json:"CloudLogRegion,omitempty" name:"CloudLogRegion"` +} + +func (r *CreateFlowLogRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateFlowLogRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } @@ -2713,22 +3429,25 @@ func (r *CreateFlowLogRequest) FromJsonString(s string) error { delete(f, "Tags") delete(f, "StorageType") delete(f, "FlowLogStorage") + delete(f, "CloudLogRegion") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateFlowLogRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type CreateFlowLogResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateFlowLogResponseParams struct { + // 创建的流日志信息 + FlowLog []*FlowLog `json:"FlowLog,omitempty" name:"FlowLog"` - // 创建的流日志信息 - FlowLog []*FlowLog `json:"FlowLog,omitempty" name:"FlowLog"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateFlowLogResponse struct { + *tchttp.BaseResponse + Response *CreateFlowLogResponseParams `json:"Response"` } func (r *CreateFlowLogResponse) ToJsonString() string { @@ -2742,9 +3461,24 @@ func (r *CreateFlowLogResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateHaVipRequestParams struct { + // `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"` +} + type CreateHaVipRequest struct { *tchttp.BaseRequest - + // `HAVIP`所在私有网络`ID`。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -2780,16 +3514,18 @@ func (r *CreateHaVipRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateHaVipResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateHaVipResponseParams struct { + // `HAVIP`对象。 + HaVip *HaVip `json:"HaVip,omitempty" name:"HaVip"` - // `HAVIP`对象。 - HaVip *HaVip `json:"HaVip,omitempty" name:"HaVip"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateHaVipResponse struct { + *tchttp.BaseResponse + Response *CreateHaVipResponseParams `json:"Response"` } func (r *CreateHaVipResponse) ToJsonString() string { @@ -2803,9 +3539,21 @@ func (r *CreateHaVipResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateIp6TranslatorsRequestParams struct { + // 转换实例名称 + 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"` +} + type CreateIp6TranslatorsRequest struct { *tchttp.BaseRequest - + // 转换实例名称 Ip6TranslatorName *string `json:"Ip6TranslatorName,omitempty" name:"Ip6TranslatorName"` @@ -2837,16 +3585,18 @@ func (r *CreateIp6TranslatorsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateIp6TranslatorsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateIp6TranslatorsResponseParams struct { + // 转换实例的唯一ID数组,形如"ip6-xxxxxxxx" + Ip6TranslatorSet []*string `json:"Ip6TranslatorSet,omitempty" name:"Ip6TranslatorSet"` - // 转换实例的唯一ID数组,形如"ip6-xxxxxxxx" - Ip6TranslatorSet []*string `json:"Ip6TranslatorSet,omitempty" name:"Ip6TranslatorSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateIp6TranslatorsResponse struct { + *tchttp.BaseResponse + Response *CreateIp6TranslatorsResponseParams `json:"Response"` } func (r *CreateIp6TranslatorsResponse) ToJsonString() string { @@ -2860,9 +3610,21 @@ func (r *CreateIp6TranslatorsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateLocalGatewayRequestParams struct { + // 本地网关名称 + LocalGatewayName *string `json:"LocalGatewayName,omitempty" name:"LocalGatewayName"` + + // VPC实例ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // CDC实例ID + CdcId *string `json:"CdcId,omitempty" name:"CdcId"` +} + type CreateLocalGatewayRequest struct { *tchttp.BaseRequest - + // 本地网关名称 LocalGatewayName *string `json:"LocalGatewayName,omitempty" name:"LocalGatewayName"` @@ -2894,16 +3656,18 @@ func (r *CreateLocalGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateLocalGatewayResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateLocalGatewayResponseParams struct { + // 本地网关信息 + LocalGateway *LocalGateway `json:"LocalGateway,omitempty" name:"LocalGateway"` - // 本地网关信息 - LocalGateway *LocalGateway `json:"LocalGateway,omitempty" name:"LocalGateway"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateLocalGatewayResponse struct { + *tchttp.BaseResponse + Response *CreateLocalGatewayResponseParams `json:"Response"` } func (r *CreateLocalGatewayResponse) ToJsonString() string { @@ -2917,9 +3681,18 @@ func (r *CreateLocalGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateNatGatewayDestinationIpPortTranslationNatRuleRequestParams struct { + // NAT网关的ID,形如:`nat-df45454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // NAT网关的端口转换规则。 + DestinationIpPortTranslationNatRules []*DestinationIpPortTranslationNatRule `json:"DestinationIpPortTranslationNatRules,omitempty" name:"DestinationIpPortTranslationNatRules"` +} + type CreateNatGatewayDestinationIpPortTranslationNatRuleRequest struct { *tchttp.BaseRequest - + // NAT网关的ID,形如:`nat-df45454`。 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -2947,13 +3720,15 @@ func (r *CreateNatGatewayDestinationIpPortTranslationNatRuleRequest) FromJsonStr return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateNatGatewayDestinationIpPortTranslationNatRuleResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateNatGatewayDestinationIpPortTranslationNatRuleResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateNatGatewayDestinationIpPortTranslationNatRuleResponseParams `json:"Response"` } func (r *CreateNatGatewayDestinationIpPortTranslationNatRuleResponse) ToJsonString() string { @@ -2967,9 +3742,48 @@ func (r *CreateNatGatewayDestinationIpPortTranslationNatRuleResponse) FromJsonSt return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateNatGatewayRequestParams struct { + // 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"` + + // 可用区,形如:`ap-guangzhou-1`。 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // NAT网关所属子网 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 绑定NAT网关的弹性IP带宽大小(单位Mbps),默认为当前用户类型所能使用的最大值。 + StockPublicIpAddressesBandwidthOut *uint64 `json:"StockPublicIpAddressesBandwidthOut,omitempty" name:"StockPublicIpAddressesBandwidthOut"` + + // 需要申请公网IP带宽大小(单位Mbps),默认为当前用户类型所能使用的最大值。 + PublicIpAddressesBandwidthOut *uint64 `json:"PublicIpAddressesBandwidthOut,omitempty" name:"PublicIpAddressesBandwidthOut"` + + // 公网IP是否强制与NAT网关来自同可用区,true表示需要与NAT网关同可用区;false表示可与NAT网关不是同一个可用区。此参数只有当参数Zone存在时才能生效。 + PublicIpFromSameZone *bool `json:"PublicIpFromSameZone,omitempty" name:"PublicIpFromSameZone"` +} + type CreateNatGatewayRequest struct { *tchttp.BaseRequest - + // NAT网关名称 NatGatewayName *string `json:"NatGatewayName,omitempty" name:"NatGatewayName"` @@ -3037,19 +3851,21 @@ func (r *CreateNatGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateNatGatewayResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateNatGatewayResponseParams struct { + // NAT网关对象数组。 + NatGatewaySet []*NatGateway `json:"NatGatewaySet,omitempty" name:"NatGatewaySet"` - // NAT网关对象数组。 - NatGatewaySet []*NatGateway `json:"NatGatewaySet,omitempty" name:"NatGatewaySet"` + // 符合条件的 NAT网关对象数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的 NAT网关对象数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateNatGatewayResponse struct { + *tchttp.BaseResponse + Response *CreateNatGatewayResponseParams `json:"Response"` } func (r *CreateNatGatewayResponse) ToJsonString() string { @@ -3063,9 +3879,18 @@ func (r *CreateNatGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateNatGatewaySourceIpTranslationNatRuleRequestParams struct { + // NAT网关的ID,形如:"nat-df45454" + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // NAT网关的SNAT转换规则 + SourceIpTranslationNatRules []*SourceIpTranslationNatRule `json:"SourceIpTranslationNatRules,omitempty" name:"SourceIpTranslationNatRules"` +} + type CreateNatGatewaySourceIpTranslationNatRuleRequest struct { *tchttp.BaseRequest - + // NAT网关的ID,形如:"nat-df45454" NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -3093,13 +3918,15 @@ func (r *CreateNatGatewaySourceIpTranslationNatRuleRequest) FromJsonString(s str return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateNatGatewaySourceIpTranslationNatRuleResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateNatGatewaySourceIpTranslationNatRuleResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateNatGatewaySourceIpTranslationNatRuleResponseParams `json:"Response"` } func (r *CreateNatGatewaySourceIpTranslationNatRuleResponse) ToJsonString() string { @@ -3113,9 +3940,45 @@ func (r *CreateNatGatewaySourceIpTranslationNatRuleResponse) FromJsonString(s st return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateNetDetectRequestParams struct { + // `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"` + + // 下一跳类型,目前我们支持的类型有: + // VPN:VPN网关; + // DIRECTCONNECT:专线网关; + // PEERCONNECTION:对等连接; + // NAT:NAT网关; + // NORMAL_CVM:普通云服务器; + // CCN:云联网网关; + 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; + // 下一跳类型为CCN,取值云联网ID,形如:ccn-12345678; + NextHopDestination *string `json:"NextHopDestination,omitempty" name:"NextHopDestination"` + + // 网络探测描述。 + NetDetectDescription *string `json:"NetDetectDescription,omitempty" name:"NetDetectDescription"` +} + type CreateNetDetectRequest struct { *tchttp.BaseRequest - + // `VPC`实例`ID`。形如:`vpc-12345678` VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -3175,16 +4038,18 @@ func (r *CreateNetDetectRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateNetDetectResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateNetDetectResponseParams struct { + // 网络探测(NetDetect)对象。 + NetDetect *NetDetect `json:"NetDetect,omitempty" name:"NetDetect"` - // 网络探测(NetDetect)对象。 - NetDetect *NetDetect `json:"NetDetect,omitempty" name:"NetDetect"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateNetDetectResponse struct { + *tchttp.BaseResponse + Response *CreateNetDetectResponseParams `json:"Response"` } func (r *CreateNetDetectResponse) ToJsonString() string { @@ -3198,89 +4063,208 @@ func (r *CreateNetDetectResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateNetworkAclRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type CreateNetworkAclQuintupleEntriesRequestParams struct { + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` - // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 - VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + // 网络五元组ACL规则集。 + NetworkAclQuintupleSet *NetworkAclQuintupleEntries `json:"NetworkAclQuintupleSet,omitempty" name:"NetworkAclQuintupleSet"` +} - // 网络ACL名称,最大长度不能超过60个字节。 - NetworkAclName *string `json:"NetworkAclName,omitempty" name:"NetworkAclName"` +type CreateNetworkAclQuintupleEntriesRequest struct { + *tchttp.BaseRequest + + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 网络五元组ACL规则集。 + NetworkAclQuintupleSet *NetworkAclQuintupleEntries `json:"NetworkAclQuintupleSet,omitempty" name:"NetworkAclQuintupleSet"` } -func (r *CreateNetworkAclRequest) ToJsonString() string { +func (r *CreateNetworkAclQuintupleEntriesRequest) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } // FromJsonString It is highly **NOT** recommended to use this function // because it has no param check, nor strict type check -func (r *CreateNetworkAclRequest) FromJsonString(s string) error { +func (r *CreateNetworkAclQuintupleEntriesRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "VpcId") - delete(f, "NetworkAclName") + delete(f, "NetworkAclId") + delete(f, "NetworkAclQuintupleSet") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateNetworkAclRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateNetworkAclQuintupleEntriesRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type CreateNetworkAclResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 网络ACL实例。 - NetworkAcl *NetworkAcl `json:"NetworkAcl,omitempty" name:"NetworkAcl"` +// Predefined struct for user +type CreateNetworkAclQuintupleEntriesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateNetworkAclQuintupleEntriesResponse struct { + *tchttp.BaseResponse + Response *CreateNetworkAclQuintupleEntriesResponseParams `json:"Response"` } -func (r *CreateNetworkAclResponse) ToJsonString() string { +func (r *CreateNetworkAclQuintupleEntriesResponse) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } // FromJsonString It is highly **NOT** recommended to use this function // because it has no param check, nor strict type check -func (r *CreateNetworkAclResponse) FromJsonString(s string) error { +func (r *CreateNetworkAclQuintupleEntriesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateNetworkInterfaceRequest struct { - *tchttp.BaseRequest - +// Predefined struct for user +type CreateNetworkAclRequestParams struct { // 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"` + // 网络ACL名称,最大长度不能超过60个字节。 + NetworkAclName *string `json:"NetworkAclName,omitempty" name:"NetworkAclName"` - // 指定的内网IP信息,单次最多指定10个。 - PrivateIpAddresses []*PrivateIpAddressSpecification `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"` + // 网络ACL类型,三元组(TRIPLE)或五元组(QUINTUPLE) + NetworkAclType *string `json:"NetworkAclType,omitempty" name:"NetworkAclType"` - // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]。 Tags []*Tag `json:"Tags,omitempty" name:"Tags"` } -func (r *CreateNetworkInterfaceRequest) ToJsonString() string { - b, _ := json.Marshal(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"` + + // 网络ACL类型,三元组(TRIPLE)或五元组(QUINTUPLE) + NetworkAclType *string `json:"NetworkAclType,omitempty" name:"NetworkAclType"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]。 + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` +} + +func (r *CreateNetworkAclRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateNetworkAclRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "VpcId") + delete(f, "NetworkAclName") + delete(f, "NetworkAclType") + delete(f, "Tags") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateNetworkAclRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateNetworkAclResponseParams struct { + // 网络ACL实例。 + NetworkAcl *NetworkAcl `json:"NetworkAcl,omitempty" name:"NetworkAcl"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type CreateNetworkAclResponse struct { + *tchttp.BaseResponse + Response *CreateNetworkAclResponseParams `json:"Response"` +} + +func (r *CreateNetworkAclResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateNetworkAclResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateNetworkInterfaceRequestParams struct { + // 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"` + + // 指定的内网IP信息,单次最多指定10个。 + PrivateIpAddresses []*PrivateIpAddressSpecification `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // 网卡trunking模式设置,Enable-开启,Disable--关闭,默认关闭。 + TrunkingFlag *string `json:"TrunkingFlag,omitempty" name:"TrunkingFlag"` +} + +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"` + + // 指定的内网IP信息,单次最多指定10个。 + PrivateIpAddresses []*PrivateIpAddressSpecification `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // 网卡trunking模式设置,Enable-开启,Disable--关闭,默认关闭。 + TrunkingFlag *string `json:"TrunkingFlag,omitempty" name:"TrunkingFlag"` +} + +func (r *CreateNetworkInterfaceRequest) ToJsonString() string { + b, _ := json.Marshal(r) return string(b) } @@ -3299,22 +4283,25 @@ func (r *CreateNetworkInterfaceRequest) FromJsonString(s string) error { delete(f, "SecurityGroupIds") delete(f, "PrivateIpAddresses") delete(f, "Tags") + delete(f, "TrunkingFlag") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateNetworkInterfaceRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type CreateNetworkInterfaceResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateNetworkInterfaceResponseParams struct { + // 弹性网卡实例。 + NetworkInterface *NetworkInterface `json:"NetworkInterface,omitempty" name:"NetworkInterface"` - // 弹性网卡实例。 - NetworkInterface *NetworkInterface `json:"NetworkInterface,omitempty" name:"NetworkInterface"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateNetworkInterfaceResponse struct { + *tchttp.BaseResponse + Response *CreateNetworkInterfaceResponseParams `json:"Response"` } func (r *CreateNetworkInterfaceResponse) ToJsonString() string { @@ -3328,9 +4315,21 @@ func (r *CreateNetworkInterfaceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateRouteTableRequestParams struct { + // 待操作的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"` +} + type CreateRouteTableRequest struct { *tchttp.BaseRequest - + // 待操作的VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -3362,16 +4361,18 @@ func (r *CreateRouteTableRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateRouteTableResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateRouteTableResponseParams struct { + // 路由表对象。 + RouteTable *RouteTable `json:"RouteTable,omitempty" name:"RouteTable"` - // 路由表对象。 - RouteTable *RouteTable `json:"RouteTable,omitempty" name:"RouteTable"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateRouteTableResponse struct { + *tchttp.BaseResponse + Response *CreateRouteTableResponseParams `json:"Response"` } func (r *CreateRouteTableResponse) ToJsonString() string { @@ -3385,9 +4386,18 @@ func (r *CreateRouteTableResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateRoutesRequestParams struct { + // 路由表实例ID。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由策略对象。 + Routes []*Route `json:"Routes,omitempty" name:"Routes"` +} + type CreateRoutesRequest struct { *tchttp.BaseRequest - + // 路由表实例ID。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` @@ -3415,19 +4425,21 @@ func (r *CreateRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateRoutesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateRoutesResponseParams struct { + // 新增的实例个数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 新增的实例个数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 路由表对象。 + RouteTableSet []*RouteTable `json:"RouteTableSet,omitempty" name:"RouteTableSet"` - // 路由表对象。 - RouteTableSet []*RouteTable `json:"RouteTableSet,omitempty" name:"RouteTableSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateRoutesResponse struct { + *tchttp.BaseResponse + Response *CreateRoutesResponseParams `json:"Response"` } func (r *CreateRoutesResponse) ToJsonString() string { @@ -3441,9 +4453,18 @@ func (r *CreateRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateSecurityGroupPoliciesRequestParams struct { + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 安全组规则集合。 + SecurityGroupPolicySet *SecurityGroupPolicySet `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` +} + type CreateSecurityGroupPoliciesRequest struct { *tchttp.BaseRequest - + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` @@ -3471,13 +4492,15 @@ func (r *CreateSecurityGroupPoliciesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateSecurityGroupPoliciesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateSecurityGroupPoliciesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateSecurityGroupPoliciesResponseParams `json:"Response"` } func (r *CreateSecurityGroupPoliciesResponse) ToJsonString() string { @@ -3491,9 +4514,24 @@ func (r *CreateSecurityGroupPoliciesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateSecurityGroupRequestParams struct { + // 安全组名称,可任意命名,但不得超过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"` +} + type CreateSecurityGroupRequest struct { *tchttp.BaseRequest - + // 安全组名称,可任意命名,但不得超过60个字符。 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` @@ -3529,16 +4567,18 @@ func (r *CreateSecurityGroupRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateSecurityGroupResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateSecurityGroupResponseParams struct { + // 安全组对象。 + SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty" name:"SecurityGroup"` - // 安全组对象。 - SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty" name:"SecurityGroup"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateSecurityGroupResponse struct { + *tchttp.BaseResponse + Response *CreateSecurityGroupResponseParams `json:"Response"` } func (r *CreateSecurityGroupResponse) ToJsonString() string { @@ -3552,9 +4592,24 @@ func (r *CreateSecurityGroupResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateSecurityGroupWithPoliciesRequestParams struct { + // 安全组名称,可任意命名,但不得超过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"` + + // 安全组规则集合。 + SecurityGroupPolicySet *SecurityGroupPolicySet `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` +} + type CreateSecurityGroupWithPoliciesRequest struct { *tchttp.BaseRequest - + // 安全组名称,可任意命名,但不得超过60个字符。 GroupName *string `json:"GroupName,omitempty" name:"GroupName"` @@ -3590,16 +4645,18 @@ func (r *CreateSecurityGroupWithPoliciesRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } -type CreateSecurityGroupWithPoliciesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateSecurityGroupWithPoliciesResponseParams struct { + // 安全组对象。 + SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty" name:"SecurityGroup"` - // 安全组对象。 - SecurityGroup *SecurityGroup `json:"SecurityGroup,omitempty" name:"SecurityGroup"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateSecurityGroupWithPoliciesResponse struct { + *tchttp.BaseResponse + Response *CreateSecurityGroupWithPoliciesResponseParams `json:"Response"` } func (r *CreateSecurityGroupWithPoliciesResponse) ToJsonString() string { @@ -3613,9 +4670,18 @@ func (r *CreateSecurityGroupWithPoliciesResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateServiceTemplateGroupRequestParams struct { + // 协议端口模板集合名称 + ServiceTemplateGroupName *string `json:"ServiceTemplateGroupName,omitempty" name:"ServiceTemplateGroupName"` + + // 协议端口模板实例ID,例如:ppm-4dw6agho。 + ServiceTemplateIds []*string `json:"ServiceTemplateIds,omitempty" name:"ServiceTemplateIds"` +} + type CreateServiceTemplateGroupRequest struct { *tchttp.BaseRequest - + // 协议端口模板集合名称 ServiceTemplateGroupName *string `json:"ServiceTemplateGroupName,omitempty" name:"ServiceTemplateGroupName"` @@ -3643,16 +4709,18 @@ func (r *CreateServiceTemplateGroupRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateServiceTemplateGroupResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateServiceTemplateGroupResponseParams struct { + // 协议端口模板集合对象。 + ServiceTemplateGroup *ServiceTemplateGroup `json:"ServiceTemplateGroup,omitempty" name:"ServiceTemplateGroup"` - // 协议端口模板集合对象。 - ServiceTemplateGroup *ServiceTemplateGroup `json:"ServiceTemplateGroup,omitempty" name:"ServiceTemplateGroup"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateServiceTemplateGroupResponse struct { + *tchttp.BaseResponse + Response *CreateServiceTemplateGroupResponseParams `json:"Response"` } func (r *CreateServiceTemplateGroupResponse) ToJsonString() string { @@ -3666,9 +4734,21 @@ func (r *CreateServiceTemplateGroupResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateServiceTemplateRequestParams struct { + // 协议端口模板名称 + ServiceTemplateName *string `json:"ServiceTemplateName,omitempty" name:"ServiceTemplateName"` + + // 支持单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。Services与ServicesExtra必填其一。 + Services []*string `json:"Services,omitempty" name:"Services"` + + // 支持添加备注,单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。Services与ServicesExtra必填其一。 + ServicesExtra []*ServicesInfo `json:"ServicesExtra,omitempty" name:"ServicesExtra"` +} + type CreateServiceTemplateRequest struct { *tchttp.BaseRequest - + // 协议端口模板名称 ServiceTemplateName *string `json:"ServiceTemplateName,omitempty" name:"ServiceTemplateName"` @@ -3700,16 +4780,18 @@ func (r *CreateServiceTemplateRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateServiceTemplateResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateServiceTemplateResponseParams struct { + // 协议端口模板对象。 + ServiceTemplate *ServiceTemplate `json:"ServiceTemplate,omitempty" name:"ServiceTemplate"` - // 协议端口模板对象。 - ServiceTemplate *ServiceTemplate `json:"ServiceTemplate,omitempty" name:"ServiceTemplate"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateServiceTemplateResponse struct { + *tchttp.BaseResponse + Response *CreateServiceTemplateResponseParams `json:"Response"` } func (r *CreateServiceTemplateResponse) ToJsonString() string { @@ -3723,9 +4805,30 @@ func (r *CreateServiceTemplateResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateSubnetRequestParams struct { + // 待操作的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"` + + // CDC实例ID。 + CdcId *string `json:"CdcId,omitempty" name:"CdcId"` +} + type CreateSubnetRequest struct { *tchttp.BaseRequest - + // 待操作的VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -3769,16 +4872,18 @@ func (r *CreateSubnetRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateSubnetResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateSubnetResponseParams struct { + // 子网对象。 + Subnet *Subnet `json:"Subnet,omitempty" name:"Subnet"` - // 子网对象。 - Subnet *Subnet `json:"Subnet,omitempty" name:"Subnet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateSubnetResponse struct { + *tchttp.BaseResponse + Response *CreateSubnetResponseParams `json:"Response"` } func (r *CreateSubnetResponse) ToJsonString() string { @@ -3792,9 +4897,8 @@ func (r *CreateSubnetResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateSubnetsRequest struct { - *tchttp.BaseRequest - +// Predefined struct for user +type CreateSubnetsRequestParams struct { // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -3808,13 +4912,29 @@ type CreateSubnetsRequest struct { CdcId *string `json:"CdcId,omitempty" name:"CdcId"` } -func (r *CreateSubnetsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check +type CreateSubnetsRequest struct { + *tchttp.BaseRequest + + // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 子网对象列表。 + Subnets []*SubnetInput `json:"Subnets,omitempty" name:"Subnets"` + + // 指定绑定的标签列表,注意这里的标签集合为列表中所有子网对象所共享,不能为每个子网对象单独指定标签,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // 需要增加到的CDC实例ID。 + CdcId *string `json:"CdcId,omitempty" name:"CdcId"` +} + +func (r *CreateSubnetsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check func (r *CreateSubnetsRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { @@ -3830,16 +4950,18 @@ func (r *CreateSubnetsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateSubnetsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateSubnetsResponseParams struct { + // 新创建的子网列表。 + SubnetSet []*Subnet `json:"SubnetSet,omitempty" name:"SubnetSet"` - // 新创建的子网列表。 - SubnetSet []*Subnet `json:"SubnetSet,omitempty" name:"SubnetSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateSubnetsResponse struct { + *tchttp.BaseResponse + Response *CreateSubnetsResponseParams `json:"Response"` } func (r *CreateSubnetsResponse) ToJsonString() string { @@ -3853,9 +4975,30 @@ func (r *CreateSubnetsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateVpcEndPointRequestParams struct { + // VPC实例ID。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 子网实例ID。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 终端节点名称。 + EndPointName *string `json:"EndPointName,omitempty" name:"EndPointName"` + + // 终端节点服务ID。 + EndPointServiceId *string `json:"EndPointServiceId,omitempty" name:"EndPointServiceId"` + + // 终端节点VIP,可以指定IP申请。 + EndPointVip *string `json:"EndPointVip,omitempty" name:"EndPointVip"` + + // 安全组ID。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` +} + type CreateVpcEndPointRequest struct { *tchttp.BaseRequest - + // VPC实例ID。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -3899,16 +5042,18 @@ func (r *CreateVpcEndPointRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateVpcEndPointResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateVpcEndPointResponseParams struct { + // 终端节点对象详细信息。 + EndPoint *EndPoint `json:"EndPoint,omitempty" name:"EndPoint"` - // 终端节点对象详细信息。 - EndPoint *EndPoint `json:"EndPoint,omitempty" name:"EndPoint"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateVpcEndPointResponse struct { + *tchttp.BaseResponse + Response *CreateVpcEndPointResponseParams `json:"Response"` } func (r *CreateVpcEndPointResponse) ToJsonString() string { @@ -3922,9 +5067,27 @@ func (r *CreateVpcEndPointResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateVpcEndPointServiceRequestParams struct { + // VPC实例ID。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 终端节点服务名称。 + EndPointServiceName *string `json:"EndPointServiceName,omitempty" name:"EndPointServiceName"` + + // 是否自动接受。 + AutoAcceptFlag *bool `json:"AutoAcceptFlag,omitempty" name:"AutoAcceptFlag"` + + // 后端服务ID,比如lb-xxx。 + ServiceInstanceId *string `json:"ServiceInstanceId,omitempty" name:"ServiceInstanceId"` + + // 是否是PassService类型。 + IsPassService *bool `json:"IsPassService,omitempty" name:"IsPassService"` +} + type CreateVpcEndPointServiceRequest struct { *tchttp.BaseRequest - + // VPC实例ID。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -3964,16 +5127,18 @@ func (r *CreateVpcEndPointServiceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateVpcEndPointServiceResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateVpcEndPointServiceResponseParams struct { + // 终端节点服务对象详细信息。 + EndPointService *EndPointService `json:"EndPointService,omitempty" name:"EndPointService"` - // 终端节点服务对象详细信息。 - EndPointService *EndPointService `json:"EndPointService,omitempty" name:"EndPointService"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateVpcEndPointServiceResponse struct { + *tchttp.BaseResponse + Response *CreateVpcEndPointServiceResponseParams `json:"Response"` } func (r *CreateVpcEndPointServiceResponse) ToJsonString() string { @@ -3987,9 +5152,21 @@ func (r *CreateVpcEndPointServiceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateVpcEndPointServiceWhiteListRequestParams struct { + // UIN。 + UserUin *string `json:"UserUin,omitempty" name:"UserUin"` + + // 终端节点服务ID。 + EndPointServiceId *string `json:"EndPointServiceId,omitempty" name:"EndPointServiceId"` + + // 白名单描述。 + Description *string `json:"Description,omitempty" name:"Description"` +} + type CreateVpcEndPointServiceWhiteListRequest struct { *tchttp.BaseRequest - + // UIN。 UserUin *string `json:"UserUin,omitempty" name:"UserUin"` @@ -4021,13 +5198,15 @@ func (r *CreateVpcEndPointServiceWhiteListRequest) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateVpcEndPointServiceWhiteListResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateVpcEndPointServiceWhiteListResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateVpcEndPointServiceWhiteListResponseParams `json:"Response"` } func (r *CreateVpcEndPointServiceWhiteListResponse) ToJsonString() string { @@ -4041,9 +5220,30 @@ func (r *CreateVpcEndPointServiceWhiteListResponse) FromJsonString(s string) err return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateVpcRequestParams struct { + // 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"` + + // DHCP使用的域名。 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]。 + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` +} + type CreateVpcRequest struct { *tchttp.BaseRequest - + // vpc名称,最大长度不能超过60个字节。 VpcName *string `json:"VpcName,omitempty" name:"VpcName"` @@ -4087,16 +5287,18 @@ func (r *CreateVpcRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateVpcResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateVpcResponseParams struct { + // Vpc对象。 + Vpc *Vpc `json:"Vpc,omitempty" name:"Vpc"` - // Vpc对象。 - Vpc *Vpc `json:"Vpc,omitempty" name:"Vpc"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateVpcResponse struct { + *tchttp.BaseResponse + Response *CreateVpcResponseParams `json:"Response"` } func (r *CreateVpcResponse) ToJsonString() string { @@ -4110,9 +5312,64 @@ func (r *CreateVpcResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateVpnConnectionRequestParams struct { + // 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"` + + // VPC实例ID。可通过[DescribeVpcs](https://cloud.tencent.com/document/product/215/15778)接口返回值中的VpcId获取。 + // CCN VPN 形的通道 可以不传VPCID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 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"` + + // IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议 + IKEOptionsSpecification *IKEOptionsSpecification `json:"IKEOptionsSpecification,omitempty" name:"IKEOptionsSpecification"` + + // IPSec配置,腾讯云提供IPSec安全会话设置 + IPSECOptionsSpecification *IPSECOptionsSpecification `json:"IPSECOptionsSpecification,omitempty" name:"IPSECOptionsSpecification"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // 是否支持隧道内健康检查 + EnableHealthCheck *bool `json:"EnableHealthCheck,omitempty" name:"EnableHealthCheck"` + + // 健康检查本端地址 + HealthCheckLocalIp *string `json:"HealthCheckLocalIp,omitempty" name:"HealthCheckLocalIp"` + + // 健康检查对端地址 + HealthCheckRemoteIp *string `json:"HealthCheckRemoteIp,omitempty" name:"HealthCheckRemoteIp"` + + // 通道类型, 例如:["STATIC", "StaticRoute", "Policy"] + RouteType *string `json:"RouteType,omitempty" name:"RouteType"` + + // 协商类型,默认为active(主动协商)。可选值:active(主动协商),passive(被动协商),flowTrigger(流量协商) + NegotiationType *string `json:"NegotiationType,omitempty" name:"NegotiationType"` + + // DPD探测开关。默认为0,表示关闭DPD探测。可选值:0(关闭),1(开启) + DpdEnable *int64 `json:"DpdEnable,omitempty" name:"DpdEnable"` + + // DPD超时时间。即探测确认对端不存在需要的时间。dpdEnable为1(开启)时有效。默认30,单位为秒 + DpdTimeout *string `json:"DpdTimeout,omitempty" name:"DpdTimeout"` + + // DPD超时后的动作。默认为clear。dpdEnable为1(开启)时有效。可取值为clear(断开)和restart(重试) + DpdAction *string `json:"DpdAction,omitempty" name:"DpdAction"` +} + type CreateVpnConnectionRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID。 VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -4201,16 +5458,18 @@ func (r *CreateVpnConnectionRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateVpnConnectionResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateVpnConnectionResponseParams struct { + // 通道实例对象。 + VpnConnection *VpnConnection `json:"VpnConnection,omitempty" name:"VpnConnection"` - // 通道实例对象。 - VpnConnection *VpnConnection `json:"VpnConnection,omitempty" name:"VpnConnection"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateVpnConnectionResponse struct { + *tchttp.BaseResponse + Response *CreateVpnConnectionResponseParams `json:"Response"` } func (r *CreateVpnConnectionResponse) ToJsonString() string { @@ -4224,9 +5483,42 @@ func (r *CreateVpnConnectionResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateVpnGatewayRequestParams struct { + // VPC实例ID。可通过[DescribeVpcs](https://cloud.tencent.com/document/product/215/15778)接口返回值中的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"` + + // VPN网关类型。值“CCN”云联网类型VPN网关,值SSL为SSL-VPN + Type *string `json:"Type,omitempty" name:"Type"` + + // 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}] + Tags []*Tag `json:"Tags,omitempty" name:"Tags"` + + // CDC实例ID + CdcId *string `json:"CdcId,omitempty" name:"CdcId"` + + // SSL-VPN 最大CLIENT 连接数。可选 [5, 10, 20, 50, 100]。仅SSL-VPN 需要选这个参数。 + MaxConnection *uint64 `json:"MaxConnection,omitempty" name:"MaxConnection"` +} + type CreateVpnGatewayRequest struct { *tchttp.BaseRequest - + // VPC实例ID。可通过[DescribeVpcs](https://cloud.tencent.com/document/product/215/15778)接口返回值中的VpcId获取。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -4286,16 +5578,18 @@ func (r *CreateVpnGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateVpnGatewayResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateVpnGatewayResponseParams struct { + // VPN网关对象 + VpnGateway *VpnGateway `json:"VpnGateway,omitempty" name:"VpnGateway"` - // VPN网关对象 - VpnGateway *VpnGateway `json:"VpnGateway,omitempty" name:"VpnGateway"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateVpnGatewayResponse struct { + *tchttp.BaseResponse + Response *CreateVpnGatewayResponseParams `json:"Response"` } func (r *CreateVpnGatewayResponse) ToJsonString() string { @@ -4309,9 +5603,18 @@ func (r *CreateVpnGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateVpnGatewayRoutesRequestParams struct { + // VPN网关的ID + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // VPN网关目的路由列表 + Routes []*VpnGatewayRoute `json:"Routes,omitempty" name:"Routes"` +} + type CreateVpnGatewayRoutesRequest struct { *tchttp.BaseRequest - + // VPN网关的ID VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -4339,16 +5642,18 @@ func (r *CreateVpnGatewayRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateVpnGatewayRoutesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateVpnGatewayRoutesResponseParams struct { + // VPN网关目的路由 + Routes []*VpnGatewayRoute `json:"Routes,omitempty" name:"Routes"` - // VPN网关目的路由 - Routes []*VpnGatewayRoute `json:"Routes,omitempty" name:"Routes"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateVpnGatewayRoutesResponse struct { + *tchttp.BaseResponse + Response *CreateVpnGatewayRoutesResponseParams `json:"Response"` } func (r *CreateVpnGatewayRoutesResponse) ToJsonString() string { @@ -4362,9 +5667,18 @@ func (r *CreateVpnGatewayRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateVpnGatewaySslClientRequestParams struct { + // SSL-VPN-SERVER 实例ID。 + SslVpnServerId *string `json:"SslVpnServerId,omitempty" name:"SslVpnServerId"` + + // name + SslVpnClientName *string `json:"SslVpnClientName,omitempty" name:"SslVpnClientName"` +} + type CreateVpnGatewaySslClientRequest struct { *tchttp.BaseRequest - + // SSL-VPN-SERVER 实例ID。 SslVpnServerId *string `json:"SslVpnServerId,omitempty" name:"SslVpnServerId"` @@ -4392,19 +5706,21 @@ func (r *CreateVpnGatewaySslClientRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateVpnGatewaySslClientResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateVpnGatewaySslClientResponseParams struct { + // 异步任务ID。 + TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` - // 异步任务ID。 - TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` + // SSL-VPN client 唯一ID + SslVpnClientId *string `json:"SslVpnClientId,omitempty" name:"SslVpnClientId"` - // SSL-VPN client 唯一ID - SslVpnClientId *string `json:"SslVpnClientId,omitempty" name:"SslVpnClientId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateVpnGatewaySslClientResponse struct { + *tchttp.BaseResponse + Response *CreateVpnGatewaySslClientResponseParams `json:"Response"` } func (r *CreateVpnGatewaySslClientResponse) ToJsonString() string { @@ -4418,9 +5734,8 @@ func (r *CreateVpnGatewaySslClientResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateVpnGatewaySslServerRequest struct { - *tchttp.BaseRequest - +// Predefined struct for user +type CreateVpnGatewaySslServerRequestParams struct { // VPN实例ID VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -4447,21 +5762,70 @@ type CreateVpnGatewaySslServerRequest struct { // 是否支持压缩。当前仅支持不支持压缩。默认False Compress *bool `json:"Compress,omitempty" name:"Compress"` -} -func (r *CreateVpnGatewaySslServerRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + // 是否开启SSO认证 + SsoEnabled *bool `json:"SsoEnabled,omitempty" name:"SsoEnabled"` + + // 是否开启策略访问控制 + AccessPolicyEnabled *bool `json:"AccessPolicyEnabled,omitempty" name:"AccessPolicyEnabled"` + + // SAML-DATA + SamlData *string `json:"SamlData,omitempty" name:"SamlData"` } -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateVpnGatewaySslServerRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "VpnGatewayId") +type CreateVpnGatewaySslServerRequest struct { + *tchttp.BaseRequest + + // VPN实例ID + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // SSL_VPN_SERVER 实例名 + SslVpnServerName *string `json:"SslVpnServerName,omitempty" name:"SslVpnServerName"` + + // 本端地址网段 + LocalAddress []*string `json:"LocalAddress,omitempty" name:"LocalAddress"` + + // 客户端地址网段 + RemoteAddress *string `json:"RemoteAddress,omitempty" name:"RemoteAddress"` + + // SSL VPN服务端监听协议。当前仅支持 UDP。默认UDP + SslVpnProtocol *string `json:"SslVpnProtocol,omitempty" name:"SslVpnProtocol"` + + // SSL VPN服务端监听协议端口。默认1194。 + SslVpnPort *int64 `json:"SslVpnPort,omitempty" name:"SslVpnPort"` + + // 认证算法。可选 'SHA1', 'MD5', 'NONE'。默认NONE + IntegrityAlgorithm *string `json:"IntegrityAlgorithm,omitempty" name:"IntegrityAlgorithm"` + + // 加密算法。可选 'AES-128-CBC', 'AES-192-CBC', 'AES-256-CBC', 'NONE'。默认NONE + EncryptAlgorithm *string `json:"EncryptAlgorithm,omitempty" name:"EncryptAlgorithm"` + + // 是否支持压缩。当前仅支持不支持压缩。默认False + Compress *bool `json:"Compress,omitempty" name:"Compress"` + + // 是否开启SSO认证 + SsoEnabled *bool `json:"SsoEnabled,omitempty" name:"SsoEnabled"` + + // 是否开启策略访问控制 + AccessPolicyEnabled *bool `json:"AccessPolicyEnabled,omitempty" name:"AccessPolicyEnabled"` + + // SAML-DATA + SamlData *string `json:"SamlData,omitempty" name:"SamlData"` +} + +func (r *CreateVpnGatewaySslServerRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateVpnGatewaySslServerRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "VpnGatewayId") delete(f, "SslVpnServerName") delete(f, "LocalAddress") delete(f, "RemoteAddress") @@ -4470,25 +5834,30 @@ func (r *CreateVpnGatewaySslServerRequest) FromJsonString(s string) error { delete(f, "IntegrityAlgorithm") delete(f, "EncryptAlgorithm") delete(f, "Compress") + delete(f, "SsoEnabled") + delete(f, "AccessPolicyEnabled") + delete(f, "SamlData") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateVpnGatewaySslServerRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type CreateVpnGatewaySslServerResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateVpnGatewaySslServerResponseParams struct { + // 创建SSL-VPN server 异步任务ID + TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` - // 创建SSL-VPN server 异步任务ID - TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` + // SSL-VPN server 唯一ID + SslVpnServerId *string `json:"SslVpnServerId,omitempty" name:"SslVpnServerId"` - // SSL-VPN server 唯一ID - SslVpnServerId *string `json:"SslVpnServerId,omitempty" name:"SslVpnServerId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateVpnGatewaySslServerResponse struct { + *tchttp.BaseResponse + Response *CreateVpnGatewaySslServerResponseParams `json:"Response"` } func (r *CreateVpnGatewaySslServerResponse) ToJsonString() string { @@ -4503,7 +5872,6 @@ func (r *CreateVpnGatewaySslServerResponse) FromJsonString(s string) error { } type CrossBorderCompliance struct { - // 服务商,可选值:`UNICOM`。 ServiceProvider *string `json:"ServiceProvider,omitempty" name:"ServiceProvider"` @@ -4572,7 +5940,6 @@ type CrossBorderCompliance struct { } type CustomerGateway struct { - // 用户网关唯一ID CustomerGatewayId *string `json:"CustomerGatewayId,omitempty" name:"CustomerGatewayId"` @@ -4587,7 +5954,6 @@ type CustomerGateway struct { } type CustomerGatewayVendor struct { - // 平台。 Platform *string `json:"Platform,omitempty" name:"Platform"` @@ -4599,7 +5965,6 @@ type CustomerGatewayVendor struct { } type CvmInstance struct { - // VPC实例ID。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -4638,7 +6003,6 @@ type CvmInstance struct { } type DefaultVpcSubnet struct { - // 默认VpcId VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -4646,9 +6010,15 @@ type DefaultVpcSubnet struct { SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` } +// Predefined struct for user +type DeleteAddressTemplateGroupRequestParams struct { + // IP地址模板集合实例ID,例如:ipmg-90cex8mq。 + AddressTemplateGroupId *string `json:"AddressTemplateGroupId,omitempty" name:"AddressTemplateGroupId"` +} + type DeleteAddressTemplateGroupRequest struct { *tchttp.BaseRequest - + // IP地址模板集合实例ID,例如:ipmg-90cex8mq。 AddressTemplateGroupId *string `json:"AddressTemplateGroupId,omitempty" name:"AddressTemplateGroupId"` } @@ -4672,13 +6042,15 @@ func (r *DeleteAddressTemplateGroupRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteAddressTemplateGroupResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteAddressTemplateGroupResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteAddressTemplateGroupResponseParams `json:"Response"` } func (r *DeleteAddressTemplateGroupResponse) ToJsonString() string { @@ -4692,9 +6064,15 @@ func (r *DeleteAddressTemplateGroupResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteAddressTemplateRequestParams struct { + // IP地址模板实例ID,例如:ipm-09o5m8kc。 + AddressTemplateId *string `json:"AddressTemplateId,omitempty" name:"AddressTemplateId"` +} + type DeleteAddressTemplateRequest struct { *tchttp.BaseRequest - + // IP地址模板实例ID,例如:ipm-09o5m8kc。 AddressTemplateId *string `json:"AddressTemplateId,omitempty" name:"AddressTemplateId"` } @@ -4718,13 +6096,15 @@ func (r *DeleteAddressTemplateRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteAddressTemplateResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteAddressTemplateResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteAddressTemplateResponseParams `json:"Response"` } func (r *DeleteAddressTemplateResponse) ToJsonString() string { @@ -4738,9 +6118,18 @@ func (r *DeleteAddressTemplateResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteAssistantCidrRequestParams struct { + // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // CIDR数组,格式如["10.0.0.0/16", "172.16.0.0/16"] + CidrBlocks []*string `json:"CidrBlocks,omitempty" name:"CidrBlocks"` +} + type DeleteAssistantCidrRequest struct { *tchttp.BaseRequest - + // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -4768,13 +6157,15 @@ func (r *DeleteAssistantCidrRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteAssistantCidrResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteAssistantCidrResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteAssistantCidrResponseParams `json:"Response"` } func (r *DeleteAssistantCidrResponse) ToJsonString() string { @@ -4788,9 +6179,15 @@ func (r *DeleteAssistantCidrResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteBandwidthPackageRequestParams struct { + // 待删除带宽包唯一ID + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` +} + type DeleteBandwidthPackageRequest struct { *tchttp.BaseRequest - + // 待删除带宽包唯一ID BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` } @@ -4814,13 +6211,15 @@ func (r *DeleteBandwidthPackageRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteBandwidthPackageResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteBandwidthPackageResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteBandwidthPackageResponseParams `json:"Response"` } func (r *DeleteBandwidthPackageResponse) ToJsonString() string { @@ -4834,9 +6233,15 @@ func (r *DeleteBandwidthPackageResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteCcnRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` +} + type DeleteCcnRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` } @@ -4860,13 +6265,15 @@ func (r *DeleteCcnRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteCcnResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteCcnResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteCcnResponseParams `json:"Response"` } func (r *DeleteCcnResponse) ToJsonString() string { @@ -4880,9 +6287,15 @@ func (r *DeleteCcnResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteCustomerGatewayRequestParams struct { + // 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。 + CustomerGatewayId *string `json:"CustomerGatewayId,omitempty" name:"CustomerGatewayId"` +} + type DeleteCustomerGatewayRequest struct { *tchttp.BaseRequest - + // 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。 CustomerGatewayId *string `json:"CustomerGatewayId,omitempty" name:"CustomerGatewayId"` } @@ -4906,13 +6319,15 @@ func (r *DeleteCustomerGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteCustomerGatewayResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteCustomerGatewayResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteCustomerGatewayResponseParams `json:"Response"` } func (r *DeleteCustomerGatewayResponse) ToJsonString() string { @@ -4926,9 +6341,15 @@ func (r *DeleteCustomerGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteDhcpIpRequestParams struct { + // `DhcpIp`的`ID`,是`DhcpIp`的唯一标识。 + DhcpIpId *string `json:"DhcpIpId,omitempty" name:"DhcpIpId"` +} + type DeleteDhcpIpRequest struct { *tchttp.BaseRequest - + // `DhcpIp`的`ID`,是`DhcpIp`的唯一标识。 DhcpIpId *string `json:"DhcpIpId,omitempty" name:"DhcpIpId"` } @@ -4952,13 +6373,15 @@ func (r *DeleteDhcpIpRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteDhcpIpResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteDhcpIpResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteDhcpIpResponseParams `json:"Response"` } func (r *DeleteDhcpIpResponse) ToJsonString() string { @@ -4972,9 +6395,18 @@ func (r *DeleteDhcpIpResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteDirectConnectGatewayCcnRoutesRequestParams struct { + // 专线网关ID,形如:dcg-prpqlmg1 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` + + // 路由ID。形如:ccnr-f49l6u0z。 + RouteIds []*string `json:"RouteIds,omitempty" name:"RouteIds"` +} + type DeleteDirectConnectGatewayCcnRoutesRequest struct { *tchttp.BaseRequest - + // 专线网关ID,形如:dcg-prpqlmg1 DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` @@ -5002,13 +6434,15 @@ func (r *DeleteDirectConnectGatewayCcnRoutesRequest) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteDirectConnectGatewayCcnRoutesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteDirectConnectGatewayCcnRoutesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteDirectConnectGatewayCcnRoutesResponseParams `json:"Response"` } func (r *DeleteDirectConnectGatewayCcnRoutesResponse) ToJsonString() string { @@ -5022,9 +6456,15 @@ func (r *DeleteDirectConnectGatewayCcnRoutesResponse) FromJsonString(s string) e return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteDirectConnectGatewayRequestParams struct { + // 专线网关唯一`ID`,形如:`dcg-9o233uri`。 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` +} + type DeleteDirectConnectGatewayRequest struct { *tchttp.BaseRequest - + // 专线网关唯一`ID`,形如:`dcg-9o233uri`。 DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` } @@ -5048,13 +6488,15 @@ func (r *DeleteDirectConnectGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteDirectConnectGatewayResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteDirectConnectGatewayResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteDirectConnectGatewayResponseParams `json:"Response"` } func (r *DeleteDirectConnectGatewayResponse) ToJsonString() string { @@ -5068,9 +6510,18 @@ func (r *DeleteDirectConnectGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteFlowLogRequestParams struct { + // 流日志唯一ID + FlowLogId *string `json:"FlowLogId,omitempty" name:"FlowLogId"` + + // 私用网络ID或者统一ID,建议使用统一ID,删除云联网流日志时,可不填,其他流日志类型必填。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` +} + type DeleteFlowLogRequest struct { *tchttp.BaseRequest - + // 流日志唯一ID FlowLogId *string `json:"FlowLogId,omitempty" name:"FlowLogId"` @@ -5098,13 +6549,15 @@ func (r *DeleteFlowLogRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteFlowLogResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteFlowLogResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteFlowLogResponseParams `json:"Response"` } func (r *DeleteFlowLogResponse) ToJsonString() string { @@ -5118,9 +6571,15 @@ func (r *DeleteFlowLogResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteHaVipRequestParams struct { + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。 + HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` +} + type DeleteHaVipRequest struct { *tchttp.BaseRequest - + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。 HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` } @@ -5144,13 +6603,15 @@ func (r *DeleteHaVipRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteHaVipResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteHaVipResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteHaVipResponseParams `json:"Response"` } func (r *DeleteHaVipResponse) ToJsonString() string { @@ -5164,9 +6625,15 @@ func (r *DeleteHaVipResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteIp6TranslatorsRequestParams struct { + // 待释放的IPV6转换实例的唯一ID,形如‘ip6-xxxxxxxx’ + Ip6TranslatorIds []*string `json:"Ip6TranslatorIds,omitempty" name:"Ip6TranslatorIds"` +} + type DeleteIp6TranslatorsRequest struct { *tchttp.BaseRequest - + // 待释放的IPV6转换实例的唯一ID,形如‘ip6-xxxxxxxx’ Ip6TranslatorIds []*string `json:"Ip6TranslatorIds,omitempty" name:"Ip6TranslatorIds"` } @@ -5190,13 +6657,15 @@ func (r *DeleteIp6TranslatorsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteIp6TranslatorsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteIp6TranslatorsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteIp6TranslatorsResponseParams `json:"Response"` } func (r *DeleteIp6TranslatorsResponse) ToJsonString() string { @@ -5210,9 +6679,21 @@ func (r *DeleteIp6TranslatorsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteLocalGatewayRequestParams struct { + // 本地网关实例ID + LocalGatewayId *string `json:"LocalGatewayId,omitempty" name:"LocalGatewayId"` + + // CDC实例ID + CdcId *string `json:"CdcId,omitempty" name:"CdcId"` + + // VPC实例ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` +} + type DeleteLocalGatewayRequest struct { *tchttp.BaseRequest - + // 本地网关实例ID LocalGatewayId *string `json:"LocalGatewayId,omitempty" name:"LocalGatewayId"` @@ -5244,13 +6725,15 @@ func (r *DeleteLocalGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteLocalGatewayResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteLocalGatewayResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteLocalGatewayResponseParams `json:"Response"` } func (r *DeleteLocalGatewayResponse) ToJsonString() string { @@ -5264,9 +6747,18 @@ func (r *DeleteLocalGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteNatGatewayDestinationIpPortTranslationNatRuleRequestParams struct { + // NAT网关的ID,形如:`nat-df45454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // NAT网关的端口转换规则。 + DestinationIpPortTranslationNatRules []*DestinationIpPortTranslationNatRule `json:"DestinationIpPortTranslationNatRules,omitempty" name:"DestinationIpPortTranslationNatRules"` +} + type DeleteNatGatewayDestinationIpPortTranslationNatRuleRequest struct { *tchttp.BaseRequest - + // NAT网关的ID,形如:`nat-df45454`。 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -5294,13 +6786,15 @@ func (r *DeleteNatGatewayDestinationIpPortTranslationNatRuleRequest) FromJsonStr return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteNatGatewayDestinationIpPortTranslationNatRuleResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteNatGatewayDestinationIpPortTranslationNatRuleResponseParams `json:"Response"` } func (r *DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse) ToJsonString() string { @@ -5314,9 +6808,15 @@ func (r *DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse) FromJsonSt return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteNatGatewayRequestParams struct { + // NAT网关的ID,形如:`nat-df45454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` +} + type DeleteNatGatewayRequest struct { *tchttp.BaseRequest - + // NAT网关的ID,形如:`nat-df45454`。 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` } @@ -5340,13 +6840,15 @@ func (r *DeleteNatGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteNatGatewayResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteNatGatewayResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteNatGatewayResponseParams `json:"Response"` } func (r *DeleteNatGatewayResponse) ToJsonString() string { @@ -5360,9 +6862,18 @@ func (r *DeleteNatGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteNatGatewaySourceIpTranslationNatRuleRequestParams struct { + // NAT网关的ID,形如:`nat-df45454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // NAT网关的SNAT ID列表,形如:`snat-df43254`。 + NatGatewaySnatIds []*string `json:"NatGatewaySnatIds,omitempty" name:"NatGatewaySnatIds"` +} + type DeleteNatGatewaySourceIpTranslationNatRuleRequest struct { *tchttp.BaseRequest - + // NAT网关的ID,形如:`nat-df45454`。 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -5390,13 +6901,15 @@ func (r *DeleteNatGatewaySourceIpTranslationNatRuleRequest) FromJsonString(s str return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteNatGatewaySourceIpTranslationNatRuleResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteNatGatewaySourceIpTranslationNatRuleResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteNatGatewaySourceIpTranslationNatRuleResponseParams `json:"Response"` } func (r *DeleteNatGatewaySourceIpTranslationNatRuleResponse) ToJsonString() string { @@ -5410,9 +6923,15 @@ func (r *DeleteNatGatewaySourceIpTranslationNatRuleResponse) FromJsonString(s st return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteNetDetectRequestParams struct { + // 网络探测实例`ID`。形如:`netd-12345678` + NetDetectId *string `json:"NetDetectId,omitempty" name:"NetDetectId"` +} + type DeleteNetDetectRequest struct { *tchttp.BaseRequest - + // 网络探测实例`ID`。形如:`netd-12345678` NetDetectId *string `json:"NetDetectId,omitempty" name:"NetDetectId"` } @@ -5436,13 +6955,15 @@ func (r *DeleteNetDetectRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteNetDetectResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteNetDetectResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteNetDetectResponseParams `json:"Response"` } func (r *DeleteNetDetectResponse) ToJsonString() string { @@ -5456,88 +6977,165 @@ func (r *DeleteNetDetectResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DeleteNetworkAclRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type DeleteNetworkAclQuintupleEntriesRequestParams struct { + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 网络五元组ACL规则集。 + NetworkAclQuintupleSet *NetworkAclQuintupleEntries `json:"NetworkAclQuintupleSet,omitempty" name:"NetworkAclQuintupleSet"` +} +type DeleteNetworkAclQuintupleEntriesRequest struct { + *tchttp.BaseRequest + // 网络ACL实例ID。例如:acl-12345678。 NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 网络五元组ACL规则集。 + NetworkAclQuintupleSet *NetworkAclQuintupleEntries `json:"NetworkAclQuintupleSet,omitempty" name:"NetworkAclQuintupleSet"` } -func (r *DeleteNetworkAclRequest) ToJsonString() string { +func (r *DeleteNetworkAclQuintupleEntriesRequest) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } // FromJsonString It is highly **NOT** recommended to use this function // because it has no param check, nor strict type check -func (r *DeleteNetworkAclRequest) FromJsonString(s string) error { +func (r *DeleteNetworkAclQuintupleEntriesRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "NetworkAclId") + delete(f, "NetworkAclQuintupleSet") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteNetworkAclRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteNetworkAclQuintupleEntriesRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DeleteNetworkAclResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DeleteNetworkAclQuintupleEntriesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DeleteNetworkAclQuintupleEntriesResponse struct { + *tchttp.BaseResponse + Response *DeleteNetworkAclQuintupleEntriesResponseParams `json:"Response"` } -func (r *DeleteNetworkAclResponse) ToJsonString() string { +func (r *DeleteNetworkAclQuintupleEntriesResponse) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } // FromJsonString It is highly **NOT** recommended to use this function // because it has no param check, nor strict type check -func (r *DeleteNetworkAclResponse) FromJsonString(s string) error { +func (r *DeleteNetworkAclQuintupleEntriesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DeleteNetworkInterfaceRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type DeleteNetworkAclRequestParams struct { + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` +} - // 弹性网卡实例ID,例如:eni-m6dyj72l。 - NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` +type DeleteNetworkAclRequest struct { + *tchttp.BaseRequest + + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` } -func (r *DeleteNetworkInterfaceRequest) ToJsonString() string { +func (r *DeleteNetworkAclRequest) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } // FromJsonString It is highly **NOT** recommended to use this function // because it has no param check, nor strict type check -func (r *DeleteNetworkInterfaceRequest) FromJsonString(s string) error { +func (r *DeleteNetworkAclRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "NetworkInterfaceId") + delete(f, "NetworkAclId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteNetworkInterfaceRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteNetworkAclRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DeleteNetworkInterfaceResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DeleteNetworkAclResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DeleteNetworkAclResponse struct { + *tchttp.BaseResponse + Response *DeleteNetworkAclResponseParams `json:"Response"` } -func (r *DeleteNetworkInterfaceResponse) ToJsonString() string { +func (r *DeleteNetworkAclResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteNetworkAclResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteNetworkInterfaceRequestParams struct { + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` +} + +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) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteNetworkInterfaceRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "NetworkInterfaceId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteNetworkInterfaceRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteNetworkInterfaceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DeleteNetworkInterfaceResponse struct { + *tchttp.BaseResponse + Response *DeleteNetworkInterfaceResponseParams `json:"Response"` +} + +func (r *DeleteNetworkInterfaceResponse) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } @@ -5548,9 +7146,15 @@ func (r *DeleteNetworkInterfaceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteRouteTableRequestParams struct { + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` +} + type DeleteRouteTableRequest struct { *tchttp.BaseRequest - + // 路由表实例ID,例如:rtb-azd4dt1c。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` } @@ -5574,13 +7178,15 @@ func (r *DeleteRouteTableRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteRouteTableResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteRouteTableResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteRouteTableResponseParams `json:"Response"` } func (r *DeleteRouteTableResponse) ToJsonString() string { @@ -5594,9 +7200,18 @@ func (r *DeleteRouteTableResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteRoutesRequestParams struct { + // 路由表实例ID。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由策略对象,删除路由策略时,仅需使用Route的RouteId字段。 + Routes []*Route `json:"Routes,omitempty" name:"Routes"` +} + type DeleteRoutesRequest struct { *tchttp.BaseRequest - + // 路由表实例ID。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` @@ -5624,16 +7239,18 @@ func (r *DeleteRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DeleteRoutesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DeleteRoutesResponseParams struct { + // 已删除的路由策略详情。 + RouteSet []*Route `json:"RouteSet,omitempty" name:"RouteSet"` - // 已删除的路由策略详情。 - RouteSet []*Route `json:"RouteSet,omitempty" name:"RouteSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DeleteRoutesResponse struct { + *tchttp.BaseResponse + Response *DeleteRoutesResponseParams `json:"Response"` } func (r *DeleteRoutesResponse) ToJsonString() string { @@ -5647,9 +7264,18 @@ func (r *DeleteRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteSecurityGroupPoliciesRequestParams struct { + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 安全组规则集合。一个请求中只能删除单个方向的一条或多条规则。支持指定索引(PolicyIndex) 匹配删除和安全组规则匹配删除两种方式,一个请求中只能使用一种匹配方式。 + SecurityGroupPolicySet *SecurityGroupPolicySet `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` +} + type DeleteSecurityGroupPoliciesRequest struct { *tchttp.BaseRequest - + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` @@ -5677,13 +7303,15 @@ func (r *DeleteSecurityGroupPoliciesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteSecurityGroupPoliciesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteSecurityGroupPoliciesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteSecurityGroupPoliciesResponseParams `json:"Response"` } func (r *DeleteSecurityGroupPoliciesResponse) ToJsonString() string { @@ -5697,9 +7325,15 @@ func (r *DeleteSecurityGroupPoliciesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteSecurityGroupRequestParams struct { + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` +} + type DeleteSecurityGroupRequest struct { *tchttp.BaseRequest - + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` } @@ -5723,13 +7357,15 @@ func (r *DeleteSecurityGroupRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteSecurityGroupResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteSecurityGroupResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteSecurityGroupResponseParams `json:"Response"` } func (r *DeleteSecurityGroupResponse) ToJsonString() string { @@ -5743,9 +7379,15 @@ func (r *DeleteSecurityGroupResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteServiceTemplateGroupRequestParams struct { + // 协议端口模板集合实例ID,例如:ppmg-n17uxvve。 + ServiceTemplateGroupId *string `json:"ServiceTemplateGroupId,omitempty" name:"ServiceTemplateGroupId"` +} + type DeleteServiceTemplateGroupRequest struct { *tchttp.BaseRequest - + // 协议端口模板集合实例ID,例如:ppmg-n17uxvve。 ServiceTemplateGroupId *string `json:"ServiceTemplateGroupId,omitempty" name:"ServiceTemplateGroupId"` } @@ -5769,13 +7411,15 @@ func (r *DeleteServiceTemplateGroupRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteServiceTemplateGroupResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteServiceTemplateGroupResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteServiceTemplateGroupResponseParams `json:"Response"` } func (r *DeleteServiceTemplateGroupResponse) ToJsonString() string { @@ -5789,9 +7433,15 @@ func (r *DeleteServiceTemplateGroupResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteServiceTemplateRequestParams struct { + // 协议端口模板实例ID,例如:ppm-e6dy460g。 + ServiceTemplateId *string `json:"ServiceTemplateId,omitempty" name:"ServiceTemplateId"` +} + type DeleteServiceTemplateRequest struct { *tchttp.BaseRequest - + // 协议端口模板实例ID,例如:ppm-e6dy460g。 ServiceTemplateId *string `json:"ServiceTemplateId,omitempty" name:"ServiceTemplateId"` } @@ -5815,13 +7465,15 @@ func (r *DeleteServiceTemplateRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteServiceTemplateResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteServiceTemplateResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteServiceTemplateResponseParams `json:"Response"` } func (r *DeleteServiceTemplateResponse) ToJsonString() string { @@ -5835,9 +7487,15 @@ func (r *DeleteServiceTemplateResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteSubnetRequestParams struct { + // 子网实例ID。可通过DescribeSubnets接口返回值中的SubnetId获取。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` +} + type DeleteSubnetRequest struct { *tchttp.BaseRequest - + // 子网实例ID。可通过DescribeSubnets接口返回值中的SubnetId获取。 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` } @@ -5861,13 +7519,15 @@ func (r *DeleteSubnetRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteSubnetResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteSubnetResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteSubnetResponseParams `json:"Response"` } func (r *DeleteSubnetResponse) ToJsonString() string { @@ -5881,9 +7541,18 @@ func (r *DeleteSubnetResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteTemplateMemberRequestParams struct { + // 参数模板实例ID,支持IP地址、协议端口、IP地址组、协议端口组四种参数模板的实例ID。 + TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` + + // 需要添加的参数模板成员信息,支持IP地址、协议端口、IP地址组、协议端口组四种类型,类型需要与TemplateId参数类型一致。 + TemplateMember []*MemberInfo `json:"TemplateMember,omitempty" name:"TemplateMember"` +} + type DeleteTemplateMemberRequest struct { *tchttp.BaseRequest - + // 参数模板实例ID,支持IP地址、协议端口、IP地址组、协议端口组四种参数模板的实例ID。 TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` @@ -5911,13 +7580,15 @@ func (r *DeleteTemplateMemberRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteTemplateMemberResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteTemplateMemberResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteTemplateMemberResponseParams `json:"Response"` } func (r *DeleteTemplateMemberResponse) ToJsonString() string { @@ -5931,9 +7602,15 @@ func (r *DeleteTemplateMemberResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpcEndPointRequestParams struct { + // 终端节点ID。 + EndPointId *string `json:"EndPointId,omitempty" name:"EndPointId"` +} + type DeleteVpcEndPointRequest struct { *tchttp.BaseRequest - + // 终端节点ID。 EndPointId *string `json:"EndPointId,omitempty" name:"EndPointId"` } @@ -5957,13 +7634,15 @@ func (r *DeleteVpcEndPointRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpcEndPointResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteVpcEndPointResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteVpcEndPointResponseParams `json:"Response"` } func (r *DeleteVpcEndPointResponse) ToJsonString() string { @@ -5977,9 +7656,15 @@ func (r *DeleteVpcEndPointResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpcEndPointServiceRequestParams struct { + // 终端节点ID。 + EndPointServiceId *string `json:"EndPointServiceId,omitempty" name:"EndPointServiceId"` +} + type DeleteVpcEndPointServiceRequest struct { *tchttp.BaseRequest - + // 终端节点ID。 EndPointServiceId *string `json:"EndPointServiceId,omitempty" name:"EndPointServiceId"` } @@ -6003,13 +7688,15 @@ func (r *DeleteVpcEndPointServiceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpcEndPointServiceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteVpcEndPointServiceResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteVpcEndPointServiceResponseParams `json:"Response"` } func (r *DeleteVpcEndPointServiceResponse) ToJsonString() string { @@ -6023,9 +7710,18 @@ func (r *DeleteVpcEndPointServiceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpcEndPointServiceWhiteListRequestParams struct { + // 用户UIN数组。 + UserUin []*string `json:"UserUin,omitempty" name:"UserUin"` + + // 终端节点服务ID。 + EndPointServiceId *string `json:"EndPointServiceId,omitempty" name:"EndPointServiceId"` +} + type DeleteVpcEndPointServiceWhiteListRequest struct { *tchttp.BaseRequest - + // 用户UIN数组。 UserUin []*string `json:"UserUin,omitempty" name:"UserUin"` @@ -6053,13 +7749,15 @@ func (r *DeleteVpcEndPointServiceWhiteListRequest) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpcEndPointServiceWhiteListResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteVpcEndPointServiceWhiteListResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteVpcEndPointServiceWhiteListResponseParams `json:"Response"` } func (r *DeleteVpcEndPointServiceWhiteListResponse) ToJsonString() string { @@ -6073,9 +7771,15 @@ func (r *DeleteVpcEndPointServiceWhiteListResponse) FromJsonString(s string) err return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpcRequestParams struct { + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` +} + type DeleteVpcRequest struct { *tchttp.BaseRequest - + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` } @@ -6099,13 +7803,15 @@ func (r *DeleteVpcRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpcResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteVpcResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteVpcResponseParams `json:"Response"` } func (r *DeleteVpcResponse) ToJsonString() string { @@ -6119,9 +7825,18 @@ func (r *DeleteVpcResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpnConnectionRequestParams struct { + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // VPN通道实例ID。形如:vpnx-f49l6u0z。 + VpnConnectionId *string `json:"VpnConnectionId,omitempty" name:"VpnConnectionId"` +} + type DeleteVpnConnectionRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID。 VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -6149,13 +7864,15 @@ func (r *DeleteVpnConnectionRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpnConnectionResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteVpnConnectionResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteVpnConnectionResponseParams `json:"Response"` } func (r *DeleteVpnConnectionResponse) ToJsonString() string { @@ -6169,9 +7886,15 @@ func (r *DeleteVpnConnectionResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpnGatewayRequestParams struct { + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` +} + type DeleteVpnGatewayRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID。 VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` } @@ -6195,13 +7918,15 @@ func (r *DeleteVpnGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpnGatewayResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteVpnGatewayResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteVpnGatewayResponseParams `json:"Response"` } func (r *DeleteVpnGatewayResponse) ToJsonString() string { @@ -6215,9 +7940,18 @@ func (r *DeleteVpnGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpnGatewayRoutesRequestParams struct { + // VPN网关实例ID + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 路由ID信息列表 + RouteIds []*string `json:"RouteIds,omitempty" name:"RouteIds"` +} + type DeleteVpnGatewayRoutesRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -6245,13 +7979,15 @@ func (r *DeleteVpnGatewayRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpnGatewayRoutesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteVpnGatewayRoutesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteVpnGatewayRoutesResponseParams `json:"Response"` } func (r *DeleteVpnGatewayRoutesResponse) ToJsonString() string { @@ -6265,9 +8001,15 @@ func (r *DeleteVpnGatewayRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpnGatewaySslClientRequestParams struct { + // SSL-VPN-CLIENT 实例ID。 + SslVpnClientId *string `json:"SslVpnClientId,omitempty" name:"SslVpnClientId"` +} + type DeleteVpnGatewaySslClientRequest struct { *tchttp.BaseRequest - + // SSL-VPN-CLIENT 实例ID。 SslVpnClientId *string `json:"SslVpnClientId,omitempty" name:"SslVpnClientId"` } @@ -6291,16 +8033,18 @@ func (r *DeleteVpnGatewaySslClientRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DeleteVpnGatewaySslClientResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DeleteVpnGatewaySslClientResponseParams struct { + // 异步任务ID。 + TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` - // 异步任务ID。 - TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DeleteVpnGatewaySslClientResponse struct { + *tchttp.BaseResponse + Response *DeleteVpnGatewaySslClientResponseParams `json:"Response"` } func (r *DeleteVpnGatewaySslClientResponse) ToJsonString() string { @@ -6314,9 +8058,15 @@ func (r *DeleteVpnGatewaySslClientResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteVpnGatewaySslServerRequestParams struct { + // SSL-VPN-SERVER 实例ID。 + SslVpnServerId *string `json:"SslVpnServerId,omitempty" name:"SslVpnServerId"` +} + type DeleteVpnGatewaySslServerRequest struct { *tchttp.BaseRequest - + // SSL-VPN-SERVER 实例ID。 SslVpnServerId *string `json:"SslVpnServerId,omitempty" name:"SslVpnServerId"` } @@ -6340,16 +8090,18 @@ func (r *DeleteVpnGatewaySslServerRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DeleteVpnGatewaySslServerResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DeleteVpnGatewaySslServerResponseParams struct { + // 异步任务ID。 + TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` - // 异步任务ID。 - TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DeleteVpnGatewaySslServerResponse struct { + *tchttp.BaseResponse + Response *DeleteVpnGatewaySslServerResponseParams `json:"Response"` } func (r *DeleteVpnGatewaySslServerResponse) ToJsonString() string { @@ -6363,8 +8115,14 @@ func (r *DeleteVpnGatewaySslServerResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeAccountAttributesRequestParams struct { + +} + type DescribeAccountAttributesRequest struct { *tchttp.BaseRequest + } func (r *DescribeAccountAttributesRequest) ToJsonString() string { @@ -6379,22 +8137,25 @@ func (r *DescribeAccountAttributesRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAccountAttributesRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeAccountAttributesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeAccountAttributesResponseParams struct { + // 用户账号属性对象 + AccountAttributeSet []*AccountAttribute `json:"AccountAttributeSet,omitempty" name:"AccountAttributeSet"` - // 用户账号属性对象 - AccountAttributeSet []*AccountAttribute `json:"AccountAttributeSet,omitempty" name:"AccountAttributeSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeAccountAttributesResponse struct { + *tchttp.BaseResponse + Response *DescribeAccountAttributesResponseParams `json:"Response"` } func (r *DescribeAccountAttributesResponse) ToJsonString() string { @@ -6408,8 +8169,14 @@ func (r *DescribeAccountAttributesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeAddressQuotaRequestParams struct { + +} + type DescribeAddressQuotaRequest struct { *tchttp.BaseRequest + } func (r *DescribeAddressQuotaRequest) ToJsonString() string { @@ -6424,22 +8191,25 @@ func (r *DescribeAddressQuotaRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAddressQuotaRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeAddressQuotaResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeAddressQuotaResponseParams struct { + // 账户 EIP 配额信息。 + QuotaSet []*Quota `json:"QuotaSet,omitempty" name:"QuotaSet"` - // 账户 EIP 配额信息。 - QuotaSet []*Quota `json:"QuotaSet,omitempty" name:"QuotaSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeAddressQuotaResponse struct { + *tchttp.BaseResponse + Response *DescribeAddressQuotaResponseParams `json:"Response"` } func (r *DescribeAddressQuotaResponse) ToJsonString() string { @@ -6453,9 +8223,23 @@ func (r *DescribeAddressQuotaResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeAddressTemplateGroupsRequestParams struct { + // 过滤条件。 + //
  • address-template-group-name - String - (过滤条件)IP地址模板集合名称。
  • + //
  • address-template-group-id - String - (过滤条件)IP地址模板实集合例ID,例如:ipmg-mdunqeb6。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + type DescribeAddressTemplateGroupsRequest struct { *tchttp.BaseRequest - + // 过滤条件。 //
  • address-template-group-name - String - (过滤条件)IP地址模板集合名称。
  • //
  • address-template-group-id - String - (过滤条件)IP地址模板实集合例ID,例如:ipmg-mdunqeb6。
  • @@ -6489,19 +8273,21 @@ func (r *DescribeAddressTemplateGroupsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeAddressTemplateGroupsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeAddressTemplateGroupsResponseParams struct { + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // IP地址模板。 + AddressTemplateGroupSet []*AddressTemplateGroup `json:"AddressTemplateGroupSet,omitempty" name:"AddressTemplateGroupSet"` - // IP地址模板。 - AddressTemplateGroupSet []*AddressTemplateGroup `json:"AddressTemplateGroupSet,omitempty" name:"AddressTemplateGroupSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeAddressTemplateGroupsResponse struct { + *tchttp.BaseResponse + Response *DescribeAddressTemplateGroupsResponseParams `json:"Response"` } func (r *DescribeAddressTemplateGroupsResponse) ToJsonString() string { @@ -6515,9 +8301,8 @@ func (r *DescribeAddressTemplateGroupsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeAddressTemplatesRequest struct { - *tchttp.BaseRequest - +// Predefined struct for user +type DescribeAddressTemplatesRequestParams struct { // 过滤条件。 //
  • address-template-name - IP地址模板名称。
  • //
  • address-template-id - IP地址模板实例ID,例如:ipm-mdunqeb6。
  • @@ -6531,14 +8316,30 @@ type DescribeAddressTemplatesRequest struct { Limit *string `json:"Limit,omitempty" name:"Limit"` } -func (r *DescribeAddressTemplatesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DescribeAddressTemplatesRequest) FromJsonString(s string) error { +type DescribeAddressTemplatesRequest struct { + *tchttp.BaseRequest + + // 过滤条件。 + //
  • address-template-name - IP地址模板名称。
  • + //
  • address-template-id - IP地址模板实例ID,例如:ipm-mdunqeb6。
  • + //
  • address-ip - IP地址。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为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) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeAddressTemplatesRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err @@ -6552,19 +8353,21 @@ func (r *DescribeAddressTemplatesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeAddressTemplatesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeAddressTemplatesResponseParams struct { + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // IP地址模板。 + AddressTemplateSet []*AddressTemplate `json:"AddressTemplateSet,omitempty" name:"AddressTemplateSet"` - // IP地址模板。 - AddressTemplateSet []*AddressTemplate `json:"AddressTemplateSet,omitempty" name:"AddressTemplateSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeAddressTemplatesResponse struct { + *tchttp.BaseResponse + Response *DescribeAddressTemplatesResponseParams `json:"Response"` } func (r *DescribeAddressTemplatesResponse) ToJsonString() string { @@ -6578,9 +8381,38 @@ func (r *DescribeAddressTemplatesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeAddressesRequestParams struct { + // 标识 EIP 的唯一 ID 列表。EIP 唯一 ID 形如:`eip-11112222`。参数不支持同时指定`AddressIds`和`Filters.address-id`。 + AddressIds []*string `json:"AddressIds,omitempty" name:"AddressIds"` + + // 每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。详细的过滤条件如下: + //
  • 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 费用状态正常)
  • + //
  • address-type - String - 是否必填:否 - (过滤条件)按照 IP类型 进行过滤。可选值:'WanIP', 'EIP','AnycastEIP','HighQualityEIP'。默认值是'EIP'。
  • + //
  • address-isp - String - 是否必填:否 - (过滤条件)按照 运营商类型 进行过滤。可选值:'BGP','CMCC','CUCC', 'CTCC'
  • + //
  • dedicated-cluster-id - String - 是否必填:否 - (过滤条件)按照 CDC 的唯一 ID 过滤。CDC 唯一 ID 形如:cluster-11112222。
  • + //
  • tag-key - String - 是否必填:否 - (过滤条件)按照标签键进行过滤。
  • + //
  • tag-value - String - 是否必填:否 - (过滤条件)按照标签值进行过滤。
  • + //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。tag-key使用具体的标签键进行替换。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API 中的相关小节。 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API 中的相关小节。 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeAddressesRequest struct { *tchttp.BaseRequest - + // 标识 EIP 的唯一 ID 列表。EIP 唯一 ID 形如:`eip-11112222`。参数不支持同时指定`AddressIds`和`Filters.address-id`。 AddressIds []*string `json:"AddressIds,omitempty" name:"AddressIds"` @@ -6601,10 +8433,10 @@ type DescribeAddressesRequest struct { //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。tag-key使用具体的标签键进行替换。
  • Filters []*Filter `json:"Filters,omitempty" name:"Filters"` - // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/11646)中的相关小节。 + // 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API 中的相关小节。 Offset *int64 `json:"Offset,omitempty" name:"Offset"` - // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/11646)中的相关小节。 + // 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API 中的相关小节。 Limit *int64 `json:"Limit,omitempty" name:"Limit"` } @@ -6630,19 +8462,21 @@ func (r *DescribeAddressesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeAddressesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeAddressesResponseParams struct { + // 符合条件的 EIP 数量。 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的 EIP 数量。 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // EIP 详细信息列表。 + AddressSet []*Address `json:"AddressSet,omitempty" name:"AddressSet"` - // EIP 详细信息列表。 - AddressSet []*Address `json:"AddressSet,omitempty" name:"AddressSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeAddressesResponse struct { + *tchttp.BaseResponse + Response *DescribeAddressesResponseParams `json:"Response"` } func (r *DescribeAddressesResponse) ToJsonString() string { @@ -6656,9 +8490,25 @@ func (r *DescribeAddressesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeAssistantCidrRequestParams struct { + // `VPC`实例`ID`数组。形如:[`vpc-6v2ht8q5`] + VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"` + + // 过滤条件,参数不支持同时指定VpcIds和Filters。 + //
  • vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeAssistantCidrRequest struct { *tchttp.BaseRequest - + // `VPC`实例`ID`数组。形如:[`vpc-6v2ht8q5`] VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"` @@ -6695,20 +8545,22 @@ func (r *DescribeAssistantCidrRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeAssistantCidrResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 符合条件的辅助CIDR数组。 +// Predefined struct for user +type DescribeAssistantCidrResponseParams struct { + // 符合条件的辅助CIDR数组。 // 注意:此字段可能返回 null,表示取不到有效值。 - AssistantCidrSet []*AssistantCidr `json:"AssistantCidrSet,omitempty" name:"AssistantCidrSet"` + AssistantCidrSet []*AssistantCidr `json:"AssistantCidrSet,omitempty" name:"AssistantCidrSet"` + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeAssistantCidrResponse struct { + *tchttp.BaseResponse + Response *DescribeAssistantCidrResponseParams `json:"Response"` } func (r *DescribeAssistantCidrResponse) ToJsonString() string { @@ -6722,9 +8574,15 @@ func (r *DescribeAssistantCidrResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeBandwidthPackageBillUsageRequestParams struct { + // 后付费共享带宽包的唯一ID + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` +} + type DescribeBandwidthPackageBillUsageRequest struct { *tchttp.BaseRequest - + // 后付费共享带宽包的唯一ID BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` } @@ -6748,16 +8606,18 @@ func (r *DescribeBandwidthPackageBillUsageRequest) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } -type DescribeBandwidthPackageBillUsageResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeBandwidthPackageBillUsageResponseParams struct { + // 当前计费用量 + BandwidthPackageBillBandwidthSet []*BandwidthPackageBillBandwidth `json:"BandwidthPackageBillBandwidthSet,omitempty" name:"BandwidthPackageBillBandwidthSet"` - // 当前计费用量 - BandwidthPackageBillBandwidthSet []*BandwidthPackageBillBandwidth `json:"BandwidthPackageBillBandwidthSet,omitempty" name:"BandwidthPackageBillBandwidthSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeBandwidthPackageBillUsageResponse struct { + *tchttp.BaseResponse + Response *DescribeBandwidthPackageBillUsageResponseParams `json:"Response"` } func (r *DescribeBandwidthPackageBillUsageResponse) ToJsonString() string { @@ -6771,8 +8631,14 @@ func (r *DescribeBandwidthPackageBillUsageResponse) FromJsonString(s string) err return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeBandwidthPackageQuotaRequestParams struct { + +} + type DescribeBandwidthPackageQuotaRequest struct { *tchttp.BaseRequest + } func (r *DescribeBandwidthPackageQuotaRequest) ToJsonString() string { @@ -6787,22 +8653,25 @@ func (r *DescribeBandwidthPackageQuotaRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBandwidthPackageQuotaRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeBandwidthPackageQuotaResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeBandwidthPackageQuotaResponseParams struct { + // 带宽包配额详细信息 + QuotaSet []*Quota `json:"QuotaSet,omitempty" name:"QuotaSet"` - // 带宽包配额详细信息 - QuotaSet []*Quota `json:"QuotaSet,omitempty" name:"QuotaSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeBandwidthPackageQuotaResponse struct { + *tchttp.BaseResponse + Response *DescribeBandwidthPackageQuotaResponseParams `json:"Response"` } func (r *DescribeBandwidthPackageQuotaResponse) ToJsonString() string { @@ -6816,9 +8685,26 @@ func (r *DescribeBandwidthPackageQuotaResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeBandwidthPackageResourcesRequestParams struct { + // 标识 共享带宽包 的唯一 ID 列表。共享带宽包 唯一 ID 形如:`bwp-11112222`。 + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` + + // 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`AddressIds`和`Filters`。详细的过滤条件如下: + //
  • resource-id - String - 是否必填:否 - (过滤条件)按照 共享带宽包内资源 的唯一 ID 过滤。共享带宽包内资源 唯一 ID 形如:eip-11112222。
  • + //
  • resource-type - String - 是否必填:否 - (过滤条件)按照 共享带宽包内资源 类型过滤,目前仅支持 弹性IP 和 负载均衡 两种类型,可选值为 Address 和 LoadBalance。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为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"` +} + type DescribeBandwidthPackageResourcesRequest struct { *tchttp.BaseRequest - + // 标识 共享带宽包 的唯一 ID 列表。共享带宽包 唯一 ID 形如:`bwp-11112222`。 BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` @@ -6856,19 +8742,21 @@ func (r *DescribeBandwidthPackageResourcesRequest) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } -type DescribeBandwidthPackageResourcesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeBandwidthPackageResourcesResponseParams struct { + // 符合条件的 共享带宽包内资源 数量。 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的 共享带宽包内资源 数量。 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 共享带宽包内资源 详细信息列表。 + ResourceSet []*Resource `json:"ResourceSet,omitempty" name:"ResourceSet"` - // 共享带宽包内资源 详细信息列表。 - ResourceSet []*Resource `json:"ResourceSet,omitempty" name:"ResourceSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeBandwidthPackageResourcesResponse struct { + *tchttp.BaseResponse + Response *DescribeBandwidthPackageResourcesResponseParams `json:"Response"` } func (r *DescribeBandwidthPackageResourcesResponse) ToJsonString() string { @@ -6882,9 +8770,34 @@ func (r *DescribeBandwidthPackageResourcesResponse) FromJsonString(s string) err return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeBandwidthPackagesRequestParams struct { + // 带宽包唯一ID列表 + BandwidthPackageIds []*string `json:"BandwidthPackageIds,omitempty" name:"BandwidthPackageIds"` + + // 每次请求的`Filters`的上限为10。参数不支持同时指定`BandwidthPackageIds`和`Filters`。详细的过滤条件如下: + //
  • bandwidth-package_id - String - 是否必填:否 - (过滤条件)按照带宽包的唯一标识ID过滤。
  • + //
  • bandwidth-package-name - String - 是否必填:否 - (过滤条件)按照 带宽包名称过滤。不支持模糊过滤。
  • + //
  • network-type - String - 是否必填:否 - (过滤条件)按照带宽包的类型过滤。类型包括'HIGH_QUALITY_BGP','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过滤。
  • + //
  • tag-key - String - 是否必填:否 - (过滤条件)按照标签键进行过滤。
  • + //
  • tag-value - String - 是否必填:否 - (过滤条件)按照标签值进行过滤。
  • + //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。tag-key使用具体的标签键进行替换。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 查询带宽包偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 查询带宽包数量限制 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeBandwidthPackagesRequest struct { *tchttp.BaseRequest - + // 带宽包唯一ID列表 BandwidthPackageIds []*string `json:"BandwidthPackageIds,omitempty" name:"BandwidthPackageIds"` @@ -6930,19 +8843,21 @@ func (r *DescribeBandwidthPackagesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeBandwidthPackagesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeBandwidthPackagesResponseParams struct { + // 符合条件的带宽包数量 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的带宽包数量 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 描述带宽包详细信息 + BandwidthPackageSet []*BandwidthPackage `json:"BandwidthPackageSet,omitempty" name:"BandwidthPackageSet"` - // 描述带宽包详细信息 - BandwidthPackageSet []*BandwidthPackage `json:"BandwidthPackageSet,omitempty" name:"BandwidthPackageSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeBandwidthPackagesResponse struct { + *tchttp.BaseResponse + Response *DescribeBandwidthPackagesResponseParams `json:"Response"` } func (r *DescribeBandwidthPackagesResponse) ToJsonString() string { @@ -6956,9 +8871,34 @@ func (r *DescribeBandwidthPackagesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCcnAttachedInstancesRequestParams struct { + // 偏移量 + 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"` + + // 云联网实例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"` +} + type DescribeCcnAttachedInstancesRequest struct { *tchttp.BaseRequest - + // 偏移量 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` @@ -7006,19 +8946,21 @@ func (r *DescribeCcnAttachedInstancesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeCcnAttachedInstancesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeCcnAttachedInstancesResponseParams struct { + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的对象数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 关联实例列表。 + InstanceSet []*CcnAttachedInstance `json:"InstanceSet,omitempty" name:"InstanceSet"` - // 关联实例列表。 - InstanceSet []*CcnAttachedInstance `json:"InstanceSet,omitempty" name:"InstanceSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeCcnAttachedInstancesResponse struct { + *tchttp.BaseResponse + Response *DescribeCcnAttachedInstancesResponseParams `json:"Response"` } func (r *DescribeCcnAttachedInstancesResponse) ToJsonString() string { @@ -7032,9 +8974,15 @@ func (r *DescribeCcnAttachedInstancesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCcnRegionBandwidthLimitsRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` +} + type DescribeCcnRegionBandwidthLimitsRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` } @@ -7058,16 +9006,18 @@ func (r *DescribeCcnRegionBandwidthLimitsRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } -type DescribeCcnRegionBandwidthLimitsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeCcnRegionBandwidthLimitsResponseParams struct { + // 云联网(CCN)各地域出带宽上限 + CcnRegionBandwidthLimitSet []*CcnRegionBandwidthLimit `json:"CcnRegionBandwidthLimitSet,omitempty" name:"CcnRegionBandwidthLimitSet"` - // 云联网(CCN)各地域出带宽上限 - CcnRegionBandwidthLimitSet []*CcnRegionBandwidthLimit `json:"CcnRegionBandwidthLimitSet,omitempty" name:"CcnRegionBandwidthLimitSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeCcnRegionBandwidthLimitsResponse struct { + *tchttp.BaseResponse + Response *DescribeCcnRegionBandwidthLimitsResponseParams `json:"Response"` } func (r *DescribeCcnRegionBandwidthLimitsResponse) ToJsonString() string { @@ -7081,9 +9031,33 @@ func (r *DescribeCcnRegionBandwidthLimitsResponse) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCcnRoutesRequestParams struct { + // CCN实例ID,形如:ccn-gree226l。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // CCN路由策略唯一ID。形如:ccnr-f49l6u0z。 + RouteIds []*string `json:"RouteIds,omitempty" name:"RouteIds"` + + // 过滤条件,参数不支持同时指定RouteIds和Filters。 + //
  • route-id - String -(过滤条件)路由策略ID。
  • + //
  • cidr-block - String -(过滤条件)目的端。
  • + //
  • instance-type - String -(过滤条件)下一跳类型。
  • + //
  • instance-region - String -(过滤条件)下一跳所属地域。
  • + //
  • instance-id - String -(过滤条件)下一跳实例ID。
  • + //
  • route-table-id - String -(过滤条件)路由表ID列表,形如ccntr-1234edfr,可以根据路由表ID 过滤。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeCcnRoutesRequest struct { *tchttp.BaseRequest - + // CCN实例ID,形如:ccn-gree226l。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -7129,19 +9103,21 @@ func (r *DescribeCcnRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeCcnRoutesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeCcnRoutesResponseParams struct { + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的对象数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // CCN路由策略对象。 + RouteSet []*CcnRoute `json:"RouteSet,omitempty" name:"RouteSet"` - // CCN路由策略对象。 - RouteSet []*CcnRoute `json:"RouteSet,omitempty" name:"RouteSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeCcnRoutesResponse struct { + *tchttp.BaseResponse + Response *DescribeCcnRoutesResponseParams `json:"Response"` } func (r *DescribeCcnRoutesResponse) ToJsonString() string { @@ -7155,9 +9131,36 @@ func (r *DescribeCcnRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCcnsRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定CcnIds和Filters。 + CcnIds []*string `json:"CcnIds,omitempty" name:"CcnIds"` + + // 过滤条件,参数不支持同时指定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"` + + // 偏移量 + 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"` +} + type DescribeCcnsRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定CcnIds和Filters。 CcnIds []*string `json:"CcnIds,omitempty" name:"CcnIds"` @@ -7207,22 +9210,24 @@ 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"` +// Predefined struct for user +type DescribeCcnsResponseParams struct { + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // CCN对象。 - CcnSet []*CCN `json:"CcnSet,omitempty" name:"CcnSet"` + // CCN对象。 + CcnSet []*CCN `json:"CcnSet,omitempty" name:"CcnSet"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } -func (r *DescribeCcnsResponse) ToJsonString() string { +type DescribeCcnsResponse struct { + *tchttp.BaseResponse + Response *DescribeCcnsResponseParams `json:"Response"` +} + +func (r *DescribeCcnsResponse) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } @@ -7233,9 +9238,23 @@ func (r *DescribeCcnsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeClassicLinkInstancesRequestParams struct { + // 过滤条件。 + //
  • vpc-id - String - (过滤条件)VPC实例ID。
  • + //
  • vm-ip - String - (过滤条件)基础网络云服务器IP。
  • + Filters []*FilterObject `json:"Filters,omitempty" name:"Filters"` + + // 偏移量 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + type DescribeClassicLinkInstancesRequest struct { *tchttp.BaseRequest - + // 过滤条件。 //
  • vpc-id - String - (过滤条件)VPC实例ID。
  • //
  • vm-ip - String - (过滤条件)基础网络云服务器IP。
  • @@ -7269,19 +9288,21 @@ func (r *DescribeClassicLinkInstancesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeClassicLinkInstancesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeClassicLinkInstancesResponseParams struct { + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 私有网络和基础网络互通设备。 + ClassicLinkInstanceSet []*ClassicLinkInstance `json:"ClassicLinkInstanceSet,omitempty" name:"ClassicLinkInstanceSet"` - // 私有网络和基础网络互通设备。 - ClassicLinkInstanceSet []*ClassicLinkInstance `json:"ClassicLinkInstanceSet,omitempty" name:"ClassicLinkInstanceSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeClassicLinkInstancesResponse struct { + *tchttp.BaseResponse + Response *DescribeClassicLinkInstancesResponseParams `json:"Response"` } func (r *DescribeClassicLinkInstancesResponse) ToJsonString() string { @@ -7295,8 +9316,14 @@ func (r *DescribeClassicLinkInstancesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCrossBorderCcnRegionBandwidthLimitsRequestParams struct { + +} + type DescribeCrossBorderCcnRegionBandwidthLimitsRequest struct { *tchttp.BaseRequest + } func (r *DescribeCrossBorderCcnRegionBandwidthLimitsRequest) ToJsonString() string { @@ -7311,19 +9338,22 @@ func (r *DescribeCrossBorderCcnRegionBandwidthLimitsRequest) FromJsonString(s st if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCrossBorderCcnRegionBandwidthLimitsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCrossBorderCcnRegionBandwidthLimitsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DescribeCrossBorderCcnRegionBandwidthLimitsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DescribeCrossBorderCcnRegionBandwidthLimitsResponseParams `json:"Response"` } func (r *DescribeCrossBorderCcnRegionBandwidthLimitsResponse) ToJsonString() string { @@ -7337,9 +9367,66 @@ func (r *DescribeCrossBorderCcnRegionBandwidthLimitsResponse) FromJsonString(s s return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCrossBorderComplianceRequestParams struct { + // (精确匹配)服务商,可选值:`UNICOM`。 + ServiceProvider *string `json:"ServiceProvider,omitempty" name:"ServiceProvider"` + + // (精确匹配)合规化审批单`ID`。 + ComplianceId *uint64 `json:"ComplianceId,omitempty" name:"ComplianceId"` + + // (模糊查询)公司名称。 + Company *string `json:"Company,omitempty" name:"Company"` + + // (精确匹配)统一社会信用代码。 + UniformSocialCreditCode *string `json:"UniformSocialCreditCode,omitempty" name:"UniformSocialCreditCode"` + + // (模糊查询)法定代表人。 + LegalPerson *string `json:"LegalPerson,omitempty" name:"LegalPerson"` + + // (模糊查询)发证机关。 + IssuingAuthority *string `json:"IssuingAuthority,omitempty" name:"IssuingAuthority"` + + // (模糊查询)营业执照住所。 + BusinessAddress *string `json:"BusinessAddress,omitempty" name:"BusinessAddress"` + + // (精确匹配)邮编。 + PostCode *uint64 `json:"PostCode,omitempty" name:"PostCode"` + + // (模糊查询)经办人。 + Manager *string `json:"Manager,omitempty" name:"Manager"` + + // (精确查询)经办人身份证号。 + ManagerId *string `json:"ManagerId,omitempty" name:"ManagerId"` + + // (模糊查询)经办人身份证地址。 + ManagerAddress *string `json:"ManagerAddress,omitempty" name:"ManagerAddress"` + + // (精确匹配)经办人联系电话。 + ManagerTelephone *string `json:"ManagerTelephone,omitempty" name:"ManagerTelephone"` + + // (精确匹配)电子邮箱。 + Email *string `json:"Email,omitempty" name:"Email"` + + // (精确匹配)服务开始日期,如:`2020-07-28`。 + ServiceStartDate *string `json:"ServiceStartDate,omitempty" name:"ServiceStartDate"` + + // (精确匹配)服务结束日期,如:`2021-07-28`。 + ServiceEndDate *string `json:"ServiceEndDate,omitempty" name:"ServiceEndDate"` + + // (精确匹配)状态。待审批:`PENDING`,通过:`APPROVED `,拒绝:`DENY`。 + State *string `json:"State,omitempty" name:"State"` + + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeCrossBorderComplianceRequest struct { *tchttp.BaseRequest - + // (精确匹配)服务商,可选值:`UNICOM`。 ServiceProvider *string `json:"ServiceProvider,omitempty" name:"ServiceProvider"` @@ -7431,19 +9518,21 @@ func (r *DescribeCrossBorderComplianceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeCrossBorderComplianceResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeCrossBorderComplianceResponseParams struct { + // 合规化审批单列表。 + CrossBorderComplianceSet []*CrossBorderCompliance `json:"CrossBorderComplianceSet,omitempty" name:"CrossBorderComplianceSet"` - // 合规化审批单列表。 - CrossBorderComplianceSet []*CrossBorderCompliance `json:"CrossBorderComplianceSet,omitempty" name:"CrossBorderComplianceSet"` + // 合规化审批单总数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 合规化审批单总数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeCrossBorderComplianceResponse struct { + *tchttp.BaseResponse + Response *DescribeCrossBorderComplianceResponseParams `json:"Response"` } func (r *DescribeCrossBorderComplianceResponse) ToJsonString() string { @@ -7457,8 +9546,14 @@ func (r *DescribeCrossBorderComplianceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCustomerGatewayVendorsRequestParams struct { + +} + type DescribeCustomerGatewayVendorsRequest struct { *tchttp.BaseRequest + } func (r *DescribeCustomerGatewayVendorsRequest) ToJsonString() string { @@ -7473,22 +9568,25 @@ func (r *DescribeCustomerGatewayVendorsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCustomerGatewayVendorsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeCustomerGatewayVendorsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeCustomerGatewayVendorsResponseParams struct { + // 对端网关厂商信息对象。 + CustomerGatewayVendorSet []*CustomerGatewayVendor `json:"CustomerGatewayVendorSet,omitempty" name:"CustomerGatewayVendorSet"` - // 对端网关厂商信息对象。 - CustomerGatewayVendorSet []*CustomerGatewayVendor `json:"CustomerGatewayVendorSet,omitempty" name:"CustomerGatewayVendorSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeCustomerGatewayVendorsResponse struct { + *tchttp.BaseResponse + Response *DescribeCustomerGatewayVendorsResponseParams `json:"Response"` } func (r *DescribeCustomerGatewayVendorsResponse) ToJsonString() string { @@ -7502,9 +9600,27 @@ func (r *DescribeCustomerGatewayVendorsResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCustomerGatewaysRequestParams struct { + // 对端网关ID,例如:cgw-2wqq41m9。每次请求的实例的上限为100。参数不支持同时指定CustomerGatewayIds和Filters。 + CustomerGatewayIds []*string `json:"CustomerGatewayIds,omitempty" name:"CustomerGatewayIds"` + + // 过滤条件,详见下表:实例过滤条件表。每次请求的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"` + + // 偏移量,默认为0。关于Offset的更进一步介绍请参考 API 简介中的相关小节。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeCustomerGatewaysRequest struct { *tchttp.BaseRequest - + // 对端网关ID,例如:cgw-2wqq41m9。每次请求的实例的上限为100。参数不支持同时指定CustomerGatewayIds和Filters。 CustomerGatewayIds []*string `json:"CustomerGatewayIds,omitempty" name:"CustomerGatewayIds"` @@ -7543,19 +9659,21 @@ func (r *DescribeCustomerGatewaysRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeCustomerGatewaysResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeCustomerGatewaysResponseParams struct { + // 对端网关对象列表 + CustomerGatewaySet []*CustomerGateway `json:"CustomerGatewaySet,omitempty" name:"CustomerGatewaySet"` - // 对端网关对象列表 - CustomerGatewaySet []*CustomerGateway `json:"CustomerGatewaySet,omitempty" name:"CustomerGatewaySet"` + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeCustomerGatewaysResponse struct { + *tchttp.BaseResponse + Response *DescribeCustomerGatewaysResponseParams `json:"Response"` } func (r *DescribeCustomerGatewaysResponse) ToJsonString() string { @@ -7569,9 +9687,29 @@ func (r *DescribeCustomerGatewaysResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeDhcpIpsRequestParams struct { + // DhcpIp实例ID。形如:dhcpip-pxir56ns。每次请求的实例的上限为100。参数不支持同时指定DhcpIpIds和Filters。 + DhcpIpIds []*string `json:"DhcpIpIds,omitempty" name:"DhcpIpIds"` + + // 过滤条件,参数不支持同时指定DhcpIpIds和Filters。 + //
  • vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
  • + //
  • subnet-id - String - (过滤条件)所属子网实例ID,形如:subnet-f49l6u0z。
  • + //
  • dhcpip-id - String - (过滤条件)DhcpIp实例ID,形如:dhcpip-pxir56ns。
  • + //
  • dhcpip-name - String - (过滤条件)DhcpIp实例名称。
  • + //
  • address-ip - String - (过滤条件)DhcpIp实例的IP,根据IP精确查找。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeDhcpIpsRequest struct { *tchttp.BaseRequest - + // DhcpIp实例ID。形如:dhcpip-pxir56ns。每次请求的实例的上限为100。参数不支持同时指定DhcpIpIds和Filters。 DhcpIpIds []*string `json:"DhcpIpIds,omitempty" name:"DhcpIpIds"` @@ -7612,19 +9750,21 @@ func (r *DescribeDhcpIpsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeDhcpIpsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeDhcpIpsResponseParams struct { + // 实例详细信息列表。 + DhcpIpSet []*DhcpIp `json:"DhcpIpSet,omitempty" name:"DhcpIpSet"` - // 实例详细信息列表。 - DhcpIpSet []*DhcpIp `json:"DhcpIpSet,omitempty" name:"DhcpIpSet"` + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeDhcpIpsResponse struct { + *tchttp.BaseResponse + Response *DescribeDhcpIpsResponseParams `json:"Response"` } func (r *DescribeDhcpIpsResponse) ToJsonString() string { @@ -7638,9 +9778,26 @@ func (r *DescribeDhcpIpsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeDirectConnectGatewayCcnRoutesRequestParams struct { + // 专线网关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"` +} + type DescribeDirectConnectGatewayCcnRoutesRequest struct { *tchttp.BaseRequest - + // 专线网关ID,形如:`dcg-prpqlmg1`。 DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` @@ -7678,19 +9835,21 @@ func (r *DescribeDirectConnectGatewayCcnRoutesRequest) FromJsonString(s string) return json.Unmarshal([]byte(s), &r) } -type DescribeDirectConnectGatewayCcnRoutesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeDirectConnectGatewayCcnRoutesResponseParams struct { + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的对象数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 云联网路由(IDC网段)列表。 + RouteSet []*DirectConnectGatewayCcnRoute `json:"RouteSet,omitempty" name:"RouteSet"` - // 云联网路由(IDC网段)列表。 - RouteSet []*DirectConnectGatewayCcnRoute `json:"RouteSet,omitempty" name:"RouteSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeDirectConnectGatewayCcnRoutesResponse struct { + *tchttp.BaseResponse + Response *DescribeDirectConnectGatewayCcnRoutesResponseParams `json:"Response"` } func (r *DescribeDirectConnectGatewayCcnRoutesResponse) ToJsonString() string { @@ -7704,9 +9863,31 @@ func (r *DescribeDirectConnectGatewayCcnRoutesResponse) FromJsonString(s string) return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeDirectConnectGatewaysRequestParams struct { + // 专线网关唯一`ID`,形如:`dcg-9o233uri`。 + DirectConnectGatewayIds []*string `json:"DirectConnectGatewayIds,omitempty" name:"DirectConnectGatewayIds"` + + // 过滤条件,参数不支持同时指定`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"` + + // 偏移量。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeDirectConnectGatewaysRequest struct { *tchttp.BaseRequest - + // 专线网关唯一`ID`,形如:`dcg-9o233uri`。 DirectConnectGatewayIds []*string `json:"DirectConnectGatewayIds,omitempty" name:"DirectConnectGatewayIds"` @@ -7749,19 +9930,21 @@ func (r *DescribeDirectConnectGatewaysRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeDirectConnectGatewaysResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeDirectConnectGatewaysResponseParams struct { + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的对象数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 专线网关对象数组。 + DirectConnectGatewaySet []*DirectConnectGateway `json:"DirectConnectGatewaySet,omitempty" name:"DirectConnectGatewaySet"` - // 专线网关对象数组。 - DirectConnectGatewaySet []*DirectConnectGateway `json:"DirectConnectGatewaySet,omitempty" name:"DirectConnectGatewaySet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeDirectConnectGatewaysResponse struct { + *tchttp.BaseResponse + Response *DescribeDirectConnectGatewaysResponseParams `json:"Response"` } func (r *DescribeDirectConnectGatewaysResponse) ToJsonString() string { @@ -7775,9 +9958,18 @@ func (r *DescribeDirectConnectGatewaysResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeFlowLogRequestParams struct { + // 私用网络ID或者统一ID,建议使用统一ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 流日志唯一ID + FlowLogId *string `json:"FlowLogId,omitempty" name:"FlowLogId"` +} + type DescribeFlowLogRequest struct { *tchttp.BaseRequest - + // 私用网络ID或者统一ID,建议使用统一ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -7805,16 +9997,18 @@ func (r *DescribeFlowLogRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeFlowLogResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeFlowLogResponseParams struct { + // 流日志信息 + FlowLog []*FlowLog `json:"FlowLog,omitempty" name:"FlowLog"` - // 流日志信息 - FlowLog []*FlowLog `json:"FlowLog,omitempty" name:"FlowLog"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeFlowLogResponse struct { + *tchttp.BaseResponse + Response *DescribeFlowLogResponseParams `json:"Response"` } func (r *DescribeFlowLogResponse) ToJsonString() string { @@ -7828,9 +10022,56 @@ func (r *DescribeFlowLogResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeFlowLogsRequestParams 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"` + + // 按某个字段排序,支持字段: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"` + + // 流日志存储ID对应的地域信息 + CloudLogRegion *string `json:"CloudLogRegion,omitempty" name:"CloudLogRegion"` +} + type DescribeFlowLogsRequest struct { *tchttp.BaseRequest - + // 私用网络ID或者统一ID,建议使用统一ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -7871,6 +10112,9 @@ type DescribeFlowLogsRequest struct { //
  • tag-key - String -是否必填:否- (过滤条件)按照标签键进行过滤。
  • //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。
  • Filters *Filter `json:"Filters,omitempty" name:"Filters"` + + // 流日志存储ID对应的地域信息 + CloudLogRegion *string `json:"CloudLogRegion,omitempty" name:"CloudLogRegion"` } func (r *DescribeFlowLogsRequest) ToJsonString() string { @@ -7898,25 +10142,28 @@ func (r *DescribeFlowLogsRequest) FromJsonString(s string) error { delete(f, "Offset") delete(f, "Limit") delete(f, "Filters") + delete(f, "CloudLogRegion") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeFlowLogsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeFlowLogsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeFlowLogsResponseParams struct { + // 流日志实例集合 + FlowLog []*FlowLog `json:"FlowLog,omitempty" name:"FlowLog"` - // 流日志实例集合 - FlowLog []*FlowLog `json:"FlowLog,omitempty" name:"FlowLog"` + // 流日志总数目 + TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` - // 流日志总数目 - TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeFlowLogsResponse struct { + *tchttp.BaseResponse + Response *DescribeFlowLogsResponseParams `json:"Response"` } func (r *DescribeFlowLogsResponse) ToJsonString() string { @@ -7930,9 +10177,39 @@ func (r *DescribeFlowLogsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeGatewayFlowMonitorDetailRequestParams struct { + // 时间点。表示要查询这分钟内的明细。如:`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"` +} + type DescribeGatewayFlowMonitorDetailRequest struct { *tchttp.BaseRequest - + // 时间点。表示要查询这分钟内的明细。如:`2019-02-28 18:15:20`,将查询 `18:15` 这一分钟内的明细。 TimePoint *string `json:"TimePoint,omitempty" name:"TimePoint"` @@ -7988,19 +10265,21 @@ func (r *DescribeGatewayFlowMonitorDetailRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } -type DescribeGatewayFlowMonitorDetailResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeGatewayFlowMonitorDetailResponseParams struct { + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的对象数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 网关流量监控明细。 + GatewayFlowMonitorDetailSet []*GatewayFlowMonitorDetail `json:"GatewayFlowMonitorDetailSet,omitempty" name:"GatewayFlowMonitorDetailSet"` - // 网关流量监控明细。 - GatewayFlowMonitorDetailSet []*GatewayFlowMonitorDetail `json:"GatewayFlowMonitorDetailSet,omitempty" name:"GatewayFlowMonitorDetailSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeGatewayFlowMonitorDetailResponse struct { + *tchttp.BaseResponse + Response *DescribeGatewayFlowMonitorDetailResponseParams `json:"Response"` } func (r *DescribeGatewayFlowMonitorDetailResponse) ToJsonString() string { @@ -8014,9 +10293,27 @@ func (r *DescribeGatewayFlowMonitorDetailResponse) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeGatewayFlowQosRequestParams struct { + // 网关实例ID,目前我们支持的网关实例类型有, + // 专线网关实例ID,形如,`dcg-ltjahce6`; + // Nat网关实例ID,形如,`nat-ltjahce6`; + // VPN网关实例ID,形如,`vpn-ltjahce6`。 + GatewayId *string `json:"GatewayId,omitempty" name:"GatewayId"` + + // 限流的云服务器内网IP。 + IpAddresses []*string `json:"IpAddresses,omitempty" name:"IpAddresses"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeGatewayFlowQosRequest struct { *tchttp.BaseRequest - + // 网关实例ID,目前我们支持的网关实例类型有, // 专线网关实例ID,形如,`dcg-ltjahce6`; // Nat网关实例ID,形如,`nat-ltjahce6`; @@ -8055,19 +10352,21 @@ func (r *DescribeGatewayFlowQosRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeGatewayFlowQosResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeGatewayFlowQosResponseParams struct { + // 实例详细信息列表。 + GatewayQosSet []*GatewayQos `json:"GatewayQosSet,omitempty" name:"GatewayQosSet"` - // 实例详细信息列表。 - GatewayQosSet []*GatewayQos `json:"GatewayQosSet,omitempty" name:"GatewayQosSet"` + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeGatewayFlowQosResponse struct { + *tchttp.BaseResponse + Response *DescribeGatewayFlowQosResponseParams `json:"Response"` } func (r *DescribeGatewayFlowQosResponse) ToJsonString() string { @@ -8081,9 +10380,30 @@ func (r *DescribeGatewayFlowQosResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeHaVipsRequestParams struct { + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。 + HaVipIds []*string `json:"HaVipIds,omitempty" name:"HaVipIds"` + + // 过滤条件,参数不支持同时指定`HaVipIds`和`Filters`。 + //
  • havip-id - String - `HAVIP`唯一`ID`,形如:`havip-9o233uri`。
  • + //
  • havip-name - String - `HAVIP`名称。
  • + //
  • vpc-id - String - `HAVIP`所在私有网络`ID`。
  • + //
  • subnet-id - String - `HAVIP`所在子网`ID`。
  • + //
  • vip - String - `HAVIP`的地址`VIP`。
  • + //
  • address-ip - String - `HAVIP`绑定的弹性公网`IP`。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeHaVipsRequest struct { *tchttp.BaseRequest - + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。 HaVipIds []*string `json:"HaVipIds,omitempty" name:"HaVipIds"` @@ -8125,19 +10445,21 @@ func (r *DescribeHaVipsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeHaVipsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeHaVipsResponseParams struct { + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的对象数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // `HAVIP`对象数组。 + HaVipSet []*HaVip `json:"HaVipSet,omitempty" name:"HaVipSet"` - // `HAVIP`对象数组。 - HaVipSet []*HaVip `json:"HaVipSet,omitempty" name:"HaVipSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeHaVipsResponse struct { + *tchttp.BaseResponse + Response *DescribeHaVipsResponseParams `json:"Response"` } func (r *DescribeHaVipsResponse) ToJsonString() string { @@ -8151,9 +10473,26 @@ func (r *DescribeHaVipsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeIp6AddressesRequestParams struct { + // 标识 IPV6 的唯一 ID 列表。IPV6 唯一 ID 形如:`eip-11112222`。参数不支持同时指定`Ip6AddressIds`和`Filters`。 + Ip6AddressIds []*string `json:"Ip6AddressIds,omitempty" name:"Ip6AddressIds"` + + // 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`AddressIds`和`Filters`。详细的过滤条件如下: + //
  • address-ip - String - 是否必填:否 - (过滤条件)按照 EIP 的 IP 地址过滤。
  • + //
  • network-interface-id - String - 是否必填:否 - (过滤条件)按照弹性网卡的唯一ID过滤。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为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"` +} + type DescribeIp6AddressesRequest struct { *tchttp.BaseRequest - + // 标识 IPV6 的唯一 ID 列表。IPV6 唯一 ID 形如:`eip-11112222`。参数不支持同时指定`Ip6AddressIds`和`Filters`。 Ip6AddressIds []*string `json:"Ip6AddressIds,omitempty" name:"Ip6AddressIds"` @@ -8191,19 +10530,21 @@ func (r *DescribeIp6AddressesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeIp6AddressesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeIp6AddressesResponseParams struct { + // 符合条件的 IPV6 数量。 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的 IPV6 数量。 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // IPV6 详细信息列表。 + AddressSet []*Address `json:"AddressSet,omitempty" name:"AddressSet"` - // IPV6 详细信息列表。 - AddressSet []*Address `json:"AddressSet,omitempty" name:"AddressSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeIp6AddressesResponse struct { + *tchttp.BaseResponse + Response *DescribeIp6AddressesResponseParams `json:"Response"` } func (r *DescribeIp6AddressesResponse) ToJsonString() string { @@ -8217,9 +10558,15 @@ func (r *DescribeIp6AddressesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeIp6TranslatorQuotaRequestParams struct { + // 待查询IPV6转换实例的唯一ID列表,形如ip6-xxxxxxxx + Ip6TranslatorIds []*string `json:"Ip6TranslatorIds,omitempty" name:"Ip6TranslatorIds"` +} + type DescribeIp6TranslatorQuotaRequest struct { *tchttp.BaseRequest - + // 待查询IPV6转换实例的唯一ID列表,形如ip6-xxxxxxxx Ip6TranslatorIds []*string `json:"Ip6TranslatorIds,omitempty" name:"Ip6TranslatorIds"` } @@ -8243,17 +10590,19 @@ func (r *DescribeIp6TranslatorQuotaRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeIp6TranslatorQuotaResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 账户在指定地域的IPV6转换实例及规则配额信息 +// Predefined struct for user +type DescribeIp6TranslatorQuotaResponseParams struct { + // 账户在指定地域的IPV6转换实例及规则配额信息 // QUOTAID属性是TOTAL_TRANSLATOR_QUOTA,表示账户在指定地域的IPV6转换实例配额信息;QUOTAID属性是IPV6转换实例唯一ID(形如ip6-xxxxxxxx),表示账户在该转换实例允许创建的转换规则配额 - QuotaSet []*Quota `json:"QuotaSet,omitempty" name:"QuotaSet"` + QuotaSet []*Quota `json:"QuotaSet,omitempty" name:"QuotaSet"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeIp6TranslatorQuotaResponse struct { + *tchttp.BaseResponse + Response *DescribeIp6TranslatorQuotaResponseParams `json:"Response"` } func (r *DescribeIp6TranslatorQuotaResponse) ToJsonString() string { @@ -8267,9 +10616,28 @@ func (r *DescribeIp6TranslatorQuotaResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeIp6TranslatorsRequestParams struct { + // IPV6转换实例唯一ID数组,形如ip6-xxxxxxxx + Ip6TranslatorIds []*string `json:"Ip6TranslatorIds,omitempty" name:"Ip6TranslatorIds"` + + // 每次请求的`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"` + + // 偏移量,默认为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"` +} + type DescribeIp6TranslatorsRequest struct { *tchttp.BaseRequest - + // IPV6转换实例唯一ID数组,形如ip6-xxxxxxxx Ip6TranslatorIds []*string `json:"Ip6TranslatorIds,omitempty" name:"Ip6TranslatorIds"` @@ -8309,19 +10677,21 @@ func (r *DescribeIp6TranslatorsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeIp6TranslatorsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeIp6TranslatorsResponseParams struct { + // 符合过滤条件的IPV6转换实例数量。 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合过滤条件的IPV6转换实例数量。 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 符合过滤条件的IPV6转换实例详细信息 + Ip6TranslatorSet []*Ip6Translator `json:"Ip6TranslatorSet,omitempty" name:"Ip6TranslatorSet"` - // 符合过滤条件的IPV6转换实例详细信息 - Ip6TranslatorSet []*Ip6Translator `json:"Ip6TranslatorSet,omitempty" name:"Ip6TranslatorSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeIp6TranslatorsResponse struct { + *tchttp.BaseResponse + Response *DescribeIp6TranslatorsResponseParams `json:"Response"` } func (r *DescribeIp6TranslatorsResponse) ToJsonString() string { @@ -8335,9 +10705,15 @@ func (r *DescribeIp6TranslatorsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeIpGeolocationDatabaseUrlRequestParams struct { + // IP地理位置库协议类型,目前仅支持"ipv4"。 + Type *string `json:"Type,omitempty" name:"Type"` +} + type DescribeIpGeolocationDatabaseUrlRequest struct { *tchttp.BaseRequest - + // IP地理位置库协议类型,目前仅支持"ipv4"。 Type *string `json:"Type,omitempty" name:"Type"` } @@ -8361,19 +10737,21 @@ func (r *DescribeIpGeolocationDatabaseUrlRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } -type DescribeIpGeolocationDatabaseUrlResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeIpGeolocationDatabaseUrlResponseParams struct { + // IP地理位置库下载链接地址。 + DownLoadUrl *string `json:"DownLoadUrl,omitempty" name:"DownLoadUrl"` - // IP地理位置库下载链接地址。 - DownLoadUrl *string `json:"DownLoadUrl,omitempty" name:"DownLoadUrl"` + // 链接到期时间。按照`ISO8601`标准表示,并且使用`UTC`时间。 + ExpiredAt *string `json:"ExpiredAt,omitempty" name:"ExpiredAt"` - // 链接到期时间。按照`ISO8601`标准表示,并且使用`UTC`时间。 - ExpiredAt *string `json:"ExpiredAt,omitempty" name:"ExpiredAt"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeIpGeolocationDatabaseUrlResponse struct { + *tchttp.BaseResponse + Response *DescribeIpGeolocationDatabaseUrlResponseParams `json:"Response"` } func (r *DescribeIpGeolocationDatabaseUrlResponse) ToJsonString() string { @@ -8387,9 +10765,18 @@ func (r *DescribeIpGeolocationDatabaseUrlResponse) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeIpGeolocationInfosRequestParams struct { + // 需查询的IP地址列表,目前仅支持IPv4地址。查询的IP地址数量上限为100个。 + AddressIps []*string `json:"AddressIps,omitempty" name:"AddressIps"` + + // 需查询的IP地址的字段信息。 + Fields *IpField `json:"Fields,omitempty" name:"Fields"` +} + type DescribeIpGeolocationInfosRequest struct { *tchttp.BaseRequest - + // 需查询的IP地址列表,目前仅支持IPv4地址。查询的IP地址数量上限为100个。 AddressIps []*string `json:"AddressIps,omitempty" name:"AddressIps"` @@ -8417,19 +10804,21 @@ func (r *DescribeIpGeolocationInfosRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeIpGeolocationInfosResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeIpGeolocationInfosResponseParams struct { + // IP地址信息列表。 + AddressInfo []*IpGeolocationInfo `json:"AddressInfo,omitempty" name:"AddressInfo"` - // IP地址信息列表。 - AddressInfo []*IpGeolocationInfo `json:"AddressInfo,omitempty" name:"AddressInfo"` + // IP地址信息个数。 + Total *int64 `json:"Total,omitempty" name:"Total"` - // IP地址信息个数。 - Total *int64 `json:"Total,omitempty" name:"Total"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeIpGeolocationInfosResponse struct { + *tchttp.BaseResponse + Response *DescribeIpGeolocationInfosResponseParams `json:"Response"` } func (r *DescribeIpGeolocationInfosResponse) ToJsonString() string { @@ -8443,9 +10832,22 @@ func (r *DescribeIpGeolocationInfosResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeLocalGatewayRequestParams struct { + // 查询条件: + // vpc-id:按照VPCID过滤,local-gateway-name:按照本地网关名称过滤,名称支持模糊搜索,local-gateway-id:按照本地网关实例ID过滤,cdc-id:按照cdc实例ID过滤查询。 + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为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"` +} + type DescribeLocalGatewayRequest struct { *tchttp.BaseRequest - + // 查询条件: // vpc-id:按照VPCID过滤,local-gateway-name:按照本地网关名称过滤,名称支持模糊搜索,local-gateway-id:按照本地网关实例ID过滤,cdc-id:按照cdc实例ID过滤查询。 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` @@ -8478,19 +10880,21 @@ func (r *DescribeLocalGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeLocalGatewayResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeLocalGatewayResponseParams struct { + // 本地网关信息集合 + LocalGatewaySet []*LocalGateway `json:"LocalGatewaySet,omitempty" name:"LocalGatewaySet"` - // 本地网关信息集合 - LocalGatewaySet []*LocalGateway `json:"LocalGatewaySet,omitempty" name:"LocalGatewaySet"` + // 本地网关总数 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 本地网关总数 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeLocalGatewayResponse struct { + *tchttp.BaseResponse + Response *DescribeLocalGatewayResponseParams `json:"Response"` } func (r *DescribeLocalGatewayResponse) ToJsonString() string { @@ -8504,9 +10908,32 @@ func (r *DescribeLocalGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeNatGatewayDestinationIpPortTranslationNatRulesRequestParams struct { + // NAT网关ID。 + NatGatewayIds []*string `json:"NatGatewayIds,omitempty" name:"NatGatewayIds"` + + // 过滤条件: + // 参数不支持同时指定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"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeNatGatewayDestinationIpPortTranslationNatRulesRequest struct { *tchttp.BaseRequest - + // NAT网关ID。 NatGatewayIds []*string `json:"NatGatewayIds,omitempty" name:"NatGatewayIds"` @@ -8550,19 +10977,21 @@ func (r *DescribeNatGatewayDestinationIpPortTranslationNatRulesRequest) FromJson return json.Unmarshal([]byte(s), &r) } -type DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeNatGatewayDestinationIpPortTranslationNatRulesResponseParams struct { + // NAT网关端口转发规则对象数组。 + NatGatewayDestinationIpPortTranslationNatRuleSet []*NatGatewayDestinationIpPortTranslationNatRule `json:"NatGatewayDestinationIpPortTranslationNatRuleSet,omitempty" name:"NatGatewayDestinationIpPortTranslationNatRuleSet"` - // NAT网关端口转发规则对象数组。 - NatGatewayDestinationIpPortTranslationNatRuleSet []*NatGatewayDestinationIpPortTranslationNatRule `json:"NatGatewayDestinationIpPortTranslationNatRuleSet,omitempty" name:"NatGatewayDestinationIpPortTranslationNatRuleSet"` + // 符合条件的NAT网关端口转发规则对象数目。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的NAT网关端口转发规则对象数目。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse struct { + *tchttp.BaseResponse + Response *DescribeNatGatewayDestinationIpPortTranslationNatRulesResponseParams `json:"Response"` } func (r *DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse) ToJsonString() string { @@ -8576,9 +11005,24 @@ func (r *DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse) FromJso return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeNatGatewayDirectConnectGatewayRouteRequestParams struct { + // nat的唯一标识 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // vpc的唯一标识 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 0到200之间 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 大于0 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` +} + type DescribeNatGatewayDirectConnectGatewayRouteRequest struct { *tchttp.BaseRequest - + // nat的唯一标识 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -8614,19 +11058,21 @@ func (r *DescribeNatGatewayDirectConnectGatewayRouteRequest) FromJsonString(s st return json.Unmarshal([]byte(s), &r) } -type DescribeNatGatewayDirectConnectGatewayRouteResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeNatGatewayDirectConnectGatewayRouteResponseParams struct { + // 路由数据 + NatDirectConnectGatewayRouteSet []*NatDirectConnectGatewayRoute `json:"NatDirectConnectGatewayRouteSet,omitempty" name:"NatDirectConnectGatewayRouteSet"` - // 路由数据 - NatDirectConnectGatewayRouteSet []*NatDirectConnectGatewayRoute `json:"NatDirectConnectGatewayRouteSet,omitempty" name:"NatDirectConnectGatewayRouteSet"` + // 路由总数 + Total *int64 `json:"Total,omitempty" name:"Total"` - // 路由总数 - Total *int64 `json:"Total,omitempty" name:"Total"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeNatGatewayDirectConnectGatewayRouteResponse struct { + *tchttp.BaseResponse + Response *DescribeNatGatewayDirectConnectGatewayRouteResponseParams `json:"Response"` } func (r *DescribeNatGatewayDirectConnectGatewayRouteResponse) ToJsonString() string { @@ -8640,9 +11086,27 @@ func (r *DescribeNatGatewayDirectConnectGatewayRouteResponse) FromJsonString(s s return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeNatGatewaySourceIpTranslationNatRulesRequestParams struct { + // NAT网关统一 ID,形如:`nat-123xx454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // 过滤条件: + //
  • resource-id,Subnet的ID或者Cvm ID,如`subnet-0yi4hekt`
  • + //
  • public-ip-address,弹性IP,如`139.199.232.238`
  • + //
  • description,规则描述。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeNatGatewaySourceIpTranslationNatRulesRequest struct { *tchttp.BaseRequest - + // NAT网关统一 ID,形如:`nat-123xx454`。 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -8681,20 +11145,22 @@ func (r *DescribeNatGatewaySourceIpTranslationNatRulesRequest) FromJsonString(s return json.Unmarshal([]byte(s), &r) } -type DescribeNatGatewaySourceIpTranslationNatRulesResponse struct { - *tchttp.BaseResponse - Response *struct { - - // NAT网关SNAT规则对象数组。 +// Predefined struct for user +type DescribeNatGatewaySourceIpTranslationNatRulesResponseParams struct { + // NAT网关SNAT规则对象数组。 // 注意:此字段可能返回 null,表示取不到有效值。 - SourceIpTranslationNatRuleSet []*SourceIpTranslationNatRule `json:"SourceIpTranslationNatRuleSet,omitempty" name:"SourceIpTranslationNatRuleSet"` + SourceIpTranslationNatRuleSet []*SourceIpTranslationNatRule `json:"SourceIpTranslationNatRuleSet,omitempty" name:"SourceIpTranslationNatRuleSet"` - // 符合条件的NAT网关端口转发规则对象数目。 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 符合条件的NAT网关端口转发规则对象数目。 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeNatGatewaySourceIpTranslationNatRulesResponse struct { + *tchttp.BaseResponse + Response *DescribeNatGatewaySourceIpTranslationNatRulesResponseParams `json:"Response"` } func (r *DescribeNatGatewaySourceIpTranslationNatRulesResponse) ToJsonString() string { @@ -8708,9 +11174,28 @@ func (r *DescribeNatGatewaySourceIpTranslationNatRulesResponse) FromJsonString(s return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeNatGatewaysRequestParams struct { + // NAT网关统一 ID,形如:`nat-123xx454`。 + NatGatewayIds []*string `json:"NatGatewayIds,omitempty" name:"NatGatewayIds"` + + // 过滤条件,参数不支持同时指定NatGatewayIds和Filters。 + //
  • nat-gateway-id - String - (过滤条件)协议端口模板实例ID,形如:`nat-123xx454`。
  • + //
  • vpc-id - String - (过滤条件)私有网络 唯一ID,形如:`vpc-123xx454`。
  • + //
  • nat-gateway-name - String - (过滤条件)协议端口模板实例ID,形如:`test_nat`。
  • + //
  • tag-key - String - (过滤条件)标签键,形如:`test-key`。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeNatGatewaysRequest struct { *tchttp.BaseRequest - + // NAT网关统一 ID,形如:`nat-123xx454`。 NatGatewayIds []*string `json:"NatGatewayIds,omitempty" name:"NatGatewayIds"` @@ -8750,19 +11235,21 @@ func (r *DescribeNatGatewaysRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeNatGatewaysResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeNatGatewaysResponseParams struct { + // NAT网关对象数组。 + NatGatewaySet []*NatGateway `json:"NatGatewaySet,omitempty" name:"NatGatewaySet"` - // NAT网关对象数组。 - NatGatewaySet []*NatGateway `json:"NatGatewaySet,omitempty" name:"NatGatewaySet"` + // 符合条件的NAT网关对象个数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的NAT网关对象个数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeNatGatewaysResponse struct { + *tchttp.BaseResponse + Response *DescribeNatGatewaysResponseParams `json:"Response"` } func (r *DescribeNatGatewaysResponse) ToJsonString() string { @@ -8776,9 +11263,25 @@ func (r *DescribeNatGatewaysResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeNetDetectStatesRequestParams struct { + // 网络探测实例`ID`数组。形如:[`netd-12345678`] + NetDetectIds []*string `json:"NetDetectIds,omitempty" name:"NetDetectIds"` + + // 过滤条件,参数不支持同时指定NetDetectIds和Filters。 + //
  • net-detect-id - String - (过滤条件)网络探测实例ID,形如:netd-12345678
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeNetDetectStatesRequest struct { *tchttp.BaseRequest - + // 网络探测实例`ID`数组。形如:[`netd-12345678`] NetDetectIds []*string `json:"NetDetectIds,omitempty" name:"NetDetectIds"` @@ -8815,21 +11318,23 @@ func (r *DescribeNetDetectStatesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeNetDetectStatesResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 符合条件的网络探测验证结果对象数组。 +// Predefined struct for user +type DescribeNetDetectStatesResponseParams struct { + // 符合条件的网络探测验证结果对象数组。 // 注意:此字段可能返回 null,表示取不到有效值。 - NetDetectStateSet []*NetDetectState `json:"NetDetectStateSet,omitempty" name:"NetDetectStateSet"` + NetDetectStateSet []*NetDetectState `json:"NetDetectStateSet,omitempty" name:"NetDetectStateSet"` - // 符合条件的网络探测验证结果对象数量。 + // 符合条件的网络探测验证结果对象数量。 // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeNetDetectStatesResponse struct { + *tchttp.BaseResponse + Response *DescribeNetDetectStatesResponseParams `json:"Response"` } func (r *DescribeNetDetectStatesResponse) ToJsonString() string { @@ -8843,9 +11348,28 @@ func (r *DescribeNetDetectStatesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeNetDetectsRequestParams struct { + // 网络探测实例`ID`数组。形如:[`netd-12345678`] + NetDetectIds []*string `json:"NetDetectIds,omitempty" name:"NetDetectIds"` + + // 过滤条件,参数不支持同时指定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"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeNetDetectsRequest struct { *tchttp.BaseRequest - + // 网络探测实例`ID`数组。形如:[`netd-12345678`] NetDetectIds []*string `json:"NetDetectIds,omitempty" name:"NetDetectIds"` @@ -8885,21 +11409,23 @@ func (r *DescribeNetDetectsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeNetDetectsResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 符合条件的网络探测对象数组。 +// Predefined struct for user +type DescribeNetDetectsResponseParams struct { + // 符合条件的网络探测对象数组。 // 注意:此字段可能返回 null,表示取不到有效值。 - NetDetectSet []*NetDetect `json:"NetDetectSet,omitempty" name:"NetDetectSet"` + NetDetectSet []*NetDetect `json:"NetDetectSet,omitempty" name:"NetDetectSet"` - // 符合条件的网络探测对象数量。 + // 符合条件的网络探测对象数量。 // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeNetDetectsResponse struct { + *tchttp.BaseResponse + Response *DescribeNetDetectsResponseParams `json:"Response"` } func (r *DescribeNetDetectsResponse) ToJsonString() string { @@ -8913,9 +11439,122 @@ func (r *DescribeNetDetectsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeNetworkAclsRequest struct { +// Predefined struct for user +type DescribeNetworkAclQuintupleEntriesRequestParams struct { + // 网络ACL实例ID。形如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最小值为1,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件,参数不支持同时指定`HaVipIds`和`Filters`。 + //
  • protocol - String - 协议,形如:`TCP`。
  • + //
  • description - String - 描述。
  • + //
  • destination-cidr - String - 目的CIDR, 形如:'192.168.0.0/24'。
  • + //
  • source-cidr- String - 源CIDR, 形如:'192.168.0.0/24'。
  • + //
  • action - String - 动作,形如ACCEPT或DROP。
  • + //
  • network-acl-quintuple-entry-id - String - 五元组唯一ID,形如:'acli45-ahnu4rv5'。
  • + //
  • network-acl-direction - String - 方向,形如:'INGRESS'或'EGRESS'。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` +} + +type DescribeNetworkAclQuintupleEntriesRequest struct { *tchttp.BaseRequest + + // 网络ACL实例ID。形如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最小值为1,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件,参数不支持同时指定`HaVipIds`和`Filters`。 + //
  • protocol - String - 协议,形如:`TCP`。
  • + //
  • description - String - 描述。
  • + //
  • destination-cidr - String - 目的CIDR, 形如:'192.168.0.0/24'。
  • + //
  • source-cidr- String - 源CIDR, 形如:'192.168.0.0/24'。
  • + //
  • action - String - 动作,形如ACCEPT或DROP。
  • + //
  • network-acl-quintuple-entry-id - String - 五元组唯一ID,形如:'acli45-ahnu4rv5'。
  • + //
  • network-acl-direction - String - 方向,形如:'INGRESS'或'EGRESS'。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` +} + +func (r *DescribeNetworkAclQuintupleEntriesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeNetworkAclQuintupleEntriesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "NetworkAclId") + delete(f, "Offset") + delete(f, "Limit") + delete(f, "Filters") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeNetworkAclQuintupleEntriesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeNetworkAclQuintupleEntriesResponseParams struct { + // 网络ACL条目列表(NetworkAclTuple5Entry) + NetworkAclQuintupleSet []*NetworkAclQuintupleEntry `json:"NetworkAclQuintupleSet,omitempty" name:"NetworkAclQuintupleSet"` + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeNetworkAclQuintupleEntriesResponse struct { + *tchttp.BaseResponse + Response *DescribeNetworkAclQuintupleEntriesResponseParams `json:"Response"` +} + +func (r *DescribeNetworkAclQuintupleEntriesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeNetworkAclQuintupleEntriesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeNetworkAclsRequestParams struct { + // 过滤条件,参数不支持同时指定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"` + + // 网络ACL实例ID数组。形如:[acl-12345678]。每次请求的实例的上限为100。参数不支持同时指定NetworkAclIds和Filters。 + NetworkAclIds []*string `json:"NetworkAclIds,omitempty" name:"NetworkAclIds"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + // 返回数量,默认为20,最小值为1,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +type DescribeNetworkAclsRequest struct { + *tchttp.BaseRequest + // 过滤条件,参数不支持同时指定NetworkAclIds和Filters。 //
  • vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-12345678。
  • //
  • network-acl-id - String - (过滤条件)网络ACL实例ID,形如:acl-12345678。
  • @@ -8954,19 +11593,21 @@ func (r *DescribeNetworkAclsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeNetworkAclsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeNetworkAclsResponseParams struct { + // 实例详细信息列表。 + NetworkAclSet []*NetworkAcl `json:"NetworkAclSet,omitempty" name:"NetworkAclSet"` - // 实例详细信息列表。 - NetworkAclSet []*NetworkAcl `json:"NetworkAclSet,omitempty" name:"NetworkAclSet"` + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeNetworkAclsResponse struct { + *tchttp.BaseResponse + Response *DescribeNetworkAclsResponseParams `json:"Response"` } func (r *DescribeNetworkAclsResponse) ToJsonString() string { @@ -8980,9 +11621,15 @@ func (r *DescribeNetworkAclsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeNetworkInterfaceLimitRequestParams struct { + // 要查询的CVM实例ID或弹性网卡ID + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` +} + type DescribeNetworkInterfaceLimitRequest struct { *tchttp.BaseRequest - + // 要查询的CVM实例ID或弹性网卡ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` } @@ -9006,27 +11653,37 @@ func (r *DescribeNetworkInterfaceLimitRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeNetworkInterfaceLimitResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeNetworkInterfaceLimitResponseParams struct { + // 标准型弹性网卡配额 + EniQuantity *int64 `json:"EniQuantity,omitempty" name:"EniQuantity"` + + // 每个标准型弹性网卡可以分配的IP配额 + EniPrivateIpAddressQuantity *int64 `json:"EniPrivateIpAddressQuantity,omitempty" name:"EniPrivateIpAddressQuantity"` - // 标准型弹性网卡配额 - EniQuantity *int64 `json:"EniQuantity,omitempty" name:"EniQuantity"` + // 扩展型网卡配额 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExtendEniQuantity *int64 `json:"ExtendEniQuantity,omitempty" name:"ExtendEniQuantity"` - // 每个标准型弹性网卡可以分配的IP配额 - EniPrivateIpAddressQuantity *int64 `json:"EniPrivateIpAddressQuantity,omitempty" name:"EniPrivateIpAddressQuantity"` + // 每个扩展型弹性网卡可以分配的IP配额 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExtendEniPrivateIpAddressQuantity *int64 `json:"ExtendEniPrivateIpAddressQuantity,omitempty" name:"ExtendEniPrivateIpAddressQuantity"` - // 扩展型网卡配额 + // 中继网卡配额 // 注意:此字段可能返回 null,表示取不到有效值。 - ExtendEniQuantity *int64 `json:"ExtendEniQuantity,omitempty" name:"ExtendEniQuantity"` + SubEniQuantity *int64 `json:"SubEniQuantity,omitempty" name:"SubEniQuantity"` - // 每个扩展型弹性网卡可以分配的IP配额 + // 每个中继网卡可以分配的IP配额 // 注意:此字段可能返回 null,表示取不到有效值。 - ExtendEniPrivateIpAddressQuantity *int64 `json:"ExtendEniPrivateIpAddressQuantity,omitempty" name:"ExtendEniPrivateIpAddressQuantity"` + SubEniPrivateIpAddressQuantity *int64 `json:"SubEniPrivateIpAddressQuantity,omitempty" name:"SubEniPrivateIpAddressQuantity"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeNetworkInterfaceLimitResponse struct { + *tchttp.BaseResponse + Response *DescribeNetworkInterfaceLimitResponseParams `json:"Response"` } func (r *DescribeNetworkInterfaceLimitResponse) ToJsonString() string { @@ -9040,9 +11697,37 @@ func (r *DescribeNetworkInterfaceLimitResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeNetworkInterfacesRequestParams struct { + // 弹性网卡实例ID查询。形如:eni-pxir56ns。每次请求的实例的上限为100。参数不支持同时指定NetworkInterfaceIds和Filters。 + NetworkInterfaceIds []*string `json:"NetworkInterfaceIds,omitempty" name:"NetworkInterfaceIds"` + + // 过滤条件,参数不支持同时指定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地址,单IP后缀模糊匹配,多IP精确匹配。可以与`ip-exact-match`配合做单IP的精确匹配查询。
  • + //
  • ip-exact-match - Boolean - (过滤条件)内网IPv4精确匹配查询,存在多值情况,只取第一个。
  • + //
  • tag-key - String -是否必填:否- (过滤条件)按照标签键进行过滤。使用请参考示例2
  • + //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。使用请参考示例3。
  • + //
  • is-primary - Boolean - 是否必填:否 - (过滤条件)按照是否主网卡进行过滤。值为true时,仅过滤主网卡;值为false时,仅过滤辅助网卡;此过滤参数未提供时,同时过滤主网卡和辅助网卡。
  • + //
  • eni-type - String -是否必填:否- (过滤条件)按照网卡类型进行过滤。“0”-辅助网卡,“1”-主网卡,“2”:中继网卡
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeNetworkInterfacesRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例ID查询。形如:eni-pxir56ns。每次请求的实例的上限为100。参数不支持同时指定NetworkInterfaceIds和Filters。 NetworkInterfaceIds []*string `json:"NetworkInterfaceIds,omitempty" name:"NetworkInterfaceIds"` @@ -9059,6 +11744,7 @@ type DescribeNetworkInterfacesRequest struct { //
  • tag-key - String -是否必填:否- (过滤条件)按照标签键进行过滤。使用请参考示例2
  • //
  • tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。使用请参考示例3。
  • //
  • is-primary - Boolean - 是否必填:否 - (过滤条件)按照是否主网卡进行过滤。值为true时,仅过滤主网卡;值为false时,仅过滤辅助网卡;此过滤参数未提供时,同时过滤主网卡和辅助网卡。
  • + //
  • eni-type - String -是否必填:否- (过滤条件)按照网卡类型进行过滤。“0”-辅助网卡,“1”-主网卡,“2”:中继网卡
  • Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // 偏移量,默认为0。 @@ -9090,19 +11776,21 @@ func (r *DescribeNetworkInterfacesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeNetworkInterfacesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeNetworkInterfacesResponseParams struct { + // 实例详细信息列表。 + NetworkInterfaceSet []*NetworkInterface `json:"NetworkInterfaceSet,omitempty" name:"NetworkInterfaceSet"` - // 实例详细信息列表。 - NetworkInterfaceSet []*NetworkInterface `json:"NetworkInterfaceSet,omitempty" name:"NetworkInterfaceSet"` + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeNetworkInterfacesResponse struct { + *tchttp.BaseResponse + Response *DescribeNetworkInterfacesResponseParams `json:"Response"` } func (r *DescribeNetworkInterfacesResponse) ToJsonString() string { @@ -9116,9 +11804,15 @@ func (r *DescribeNetworkInterfacesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeProductQuotaRequestParams struct { + // 查询的网络产品名称,可查询的产品有:vpc、ccn、vpn、dc、dfw、clb、eip。 + Product *string `json:"Product,omitempty" name:"Product"` +} + type DescribeProductQuotaRequest struct { *tchttp.BaseRequest - + // 查询的网络产品名称,可查询的产品有:vpc、ccn、vpn、dc、dfw、clb、eip。 Product *string `json:"Product,omitempty" name:"Product"` } @@ -9142,19 +11836,21 @@ func (r *DescribeProductQuotaRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeProductQuotaResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeProductQuotaResponseParams struct { + // ProductQuota对象数组 + ProductQuotaSet []*ProductQuota `json:"ProductQuotaSet,omitempty" name:"ProductQuotaSet"` - // ProductQuota对象数组 - ProductQuotaSet []*ProductQuota `json:"ProductQuotaSet,omitempty" name:"ProductQuotaSet"` + // 符合条件的产品类型个数 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的产品类型个数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeProductQuotaResponse struct { + *tchttp.BaseResponse + Response *DescribeProductQuotaResponseParams `json:"Response"` } func (r *DescribeProductQuotaResponse) ToJsonString() string { @@ -9168,9 +11864,18 @@ func (r *DescribeProductQuotaResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRouteConflictsRequestParams struct { + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 要检查的与之冲突的目的端列表 + DestinationCidrBlocks []*string `json:"DestinationCidrBlocks,omitempty" name:"DestinationCidrBlocks"` +} + type DescribeRouteConflictsRequest struct { *tchttp.BaseRequest - + // 路由表实例ID,例如:rtb-azd4dt1c。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` @@ -9198,16 +11903,18 @@ func (r *DescribeRouteConflictsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeRouteConflictsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRouteConflictsResponseParams struct { + // 路由策略冲突列表 + RouteConflictSet []*RouteConflict `json:"RouteConflictSet,omitempty" name:"RouteConflictSet"` - // 路由策略冲突列表 - RouteConflictSet []*RouteConflict `json:"RouteConflictSet,omitempty" name:"RouteConflictSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeRouteConflictsResponse struct { + *tchttp.BaseResponse + Response *DescribeRouteConflictsResponseParams `json:"Response"` } func (r *DescribeRouteConflictsResponse) ToJsonString() string { @@ -9221,9 +11928,30 @@ func (r *DescribeRouteConflictsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRouteTablesRequestParams struct { + // 过滤条件,参数不支持同时指定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"` + + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableIds []*string `json:"RouteTableIds,omitempty" name:"RouteTableIds"` + + // 偏移量。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 请求对象个数。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + type DescribeRouteTablesRequest struct { *tchttp.BaseRequest - + // 过滤条件,参数不支持同时指定RouteTableIds和Filters。 //
  • route-table-id - String - (过滤条件)路由表实例ID。
  • //
  • route-table-name - String - (过滤条件)路由表名称。
  • @@ -9265,19 +11993,21 @@ func (r *DescribeRouteTablesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeRouteTablesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRouteTablesResponseParams struct { + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 路由表对象。 + RouteTableSet []*RouteTable `json:"RouteTableSet,omitempty" name:"RouteTableSet"` - // 路由表对象。 - RouteTableSet []*RouteTable `json:"RouteTableSet,omitempty" name:"RouteTableSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeRouteTablesResponse struct { + *tchttp.BaseResponse + Response *DescribeRouteTablesResponseParams `json:"Response"` } func (r *DescribeRouteTablesResponse) ToJsonString() string { @@ -9291,9 +12021,15 @@ func (r *DescribeRouteTablesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeSecurityGroupAssociationStatisticsRequestParams struct { + // 安全实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` +} + type DescribeSecurityGroupAssociationStatisticsRequest struct { *tchttp.BaseRequest - + // 安全实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` } @@ -9317,16 +12053,18 @@ func (r *DescribeSecurityGroupAssociationStatisticsRequest) FromJsonString(s str return json.Unmarshal([]byte(s), &r) } -type DescribeSecurityGroupAssociationStatisticsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeSecurityGroupAssociationStatisticsResponseParams struct { + // 安全组关联实例统计。 + SecurityGroupAssociationStatisticsSet []*SecurityGroupAssociationStatistics `json:"SecurityGroupAssociationStatisticsSet,omitempty" name:"SecurityGroupAssociationStatisticsSet"` - // 安全组关联实例统计。 - SecurityGroupAssociationStatisticsSet []*SecurityGroupAssociationStatistics `json:"SecurityGroupAssociationStatisticsSet,omitempty" name:"SecurityGroupAssociationStatisticsSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeSecurityGroupAssociationStatisticsResponse struct { + *tchttp.BaseResponse + Response *DescribeSecurityGroupAssociationStatisticsResponseParams `json:"Response"` } func (r *DescribeSecurityGroupAssociationStatisticsResponse) ToJsonString() string { @@ -9340,8 +12078,14 @@ func (r *DescribeSecurityGroupAssociationStatisticsResponse) FromJsonString(s st return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeSecurityGroupLimitsRequestParams struct { + +} + type DescribeSecurityGroupLimitsRequest struct { *tchttp.BaseRequest + } func (r *DescribeSecurityGroupLimitsRequest) ToJsonString() string { @@ -9356,22 +12100,25 @@ func (r *DescribeSecurityGroupLimitsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSecurityGroupLimitsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeSecurityGroupLimitsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeSecurityGroupLimitsResponseParams struct { + // 用户安全组配额限制。 + SecurityGroupLimitSet *SecurityGroupLimitSet `json:"SecurityGroupLimitSet,omitempty" name:"SecurityGroupLimitSet"` - // 用户安全组配额限制。 - SecurityGroupLimitSet *SecurityGroupLimitSet `json:"SecurityGroupLimitSet,omitempty" name:"SecurityGroupLimitSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeSecurityGroupLimitsResponse struct { + *tchttp.BaseResponse + Response *DescribeSecurityGroupLimitsResponseParams `json:"Response"` } func (r *DescribeSecurityGroupLimitsResponse) ToJsonString() string { @@ -9385,9 +12132,27 @@ func (r *DescribeSecurityGroupLimitsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeSecurityGroupPoliciesRequestParams struct { + // 安全组实例ID,例如:sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 过滤条件,不支持同时指定SecurityGroupId和Filters参数。 + //
  • security-group-id - String - 安全组ID。
  • + //
  • ip - String - IP,支持IPV4和IPV6模糊匹配。
  • + //
  • address-module - String - IP地址模板或IP地址组模板ID。
  • + //
  • service-module - String - 协议端口模板或协议端口组模板ID。
  • + //
  • protocol-type - String - 安全组策略支持的协议,可选值:`TCP`, `UDP`, `ICMP`, `ICMPV6`, `GRE`, `ALL`。
  • + //
  • port - String - 是否必填:否 -协议端口,支持模糊匹配,值为`ALL`时,查询所有的端口。
  • + //
  • poly - String - 协议策略,可选值:`ALL`,所有策略;`ACCEPT`,允许;`DROP`,拒绝。
  • + //
  • direction - String - 协议规则,可选值:`ALL`,所有策略;`INBOUND`,入站规则;`OUTBOUND`,出站规则。
  • + //
  • description - String - 协议描述,该过滤条件支持模糊匹配。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` +} + type DescribeSecurityGroupPoliciesRequest struct { *tchttp.BaseRequest - + // 安全组实例ID,例如:sg-33ocnj9n,可通过DescribeSecurityGroups获取。 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` @@ -9424,16 +12189,18 @@ func (r *DescribeSecurityGroupPoliciesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeSecurityGroupPoliciesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeSecurityGroupPoliciesResponseParams struct { + // 安全组规则集合。 + SecurityGroupPolicySet *SecurityGroupPolicySet `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` - // 安全组规则集合。 - SecurityGroupPolicySet *SecurityGroupPolicySet `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeSecurityGroupPoliciesResponse struct { + *tchttp.BaseResponse + Response *DescribeSecurityGroupPoliciesResponseParams `json:"Response"` } func (r *DescribeSecurityGroupPoliciesResponse) ToJsonString() string { @@ -9447,9 +12214,15 @@ func (r *DescribeSecurityGroupPoliciesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeSecurityGroupReferencesRequestParams struct { + // 安全组实例ID数组。格式如:['sg-12345678'] + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` +} + type DescribeSecurityGroupReferencesRequest struct { *tchttp.BaseRequest - + // 安全组实例ID数组。格式如:['sg-12345678'] SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` } @@ -9473,16 +12246,18 @@ func (r *DescribeSecurityGroupReferencesRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } -type DescribeSecurityGroupReferencesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeSecurityGroupReferencesResponseParams struct { + // 安全组被引用信息。 + ReferredSecurityGroupSet []*ReferredSecurityGroup `json:"ReferredSecurityGroupSet,omitempty" name:"ReferredSecurityGroupSet"` - // 安全组被引用信息。 - ReferredSecurityGroupSet []*ReferredSecurityGroup `json:"ReferredSecurityGroupSet,omitempty" name:"ReferredSecurityGroupSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeSecurityGroupReferencesResponse struct { + *tchttp.BaseResponse + Response *DescribeSecurityGroupReferencesResponseParams `json:"Response"` } func (r *DescribeSecurityGroupReferencesResponse) ToJsonString() string { @@ -9496,9 +12271,29 @@ func (r *DescribeSecurityGroupReferencesResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeSecurityGroupsRequestParams struct { + // 安全组实例ID,例如:sg-33ocnj9n,可通过DescribeSecurityGroups获取。每次请求的实例的上限为100。参数不支持同时指定SecurityGroupIds和Filters。 + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` + + // 过滤条件,参数不支持同时指定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"` + + // 偏移量,默认为0。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + type DescribeSecurityGroupsRequest struct { *tchttp.BaseRequest - + // 安全组实例ID,例如:sg-33ocnj9n,可通过DescribeSecurityGroups获取。每次请求的实例的上限为100。参数不支持同时指定SecurityGroupIds和Filters。 SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` @@ -9539,20 +12334,22 @@ func (r *DescribeSecurityGroupsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeSecurityGroupsResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 安全组对象。 +// Predefined struct for user +type DescribeSecurityGroupsResponseParams struct { + // 安全组对象。 // 注意:此字段可能返回 null,表示取不到有效值。 - SecurityGroupSet []*SecurityGroup `json:"SecurityGroupSet,omitempty" name:"SecurityGroupSet"` + SecurityGroupSet []*SecurityGroup `json:"SecurityGroupSet,omitempty" name:"SecurityGroupSet"` + + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeSecurityGroupsResponse struct { + *tchttp.BaseResponse + Response *DescribeSecurityGroupsResponseParams `json:"Response"` } func (r *DescribeSecurityGroupsResponse) ToJsonString() string { @@ -9566,9 +12363,23 @@ func (r *DescribeSecurityGroupsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeServiceTemplateGroupsRequestParams struct { + // 过滤条件。 + //
  • service-template-group-name - String - (过滤条件)协议端口模板集合名称。
  • + //
  • service-template-group-id - String - (过滤条件)协议端口模板集合实例ID,例如:ppmg-e6dy460g。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + type DescribeServiceTemplateGroupsRequest struct { *tchttp.BaseRequest - + // 过滤条件。 //
  • service-template-group-name - String - (过滤条件)协议端口模板集合名称。
  • //
  • service-template-group-id - String - (过滤条件)协议端口模板集合实例ID,例如:ppmg-e6dy460g。
  • @@ -9602,19 +12413,21 @@ func (r *DescribeServiceTemplateGroupsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeServiceTemplateGroupsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeServiceTemplateGroupsResponseParams struct { + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 协议端口模板集合。 + ServiceTemplateGroupSet []*ServiceTemplateGroup `json:"ServiceTemplateGroupSet,omitempty" name:"ServiceTemplateGroupSet"` - // 协议端口模板集合。 - ServiceTemplateGroupSet []*ServiceTemplateGroup `json:"ServiceTemplateGroupSet,omitempty" name:"ServiceTemplateGroupSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeServiceTemplateGroupsResponse struct { + *tchttp.BaseResponse + Response *DescribeServiceTemplateGroupsResponseParams `json:"Response"` } func (r *DescribeServiceTemplateGroupsResponse) ToJsonString() string { @@ -9628,9 +12441,24 @@ func (r *DescribeServiceTemplateGroupsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeServiceTemplatesRequestParams struct { + // 过滤条件。 + //
  • service-template-name - 协议端口模板名称。
  • + //
  • service-template-id - 协议端口模板实例ID,例如:ppm-e6dy460g。
  • + //
  • service-port- 协议端口。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + type DescribeServiceTemplatesRequest struct { *tchttp.BaseRequest - + // 过滤条件。 //
  • service-template-name - 协议端口模板名称。
  • //
  • service-template-id - 协议端口模板实例ID,例如:ppm-e6dy460g。
  • @@ -9665,19 +12493,21 @@ func (r *DescribeServiceTemplatesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeServiceTemplatesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeServiceTemplatesResponseParams struct { + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 协议端口模板对象。 + ServiceTemplateSet []*ServiceTemplate `json:"ServiceTemplateSet,omitempty" name:"ServiceTemplateSet"` - // 协议端口模板对象。 - ServiceTemplateSet []*ServiceTemplate `json:"ServiceTemplateSet,omitempty" name:"ServiceTemplateSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeServiceTemplatesResponse struct { + *tchttp.BaseResponse + Response *DescribeServiceTemplatesResponseParams `json:"Response"` } func (r *DescribeServiceTemplatesResponse) ToJsonString() string { @@ -9691,9 +12521,35 @@ func (r *DescribeServiceTemplatesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeSubnetsRequestParams struct { + // 子网实例ID查询。形如:subnet-pxir56ns。每次请求的实例的上限为100。参数不支持同时指定SubnetIds和Filters。 + SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` + + // 过滤条件,参数不支持同时指定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。
  • + //
  • cdc-id - String - 是否必填:否 - (过滤条件)按照cdc信息进行过滤。过滤出来制定cdc下的子网。
  • + //
  • is-cdc-subnet - String - 是否必填:否 - (过滤条件)按照是否是cdc子网进行过滤。取值:“0”-非cdc子网,“1”--cdc子网
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + type DescribeSubnetsRequest struct { *tchttp.BaseRequest - + // 子网实例ID查询。形如:subnet-pxir56ns。每次请求的实例的上限为100。参数不支持同时指定SubnetIds和Filters。 SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` @@ -9740,19 +12596,21 @@ func (r *DescribeSubnetsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeSubnetsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeSubnetsResponseParams struct { + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 子网对象。 + SubnetSet []*Subnet `json:"SubnetSet,omitempty" name:"SubnetSet"` - // 子网对象。 - SubnetSet []*Subnet `json:"SubnetSet,omitempty" name:"SubnetSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeSubnetsResponse struct { + *tchttp.BaseResponse + Response *DescribeSubnetsResponseParams `json:"Response"` } func (r *DescribeSubnetsResponse) ToJsonString() string { @@ -9766,9 +12624,18 @@ func (r *DescribeSubnetsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeTaskResultRequestParams struct { + // 异步任务ID。TaskId和DealName必填一个参数 + TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` + + // 计费订单号。TaskId和DealName必填一个参数 + DealName *string `json:"DealName,omitempty" name:"DealName"` +} + type DescribeTaskResultRequest struct { *tchttp.BaseRequest - + // 异步任务ID。TaskId和DealName必填一个参数 TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` @@ -9796,19 +12663,21 @@ func (r *DescribeTaskResultRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeTaskResultResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeTaskResultResponseParams struct { + // 任务ID + TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` - // 任务ID - TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` + // 执行结果,包括"SUCCESS", "FAILED", "RUNNING" + Result *string `json:"Result,omitempty" name:"Result"` - // 执行结果,包括"SUCCESS", "FAILED", "RUNNING" - Result *string `json:"Result,omitempty" name:"Result"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeTaskResultResponse struct { + *tchttp.BaseResponse + Response *DescribeTaskResultResponseParams `json:"Response"` } func (r *DescribeTaskResultResponse) ToJsonString() string { @@ -9822,8 +12691,14 @@ func (r *DescribeTaskResultResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeTemplateLimitsRequestParams struct { + +} + type DescribeTemplateLimitsRequest struct { *tchttp.BaseRequest + } func (r *DescribeTemplateLimitsRequest) ToJsonString() string { @@ -9838,22 +12713,25 @@ func (r *DescribeTemplateLimitsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTemplateLimitsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeTemplateLimitsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeTemplateLimitsResponseParams struct { + // 参数模板配额对象。 + TemplateLimit *TemplateLimit `json:"TemplateLimit,omitempty" name:"TemplateLimit"` - // 参数模板配额对象。 - TemplateLimit *TemplateLimit `json:"TemplateLimit,omitempty" name:"TemplateLimit"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeTemplateLimitsResponse struct { + *tchttp.BaseResponse + Response *DescribeTemplateLimitsResponseParams `json:"Response"` } func (r *DescribeTemplateLimitsResponse) ToJsonString() string { @@ -9867,8 +12745,14 @@ func (r *DescribeTemplateLimitsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeTenantCcnsRequestParams struct { + +} + type DescribeTenantCcnsRequest struct { *tchttp.BaseRequest + } func (r *DescribeTenantCcnsRequest) ToJsonString() string { @@ -9883,35 +12767,57 @@ func (r *DescribeTenantCcnsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTenantCcnsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeTenantCcnsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DescribeTenantCcnsResponse struct { *tchttp.BaseResponse - Response *struct { + Response *DescribeTenantCcnsResponseParams `json:"Response"` +} + +func (r *DescribeTenantCcnsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeTenantCcnsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) } -func (r *DescribeTenantCcnsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} +// Predefined struct for user +type DescribeVpcEndPointRequestParams struct { + // 过滤条件。 + //
  • end-point-service-id- String - (过滤条件)终端节点服务ID。
  • + //
  • end-point-name - String - (过滤条件)终端节点实例名称。
  • + //
  • end-point-id- String - (过滤条件)终端节点实例ID。
  • + //
  • vpc-id- String - (过滤条件)VPC实例ID。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 单页返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DescribeTenantCcnsResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) + // 终端节点ID列表。 + EndPointId []*string `json:"EndPointId,omitempty" name:"EndPointId"` } type DescribeVpcEndPointRequest struct { *tchttp.BaseRequest - + // 过滤条件。 //
  • end-point-service-id- String - (过滤条件)终端节点服务ID。
  • //
  • end-point-name - String - (过滤条件)终端节点实例名称。
  • @@ -9951,19 +12857,21 @@ func (r *DescribeVpcEndPointRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeVpcEndPointResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpcEndPointResponseParams struct { + // 终端节点对象。 + EndPointSet []*EndPoint `json:"EndPointSet,omitempty" name:"EndPointSet"` - // 终端节点对象。 - EndPointSet []*EndPoint `json:"EndPointSet,omitempty" name:"EndPointSet"` + // 符合查询条件的终端节点个数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合查询条件的终端节点个数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpcEndPointResponse struct { + *tchttp.BaseResponse + Response *DescribeVpcEndPointResponseParams `json:"Response"` } func (r *DescribeVpcEndPointResponse) ToJsonString() string { @@ -9977,9 +12885,27 @@ func (r *DescribeVpcEndPointResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpcEndPointServiceRequestParams struct { + // 过滤条件。 + //
  • service-id- String - (过滤条件)终端节点服务唯一ID。
  • + //
  • service-name - String - (过滤条件)终端节点实例名称。
  • + //
  • service-instance-id - String - (过滤条件)后端服务的唯一ID,比如lb-xxx。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 单页返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 终端节点服务ID。 + EndPointServiceIds []*string `json:"EndPointServiceIds,omitempty" name:"EndPointServiceIds"` +} + type DescribeVpcEndPointServiceRequest struct { *tchttp.BaseRequest - + // 过滤条件。 //
  • service-id- String - (过滤条件)终端节点服务唯一ID。
  • //
  • service-name - String - (过滤条件)终端节点实例名称。
  • @@ -10018,19 +12944,21 @@ func (r *DescribeVpcEndPointServiceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeVpcEndPointServiceResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpcEndPointServiceResponseParams struct { + // 终端节点服务对象数组。 + EndPointServiceSet []*EndPointService `json:"EndPointServiceSet,omitempty" name:"EndPointServiceSet"` - // 终端节点服务对象数组。 - EndPointServiceSet []*EndPointService `json:"EndPointServiceSet,omitempty" name:"EndPointServiceSet"` + // 符合查询条件的个数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合查询条件的个数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpcEndPointServiceResponse struct { + *tchttp.BaseResponse + Response *DescribeVpcEndPointServiceResponseParams `json:"Response"` } func (r *DescribeVpcEndPointServiceResponse) ToJsonString() string { @@ -10044,9 +12972,23 @@ func (r *DescribeVpcEndPointServiceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpcEndPointServiceWhiteListRequestParams struct { + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 单页返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件。 + //
  • user-uin String - (过滤条件)用户UIN。
  • + //
  • end-point-service-id String - (过滤条件)终端节点服务ID。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` +} + type DescribeVpcEndPointServiceWhiteListRequest struct { *tchttp.BaseRequest - + // 偏移量,默认为0。 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` @@ -10080,19 +13022,21 @@ func (r *DescribeVpcEndPointServiceWhiteListRequest) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } -type DescribeVpcEndPointServiceWhiteListResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpcEndPointServiceWhiteListResponseParams struct { + // 白名单对象数组。 + VpcEndpointServiceUserSet []*VpcEndPointServiceUser `json:"VpcEndpointServiceUserSet,omitempty" name:"VpcEndpointServiceUserSet"` - // 白名单对象数组。 - VpcEndpointServiceUserSet []*VpcEndPointServiceUser `json:"VpcEndpointServiceUserSet,omitempty" name:"VpcEndpointServiceUserSet"` + // 符合条件的白名单个数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的白名单个数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpcEndPointServiceWhiteListResponse struct { + *tchttp.BaseResponse + Response *DescribeVpcEndPointServiceWhiteListResponseParams `json:"Response"` } func (r *DescribeVpcEndPointServiceWhiteListResponse) ToJsonString() string { @@ -10106,9 +13050,24 @@ func (r *DescribeVpcEndPointServiceWhiteListResponse) FromJsonString(s string) e return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpcInstancesRequestParams struct { + // 过滤条件,参数不支持同时指定RouteTableIds和Filters。 + //
  • vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
  • + //
  • instance-id - String - (过滤条件)云主机实例ID。
  • + //
  • instance-name - String - (过滤条件)云主机名称。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 请求对象个数。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeVpcInstancesRequest struct { *tchttp.BaseRequest - + // 过滤条件,参数不支持同时指定RouteTableIds和Filters。 //
  • vpc-id - String - (过滤条件)VPC实例ID,形如:vpc-f49l6u0z。
  • //
  • instance-id - String - (过滤条件)云主机实例ID。
  • @@ -10143,19 +13102,21 @@ func (r *DescribeVpcInstancesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeVpcInstancesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpcInstancesResponseParams struct { + // 云主机实例列表。 + InstanceSet []*CvmInstance `json:"InstanceSet,omitempty" name:"InstanceSet"` - // 云主机实例列表。 - InstanceSet []*CvmInstance `json:"InstanceSet,omitempty" name:"InstanceSet"` + // 满足条件的云主机实例个数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 满足条件的云主机实例个数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpcInstancesResponse struct { + *tchttp.BaseResponse + Response *DescribeVpcInstancesResponseParams `json:"Response"` } func (r *DescribeVpcInstancesResponse) ToJsonString() string { @@ -10169,9 +13130,24 @@ func (r *DescribeVpcInstancesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpcIpv6AddressesRequestParams struct { + // `VPC`实例`ID`,形如:`vpc-f49l6u0z`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // `IP`地址列表,批量查询单次请求最多支持`10`个。 + Ipv6Addresses []*string `json:"Ipv6Addresses,omitempty" name:"Ipv6Addresses"` + + // 偏移量。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeVpcIpv6AddressesRequest struct { *tchttp.BaseRequest - + // `VPC`实例`ID`,形如:`vpc-f49l6u0z`。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -10207,19 +13183,21 @@ func (r *DescribeVpcIpv6AddressesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeVpcIpv6AddressesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpcIpv6AddressesResponseParams struct { + // `IPv6`地址列表。 + Ipv6AddressSet []*VpcIpv6Address `json:"Ipv6AddressSet,omitempty" name:"Ipv6AddressSet"` - // `IPv6`地址列表。 - Ipv6AddressSet []*VpcIpv6Address `json:"Ipv6AddressSet,omitempty" name:"Ipv6AddressSet"` + // `IPv6`地址总数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // `IPv6`地址总数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpcIpv6AddressesResponse struct { + *tchttp.BaseResponse + Response *DescribeVpcIpv6AddressesResponseParams `json:"Response"` } func (r *DescribeVpcIpv6AddressesResponse) ToJsonString() string { @@ -10233,9 +13211,15 @@ func (r *DescribeVpcIpv6AddressesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpcLimitsRequestParams struct { + // 配额名称。每次最大查询100个配额类型。 + LimitTypes []*string `json:"LimitTypes,omitempty" name:"LimitTypes"` +} + type DescribeVpcLimitsRequest struct { *tchttp.BaseRequest - + // 配额名称。每次最大查询100个配额类型。 LimitTypes []*string `json:"LimitTypes,omitempty" name:"LimitTypes"` } @@ -10259,16 +13243,18 @@ func (r *DescribeVpcLimitsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeVpcLimitsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpcLimitsResponseParams struct { + // 私有网络配额 + VpcLimitSet []*VpcLimit `json:"VpcLimitSet,omitempty" name:"VpcLimitSet"` - // 私有网络配额 - VpcLimitSet []*VpcLimit `json:"VpcLimitSet,omitempty" name:"VpcLimitSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpcLimitsResponse struct { + *tchttp.BaseResponse + Response *DescribeVpcLimitsResponseParams `json:"Response"` } func (r *DescribeVpcLimitsResponse) ToJsonString() string { @@ -10282,9 +13268,18 @@ func (r *DescribeVpcLimitsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpcPrivateIpAddressesRequestParams struct { + // `VPC`实例`ID`,形如:`vpc-f49l6u0z`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 内网`IP`地址列表,批量查询单次请求最多支持`10`个。 + PrivateIpAddresses []*string `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"` +} + type DescribeVpcPrivateIpAddressesRequest struct { *tchttp.BaseRequest - + // `VPC`实例`ID`,形如:`vpc-f49l6u0z`。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -10312,16 +13307,18 @@ func (r *DescribeVpcPrivateIpAddressesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeVpcPrivateIpAddressesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpcPrivateIpAddressesResponseParams struct { + // 内网`IP`地址信息列表。 + VpcPrivateIpAddressSet []*VpcPrivateIpAddress `json:"VpcPrivateIpAddressSet,omitempty" name:"VpcPrivateIpAddressSet"` - // 内网`IP`地址信息列表。 - VpcPrivateIpAddressSet []*VpcPrivateIpAddress `json:"VpcPrivateIpAddressSet,omitempty" name:"VpcPrivateIpAddressSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpcPrivateIpAddressesResponse struct { + *tchttp.BaseResponse + Response *DescribeVpcPrivateIpAddressesResponseParams `json:"Response"` } func (r *DescribeVpcPrivateIpAddressesResponse) ToJsonString() string { @@ -10335,9 +13332,15 @@ func (r *DescribeVpcPrivateIpAddressesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpcResourceDashboardRequestParams struct { + // Vpc实例ID,例如:vpc-f1xjkw1b。 + VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"` +} + type DescribeVpcResourceDashboardRequest struct { *tchttp.BaseRequest - + // Vpc实例ID,例如:vpc-f1xjkw1b。 VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"` } @@ -10361,16 +13364,18 @@ func (r *DescribeVpcResourceDashboardRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeVpcResourceDashboardResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpcResourceDashboardResponseParams struct { + // 资源对象列表。 + ResourceDashboardSet []*ResourceDashboard `json:"ResourceDashboardSet,omitempty" name:"ResourceDashboardSet"` - // 资源对象列表。 - ResourceDashboardSet []*ResourceDashboard `json:"ResourceDashboardSet,omitempty" name:"ResourceDashboardSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpcResourceDashboardResponse struct { + *tchttp.BaseResponse + Response *DescribeVpcResourceDashboardResponseParams `json:"Response"` } func (r *DescribeVpcResourceDashboardResponse) ToJsonString() string { @@ -10384,9 +13389,15 @@ func (r *DescribeVpcResourceDashboardResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpcTaskResultRequestParams struct { + // 异步任务请求返回的RequestId。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` +} + type DescribeVpcTaskResultRequest struct { *tchttp.BaseRequest - + // 异步任务请求返回的RequestId。 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` } @@ -10410,19 +13421,21 @@ func (r *DescribeVpcTaskResultRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeVpcTaskResultResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpcTaskResultResponseParams struct { + // 异步任务执行结果。结果:SUCCESS、FAILED、RUNNING。3者其中之一。其中SUCCESS表示任务执行成功,FAILED表示任务执行失败,RUNNING表示任务执行中。 + Status *string `json:"Status,omitempty" name:"Status"` - // 异步任务执行结果。结果:SUCCESS、FAILED、RUNNING。3者其中之一。其中SUCCESS表示任务执行成功,FAILED表示任务执行失败,RUNNING表示任务执行中。 - Status *string `json:"Status,omitempty" name:"Status"` + // 异步任务执行输出。 + Output *string `json:"Output,omitempty" name:"Output"` - // 异步任务执行输出。 - Output *string `json:"Output,omitempty" name:"Output"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpcTaskResultResponse struct { + *tchttp.BaseResponse + Response *DescribeVpcTaskResultResponseParams `json:"Response"` } func (r *DescribeVpcTaskResultResponse) ToJsonString() string { @@ -10436,15 +13449,38 @@ func (r *DescribeVpcTaskResultResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpcsRequestParams struct { + // VPC实例ID。形如:vpc-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpcIds和Filters。 + VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"` + + // 过滤条件,不支持同时指定VpcIds和Filters参数。 + // 支持的过滤条件如下: + //
  • vpc-name:VPC实例名称,支持模糊查询。
  • + //
  • is-default :是否默认VPC。
  • + //
  • vpc-id :VPC实例ID,例如:vpc-f49l6u0z。
  • + //
  • cidr-block:VPC的CIDR。
  • + //
  • tag-key :按照标签键进行过滤,非必填参数。
  • + //
  • tag:tag-key:按照标签键值对进行过滤,非必填参数。 其中 tag-key 请使用具体的标签键进行替换,可参考示例2。
  • + // **说明:**若同一个过滤条件(Filter)存在多个Values,则同一Filter下Values间的关系为逻辑或(OR)关系;若存在多个过滤条件(Filter),Filter之间的关系为逻辑与(AND)关系。 + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量,默认为0。 + Offset *string `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *string `json:"Limit,omitempty" name:"Limit"` +} + type DescribeVpcsRequest struct { *tchttp.BaseRequest - + // VPC实例ID。形如:vpc-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpcIds和Filters。 VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"` // 过滤条件,不支持同时指定VpcIds和Filters参数。 // 支持的过滤条件如下: - //
  • vpc-name:VPC实例名称。
  • + //
  • vpc-name:VPC实例名称,支持模糊查询。
  • //
  • is-default :是否默认VPC。
  • //
  • vpc-id :VPC实例ID,例如:vpc-f49l6u0z。
  • //
  • cidr-block:VPC的CIDR。
  • @@ -10482,19 +13518,21 @@ func (r *DescribeVpcsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeVpcsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpcsResponseParams struct { + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的对象数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // VPC对象。 + VpcSet []*Vpc `json:"VpcSet,omitempty" name:"VpcSet"` - // VPC对象。 - VpcSet []*Vpc `json:"VpcSet,omitempty" name:"VpcSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpcsResponse struct { + *tchttp.BaseResponse + Response *DescribeVpcsResponseParams `json:"Response"` } func (r *DescribeVpcsResponse) ToJsonString() string { @@ -10508,9 +13546,29 @@ func (r *DescribeVpcsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpnConnectionsRequestParams struct { + // VPN通道实例ID。形如:vpnx-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpnConnectionIds和Filters。 + VpnConnectionIds []*string `json:"VpnConnectionIds,omitempty" name:"VpnConnectionIds"` + + // 过滤条件。每次请求的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"` + + // 偏移量,默认为0。关于Offset的更进一步介绍请参考 API 简介中的相关小节。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeVpnConnectionsRequest struct { *tchttp.BaseRequest - + // VPN通道实例ID。形如:vpnx-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpnConnectionIds和Filters。 VpnConnectionIds []*string `json:"VpnConnectionIds,omitempty" name:"VpnConnectionIds"` @@ -10551,19 +13609,21 @@ func (r *DescribeVpnConnectionsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeVpnConnectionsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpnConnectionsResponseParams struct { + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // VPN通道实例。 + VpnConnectionSet []*VpnConnection `json:"VpnConnectionSet,omitempty" name:"VpnConnectionSet"` - // VPN通道实例。 - VpnConnectionSet []*VpnConnection `json:"VpnConnectionSet,omitempty" name:"VpnConnectionSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpnConnectionsResponse struct { + *tchttp.BaseResponse + Response *DescribeVpnConnectionsResponseParams `json:"Response"` } func (r *DescribeVpnConnectionsResponse) ToJsonString() string { @@ -10577,9 +13637,21 @@ func (r *DescribeVpnConnectionsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpnGatewayCcnRoutesRequestParams struct { + // VPN网关实例ID + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeVpnGatewayCcnRoutesRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -10611,19 +13683,21 @@ func (r *DescribeVpnGatewayCcnRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeVpnGatewayCcnRoutesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpnGatewayCcnRoutesResponseParams struct { + // 云联网路由(IDC网段)列表。 + RouteSet []*VpngwCcnRoutes `json:"RouteSet,omitempty" name:"RouteSet"` - // 云联网路由(IDC网段)列表。 - RouteSet []*VpngwCcnRoutes `json:"RouteSet,omitempty" name:"RouteSet"` + // 符合条件的对象数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的对象数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpnGatewayCcnRoutesResponse struct { + *tchttp.BaseResponse + Response *DescribeVpnGatewayCcnRoutesResponseParams `json:"Response"` } func (r *DescribeVpnGatewayCcnRoutesResponse) ToJsonString() string { @@ -10637,9 +13711,24 @@ func (r *DescribeVpnGatewayCcnRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpnGatewayRoutesRequestParams struct { + // VPN网关的ID + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 过滤条件, 条件包括(DestinationCidr, InstanceId,InstanceType) + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量, 默认0 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 单页个数, 默认20, 最大值100 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeVpnGatewayRoutesRequest struct { *tchttp.BaseRequest - + // VPN网关的ID VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -10675,32 +13764,57 @@ func (r *DescribeVpnGatewayRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpnGatewayRoutesResponseParams struct { + // VPN网关目的路由 + Routes []*VpnGatewayRoute `json:"Routes,omitempty" name:"Routes"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DescribeVpnGatewayRoutesResponse struct { *tchttp.BaseResponse - Response *struct { + Response *DescribeVpnGatewayRoutesResponseParams `json:"Response"` +} - // VPN网关目的路由 - Routes []*VpnGatewayRoute `json:"Routes,omitempty" name:"Routes"` +func (r *DescribeVpnGatewayRoutesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeVpnGatewayRoutesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) } -func (r *DescribeVpnGatewayRoutesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} +// Predefined struct for user +type DescribeVpnGatewaySslClientsRequestParams struct { + // 过滤条件,参数不支持同时指定SslVpnClientIds和Filters。 + //
  • vpc-id - String - (过滤条件)VPC实例ID形如:vpc-f49l6u0z。
  • + //
  • vpn-gateway-id - String - (过滤条件)VPN实例ID形如:vpngw-5aluhh9t。
  • + //
  • ssl-vpn-server-id - String - (过滤条件)SSL-VPN-SERVER实例ID形如:vpngwSslServer-123456。
  • + //
  • ssl-vpn-client-id - String - (过滤条件)SSL-VPN-CLIENT实例ID形如:vpngwSslClient-123456。
  • + //
  • ssl-vpn-client-name - String - (过滤条件)SSL-VPN-CLIENT实例名称。
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 请求对象个数 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // SSL-VPN-CLIENT实例ID。形如:vpngwSslClient-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定SslVpnClientIds和Filters。 + SslVpnClientIds []*string `json:"SslVpnClientIds,omitempty" name:"SslVpnClientIds"` -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DescribeVpnGatewayRoutesResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) + // VPN门户网站使用。默认是False。 + IsVpnPortal *bool `json:"IsVpnPortal,omitempty" name:"IsVpnPortal"` } type DescribeVpnGatewaySslClientsRequest struct { *tchttp.BaseRequest - + // 过滤条件,参数不支持同时指定SslVpnClientIds和Filters。 //
  • vpc-id - String - (过滤条件)VPC实例ID形如:vpc-f49l6u0z。
  • //
  • vpn-gateway-id - String - (过滤条件)VPN实例ID形如:vpngw-5aluhh9t。
  • @@ -10717,6 +13831,9 @@ type DescribeVpnGatewaySslClientsRequest struct { // SSL-VPN-CLIENT实例ID。形如:vpngwSslClient-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定SslVpnClientIds和Filters。 SslVpnClientIds []*string `json:"SslVpnClientIds,omitempty" name:"SslVpnClientIds"` + + // VPN门户网站使用。默认是False。 + IsVpnPortal *bool `json:"IsVpnPortal,omitempty" name:"IsVpnPortal"` } func (r *DescribeVpnGatewaySslClientsRequest) ToJsonString() string { @@ -10735,25 +13852,28 @@ func (r *DescribeVpnGatewaySslClientsRequest) FromJsonString(s string) error { delete(f, "Offset") delete(f, "Limit") delete(f, "SslVpnClientIds") + delete(f, "IsVpnPortal") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeVpnGatewaySslClientsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeVpnGatewaySslClientsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpnGatewaySslClientsResponseParams struct { + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 符合条件的实例个数。 + SslVpnClientSet []*SslVpnClient `json:"SslVpnClientSet,omitempty" name:"SslVpnClientSet"` - // 符合条件的实例个数。 - SslVpnClientSet []*SslVpnClient `json:"SslVpnClientSet,omitempty" name:"SslVpnClientSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpnGatewaySslClientsResponse struct { + *tchttp.BaseResponse + Response *DescribeVpnGatewaySslClientsResponseParams `json:"Response"` } func (r *DescribeVpnGatewaySslClientsResponse) ToJsonString() string { @@ -10767,9 +13887,32 @@ func (r *DescribeVpnGatewaySslClientsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpnGatewaySslServersRequestParams struct { + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 请求对象个数 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // SSL-VPN-SERVER实例ID。形如:vpngwSslServer-12345678。每次请求的实例的上限为100。参数不支持同时指定SslVpnServerIds和Filters。 + SslVpnServerIds []*string `json:"SslVpnServerIds,omitempty" name:"SslVpnServerIds"` + + // 过滤条件,参数不支持同时指定SslVpnServerIds和Filters。 + //
  • vpc-id - String - (过滤条件)VPC实例ID形如:vpc-f49l6u0z。
  • + //
  • vpn-gateway-id - String - (过滤条件)VPN实例ID形如:vpngw-5aluhh9t。
  • + //
  • vpn-gateway-name - String - (过滤条件)VPN实例名称。
  • + //
  • ssl-vpn-server-name - String - (过滤条件)SSL-VPN-SERVER实例名称。
  • + //
  • ssl-vpn-server-id - String - (过滤条件)SSL-VPN-SERVER实例ID形如:vpngwSslServer-123456。
  • + Filters []*FilterObject `json:"Filters,omitempty" name:"Filters"` + + // vpn门户使用。 默认Flase + IsVpnPortal *bool `json:"IsVpnPortal,omitempty" name:"IsVpnPortal"` +} + type DescribeVpnGatewaySslServersRequest struct { *tchttp.BaseRequest - + // 偏移量 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` @@ -10786,6 +13929,9 @@ type DescribeVpnGatewaySslServersRequest struct { //
  • ssl-vpn-server-name - String - (过滤条件)SSL-VPN-SERVER实例名称。
  • //
  • ssl-vpn-server-id - String - (过滤条件)SSL-VPN-SERVER实例ID形如:vpngwSslServer-123456。
  • Filters []*FilterObject `json:"Filters,omitempty" name:"Filters"` + + // vpn门户使用。 默认Flase + IsVpnPortal *bool `json:"IsVpnPortal,omitempty" name:"IsVpnPortal"` } func (r *DescribeVpnGatewaySslServersRequest) ToJsonString() string { @@ -10804,25 +13950,28 @@ func (r *DescribeVpnGatewaySslServersRequest) FromJsonString(s string) error { delete(f, "Limit") delete(f, "SslVpnServerIds") delete(f, "Filters") + delete(f, "IsVpnPortal") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeVpnGatewaySslServersRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeVpnGatewaySslServersResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpnGatewaySslServersResponseParams struct { + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // SSL-VPN-SERVER 实例详细信息列表。 + SslVpnSeverSet []*SslVpnSever `json:"SslVpnSeverSet,omitempty" name:"SslVpnSeverSet"` - // SSL-VPN-SERVER 实例详细信息列表。 - SslVpnSeverSet []*SslVpnSever `json:"SslVpnSeverSet,omitempty" name:"SslVpnSeverSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpnGatewaySslServersResponse struct { + *tchttp.BaseResponse + Response *DescribeVpnGatewaySslServersResponseParams `json:"Response"` } func (r *DescribeVpnGatewaySslServersResponse) ToJsonString() string { @@ -10836,9 +13985,31 @@ func (r *DescribeVpnGatewaySslServersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVpnGatewaysRequestParams struct { + // VPN网关实例ID。形如:vpngw-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpnGatewayIds和Filters。 + VpnGatewayIds []*string `json:"VpnGatewayIds,omitempty" name:"VpnGatewayIds"` + + // 过滤条件,参数不支持同时指定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"` + + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 请求对象个数 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeVpnGatewaysRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID。形如:vpngw-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpnGatewayIds和Filters。 VpnGatewayIds []*string `json:"VpnGatewayIds,omitempty" name:"VpnGatewayIds"` @@ -10881,19 +14052,21 @@ func (r *DescribeVpnGatewaysRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeVpnGatewaysResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeVpnGatewaysResponseParams struct { + // 符合条件的实例数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 符合条件的实例数量。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // VPN网关实例详细信息列表。 + VpnGatewaySet []*VpnGateway `json:"VpnGatewaySet,omitempty" name:"VpnGatewaySet"` - // VPN网关实例详细信息列表。 - VpnGatewaySet []*VpnGateway `json:"VpnGatewaySet,omitempty" name:"VpnGatewaySet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeVpnGatewaysResponse struct { + *tchttp.BaseResponse + Response *DescribeVpnGatewaysResponseParams `json:"Response"` } func (r *DescribeVpnGatewaysResponse) ToJsonString() string { @@ -10908,7 +14081,6 @@ func (r *DescribeVpnGatewaysResponse) FromJsonString(s string) error { } type DestinationIpPortTranslationNatRule struct { - // 网络协议,可选值:`TCP`、`UDP`。 IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` @@ -10928,9 +14100,18 @@ type DestinationIpPortTranslationNatRule struct { Description *string `json:"Description,omitempty" name:"Description"` } +// Predefined struct for user +type DetachCcnInstancesRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 要解关联网络实例列表 + Instances []*CcnInstance `json:"Instances,omitempty" name:"Instances"` +} + type DetachCcnInstancesRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -10958,13 +14139,15 @@ func (r *DetachCcnInstancesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DetachCcnInstancesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DetachCcnInstancesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DetachCcnInstancesResponseParams `json:"Response"` } func (r *DetachCcnInstancesResponse) ToJsonString() string { @@ -10978,9 +14161,18 @@ func (r *DetachCcnInstancesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DetachClassicLinkVpcRequestParams struct { + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // CVM实例ID查询。形如:ins-r8hr2upy。 + InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` +} + type DetachClassicLinkVpcRequest struct { *tchttp.BaseRequest - + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -11008,13 +14200,15 @@ func (r *DetachClassicLinkVpcRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DetachClassicLinkVpcResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DetachClassicLinkVpcResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DetachClassicLinkVpcResponseParams `json:"Response"` } func (r *DetachClassicLinkVpcResponse) ToJsonString() string { @@ -11028,9 +14222,18 @@ func (r *DetachClassicLinkVpcResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DetachNetworkInterfaceRequestParams struct { + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // CVM实例ID。形如:ins-r8hr2upy。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` +} + type DetachNetworkInterfaceRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例ID,例如:eni-m6dyj72l。 NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` @@ -11058,13 +14261,15 @@ func (r *DetachNetworkInterfaceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DetachNetworkInterfaceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DetachNetworkInterfaceResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DetachNetworkInterfaceResponseParams `json:"Response"` } func (r *DetachNetworkInterfaceResponse) ToJsonString() string { @@ -11079,7 +14284,6 @@ func (r *DetachNetworkInterfaceResponse) FromJsonString(s string) error { } type DhcpIp struct { - // `DhcpIp`的`ID`,是`DhcpIp`的唯一标识。 DhcpIpId *string `json:"DhcpIpId,omitempty" name:"DhcpIpId"` @@ -11114,7 +14318,6 @@ type DhcpIp struct { } type DirectConnectGateway struct { - // 专线网关`ID`。 DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` @@ -11209,7 +14412,6 @@ type DirectConnectGateway struct { } type DirectConnectGatewayCcnRoute struct { - // 路由ID。 RouteId *string `json:"RouteId,omitempty" name:"RouteId"` @@ -11227,7 +14429,6 @@ type DirectConnectGatewayCcnRoute struct { } type DirectConnectSubnet struct { - // 专线网关ID DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` @@ -11235,9 +14436,18 @@ type DirectConnectSubnet struct { CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` } +// Predefined struct for user +type DisableCcnRoutesRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // CCN路由策略唯一ID。形如:ccnr-f49l6u0z。 + RouteIds []*string `json:"RouteIds,omitempty" name:"RouteIds"` +} + type DisableCcnRoutesRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -11265,13 +14475,15 @@ func (r *DisableCcnRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisableCcnRoutesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DisableCcnRoutesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DisableCcnRoutesResponseParams `json:"Response"` } func (r *DisableCcnRoutesResponse) ToJsonString() string { @@ -11285,9 +14497,72 @@ func (r *DisableCcnRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DisableGatewayFlowMonitorRequest struct { +// Predefined struct for user +type DisableFlowLogsRequestParams struct { + // 流日志Id。 + FlowLogIds []*string `json:"FlowLogIds,omitempty" name:"FlowLogIds"` +} + +type DisableFlowLogsRequest struct { *tchttp.BaseRequest + + // 流日志Id。 + FlowLogIds []*string `json:"FlowLogIds,omitempty" name:"FlowLogIds"` +} + +func (r *DisableFlowLogsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DisableFlowLogsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "FlowLogIds") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DisableFlowLogsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DisableFlowLogsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DisableFlowLogsResponse struct { + *tchttp.BaseResponse + Response *DisableFlowLogsResponseParams `json:"Response"` +} + +func (r *DisableFlowLogsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DisableFlowLogsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DisableGatewayFlowMonitorRequestParams struct { + // 网关实例ID,目前我们支持的网关实例类型有, + // 专线网关实例ID,形如,`dcg-ltjahce6`; + // Nat网关实例ID,形如,`nat-ltjahce6`; + // VPN网关实例ID,形如,`vpn-ltjahce6`。 + GatewayId *string `json:"GatewayId,omitempty" name:"GatewayId"` +} +type DisableGatewayFlowMonitorRequest struct { + *tchttp.BaseRequest + // 网关实例ID,目前我们支持的网关实例类型有, // 专线网关实例ID,形如,`dcg-ltjahce6`; // Nat网关实例ID,形如,`nat-ltjahce6`; @@ -11314,13 +14589,15 @@ func (r *DisableGatewayFlowMonitorRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisableGatewayFlowMonitorResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DisableGatewayFlowMonitorResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DisableGatewayFlowMonitorResponseParams `json:"Response"` } func (r *DisableGatewayFlowMonitorResponse) ToJsonString() string { @@ -11334,9 +14611,21 @@ func (r *DisableGatewayFlowMonitorResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisableRoutesRequestParams struct { + // 路由表唯一ID。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由策略ID。不能和RouteItemIds同时使用,但至少输入一个。该参数取值可通过查询路由列表([DescribeRouteTables](https://cloud.tencent.com/document/product/215/15763))获取。 + RouteIds []*uint64 `json:"RouteIds,omitempty" name:"RouteIds"` + + // 路由策略唯一ID。不能和RouteIds同时使用,但至少输入一个。该参数取值可通过查询路由列表([DescribeRouteTables](https://cloud.tencent.com/document/product/215/15763))获取。 + RouteItemIds []*string `json:"RouteItemIds,omitempty" name:"RouteItemIds"` +} + type DisableRoutesRequest struct { *tchttp.BaseRequest - + // 路由表唯一ID。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` @@ -11368,13 +14657,15 @@ func (r *DisableRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisableRoutesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DisableRoutesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DisableRoutesResponseParams `json:"Response"` } func (r *DisableRoutesResponse) ToJsonString() string { @@ -11388,9 +14679,15 @@ func (r *DisableRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisableVpnGatewaySslClientCertRequestParams struct { + // SSL-VPN-CLIENT 实例ID。 + SslVpnClientId *string `json:"SslVpnClientId,omitempty" name:"SslVpnClientId"` +} + type DisableVpnGatewaySslClientCertRequest struct { *tchttp.BaseRequest - + // SSL-VPN-CLIENT 实例ID。 SslVpnClientId *string `json:"SslVpnClientId,omitempty" name:"SslVpnClientId"` } @@ -11414,16 +14711,18 @@ func (r *DisableVpnGatewaySslClientCertRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DisableVpnGatewaySslClientCertResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DisableVpnGatewaySslClientCertResponseParams struct { + // 异步任务实例ID。 + TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` - // 异步任务实例ID。 - TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DisableVpnGatewaySslClientCertResponse struct { + *tchttp.BaseResponse + Response *DisableVpnGatewaySslClientCertResponseParams `json:"Response"` } func (r *DisableVpnGatewaySslClientCertResponse) ToJsonString() string { @@ -11437,9 +14736,18 @@ func (r *DisableVpnGatewaySslClientCertResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateAddressRequestParams struct { + // 标识 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"` +} + type DisassociateAddressRequest struct { *tchttp.BaseRequest - + // 标识 EIP 的唯一 ID。EIP 唯一 ID 形如:`eip-11112222`。 AddressId *string `json:"AddressId,omitempty" name:"AddressId"` @@ -11467,16 +14775,18 @@ func (r *DisassociateAddressRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DisassociateAddressResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DisassociateAddressResponseParams struct { + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` - // 异步任务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"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DisassociateAddressResponse struct { + *tchttp.BaseResponse + Response *DisassociateAddressResponseParams `json:"Response"` } func (r *DisassociateAddressResponse) ToJsonString() string { @@ -11490,9 +14800,15 @@ func (r *DisassociateAddressResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateDhcpIpWithAddressIpRequestParams struct { + // `DhcpIp`唯一`ID`,形如:`dhcpip-9o233uri`。必须是已绑定`EIP`的`DhcpIp`。 + DhcpIpId *string `json:"DhcpIpId,omitempty" name:"DhcpIpId"` +} + type DisassociateDhcpIpWithAddressIpRequest struct { *tchttp.BaseRequest - + // `DhcpIp`唯一`ID`,形如:`dhcpip-9o233uri`。必须是已绑定`EIP`的`DhcpIp`。 DhcpIpId *string `json:"DhcpIpId,omitempty" name:"DhcpIpId"` } @@ -11516,13 +14832,15 @@ func (r *DisassociateDhcpIpWithAddressIpRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateDhcpIpWithAddressIpResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DisassociateDhcpIpWithAddressIpResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DisassociateDhcpIpWithAddressIpResponseParams `json:"Response"` } func (r *DisassociateDhcpIpWithAddressIpResponse) ToJsonString() string { @@ -11536,9 +14854,21 @@ func (r *DisassociateDhcpIpWithAddressIpResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateDirectConnectGatewayNatGatewayRequestParams struct { + // 专线网关ID。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // NAT网关ID。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // VPC实例ID。可通过DescribeVpcs接口返回值中的VpcId获取。 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` +} + type DisassociateDirectConnectGatewayNatGatewayRequest struct { *tchttp.BaseRequest - + // 专线网关ID。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -11570,13 +14900,15 @@ func (r *DisassociateDirectConnectGatewayNatGatewayRequest) FromJsonString(s str return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateDirectConnectGatewayNatGatewayResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DisassociateDirectConnectGatewayNatGatewayResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DisassociateDirectConnectGatewayNatGatewayResponseParams `json:"Response"` } func (r *DisassociateDirectConnectGatewayNatGatewayResponse) ToJsonString() string { @@ -11590,9 +14922,18 @@ func (r *DisassociateDirectConnectGatewayNatGatewayResponse) FromJsonString(s st return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateNatGatewayAddressRequestParams struct { + // NAT网关的ID,形如:`nat-df45454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // 待解绑NAT网关的弹性IP数组。 + PublicIpAddresses []*string `json:"PublicIpAddresses,omitempty" name:"PublicIpAddresses"` +} + type DisassociateNatGatewayAddressRequest struct { *tchttp.BaseRequest - + // NAT网关的ID,形如:`nat-df45454`。 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -11620,13 +14961,15 @@ func (r *DisassociateNatGatewayAddressRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateNatGatewayAddressResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DisassociateNatGatewayAddressResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DisassociateNatGatewayAddressResponseParams `json:"Response"` } func (r *DisassociateNatGatewayAddressResponse) ToJsonString() string { @@ -11640,9 +14983,18 @@ func (r *DisassociateNatGatewayAddressResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateNetworkAclSubnetsRequestParams struct { + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 子网实例ID数组。例如:[subnet-12345678] + SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds"` +} + type DisassociateNetworkAclSubnetsRequest struct { *tchttp.BaseRequest - + // 网络ACL实例ID。例如:acl-12345678。 NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` @@ -11670,13 +15022,15 @@ func (r *DisassociateNetworkAclSubnetsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateNetworkAclSubnetsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DisassociateNetworkAclSubnetsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DisassociateNetworkAclSubnetsResponseParams `json:"Response"` } func (r *DisassociateNetworkAclSubnetsResponse) ToJsonString() string { @@ -11690,9 +15044,18 @@ func (r *DisassociateNetworkAclSubnetsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateNetworkInterfaceSecurityGroupsRequestParams struct { + // 弹性网卡实例ID。形如:eni-pxir56ns。每次请求的实例的上限为100。 + NetworkInterfaceIds []*string `json:"NetworkInterfaceIds,omitempty" name:"NetworkInterfaceIds"` + + // 安全组实例ID,例如:sg-33ocnj9n,可通过DescribeSecurityGroups获取。每次请求的实例的上限为100。 + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` +} + type DisassociateNetworkInterfaceSecurityGroupsRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例ID。形如:eni-pxir56ns。每次请求的实例的上限为100。 NetworkInterfaceIds []*string `json:"NetworkInterfaceIds,omitempty" name:"NetworkInterfaceIds"` @@ -11720,13 +15083,15 @@ func (r *DisassociateNetworkInterfaceSecurityGroupsRequest) FromJsonString(s str return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateNetworkInterfaceSecurityGroupsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DisassociateNetworkInterfaceSecurityGroupsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DisassociateNetworkInterfaceSecurityGroupsResponseParams `json:"Response"` } func (r *DisassociateNetworkInterfaceSecurityGroupsResponse) ToJsonString() string { @@ -11740,9 +15105,18 @@ func (r *DisassociateNetworkInterfaceSecurityGroupsResponse) FromJsonString(s st return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateVpcEndPointSecurityGroupsRequestParams struct { + // 安全组ID数组。 + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` + + // 终端节点ID。 + EndPointId *string `json:"EndPointId,omitempty" name:"EndPointId"` +} + type DisassociateVpcEndPointSecurityGroupsRequest struct { *tchttp.BaseRequest - + // 安全组ID数组。 SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` @@ -11770,13 +15144,15 @@ func (r *DisassociateVpcEndPointSecurityGroupsRequest) FromJsonString(s string) return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DisassociateVpcEndPointSecurityGroupsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DisassociateVpcEndPointSecurityGroupsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DisassociateVpcEndPointSecurityGroupsResponseParams `json:"Response"` } func (r *DisassociateVpcEndPointSecurityGroupsResponse) ToJsonString() string { @@ -11790,9 +15166,24 @@ func (r *DisassociateVpcEndPointSecurityGroupsResponse) FromJsonString(s string) return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DownloadCustomerGatewayConfigurationRequestParams struct { + // 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"` +} + type DownloadCustomerGatewayConfigurationRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID。 VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -11828,16 +15219,18 @@ func (r *DownloadCustomerGatewayConfigurationRequest) FromJsonString(s string) e return json.Unmarshal([]byte(s), &r) } -type DownloadCustomerGatewayConfigurationResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DownloadCustomerGatewayConfigurationResponseParams struct { + // XML格式配置信息。 + CustomerGatewayConfiguration *string `json:"CustomerGatewayConfiguration,omitempty" name:"CustomerGatewayConfiguration"` - // XML格式配置信息。 - CustomerGatewayConfiguration *string `json:"CustomerGatewayConfiguration,omitempty" name:"CustomerGatewayConfiguration"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DownloadCustomerGatewayConfigurationResponse struct { + *tchttp.BaseResponse + Response *DownloadCustomerGatewayConfigurationResponseParams `json:"Response"` } func (r *DownloadCustomerGatewayConfigurationResponse) ToJsonString() string { @@ -11851,11 +15244,29 @@ func (r *DownloadCustomerGatewayConfigurationResponse) FromJsonString(s string) return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DownloadVpnGatewaySslClientCertRequestParams struct { + // SSL-VPN-CLIENT 实例ID。 + SslVpnClientId *string `json:"SslVpnClientId,omitempty" name:"SslVpnClientId"` + + // SAML-TOKEN + SamlToken *string `json:"SamlToken,omitempty" name:"SamlToken"` + + // VPN门户网站使用。默认Flase + IsVpnPortal *bool `json:"IsVpnPortal,omitempty" name:"IsVpnPortal"` +} + type DownloadVpnGatewaySslClientCertRequest struct { *tchttp.BaseRequest - + // SSL-VPN-CLIENT 实例ID。 SslVpnClientId *string `json:"SslVpnClientId,omitempty" name:"SslVpnClientId"` + + // SAML-TOKEN + SamlToken *string `json:"SamlToken,omitempty" name:"SamlToken"` + + // VPN门户网站使用。默认Flase + IsVpnPortal *bool `json:"IsVpnPortal,omitempty" name:"IsVpnPortal"` } func (r *DownloadVpnGatewaySslClientCertRequest) ToJsonString() string { @@ -11871,22 +15282,32 @@ func (r *DownloadVpnGatewaySslClientCertRequest) FromJsonString(s string) error return err } delete(f, "SslVpnClientId") + delete(f, "SamlToken") + delete(f, "IsVpnPortal") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DownloadVpnGatewaySslClientCertRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DownloadVpnGatewaySslClientCertResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DownloadVpnGatewaySslClientCertResponseParams struct { + // 无 + SslClientConfigsSet *string `json:"SslClientConfigsSet,omitempty" name:"SslClientConfigsSet"` + + // SSL-VPN client配置 + SslClientConfig []*SslClientConfig `json:"SslClientConfig,omitempty" name:"SslClientConfig"` - // SSL-VPN-CLIENT 证书配置 - SslClientConfigsSet *string `json:"SslClientConfigsSet,omitempty" name:"SslClientConfigsSet"` + // 是否鉴权成功 只有传入SamlToken 才生效 + Authenticated *uint64 `json:"Authenticated,omitempty" name:"Authenticated"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DownloadVpnGatewaySslClientCertResponse struct { + *tchttp.BaseResponse + Response *DownloadVpnGatewaySslClientCertResponseParams `json:"Response"` } func (r *DownloadVpnGatewaySslClientCertResponse) ToJsonString() string { @@ -11900,9 +15321,18 @@ func (r *DownloadVpnGatewaySslClientCertResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type EnableCcnRoutesRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // CCN路由策略唯一ID。形如:ccnr-f49l6u0z。 + RouteIds []*string `json:"RouteIds,omitempty" name:"RouteIds"` +} + type EnableCcnRoutesRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -11930,13 +15360,15 @@ func (r *EnableCcnRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type EnableCcnRoutesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type EnableCcnRoutesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *EnableCcnRoutesResponseParams `json:"Response"` } func (r *EnableCcnRoutesResponse) ToJsonString() string { @@ -11950,9 +15382,72 @@ func (r *EnableCcnRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type EnableGatewayFlowMonitorRequest struct { +// Predefined struct for user +type EnableFlowLogsRequestParams struct { + // 流日志Id。 + FlowLogIds []*string `json:"FlowLogIds,omitempty" name:"FlowLogIds"` +} + +type EnableFlowLogsRequest struct { *tchttp.BaseRequest + + // 流日志Id。 + FlowLogIds []*string `json:"FlowLogIds,omitempty" name:"FlowLogIds"` +} + +func (r *EnableFlowLogsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *EnableFlowLogsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "FlowLogIds") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "EnableFlowLogsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type EnableFlowLogsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type EnableFlowLogsResponse struct { + *tchttp.BaseResponse + Response *EnableFlowLogsResponseParams `json:"Response"` +} + +func (r *EnableFlowLogsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *EnableFlowLogsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} +// Predefined struct for user +type EnableGatewayFlowMonitorRequestParams struct { + // 网关实例ID,目前我们支持的网关实例有, + // 专线网关实例ID,形如,`dcg-ltjahce6`; + // Nat网关实例ID,形如,`nat-ltjahce6`; + // VPN网关实例ID,形如,`vpn-ltjahce6`。 + GatewayId *string `json:"GatewayId,omitempty" name:"GatewayId"` +} + +type EnableGatewayFlowMonitorRequest struct { + *tchttp.BaseRequest + // 网关实例ID,目前我们支持的网关实例有, // 专线网关实例ID,形如,`dcg-ltjahce6`; // Nat网关实例ID,形如,`nat-ltjahce6`; @@ -11979,13 +15474,15 @@ func (r *EnableGatewayFlowMonitorRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type EnableGatewayFlowMonitorResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type EnableGatewayFlowMonitorResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *EnableGatewayFlowMonitorResponseParams `json:"Response"` } func (r *EnableGatewayFlowMonitorResponse) ToJsonString() string { @@ -11999,9 +15496,21 @@ func (r *EnableGatewayFlowMonitorResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type EnableRoutesRequestParams struct { + // 路由表唯一ID。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由策略ID。不能和RouteItemIds同时使用,但至少输入一个。该参数取值可通过查询路由列表([DescribeRouteTables](https://cloud.tencent.com/document/product/215/15763))获取。 + RouteIds []*uint64 `json:"RouteIds,omitempty" name:"RouteIds"` + + // 路由策略唯一ID。不能和RouteIds同时使用,但至少输入一个。该参数取值可通过查询路由列表([DescribeRouteTables](https://cloud.tencent.com/document/product/215/15763))获取。 + RouteItemIds []*string `json:"RouteItemIds,omitempty" name:"RouteItemIds"` +} + type EnableRoutesRequest struct { *tchttp.BaseRequest - + // 路由表唯一ID。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` @@ -12033,13 +15542,15 @@ func (r *EnableRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type EnableRoutesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type EnableRoutesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *EnableRoutesResponseParams `json:"Response"` } func (r *EnableRoutesResponse) ToJsonString() string { @@ -12053,9 +15564,21 @@ func (r *EnableRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type EnableVpcEndPointConnectRequestParams struct { + // 终端节点服务ID。 + EndPointServiceId *string `json:"EndPointServiceId,omitempty" name:"EndPointServiceId"` + + // 终端节点ID。 + EndPointId []*string `json:"EndPointId,omitempty" name:"EndPointId"` + + // 是否接受终端节点连接请求。 + AcceptFlag *bool `json:"AcceptFlag,omitempty" name:"AcceptFlag"` +} + type EnableVpcEndPointConnectRequest struct { *tchttp.BaseRequest - + // 终端节点服务ID。 EndPointServiceId *string `json:"EndPointServiceId,omitempty" name:"EndPointServiceId"` @@ -12087,13 +15610,15 @@ func (r *EnableVpcEndPointConnectRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type EnableVpcEndPointConnectResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type EnableVpcEndPointConnectResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *EnableVpcEndPointConnectResponseParams `json:"Response"` } func (r *EnableVpcEndPointConnectResponse) ToJsonString() string { @@ -12107,9 +15632,15 @@ func (r *EnableVpcEndPointConnectResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type EnableVpnGatewaySslClientCertRequestParams struct { + // SSL-VPN-CLIENT 实例ID。 + SslVpnClientId *string `json:"SslVpnClientId,omitempty" name:"SslVpnClientId"` +} + type EnableVpnGatewaySslClientCertRequest struct { *tchttp.BaseRequest - + // SSL-VPN-CLIENT 实例ID。 SslVpnClientId *string `json:"SslVpnClientId,omitempty" name:"SslVpnClientId"` } @@ -12133,16 +15664,18 @@ func (r *EnableVpnGatewaySslClientCertRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type EnableVpnGatewaySslClientCertResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type EnableVpnGatewaySslClientCertResponseParams struct { + // 异步任务实例ID。 + TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` - // 异步任务实例ID。 - TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type EnableVpnGatewaySslClientCertResponse struct { + *tchttp.BaseResponse + Response *EnableVpnGatewaySslClientCertResponseParams `json:"Response"` } func (r *EnableVpnGatewaySslClientCertResponse) ToJsonString() string { @@ -12157,7 +15690,6 @@ func (r *EnableVpnGatewaySslClientCertResponse) FromJsonString(s string) error { } type EndPoint struct { - // 终端节点ID。 EndPointId *string `json:"EndPointId,omitempty" name:"EndPointId"` @@ -12200,7 +15732,6 @@ type EndPoint struct { } type EndPointService struct { - // 终端节点服务ID EndPointServiceId *string `json:"EndPointServiceId,omitempty" name:"EndPointServiceId"` @@ -12235,7 +15766,6 @@ type EndPointService struct { } type Filter struct { - // 属性名称, 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。 Name *string `json:"Name,omitempty" name:"Name"` @@ -12244,7 +15774,6 @@ type Filter struct { } type FilterObject struct { - // 属性名称, 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。 Name *string `json:"Name,omitempty" name:"Name"` @@ -12253,7 +15782,6 @@ type FilterObject struct { } type FlowLog struct { - // 私用网络ID或者统一ID,建议使用统一ID。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -12297,10 +15825,13 @@ type FlowLog struct { // 消费端信息,当消费端类型为ckafka时返回 // 注意:此字段可能返回 null,表示取不到有效值。 FlowLogStorage *FlowLogStorage `json:"FlowLogStorage,omitempty" name:"FlowLogStorage"` + + // 流日志存储ID对应的地域信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + CloudLogRegion *string `json:"CloudLogRegion,omitempty" name:"CloudLogRegion"` } type FlowLogStorage struct { - // 存储实例Id,当流日志存储类型为ckafka时,必填。 StorageId *string `json:"StorageId,omitempty" name:"StorageId"` @@ -12310,7 +15841,6 @@ type FlowLogStorage struct { } type GatewayFlowMonitorDetail struct { - // 来源`IP`。 PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" name:"PrivateIpAddress"` @@ -12328,7 +15858,6 @@ type GatewayFlowMonitorDetail struct { } type GatewayQos struct { - // VPC实例ID。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -12342,9 +15871,32 @@ type GatewayQos struct { CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` } +// Predefined struct for user +type GetCcnRegionBandwidthLimitsRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 过滤条件。 + //
  • sregion - String - (过滤条件)源地域,形如:ap-guangzhou。
  • + //
  • dregion - String - (过滤条件)目的地域,形如:ap-shanghai-bm
  • + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 排序条件,目前支持带宽(BandwidthLimit)和过期时间(ExpireTime) + SortedBy *string `json:"SortedBy,omitempty" name:"SortedBy"` + + // 偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 排序方式,'ASC':升序,'DESC':降序。 + OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` +} + type GetCcnRegionBandwidthLimitsRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -12390,21 +15942,23 @@ func (r *GetCcnRegionBandwidthLimitsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type GetCcnRegionBandwidthLimitsResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 云联网(CCN)各地域出带宽带宽详情。 +// Predefined struct for user +type GetCcnRegionBandwidthLimitsResponseParams struct { + // 云联网(CCN)各地域出带宽带宽详情。 // 注意:此字段可能返回 null,表示取不到有效值。 - CcnBandwidthSet []*CcnBandwidthInfo `json:"CcnBandwidthSet,omitempty" name:"CcnBandwidthSet"` + CcnBandwidthSet []*CcnBandwidthInfo `json:"CcnBandwidthSet,omitempty" name:"CcnBandwidthSet"` - // 符合条件的对象数。 + // 符合条件的对象数。 // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type GetCcnRegionBandwidthLimitsResponse struct { + *tchttp.BaseResponse + Response *GetCcnRegionBandwidthLimitsResponseParams `json:"Response"` } func (r *GetCcnRegionBandwidthLimitsResponse) ToJsonString() string { @@ -12419,7 +15973,6 @@ func (r *GetCcnRegionBandwidthLimitsResponse) FromJsonString(s string) error { } type HaVip struct { - // `HAVIP`的`ID`,是`HAVIP`的唯一标识。 HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` @@ -12456,9 +16009,18 @@ type HaVip struct { Business *string `json:"Business,omitempty" name:"Business"` } +// Predefined struct for user +type HaVipAssociateAddressIpRequestParams struct { + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。必须是没有绑定`EIP`的`HAVIP` + HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` + + // 弹性公网`IP`。必须是没有绑定`HAVIP`的`EIP` + AddressIp *string `json:"AddressIp,omitempty" name:"AddressIp"` +} + type HaVipAssociateAddressIpRequest struct { *tchttp.BaseRequest - + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。必须是没有绑定`EIP`的`HAVIP` HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` @@ -12486,13 +16048,15 @@ func (r *HaVipAssociateAddressIpRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type HaVipAssociateAddressIpResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type HaVipAssociateAddressIpResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *HaVipAssociateAddressIpResponseParams `json:"Response"` } func (r *HaVipAssociateAddressIpResponse) ToJsonString() string { @@ -12506,9 +16070,15 @@ func (r *HaVipAssociateAddressIpResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type HaVipDisassociateAddressIpRequestParams struct { + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。必须是已绑定`EIP`的`HAVIP`。 + HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` +} + type HaVipDisassociateAddressIpRequest struct { *tchttp.BaseRequest - + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。必须是已绑定`EIP`的`HAVIP`。 HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` } @@ -12532,13 +16102,15 @@ func (r *HaVipDisassociateAddressIpRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type HaVipDisassociateAddressIpResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type HaVipDisassociateAddressIpResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *HaVipDisassociateAddressIpResponseParams `json:"Response"` } func (r *HaVipDisassociateAddressIpResponse) ToJsonString() string { @@ -12553,7 +16125,6 @@ func (r *HaVipDisassociateAddressIpResponse) FromJsonString(s string) error { } type IKEOptionsSpecification struct { - // 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBS-192', 'AES-CBC-256', 'DES-CBC','SM4', 默认为3DES-CBC PropoEncryAlgorithm *string `json:"PropoEncryAlgorithm,omitempty" name:"PropoEncryAlgorithm"` @@ -12592,7 +16163,6 @@ type IKEOptionsSpecification struct { } type IPSECOptionsSpecification struct { - // 加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBC-192', 'AES-CBC-256', 'DES-CBC', 'SM4', 'NULL', 默认为AES-CBC-128 EncryptAlgorithm *string `json:"EncryptAlgorithm,omitempty" name:"EncryptAlgorithm"` @@ -12609,8 +16179,14 @@ type IPSECOptionsSpecification struct { IPSECSaLifetimeTraffic *uint64 `json:"IPSECSaLifetimeTraffic,omitempty" name:"IPSECSaLifetimeTraffic"` } +// Predefined struct for user +type InquirePriceCreateDirectConnectGatewayRequestParams struct { + +} + type InquirePriceCreateDirectConnectGatewayRequest struct { *tchttp.BaseRequest + } func (r *InquirePriceCreateDirectConnectGatewayRequest) ToJsonString() string { @@ -12625,27 +16201,30 @@ func (r *InquirePriceCreateDirectConnectGatewayRequest) FromJsonString(s string) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InquirePriceCreateDirectConnectGatewayRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type InquirePriceCreateDirectConnectGatewayResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 专线网关标准接入费用 +// Predefined struct for user +type InquirePriceCreateDirectConnectGatewayResponseParams struct { + // 专线网关标准接入费用 // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCost *int64 `json:"TotalCost,omitempty" name:"TotalCost"` + TotalCost *int64 `json:"TotalCost,omitempty" name:"TotalCost"` - // 专线网关真实接入费用 + // 专线网关真实接入费用 // 注意:此字段可能返回 null,表示取不到有效值。 - RealTotalCost *int64 `json:"RealTotalCost,omitempty" name:"RealTotalCost"` + RealTotalCost *int64 `json:"RealTotalCost,omitempty" name:"RealTotalCost"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type InquirePriceCreateDirectConnectGatewayResponse struct { + *tchttp.BaseResponse + Response *InquirePriceCreateDirectConnectGatewayResponseParams `json:"Response"` } func (r *InquirePriceCreateDirectConnectGatewayResponse) ToJsonString() string { @@ -12659,9 +16238,27 @@ func (r *InquirePriceCreateDirectConnectGatewayResponse) FromJsonString(s string return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type InquiryPriceCreateVpnGatewayRequestParams struct { + // 公网带宽设置。可选带宽规格: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"` + + // SSL VPN连接数设置,可选规格:5, 10, 20, 50, 100;单位:个。 + MaxConnection *uint64 `json:"MaxConnection,omitempty" name:"MaxConnection"` + + // 查询的VPN类型,支持IPSEC和SSL两种类型,为SSL类型时,MaxConnection参数必传。 + Type *string `json:"Type,omitempty" name:"Type"` +} + type InquiryPriceCreateVpnGatewayRequest struct { *tchttp.BaseRequest - + // 公网带宽设置。可选带宽规格:5, 10, 20, 50, 100;单位:Mbps。 InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` @@ -12701,16 +16298,18 @@ func (r *InquiryPriceCreateVpnGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type InquiryPriceCreateVpnGatewayResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type InquiryPriceCreateVpnGatewayResponseParams struct { + // 商品价格。 + Price *Price `json:"Price,omitempty" name:"Price"` - // 商品价格。 - Price *Price `json:"Price,omitempty" name:"Price"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type InquiryPriceCreateVpnGatewayResponse struct { + *tchttp.BaseResponse + Response *InquiryPriceCreateVpnGatewayResponseParams `json:"Response"` } func (r *InquiryPriceCreateVpnGatewayResponse) ToJsonString() string { @@ -12724,9 +16323,18 @@ func (r *InquiryPriceCreateVpnGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type InquiryPriceRenewVpnGatewayRequestParams struct { + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。 + InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` +} + type InquiryPriceRenewVpnGatewayRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID。 VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -12754,16 +16362,18 @@ func (r *InquiryPriceRenewVpnGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type InquiryPriceRenewVpnGatewayResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type InquiryPriceRenewVpnGatewayResponseParams struct { + // 商品价格。 + Price *Price `json:"Price,omitempty" name:"Price"` - // 商品价格。 - Price *Price `json:"Price,omitempty" name:"Price"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type InquiryPriceRenewVpnGatewayResponse struct { + *tchttp.BaseResponse + Response *InquiryPriceRenewVpnGatewayResponseParams `json:"Response"` } func (r *InquiryPriceRenewVpnGatewayResponse) ToJsonString() string { @@ -12777,9 +16387,18 @@ func (r *InquiryPriceRenewVpnGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type InquiryPriceResetVpnGatewayInternetMaxBandwidthRequestParams struct { + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 公网带宽设置。可选带宽规格:5, 10, 20, 50, 100;单位:Mbps。 + InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` +} + type InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID。 VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -12807,16 +16426,18 @@ func (r *InquiryPriceResetVpnGatewayInternetMaxBandwidthRequest) FromJsonString( return json.Unmarshal([]byte(s), &r) } -type InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type InquiryPriceResetVpnGatewayInternetMaxBandwidthResponseParams struct { + // 商品价格。 + Price *Price `json:"Price,omitempty" name:"Price"` - // 商品价格。 - Price *Price `json:"Price,omitempty" name:"Price"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse struct { + *tchttp.BaseResponse + Response *InquiryPriceResetVpnGatewayInternetMaxBandwidthResponseParams `json:"Response"` } func (r *InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse) ToJsonString() string { @@ -12831,7 +16452,6 @@ func (r *InquiryPriceResetVpnGatewayInternetMaxBandwidthResponse) FromJsonString } type InstanceChargePrepaid struct { - // 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36。 Period *uint64 `json:"Period,omitempty" name:"Period"` @@ -12840,7 +16460,6 @@ type InstanceChargePrepaid struct { } type InstanceStatistic struct { - // 实例的类型 InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` @@ -12849,7 +16468,6 @@ type InstanceStatistic struct { } type Ip6Rule struct { - // IPV6转换规则唯一ID,形如rule6-xxxxxxxx Ip6RuleId *string `json:"Ip6RuleId,omitempty" name:"Ip6RuleId"` @@ -12879,7 +16497,6 @@ type Ip6Rule struct { } type Ip6RuleInfo struct { - // IPV6端口号,可在0~65535范围取值 Vport6 *int64 `json:"Vport6,omitempty" name:"Vport6"` @@ -12894,7 +16511,6 @@ type Ip6RuleInfo struct { } type Ip6Translator struct { - // IPV6转换实例唯一ID,形如ip6-xxxxxxxx Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` @@ -12921,7 +16537,6 @@ type Ip6Translator struct { } type IpField struct { - // 国家字段信息 Country *bool `json:"Country,omitempty" name:"Country"` @@ -12948,7 +16563,6 @@ type IpField struct { } type IpGeolocationInfo struct { - // 国家信息 // 注意:此字段可能返回 null,表示取不到有效值。 Country *string `json:"Country,omitempty" name:"Country"` @@ -12987,7 +16601,6 @@ type IpGeolocationInfo struct { } type Ipv6Address struct { - // `IPv6`地址,形如:`3402:4e00:20:100:0:8cd9:2a67:71f3` Address *string `json:"Address,omitempty" name:"Address"` @@ -13012,7 +16625,6 @@ type Ipv6Address struct { } type Ipv6SubnetCidrBlock struct { - // 子网实例`ID`。形如:`subnet-pxir56ns`。 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` @@ -13021,7 +16633,6 @@ type Ipv6SubnetCidrBlock struct { } type ItemPrice struct { - // 按量计费后付费单价,单位:元。 UnitPrice *float64 `json:"UnitPrice,omitempty" name:"UnitPrice"` @@ -13036,7 +16647,6 @@ type ItemPrice struct { } type LocalGateway struct { - // CDC实例ID CdcId *string `json:"CdcId,omitempty" name:"CdcId"` @@ -13056,8 +16666,14 @@ type LocalGateway struct { CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` } +// Predefined struct for user +type LockCcnBandwidthsRequestParams struct { + +} + type LockCcnBandwidthsRequest struct { *tchttp.BaseRequest + } func (r *LockCcnBandwidthsRequest) ToJsonString() string { @@ -13072,19 +16688,22 @@ func (r *LockCcnBandwidthsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "LockCcnBandwidthsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type LockCcnBandwidthsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type LockCcnBandwidthsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *LockCcnBandwidthsResponseParams `json:"Response"` } func (r *LockCcnBandwidthsResponse) ToJsonString() string { @@ -13098,8 +16717,14 @@ func (r *LockCcnBandwidthsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type LockCcnsRequestParams struct { + +} + type LockCcnsRequest struct { *tchttp.BaseRequest + } func (r *LockCcnsRequest) ToJsonString() string { @@ -13114,19 +16739,22 @@ func (r *LockCcnsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "LockCcnsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type LockCcnsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type LockCcnsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *LockCcnsResponseParams `json:"Response"` } func (r *LockCcnsResponse) ToJsonString() string { @@ -13141,7 +16769,6 @@ func (r *LockCcnsResponse) FromJsonString(s string) error { } type MemberInfo struct { - // 模板对象成员 Member *string `json:"Member,omitempty" name:"Member"` @@ -13149,9 +16776,24 @@ type MemberInfo struct { Description *string `json:"Description,omitempty" name:"Description"` } +// Predefined struct for user +type MigrateNetworkInterfaceRequestParams struct { + // 弹性网卡实例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"` + + // 网卡绑定类型:0 标准型 1 扩展型。 + AttachType *uint64 `json:"AttachType,omitempty" name:"AttachType"` +} + type MigrateNetworkInterfaceRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例ID,例如:eni-m6dyj72l。 NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` @@ -13187,13 +16829,15 @@ func (r *MigrateNetworkInterfaceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type MigrateNetworkInterfaceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type MigrateNetworkInterfaceResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *MigrateNetworkInterfaceResponseParams `json:"Response"` } func (r *MigrateNetworkInterfaceResponse) ToJsonString() string { @@ -13207,9 +16851,21 @@ func (r *MigrateNetworkInterfaceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type MigratePrivateIpAddressRequestParams struct { + // 当内网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"` +} + type MigratePrivateIpAddressRequest struct { *tchttp.BaseRequest - + // 当内网IP绑定的弹性网卡实例ID,例如:eni-m6dyj72l。 SourceNetworkInterfaceId *string `json:"SourceNetworkInterfaceId,omitempty" name:"SourceNetworkInterfaceId"` @@ -13241,13 +16897,15 @@ func (r *MigratePrivateIpAddressRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type MigratePrivateIpAddressResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type MigratePrivateIpAddressResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *MigratePrivateIpAddressResponseParams `json:"Response"` } func (r *MigratePrivateIpAddressResponse) ToJsonString() string { @@ -13261,9 +16919,21 @@ func (r *MigratePrivateIpAddressResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyAddressAttributeRequestParams struct { + // 标识 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"` +} + type ModifyAddressAttributeRequest struct { *tchttp.BaseRequest - + // 标识 EIP 的唯一 ID。EIP 唯一 ID 形如:`eip-11112222`。 AddressId *string `json:"AddressId,omitempty" name:"AddressId"` @@ -13295,13 +16965,15 @@ func (r *ModifyAddressAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyAddressAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyAddressAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyAddressAttributeResponseParams `json:"Response"` } func (r *ModifyAddressAttributeResponse) ToJsonString() string { @@ -13315,9 +16987,24 @@ func (r *ModifyAddressAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyAddressInternetChargeTypeRequestParams struct { + // 弹性公网IP的唯一ID,形如eip-xxx + AddressId *string `json:"AddressId,omitempty" name:"AddressId"` + + // 弹性公网IP调整目标计费模式,只支持"BANDWIDTH_PREPAID_BY_MONTH"和"TRAFFIC_POSTPAID_BY_HOUR" + InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"` + + // 弹性公网IP调整目标带宽值 + InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // 包月带宽网络计费模式参数。弹性公网IP的调整目标计费模式是"BANDWIDTH_PREPAID_BY_MONTH"时,必传该参数。 + AddressChargePrepaid *AddressChargePrepaid `json:"AddressChargePrepaid,omitempty" name:"AddressChargePrepaid"` +} + type ModifyAddressInternetChargeTypeRequest struct { *tchttp.BaseRequest - + // 弹性公网IP的唯一ID,形如eip-xxx AddressId *string `json:"AddressId,omitempty" name:"AddressId"` @@ -13353,13 +17040,15 @@ func (r *ModifyAddressInternetChargeTypeRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyAddressInternetChargeTypeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyAddressInternetChargeTypeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyAddressInternetChargeTypeResponseParams `json:"Response"` } func (r *ModifyAddressInternetChargeTypeResponse) ToJsonString() string { @@ -13373,9 +17062,24 @@ func (r *ModifyAddressInternetChargeTypeResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyAddressTemplateAttributeRequestParams struct { + // 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"` + + // 支持添加备注的地址信息,支持 IP、CIDR、IP 范围。 + AddressesExtra []*AddressInfo `json:"AddressesExtra,omitempty" name:"AddressesExtra"` +} + type ModifyAddressTemplateAttributeRequest struct { *tchttp.BaseRequest - + // IP地址模板实例ID,例如:ipm-mdunqeb6。 AddressTemplateId *string `json:"AddressTemplateId,omitempty" name:"AddressTemplateId"` @@ -13411,13 +17115,15 @@ func (r *ModifyAddressTemplateAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyAddressTemplateAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyAddressTemplateAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyAddressTemplateAttributeResponseParams `json:"Response"` } func (r *ModifyAddressTemplateAttributeResponse) ToJsonString() string { @@ -13431,9 +17137,21 @@ func (r *ModifyAddressTemplateAttributeResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyAddressTemplateGroupAttributeRequestParams struct { + // 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"` +} + type ModifyAddressTemplateGroupAttributeRequest struct { *tchttp.BaseRequest - + // IP地址模板集合实例ID,例如:ipmg-2uw6ujo6。 AddressTemplateGroupId *string `json:"AddressTemplateGroupId,omitempty" name:"AddressTemplateGroupId"` @@ -13465,13 +17183,15 @@ func (r *ModifyAddressTemplateGroupAttributeRequest) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyAddressTemplateGroupAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyAddressTemplateGroupAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyAddressTemplateGroupAttributeResponseParams `json:"Response"` } func (r *ModifyAddressTemplateGroupAttributeResponse) ToJsonString() string { @@ -13485,9 +17205,24 @@ func (r *ModifyAddressTemplateGroupAttributeResponse) FromJsonString(s string) e return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyAddressesBandwidthRequestParams struct { + // EIP唯一标识ID列表,形如'eip-xxxx' + AddressIds []*string `json:"AddressIds,omitempty" name:"AddressIds"` + + // 调整带宽目标值 + InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // 包月带宽起始时间(已废弃,输入无效) + StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + + // 包月带宽结束时间(已废弃,输入无效) + EndTime *string `json:"EndTime,omitempty" name:"EndTime"` +} + type ModifyAddressesBandwidthRequest struct { *tchttp.BaseRequest - + // EIP唯一标识ID列表,形如'eip-xxxx' AddressIds []*string `json:"AddressIds,omitempty" name:"AddressIds"` @@ -13523,16 +17258,18 @@ func (r *ModifyAddressesBandwidthRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ModifyAddressesBandwidthResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type ModifyAddressesBandwidthResponseParams struct { + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` - // 异步任务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"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ModifyAddressesBandwidthResponse struct { + *tchttp.BaseResponse + Response *ModifyAddressesBandwidthResponseParams `json:"Response"` } func (r *ModifyAddressesBandwidthResponse) ToJsonString() string { @@ -13546,9 +17283,21 @@ func (r *ModifyAddressesBandwidthResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyAssistantCidrRequestParams struct { + // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 待添加的辅助CIDR。CIDR数组,格式如["10.0.0.0/16", "172.16.0.0/16"],入参NewCidrBlocks和OldCidrBlocks至少需要其一。 + NewCidrBlocks []*string `json:"NewCidrBlocks,omitempty" name:"NewCidrBlocks"` + + // 待删除的辅助CIDR。CIDR数组,格式如["10.0.0.0/16", "172.16.0.0/16"],入参NewCidrBlocks和OldCidrBlocks至少需要其一。 + OldCidrBlocks []*string `json:"OldCidrBlocks,omitempty" name:"OldCidrBlocks"` +} + type ModifyAssistantCidrRequest struct { *tchttp.BaseRequest - + // `VPC`实例`ID`。形如:`vpc-6v2ht8q5` VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -13580,17 +17329,19 @@ func (r *ModifyAssistantCidrRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ModifyAssistantCidrResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 辅助CIDR数组。 +// Predefined struct for user +type ModifyAssistantCidrResponseParams struct { + // 辅助CIDR数组。 // 注意:此字段可能返回 null,表示取不到有效值。 - AssistantCidrSet []*AssistantCidr `json:"AssistantCidrSet,omitempty" name:"AssistantCidrSet"` + AssistantCidrSet []*AssistantCidr `json:"AssistantCidrSet,omitempty" name:"AssistantCidrSet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ModifyAssistantCidrResponse struct { + *tchttp.BaseResponse + Response *ModifyAssistantCidrResponseParams `json:"Response"` } func (r *ModifyAssistantCidrResponse) ToJsonString() string { @@ -13604,9 +17355,24 @@ func (r *ModifyAssistantCidrResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyBandwidthPackageAttributeRequestParams struct { + // 带宽包唯一标识ID + BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` + + // 带宽包名称 + BandwidthPackageName *string `json:"BandwidthPackageName,omitempty" name:"BandwidthPackageName"` + + // 带宽包计费模式 + ChargeType *string `json:"ChargeType,omitempty" name:"ChargeType"` + + // 退款时迁移为后付费带宽包。默认值:否 + MigrateOnRefund *bool `json:"MigrateOnRefund,omitempty" name:"MigrateOnRefund"` +} + type ModifyBandwidthPackageAttributeRequest struct { *tchttp.BaseRequest - + // 带宽包唯一标识ID BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` @@ -13642,13 +17408,15 @@ func (r *ModifyBandwidthPackageAttributeRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyBandwidthPackageAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyBandwidthPackageAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyBandwidthPackageAttributeResponseParams `json:"Response"` } func (r *ModifyBandwidthPackageAttributeResponse) ToJsonString() string { @@ -13662,9 +17430,18 @@ func (r *ModifyBandwidthPackageAttributeResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyCcnAttachedInstancesAttributeRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 关联网络实例列表 + Instances []*CcnInstance `json:"Instances,omitempty" name:"Instances"` +} + type ModifyCcnAttachedInstancesAttributeRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -13692,13 +17469,15 @@ func (r *ModifyCcnAttachedInstancesAttributeRequest) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyCcnAttachedInstancesAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyCcnAttachedInstancesAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyCcnAttachedInstancesAttributeResponseParams `json:"Response"` } func (r *ModifyCcnAttachedInstancesAttributeResponse) ToJsonString() string { @@ -13712,9 +17491,21 @@ func (r *ModifyCcnAttachedInstancesAttributeResponse) FromJsonString(s string) e return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyCcnAttributeRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // CCN名称,最大长度不能超过60个字节,限制:CcnName和CcnDescription必须至少选择一个参数输入,否则报错。 + CcnName *string `json:"CcnName,omitempty" name:"CcnName"` + + // CCN描述信息,最大长度不能超过100个字节,限制:CcnName和CcnDescription必须至少选择一个参数输入,否则报错。 + CcnDescription *string `json:"CcnDescription,omitempty" name:"CcnDescription"` +} + type ModifyCcnAttributeRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -13746,13 +17537,15 @@ func (r *ModifyCcnAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyCcnAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyCcnAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyCcnAttributeResponseParams `json:"Response"` } func (r *ModifyCcnAttributeResponse) ToJsonString() string { @@ -13766,9 +17559,18 @@ func (r *ModifyCcnAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyCcnRegionBandwidthLimitsTypeRequestParams struct { + // 云联网实例ID。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 云联网限速类型,INTER_REGION_LIMIT:地域间限速,OUTER_REGION_LIMIT:地域出口限速。 + BandwidthLimitType *string `json:"BandwidthLimitType,omitempty" name:"BandwidthLimitType"` +} + type ModifyCcnRegionBandwidthLimitsTypeRequest struct { *tchttp.BaseRequest - + // 云联网实例ID。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -13796,13 +17598,15 @@ func (r *ModifyCcnRegionBandwidthLimitsTypeRequest) FromJsonString(s string) err return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyCcnRegionBandwidthLimitsTypeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyCcnRegionBandwidthLimitsTypeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyCcnRegionBandwidthLimitsTypeResponseParams `json:"Response"` } func (r *ModifyCcnRegionBandwidthLimitsTypeResponse) ToJsonString() string { @@ -13816,9 +17620,18 @@ func (r *ModifyCcnRegionBandwidthLimitsTypeResponse) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyCustomerGatewayAttributeRequestParams struct { + // 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。 + CustomerGatewayId *string `json:"CustomerGatewayId,omitempty" name:"CustomerGatewayId"` + + // 对端网关名称,可任意命名,但不得超过60个字符。 + CustomerGatewayName *string `json:"CustomerGatewayName,omitempty" name:"CustomerGatewayName"` +} + type ModifyCustomerGatewayAttributeRequest struct { *tchttp.BaseRequest - + // 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。 CustomerGatewayId *string `json:"CustomerGatewayId,omitempty" name:"CustomerGatewayId"` @@ -13846,13 +17659,15 @@ func (r *ModifyCustomerGatewayAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyCustomerGatewayAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyCustomerGatewayAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyCustomerGatewayAttributeResponseParams `json:"Response"` } func (r *ModifyCustomerGatewayAttributeResponse) ToJsonString() string { @@ -13866,9 +17681,18 @@ func (r *ModifyCustomerGatewayAttributeResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyDhcpIpAttributeRequestParams struct { + // `DhcpIp`唯一`ID`,形如:`dhcpip-9o233uri`。 + DhcpIpId *string `json:"DhcpIpId,omitempty" name:"DhcpIpId"` + + // `DhcpIp`名称,可任意命名,但不得超过60个字符。 + DhcpIpName *string `json:"DhcpIpName,omitempty" name:"DhcpIpName"` +} + type ModifyDhcpIpAttributeRequest struct { *tchttp.BaseRequest - + // `DhcpIp`唯一`ID`,形如:`dhcpip-9o233uri`。 DhcpIpId *string `json:"DhcpIpId,omitempty" name:"DhcpIpId"` @@ -13896,13 +17720,15 @@ func (r *ModifyDhcpIpAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyDhcpIpAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyDhcpIpAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyDhcpIpAttributeResponseParams `json:"Response"` } func (r *ModifyDhcpIpAttributeResponse) ToJsonString() string { @@ -13916,9 +17742,24 @@ func (r *ModifyDhcpIpAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyDirectConnectGatewayAttributeRequestParams struct { + // 专线网关唯一`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"` + + // 云联网路由发布模式,可选值:`standard`(标准模式)、`exquisite`(精细模式)。只有云联网类型专线网关才支持修改`ModeType`。 + ModeType *string `json:"ModeType,omitempty" name:"ModeType"` +} + type ModifyDirectConnectGatewayAttributeRequest struct { *tchttp.BaseRequest - + // 专线网关唯一`ID`,形如:`dcg-9o233uri`。 DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` @@ -13954,13 +17795,15 @@ func (r *ModifyDirectConnectGatewayAttributeRequest) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyDirectConnectGatewayAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyDirectConnectGatewayAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyDirectConnectGatewayAttributeResponseParams `json:"Response"` } func (r *ModifyDirectConnectGatewayAttributeResponse) ToJsonString() string { @@ -13974,9 +17817,24 @@ func (r *ModifyDirectConnectGatewayAttributeResponse) FromJsonString(s string) e return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyFlowLogAttributeRequestParams struct { + // 流日志唯一ID + FlowLogId *string `json:"FlowLogId,omitempty" name:"FlowLogId"` + + // 私用网络ID或者统一ID,建议使用统一ID,修改云联网流日志属性时可不填,其他流日志类型必填。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 流日志实例名字 + FlowLogName *string `json:"FlowLogName,omitempty" name:"FlowLogName"` + + // 流日志实例描述 + FlowLogDescription *string `json:"FlowLogDescription,omitempty" name:"FlowLogDescription"` +} + type ModifyFlowLogAttributeRequest struct { *tchttp.BaseRequest - + // 流日志唯一ID FlowLogId *string `json:"FlowLogId,omitempty" name:"FlowLogId"` @@ -14012,13 +17870,15 @@ func (r *ModifyFlowLogAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyFlowLogAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyFlowLogAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyFlowLogAttributeResponseParams `json:"Response"` } func (r *ModifyFlowLogAttributeResponse) ToJsonString() string { @@ -14032,9 +17892,24 @@ func (r *ModifyFlowLogAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyGatewayFlowQosRequestParams struct { + // 网关实例ID,目前我们支持的网关实例类型有, + // 专线网关实例ID,形如,`dcg-ltjahce6`; + // Nat网关实例ID,形如,`nat-ltjahce6`; + // VPN网关实例ID,形如,`vpn-ltjahce6`。 + GatewayId *string `json:"GatewayId,omitempty" name:"GatewayId"` + + // 流控带宽值。取值大于0,表示限流到指定的Mbps;取值等于0,表示完全限流;取值为-1,不限流。 + Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + + // 限流的云服务器内网IP。 + IpAddresses []*string `json:"IpAddresses,omitempty" name:"IpAddresses"` +} + type ModifyGatewayFlowQosRequest struct { *tchttp.BaseRequest - + // 网关实例ID,目前我们支持的网关实例类型有, // 专线网关实例ID,形如,`dcg-ltjahce6`; // Nat网关实例ID,形如,`nat-ltjahce6`; @@ -14069,13 +17944,15 @@ func (r *ModifyGatewayFlowQosRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyGatewayFlowQosResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyGatewayFlowQosResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyGatewayFlowQosResponseParams `json:"Response"` } func (r *ModifyGatewayFlowQosResponse) ToJsonString() string { @@ -14089,9 +17966,18 @@ func (r *ModifyGatewayFlowQosResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyHaVipAttributeRequestParams struct { + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。 + HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` + + // `HAVIP`名称,可任意命名,但不得超过60个字符。 + HaVipName *string `json:"HaVipName,omitempty" name:"HaVipName"` +} + type ModifyHaVipAttributeRequest struct { *tchttp.BaseRequest - + // `HAVIP`唯一`ID`,形如:`havip-9o233uri`。 HaVipId *string `json:"HaVipId,omitempty" name:"HaVipId"` @@ -14119,13 +18005,15 @@ func (r *ModifyHaVipAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyHaVipAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyHaVipAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyHaVipAttributeResponseParams `json:"Response"` } func (r *ModifyHaVipAttributeResponse) ToJsonString() string { @@ -14139,9 +18027,21 @@ func (r *ModifyHaVipAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyIp6AddressesBandwidthRequestParams struct { + // 修改的目标带宽,单位Mbps + InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` + + // IPV6地址。Ip6Addresses和Ip6AddressId必须且只能传一个 + Ip6Addresses []*string `json:"Ip6Addresses,omitempty" name:"Ip6Addresses"` + + // IPV6地址对应的唯一ID,形如eip-xxxxxxxx。Ip6Addresses和Ip6AddressId必须且只能传一个 + Ip6AddressIds []*string `json:"Ip6AddressIds,omitempty" name:"Ip6AddressIds"` +} + type ModifyIp6AddressesBandwidthRequest struct { *tchttp.BaseRequest - + // 修改的目标带宽,单位Mbps InternetMaxBandwidthOut *int64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` @@ -14173,16 +18073,18 @@ func (r *ModifyIp6AddressesBandwidthRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ModifyIp6AddressesBandwidthResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type ModifyIp6AddressesBandwidthResponseParams struct { + // 任务ID + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` - // 任务ID - TaskId *string `json:"TaskId,omitempty" name:"TaskId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ModifyIp6AddressesBandwidthResponse struct { + *tchttp.BaseResponse + Response *ModifyIp6AddressesBandwidthResponseParams `json:"Response"` } func (r *ModifyIp6AddressesBandwidthResponse) ToJsonString() string { @@ -14196,9 +18098,27 @@ func (r *ModifyIp6AddressesBandwidthResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyIp6RuleRequestParams struct { + // 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"` +} + type ModifyIp6RuleRequest struct { *tchttp.BaseRequest - + // IPV6转换实例唯一ID,形如ip6-xxxxxxxx Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` @@ -14238,13 +18158,15 @@ func (r *ModifyIp6RuleRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyIp6RuleResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyIp6RuleResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyIp6RuleResponseParams `json:"Response"` } func (r *ModifyIp6RuleResponse) ToJsonString() string { @@ -14258,9 +18180,18 @@ func (r *ModifyIp6RuleResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyIp6TranslatorRequestParams struct { + // IPV6转换实例唯一ID,形如ip6-xxxxxxxxx + Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` + + // IPV6转换实例修改名称 + Ip6TranslatorName *string `json:"Ip6TranslatorName,omitempty" name:"Ip6TranslatorName"` +} + type ModifyIp6TranslatorRequest struct { *tchttp.BaseRequest - + // IPV6转换实例唯一ID,形如ip6-xxxxxxxxx Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` @@ -14288,13 +18219,15 @@ func (r *ModifyIp6TranslatorRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyIp6TranslatorResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyIp6TranslatorResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyIp6TranslatorResponseParams `json:"Response"` } func (r *ModifyIp6TranslatorResponse) ToJsonString() string { @@ -14308,9 +18241,18 @@ func (r *ModifyIp6TranslatorResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyIpv6AddressesAttributeRequestParams struct { + // 弹性网卡实例`ID`,形如:`eni-m6dyj72l`。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 指定的内网IPv6`地址信息。 + Ipv6Addresses []*Ipv6Address `json:"Ipv6Addresses,omitempty" name:"Ipv6Addresses"` +} + type ModifyIpv6AddressesAttributeRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例`ID`,形如:`eni-m6dyj72l`。 NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` @@ -14338,13 +18280,15 @@ func (r *ModifyIpv6AddressesAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyIpv6AddressesAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyIpv6AddressesAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyIpv6AddressesAttributeResponseParams `json:"Response"` } func (r *ModifyIpv6AddressesAttributeResponse) ToJsonString() string { @@ -14358,9 +18302,24 @@ func (r *ModifyIpv6AddressesAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyLocalGatewayRequestParams struct { + // 本地网关名称 + LocalGatewayName *string `json:"LocalGatewayName,omitempty" name:"LocalGatewayName"` + + // CDC实例ID + CdcId *string `json:"CdcId,omitempty" name:"CdcId"` + + // 本地网关实例ID + LocalGatewayId *string `json:"LocalGatewayId,omitempty" name:"LocalGatewayId"` + + // VPC实例ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` +} + type ModifyLocalGatewayRequest struct { *tchttp.BaseRequest - + // 本地网关名称 LocalGatewayName *string `json:"LocalGatewayName,omitempty" name:"LocalGatewayName"` @@ -14396,13 +18355,15 @@ func (r *ModifyLocalGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyLocalGatewayResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyLocalGatewayResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyLocalGatewayResponseParams `json:"Response"` } func (r *ModifyLocalGatewayResponse) ToJsonString() string { @@ -14416,9 +18377,27 @@ func (r *ModifyLocalGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNatGatewayAttributeRequestParams struct { + // 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"` + + // 是否修改NAT网关绑定的安全组。 + ModifySecurityGroup *bool `json:"ModifySecurityGroup,omitempty" name:"ModifySecurityGroup"` + + // NAT网关绑定的安全组列表,最终状态,空列表表示删除所有安全组,形如: `['sg-1n232323', 'sg-o4242424']` + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` +} + type ModifyNatGatewayAttributeRequest struct { *tchttp.BaseRequest - + // NAT网关的ID,形如:`nat-df45454`。 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -14458,13 +18437,15 @@ func (r *ModifyNatGatewayAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNatGatewayAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyNatGatewayAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyNatGatewayAttributeResponseParams `json:"Response"` } func (r *ModifyNatGatewayAttributeResponse) ToJsonString() string { @@ -14478,9 +18459,21 @@ func (r *ModifyNatGatewayAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNatGatewayDestinationIpPortTranslationNatRuleRequestParams struct { + // 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"` +} + type ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest struct { *tchttp.BaseRequest - + // NAT网关的ID,形如:`nat-df45454`。 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -14512,13 +18505,15 @@ func (r *ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest) FromJsonStr return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNatGatewayDestinationIpPortTranslationNatRuleResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyNatGatewayDestinationIpPortTranslationNatRuleResponseParams `json:"Response"` } func (r *ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse) ToJsonString() string { @@ -14532,9 +18527,18 @@ func (r *ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse) FromJsonSt return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNatGatewaySourceIpTranslationNatRuleRequestParams struct { + // NAT网关的ID,形如:`nat-df453454`。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // NAT网关的SNAT转换规则。 + SourceIpTranslationNatRule *SourceIpTranslationNatRule `json:"SourceIpTranslationNatRule,omitempty" name:"SourceIpTranslationNatRule"` +} + type ModifyNatGatewaySourceIpTranslationNatRuleRequest struct { *tchttp.BaseRequest - + // NAT网关的ID,形如:`nat-df453454`。 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -14562,13 +18566,15 @@ func (r *ModifyNatGatewaySourceIpTranslationNatRuleRequest) FromJsonString(s str return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNatGatewaySourceIpTranslationNatRuleResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyNatGatewaySourceIpTranslationNatRuleResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyNatGatewaySourceIpTranslationNatRuleResponseParams `json:"Response"` } func (r *ModifyNatGatewaySourceIpTranslationNatRuleResponse) ToJsonString() string { @@ -14582,9 +18588,42 @@ func (r *ModifyNatGatewaySourceIpTranslationNatRuleResponse) FromJsonString(s st return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNetDetectRequestParams struct { + // 网络探测实例`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"` + + // 下一跳类型,目前我们支持的类型有: + // VPN:VPN网关; + // DIRECTCONNECT:专线网关; + // PEERCONNECTION:对等连接; + // NAT:NAT网关; + // NORMAL_CVM:普通云服务器; + // CCN:云联网网关; + 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; + // 下一跳类型为CCN,取值云联网ID,形如:ccn-44csczop; + NextHopDestination *string `json:"NextHopDestination,omitempty" name:"NextHopDestination"` + + // 网络探测描述。 + NetDetectDescription *string `json:"NetDetectDescription,omitempty" name:"NetDetectDescription"` +} + type ModifyNetDetectRequest struct { *tchttp.BaseRequest - + // 网络探测实例`ID`。形如:`netd-12345678` NetDetectId *string `json:"NetDetectId,omitempty" name:"NetDetectId"` @@ -14640,129 +18679,239 @@ func (r *ModifyNetDetectRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNetDetectResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyNetDetectResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyNetDetectResponseParams `json:"Response"` +} + +func (r *ModifyNetDetectResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ModifyNetDetectResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyNetworkAclAttributeRequestParams struct { + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 网络ACL名称,最大长度不能超过60个字节。 + NetworkAclName *string `json:"NetworkAclName,omitempty" name:"NetworkAclName"` +} + +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) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ModifyNetworkAclAttributeRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "NetworkAclId") + delete(f, "NetworkAclName") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyNetworkAclAttributeRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyNetworkAclAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type ModifyNetworkAclAttributeResponse struct { + *tchttp.BaseResponse + Response *ModifyNetworkAclAttributeResponseParams `json:"Response"` } -func (r *ModifyNetDetectResponse) ToJsonString() string { +func (r *ModifyNetworkAclAttributeResponse) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } // FromJsonString It is highly **NOT** recommended to use this function // because it has no param check, nor strict type check -func (r *ModifyNetDetectResponse) FromJsonString(s string) error { +func (r *ModifyNetworkAclAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ModifyNetworkAclAttributeRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type ModifyNetworkAclEntriesRequestParams struct { + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + + // 网络ACL规则集。NetworkAclEntrySet和NetworkAclQuintupleSet只能输入一个。 + NetworkAclEntrySet *NetworkAclEntrySet `json:"NetworkAclEntrySet,omitempty" name:"NetworkAclEntrySet"` + + // 网络ACL五元组规则集。NetworkAclEntrySet和NetworkAclQuintupleSet只能输入一个。 + NetworkAclQuintupleSet *NetworkAclQuintupleEntries `json:"NetworkAclQuintupleSet,omitempty" name:"NetworkAclQuintupleSet"` +} +type ModifyNetworkAclEntriesRequest struct { + *tchttp.BaseRequest + // 网络ACL实例ID。例如:acl-12345678。 NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` - // 网络ACL名称,最大长度不能超过60个字节。 - NetworkAclName *string `json:"NetworkAclName,omitempty" name:"NetworkAclName"` + // 网络ACL规则集。NetworkAclEntrySet和NetworkAclQuintupleSet只能输入一个。 + NetworkAclEntrySet *NetworkAclEntrySet `json:"NetworkAclEntrySet,omitempty" name:"NetworkAclEntrySet"` + + // 网络ACL五元组规则集。NetworkAclEntrySet和NetworkAclQuintupleSet只能输入一个。 + NetworkAclQuintupleSet *NetworkAclQuintupleEntries `json:"NetworkAclQuintupleSet,omitempty" name:"NetworkAclQuintupleSet"` } -func (r *ModifyNetworkAclAttributeRequest) ToJsonString() string { +func (r *ModifyNetworkAclEntriesRequest) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } // FromJsonString It is highly **NOT** recommended to use this function // because it has no param check, nor strict type check -func (r *ModifyNetworkAclAttributeRequest) FromJsonString(s string) error { +func (r *ModifyNetworkAclEntriesRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "NetworkAclId") - delete(f, "NetworkAclName") + delete(f, "NetworkAclEntrySet") + delete(f, "NetworkAclQuintupleSet") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyNetworkAclAttributeRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyNetworkAclEntriesRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type ModifyNetworkAclAttributeResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type ModifyNetworkAclEntriesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ModifyNetworkAclEntriesResponse struct { + *tchttp.BaseResponse + Response *ModifyNetworkAclEntriesResponseParams `json:"Response"` } -func (r *ModifyNetworkAclAttributeResponse) ToJsonString() string { +func (r *ModifyNetworkAclEntriesResponse) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } // FromJsonString It is highly **NOT** recommended to use this function // because it has no param check, nor strict type check -func (r *ModifyNetworkAclAttributeResponse) FromJsonString(s string) error { +func (r *ModifyNetworkAclEntriesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ModifyNetworkAclEntriesRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type ModifyNetworkAclQuintupleEntriesRequestParams struct { + // 网络ACL实例ID。例如:acl-12345678。 + NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` + // 网络五元组ACL规则集。 + NetworkAclQuintupleSet *NetworkAclQuintupleEntries `json:"NetworkAclQuintupleSet,omitempty" name:"NetworkAclQuintupleSet"` +} + +type ModifyNetworkAclQuintupleEntriesRequest struct { + *tchttp.BaseRequest + // 网络ACL实例ID。例如:acl-12345678。 NetworkAclId *string `json:"NetworkAclId,omitempty" name:"NetworkAclId"` - // 网络ACL规则集。 - NetworkAclEntrySet *NetworkAclEntrySet `json:"NetworkAclEntrySet,omitempty" name:"NetworkAclEntrySet"` + // 网络五元组ACL规则集。 + NetworkAclQuintupleSet *NetworkAclQuintupleEntries `json:"NetworkAclQuintupleSet,omitempty" name:"NetworkAclQuintupleSet"` } -func (r *ModifyNetworkAclEntriesRequest) ToJsonString() string { +func (r *ModifyNetworkAclQuintupleEntriesRequest) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } // FromJsonString It is highly **NOT** recommended to use this function // because it has no param check, nor strict type check -func (r *ModifyNetworkAclEntriesRequest) FromJsonString(s string) error { +func (r *ModifyNetworkAclQuintupleEntriesRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "NetworkAclId") - delete(f, "NetworkAclEntrySet") + delete(f, "NetworkAclQuintupleSet") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyNetworkAclEntriesRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyNetworkAclQuintupleEntriesRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type ModifyNetworkAclEntriesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type ModifyNetworkAclQuintupleEntriesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ModifyNetworkAclQuintupleEntriesResponse struct { + *tchttp.BaseResponse + Response *ModifyNetworkAclQuintupleEntriesResponseParams `json:"Response"` } -func (r *ModifyNetworkAclEntriesResponse) ToJsonString() string { +func (r *ModifyNetworkAclQuintupleEntriesResponse) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } // FromJsonString It is highly **NOT** recommended to use this function // because it has no param check, nor strict type check -func (r *ModifyNetworkAclEntriesResponse) FromJsonString(s string) error { +func (r *ModifyNetworkAclQuintupleEntriesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNetworkInterfaceAttributeRequestParams struct { + // 弹性网卡实例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"` + + // 网卡trunking模式设置,Enable-开启,Disable--关闭,默认关闭。 + TrunkingFlag *string `json:"TrunkingFlag,omitempty" name:"TrunkingFlag"` +} + type ModifyNetworkInterfaceAttributeRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例ID,例如:eni-pxir56ns。 NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` @@ -14774,6 +18923,9 @@ type ModifyNetworkInterfaceAttributeRequest struct { // 指定绑定的安全组,例如:['sg-1dd51d']。 SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` + + // 网卡trunking模式设置,Enable-开启,Disable--关闭,默认关闭。 + TrunkingFlag *string `json:"TrunkingFlag,omitempty" name:"TrunkingFlag"` } func (r *ModifyNetworkInterfaceAttributeRequest) ToJsonString() string { @@ -14792,19 +18944,22 @@ func (r *ModifyNetworkInterfaceAttributeRequest) FromJsonString(s string) error delete(f, "NetworkInterfaceName") delete(f, "NetworkInterfaceDescription") delete(f, "SecurityGroupIds") + delete(f, "TrunkingFlag") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyNetworkInterfaceAttributeRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNetworkInterfaceAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyNetworkInterfaceAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyNetworkInterfaceAttributeResponseParams `json:"Response"` } func (r *ModifyNetworkInterfaceAttributeResponse) ToJsonString() string { @@ -14818,9 +18973,18 @@ func (r *ModifyNetworkInterfaceAttributeResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNetworkInterfaceQosRequestParams struct { + // 弹性网卡ID,支持批量修改。 + NetworkInterfaceIds []*string `json:"NetworkInterfaceIds,omitempty" name:"NetworkInterfaceIds"` + + // 服务质量,可选值:PT、AU、AG、DEFAULT,分别代表白金、金、银、默认四个等级。 + QosLevel *string `json:"QosLevel,omitempty" name:"QosLevel"` +} + type ModifyNetworkInterfaceQosRequest struct { *tchttp.BaseRequest - + // 弹性网卡ID,支持批量修改。 NetworkInterfaceIds []*string `json:"NetworkInterfaceIds,omitempty" name:"NetworkInterfaceIds"` @@ -14848,13 +19012,15 @@ func (r *ModifyNetworkInterfaceQosRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNetworkInterfaceQosResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyNetworkInterfaceQosResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyNetworkInterfaceQosResponseParams `json:"Response"` } func (r *ModifyNetworkInterfaceQosResponse) ToJsonString() string { @@ -14868,9 +19034,18 @@ func (r *ModifyNetworkInterfaceQosResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyPrivateIpAddressesAttributeRequestParams struct { + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 指定的内网IP信息。 + PrivateIpAddresses []*PrivateIpAddressSpecification `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"` +} + type ModifyPrivateIpAddressesAttributeRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例ID,例如:eni-m6dyj72l。 NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` @@ -14898,13 +19073,15 @@ func (r *ModifyPrivateIpAddressesAttributeRequest) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyPrivateIpAddressesAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyPrivateIpAddressesAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyPrivateIpAddressesAttributeResponseParams `json:"Response"` } func (r *ModifyPrivateIpAddressesAttributeResponse) ToJsonString() string { @@ -14918,9 +19095,18 @@ func (r *ModifyPrivateIpAddressesAttributeResponse) FromJsonString(s string) err return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyRouteTableAttributeRequestParams struct { + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由表名称。 + RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` +} + type ModifyRouteTableAttributeRequest struct { *tchttp.BaseRequest - + // 路由表实例ID,例如:rtb-azd4dt1c。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` @@ -14948,13 +19134,15 @@ func (r *ModifyRouteTableAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyRouteTableAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyRouteTableAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyRouteTableAttributeResponseParams `json:"Response"` } func (r *ModifyRouteTableAttributeResponse) ToJsonString() string { @@ -14968,9 +19156,21 @@ func (r *ModifyRouteTableAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifySecurityGroupAttributeRequestParams struct { + // 安全组实例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"` +} + type ModifySecurityGroupAttributeRequest struct { *tchttp.BaseRequest - + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` @@ -15002,13 +19202,15 @@ func (r *ModifySecurityGroupAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifySecurityGroupAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifySecurityGroupAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifySecurityGroupAttributeResponseParams `json:"Response"` } func (r *ModifySecurityGroupAttributeResponse) ToJsonString() string { @@ -15022,9 +19224,21 @@ func (r *ModifySecurityGroupAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifySecurityGroupPoliciesRequestParams struct { + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 安全组规则集合。 SecurityGroupPolicySet对象必须同时指定新的出(Egress)入(Ingress)站规则。 SecurityGroupPolicy对象不支持自定义索引(PolicyIndex)。 + SecurityGroupPolicySet *SecurityGroupPolicySet `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` + + // 排序安全组标识,默认值为False。当SortPolicys为False时,不改变安全组规则排序;当SortPolicys为True时,系统将严格按照SecurityGroupPolicySet参数传入的安全组规则及顺序进行重置,考虑到人为输入参数可能存在遗漏风险,建议通过控制台对安全组规则进行排序。 + SortPolicys *bool `json:"SortPolicys,omitempty" name:"SortPolicys"` +} + type ModifySecurityGroupPoliciesRequest struct { *tchttp.BaseRequest - + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` @@ -15056,13 +19270,15 @@ func (r *ModifySecurityGroupPoliciesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifySecurityGroupPoliciesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifySecurityGroupPoliciesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifySecurityGroupPoliciesResponseParams `json:"Response"` } func (r *ModifySecurityGroupPoliciesResponse) ToJsonString() string { @@ -15076,9 +19292,24 @@ func (r *ModifySecurityGroupPoliciesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyServiceTemplateAttributeRequestParams struct { + // 协议端口模板实例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"` + + // 支持添加备注的协议端口信息,支持单个端口、多个端口、连续端口及所有端口,协议支持:TCP、UDP、ICMP、GRE 协议。 + ServicesExtra []*ServicesInfo `json:"ServicesExtra,omitempty" name:"ServicesExtra"` +} + type ModifyServiceTemplateAttributeRequest struct { *tchttp.BaseRequest - + // 协议端口模板实例ID,例如:ppm-529nwwj8。 ServiceTemplateId *string `json:"ServiceTemplateId,omitempty" name:"ServiceTemplateId"` @@ -15114,13 +19345,15 @@ func (r *ModifyServiceTemplateAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyServiceTemplateAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyServiceTemplateAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyServiceTemplateAttributeResponseParams `json:"Response"` } func (r *ModifyServiceTemplateAttributeResponse) ToJsonString() string { @@ -15134,9 +19367,21 @@ func (r *ModifyServiceTemplateAttributeResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyServiceTemplateGroupAttributeRequestParams struct { + // 协议端口模板集合实例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"` +} + type ModifyServiceTemplateGroupAttributeRequest struct { *tchttp.BaseRequest - + // 协议端口模板集合实例ID,例如:ppmg-ei8hfd9a。 ServiceTemplateGroupId *string `json:"ServiceTemplateGroupId,omitempty" name:"ServiceTemplateGroupId"` @@ -15168,13 +19413,15 @@ func (r *ModifyServiceTemplateGroupAttributeRequest) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyServiceTemplateGroupAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyServiceTemplateGroupAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyServiceTemplateGroupAttributeResponseParams `json:"Response"` } func (r *ModifyServiceTemplateGroupAttributeResponse) ToJsonString() string { @@ -15188,9 +19435,21 @@ func (r *ModifyServiceTemplateGroupAttributeResponse) FromJsonString(s string) e return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifySubnetAttributeRequestParams struct { + // 子网实例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"` +} + type ModifySubnetAttributeRequest struct { *tchttp.BaseRequest - + // 子网实例ID。形如:subnet-pxir56ns。 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` @@ -15222,13 +19481,15 @@ func (r *ModifySubnetAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifySubnetAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifySubnetAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifySubnetAttributeResponseParams `json:"Response"` } func (r *ModifySubnetAttributeResponse) ToJsonString() string { @@ -15242,9 +19503,21 @@ func (r *ModifySubnetAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyTemplateMemberRequestParams struct { + // 参数模板实例ID,支持IP地址、协议端口、IP地址组、协议端口组四种参数模板的实例ID。 + TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` + + // 需要修改的参数模板成员信息,支持IP地址、协议端口、IP地址组、协议端口组四种类型,类型需要与TemplateId参数类型一致,修改顺序与TemplateMember参数顺序一一对应,入参长度需要与TemplateMember参数保持一致。 + OriginalTemplateMember []*MemberInfo `json:"OriginalTemplateMember,omitempty" name:"OriginalTemplateMember"` + + // 新的参数模板成员信息,支持IP地址、协议端口、IP地址组、协议端口组四种类型,类型需要与TemplateId参数类型一致,修改顺序与OriginalTemplateMember参数顺序一一对应,入参长度需要与OriginalTemplateMember参数保持一致。 + TemplateMember []*MemberInfo `json:"TemplateMember,omitempty" name:"TemplateMember"` +} + type ModifyTemplateMemberRequest struct { *tchttp.BaseRequest - + // 参数模板实例ID,支持IP地址、协议端口、IP地址组、协议端口组四种参数模板的实例ID。 TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` @@ -15276,13 +19549,15 @@ func (r *ModifyTemplateMemberRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyTemplateMemberResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyTemplateMemberResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyTemplateMemberResponseParams `json:"Response"` } func (r *ModifyTemplateMemberResponse) ToJsonString() string { @@ -15296,9 +19571,27 @@ func (r *ModifyTemplateMemberResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpcAttributeRequestParams struct { + // 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"` + + // 域名 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` +} + type ModifyVpcAttributeRequest struct { *tchttp.BaseRequest - + // VPC实例ID。形如:vpc-f49l6u0z。每次请求的实例的上限为100。参数不支持同时指定VpcIds和Filters。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -15338,13 +19631,15 @@ func (r *ModifyVpcAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpcAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyVpcAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyVpcAttributeResponseParams `json:"Response"` } func (r *ModifyVpcAttributeResponse) ToJsonString() string { @@ -15358,9 +19653,21 @@ func (r *ModifyVpcAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpcEndPointAttributeRequestParams struct { + // 终端节点ID。 + EndPointId *string `json:"EndPointId,omitempty" name:"EndPointId"` + + // 终端节点名称。 + EndPointName *string `json:"EndPointName,omitempty" name:"EndPointName"` + + // 安全组ID列表。 + SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` +} + type ModifyVpcEndPointAttributeRequest struct { *tchttp.BaseRequest - + // 终端节点ID。 EndPointId *string `json:"EndPointId,omitempty" name:"EndPointId"` @@ -15392,13 +19699,15 @@ func (r *ModifyVpcEndPointAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpcEndPointAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyVpcEndPointAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyVpcEndPointAttributeResponseParams `json:"Response"` } func (r *ModifyVpcEndPointAttributeResponse) ToJsonString() string { @@ -15412,9 +19721,27 @@ func (r *ModifyVpcEndPointAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpcEndPointServiceAttributeRequestParams struct { + // 终端节点服务ID。 + EndPointServiceId *string `json:"EndPointServiceId,omitempty" name:"EndPointServiceId"` + + // VPCID。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 终端节点服务名称。 + EndPointServiceName *string `json:"EndPointServiceName,omitempty" name:"EndPointServiceName"` + + // 是否自动接受终端节点的连接请求。
  • true:自动接受
  • false:不自动接受 + AutoAcceptFlag *bool `json:"AutoAcceptFlag,omitempty" name:"AutoAcceptFlag"` + + // 后端服务的ID,比如lb-xxx。 + ServiceInstanceId *string `json:"ServiceInstanceId,omitempty" name:"ServiceInstanceId"` +} + type ModifyVpcEndPointServiceAttributeRequest struct { *tchttp.BaseRequest - + // 终端节点服务ID。 EndPointServiceId *string `json:"EndPointServiceId,omitempty" name:"EndPointServiceId"` @@ -15454,13 +19781,15 @@ func (r *ModifyVpcEndPointServiceAttributeRequest) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpcEndPointServiceAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyVpcEndPointServiceAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyVpcEndPointServiceAttributeResponseParams `json:"Response"` } func (r *ModifyVpcEndPointServiceAttributeResponse) ToJsonString() string { @@ -15468,15 +19797,27 @@ func (r *ModifyVpcEndPointServiceAttributeResponse) ToJsonString() string { return string(b) } -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ModifyVpcEndPointServiceAttributeResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ModifyVpcEndPointServiceAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyVpcEndPointServiceWhiteListRequestParams struct { + // 用户UIN。 + UserUin *string `json:"UserUin,omitempty" name:"UserUin"` + + // 终端节点服务ID。 + EndPointServiceId *string `json:"EndPointServiceId,omitempty" name:"EndPointServiceId"` + + // 白名单描述信息。 + Description *string `json:"Description,omitempty" name:"Description"` } type ModifyVpcEndPointServiceWhiteListRequest struct { *tchttp.BaseRequest - + // 用户UIN。 UserUin *string `json:"UserUin,omitempty" name:"UserUin"` @@ -15508,13 +19849,15 @@ func (r *ModifyVpcEndPointServiceWhiteListRequest) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpcEndPointServiceWhiteListResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyVpcEndPointServiceWhiteListResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyVpcEndPointServiceWhiteListResponseParams `json:"Response"` } func (r *ModifyVpcEndPointServiceWhiteListResponse) ToJsonString() string { @@ -15528,9 +19871,51 @@ func (r *ModifyVpcEndPointServiceWhiteListResponse) FromJsonString(s string) err return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpnConnectionAttributeRequestParams struct { + // 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"` + + // IKE配置(Internet Key Exchange,因特网密钥交换),IKE具有一套自我保护机制,用户配置网络安全协议。 + IKEOptionsSpecification *IKEOptionsSpecification `json:"IKEOptionsSpecification,omitempty" name:"IKEOptionsSpecification"` + + // IPSec配置,腾讯云提供IPSec安全会话设置。 + IPSECOptionsSpecification *IPSECOptionsSpecification `json:"IPSECOptionsSpecification,omitempty" name:"IPSECOptionsSpecification"` + + // 是否启用通道健康检查 + EnableHealthCheck *bool `json:"EnableHealthCheck,omitempty" name:"EnableHealthCheck"` + + // 本端通道探测ip + HealthCheckLocalIp *string `json:"HealthCheckLocalIp,omitempty" name:"HealthCheckLocalIp"` + + // 对端通道探测ip + HealthCheckRemoteIp *string `json:"HealthCheckRemoteIp,omitempty" name:"HealthCheckRemoteIp"` + + // 协商类型,默认为active(主动协商)。可选值:active(主动协商),passive(被动协商),flowTrigger(流量协商) + NegotiationType *string `json:"NegotiationType,omitempty" name:"NegotiationType"` + + // DPD探测开关。默认为0,表示关闭DPD探测。可选值:0(关闭),1(开启) + DpdEnable *int64 `json:"DpdEnable,omitempty" name:"DpdEnable"` + + // DPD超时时间。即探测确认对端不存在需要的时间。dpdEnable为1(开启)时有效。默认30,单位为秒 + DpdTimeout *string `json:"DpdTimeout,omitempty" name:"DpdTimeout"` + + // DPD超时后的动作。默认为clear。dpdEnable为1(开启)时有效。可取值为clear(断开)和restart(重试) + DpdAction *string `json:"DpdAction,omitempty" name:"DpdAction"` +} + type ModifyVpnConnectionAttributeRequest struct { *tchttp.BaseRequest - + // VPN通道实例ID。形如:vpnx-f49l6u0z。 VpnConnectionId *string `json:"VpnConnectionId,omitempty" name:"VpnConnectionId"` @@ -15602,13 +19987,15 @@ func (r *ModifyVpnConnectionAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpnConnectionAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyVpnConnectionAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyVpnConnectionAttributeResponseParams `json:"Response"` } func (r *ModifyVpnConnectionAttributeResponse) ToJsonString() string { @@ -15622,9 +20009,21 @@ func (r *ModifyVpnConnectionAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpnGatewayAttributeRequestParams struct { + // 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"` +} + type ModifyVpnGatewayAttributeRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID。 VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -15656,13 +20055,15 @@ func (r *ModifyVpnGatewayAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpnGatewayAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyVpnGatewayAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyVpnGatewayAttributeResponseParams `json:"Response"` } func (r *ModifyVpnGatewayAttributeResponse) ToJsonString() string { @@ -15676,9 +20077,18 @@ func (r *ModifyVpnGatewayAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpnGatewayCcnRoutesRequestParams struct { + // VPN网关实例ID + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 云联网路由(IDC网段)列表 + Routes []*VpngwCcnRoutes `json:"Routes,omitempty" name:"Routes"` +} + type ModifyVpnGatewayCcnRoutesRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -15706,13 +20116,15 @@ func (r *ModifyVpnGatewayCcnRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpnGatewayCcnRoutesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyVpnGatewayCcnRoutesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyVpnGatewayCcnRoutesResponseParams `json:"Response"` } func (r *ModifyVpnGatewayCcnRoutesResponse) ToJsonString() string { @@ -15726,9 +20138,18 @@ func (r *ModifyVpnGatewayCcnRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyVpnGatewayRoutesRequestParams struct { + // Vpn网关id + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 路由修改参数 + Routes []*VpnGatewayRouteModify `json:"Routes,omitempty" name:"Routes"` +} + type ModifyVpnGatewayRoutesRequest struct { *tchttp.BaseRequest - + // Vpn网关id VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -15756,17 +20177,19 @@ func (r *ModifyVpnGatewayRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ModifyVpnGatewayRoutesResponse struct { - *tchttp.BaseResponse - Response *struct { - - // VPN路由信息 +// Predefined struct for user +type ModifyVpnGatewayRoutesResponseParams struct { + // VPN路由信息 // 注意:此字段可能返回 null,表示取不到有效值。 - Routes []*VpnGatewayRoute `json:"Routes,omitempty" name:"Routes"` + Routes []*VpnGatewayRoute `json:"Routes,omitempty" name:"Routes"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ModifyVpnGatewayRoutesResponse struct { + *tchttp.BaseResponse + Response *ModifyVpnGatewayRoutesResponseParams `json:"Response"` } func (r *ModifyVpnGatewayRoutesResponse) ToJsonString() string { @@ -15781,7 +20204,6 @@ func (r *ModifyVpnGatewayRoutesResponse) FromJsonString(s string) error { } type NatDirectConnectGatewayRoute struct { - // 子网的 `IPv4` `CIDR` DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"` @@ -15800,7 +20222,6 @@ type NatDirectConnectGatewayRoute struct { } type NatGateway struct { - // NAT网关的ID。 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -15865,7 +20286,6 @@ type NatGateway struct { } type NatGatewayAddress struct { - // 弹性公网IP(EIP)的唯一 ID,形如:`eip-11112222`。 AddressId *string `json:"AddressId,omitempty" name:"AddressId"` @@ -15877,7 +20297,6 @@ type NatGatewayAddress struct { } type NatGatewayDestinationIpPortTranslationNatRule struct { - // 网络协议,可选值:`TCP`、`UDP`。 IpProtocol *string `json:"IpProtocol,omitempty" name:"IpProtocol"` @@ -15910,7 +20329,6 @@ type NatGatewayDestinationIpPortTranslationNatRule struct { } type NetDetect struct { - // `VPC`实例`ID`。形如:`vpc-12345678` VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -15967,7 +20385,6 @@ type NetDetect struct { } type NetDetectIpState struct { - // 探测目的IPv4地址。 DetectDestinationIp *string `json:"DetectDestinationIp,omitempty" name:"DetectDestinationIp"` @@ -15987,7 +20404,6 @@ type NetDetectIpState struct { } type NetDetectState struct { - // 网络探测实例ID。形如:netd-12345678。 NetDetectId *string `json:"NetDetectId,omitempty" name:"NetDetectId"` @@ -15996,7 +20412,6 @@ type NetDetectState struct { } type NetworkAcl struct { - // `VPC`实例`ID`。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -16017,10 +20432,15 @@ type NetworkAcl struct { // 网络ACL出站规则。 EgressEntries []*NetworkAclEntry `json:"EgressEntries,omitempty" name:"EgressEntries"` + + // 网络ACL类型。三元组:'TRIPLE' 五元组:'QUINTUPLE' + NetworkAclType *string `json:"NetworkAclType,omitempty" name:"NetworkAclType"` + + // 标签键值对 + TagSet []*Tag `json:"TagSet,omitempty" name:"TagSet"` } type NetworkAclEntry struct { - // 修改时间。 ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"` @@ -16044,7 +20464,6 @@ type NetworkAclEntry struct { } type NetworkAclEntrySet struct { - // 入站规则。 Ingress []*NetworkAclEntry `json:"Ingress,omitempty" name:"Ingress"` @@ -16052,8 +20471,50 @@ type NetworkAclEntrySet struct { Egress []*NetworkAclEntry `json:"Egress,omitempty" name:"Egress"` } -type NetworkInterface struct { +type NetworkAclQuintupleEntries struct { + // 网络ACL五元组入站规则。 + Ingress []*NetworkAclQuintupleEntry `json:"Ingress,omitempty" name:"Ingress"` + + // 网络ACL五元组出站规则 + Egress []*NetworkAclQuintupleEntry `json:"Egress,omitempty" name:"Egress"` +} + +type NetworkAclQuintupleEntry struct { + // 协议, 取值: TCP,UDP, ICMP, ALL。 + Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + + // 描述。 + Description *string `json:"Description,omitempty" name:"Description"` + + // 源端口(all, 单个port, range)。当Protocol为ALL或ICMP时,不能指定Port。 + SourcePort *string `json:"SourcePort,omitempty" name:"SourcePort"` + + // 源CIDR。 + SourceCidr *string `json:"SourceCidr,omitempty" name:"SourceCidr"` + + // 目的端口(all, 单个port, range)。当Protocol为ALL或ICMP时,不能指定Port。 + DestinationPort *string `json:"DestinationPort,omitempty" name:"DestinationPort"` + + // 目的CIDR。 + DestinationCidr *string `json:"DestinationCidr,omitempty" name:"DestinationCidr"` + + // 动作,ACCEPT 或 DROP。 + Action *string `json:"Action,omitempty" name:"Action"` + + // 网络ACL条目唯一ID。 + NetworkAclQuintupleEntryId *string `json:"NetworkAclQuintupleEntryId,omitempty" name:"NetworkAclQuintupleEntryId"` + + // 优先级,从1开始。 + Priority *int64 `json:"Priority,omitempty" name:"Priority"` + + // 创建时间,用于DescribeNetworkAclQuintupleEntries的出参。 + CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` + + // 方向,INGRESS或EGRESS,用于DescribeNetworkAclQuintupleEntries的出参。 + NetworkAclDirection *string `json:"NetworkAclDirection,omitempty" name:"NetworkAclDirection"` +} +type NetworkInterface struct { // 弹性网卡实例ID,例如:eni-f1xjkw1b。 NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` @@ -16122,7 +20583,6 @@ type NetworkInterface struct { } type NetworkInterfaceAttachment struct { - // 云主机实例ID。 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -16136,9 +20596,18 @@ type NetworkInterfaceAttachment struct { AttachTime *string `json:"AttachTime,omitempty" name:"AttachTime"` } +// Predefined struct for user +type NotifyRoutesRequestParams struct { + // 路由表唯一ID。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由策略唯一ID。 + RouteItemIds []*string `json:"RouteItemIds,omitempty" name:"RouteItemIds"` +} + type NotifyRoutesRequest struct { *tchttp.BaseRequest - + // 路由表唯一ID。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` @@ -16166,13 +20635,15 @@ func (r *NotifyRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type NotifyRoutesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type NotifyRoutesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *NotifyRoutesResponseParams `json:"Response"` } func (r *NotifyRoutesResponse) ToJsonString() string { @@ -16187,7 +20658,6 @@ func (r *NotifyRoutesResponse) FromJsonString(s string) error { } type Price struct { - // 实例价格。 InstancePrice *ItemPrice `json:"InstancePrice,omitempty" name:"InstancePrice"` @@ -16196,7 +20666,6 @@ type Price struct { } type PrivateIpAddressSpecification struct { - // 内网IP地址。 PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" name:"PrivateIpAddress"` @@ -16224,7 +20693,6 @@ type PrivateIpAddressSpecification struct { } type ProductQuota struct { - // 产品配额ID QuotaId *string `json:"QuotaId,omitempty" name:"QuotaId"` @@ -16242,7 +20710,6 @@ type ProductQuota struct { } type Quota struct { - // 配额名称,取值范围:
  • `TOTAL_EIP_QUOTA`:用户当前地域下EIP的配额数;
  • `DAILY_EIP_APPLY`:用户当前地域下今日申购次数;
  • `DAILY_PUBLIC_IP_ASSIGN`:用户当前地域下,重新分配公网 IP次数。 QuotaId *string `json:"QuotaId,omitempty" name:"QuotaId"` @@ -16254,7 +20721,6 @@ type Quota struct { } type ReferredSecurityGroup struct { - // 安全组实例ID。 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` @@ -16262,9 +20728,21 @@ type ReferredSecurityGroup struct { ReferredSecurityGroupIds []*string `json:"ReferredSecurityGroupIds,omitempty" name:"ReferredSecurityGroupIds"` } +// Predefined struct for user +type RefreshDirectConnectGatewayRouteToNatGatewayRequestParams struct { + // vpc的ID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // NAT网关ID + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // 是否是预刷新;True:是, False:否 + DryRun *bool `json:"DryRun,omitempty" name:"DryRun"` +} + type RefreshDirectConnectGatewayRouteToNatGatewayRequest struct { *tchttp.BaseRequest - + // vpc的ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -16296,16 +20774,18 @@ func (r *RefreshDirectConnectGatewayRouteToNatGatewayRequest) FromJsonString(s s return json.Unmarshal([]byte(s), &r) } -type RefreshDirectConnectGatewayRouteToNatGatewayResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type RefreshDirectConnectGatewayRouteToNatGatewayResponseParams struct { + // IDC子网信息 + DirectConnectSubnetSet []*DirectConnectSubnet `json:"DirectConnectSubnetSet,omitempty" name:"DirectConnectSubnetSet"` - // IDC子网信息 - DirectConnectSubnetSet []*DirectConnectSubnet `json:"DirectConnectSubnetSet,omitempty" name:"DirectConnectSubnetSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type RefreshDirectConnectGatewayRouteToNatGatewayResponse struct { + *tchttp.BaseResponse + Response *RefreshDirectConnectGatewayRouteToNatGatewayResponseParams `json:"Response"` } func (r *RefreshDirectConnectGatewayRouteToNatGatewayResponse) ToJsonString() string { @@ -16319,9 +20799,18 @@ func (r *RefreshDirectConnectGatewayRouteToNatGatewayResponse) FromJsonString(s return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type RejectAttachCcnInstancesRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 拒绝关联实例列表。 + Instances []*CcnInstance `json:"Instances,omitempty" name:"Instances"` +} + type RejectAttachCcnInstancesRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -16349,13 +20838,15 @@ func (r *RejectAttachCcnInstancesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type RejectAttachCcnInstancesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type RejectAttachCcnInstancesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *RejectAttachCcnInstancesResponseParams `json:"Response"` } func (r *RejectAttachCcnInstancesResponse) ToJsonString() string { @@ -16369,9 +20860,15 @@ func (r *RejectAttachCcnInstancesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ReleaseAddressesRequestParams struct { + // 标识 EIP 的唯一 ID 列表。EIP 唯一 ID 形如:`eip-11112222`。 + AddressIds []*string `json:"AddressIds,omitempty" name:"AddressIds"` +} + type ReleaseAddressesRequest struct { *tchttp.BaseRequest - + // 标识 EIP 的唯一 ID 列表。EIP 唯一 ID 形如:`eip-11112222`。 AddressIds []*string `json:"AddressIds,omitempty" name:"AddressIds"` } @@ -16395,16 +20892,18 @@ func (r *ReleaseAddressesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ReleaseAddressesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type ReleaseAddressesResponseParams struct { + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` - // 异步任务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"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ReleaseAddressesResponse struct { + *tchttp.BaseResponse + Response *ReleaseAddressesResponseParams `json:"Response"` } func (r *ReleaseAddressesResponse) ToJsonString() string { @@ -16418,9 +20917,18 @@ func (r *ReleaseAddressesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ReleaseIp6AddressesBandwidthRequestParams struct { + // IPV6地址。Ip6Addresses和Ip6AddressIds必须且只能传一个 + Ip6Addresses []*string `json:"Ip6Addresses,omitempty" name:"Ip6Addresses"` + + // IPV6地址对应的唯一ID,形如eip-xxxxxxxx。Ip6Addresses和Ip6AddressIds必须且只能传一个。 + Ip6AddressIds []*string `json:"Ip6AddressIds,omitempty" name:"Ip6AddressIds"` +} + type ReleaseIp6AddressesBandwidthRequest struct { *tchttp.BaseRequest - + // IPV6地址。Ip6Addresses和Ip6AddressIds必须且只能传一个 Ip6Addresses []*string `json:"Ip6Addresses,omitempty" name:"Ip6Addresses"` @@ -16448,16 +20956,18 @@ func (r *ReleaseIp6AddressesBandwidthRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ReleaseIp6AddressesBandwidthResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type ReleaseIp6AddressesBandwidthResponseParams struct { + // 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` - // 异步任务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"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ReleaseIp6AddressesBandwidthResponse struct { + *tchttp.BaseResponse + Response *ReleaseIp6AddressesBandwidthResponseParams `json:"Response"` } func (r *ReleaseIp6AddressesBandwidthResponse) ToJsonString() string { @@ -16471,9 +20981,21 @@ func (r *ReleaseIp6AddressesBandwidthResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type RemoveBandwidthPackageResourcesRequestParams struct { + // 带宽包唯一标识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"` +} + type RemoveBandwidthPackageResourcesRequest struct { *tchttp.BaseRequest - + // 带宽包唯一标识ID,形如'bwp-xxxx' BandwidthPackageId *string `json:"BandwidthPackageId,omitempty" name:"BandwidthPackageId"` @@ -16505,13 +21027,15 @@ func (r *RemoveBandwidthPackageResourcesRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type RemoveBandwidthPackageResourcesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type RemoveBandwidthPackageResourcesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *RemoveBandwidthPackageResourcesResponseParams `json:"Response"` } func (r *RemoveBandwidthPackageResourcesResponse) ToJsonString() string { @@ -16525,9 +21049,18 @@ func (r *RemoveBandwidthPackageResourcesResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type RemoveIp6RulesRequestParams struct { + // IPV6转换规则所属的转换实例唯一ID,形如ip6-xxxxxxxx + Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` + + // 待删除IPV6转换规则,形如rule6-xxxxxxxx + Ip6RuleIds []*string `json:"Ip6RuleIds,omitempty" name:"Ip6RuleIds"` +} + type RemoveIp6RulesRequest struct { *tchttp.BaseRequest - + // IPV6转换规则所属的转换实例唯一ID,形如ip6-xxxxxxxx Ip6TranslatorId *string `json:"Ip6TranslatorId,omitempty" name:"Ip6TranslatorId"` @@ -16555,13 +21088,15 @@ func (r *RemoveIp6RulesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type RemoveIp6RulesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type RemoveIp6RulesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *RemoveIp6RulesResponseParams `json:"Response"` } func (r *RemoveIp6RulesResponse) ToJsonString() string { @@ -16575,9 +21110,18 @@ func (r *RemoveIp6RulesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type RenewAddressesRequestParams struct { + // EIP唯一标识ID列表,形如'eip-xxxx' + AddressIds []*string `json:"AddressIds,omitempty" name:"AddressIds"` + + // 续费参数 + AddressChargePrepaid *AddressChargePrepaid `json:"AddressChargePrepaid,omitempty" name:"AddressChargePrepaid"` +} + type RenewAddressesRequest struct { *tchttp.BaseRequest - + // EIP唯一标识ID列表,形如'eip-xxxx' AddressIds []*string `json:"AddressIds,omitempty" name:"AddressIds"` @@ -16605,13 +21149,15 @@ func (r *RenewAddressesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type RenewAddressesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type RenewAddressesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *RenewAddressesResponseParams `json:"Response"` } func (r *RenewAddressesResponse) ToJsonString() string { @@ -16625,9 +21171,18 @@ func (r *RenewAddressesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type RenewVpnGatewayRequestParams struct { + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 预付费计费模式。 + InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitempty" name:"InstanceChargePrepaid"` +} + type RenewVpnGatewayRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID。 VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -16655,13 +21210,15 @@ func (r *RenewVpnGatewayRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type RenewVpnGatewayResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type RenewVpnGatewayResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *RenewVpnGatewayResponseParams `json:"Response"` } func (r *RenewVpnGatewayResponse) ToJsonString() string { @@ -16675,9 +21232,18 @@ func (r *RenewVpnGatewayResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ReplaceDirectConnectGatewayCcnRoutesRequestParams struct { + // 专线网关ID,形如:dcg-prpqlmg1 + DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` + + // 需要连通的IDC网段列表 + Routes []*DirectConnectGatewayCcnRoute `json:"Routes,omitempty" name:"Routes"` +} + type ReplaceDirectConnectGatewayCcnRoutesRequest struct { *tchttp.BaseRequest - + // 专线网关ID,形如:dcg-prpqlmg1 DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` @@ -16705,13 +21271,15 @@ func (r *ReplaceDirectConnectGatewayCcnRoutesRequest) FromJsonString(s string) e return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ReplaceDirectConnectGatewayCcnRoutesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ReplaceDirectConnectGatewayCcnRoutesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ReplaceDirectConnectGatewayCcnRoutesResponseParams `json:"Response"` } func (r *ReplaceDirectConnectGatewayCcnRoutesResponse) ToJsonString() string { @@ -16725,9 +21293,18 @@ func (r *ReplaceDirectConnectGatewayCcnRoutesResponse) FromJsonString(s string) return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ReplaceRouteTableAssociationRequestParams struct { + // 子网实例ID,例如:subnet-3x5lf5q0。可通过DescribeSubnets接口查询。 + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` +} + type ReplaceRouteTableAssociationRequest struct { *tchttp.BaseRequest - + // 子网实例ID,例如:subnet-3x5lf5q0。可通过DescribeSubnets接口查询。 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` @@ -16755,13 +21332,15 @@ func (r *ReplaceRouteTableAssociationRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ReplaceRouteTableAssociationResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ReplaceRouteTableAssociationResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ReplaceRouteTableAssociationResponseParams `json:"Response"` } func (r *ReplaceRouteTableAssociationResponse) ToJsonString() string { @@ -16775,9 +21354,18 @@ func (r *ReplaceRouteTableAssociationResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ReplaceRoutesRequestParams struct { + // 路由表实例ID,例如:rtb-azd4dt1c。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由策略对象。需要指定路由策略ID(RouteId)。 + Routes []*Route `json:"Routes,omitempty" name:"Routes"` +} + type ReplaceRoutesRequest struct { *tchttp.BaseRequest - + // 路由表实例ID,例如:rtb-azd4dt1c。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` @@ -16805,19 +21393,21 @@ func (r *ReplaceRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ReplaceRoutesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type ReplaceRoutesResponseParams struct { + // 原路由策略信息。 + OldRouteSet []*Route `json:"OldRouteSet,omitempty" name:"OldRouteSet"` - // 原路由策略信息。 - OldRouteSet []*Route `json:"OldRouteSet,omitempty" name:"OldRouteSet"` + // 修改后的路由策略信息。 + NewRouteSet []*Route `json:"NewRouteSet,omitempty" name:"NewRouteSet"` - // 修改后的路由策略信息。 - NewRouteSet []*Route `json:"NewRouteSet,omitempty" name:"NewRouteSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ReplaceRoutesResponse struct { + *tchttp.BaseResponse + Response *ReplaceRoutesResponseParams `json:"Response"` } func (r *ReplaceRoutesResponse) ToJsonString() string { @@ -16831,9 +21421,21 @@ func (r *ReplaceRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ReplaceSecurityGroupPolicyRequestParams struct { + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 + SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` + + // 安全组规则集合对象。 + SecurityGroupPolicySet *SecurityGroupPolicySet `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` + + // 旧的安全组规则集合对象,可选,日志记录用。 + OriginalSecurityGroupPolicySet *SecurityGroupPolicySet `json:"OriginalSecurityGroupPolicySet,omitempty" name:"OriginalSecurityGroupPolicySet"` +} + type ReplaceSecurityGroupPolicyRequest struct { *tchttp.BaseRequest - + // 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` @@ -16865,13 +21467,15 @@ func (r *ReplaceSecurityGroupPolicyRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ReplaceSecurityGroupPolicyResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ReplaceSecurityGroupPolicyResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ReplaceSecurityGroupPolicyResponseParams `json:"Response"` } func (r *ReplaceSecurityGroupPolicyResponse) ToJsonString() string { @@ -16885,9 +21489,21 @@ func (r *ReplaceSecurityGroupPolicyResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ResetAttachCcnInstancesRequestParams struct { + // 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"` +} + type ResetAttachCcnInstancesRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -16919,13 +21535,15 @@ func (r *ResetAttachCcnInstancesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ResetAttachCcnInstancesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ResetAttachCcnInstancesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ResetAttachCcnInstancesResponseParams `json:"Response"` } func (r *ResetAttachCcnInstancesResponse) ToJsonString() string { @@ -16939,9 +21557,18 @@ func (r *ResetAttachCcnInstancesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ResetNatGatewayConnectionRequestParams struct { + // NAT网关ID。 + NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` + + // NAT网关并发连接上限,形如:1000000、3000000、10000000。 + MaxConcurrentConnection *uint64 `json:"MaxConcurrentConnection,omitempty" name:"MaxConcurrentConnection"` +} + type ResetNatGatewayConnectionRequest struct { *tchttp.BaseRequest - + // NAT网关ID。 NatGatewayId *string `json:"NatGatewayId,omitempty" name:"NatGatewayId"` @@ -16969,13 +21596,15 @@ func (r *ResetNatGatewayConnectionRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ResetNatGatewayConnectionResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ResetNatGatewayConnectionResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ResetNatGatewayConnectionResponseParams `json:"Response"` } func (r *ResetNatGatewayConnectionResponse) ToJsonString() string { @@ -16989,9 +21618,21 @@ func (r *ResetNatGatewayConnectionResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ResetRoutesRequestParams struct { + // 路由表实例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"` +} + type ResetRoutesRequest struct { *tchttp.BaseRequest - + // 路由表实例ID,例如:rtb-azd4dt1c。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` @@ -17023,13 +21664,15 @@ func (r *ResetRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ResetRoutesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ResetRoutesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ResetRoutesResponseParams `json:"Response"` } func (r *ResetRoutesResponse) ToJsonString() string { @@ -17043,9 +21686,18 @@ func (r *ResetRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ResetVpnConnectionRequestParams struct { + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // VPN通道实例ID。形如:vpnx-f49l6u0z。 + VpnConnectionId *string `json:"VpnConnectionId,omitempty" name:"VpnConnectionId"` +} + type ResetVpnConnectionRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID。 VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -17073,13 +21725,15 @@ func (r *ResetVpnConnectionRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ResetVpnConnectionResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ResetVpnConnectionResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ResetVpnConnectionResponseParams `json:"Response"` } func (r *ResetVpnConnectionResponse) ToJsonString() string { @@ -17093,9 +21747,18 @@ func (r *ResetVpnConnectionResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ResetVpnGatewayInternetMaxBandwidthRequestParams struct { + // VPN网关实例ID。 + VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` + + // 公网带宽设置。可选带宽规格:5, 10, 20, 50, 100;单位:Mbps。 + InternetMaxBandwidthOut *uint64 `json:"InternetMaxBandwidthOut,omitempty" name:"InternetMaxBandwidthOut"` +} + type ResetVpnGatewayInternetMaxBandwidthRequest struct { *tchttp.BaseRequest - + // VPN网关实例ID。 VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -17123,13 +21786,15 @@ func (r *ResetVpnGatewayInternetMaxBandwidthRequest) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ResetVpnGatewayInternetMaxBandwidthResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ResetVpnGatewayInternetMaxBandwidthResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ResetVpnGatewayInternetMaxBandwidthResponseParams `json:"Response"` } func (r *ResetVpnGatewayInternetMaxBandwidthResponse) ToJsonString() string { @@ -17144,7 +21809,6 @@ func (r *ResetVpnGatewayInternetMaxBandwidthResponse) FromJsonString(s string) e } type Resource struct { - // 带宽包资源类型,包括'Address'和'LoadBalance' ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` @@ -17156,7 +21820,6 @@ type Resource struct { } type ResourceDashboard struct { - // Vpc实例ID,例如:vpc-bq4bzxpj。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -17285,7 +21948,6 @@ type ResourceDashboard struct { } type Route struct { - // 目的网段,取值不能在私有网络网段内,例如:112.20.51.0/24。 DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"` @@ -17340,7 +22002,6 @@ type Route struct { } type RouteConflict struct { - // 路由表实例ID,例如:rtb-azd4dt1c。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` @@ -17352,7 +22013,6 @@ type RouteConflict struct { } type RouteTable struct { - // VPC实例ID。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -17383,7 +22043,6 @@ type RouteTable struct { } type RouteTableAssociation struct { - // 子网实例ID。 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` @@ -17392,7 +22051,6 @@ type RouteTableAssociation struct { } type SecurityGroup struct { - // 安全组实例ID,例如:sg-ohuuioma。 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` @@ -17420,7 +22078,6 @@ type SecurityGroup struct { } type SecurityGroupAssociationStatistics struct { - // 安全组实例ID。 SecurityGroupId *string `json:"SecurityGroupId,omitempty" name:"SecurityGroupId"` @@ -17447,7 +22104,6 @@ type SecurityGroupAssociationStatistics struct { } type SecurityGroupLimitSet struct { - // 每个项目每个地域可创建安全组数 SecurityGroupLimit *uint64 `json:"SecurityGroupLimit,omitempty" name:"SecurityGroupLimit"` @@ -17465,7 +22121,6 @@ type SecurityGroupLimitSet struct { } type SecurityGroupPolicy struct { - // 安全组规则索引号,值会随着安全组规则的变更动态变化。使用PolicyIndex时,请先调用`DescribeSecurityGroupPolicies`获取到规则的PolicyIndex,并且结合返回值中的Version一起使用处理规则。 PolicyIndex *int64 `json:"PolicyIndex,omitempty" name:"PolicyIndex"` @@ -17502,7 +22157,6 @@ type SecurityGroupPolicy struct { } type SecurityGroupPolicySet struct { - // 安全组规则当前版本。用户每次更新安全规则版本会自动加1,防止更新的路由规则已过期,不填不考虑冲突。 Version *string `json:"Version,omitempty" name:"Version"` @@ -17514,7 +22168,6 @@ type SecurityGroupPolicySet struct { } type SecurityPolicyDatabase struct { - // 本端网段 LocalCidrBlock *string `json:"LocalCidrBlock,omitempty" name:"LocalCidrBlock"` @@ -17523,7 +22176,6 @@ type SecurityPolicyDatabase struct { } type ServiceTemplate struct { - // 协议端口实例ID,例如:ppm-f5n1f8da。 ServiceTemplateId *string `json:"ServiceTemplateId,omitempty" name:"ServiceTemplateId"` @@ -17541,7 +22193,6 @@ type ServiceTemplate struct { } type ServiceTemplateGroup struct { - // 协议端口模板集合实例ID,例如:ppmg-2klmrefu。 ServiceTemplateGroupId *string `json:"ServiceTemplateGroupId,omitempty" name:"ServiceTemplateGroupId"` @@ -17559,7 +22210,6 @@ type ServiceTemplateGroup struct { } type ServiceTemplateSpecification struct { - // 协议端口ID,例如:ppm-f5n1f8da。 ServiceId *string `json:"ServiceId,omitempty" name:"ServiceId"` @@ -17568,7 +22218,6 @@ type ServiceTemplateSpecification struct { } type ServicesInfo struct { - // 协议端口。 Service *string `json:"Service,omitempty" name:"Service"` @@ -17577,9 +22226,21 @@ type ServicesInfo struct { Description *string `json:"Description,omitempty" name:"Description"` } +// Predefined struct for user +type SetCcnRegionBandwidthLimitsRequestParams struct { + // CCN实例ID。形如:ccn-f49l6u0z。 + CcnId *string `json:"CcnId,omitempty" name:"CcnId"` + + // 云联网(CCN)各地域出带宽上限。 + CcnRegionBandwidthLimits []*CcnRegionBandwidthLimit `json:"CcnRegionBandwidthLimits,omitempty" name:"CcnRegionBandwidthLimits"` + + // 是否恢复云联网地域出口/地域间带宽限速为默认值(1Gbps)。false表示不恢复;true表示恢复。恢复默认值后,限速实例将不在控制台展示。该参数默认为 false,不恢复。 + SetDefaultLimitFlag *bool `json:"SetDefaultLimitFlag,omitempty" name:"SetDefaultLimitFlag"` +} + type SetCcnRegionBandwidthLimitsRequest struct { *tchttp.BaseRequest - + // CCN实例ID。形如:ccn-f49l6u0z。 CcnId *string `json:"CcnId,omitempty" name:"CcnId"` @@ -17611,13 +22272,15 @@ func (r *SetCcnRegionBandwidthLimitsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type SetCcnRegionBandwidthLimitsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type SetCcnRegionBandwidthLimitsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *SetCcnRegionBandwidthLimitsResponseParams `json:"Response"` } func (r *SetCcnRegionBandwidthLimitsResponse) ToJsonString() string { @@ -17632,7 +22295,6 @@ func (r *SetCcnRegionBandwidthLimitsResponse) FromJsonString(s string) error { } type SourceIpTranslationNatRule struct { - // 资源ID ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` @@ -17665,8 +22327,21 @@ type SourceIpTranslationNatRule struct { CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` } -type SslVpnClient struct { +type SslClientConfig struct { + // 客户端配置 + SslVpnClientConfiguration *string `json:"SslVpnClientConfiguration,omitempty" name:"SslVpnClientConfiguration"` + // 更证书 + SslVpnRootCert *string `json:"SslVpnRootCert,omitempty" name:"SslVpnRootCert"` + + // 客户端密钥 + SslVpnKey *string `json:"SslVpnKey,omitempty" name:"SslVpnKey"` + + // 客户端证书 + SslVpnCert *string `json:"SslVpnCert,omitempty" name:"SslVpnCert"` +} + +type SslVpnClient struct { // VPC实例ID VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -17706,7 +22381,6 @@ type SslVpnClient struct { } type SslVpnSever struct { - // VPC实例ID. // 注意:此字段可能返回 null,表示取不到有效值。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -17760,10 +22434,21 @@ type SslVpnSever struct { // 6 已连通 // 7 未知 State *uint64 `json:"State,omitempty" name:"State"` + + // 是否开启SSO认证。1:开启 0: 不开启 + SsoEnabled *uint64 `json:"SsoEnabled,omitempty" name:"SsoEnabled"` + + // EIAM应用ID + EiamApplicationId *string `json:"EiamApplicationId,omitempty" name:"EiamApplicationId"` + + // 是否开启策略控制。0:不开启 1: 开启 + AccessPolicyEnabled *uint64 `json:"AccessPolicyEnabled,omitempty" name:"AccessPolicyEnabled"` + + // 策略信息 + AccessPolicy []*AccessPolicy `json:"AccessPolicy,omitempty" name:"AccessPolicy"` } type Subnet struct { - // `VPC`实例`ID`。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -17819,7 +22504,6 @@ type Subnet struct { } type SubnetInput struct { - // 子网的`CIDR`。 CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` @@ -17834,7 +22518,6 @@ type SubnetInput struct { } type Tag struct { - // 标签键 // 注意:此字段可能返回 null,表示取不到有效值。 Key *string `json:"Key,omitempty" name:"Key"` @@ -17845,7 +22528,6 @@ type Tag struct { } type TemplateLimit struct { - // 参数模板IP地址成员配额。 AddressTemplateMemberLimit *uint64 `json:"AddressTemplateMemberLimit,omitempty" name:"AddressTemplateMemberLimit"` @@ -17859,9 +22541,15 @@ type TemplateLimit struct { ServiceTemplateGroupMemberLimit *uint64 `json:"ServiceTemplateGroupMemberLimit,omitempty" name:"ServiceTemplateGroupMemberLimit"` } +// Predefined struct for user +type TransformAddressRequestParams struct { + // 待操作有普通公网 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"` +} + 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"` } @@ -17885,13 +22573,15 @@ func (r *TransformAddressRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type TransformAddressResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type TransformAddressResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *TransformAddressResponseParams `json:"Response"` } func (r *TransformAddressResponse) ToJsonString() string { @@ -17905,9 +22595,18 @@ func (r *TransformAddressResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UnassignIpv6AddressesRequestParams struct { + // 弹性网卡实例`ID`,形如:`eni-m6dyj72l`。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 指定的`IPv6`地址列表,单次最多指定10个。 + Ipv6Addresses []*Ipv6Address `json:"Ipv6Addresses,omitempty" name:"Ipv6Addresses"` +} + type UnassignIpv6AddressesRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例`ID`,形如:`eni-m6dyj72l`。 NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` @@ -17935,13 +22634,15 @@ func (r *UnassignIpv6AddressesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UnassignIpv6AddressesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type UnassignIpv6AddressesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *UnassignIpv6AddressesResponseParams `json:"Response"` } func (r *UnassignIpv6AddressesResponse) ToJsonString() string { @@ -17955,9 +22656,18 @@ func (r *UnassignIpv6AddressesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UnassignIpv6CidrBlockRequestParams struct { + // `VPC`实例`ID`,形如:`vpc-f49l6u0z`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // `IPv6`网段。形如:`3402:4e00:20:1000::/56` + Ipv6CidrBlock *string `json:"Ipv6CidrBlock,omitempty" name:"Ipv6CidrBlock"` +} + type UnassignIpv6CidrBlockRequest struct { *tchttp.BaseRequest - + // `VPC`实例`ID`,形如:`vpc-f49l6u0z`。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -17985,13 +22695,15 @@ func (r *UnassignIpv6CidrBlockRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UnassignIpv6CidrBlockResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type UnassignIpv6CidrBlockResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *UnassignIpv6CidrBlockResponseParams `json:"Response"` } func (r *UnassignIpv6CidrBlockResponse) ToJsonString() string { @@ -18005,9 +22717,18 @@ func (r *UnassignIpv6CidrBlockResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UnassignIpv6SubnetCidrBlockRequestParams struct { + // 子网所在私有网络`ID`。形如:`vpc-f49l6u0z`。 + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // `IPv6` 子网段列表。 + Ipv6SubnetCidrBlocks []*Ipv6SubnetCidrBlock `json:"Ipv6SubnetCidrBlocks,omitempty" name:"Ipv6SubnetCidrBlocks"` +} + type UnassignIpv6SubnetCidrBlockRequest struct { *tchttp.BaseRequest - + // 子网所在私有网络`ID`。形如:`vpc-f49l6u0z`。 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -18035,13 +22756,15 @@ func (r *UnassignIpv6SubnetCidrBlockRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UnassignIpv6SubnetCidrBlockResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type UnassignIpv6SubnetCidrBlockResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *UnassignIpv6SubnetCidrBlockResponseParams `json:"Response"` } func (r *UnassignIpv6SubnetCidrBlockResponse) ToJsonString() string { @@ -18055,9 +22778,21 @@ func (r *UnassignIpv6SubnetCidrBlockResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UnassignPrivateIpAddressesRequestParams struct { + // 弹性网卡实例ID,例如:eni-m6dyj72l。 + NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` + + // 指定的内网IP信息,单次最多指定10个。 + PrivateIpAddresses []*PrivateIpAddressSpecification `json:"PrivateIpAddresses,omitempty" name:"PrivateIpAddresses"` + + // 网卡绑定的子机实例ID,该参数仅用于指定网卡退还IP并解绑子机的场景,如果不涉及解绑子机,请勿填写。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` +} + type UnassignPrivateIpAddressesRequest struct { *tchttp.BaseRequest - + // 弹性网卡实例ID,例如:eni-m6dyj72l。 NetworkInterfaceId *string `json:"NetworkInterfaceId,omitempty" name:"NetworkInterfaceId"` @@ -18089,13 +22824,15 @@ func (r *UnassignPrivateIpAddressesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UnassignPrivateIpAddressesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type UnassignPrivateIpAddressesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *UnassignPrivateIpAddressesResponseParams `json:"Response"` } func (r *UnassignPrivateIpAddressesResponse) ToJsonString() string { @@ -18109,8 +22846,14 @@ func (r *UnassignPrivateIpAddressesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UnlockCcnBandwidthsRequestParams struct { + +} + type UnlockCcnBandwidthsRequest struct { *tchttp.BaseRequest + } func (r *UnlockCcnBandwidthsRequest) ToJsonString() string { @@ -18125,19 +22868,22 @@ func (r *UnlockCcnBandwidthsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UnlockCcnBandwidthsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UnlockCcnBandwidthsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type UnlockCcnBandwidthsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *UnlockCcnBandwidthsResponseParams `json:"Response"` } func (r *UnlockCcnBandwidthsResponse) ToJsonString() string { @@ -18151,8 +22897,14 @@ func (r *UnlockCcnBandwidthsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UnlockCcnsRequestParams struct { + +} + type UnlockCcnsRequest struct { *tchttp.BaseRequest + } func (r *UnlockCcnsRequest) ToJsonString() string { @@ -18167,19 +22919,22 @@ func (r *UnlockCcnsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UnlockCcnsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UnlockCcnsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type UnlockCcnsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *UnlockCcnsResponseParams `json:"Response"` } func (r *UnlockCcnsResponse) ToJsonString() string { @@ -18194,7 +22949,6 @@ func (r *UnlockCcnsResponse) FromJsonString(s string) error { } type Vpc struct { - // `VPC`名称。 VpcName *string `json:"VpcName,omitempty" name:"VpcName"` @@ -18237,7 +22991,6 @@ type Vpc struct { } type VpcEndPointServiceUser struct { - // AppId。 Owner *uint64 `json:"Owner,omitempty" name:"Owner"` @@ -18255,7 +23008,6 @@ type VpcEndPointServiceUser struct { } type VpcIpv6Address struct { - // `VPC`内`IPv6`地址。 Ipv6Address *string `json:"Ipv6Address,omitempty" name:"Ipv6Address"` @@ -18270,7 +23022,6 @@ type VpcIpv6Address struct { } type VpcLimit struct { - // 私有网络配额描述 LimitType *string `json:"LimitType,omitempty" name:"LimitType"` @@ -18279,7 +23030,6 @@ type VpcLimit struct { } type VpcPrivateIpAddress struct { - // `VPC`内网`IP`。 PrivateIpAddress *string `json:"PrivateIpAddress,omitempty" name:"PrivateIpAddress"` @@ -18294,7 +23044,6 @@ type VpcPrivateIpAddress struct { } type VpnConnection struct { - // 通道实例ID。 VpnConnectionId *string `json:"VpnConnectionId,omitempty" name:"VpnConnectionId"` @@ -18351,10 +23100,28 @@ type VpnConnection struct { // 通道健康检查状态,AVAILABLE:正常,UNAVAILABLE:不正常。 未配置健康检查不返回该对象 HealthCheckStatus *string `json:"HealthCheckStatus,omitempty" name:"HealthCheckStatus"` + + // DPD探测开关。默认为0,表示关闭DPD探测。可选值:0(关闭),1(开启) + // 注意:此字段可能返回 null,表示取不到有效值。 + DpdEnable *int64 `json:"DpdEnable,omitempty" name:"DpdEnable"` + + // DPD超时时间。即探测确认对端不存在需要的时间。 + // 注意:此字段可能返回 null,表示取不到有效值。 + DpdTimeout *string `json:"DpdTimeout,omitempty" name:"DpdTimeout"` + + // DPD超时后的动作。默认为clear。dpdEnable为1(开启)时有效。可取值为clear(断开)和restart(重试) + // 注意:此字段可能返回 null,表示取不到有效值。 + DpdAction *string `json:"DpdAction,omitempty" name:"DpdAction"` + + // 标签键值对数组 + TagSet []*Tag `json:"TagSet,omitempty" name:"TagSet"` + + // 协商类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + NegotiationType *string `json:"NegotiationType,omitempty" name:"NegotiationType"` } type VpnGateway struct { - // 网关实例ID。 VpnGatewayId *string `json:"VpnGatewayId,omitempty" name:"VpnGatewayId"` @@ -18417,7 +23184,6 @@ type VpnGateway struct { } type VpnGatewayQuota struct { - // 带宽配额 Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` @@ -18429,7 +23195,6 @@ type VpnGatewayQuota struct { } type VpnGatewayRoute struct { - // 目的端IDC网段 DestinationCidrBlock *string `json:"DestinationCidrBlock,omitempty" name:"DestinationCidrBlock"` @@ -18459,7 +23224,6 @@ type VpnGatewayRoute struct { } type VpnGatewayRouteModify struct { - // Vpn网关路由ID RouteId *string `json:"RouteId,omitempty" name:"RouteId"` @@ -18468,7 +23232,6 @@ type VpnGatewayRouteModify struct { } type VpngwCcnRoutes struct { - // 路由信息ID RouteId *string `json:"RouteId,omitempty" name:"RouteId"` @@ -18478,9 +23241,18 @@ type VpngwCcnRoutes struct { Status *string `json:"Status,omitempty" name:"Status"` } +// Predefined struct for user +type WithdrawNotifyRoutesRequestParams struct { + // 路由表唯一ID。 + RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` + + // 路由策略唯一ID。 + RouteItemIds []*string `json:"RouteItemIds,omitempty" name:"RouteItemIds"` +} + type WithdrawNotifyRoutesRequest struct { *tchttp.BaseRequest - + // 路由表唯一ID。 RouteTableId *string `json:"RouteTableId,omitempty" name:"RouteTableId"` @@ -18508,13 +23280,15 @@ func (r *WithdrawNotifyRoutesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type WithdrawNotifyRoutesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type WithdrawNotifyRoutesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *WithdrawNotifyRoutesResponseParams `json:"Response"` } func (r *WithdrawNotifyRoutesResponse) ToJsonString() string { @@ -18526,4 +23300,4 @@ func (r *WithdrawNotifyRoutesResponse) ToJsonString() string { // because it has no param check, nor strict type check func (r *WithdrawNotifyRoutesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) -} +} \ No newline at end of file diff --git a/vendor/modules.txt b/vendor/modules.txt index c4ffba5abd..543a242248 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -617,7 +617,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem/v20210701 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke/v20180525 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vod v1.0.199 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vod/v20180717 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.398 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.479 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss/v20180426 From 998e8c1afe0ed3c6527ff9d06d0cfdcf5c06fc8b Mon Sep 17 00:00:00 2001 From: mikatong Date: Tue, 23 Aug 2022 15:53:26 +0800 Subject: [PATCH 2/2] fix: support set dpd --- go.mod | 4 ++-- go.sum | 2 ++ tencentcloud/resource_tc_vpn_connection_test.go | 2 ++ .../tencentcloud-sdk-go/tencentcloud/common/http/request.go | 2 +- vendor/modules.txt | 2 +- website/docs/r/vpn_connection.html.markdown | 3 +++ 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 3c25960b46..d1a0375d3c 100644 --- a/go.mod +++ b/go.mod @@ -33,7 +33,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.445 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.199 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.412 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.472 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.479 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.445 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.359 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dayu v1.0.335 @@ -68,5 +68,5 @@ require ( github.com/yangwenmai/ratelimit v0.0.0-20180104140304-44221c2292e1 github.com/zclconf/go-cty v1.4.2 // indirect golang.org/x/sys v0.0.0-20200523222454-059865788121 // indirect - gopkg.in/yaml.v2 v2.2.8 // indirect + gopkg.in/yaml.v2 v2.2.8 ) diff --git a/go.sum b/go.sum index cc5ac9c542..3bcb612ebe 100644 --- a/go.sum +++ b/go.sum @@ -494,6 +494,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.445/go.mod github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.466/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.472 h1:kQxDatbhm8AbZebhnP7xgBBsXHqt3WfGfIPxE9Qmdmk= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.472/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.479 h1:3kwDb6p1J3LxmwnNgSSEheemPffo+vMewoDzKysYdig= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.479/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.445 h1:Bh7XD0ypNMHYyBOM8hhKsSu+y0VVKUnJVS+YKKhfpGg= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.445/go.mod h1:jMDD351efCFpT1+KVFbcpu6SbmP4TYmp4qkoCfr63nQ= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.359 h1:cNKqelPgUxrJkLY0Azd2QHr/UMYOPPnmqs88clt2akk= diff --git a/tencentcloud/resource_tc_vpn_connection_test.go b/tencentcloud/resource_tc_vpn_connection_test.go index c436489428..a9ce82013f 100644 --- a/tencentcloud/resource_tc_vpn_connection_test.go +++ b/tencentcloud/resource_tc_vpn_connection_test.go @@ -79,6 +79,7 @@ func TestAccTencentCloudVpnConnection_basic(t *testing.T) { resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "dpd_enable", "0"), resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "dpd_timeout", "30"), resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "dpd_action", "clear"), + resource.TestCheckResourceAttr("tencentcloud_vpn_connection.connection", "enable_health_check", "false"), ), }, { @@ -313,6 +314,7 @@ resource "tencentcloud_vpn_connection" "connection" { tags = { test = "testt" } + enable_health_check = false } ` diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go index 61aadc28fd..8d0dce936f 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go @@ -265,7 +265,7 @@ func CompleteCommonParams(request Request, region string) { params["Action"] = request.GetAction() params["Timestamp"] = strconv.FormatInt(time.Now().Unix(), 10) params["Nonce"] = strconv.Itoa(rand.Int()) - params["RequestClient"] = "SDK_GO_1.0.472" + params["RequestClient"] = "SDK_GO_1.0.479" } func ConstructParams(req Request) (err error) { diff --git a/vendor/modules.txt b/vendor/modules.txt index 543a242248..7cf6207ffb 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -555,7 +555,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit/v20190319 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.412 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls/v20201016 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.472 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.479 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 diff --git a/website/docs/r/vpn_connection.html.markdown b/website/docs/r/vpn_connection.html.markdown index 42741d760b..c4682014b1 100644 --- a/website/docs/r/vpn_connection.html.markdown +++ b/website/docs/r/vpn_connection.html.markdown @@ -54,6 +54,9 @@ The following arguments are supported: * `pre_share_key` - (Required, String) Pre-shared key of the VPN connection. * `security_group_policy` - (Required, Set) Security group policy of the VPN connection. * `vpn_gateway_id` - (Required, String, ForceNew) ID of the VPN gateway. +* `dpd_action` - (Optional, String) The action after DPD timeout. Valid values: clear (disconnect) and restart (try again). It is valid when DpdEnable is 1. +* `dpd_enable` - (Optional, Int) Specifies whether to enable DPD. Valid values: 0 (disable) and 1 (enable). +* `dpd_timeout` - (Optional, Int) DPD timeout period.Valid value ranges: [30~60], Default: 30; unit: second. If the request is not responded within this period, the peer end is considered not exists. This parameter is valid when the value of DpdEnable is 1. * `enable_health_check` - (Optional, Bool) Whether intra-tunnel health checks are supported. * `health_check_local_ip` - (Optional, String) Health check the address of this terminal. * `health_check_remote_ip` - (Optional, String) Health check peer address.