From 8657a89b0cbf9ef09003e3143d4e25ac2a3a9ebf Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Tue, 4 Jul 2023 16:31:27 +0800 Subject: [PATCH 1/5] fix/eip-support --- go.mod | 4 +- go.sum | 4 + .../resource_tc_eip_public_address_adjust.go | 21 +++-- ...ource_tc_eip_public_address_adjust_test.go | 15 ++- .../tencentcloud/common/http/request.go | 2 +- .../tencentcloud/vpc/v20170312/client.go | 94 ++++++++++++++++--- .../tencentcloud/vpc/v20170312/errors.go | 15 +++ .../tencentcloud/vpc/v20170312/models.go | 36 ++++--- vendor/modules.txt | 4 +- 9 files changed, 144 insertions(+), 51 deletions(-) diff --git a/go.mod b/go.mod index 0392a5062d..8058aa409d 100644 --- a/go.mod +++ b/go.mod @@ -39,7 +39,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.659 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.544 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.663 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.692 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.693 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.589 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.692 @@ -86,7 +86,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tse v1.0.650 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tsf v1.0.674 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vod v1.0.199 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.669 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.693 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199 github.com/tencentyun/cos-go-sdk-v5 v0.7.42-0.20230629101357-7edd77448a0f github.com/yangwenmai/ratelimit v0.0.0-20180104140304-44221c2292e1 diff --git a/go.sum b/go.sum index bb422ddf6f..57d031018d 100644 --- a/go.sum +++ b/go.sum @@ -870,6 +870,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.691 h1:LCYZ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.691/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.692 h1:BS3D1DcM2nRMPYW9DaIQT0OaQ7A0AkUl3zglBBXalB4= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.692/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.693 h1:RHMxHLQFonA430D1prj5ROhFDmdob3glrIwzYTGILWE= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.693/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 h1:nEZqsoqt1pEoaP9JjkHQy3/H00suCfzlHW1qOm2nYD8= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624/go.mod h1:+TXSVyeKwt1IhZRqKPbTREteBcP+K07Q846/ilNzLWA= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.589 h1:LZihgirMH0vsaGScYexxwY0fTss9vHaSZs/YOQUVESg= @@ -971,6 +973,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.669 h1:KCU7jNan7oVcTbPElce0YSKr43eyBWpADJhXzzxoeH8= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.669/go.mod h1:G09Hi7iUBxaXmKHUFqeI4FIPWTl4tNHEI9FlwZLElfQ= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.693 h1:z21P4lpcjqB4a9Ez8AOwhyzaDaEc/AtIHlFqHSnVvVA= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.693/go.mod h1:5/ICk0YQdlnZTpBdSIjIdgxddj5XyUf6Dc1MvLZ4lg8= 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.40 h1:W6vDGKCHe4wBACI1d2UgE6+50sJFhRWU4O8IB2ozzxM= diff --git a/tencentcloud/resource_tc_eip_public_address_adjust.go b/tencentcloud/resource_tc_eip_public_address_adjust.go index 1b7448f2ff..28646094df 100644 --- a/tencentcloud/resource_tc_eip_public_address_adjust.go +++ b/tencentcloud/resource_tc_eip_public_address_adjust.go @@ -5,8 +5,8 @@ Example Usage ```hcl resource "tencentcloud_eip_public_address_adjust" "public_address_adjust" { - instance_id = "ins-osckfnm7" - address_id = "eip-erft45fu" + instance_id = "ins-cr2rfq78" + address_id = "eip-erft45fu" } ``` */ @@ -34,7 +34,6 @@ func resourceTencentCloudEipPublicAddressAdjust() *schema.Resource { Type: schema.TypeString, Description: "A unique ID that identifies the CVM instance. The unique ID of CVM is in the form:`ins-osckfnm7`.", }, - "address_id": { Optional: true, ForceNew: true, @@ -49,13 +48,15 @@ func resourceTencentCloudEipPublicAddressAdjustCreate(d *schema.ResourceData, me defer logElapsed("resource.tencentcloud_vpc_public_address_adjust.create")() defer inconsistentCheck(d, meta)() - logId := getLogId(contextNil) - var ( + logId = getLogId(contextNil) + service = VpcService{client: meta.(*TencentCloudClient).apiV3Conn} request = vpc.NewAdjustPublicAddressRequest() instanceId string addressId string + taskId uint64 ) + if v, ok := d.GetOk("instance_id"); ok { instanceId = v.(string) request.InstanceId = helper.String(v.(string)) @@ -73,23 +74,23 @@ func resourceTencentCloudEipPublicAddressAdjustCreate(d *schema.ResourceData, me } else { log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) } + + taskId = *result.Response.TaskId return nil }) + if err != nil { log.Printf("[CRITAL]%s operate vpc publicAddressAdjust failed, reason:%+v", logId, err) return err } - d.SetId(instanceId + FILED_SP + addressId) - - service := VpcService{client: meta.(*TencentCloudClient).apiV3Conn} - - conf := BuildStateChangeConf([]string{}, []string{"SUCCESS"}, 1*readRetryTimeout, time.Second, service.VpcIpv6AddressStateRefreshFunc(d.Id(), []string{})) + conf := BuildStateChangeConf([]string{}, []string{"SUCCESS"}, 1*readRetryTimeout, time.Second, service.VpcIpv6AddressStateRefreshFunc(helper.UInt64ToStr(taskId), []string{})) if _, e := conf.WaitForState(); e != nil { return e } + d.SetId(instanceId + FILED_SP + addressId) return resourceTencentCloudEipPublicAddressAdjustRead(d, meta) } diff --git a/tencentcloud/resource_tc_eip_public_address_adjust_test.go b/tencentcloud/resource_tc_eip_public_address_adjust_test.go index 30812544e5..4d685cdd29 100644 --- a/tencentcloud/resource_tc_eip_public_address_adjust_test.go +++ b/tencentcloud/resource_tc_eip_public_address_adjust_test.go @@ -6,6 +6,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" ) +// go test -i; go test -test.run TestAccTencentCloudNeedFixVpcPublicAddressAdjustResource_basic -v func TestAccTencentCloudNeedFixVpcPublicAddressAdjustResource_basic(t *testing.T) { t.Parallel() resource.Test(t, resource.TestCase{ @@ -16,21 +17,17 @@ func TestAccTencentCloudNeedFixVpcPublicAddressAdjustResource_basic(t *testing.T Steps: []resource.TestStep{ { Config: testAccVpcPublicAddressAdjust, - Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_eip_public_address_adjust.public_address_adjust", "id")), - }, - { - ResourceName: "tencentcloud_eip_public_address_adjust.public_address_adjust", - ImportState: true, - ImportStateVerify: true, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("tencentcloud_eip_public_address_adjust.public_address_adjust", "id"), + ), }, }, }) } const testAccVpcPublicAddressAdjust = ` - resource "tencentcloud_eip_public_address_adjust" "public_address_adjust" { - instance_id = "ins-osckfnm7" + instance_id = "ins-cr2rfq78" + address_id = "eip-erft45fu" } - ` 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 9075bbbd40..c13367face 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, requestClient 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.692" + params["RequestClient"] = "SDK_GO_1.0.693" if requestClient != "" { params["RequestClient"] += ": " + requestClient } 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 4ce6f90912..5323f00325 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 @@ -219,6 +219,7 @@ func NewAddIp6RulesResponse() (response *AddIp6RulesResponse) { // 可能返回的错误码: // INTERNALSERVERERROR = "InternalServerError" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE_IPV6RULEIDEXISTED = "InvalidParameterValue.IPv6RuleIdExisted" // LIMITEXCEEDED = "LimitExceeded" func (c *Client) AddIp6Rules(request *AddIp6RulesRequest) (response *AddIp6RulesResponse, err error) { return c.AddIp6RulesWithContext(context.Background(), request) @@ -234,6 +235,7 @@ func (c *Client) AddIp6Rules(request *AddIp6RulesRequest) (response *AddIp6Rules // 可能返回的错误码: // INTERNALSERVERERROR = "InternalServerError" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE_IPV6RULEIDEXISTED = "InvalidParameterValue.IPv6RuleIdExisted" // LIMITEXCEEDED = "LimitExceeded" func (c *Client) AddIp6RulesWithContext(ctx context.Context, request *AddIp6RulesRequest) (response *AddIp6RulesResponse, err error) { if request == nil { @@ -448,6 +450,7 @@ func NewAllocateAddressesResponse() (response *AllocateAddressesResponse) { // INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" // INVALIDPARAMETERVALUE_UNAVAILABLEZONE = "InvalidParameterValue.UnavailableZone" // LIMITEXCEEDED_BANDWIDTHPACKAGEQUOTA = "LimitExceeded.BandwidthPackageQuota" +// LIMITEXCEEDED_BANDWIDTHPACKAGERESOURCEQUOTA = "LimitExceeded.BandwidthPackageResourceQuota" // LIMITEXCEEDED_MONTHLYADDRESSRECOVERYQUOTA = "LimitExceeded.MonthlyAddressRecoveryQuota" // LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" // RESOURCEINSUFFICIENT = "ResourceInsufficient" @@ -496,6 +499,7 @@ func (c *Client) AllocateAddresses(request *AllocateAddressesRequest) (response // INVALIDPARAMETERVALUE_TAGNOTEXISTED = "InvalidParameterValue.TagNotExisted" // INVALIDPARAMETERVALUE_UNAVAILABLEZONE = "InvalidParameterValue.UnavailableZone" // LIMITEXCEEDED_BANDWIDTHPACKAGEQUOTA = "LimitExceeded.BandwidthPackageQuota" +// LIMITEXCEEDED_BANDWIDTHPACKAGERESOURCEQUOTA = "LimitExceeded.BandwidthPackageResourceQuota" // LIMITEXCEEDED_MONTHLYADDRESSRECOVERYQUOTA = "LimitExceeded.MonthlyAddressRecoveryQuota" // LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" // RESOURCEINSUFFICIENT = "ResourceInsufficient" @@ -633,6 +637,7 @@ func NewAssignIpv6AddressesResponse() (response *AssignIpv6AddressesResponse) { // * 在弹性网卡上申请一个到多个辅助`IPv6`地址,接口会在弹性网卡所在子网段内返回指定数量的辅助`IPv6`地址。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" @@ -665,6 +670,7 @@ func (c *Client) AssignIpv6Addresses(request *AssignIpv6AddressesRequest) (respo // * 在弹性网卡上申请一个到多个辅助`IPv6`地址,接口会在弹性网卡所在子网段内返回指定数量的辅助`IPv6`地址。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" @@ -952,7 +958,7 @@ func NewAssociateAddressResponse() (response *AssociateAddressResponse) { // // * 将 EIP 绑定到指定网卡的内网 IP上(非主网卡的主内网IP),则必须先解绑该 EIP,才能再绑定新的。 // -// * 将EIP绑定到绑定内网型CLB实例的功能处于内测阶段,如需使用,请提交内测申请。 +// * 将 EIP 绑定到内网型CLB实例的功能处于内测阶段,如需使用,请提交内测申请。 // // * 将 EIP 绑定到NAT网关,请使用接口[AssociateNatGatewayAddress](https://cloud.tencent.com/document/product/215/36722) // @@ -1012,7 +1018,7 @@ func (c *Client) AssociateAddress(request *AssociateAddressRequest) (response *A // // * 将 EIP 绑定到指定网卡的内网 IP上(非主网卡的主内网IP),则必须先解绑该 EIP,才能再绑定新的。 // -// * 将EIP绑定到绑定内网型CLB实例的功能处于内测阶段,如需使用,请提交内测申请。 +// * 将 EIP 绑定到内网型CLB实例的功能处于内测阶段,如需使用,请提交内测申请。 // // * 将 EIP 绑定到NAT网关,请使用接口[AssociateNatGatewayAddress](https://cloud.tencent.com/document/product/215/36722) // @@ -1599,6 +1605,7 @@ func NewAttachNetworkInterfaceResponse() (response *AttachNetworkInterfaceRespon // 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`DescribeVpcTaskResult`接口。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" @@ -1631,6 +1638,7 @@ func (c *Client) AttachNetworkInterface(request *AttachNetworkInterfaceRequest) // 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`DescribeVpcTaskResult`接口。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" @@ -1680,6 +1688,7 @@ func NewAttachSnapshotInstancesResponse() (response *AttachSnapshotInstancesResp // // 可能返回的错误码: // INVALIDPARAMETERVALUE_DUPLICATEPARA = "InvalidParameterValue.DuplicatePara" +// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // LIMITEXCEEDED = "LimitExceeded" // LIMITEXCEEDED_ATTACHEDSNAPSHOTPOLICYEXCEEDED = "LimitExceeded.AttachedSnapshotPolicyExceeded" @@ -1695,6 +1704,7 @@ func (c *Client) AttachSnapshotInstances(request *AttachSnapshotInstancesRequest // // 可能返回的错误码: // INVALIDPARAMETERVALUE_DUPLICATEPARA = "InvalidParameterValue.DuplicatePara" +// INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // LIMITEXCEEDED = "LimitExceeded" // LIMITEXCEEDED_ATTACHEDSNAPSHOTPOLICYEXCEEDED = "LimitExceeded.AttachedSnapshotPolicyExceeded" @@ -3047,6 +3057,7 @@ func NewCreateFlowLogResponse() (response *CreateFlowLogResponse) { // RESOURCENOTFOUND = "ResourceNotFound" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNSUPPORTEDOPERATION_DPDKNATFLOWLOGONLYSUPPORTALLTRAFFICTYPE = "UnsupportedOperation.DpdkNatFlowLogOnlySupportAllTrafficType" +// UNSUPPORTEDOPERATION_FLOWLOGINSTANCEEXISTED = "UnsupportedOperation.FlowLogInstanceExisted" // UNSUPPORTEDOPERATION_FLOWLOGSNOTSUPPORTKOINSTANCEENI = "UnsupportedOperation.FlowLogsNotSupportKoInstanceEni" // UNSUPPORTEDOPERATION_FLOWLOGSNOTSUPPORTNULLINSTANCEENI = "UnsupportedOperation.FlowLogsNotSupportNullInstanceEni" // UNSUPPORTEDOPERATION_ONLYSUPPORTPROFESSIONKAFKA = "UnsupportedOperation.OnlySupportProfessionKafka" @@ -3090,6 +3101,7 @@ func (c *Client) CreateFlowLog(request *CreateFlowLogRequest) (response *CreateF // RESOURCENOTFOUND = "ResourceNotFound" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNSUPPORTEDOPERATION_DPDKNATFLOWLOGONLYSUPPORTALLTRAFFICTYPE = "UnsupportedOperation.DpdkNatFlowLogOnlySupportAllTrafficType" +// UNSUPPORTEDOPERATION_FLOWLOGINSTANCEEXISTED = "UnsupportedOperation.FlowLogInstanceExisted" // UNSUPPORTEDOPERATION_FLOWLOGSNOTSUPPORTKOINSTANCEENI = "UnsupportedOperation.FlowLogsNotSupportKoInstanceEni" // UNSUPPORTEDOPERATION_FLOWLOGSNOTSUPPORTNULLINSTANCEENI = "UnsupportedOperation.FlowLogsNotSupportNullInstanceEni" // UNSUPPORTEDOPERATION_ONLYSUPPORTPROFESSIONKAFKA = "UnsupportedOperation.OnlySupportProfessionKafka" @@ -3147,6 +3159,7 @@ func NewCreateHaVipResponse() (response *CreateHaVipResponse) { // RESOURCEINUSE = "ResourceInUse" // RESOURCEINSUFFICIENT = "ResourceInsufficient" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_SUBNETNOTEXISTS = "UnsupportedOperation.SubnetNotExists" func (c *Client) CreateHaVip(request *CreateHaVipRequest) (response *CreateHaVipResponse, err error) { return c.CreateHaVipWithContext(context.Background(), request) } @@ -3167,6 +3180,7 @@ func (c *Client) CreateHaVip(request *CreateHaVipRequest) (response *CreateHaVip // RESOURCEINUSE = "ResourceInUse" // RESOURCEINSUFFICIENT = "ResourceInsufficient" // RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION_SUBNETNOTEXISTS = "UnsupportedOperation.SubnetNotExists" func (c *Client) CreateHaVipWithContext(ctx context.Context, request *CreateHaVipRequest) (response *CreateHaVipResponse, err error) { if request == nil { request = NewCreateHaVipRequest() @@ -3476,6 +3490,7 @@ func NewCreateNatGatewayDestinationIpPortTranslationNatRuleResponse() (response // INVALIDPARAMETERVALUE_NATGATEWAYDNATRULEPIPNEEDVM = "InvalidParameterValue.NatGatewayDnatRulePipNeedVm" // INVALIDPARAMETERVALUE_NATGATEWAYDNATRULEREPEATED = "InvalidParameterValue.NatGatewayDnatRuleRepeated" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_NATGATEWAYEIPNOTEXISTS = "UnsupportedOperation.NatGatewayEipNotExists" func (c *Client) CreateNatGatewayDestinationIpPortTranslationNatRule(request *CreateNatGatewayDestinationIpPortTranslationNatRuleRequest) (response *CreateNatGatewayDestinationIpPortTranslationNatRuleResponse, err error) { @@ -3491,6 +3506,7 @@ func (c *Client) CreateNatGatewayDestinationIpPortTranslationNatRule(request *Cr // INVALIDPARAMETERVALUE_NATGATEWAYDNATRULEPIPNEEDVM = "InvalidParameterValue.NatGatewayDnatRulePipNeedVm" // INVALIDPARAMETERVALUE_NATGATEWAYDNATRULEREPEATED = "InvalidParameterValue.NatGatewayDnatRuleRepeated" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// LIMITEXCEEDED = "LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_NATGATEWAYEIPNOTEXISTS = "UnsupportedOperation.NatGatewayEipNotExists" func (c *Client) CreateNatGatewayDestinationIpPortTranslationNatRuleWithContext(ctx context.Context, request *CreateNatGatewayDestinationIpPortTranslationNatRuleRequest) (response *CreateNatGatewayDestinationIpPortTranslationNatRuleResponse, err error) { @@ -5337,6 +5353,7 @@ func NewCreateVpcEndPointServiceResponse() (response *CreateVpcEndPointServiceRe // 本接口(CreateVpcEndPointService)用于创建终端节点服务。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" @@ -5348,6 +5365,7 @@ func NewCreateVpcEndPointServiceResponse() (response *CreateVpcEndPointServiceRe // UNSUPPORTEDOPERATION_INSTANCEMISMATCH = "UnsupportedOperation.InstanceMismatch" // UNSUPPORTEDOPERATION_NOTMATCHTARGETSERVICE = "UnsupportedOperation.NotMatchTargetService" // UNSUPPORTEDOPERATION_RESOURCEISINVALIDSTATE = "UnsupportedOperation.ResourceIsInvalidState" +// UNSUPPORTEDOPERATION_ROLENOTFOUND = "UnsupportedOperation.RoleNotFound" // UNSUPPORTEDOPERATION_VPCMISMATCH = "UnsupportedOperation.VpcMismatch" func (c *Client) CreateVpcEndPointService(request *CreateVpcEndPointServiceRequest) (response *CreateVpcEndPointServiceResponse, err error) { return c.CreateVpcEndPointServiceWithContext(context.Background(), request) @@ -5357,6 +5375,7 @@ func (c *Client) CreateVpcEndPointService(request *CreateVpcEndPointServiceReque // 本接口(CreateVpcEndPointService)用于创建终端节点服务。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" @@ -5368,6 +5387,7 @@ func (c *Client) CreateVpcEndPointService(request *CreateVpcEndPointServiceReque // UNSUPPORTEDOPERATION_INSTANCEMISMATCH = "UnsupportedOperation.InstanceMismatch" // UNSUPPORTEDOPERATION_NOTMATCHTARGETSERVICE = "UnsupportedOperation.NotMatchTargetService" // UNSUPPORTEDOPERATION_RESOURCEISINVALIDSTATE = "UnsupportedOperation.ResourceIsInvalidState" +// UNSUPPORTEDOPERATION_ROLENOTFOUND = "UnsupportedOperation.RoleNotFound" // UNSUPPORTEDOPERATION_VPCMISMATCH = "UnsupportedOperation.VpcMismatch" func (c *Client) CreateVpcEndPointServiceWithContext(ctx context.Context, request *CreateVpcEndPointServiceRequest) (response *CreateVpcEndPointServiceResponse, err error) { if request == nil { @@ -5468,6 +5488,7 @@ func NewCreateVpnConnectionResponse() (response *CreateVpnConnectionResponse) { // // 可能返回的错误码: // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" +// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" @@ -5514,6 +5535,7 @@ func (c *Client) CreateVpnConnection(request *CreateVpnConnectionRequest) (respo // // 可能返回的错误码: // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" +// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TAGDUPLICATEKEY = "InvalidParameterValue.TagDuplicateKey" @@ -7442,7 +7464,7 @@ func NewDeleteSubnetResponse() (response *DeleteSubnetResponse) { } // DeleteSubnet -// 本接口(DeleteSubnet)用于用于删除子网(Subnet)。 +// 本接口(DeleteSubnet)用于删除子网(Subnet)。 // // * 删除子网前,请清理该子网下所有资源,包括云服务器、负载均衡、云数据、NoSQL、弹性网卡等资源。 // @@ -7457,7 +7479,7 @@ func (c *Client) DeleteSubnet(request *DeleteSubnetRequest) (response *DeleteSub } // DeleteSubnet -// 本接口(DeleteSubnet)用于用于删除子网(Subnet)。 +// 本接口(DeleteSubnet)用于删除子网(Subnet)。 // // * 删除子网前,请清理该子网下所有资源,包括云服务器、负载均衡、云数据、NoSQL、弹性网卡等资源。 // @@ -7620,6 +7642,7 @@ func NewDeleteVpcResponse() (response *DeleteVpcResponse) { // FAILEDOPERATION_NETDETECTTIMEOUT = "FailedOperation.NetDetectTimeOut" // INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// LIMITEXCEEDED_ACTIONLIMITED = "LimitExceeded.ActionLimited" // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" @@ -7640,6 +7663,7 @@ func (c *Client) DeleteVpc(request *DeleteVpcRequest) (response *DeleteVpcRespon // FAILEDOPERATION_NETDETECTTIMEOUT = "FailedOperation.NetDetectTimeOut" // INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// LIMITEXCEEDED_ACTIONLIMITED = "LimitExceeded.ActionLimited" // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" @@ -8121,9 +8145,7 @@ func NewDescribeAccountAttributesResponse() (response *DescribeAccountAttributes // 本接口(DescribeAccountAttributes)用于查询用户账号私有属性。 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// RESOURCENOTFOUND = "ResourceNotFound" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" func (c *Client) DescribeAccountAttributes(request *DescribeAccountAttributesRequest) (response *DescribeAccountAttributesResponse, err error) { return c.DescribeAccountAttributesWithContext(context.Background(), request) } @@ -8132,9 +8154,7 @@ func (c *Client) DescribeAccountAttributes(request *DescribeAccountAttributesReq // 本接口(DescribeAccountAttributes)用于查询用户账号私有属性。 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// RESOURCENOTFOUND = "ResourceNotFound" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" func (c *Client) DescribeAccountAttributesWithContext(ctx context.Context, request *DescribeAccountAttributesRequest) (response *DescribeAccountAttributesResponse, err error) { if request == nil { request = NewDescribeAccountAttributesRequest() @@ -8338,6 +8358,7 @@ func NewDescribeAddressesResponse() (response *DescribeAddressesResponse) { // INVALIDPARAMETERVALUE_ADDRESSIDMALFORMED = "InvalidParameterValue.AddressIdMalformed" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_NETWORKINTERFACEIDMALFORMED = "InvalidParameterValue.NetworkInterfaceIdMalformed" +// INVALIDPARAMETERVALUE_RESOURCEIDMALFORMED = "InvalidParameterValue.ResourceIdMalformed" // LIMITEXCEEDED_NUMBEROFFILTERS = "LimitExceeded.NumberOfFilters" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeAddresses(request *DescribeAddressesRequest) (response *DescribeAddressesResponse, err error) { @@ -8355,6 +8376,7 @@ func (c *Client) DescribeAddresses(request *DescribeAddressesRequest) (response // INVALIDPARAMETERVALUE_ADDRESSIDMALFORMED = "InvalidParameterValue.AddressIdMalformed" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_NETWORKINTERFACEIDMALFORMED = "InvalidParameterValue.NetworkInterfaceIdMalformed" +// INVALIDPARAMETERVALUE_RESOURCEIDMALFORMED = "InvalidParameterValue.ResourceIdMalformed" // LIMITEXCEEDED_NUMBEROFFILTERS = "LimitExceeded.NumberOfFilters" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeAddressesWithContext(ctx context.Context, request *DescribeAddressesRequest) (response *DescribeAddressesResponse, err error) { @@ -9227,6 +9249,7 @@ func NewDescribeCustomerGatewaysResponse() (response *DescribeCustomerGatewaysRe // 本接口(DescribeCustomerGateways)用于查询对端网关列表。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCENOTFOUND = "ResourceNotFound" @@ -9238,6 +9261,7 @@ func (c *Client) DescribeCustomerGateways(request *DescribeCustomerGatewaysReque // 本接口(DescribeCustomerGateways)用于查询对端网关列表。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCENOTFOUND = "ResourceNotFound" @@ -9391,6 +9415,7 @@ func NewDescribeDirectConnectGatewaysResponse() (response *DescribeDirectConnect // 本接口(DescribeDirectConnectGateways)用于查询专线网关。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETER_FILTERNOTDICT = "InvalidParameter.FilterNotDict" // INVALIDPARAMETER_FILTERVALUESNOTLIST = "InvalidParameter.FilterValuesNotList" @@ -9407,6 +9432,7 @@ func (c *Client) DescribeDirectConnectGateways(request *DescribeDirectConnectGat // 本接口(DescribeDirectConnectGateways)用于查询专线网关。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETER_FILTERNOTDICT = "InvalidParameter.FilterNotDict" // INVALIDPARAMETER_FILTERVALUESNOTLIST = "InvalidParameter.FilterValuesNotList" @@ -9563,6 +9589,7 @@ func NewDescribeGatewayFlowMonitorDetailResponse() (response *DescribeGatewayFlo // * 如果网关有流量,但调用本接口没有返回数据,请在控制台对应网关详情页确认是否开启网关流量监控。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // UNSUPPORTEDOPERATION = "UnsupportedOperation" @@ -9578,6 +9605,7 @@ func (c *Client) DescribeGatewayFlowMonitorDetail(request *DescribeGatewayFlowMo // * 如果网关有流量,但调用本接口没有返回数据,请在控制台对应网关详情页确认是否开启网关流量监控。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // UNSUPPORTEDOPERATION = "UnsupportedOperation" @@ -9675,6 +9703,7 @@ func NewDescribeHaVipsResponse() (response *DescribeHaVipsResponse) { // 本接口(DescribeHaVips)用于查询高可用虚拟IP(HAVIP)列表。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" @@ -9689,6 +9718,7 @@ func (c *Client) DescribeHaVips(request *DescribeHaVipsRequest) (response *Descr // 本接口(DescribeHaVips)用于查询高可用虚拟IP(HAVIP)列表。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" @@ -10089,6 +10119,7 @@ func NewDescribeNatGatewayDestinationIpPortTranslationNatRulesResponse() (respon // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" func (c *Client) DescribeNatGatewayDestinationIpPortTranslationNatRules(request *DescribeNatGatewayDestinationIpPortTranslationNatRulesRequest) (response *DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse, err error) { return c.DescribeNatGatewayDestinationIpPortTranslationNatRulesWithContext(context.Background(), request) @@ -10106,6 +10137,7 @@ func (c *Client) DescribeNatGatewayDestinationIpPortTranslationNatRules(request // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" func (c *Client) DescribeNatGatewayDestinationIpPortTranslationNatRulesWithContext(ctx context.Context, request *DescribeNatGatewayDestinationIpPortTranslationNatRulesRequest) (response *DescribeNatGatewayDestinationIpPortTranslationNatRulesResponse, err error) { if request == nil { @@ -10209,6 +10241,7 @@ func NewDescribeNatGatewaySourceIpTranslationNatRulesResponse() (response *Descr // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) DescribeNatGatewaySourceIpTranslationNatRules(request *DescribeNatGatewaySourceIpTranslationNatRulesRequest) (response *DescribeNatGatewaySourceIpTranslationNatRulesResponse, err error) { return c.DescribeNatGatewaySourceIpTranslationNatRulesWithContext(context.Background(), request) @@ -10226,6 +10259,7 @@ func (c *Client) DescribeNatGatewaySourceIpTranslationNatRules(request *Describe // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) DescribeNatGatewaySourceIpTranslationNatRulesWithContext(ctx context.Context, request *DescribeNatGatewaySourceIpTranslationNatRulesRequest) (response *DescribeNatGatewaySourceIpTranslationNatRulesResponse, err error) { if request == nil { @@ -10273,6 +10307,7 @@ func NewDescribeNatGatewaysResponse() (response *DescribeNatGatewaysResponse) { // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" func (c *Client) DescribeNatGateways(request *DescribeNatGatewaysRequest) (response *DescribeNatGatewaysResponse, err error) { @@ -10291,6 +10326,7 @@ func (c *Client) DescribeNatGateways(request *DescribeNatGatewaysRequest) (respo // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" +// RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_ACTIONNOTFOUND = "UnsupportedOperation.ActionNotFound" func (c *Client) DescribeNatGatewaysWithContext(ctx context.Context, request *DescribeNatGatewaysRequest) (response *DescribeNatGatewaysResponse, err error) { @@ -10579,6 +10615,7 @@ func NewDescribeNetworkAclsResponse() (response *DescribeNetworkAclsResponse) { // 本接口(DescribeNetworkAcls)用于查询网络ACL列表。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" @@ -10595,6 +10632,7 @@ func (c *Client) DescribeNetworkAcls(request *DescribeNetworkAclsRequest) (respo // 本接口(DescribeNetworkAcls)用于查询网络ACL列表。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" @@ -10765,6 +10803,7 @@ func NewDescribeProductQuotaResponse() (response *DescribeProductQuotaResponse) // 本接口(DescribeProductQuota)用于查询网络产品的配额信息。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" func (c *Client) DescribeProductQuota(request *DescribeProductQuotaRequest) (response *DescribeProductQuotaResponse, err error) { @@ -10775,6 +10814,7 @@ func (c *Client) DescribeProductQuota(request *DescribeProductQuotaRequest) (res // 本接口(DescribeProductQuota)用于查询网络产品的配额信息。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" func (c *Client) DescribeProductQuotaWithContext(ctx context.Context, request *DescribeProductQuotaRequest) (response *DescribeProductQuotaResponse, err error) { @@ -10862,7 +10902,7 @@ func NewDescribeRouteTablesResponse() (response *DescribeRouteTablesResponse) { } // DescribeRouteTables -// 本接口(DescribeRouteTables)用于查询路由表。 +// 本接口(DescribeRouteTables)用于查询路由表。 // // 可能返回的错误码: // INTERNALERROR_MODULEERROR = "InternalError.ModuleError" @@ -10879,7 +10919,7 @@ func (c *Client) DescribeRouteTables(request *DescribeRouteTablesRequest) (respo } // DescribeRouteTables -// 本接口(DescribeRouteTables)用于查询路由表。 +// 本接口(DescribeRouteTables)用于查询路由表。 // // 可能返回的错误码: // INTERNALERROR_MODULEERROR = "InternalError.ModuleError" @@ -11093,6 +11133,7 @@ func NewDescribeSecurityGroupReferencesResponse() (response *DescribeSecurityGro // 本接口(DescribeSecurityGroupReferences)用于查询安全组被引用信息。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCENOTFOUND = "ResourceNotFound" @@ -11104,6 +11145,7 @@ func (c *Client) DescribeSecurityGroupReferences(request *DescribeSecurityGroupR // 本接口(DescribeSecurityGroupReferences)用于查询安全组被引用信息。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCENOTFOUND = "ResourceNotFound" @@ -11872,9 +11914,10 @@ func NewDescribeUsedIpAddressResponse() (response *DescribeUsedIpAddressResponse // DescribeUsedIpAddress // 本接口(DescribeUsedIpAddress)用于查询Subnet或者Vpc内的ip的使用情况, // -// 如被ip被占用,返回占用ip的资源类别与id;如未被占用,返回空值 +// 如ip被占用,返回占用ip的资源类别与id;如未被占用,返回空值 // // 可能返回的错误码: +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_PARAMETERMISMATCH = "InvalidParameterValue.ParameterMismatch" func (c *Client) DescribeUsedIpAddress(request *DescribeUsedIpAddressRequest) (response *DescribeUsedIpAddressResponse, err error) { return c.DescribeUsedIpAddressWithContext(context.Background(), request) @@ -11883,9 +11926,10 @@ func (c *Client) DescribeUsedIpAddress(request *DescribeUsedIpAddressRequest) (r // DescribeUsedIpAddress // 本接口(DescribeUsedIpAddress)用于查询Subnet或者Vpc内的ip的使用情况, // -// 如被ip被占用,返回占用ip的资源类别与id;如未被占用,返回空值 +// 如ip被占用,返回占用ip的资源类别与id;如未被占用,返回空值 // // 可能返回的错误码: +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_PARAMETERMISMATCH = "InvalidParameterValue.ParameterMismatch" func (c *Client) DescribeUsedIpAddressWithContext(ctx context.Context, request *DescribeUsedIpAddressRequest) (response *DescribeUsedIpAddressResponse, err error) { if request == nil { @@ -12107,6 +12151,7 @@ func NewDescribeVpcInstancesResponse() (response *DescribeVpcInstancesResponse) // 本接口(DescribeVpcInstances)用于查询VPC下的云主机实例列表。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" @@ -12120,6 +12165,7 @@ func (c *Client) DescribeVpcInstances(request *DescribeVpcInstancesRequest) (res // 本接口(DescribeVpcInstances)用于查询VPC下的云主机实例列表。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETER_FILTERINVALIDKEY = "InvalidParameter.FilterInvalidKey" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" @@ -12395,6 +12441,7 @@ func NewDescribeVpcPrivateIpAddressesResponse() (response *DescribeVpcPrivateIpA // 只能查询已使用的IP信息,当查询未使用的IP时,本接口不会报错,但不会出现在返回结果里。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" @@ -12409,6 +12456,7 @@ func (c *Client) DescribeVpcPrivateIpAddresses(request *DescribeVpcPrivateIpAddr // 只能查询已使用的IP信息,当查询未使用的IP时,本接口不会报错,但不会出现在返回结果里。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" @@ -12990,6 +13038,7 @@ func NewDetachCcnInstancesResponse() (response *DetachCcnInstancesResponse) { // // 可能返回的错误码: // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_PARAMETERMISMATCH = "InvalidParameterValue.ParameterMismatch" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" @@ -13007,6 +13056,7 @@ func (c *Client) DetachCcnInstances(request *DetachCcnInstancesRequest) (respons // // 可能返回的错误码: // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_PARAMETERMISMATCH = "InvalidParameterValue.ParameterMismatch" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" // UNSUPPORTEDOPERATION_APPIDMISMATCH = "UnsupportedOperation.AppIdMismatch" @@ -13111,6 +13161,7 @@ func NewDetachNetworkInterfaceResponse() (response *DetachNetworkInterfaceRespon // 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`DescribeVpcTaskResult`接口。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // LIMITEXCEEDED_ACTIONLIMITED = "LimitExceeded.ActionLimited" // RESOURCENOTFOUND = "ResourceNotFound" @@ -13126,6 +13177,7 @@ func (c *Client) DetachNetworkInterface(request *DetachNetworkInterfaceRequest) // 本接口是异步完成,如需查询异步任务执行结果,请使用本接口返回的`RequestId`轮询`DescribeVpcTaskResult`接口。 // // 可能返回的错误码: +// INTERNALERROR_MODULEERROR = "InternalError.ModuleError" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // LIMITEXCEEDED_ACTIONLIMITED = "LimitExceeded.ActionLimited" // RESOURCENOTFOUND = "ResourceNotFound" @@ -13498,6 +13550,7 @@ func NewDisableVpnGatewaySslClientCertResponse() (response *DisableVpnGatewaySsl // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_SSLVPNCLIENTIDNOTFOUND = "UnsupportedOperation.SslVpnClientIdNotFound" func (c *Client) DisableVpnGatewaySslClientCert(request *DisableVpnGatewaySslClientCertRequest) (response *DisableVpnGatewaySslClientCertResponse, err error) { return c.DisableVpnGatewaySslClientCertWithContext(context.Background(), request) } @@ -13509,6 +13562,7 @@ func (c *Client) DisableVpnGatewaySslClientCert(request *DisableVpnGatewaySslCli // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_SSLVPNCLIENTIDNOTFOUND = "UnsupportedOperation.SslVpnClientIdNotFound" func (c *Client) DisableVpnGatewaySslClientCertWithContext(ctx context.Context, request *DisableVpnGatewaySslClientCertRequest) (response *DisableVpnGatewaySslClientCertResponse, err error) { if request == nil { request = NewDisableVpnGatewaySslClientCertRequest() @@ -15359,7 +15413,9 @@ func NewModifyAddressTemplateAttributeResponse() (response *ModifyAddressTemplat // 本接口(ModifyAddressTemplateAttribute)用于修改IP地址模板。 // // 可能返回的错误码: +// INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" +// INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" @@ -15374,7 +15430,9 @@ func (c *Client) ModifyAddressTemplateAttribute(request *ModifyAddressTemplateAt // 本接口(ModifyAddressTemplateAttribute)用于修改IP地址模板。 // // 可能返回的错误码: +// INVALIDPARAMETER_COEXIST = "InvalidParameter.Coexist" // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" +// INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" // INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" @@ -16268,6 +16326,7 @@ func NewModifyIp6RuleResponse() (response *ModifyIp6RuleResponse) { // INTERNALSERVERERROR = "InternalServerError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE_IPV6RULENOTCHANGE = "InvalidParameterValue.IPv6RuleNotChange" +// INVALIDPARAMETERVALUE_IP6RULENOTFOUND = "InvalidParameterValue.Ip6RuleNotFound" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" func (c *Client) ModifyIp6Rule(request *ModifyIp6RuleRequest) (response *ModifyIp6RuleResponse, err error) { return c.ModifyIp6RuleWithContext(context.Background(), request) @@ -16280,6 +16339,7 @@ func (c *Client) ModifyIp6Rule(request *ModifyIp6RuleRequest) (response *ModifyI // INTERNALSERVERERROR = "InternalServerError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE_IPV6RULENOTCHANGE = "InvalidParameterValue.IPv6RuleNotChange" +// INVALIDPARAMETERVALUE_IP6RULENOTFOUND = "InvalidParameterValue.Ip6RuleNotFound" // INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range" func (c *Client) ModifyIp6RuleWithContext(ctx context.Context, request *ModifyIp6RuleRequest) (response *ModifyIp6RuleResponse, err error) { if request == nil { @@ -17024,6 +17084,7 @@ func NewModifyPrivateIpAddressesAttributeResponse() (response *ModifyPrivateIpAd // // 可能返回的错误码: // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_INVALIDSTATE = "UnsupportedOperation.InvalidState" func (c *Client) ModifyPrivateIpAddressesAttribute(request *ModifyPrivateIpAddressesAttributeRequest) (response *ModifyPrivateIpAddressesAttributeResponse, err error) { @@ -17035,6 +17096,7 @@ func (c *Client) ModifyPrivateIpAddressesAttribute(request *ModifyPrivateIpAddre // // 可能返回的错误码: // INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" +// INVALIDPARAMETERVALUE_TOOLONG = "InvalidParameterValue.TooLong" // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION_INVALIDSTATE = "UnsupportedOperation.InvalidState" func (c *Client) ModifyPrivateIpAddressesAttributeWithContext(ctx context.Context, request *ModifyPrivateIpAddressesAttributeRequest) (response *ModifyPrivateIpAddressesAttributeResponse, err error) { @@ -18453,6 +18515,7 @@ func NewRemoveIp6RulesResponse() (response *RemoveIp6RulesResponse) { // 可能返回的错误码: // INTERNALSERVERERROR = "InternalServerError" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE_IP6RULENOTFOUND = "InvalidParameterValue.Ip6RuleNotFound" func (c *Client) RemoveIp6Rules(request *RemoveIp6RulesRequest) (response *RemoveIp6RulesResponse, err error) { return c.RemoveIp6RulesWithContext(context.Background(), request) } @@ -18465,6 +18528,7 @@ func (c *Client) RemoveIp6Rules(request *RemoveIp6RulesRequest) (response *Remov // 可能返回的错误码: // INTERNALSERVERERROR = "InternalServerError" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE_IP6RULENOTFOUND = "InvalidParameterValue.Ip6RuleNotFound" func (c *Client) RemoveIp6RulesWithContext(ctx context.Context, request *RemoveIp6RulesRequest) (response *RemoveIp6RulesResponse, err error) { if request == nil { request = NewRemoveIp6RulesRequest() @@ -19680,6 +19744,7 @@ func NewUnassignIpv6SubnetCidrBlockResponse() (response *UnassignIpv6SubnetCidrB // // 可能返回的错误码: // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) UnassignIpv6SubnetCidrBlock(request *UnassignIpv6SubnetCidrBlockRequest) (response *UnassignIpv6SubnetCidrBlockResponse, err error) { @@ -19693,6 +19758,7 @@ func (c *Client) UnassignIpv6SubnetCidrBlock(request *UnassignIpv6SubnetCidrBloc // // 可能返回的错误码: // INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate" +// INVALIDPARAMETERVALUE_MALFORMED = "InvalidParameterValue.Malformed" // RESOURCEINUSE = "ResourceInUse" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) UnassignIpv6SubnetCidrBlockWithContext(ctx context.Context, request *UnassignIpv6SubnetCidrBlockRequest) (response *UnassignIpv6SubnetCidrBlockResponse, err error) { 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 2783c92e9a..3539e80e2c 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 @@ -197,6 +197,9 @@ const ( // 缺少参数。 INVALIDPARAMETERVALUE_EMPTY = "InvalidParameterValue.Empty" + // IPv6转换实例ID已经存在。 + INVALIDPARAMETERVALUE_IPV6RULEIDEXISTED = "InvalidParameterValue.IPv6RuleIdExisted" + // IPv6规则没有更改。 INVALIDPARAMETERVALUE_IPV6RULENOTCHANGE = "InvalidParameterValue.IPv6RuleNotChange" @@ -251,6 +254,9 @@ const ( // 该Tag不合法。 INVALIDPARAMETERVALUE_INVALIDTAG = "InvalidParameterValue.InvalidTag" + // 未查询到该IPv6规则。 + INVALIDPARAMETERVALUE_IP6RULENOTFOUND = "InvalidParameterValue.Ip6RuleNotFound" + // 未查询到该IPv6翻译器。 INVALIDPARAMETERVALUE_IP6TRANSLATORNOTFOUND = "InvalidParameterValue.Ip6TranslatorNotFound" @@ -479,6 +485,9 @@ const ( // 带宽包配额超过限制。 LIMITEXCEEDED_BANDWIDTHPACKAGEQUOTA = "LimitExceeded.BandwidthPackageQuota" + // 当前带宽包加入资源上限。 + LIMITEXCEEDED_BANDWIDTHPACKAGERESOURCEQUOTA = "LimitExceeded.BandwidthPackageResourceQuota" + // 超过更换IP配额。 LIMITEXCEEDED_CHANGEADDRESSQUOTA = "LimitExceeded.ChangeAddressQuota" @@ -737,6 +746,9 @@ const ( // 终端节点服务本身不能是终端节点。 UNSUPPORTEDOPERATION_ENDPOINTSERVICE = "UnsupportedOperation.EndPointService" + // 指定ResourceId对应的流日志已经创建 + UNSUPPORTEDOPERATION_FLOWLOGINSTANCEEXISTED = "UnsupportedOperation.FlowLogInstanceExisted" + // 不支持创建流日志:当前弹性网卡绑定的是KO机型。 UNSUPPORTEDOPERATION_FLOWLOGSNOTSUPPORTKOINSTANCEENI = "UnsupportedOperation.FlowLogsNotSupportKoInstanceEni" @@ -935,6 +947,9 @@ const ( // 中继网卡不支持该操作。 UNSUPPORTEDOPERATION_SUBENINOTSUPPORTTRUNKING = "UnsupportedOperation.SubEniNotSupportTrunking" + // 子网不存在。 + UNSUPPORTEDOPERATION_SUBNETNOTEXISTS = "UnsupportedOperation.SubnetNotExists" + // 系统路由,禁止操作。 UNSUPPORTEDOPERATION_SYSTEMROUTE = "UnsupportedOperation.SystemRoute" 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 e332def189..f582608ad5 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 @@ -569,7 +569,7 @@ type AllocateAddressesRequestParams struct { InternetChargeType *string `json:"InternetChargeType,omitempty" name:"InternetChargeType"` // EIP出带宽上限,单位:Mbps。 - //