diff --git a/go.mod b/go.mod index af006e4b2b..a9b861c334 100644 --- a/go.mod +++ b/go.mod @@ -58,7 +58,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sts v1.0.199 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tag v1.0.199 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcaplusdb v1.0.199 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.267 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.486 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.268 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.472 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/teo v1.0.500 diff --git a/go.sum b/go.sum index 31e0708fe2..fe66fe8ca1 100644 --- a/go.sum +++ b/go.sum @@ -542,6 +542,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcaplusdb v1.0.199 h1:i github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcaplusdb v1.0.199/go.mod h1:PUgbrkzA9IaKBj1urk+W4L6Jr5TuBhQ4xB/96QvLf/U= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.267 h1:Aqnh1edylmWJnBK9btXtYBtzmfdqyr2pxOYW5oOyrcY= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.267/go.mod h1:SEUO10oGtg+4AGCfpJDn9ynf47P+ZiyvhzOyXLt0mOY= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.486 h1:6HgzeOwD3yeo8a/prCx63bAN0INcP67GwkK+bseY9f0= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.486/go.mod h1:Fmyf/a1j8Op6vyl71KtX35Hd0GnYqm5uoYz/RB1H4Wk= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.268 h1:ez5lvKQVWGQV90BV3m9SeFODaoDbrtkMzw2S0DRMncA= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.268/go.mod h1:fchXZhmqaYaG2c4wTCBTdnW6TFAtxl3D/P/yuuuLMfA= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.472 h1:9Jzrgx78+5XnZ8myNYjCYZn5ZF+tbSIpF6KWGgWr0uY= diff --git a/tencentcloud/resource_tc_tcr_vpc_attachment.go b/tencentcloud/resource_tc_tcr_vpc_attachment.go index b43db3706c..9bda7904ae 100644 --- a/tencentcloud/resource_tc_tcr_vpc_attachment.go +++ b/tencentcloud/resource_tc_tcr_vpc_attachment.go @@ -69,6 +69,7 @@ func resourceTencentCloudTcrVpcAttachment() *schema.Resource { Type: schema.TypeInt, Optional: true, ConflictsWith: []string{"region_name"}, + Deprecated: "this argument was deprecated, use `region_name` instead.", Description: "ID of region. Conflict with region_name, can not be set at the same time.", }, "region_name": { @@ -154,14 +155,14 @@ func resourceTencentCloudTcrVpcAttachmentCreate(d *schema.ResourceData, meta int } if enablePublicDomainDns := d.Get("enable_public_domain_dns").(bool); enablePublicDomainDns { - err := EnableTcrVpcDns(ctx, tcrService, instanceId, vpcId, subnetId, true) + err := EnableTcrVpcDns(ctx, tcrService, instanceId, vpcId, subnetId, true, regionName) if err != nil { return err } } if enableVpcDomainDns := d.Get("enable_vpc_domain_dns").(bool); enableVpcDomainDns { - err := EnableTcrVpcDns(ctx, tcrService, instanceId, vpcId, subnetId, false) + err := EnableTcrVpcDns(ctx, tcrService, instanceId, vpcId, subnetId, false, regionName) if err != nil { return err } @@ -240,17 +241,18 @@ func resourceTencentCloudTcrVpcAttachmentUpdate(d *schema.ResourceData, meta int instanceId = d.Get("instance_id").(string) vpcId = d.Get("vpc_id").(string) subnetId = d.Get("subnet_id").(string) + regionName = d.Get("region_name").(string) ) d.Partial(true) if d.HasChange("enable_public_domain_dns") { if isEnabled := d.Get("enable_public_domain_dns").(bool); isEnabled { - err := EnableTcrVpcDns(ctx, tcrService, instanceId, vpcId, subnetId, true) + err := EnableTcrVpcDns(ctx, tcrService, instanceId, vpcId, subnetId, true, regionName) if err != nil { return err } } else { - err := DisableTcrVpcDns(ctx, tcrService, instanceId, vpcId, subnetId, true) + err := DisableTcrVpcDns(ctx, tcrService, instanceId, vpcId, subnetId, true, regionName) if err != nil { return err } @@ -260,12 +262,12 @@ func resourceTencentCloudTcrVpcAttachmentUpdate(d *schema.ResourceData, meta int if d.HasChange("enable_vpc_domain_dns") { if isEnabled := d.Get("enable_vpc_domain_dns").(bool); isEnabled { - err := EnableTcrVpcDns(ctx, tcrService, instanceId, vpcId, subnetId, false) + err := EnableTcrVpcDns(ctx, tcrService, instanceId, vpcId, subnetId, false, regionName) if err != nil { return err } } else { - err := DisableTcrVpcDns(ctx, tcrService, instanceId, vpcId, subnetId, false) + err := DisableTcrVpcDns(ctx, tcrService, instanceId, vpcId, subnetId, false, regionName) if err != nil { return err } @@ -355,14 +357,14 @@ func WaitForAccessIpExists(ctx context.Context, tcrService TCRService, instanceI return } -func EnableTcrVpcDns(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, subnetId string, usePublicDomain bool) error { +func EnableTcrVpcDns(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, subnetId string, usePublicDomain bool, regionName string) error { accessIp, err := WaitForAccessIpExists(ctx, tcrService, instanceId, vpcId, subnetId) if err != nil { return err } outErr := resource.Retry(writeRetryTimeout, func() *resource.RetryError { - inErr := tcrService.CreateTcrVpcDns(ctx, instanceId, vpcId, accessIp, usePublicDomain) + inErr := tcrService.CreateTcrVpcDns(ctx, instanceId, vpcId, accessIp, usePublicDomain, regionName) if inErr != nil { return retryError(inErr) } @@ -372,14 +374,14 @@ func EnableTcrVpcDns(ctx context.Context, tcrService TCRService, instanceId stri return outErr } -func DisableTcrVpcDns(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, subnetId string, usePublicDomain bool) error { +func DisableTcrVpcDns(ctx context.Context, tcrService TCRService, instanceId string, vpcId string, subnetId string, usePublicDomain bool, regionName string) error { accessIp, err := WaitForAccessIpExists(ctx, tcrService, instanceId, vpcId, subnetId) if err != nil { return err } outErr := resource.Retry(writeRetryTimeout, func() *resource.RetryError { - inErr := tcrService.DeleteTcrVpcDns(ctx, instanceId, vpcId, accessIp, usePublicDomain) + inErr := tcrService.DeleteTcrVpcDns(ctx, instanceId, vpcId, accessIp, usePublicDomain, regionName) if inErr != nil { return retryError(inErr) } diff --git a/tencentcloud/service_tencentcloud_tcr.go b/tencentcloud/service_tencentcloud_tcr.go index 9c34de8b96..5d0c616e4e 100644 --- a/tencentcloud/service_tencentcloud_tcr.go +++ b/tencentcloud/service_tencentcloud_tcr.go @@ -741,7 +741,7 @@ func (me *TCRService) DescribeTCRVPCAttachmentById(ctx context.Context, instance return } -func (me *TCRService) CreateTcrVpcDns(ctx context.Context, instanceId string, vpcId string, accessIp string, usePublicDomain bool) (errRet error) { +func (me *TCRService) CreateTcrVpcDns(ctx context.Context, instanceId string, vpcId string, accessIp string, usePublicDomain bool, regionName string) (errRet error) { logId := getLogId(ctx) request := tcr.NewCreateInternalEndpointDnsRequest() defer func() { @@ -753,6 +753,7 @@ func (me *TCRService) CreateTcrVpcDns(ctx context.Context, instanceId string, vp request.VpcId = &vpcId request.EniLBIp = &accessIp request.UsePublicDomain = &usePublicDomain + request.RegionName = ®ionName ratelimit.Check(request.GetAction()) response, err := me.client.UseTCRClient().CreateInternalEndpointDns(request) @@ -766,7 +767,7 @@ func (me *TCRService) CreateTcrVpcDns(ctx context.Context, instanceId string, vp return } -func (me *TCRService) DeleteTcrVpcDns(ctx context.Context, instanceId string, vpcId string, accessIp string, usePublicDomain bool) (errRet error) { +func (me *TCRService) DeleteTcrVpcDns(ctx context.Context, instanceId string, vpcId string, accessIp string, usePublicDomain bool, regionName string) (errRet error) { logId := getLogId(ctx) request := tcr.NewDeleteInternalEndpointDnsRequest() defer func() { @@ -778,6 +779,7 @@ func (me *TCRService) DeleteTcrVpcDns(ctx context.Context, instanceId string, vp request.VpcId = &vpcId request.EniLBIp = &accessIp request.UsePublicDomain = &usePublicDomain + request.RegionName = ®ionName ratelimit.Check(request.GetAction()) response, err := me.client.UseTCRClient().DeleteInternalEndpointDns(request) diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924/client.go index 9a51757afe..874b50bb8d 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924/client.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924/client.go @@ -15,6 +15,8 @@ package v20190924 import ( + "context" + "errors" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile" @@ -47,7 +49,10 @@ func NewBatchDeleteImagePersonalRequest() (request *BatchDeleteImagePersonalRequ request = &BatchDeleteImagePersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "BatchDeleteImagePersonal") + + return } @@ -67,9 +72,28 @@ func NewBatchDeleteImagePersonalResponse() (response *BatchDeleteImagePersonalRe // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" func (c *Client) BatchDeleteImagePersonal(request *BatchDeleteImagePersonalRequest) (response *BatchDeleteImagePersonalResponse, err error) { + return c.BatchDeleteImagePersonalWithContext(context.Background(), request) +} + +// BatchDeleteImagePersonal +// 用于在个人版镜像仓库中批量删除Tag +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRUNAUTHORIZED = "InternalError.ErrUnauthorized" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +func (c *Client) BatchDeleteImagePersonalWithContext(ctx context.Context, request *BatchDeleteImagePersonalRequest) (response *BatchDeleteImagePersonalResponse, err error) { if request == nil { request = NewBatchDeleteImagePersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("BatchDeleteImagePersonal require credential") + } + + request.SetContext(ctx) + response = NewBatchDeleteImagePersonalResponse() err = c.Send(request, response) return @@ -79,7 +103,10 @@ func NewBatchDeleteRepositoryPersonalRequest() (request *BatchDeleteRepositoryPe request = &BatchDeleteRepositoryPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "BatchDeleteRepositoryPersonal") + + return } @@ -96,11 +123,31 @@ func NewBatchDeleteRepositoryPersonalResponse() (response *BatchDeleteRepository // 可能返回的错误码: // INTERNALERROR = "InternalError" // INTERNALERROR_ERRUNAUTHORIZED = "InternalError.ErrUnauthorized" +// INVALIDPARAMETER_ERRTOOLARGE = "InvalidParameter.ErrTooLarge" // MISSINGPARAMETER = "MissingParameter" func (c *Client) BatchDeleteRepositoryPersonal(request *BatchDeleteRepositoryPersonalRequest) (response *BatchDeleteRepositoryPersonalResponse, err error) { + return c.BatchDeleteRepositoryPersonalWithContext(context.Background(), request) +} + +// BatchDeleteRepositoryPersonal +// 用于个人版镜像仓库中批量删除镜像仓库 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRUNAUTHORIZED = "InternalError.ErrUnauthorized" +// INVALIDPARAMETER_ERRTOOLARGE = "InvalidParameter.ErrTooLarge" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) BatchDeleteRepositoryPersonalWithContext(ctx context.Context, request *BatchDeleteRepositoryPersonalRequest) (response *BatchDeleteRepositoryPersonalResponse, err error) { if request == nil { request = NewBatchDeleteRepositoryPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("BatchDeleteRepositoryPersonal require credential") + } + + request.SetContext(ctx) + response = NewBatchDeleteRepositoryPersonalResponse() err = c.Send(request, response) return @@ -110,7 +157,10 @@ func NewCheckInstanceRequest() (request *CheckInstanceRequest) { request = &CheckInstanceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CheckInstance") + + return } @@ -141,9 +191,39 @@ func NewCheckInstanceResponse() (response *CheckInstanceResponse) { // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CheckInstance(request *CheckInstanceRequest) (response *CheckInstanceResponse, err error) { + return c.CheckInstanceWithContext(context.Background(), request) +} + +// CheckInstance +// 用于校验企业版实例信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORNAMEEXISTS = "InvalidParameter.ErrorNameExists" +// INVALIDPARAMETER_ERRORREGISTRYNAME = "InvalidParameter.ErrorRegistryName" +// INVALIDPARAMETER_ERRORTAGOVERLIMIT = "InvalidParameter.ErrorTagOverLimit" +// INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CheckInstanceWithContext(ctx context.Context, request *CheckInstanceRequest) (response *CheckInstanceResponse, err error) { if request == nil { request = NewCheckInstanceRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CheckInstance require credential") + } + + request.SetContext(ctx) + response = NewCheckInstanceResponse() err = c.Send(request, response) return @@ -153,7 +233,10 @@ func NewCheckInstanceNameRequest() (request *CheckInstanceNameRequest) { request = &CheckInstanceNameRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CheckInstanceName") + + return } @@ -184,9 +267,39 @@ func NewCheckInstanceNameResponse() (response *CheckInstanceNameResponse) { // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CheckInstanceName(request *CheckInstanceNameRequest) (response *CheckInstanceNameResponse, err error) { + return c.CheckInstanceNameWithContext(context.Background(), request) +} + +// CheckInstanceName +// 检查待创建的实例名称是否符合规范 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORNAMEEXISTS = "InvalidParameter.ErrorNameExists" +// INVALIDPARAMETER_ERRORREGISTRYNAME = "InvalidParameter.ErrorRegistryName" +// INVALIDPARAMETER_ERRORTAGOVERLIMIT = "InvalidParameter.ErrorTagOverLimit" +// INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CheckInstanceNameWithContext(ctx context.Context, request *CheckInstanceNameRequest) (response *CheckInstanceNameResponse, err error) { if request == nil { request = NewCheckInstanceNameRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CheckInstanceName require credential") + } + + request.SetContext(ctx) + response = NewCheckInstanceNameResponse() err = c.Send(request, response) return @@ -196,7 +309,10 @@ func NewCreateApplicationTriggerPersonalRequest() (request *CreateApplicationTri request = &CreateApplicationTriggerPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CreateApplicationTriggerPersonal") + + return } @@ -219,19 +335,106 @@ func NewCreateApplicationTriggerPersonalResponse() (response *CreateApplicationT // RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" // RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" func (c *Client) CreateApplicationTriggerPersonal(request *CreateApplicationTriggerPersonalRequest) (response *CreateApplicationTriggerPersonalResponse, err error) { + return c.CreateApplicationTriggerPersonalWithContext(context.Background(), request) +} + +// CreateApplicationTriggerPersonal +// 用于创建应用更新触发器 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRUNAUTHORIZED = "InternalError.ErrUnauthorized" +// INVALIDPARAMETER_ERRTRIGGEREXIST = "InvalidParameter.ErrTriggerExist" +// LIMITEXCEEDED_ERRTRIGGERMAXLIMIT = "LimitExceeded.ErrTriggerMaxLimit" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +// RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" +func (c *Client) CreateApplicationTriggerPersonalWithContext(ctx context.Context, request *CreateApplicationTriggerPersonalRequest) (response *CreateApplicationTriggerPersonalResponse, err error) { if request == nil { request = NewCreateApplicationTriggerPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateApplicationTriggerPersonal require credential") + } + + request.SetContext(ctx) + response = NewCreateApplicationTriggerPersonalResponse() err = c.Send(request, response) return } +func NewCreateImageAccelerationServiceRequest() (request *CreateImageAccelerationServiceRequest) { + request = &CreateImageAccelerationServiceRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "CreateImageAccelerationService") + + + return +} + +func NewCreateImageAccelerationServiceResponse() (response *CreateImageAccelerationServiceResponse) { + response = &CreateImageAccelerationServiceResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateImageAccelerationService +// 创建镜像加速服务 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateImageAccelerationService(request *CreateImageAccelerationServiceRequest) (response *CreateImageAccelerationServiceResponse, err error) { + return c.CreateImageAccelerationServiceWithContext(context.Background(), request) +} + +// CreateImageAccelerationService +// 创建镜像加速服务 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateImageAccelerationServiceWithContext(ctx context.Context, request *CreateImageAccelerationServiceRequest) (response *CreateImageAccelerationServiceResponse, err error) { + if request == nil { + request = NewCreateImageAccelerationServiceRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateImageAccelerationService require credential") + } + + request.SetContext(ctx) + + response = NewCreateImageAccelerationServiceResponse() + err = c.Send(request, response) + return +} + func NewCreateImageLifecyclePersonalRequest() (request *CreateImageLifecyclePersonalRequest) { request = &CreateImageLifecyclePersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CreateImageLifecyclePersonal") + + return } @@ -251,9 +454,28 @@ func NewCreateImageLifecyclePersonalResponse() (response *CreateImageLifecyclePe // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" func (c *Client) CreateImageLifecyclePersonal(request *CreateImageLifecyclePersonalRequest) (response *CreateImageLifecyclePersonalResponse, err error) { + return c.CreateImageLifecyclePersonalWithContext(context.Background(), request) +} + +// CreateImageLifecyclePersonal +// 用于在个人版中创建清理策略 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRUNAUTHORIZED = "InternalError.ErrUnauthorized" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +func (c *Client) CreateImageLifecyclePersonalWithContext(ctx context.Context, request *CreateImageLifecyclePersonalRequest) (response *CreateImageLifecyclePersonalResponse, err error) { if request == nil { request = NewCreateImageLifecyclePersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateImageLifecyclePersonal require credential") + } + + request.SetContext(ctx) + response = NewCreateImageLifecyclePersonalResponse() err = c.Send(request, response) return @@ -263,7 +485,10 @@ func NewCreateImmutableTagRulesRequest() (request *CreateImmutableTagRulesReques request = &CreateImmutableTagRulesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CreateImmutableTagRules") + + return } @@ -285,9 +510,30 @@ func NewCreateImmutableTagRulesResponse() (response *CreateImmutableTagRulesResp // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" func (c *Client) CreateImmutableTagRules(request *CreateImmutableTagRulesRequest) (response *CreateImmutableTagRulesResponse, err error) { + return c.CreateImmutableTagRulesWithContext(context.Background(), request) +} + +// CreateImmutableTagRules +// 创建镜像不可变规则 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_UNKNOWN = "InternalError.Unknown" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +func (c *Client) CreateImmutableTagRulesWithContext(ctx context.Context, request *CreateImmutableTagRulesRequest) (response *CreateImmutableTagRulesResponse, err error) { if request == nil { request = NewCreateImmutableTagRulesRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateImmutableTagRules require credential") + } + + request.SetContext(ctx) + response = NewCreateImmutableTagRulesResponse() err = c.Send(request, response) return @@ -297,7 +543,10 @@ func NewCreateInstanceRequest() (request *CreateInstanceRequest) { request = &CreateInstanceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CreateInstance") + + return } @@ -312,6 +561,11 @@ func NewCreateInstanceResponse() (response *CreateInstanceResponse) { // 创建实例 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" +// FAILEDOPERATION_TRADEFAILED = "FailedOperation.TradeFailed" +// FAILEDOPERATION_VALIDATEREGISTRYNAMEFAIL = "FailedOperation.ValidateRegistryNameFail" +// FAILEDOPERATION_VALIDATESUPPORTEDREGIONFAIL = "FailedOperation.ValidateSupportedRegionFail" // INTERNALERROR = "InternalError" // INTERNALERROR_DBERROR = "InternalError.DbError" // INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" @@ -326,23 +580,137 @@ func NewCreateInstanceResponse() (response *CreateInstanceResponse) { // INVALIDPARAMETER_ERRORTAGOVERLIMIT = "InvalidParameter.ErrorTagOverLimit" // INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" // MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED_QUOTAOVERLIMIT = "OperationDenied.QuotaOverLimit" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error) { + return c.CreateInstanceWithContext(context.Background(), request) +} + +// CreateInstance +// 创建实例 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" +// FAILEDOPERATION_TRADEFAILED = "FailedOperation.TradeFailed" +// FAILEDOPERATION_VALIDATEREGISTRYNAMEFAIL = "FailedOperation.ValidateRegistryNameFail" +// FAILEDOPERATION_VALIDATESUPPORTEDREGIONFAIL = "FailedOperation.ValidateSupportedRegionFail" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORNAMEEXISTS = "InvalidParameter.ErrorNameExists" +// INVALIDPARAMETER_ERRORNAMEILLEGAL = "InvalidParameter.ErrorNameIllegal" +// INVALIDPARAMETER_ERRORNAMERESERVED = "InvalidParameter.ErrorNameReserved" +// INVALIDPARAMETER_ERRORREGISTRYNAME = "InvalidParameter.ErrorRegistryName" +// INVALIDPARAMETER_ERRORTAGOVERLIMIT = "InvalidParameter.ErrorTagOverLimit" +// INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED_QUOTAOVERLIMIT = "OperationDenied.QuotaOverLimit" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateInstanceWithContext(ctx context.Context, request *CreateInstanceRequest) (response *CreateInstanceResponse, err error) { if request == nil { request = NewCreateInstanceRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateInstance require credential") + } + + request.SetContext(ctx) + response = NewCreateInstanceResponse() err = c.Send(request, response) return } +func NewCreateInstanceCustomizedDomainRequest() (request *CreateInstanceCustomizedDomainRequest) { + request = &CreateInstanceCustomizedDomainRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "CreateInstanceCustomizedDomain") + + + return +} + +func NewCreateInstanceCustomizedDomainResponse() (response *CreateInstanceCustomizedDomainResponse) { + response = &CreateInstanceCustomizedDomainResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateInstanceCustomizedDomain +// 创建自定义域名 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateInstanceCustomizedDomain(request *CreateInstanceCustomizedDomainRequest) (response *CreateInstanceCustomizedDomainResponse, err error) { + return c.CreateInstanceCustomizedDomainWithContext(context.Background(), request) +} + +// CreateInstanceCustomizedDomain +// 创建自定义域名 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateInstanceCustomizedDomainWithContext(ctx context.Context, request *CreateInstanceCustomizedDomainRequest) (response *CreateInstanceCustomizedDomainResponse, err error) { + if request == nil { + request = NewCreateInstanceCustomizedDomainRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateInstanceCustomizedDomain require credential") + } + + request.SetContext(ctx) + + response = NewCreateInstanceCustomizedDomainResponse() + err = c.Send(request, response) + return +} + func NewCreateInstanceTokenRequest() (request *CreateInstanceTokenRequest) { request = &CreateInstanceTokenRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CreateInstanceToken") + + return } @@ -366,9 +734,32 @@ func NewCreateInstanceTokenResponse() (response *CreateInstanceTokenResponse) { // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateInstanceToken(request *CreateInstanceTokenRequest) (response *CreateInstanceTokenResponse, err error) { + return c.CreateInstanceTokenWithContext(context.Background(), request) +} + +// CreateInstanceToken +// 创建实例的临时或长期访问凭证 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_UNKNOWN = "InternalError.Unknown" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateInstanceTokenWithContext(ctx context.Context, request *CreateInstanceTokenRequest) (response *CreateInstanceTokenResponse, err error) { if request == nil { request = NewCreateInstanceTokenRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateInstanceToken require credential") + } + + request.SetContext(ctx) + response = NewCreateInstanceTokenResponse() err = c.Send(request, response) return @@ -378,7 +769,10 @@ func NewCreateInternalEndpointDnsRequest() (request *CreateInternalEndpointDnsRe request = &CreateInternalEndpointDnsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CreateInternalEndpointDns") + + return } @@ -406,21 +800,51 @@ func NewCreateInternalEndpointDnsResponse() (response *CreateInternalEndpointDns // INVALIDPARAMETER = "InvalidParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateInternalEndpointDns(request *CreateInternalEndpointDnsRequest) (response *CreateInternalEndpointDnsResponse, err error) { - if request == nil { - request = NewCreateInternalEndpointDnsRequest() - } - response = NewCreateInternalEndpointDnsResponse() - err = c.Send(request, response) - return + return c.CreateInternalEndpointDnsWithContext(context.Background(), request) } -func NewCreateMultipleSecurityPolicyRequest() (request *CreateMultipleSecurityPolicyRequest) { - request = &CreateMultipleSecurityPolicyRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - request.Init().WithApiInfo("tcr", APIVersion, "CreateMultipleSecurityPolicy") - return -} +// CreateInternalEndpointDns +// 创建tcr内网私有域名解析 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_CREATEPRIVATEZONE = "InternalError.CreatePrivateZone" +// INTERNALERROR_CREATEPRIVATEZONERECORD = "InternalError.CreatePrivateZoneRecord" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_DELETEPRIVATEZONERECORD = "InternalError.DeletePrivateZoneRecord" +// INTERNALERROR_DESCRIBEINTERNALENDPOINTDNSSTATUS = "InternalError.DescribeInternalEndpointDnsStatus" +// INTERNALERROR_DESCRIBEPRIVATEZONELIST = "InternalError.DescribePrivateZoneList" +// INTERNALERROR_DESCRIBEPRIVATEZONERECORDLIST = "InternalError.DescribePrivateZoneRecordList" +// INTERNALERROR_DESCRIBEPRIVATEZONESERVICELIST = "InternalError.DescribePrivateZoneServiceList" +// INTERNALERROR_MODIFYPRIVATEZONEVPC = "InternalError.ModifyPrivateZoneVpc" +// INVALIDPARAMETER = "InvalidParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateInternalEndpointDnsWithContext(ctx context.Context, request *CreateInternalEndpointDnsRequest) (response *CreateInternalEndpointDnsResponse, err error) { + if request == nil { + request = NewCreateInternalEndpointDnsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateInternalEndpointDns require credential") + } + + request.SetContext(ctx) + + response = NewCreateInternalEndpointDnsResponse() + err = c.Send(request, response) + return +} + +func NewCreateMultipleSecurityPolicyRequest() (request *CreateMultipleSecurityPolicyRequest) { + request = &CreateMultipleSecurityPolicyRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "CreateMultipleSecurityPolicy") + + + return +} func NewCreateMultipleSecurityPolicyResponse() (response *CreateMultipleSecurityPolicyResponse) { response = &CreateMultipleSecurityPolicyResponse{ @@ -433,17 +857,47 @@ func NewCreateMultipleSecurityPolicyResponse() (response *CreateMultipleSecurity // 用于在TCR实例中,创建多个白名单策略 // // 可能返回的错误码: +// FAILEDOPERATION_DEPENDENCEERROR = "FailedOperation.DependenceError" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" +// FAILEDOPERATION_GETTCRCLIENT = "FailedOperation.GetTcrClient" // INTERNALERROR = "InternalError" // INTERNALERROR_DBERROR = "InternalError.DbError" // INVALIDPARAMETER = "InvalidParameter" // MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateMultipleSecurityPolicy(request *CreateMultipleSecurityPolicyRequest) (response *CreateMultipleSecurityPolicyResponse, err error) { + return c.CreateMultipleSecurityPolicyWithContext(context.Background(), request) +} + +// CreateMultipleSecurityPolicy +// 用于在TCR实例中,创建多个白名单策略 +// +// 可能返回的错误码: +// FAILEDOPERATION_DEPENDENCEERROR = "FailedOperation.DependenceError" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" +// FAILEDOPERATION_GETTCRCLIENT = "FailedOperation.GetTcrClient" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateMultipleSecurityPolicyWithContext(ctx context.Context, request *CreateMultipleSecurityPolicyRequest) (response *CreateMultipleSecurityPolicyResponse, err error) { if request == nil { request = NewCreateMultipleSecurityPolicyRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateMultipleSecurityPolicy require credential") + } + + request.SetContext(ctx) + response = NewCreateMultipleSecurityPolicyResponse() err = c.Send(request, response) return @@ -453,7 +907,10 @@ func NewCreateNamespaceRequest() (request *CreateNamespaceRequest) { request = &CreateNamespaceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CreateNamespace") + + return } @@ -468,7 +925,14 @@ func NewCreateNamespaceResponse() (response *CreateNamespaceResponse) { // 用于在企业版中创建命名空间 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DEPENDENCEERROR = "FailedOperation.DependenceError" +// FAILEDOPERATION_ERRORTCRINVALIDMEDIATYPE = "FailedOperation.ErrorTcrInvalidMediaType" +// FAILEDOPERATION_ERRORTCRRESOURCECONFLICT = "FailedOperation.ErrorTcrResourceConflict" +// FAILEDOPERATION_ERRORTCRUNAUTHORIZED = "FailedOperation.ErrorTcrUnauthorized" +// FAILEDOPERATION_OPERATIONCANCEL = "FailedOperation.OperationCancel" // INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" // INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" // INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" // INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" @@ -480,9 +944,42 @@ func NewCreateNamespaceResponse() (response *CreateNamespaceResponse) { // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateNamespace(request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error) { + return c.CreateNamespaceWithContext(context.Background(), request) +} + +// CreateNamespace +// 用于在企业版中创建命名空间 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DEPENDENCEERROR = "FailedOperation.DependenceError" +// FAILEDOPERATION_ERRORTCRINVALIDMEDIATYPE = "FailedOperation.ErrorTcrInvalidMediaType" +// FAILEDOPERATION_ERRORTCRRESOURCECONFLICT = "FailedOperation.ErrorTcrResourceConflict" +// FAILEDOPERATION_ERRORTCRUNAUTHORIZED = "FailedOperation.ErrorTcrUnauthorized" +// FAILEDOPERATION_OPERATIONCANCEL = "FailedOperation.OperationCancel" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateNamespaceWithContext(ctx context.Context, request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error) { if request == nil { request = NewCreateNamespaceRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateNamespace require credential") + } + + request.SetContext(ctx) + response = NewCreateNamespaceResponse() err = c.Send(request, response) return @@ -492,7 +989,10 @@ func NewCreateNamespacePersonalRequest() (request *CreateNamespacePersonalReques request = &CreateNamespacePersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CreateNamespacePersonal") + + return } @@ -514,9 +1014,30 @@ func NewCreateNamespacePersonalResponse() (response *CreateNamespacePersonalResp // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" func (c *Client) CreateNamespacePersonal(request *CreateNamespacePersonalRequest) (response *CreateNamespacePersonalResponse, err error) { + return c.CreateNamespacePersonalWithContext(context.Background(), request) +} + +// CreateNamespacePersonal +// 创建个人版镜像仓库命名空间,此命名空间全局唯一 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_ERRNAMESPACEEXIST = "InvalidParameter.ErrNamespaceExist" +// INVALIDPARAMETER_ERRNAMESPACERESERVED = "InvalidParameter.ErrNamespaceReserved" +// LIMITEXCEEDED_ERRNAMESPACEMAXLIMIT = "LimitExceeded.ErrNamespaceMaxLimit" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" +func (c *Client) CreateNamespacePersonalWithContext(ctx context.Context, request *CreateNamespacePersonalRequest) (response *CreateNamespacePersonalResponse, err error) { if request == nil { request = NewCreateNamespacePersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateNamespacePersonal require credential") + } + + request.SetContext(ctx) + response = NewCreateNamespacePersonalResponse() err = c.Send(request, response) return @@ -526,7 +1047,10 @@ func NewCreateReplicationInstanceRequest() (request *CreateReplicationInstanceRe request = &CreateReplicationInstanceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CreateReplicationInstance") + + return } @@ -550,13 +1074,42 @@ func NewCreateReplicationInstanceResponse() (response *CreateReplicationInstance // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" // MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateReplicationInstance(request *CreateReplicationInstanceRequest) (response *CreateReplicationInstanceResponse, err error) { + return c.CreateReplicationInstanceWithContext(context.Background(), request) +} + +// CreateReplicationInstance +// 创建从实例 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateReplicationInstanceWithContext(ctx context.Context, request *CreateReplicationInstanceRequest) (response *CreateReplicationInstanceResponse, err error) { if request == nil { request = NewCreateReplicationInstanceRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateReplicationInstance require credential") + } + + request.SetContext(ctx) + response = NewCreateReplicationInstanceResponse() err = c.Send(request, response) return @@ -566,7 +1119,10 @@ func NewCreateRepositoryRequest() (request *CreateRepositoryRequest) { request = &CreateRepositoryRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CreateRepository") + + return } @@ -581,6 +1137,7 @@ func NewCreateRepositoryResponse() (response *CreateRepositoryResponse) { // 用于企业版创建镜像仓库 // // 可能返回的错误码: +// FAILEDOPERATION_OPERATIONCANCEL = "FailedOperation.OperationCancel" // INTERNALERROR = "InternalError" // INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" // INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" @@ -592,9 +1149,35 @@ func NewCreateRepositoryResponse() (response *CreateRepositoryResponse) { // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) CreateRepository(request *CreateRepositoryRequest) (response *CreateRepositoryResponse, err error) { + return c.CreateRepositoryWithContext(context.Background(), request) +} + +// CreateRepository +// 用于企业版创建镜像仓库 +// +// 可能返回的错误码: +// FAILEDOPERATION_OPERATIONCANCEL = "FailedOperation.OperationCancel" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateRepositoryWithContext(ctx context.Context, request *CreateRepositoryRequest) (response *CreateRepositoryResponse, err error) { if request == nil { request = NewCreateRepositoryRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateRepository require credential") + } + + request.SetContext(ctx) + response = NewCreateRepositoryResponse() err = c.Send(request, response) return @@ -604,7 +1187,10 @@ func NewCreateRepositoryPersonalRequest() (request *CreateRepositoryPersonalRequ request = &CreateRepositoryPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CreateRepositoryPersonal") + + return } @@ -625,30 +1211,53 @@ func NewCreateRepositoryPersonalResponse() (response *CreateRepositoryPersonalRe // LIMITEXCEEDED_ERRREPOMAXLIMIT = "LimitExceeded.ErrRepoMaxLimit" // MISSINGPARAMETER = "MissingParameter" func (c *Client) CreateRepositoryPersonal(request *CreateRepositoryPersonalRequest) (response *CreateRepositoryPersonalResponse, err error) { + return c.CreateRepositoryPersonalWithContext(context.Background(), request) +} + +// CreateRepositoryPersonal +// 用于在个人版仓库中创建镜像仓库 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_ERRNSMISMATCH = "InvalidParameter.ErrNSMisMatch" +// INVALIDPARAMETER_ERRREPOEXIST = "InvalidParameter.ErrRepoExist" +// LIMITEXCEEDED_ERRREPOMAXLIMIT = "LimitExceeded.ErrRepoMaxLimit" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) CreateRepositoryPersonalWithContext(ctx context.Context, request *CreateRepositoryPersonalRequest) (response *CreateRepositoryPersonalResponse, err error) { if request == nil { request = NewCreateRepositoryPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateRepositoryPersonal require credential") + } + + request.SetContext(ctx) + response = NewCreateRepositoryPersonalResponse() err = c.Send(request, response) return } -func NewCreateSecurityPolicyRequest() (request *CreateSecurityPolicyRequest) { - request = &CreateSecurityPolicyRequest{ +func NewCreateSecurityPoliciesRequest() (request *CreateSecurityPoliciesRequest) { + request = &CreateSecurityPoliciesRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("tcr", APIVersion, "CreateSecurityPolicy") + + request.Init().WithApiInfo("tcr", APIVersion, "CreateSecurityPolicies") + + return } -func NewCreateSecurityPolicyResponse() (response *CreateSecurityPolicyResponse) { - response = &CreateSecurityPolicyResponse{ +func NewCreateSecurityPoliciesResponse() (response *CreateSecurityPoliciesResponse) { + response = &CreateSecurityPoliciesResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// CreateSecurityPolicy +// CreateSecurityPolicies // 创建实例公网访问白名单策略 // // 可能返回的错误码: @@ -656,126 +1265,409 @@ func NewCreateSecurityPolicyResponse() (response *CreateSecurityPolicyResponse) // INTERNALERROR_DBERROR = "InternalError.DbError" // INVALIDPARAMETER = "InvalidParameter" // MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" -func (c *Client) CreateSecurityPolicy(request *CreateSecurityPolicyRequest) (response *CreateSecurityPolicyResponse, err error) { +func (c *Client) CreateSecurityPolicies(request *CreateSecurityPoliciesRequest) (response *CreateSecurityPoliciesResponse, err error) { + return c.CreateSecurityPoliciesWithContext(context.Background(), request) +} + +// CreateSecurityPolicies +// 创建实例公网访问白名单策略 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateSecurityPoliciesWithContext(ctx context.Context, request *CreateSecurityPoliciesRequest) (response *CreateSecurityPoliciesResponse, err error) { if request == nil { - request = NewCreateSecurityPolicyRequest() + request = NewCreateSecurityPoliciesRequest() } - response = NewCreateSecurityPolicyResponse() + + if c.GetCredential() == nil { + return nil, errors.New("CreateSecurityPolicies require credential") + } + + request.SetContext(ctx) + + response = NewCreateSecurityPoliciesResponse() err = c.Send(request, response) return } -func NewCreateTagRetentionExecutionRequest() (request *CreateTagRetentionExecutionRequest) { - request = &CreateTagRetentionExecutionRequest{ +func NewCreateSecurityPolicyRequest() (request *CreateSecurityPolicyRequest) { + request = &CreateSecurityPolicyRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("tcr", APIVersion, "CreateTagRetentionExecution") + + request.Init().WithApiInfo("tcr", APIVersion, "CreateSecurityPolicy") + + return } -func NewCreateTagRetentionExecutionResponse() (response *CreateTagRetentionExecutionResponse) { - response = &CreateTagRetentionExecutionResponse{ +func NewCreateSecurityPolicyResponse() (response *CreateSecurityPolicyResponse) { + response = &CreateSecurityPolicyResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// CreateTagRetentionExecution -// 手动执行版本保留 +// CreateSecurityPolicy +// 创建实例公网访问白名单策略 // // 可能返回的错误码: // INTERNALERROR = "InternalError" // INTERNALERROR_DBERROR = "InternalError.DbError" -// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" -// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" -// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" -// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" // INVALIDPARAMETER = "InvalidParameter" // MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" +// OPERATIONDENIED = "OperationDenied" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" -func (c *Client) CreateTagRetentionExecution(request *CreateTagRetentionExecutionRequest) (response *CreateTagRetentionExecutionResponse, err error) { +func (c *Client) CreateSecurityPolicy(request *CreateSecurityPolicyRequest) (response *CreateSecurityPolicyResponse, err error) { + return c.CreateSecurityPolicyWithContext(context.Background(), request) +} + +// CreateSecurityPolicy +// 创建实例公网访问白名单策略 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateSecurityPolicyWithContext(ctx context.Context, request *CreateSecurityPolicyRequest) (response *CreateSecurityPolicyResponse, err error) { if request == nil { - request = NewCreateTagRetentionExecutionRequest() + request = NewCreateSecurityPolicyRequest() } - response = NewCreateTagRetentionExecutionResponse() + + if c.GetCredential() == nil { + return nil, errors.New("CreateSecurityPolicy require credential") + } + + request.SetContext(ctx) + + response = NewCreateSecurityPolicyResponse() err = c.Send(request, response) return } -func NewCreateTagRetentionRuleRequest() (request *CreateTagRetentionRuleRequest) { - request = &CreateTagRetentionRuleRequest{ +func NewCreateSignatureRequest() (request *CreateSignatureRequest) { + request = &CreateSignatureRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("tcr", APIVersion, "CreateTagRetentionRule") + + request.Init().WithApiInfo("tcr", APIVersion, "CreateSignature") + + return } -func NewCreateTagRetentionRuleResponse() (response *CreateTagRetentionRuleResponse) { - response = &CreateTagRetentionRuleResponse{ +func NewCreateSignatureResponse() (response *CreateSignatureResponse) { + response = &CreateSignatureResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// CreateTagRetentionRule -// 创建版本保留规则 +// CreateSignature +// 为一个镜像版本创建签名 // // 可能返回的错误码: +// FAILEDOPERATION_OPERATIONCANCEL = "FailedOperation.OperationCancel" // INTERNALERROR = "InternalError" -// INTERNALERROR_DBERROR = "InternalError.DbError" -// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" -// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" -// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" -// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" -// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" // RESOURCENOTFOUND = "ResourceNotFound" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" -func (c *Client) CreateTagRetentionRule(request *CreateTagRetentionRuleRequest) (response *CreateTagRetentionRuleResponse, err error) { +func (c *Client) CreateSignature(request *CreateSignatureRequest) (response *CreateSignatureResponse, err error) { + return c.CreateSignatureWithContext(context.Background(), request) +} + +// CreateSignature +// 为一个镜像版本创建签名 +// +// 可能返回的错误码: +// FAILEDOPERATION_OPERATIONCANCEL = "FailedOperation.OperationCancel" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateSignatureWithContext(ctx context.Context, request *CreateSignatureRequest) (response *CreateSignatureResponse, err error) { if request == nil { - request = NewCreateTagRetentionRuleRequest() + request = NewCreateSignatureRequest() } - response = NewCreateTagRetentionRuleResponse() + + if c.GetCredential() == nil { + return nil, errors.New("CreateSignature require credential") + } + + request.SetContext(ctx) + + response = NewCreateSignatureResponse() err = c.Send(request, response) return } -func NewCreateUserPersonalRequest() (request *CreateUserPersonalRequest) { - request = &CreateUserPersonalRequest{ +func NewCreateSignaturePolicyRequest() (request *CreateSignaturePolicyRequest) { + request = &CreateSignaturePolicyRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("tcr", APIVersion, "CreateUserPersonal") + + request.Init().WithApiInfo("tcr", APIVersion, "CreateSignaturePolicy") + + return } -func NewCreateUserPersonalResponse() (response *CreateUserPersonalResponse) { - response = &CreateUserPersonalResponse{ +func NewCreateSignaturePolicyResponse() (response *CreateSignaturePolicyResponse) { + response = &CreateSignaturePolicyResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// CreateUserPersonal -// 创建个人用户 +// CreateSignaturePolicy +// 创建镜像签名策略 // // 可能返回的错误码: -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER_ERRUSEREXIST = "InvalidParameter.ErrUserExist" -// MISSINGPARAMETER_MISSINGPARAMETER = "MissingParameter.MissingParameter" -func (c *Client) CreateUserPersonal(request *CreateUserPersonalRequest) (response *CreateUserPersonalResponse, err error) { +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateSignaturePolicy(request *CreateSignaturePolicyRequest) (response *CreateSignaturePolicyResponse, err error) { + return c.CreateSignaturePolicyWithContext(context.Background(), request) +} + +// CreateSignaturePolicy +// 创建镜像签名策略 +// +// 可能返回的错误码: +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateSignaturePolicyWithContext(ctx context.Context, request *CreateSignaturePolicyRequest) (response *CreateSignaturePolicyResponse, err error) { + if request == nil { + request = NewCreateSignaturePolicyRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateSignaturePolicy require credential") + } + + request.SetContext(ctx) + + response = NewCreateSignaturePolicyResponse() + err = c.Send(request, response) + return +} + +func NewCreateTagRetentionExecutionRequest() (request *CreateTagRetentionExecutionRequest) { + request = &CreateTagRetentionExecutionRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "CreateTagRetentionExecution") + + + return +} + +func NewCreateTagRetentionExecutionResponse() (response *CreateTagRetentionExecutionResponse) { + response = &CreateTagRetentionExecutionResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateTagRetentionExecution +// 手动执行版本保留 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateTagRetentionExecution(request *CreateTagRetentionExecutionRequest) (response *CreateTagRetentionExecutionResponse, err error) { + return c.CreateTagRetentionExecutionWithContext(context.Background(), request) +} + +// CreateTagRetentionExecution +// 手动执行版本保留 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateTagRetentionExecutionWithContext(ctx context.Context, request *CreateTagRetentionExecutionRequest) (response *CreateTagRetentionExecutionResponse, err error) { + if request == nil { + request = NewCreateTagRetentionExecutionRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateTagRetentionExecution require credential") + } + + request.SetContext(ctx) + + response = NewCreateTagRetentionExecutionResponse() + err = c.Send(request, response) + return +} + +func NewCreateTagRetentionRuleRequest() (request *CreateTagRetentionRuleRequest) { + request = &CreateTagRetentionRuleRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "CreateTagRetentionRule") + + + return +} + +func NewCreateTagRetentionRuleResponse() (response *CreateTagRetentionRuleResponse) { + response = &CreateTagRetentionRuleResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateTagRetentionRule +// 创建版本保留规则 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateTagRetentionRule(request *CreateTagRetentionRuleRequest) (response *CreateTagRetentionRuleResponse, err error) { + return c.CreateTagRetentionRuleWithContext(context.Background(), request) +} + +// CreateTagRetentionRule +// 创建版本保留规则 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateTagRetentionRuleWithContext(ctx context.Context, request *CreateTagRetentionRuleRequest) (response *CreateTagRetentionRuleResponse, err error) { + if request == nil { + request = NewCreateTagRetentionRuleRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateTagRetentionRule require credential") + } + + request.SetContext(ctx) + + response = NewCreateTagRetentionRuleResponse() + err = c.Send(request, response) + return +} + +func NewCreateUserPersonalRequest() (request *CreateUserPersonalRequest) { + request = &CreateUserPersonalRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "CreateUserPersonal") + + + return +} + +func NewCreateUserPersonalResponse() (response *CreateUserPersonalResponse) { + response = &CreateUserPersonalResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateUserPersonal +// 创建个人用户 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_ERRUSEREXIST = "InvalidParameter.ErrUserExist" +// MISSINGPARAMETER_MISSINGPARAMETER = "MissingParameter.MissingParameter" +func (c *Client) CreateUserPersonal(request *CreateUserPersonalRequest) (response *CreateUserPersonalResponse, err error) { + return c.CreateUserPersonalWithContext(context.Background(), request) +} + +// CreateUserPersonal +// 创建个人用户 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_ERRUSEREXIST = "InvalidParameter.ErrUserExist" +// MISSINGPARAMETER_MISSINGPARAMETER = "MissingParameter.MissingParameter" +func (c *Client) CreateUserPersonalWithContext(ctx context.Context, request *CreateUserPersonalRequest) (response *CreateUserPersonalResponse, err error) { if request == nil { request = NewCreateUserPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateUserPersonal require credential") + } + + request.SetContext(ctx) + response = NewCreateUserPersonalResponse() err = c.Send(request, response) return @@ -785,7 +1677,10 @@ func NewCreateWebhookTriggerRequest() (request *CreateWebhookTriggerRequest) { request = &CreateWebhookTriggerRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "CreateWebhookTrigger") + + return } @@ -808,9 +1703,31 @@ func NewCreateWebhookTriggerResponse() (response *CreateWebhookTriggerResponse) // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" func (c *Client) CreateWebhookTrigger(request *CreateWebhookTriggerRequest) (response *CreateWebhookTriggerResponse, err error) { + return c.CreateWebhookTriggerWithContext(context.Background(), request) +} + +// CreateWebhookTrigger +// 创建触发器 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +func (c *Client) CreateWebhookTriggerWithContext(ctx context.Context, request *CreateWebhookTriggerRequest) (response *CreateWebhookTriggerResponse, err error) { if request == nil { request = NewCreateWebhookTriggerRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("CreateWebhookTrigger require credential") + } + + request.SetContext(ctx) + response = NewCreateWebhookTriggerResponse() err = c.Send(request, response) return @@ -820,7 +1737,10 @@ func NewDeleteApplicationTriggerPersonalRequest() (request *DeleteApplicationTri request = &DeleteApplicationTriggerPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteApplicationTriggerPersonal") + + return } @@ -839,9 +1759,27 @@ func NewDeleteApplicationTriggerPersonalResponse() (response *DeleteApplicationT // RESOURCENOTFOUND_ERRNOTRIGGER = "ResourceNotFound.ErrNoTrigger" // RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" func (c *Client) DeleteApplicationTriggerPersonal(request *DeleteApplicationTriggerPersonalRequest) (response *DeleteApplicationTriggerPersonalResponse, err error) { + return c.DeleteApplicationTriggerPersonalWithContext(context.Background(), request) +} + +// DeleteApplicationTriggerPersonal +// 用于删除应用更新触发器 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// RESOURCENOTFOUND_ERRNOTRIGGER = "ResourceNotFound.ErrNoTrigger" +// RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" +func (c *Client) DeleteApplicationTriggerPersonalWithContext(ctx context.Context, request *DeleteApplicationTriggerPersonalRequest) (response *DeleteApplicationTriggerPersonalResponse, err error) { if request == nil { request = NewDeleteApplicationTriggerPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteApplicationTriggerPersonal require credential") + } + + request.SetContext(ctx) + response = NewDeleteApplicationTriggerPersonalResponse() err = c.Send(request, response) return @@ -851,7 +1789,10 @@ func NewDeleteImageRequest() (request *DeleteImageRequest) { request = &DeleteImageRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteImage") + + return } @@ -878,19 +1819,108 @@ func NewDeleteImageResponse() (response *DeleteImageResponse) { // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteImage(request *DeleteImageRequest) (response *DeleteImageResponse, err error) { + return c.DeleteImageWithContext(context.Background(), request) +} + +// DeleteImage +// 删除指定镜像 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteImageWithContext(ctx context.Context, request *DeleteImageRequest) (response *DeleteImageResponse, err error) { if request == nil { request = NewDeleteImageRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteImage require credential") + } + + request.SetContext(ctx) + response = NewDeleteImageResponse() err = c.Send(request, response) return } +func NewDeleteImageAccelerateServiceRequest() (request *DeleteImageAccelerateServiceRequest) { + request = &DeleteImageAccelerateServiceRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "DeleteImageAccelerateService") + + + return +} + +func NewDeleteImageAccelerateServiceResponse() (response *DeleteImageAccelerateServiceResponse) { + response = &DeleteImageAccelerateServiceResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteImageAccelerateService +// 删除镜像加速服务 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteImageAccelerateService(request *DeleteImageAccelerateServiceRequest) (response *DeleteImageAccelerateServiceResponse, err error) { + return c.DeleteImageAccelerateServiceWithContext(context.Background(), request) +} + +// DeleteImageAccelerateService +// 删除镜像加速服务 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteImageAccelerateServiceWithContext(ctx context.Context, request *DeleteImageAccelerateServiceRequest) (response *DeleteImageAccelerateServiceResponse, err error) { + if request == nil { + request = NewDeleteImageAccelerateServiceRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteImageAccelerateService require credential") + } + + request.SetContext(ctx) + + response = NewDeleteImageAccelerateServiceResponse() + err = c.Send(request, response) + return +} + func NewDeleteImageLifecycleGlobalPersonalRequest() (request *DeleteImageLifecycleGlobalPersonalRequest) { request = &DeleteImageLifecycleGlobalPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteImageLifecycleGlobalPersonal") + + return } @@ -907,9 +1937,25 @@ func NewDeleteImageLifecycleGlobalPersonalResponse() (response *DeleteImageLifec // 可能返回的错误码: // INTERNALERROR = "InternalError" func (c *Client) DeleteImageLifecycleGlobalPersonal(request *DeleteImageLifecycleGlobalPersonalRequest) (response *DeleteImageLifecycleGlobalPersonalResponse, err error) { + return c.DeleteImageLifecycleGlobalPersonalWithContext(context.Background(), request) +} + +// DeleteImageLifecycleGlobalPersonal +// 用于删除个人版全局镜像版本自动清理策略 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +func (c *Client) DeleteImageLifecycleGlobalPersonalWithContext(ctx context.Context, request *DeleteImageLifecycleGlobalPersonalRequest) (response *DeleteImageLifecycleGlobalPersonalResponse, err error) { if request == nil { request = NewDeleteImageLifecycleGlobalPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteImageLifecycleGlobalPersonal require credential") + } + + request.SetContext(ctx) + response = NewDeleteImageLifecycleGlobalPersonalResponse() err = c.Send(request, response) return @@ -919,7 +1965,10 @@ func NewDeleteImageLifecyclePersonalRequest() (request *DeleteImageLifecyclePers request = &DeleteImageLifecyclePersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteImageLifecyclePersonal") + + return } @@ -938,9 +1987,27 @@ func NewDeleteImageLifecyclePersonalResponse() (response *DeleteImageLifecyclePe // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" func (c *Client) DeleteImageLifecyclePersonal(request *DeleteImageLifecyclePersonalRequest) (response *DeleteImageLifecyclePersonalResponse, err error) { + return c.DeleteImageLifecyclePersonalWithContext(context.Background(), request) +} + +// DeleteImageLifecyclePersonal +// 用于在个人版镜像仓库中删除仓库Tag自动清理策略 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +func (c *Client) DeleteImageLifecyclePersonalWithContext(ctx context.Context, request *DeleteImageLifecyclePersonalRequest) (response *DeleteImageLifecyclePersonalResponse, err error) { if request == nil { request = NewDeleteImageLifecyclePersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteImageLifecyclePersonal require credential") + } + + request.SetContext(ctx) + response = NewDeleteImageLifecyclePersonalResponse() err = c.Send(request, response) return @@ -950,7 +2017,10 @@ func NewDeleteImagePersonalRequest() (request *DeleteImagePersonalRequest) { request = &DeleteImagePersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteImagePersonal") + + return } @@ -970,9 +2040,28 @@ func NewDeleteImagePersonalResponse() (response *DeleteImagePersonalResponse) { // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" func (c *Client) DeleteImagePersonal(request *DeleteImagePersonalRequest) (response *DeleteImagePersonalResponse, err error) { + return c.DeleteImagePersonalWithContext(context.Background(), request) +} + +// DeleteImagePersonal +// 用于在个人版中删除tag +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRUNAUTHORIZED = "InternalError.ErrUnauthorized" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +func (c *Client) DeleteImagePersonalWithContext(ctx context.Context, request *DeleteImagePersonalRequest) (response *DeleteImagePersonalResponse, err error) { if request == nil { request = NewDeleteImagePersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteImagePersonal require credential") + } + + request.SetContext(ctx) + response = NewDeleteImagePersonalResponse() err = c.Send(request, response) return @@ -982,7 +2071,10 @@ func NewDeleteImmutableTagRulesRequest() (request *DeleteImmutableTagRulesReques request = &DeleteImmutableTagRulesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteImmutableTagRules") + + return } @@ -1003,9 +2095,29 @@ func NewDeleteImmutableTagRulesResponse() (response *DeleteImmutableTagRulesResp // INTERNALERROR_UNKNOWN = "InternalError.Unknown" // INVALIDPARAMETER = "InvalidParameter" func (c *Client) DeleteImmutableTagRules(request *DeleteImmutableTagRulesRequest) (response *DeleteImmutableTagRulesResponse, err error) { + return c.DeleteImmutableTagRulesWithContext(context.Background(), request) +} + +// DeleteImmutableTagRules +// 删除镜像不可变规则 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_UNKNOWN = "InternalError.Unknown" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DeleteImmutableTagRulesWithContext(ctx context.Context, request *DeleteImmutableTagRulesRequest) (response *DeleteImmutableTagRulesResponse, err error) { if request == nil { request = NewDeleteImmutableTagRulesRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteImmutableTagRules require credential") + } + + request.SetContext(ctx) + response = NewDeleteImmutableTagRulesResponse() err = c.Send(request, response) return @@ -1015,7 +2127,10 @@ func NewDeleteInstanceRequest() (request *DeleteInstanceRequest) { request = &DeleteInstanceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteInstance") + + return } @@ -1039,11 +2154,107 @@ func NewDeleteInstanceResponse() (response *DeleteInstanceResponse) { // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" -func (c *Client) DeleteInstance(request *DeleteInstanceRequest) (response *DeleteInstanceResponse, err error) { +func (c *Client) DeleteInstance(request *DeleteInstanceRequest) (response *DeleteInstanceResponse, err error) { + return c.DeleteInstanceWithContext(context.Background(), request) +} + +// DeleteInstance +// 删除镜像仓库企业版实例 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteInstanceWithContext(ctx context.Context, request *DeleteInstanceRequest) (response *DeleteInstanceResponse, err error) { + if request == nil { + request = NewDeleteInstanceRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteInstance require credential") + } + + request.SetContext(ctx) + + response = NewDeleteInstanceResponse() + err = c.Send(request, response) + return +} + +func NewDeleteInstanceCustomizedDomainRequest() (request *DeleteInstanceCustomizedDomainRequest) { + request = &DeleteInstanceCustomizedDomainRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "DeleteInstanceCustomizedDomain") + + + return +} + +func NewDeleteInstanceCustomizedDomainResponse() (response *DeleteInstanceCustomizedDomainResponse) { + response = &DeleteInstanceCustomizedDomainResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteInstanceCustomizedDomain +// 删除自定义域名 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteInstanceCustomizedDomain(request *DeleteInstanceCustomizedDomainRequest) (response *DeleteInstanceCustomizedDomainResponse, err error) { + return c.DeleteInstanceCustomizedDomainWithContext(context.Background(), request) +} + +// DeleteInstanceCustomizedDomain +// 删除自定义域名 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteInstanceCustomizedDomainWithContext(ctx context.Context, request *DeleteInstanceCustomizedDomainRequest) (response *DeleteInstanceCustomizedDomainResponse, err error) { if request == nil { - request = NewDeleteInstanceRequest() + request = NewDeleteInstanceCustomizedDomainRequest() } - response = NewDeleteInstanceResponse() + + if c.GetCredential() == nil { + return nil, errors.New("DeleteInstanceCustomizedDomain require credential") + } + + request.SetContext(ctx) + + response = NewDeleteInstanceCustomizedDomainResponse() err = c.Send(request, response) return } @@ -1052,7 +2263,10 @@ func NewDeleteInstanceTokenRequest() (request *DeleteInstanceTokenRequest) { request = &DeleteInstanceTokenRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteInstanceToken") + + return } @@ -1075,9 +2289,31 @@ func NewDeleteInstanceTokenResponse() (response *DeleteInstanceTokenResponse) { // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteInstanceToken(request *DeleteInstanceTokenRequest) (response *DeleteInstanceTokenResponse, err error) { + return c.DeleteInstanceTokenWithContext(context.Background(), request) +} + +// DeleteInstanceToken +// 删除长期访问凭证 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_UNKNOWN = "InternalError.Unknown" +// INVALIDPARAMETER = "InvalidParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteInstanceTokenWithContext(ctx context.Context, request *DeleteInstanceTokenRequest) (response *DeleteInstanceTokenResponse, err error) { if request == nil { request = NewDeleteInstanceTokenRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteInstanceToken require credential") + } + + request.SetContext(ctx) + response = NewDeleteInstanceTokenResponse() err = c.Send(request, response) return @@ -1087,7 +2323,10 @@ func NewDeleteInternalEndpointDnsRequest() (request *DeleteInternalEndpointDnsRe request = &DeleteInternalEndpointDnsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteInternalEndpointDns") + + return } @@ -1114,9 +2353,35 @@ func NewDeleteInternalEndpointDnsResponse() (response *DeleteInternalEndpointDns // INVALIDPARAMETER = "InvalidParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteInternalEndpointDns(request *DeleteInternalEndpointDnsRequest) (response *DeleteInternalEndpointDnsResponse, err error) { + return c.DeleteInternalEndpointDnsWithContext(context.Background(), request) +} + +// DeleteInternalEndpointDns +// 删除tcr内网私有域名解析 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_CREATEPRIVATEZONE = "InternalError.CreatePrivateZone" +// INTERNALERROR_CREATEPRIVATEZONERECORD = "InternalError.CreatePrivateZoneRecord" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_DELETEPRIVATEZONERECORD = "InternalError.DeletePrivateZoneRecord" +// INTERNALERROR_DESCRIBEINTERNALENDPOINTDNSSTATUS = "InternalError.DescribeInternalEndpointDnsStatus" +// INTERNALERROR_DESCRIBEPRIVATEZONELIST = "InternalError.DescribePrivateZoneList" +// INTERNALERROR_DESCRIBEPRIVATEZONERECORDLIST = "InternalError.DescribePrivateZoneRecordList" +// INTERNALERROR_DESCRIBEPRIVATEZONESERVICELIST = "InternalError.DescribePrivateZoneServiceList" +// INVALIDPARAMETER = "InvalidParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteInternalEndpointDnsWithContext(ctx context.Context, request *DeleteInternalEndpointDnsRequest) (response *DeleteInternalEndpointDnsResponse, err error) { if request == nil { request = NewDeleteInternalEndpointDnsRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteInternalEndpointDns require credential") + } + + request.SetContext(ctx) + response = NewDeleteInternalEndpointDnsResponse() err = c.Send(request, response) return @@ -1126,7 +2391,10 @@ func NewDeleteMultipleSecurityPolicyRequest() (request *DeleteMultipleSecurityPo request = &DeleteMultipleSecurityPolicyRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteMultipleSecurityPolicy") + + return } @@ -1149,9 +2417,31 @@ func NewDeleteMultipleSecurityPolicyResponse() (response *DeleteMultipleSecurity // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteMultipleSecurityPolicy(request *DeleteMultipleSecurityPolicyRequest) (response *DeleteMultipleSecurityPolicyResponse, err error) { + return c.DeleteMultipleSecurityPolicyWithContext(context.Background(), request) +} + +// DeleteMultipleSecurityPolicy +// 用于删除实例多个公网访问白名单策略 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteMultipleSecurityPolicyWithContext(ctx context.Context, request *DeleteMultipleSecurityPolicyRequest) (response *DeleteMultipleSecurityPolicyResponse, err error) { if request == nil { request = NewDeleteMultipleSecurityPolicyRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteMultipleSecurityPolicy require credential") + } + + request.SetContext(ctx) + response = NewDeleteMultipleSecurityPolicyResponse() err = c.Send(request, response) return @@ -1161,7 +2451,10 @@ func NewDeleteNamespaceRequest() (request *DeleteNamespaceRequest) { request = &DeleteNamespaceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteNamespace") + + return } @@ -1176,7 +2469,13 @@ func NewDeleteNamespaceResponse() (response *DeleteNamespaceResponse) { // 删除命名空间 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" +// FAILEDOPERATION_ERRORTCRRESOURCECONFLICT = "FailedOperation.ErrorTcrResourceConflict" +// FAILEDOPERATION_ERRORTCRUNAUTHORIZED = "FailedOperation.ErrorTcrUnauthorized" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" // INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" // INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" // INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" // INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" @@ -1188,9 +2487,41 @@ func NewDeleteNamespaceResponse() (response *DeleteNamespaceResponse) { // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteNamespace(request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error) { + return c.DeleteNamespaceWithContext(context.Background(), request) +} + +// DeleteNamespace +// 删除命名空间 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" +// FAILEDOPERATION_ERRORTCRRESOURCECONFLICT = "FailedOperation.ErrorTcrResourceConflict" +// FAILEDOPERATION_ERRORTCRUNAUTHORIZED = "FailedOperation.ErrorTcrUnauthorized" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteNamespaceWithContext(ctx context.Context, request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error) { if request == nil { request = NewDeleteNamespaceRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteNamespace require credential") + } + + request.SetContext(ctx) + response = NewDeleteNamespaceResponse() err = c.Send(request, response) return @@ -1200,7 +2531,10 @@ func NewDeleteNamespacePersonalRequest() (request *DeleteNamespacePersonalReques request = &DeleteNamespacePersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteNamespacePersonal") + + return } @@ -1221,19 +2555,106 @@ func NewDeleteNamespacePersonalResponse() (response *DeleteNamespacePersonalResp // RESOURCENOTFOUND_ERRNONAMESPACE = "ResourceNotFound.ErrNoNamespace" // RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" func (c *Client) DeleteNamespacePersonal(request *DeleteNamespacePersonalRequest) (response *DeleteNamespacePersonalResponse, err error) { + return c.DeleteNamespacePersonalWithContext(context.Background(), request) +} + +// DeleteNamespacePersonal +// 删除共享版命名空间 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRUNAUTHORIZED = "InternalError.ErrUnauthorized" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNONAMESPACE = "ResourceNotFound.ErrNoNamespace" +// RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" +func (c *Client) DeleteNamespacePersonalWithContext(ctx context.Context, request *DeleteNamespacePersonalRequest) (response *DeleteNamespacePersonalResponse, err error) { if request == nil { request = NewDeleteNamespacePersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteNamespacePersonal require credential") + } + + request.SetContext(ctx) + response = NewDeleteNamespacePersonalResponse() err = c.Send(request, response) return } +func NewDeleteReplicationInstanceRequest() (request *DeleteReplicationInstanceRequest) { + request = &DeleteReplicationInstanceRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "DeleteReplicationInstance") + + + return +} + +func NewDeleteReplicationInstanceResponse() (response *DeleteReplicationInstanceResponse) { + response = &DeleteReplicationInstanceResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteReplicationInstance +// 删除从实例 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteReplicationInstance(request *DeleteReplicationInstanceRequest) (response *DeleteReplicationInstanceResponse, err error) { + return c.DeleteReplicationInstanceWithContext(context.Background(), request) +} + +// DeleteReplicationInstance +// 删除从实例 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteReplicationInstanceWithContext(ctx context.Context, request *DeleteReplicationInstanceRequest) (response *DeleteReplicationInstanceResponse, err error) { + if request == nil { + request = NewDeleteReplicationInstanceRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteReplicationInstance require credential") + } + + request.SetContext(ctx) + + response = NewDeleteReplicationInstanceResponse() + err = c.Send(request, response) + return +} + func NewDeleteRepositoryRequest() (request *DeleteRepositoryRequest) { request = &DeleteRepositoryRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteRepository") + + return } @@ -1260,9 +2681,35 @@ func NewDeleteRepositoryResponse() (response *DeleteRepositoryResponse) { // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteRepository(request *DeleteRepositoryRequest) (response *DeleteRepositoryResponse, err error) { + return c.DeleteRepositoryWithContext(context.Background(), request) +} + +// DeleteRepository +// 删除镜像仓库 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteRepositoryWithContext(ctx context.Context, request *DeleteRepositoryRequest) (response *DeleteRepositoryResponse, err error) { if request == nil { request = NewDeleteRepositoryRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteRepository require credential") + } + + request.SetContext(ctx) + response = NewDeleteRepositoryResponse() err = c.Send(request, response) return @@ -1272,7 +2719,10 @@ func NewDeleteRepositoryPersonalRequest() (request *DeleteRepositoryPersonalRequ request = &DeleteRepositoryPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteRepositoryPersonal") + + return } @@ -1288,50 +2738,241 @@ func NewDeleteRepositoryPersonalResponse() (response *DeleteRepositoryPersonalRe // // 可能返回的错误码: // INTERNALERROR = "InternalError" -// INTERNALERROR_ERRUNAUTHORIZED = "InternalError.ErrUnauthorized" +// INTERNALERROR_ERRUNAUTHORIZED = "InternalError.ErrUnauthorized" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +func (c *Client) DeleteRepositoryPersonal(request *DeleteRepositoryPersonalRequest) (response *DeleteRepositoryPersonalResponse, err error) { + return c.DeleteRepositoryPersonalWithContext(context.Background(), request) +} + +// DeleteRepositoryPersonal +// 用于个人版镜像仓库中删除 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRUNAUTHORIZED = "InternalError.ErrUnauthorized" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +func (c *Client) DeleteRepositoryPersonalWithContext(ctx context.Context, request *DeleteRepositoryPersonalRequest) (response *DeleteRepositoryPersonalResponse, err error) { + if request == nil { + request = NewDeleteRepositoryPersonalRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteRepositoryPersonal require credential") + } + + request.SetContext(ctx) + + response = NewDeleteRepositoryPersonalResponse() + err = c.Send(request, response) + return +} + +func NewDeleteRepositoryTagsRequest() (request *DeleteRepositoryTagsRequest) { + request = &DeleteRepositoryTagsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "DeleteRepositoryTags") + + + return +} + +func NewDeleteRepositoryTagsResponse() (response *DeleteRepositoryTagsResponse) { + response = &DeleteRepositoryTagsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteRepositoryTags +// 用于企业版批量删除Repository Tag +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteRepositoryTags(request *DeleteRepositoryTagsRequest) (response *DeleteRepositoryTagsResponse, err error) { + return c.DeleteRepositoryTagsWithContext(context.Background(), request) +} + +// DeleteRepositoryTags +// 用于企业版批量删除Repository Tag +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteRepositoryTagsWithContext(ctx context.Context, request *DeleteRepositoryTagsRequest) (response *DeleteRepositoryTagsResponse, err error) { + if request == nil { + request = NewDeleteRepositoryTagsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteRepositoryTags require credential") + } + + request.SetContext(ctx) + + response = NewDeleteRepositoryTagsResponse() + err = c.Send(request, response) + return +} + +func NewDeleteSecurityPolicyRequest() (request *DeleteSecurityPolicyRequest) { + request = &DeleteSecurityPolicyRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "DeleteSecurityPolicy") + + + return +} + +func NewDeleteSecurityPolicyResponse() (response *DeleteSecurityPolicyResponse) { + response = &DeleteSecurityPolicyResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteSecurityPolicy +// 删除实例公网访问白名单策略 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteSecurityPolicy(request *DeleteSecurityPolicyRequest) (response *DeleteSecurityPolicyResponse, err error) { + return c.DeleteSecurityPolicyWithContext(context.Background(), request) +} + +// DeleteSecurityPolicy +// 删除实例公网访问白名单策略 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" // MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" -func (c *Client) DeleteRepositoryPersonal(request *DeleteRepositoryPersonalRequest) (response *DeleteRepositoryPersonalResponse, err error) { +// OPERATIONDENIED = "OperationDenied" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteSecurityPolicyWithContext(ctx context.Context, request *DeleteSecurityPolicyRequest) (response *DeleteSecurityPolicyResponse, err error) { if request == nil { - request = NewDeleteRepositoryPersonalRequest() + request = NewDeleteSecurityPolicyRequest() } - response = NewDeleteRepositoryPersonalResponse() + + if c.GetCredential() == nil { + return nil, errors.New("DeleteSecurityPolicy require credential") + } + + request.SetContext(ctx) + + response = NewDeleteSecurityPolicyResponse() err = c.Send(request, response) return } -func NewDeleteSecurityPolicyRequest() (request *DeleteSecurityPolicyRequest) { - request = &DeleteSecurityPolicyRequest{ +func NewDeleteSignaturePolicyRequest() (request *DeleteSignaturePolicyRequest) { + request = &DeleteSignaturePolicyRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("tcr", APIVersion, "DeleteSecurityPolicy") + + request.Init().WithApiInfo("tcr", APIVersion, "DeleteSignaturePolicy") + + return } -func NewDeleteSecurityPolicyResponse() (response *DeleteSecurityPolicyResponse) { - response = &DeleteSecurityPolicyResponse{ +func NewDeleteSignaturePolicyResponse() (response *DeleteSignaturePolicyResponse) { + response = &DeleteSignaturePolicyResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DeleteSecurityPolicy -// 删除实例公网访问白名单策略 +// DeleteSignaturePolicy +// 删除命名空间加签策略 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" +// FAILEDOPERATION_ERRORTCRRESOURCECONFLICT = "FailedOperation.ErrorTcrResourceConflict" +// FAILEDOPERATION_ERRORTCRUNAUTHORIZED = "FailedOperation.ErrorTcrUnauthorized" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" // INTERNALERROR = "InternalError" -// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" // INVALIDPARAMETER = "InvalidParameter" // MISSINGPARAMETER = "MissingParameter" // OPERATIONDENIED = "OperationDenied" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" -func (c *Client) DeleteSecurityPolicy(request *DeleteSecurityPolicyRequest) (response *DeleteSecurityPolicyResponse, err error) { +func (c *Client) DeleteSignaturePolicy(request *DeleteSignaturePolicyRequest) (response *DeleteSignaturePolicyResponse, err error) { + return c.DeleteSignaturePolicyWithContext(context.Background(), request) +} + +// DeleteSignaturePolicy +// 删除命名空间加签策略 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" +// FAILEDOPERATION_ERRORTCRRESOURCECONFLICT = "FailedOperation.ErrorTcrResourceConflict" +// FAILEDOPERATION_ERRORTCRUNAUTHORIZED = "FailedOperation.ErrorTcrUnauthorized" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteSignaturePolicyWithContext(ctx context.Context, request *DeleteSignaturePolicyRequest) (response *DeleteSignaturePolicyResponse, err error) { if request == nil { - request = NewDeleteSecurityPolicyRequest() + request = NewDeleteSignaturePolicyRequest() } - response = NewDeleteSecurityPolicyResponse() + + if c.GetCredential() == nil { + return nil, errors.New("DeleteSignaturePolicy require credential") + } + + request.SetContext(ctx) + + response = NewDeleteSignaturePolicyResponse() err = c.Send(request, response) return } @@ -1340,7 +2981,10 @@ func NewDeleteTagRetentionRuleRequest() (request *DeleteTagRetentionRuleRequest) request = &DeleteTagRetentionRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteTagRetentionRule") + + return } @@ -1369,9 +3013,37 @@ func NewDeleteTagRetentionRuleResponse() (response *DeleteTagRetentionRuleRespon // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DeleteTagRetentionRule(request *DeleteTagRetentionRuleRequest) (response *DeleteTagRetentionRuleResponse, err error) { + return c.DeleteTagRetentionRuleWithContext(context.Background(), request) +} + +// DeleteTagRetentionRule +// 删除版本保留规则 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteTagRetentionRuleWithContext(ctx context.Context, request *DeleteTagRetentionRuleRequest) (response *DeleteTagRetentionRuleResponse, err error) { if request == nil { request = NewDeleteTagRetentionRuleRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteTagRetentionRule require credential") + } + + request.SetContext(ctx) + response = NewDeleteTagRetentionRuleResponse() err = c.Send(request, response) return @@ -1381,7 +3053,10 @@ func NewDeleteWebhookTriggerRequest() (request *DeleteWebhookTriggerRequest) { request = &DeleteWebhookTriggerRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DeleteWebhookTrigger") + + return } @@ -1404,9 +3079,31 @@ func NewDeleteWebhookTriggerResponse() (response *DeleteWebhookTriggerResponse) // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" func (c *Client) DeleteWebhookTrigger(request *DeleteWebhookTriggerRequest) (response *DeleteWebhookTriggerResponse, err error) { + return c.DeleteWebhookTriggerWithContext(context.Background(), request) +} + +// DeleteWebhookTrigger +// 删除触发器 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +func (c *Client) DeleteWebhookTriggerWithContext(ctx context.Context, request *DeleteWebhookTriggerRequest) (response *DeleteWebhookTriggerResponse, err error) { if request == nil { request = NewDeleteWebhookTriggerRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteWebhookTrigger require credential") + } + + request.SetContext(ctx) + response = NewDeleteWebhookTriggerResponse() err = c.Send(request, response) return @@ -1416,7 +3113,10 @@ func NewDescribeApplicationTriggerLogPersonalRequest() (request *DescribeApplica request = &DescribeApplicationTriggerLogPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeApplicationTriggerLogPersonal") + + return } @@ -1434,9 +3134,26 @@ func NewDescribeApplicationTriggerLogPersonalResponse() (response *DescribeAppli // INTERNALERROR = "InternalError" // RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" func (c *Client) DescribeApplicationTriggerLogPersonal(request *DescribeApplicationTriggerLogPersonalRequest) (response *DescribeApplicationTriggerLogPersonalResponse, err error) { + return c.DescribeApplicationTriggerLogPersonalWithContext(context.Background(), request) +} + +// DescribeApplicationTriggerLogPersonal +// 用于查询应用更新触发器触发日志 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +func (c *Client) DescribeApplicationTriggerLogPersonalWithContext(ctx context.Context, request *DescribeApplicationTriggerLogPersonalRequest) (response *DescribeApplicationTriggerLogPersonalResponse, err error) { if request == nil { request = NewDescribeApplicationTriggerLogPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeApplicationTriggerLogPersonal require credential") + } + + request.SetContext(ctx) + response = NewDescribeApplicationTriggerLogPersonalResponse() err = c.Send(request, response) return @@ -1446,7 +3163,10 @@ func NewDescribeApplicationTriggerPersonalRequest() (request *DescribeApplicatio request = &DescribeApplicationTriggerPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeApplicationTriggerPersonal") + + return } @@ -1465,9 +3185,27 @@ func NewDescribeApplicationTriggerPersonalResponse() (response *DescribeApplicat // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" func (c *Client) DescribeApplicationTriggerPersonal(request *DescribeApplicationTriggerPersonalRequest) (response *DescribeApplicationTriggerPersonalResponse, err error) { + return c.DescribeApplicationTriggerPersonalWithContext(context.Background(), request) +} + +// DescribeApplicationTriggerPersonal +// 用于查询应用更新触发器 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" +func (c *Client) DescribeApplicationTriggerPersonalWithContext(ctx context.Context, request *DescribeApplicationTriggerPersonalRequest) (response *DescribeApplicationTriggerPersonalResponse, err error) { if request == nil { request = NewDescribeApplicationTriggerPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeApplicationTriggerPersonal require credential") + } + + request.SetContext(ctx) + response = NewDescribeApplicationTriggerPersonalResponse() err = c.Send(request, response) return @@ -1477,7 +3215,10 @@ func NewDescribeChartDownloadInfoRequest() (request *DescribeChartDownloadInfoRe request = &DescribeChartDownloadInfoRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeChartDownloadInfo") + + return } @@ -1497,31 +3238,235 @@ func NewDescribeChartDownloadInfoResponse() (response *DescribeChartDownloadInfo // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeChartDownloadInfo(request *DescribeChartDownloadInfoRequest) (response *DescribeChartDownloadInfoResponse, err error) { + return c.DescribeChartDownloadInfoWithContext(context.Background(), request) +} + +// DescribeChartDownloadInfo +// 用于在企业版中返回Chart的下载信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeChartDownloadInfoWithContext(ctx context.Context, request *DescribeChartDownloadInfoRequest) (response *DescribeChartDownloadInfoResponse, err error) { if request == nil { request = NewDescribeChartDownloadInfoRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeChartDownloadInfo require credential") + } + + request.SetContext(ctx) + response = NewDescribeChartDownloadInfoResponse() err = c.Send(request, response) return } -func NewDescribeExternalEndpointStatusRequest() (request *DescribeExternalEndpointStatusRequest) { - request = &DescribeExternalEndpointStatusRequest{ +func NewDescribeExternalEndpointStatusRequest() (request *DescribeExternalEndpointStatusRequest) { + request = &DescribeExternalEndpointStatusRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "DescribeExternalEndpointStatus") + + + return +} + +func NewDescribeExternalEndpointStatusResponse() (response *DescribeExternalEndpointStatusResponse) { + response = &DescribeExternalEndpointStatusResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeExternalEndpointStatus +// 查询实例公网访问入口状态 +// +// 可能返回的错误码: +// FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" +// FAILEDOPERATION_GETTCRCLIENT = "FailedOperation.GetTcrClient" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeExternalEndpointStatus(request *DescribeExternalEndpointStatusRequest) (response *DescribeExternalEndpointStatusResponse, err error) { + return c.DescribeExternalEndpointStatusWithContext(context.Background(), request) +} + +// DescribeExternalEndpointStatus +// 查询实例公网访问入口状态 +// +// 可能返回的错误码: +// FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" +// FAILEDOPERATION_GETTCRCLIENT = "FailedOperation.GetTcrClient" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeExternalEndpointStatusWithContext(ctx context.Context, request *DescribeExternalEndpointStatusRequest) (response *DescribeExternalEndpointStatusResponse, err error) { + if request == nil { + request = NewDescribeExternalEndpointStatusRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeExternalEndpointStatus require credential") + } + + request.SetContext(ctx) + + response = NewDescribeExternalEndpointStatusResponse() + err = c.Send(request, response) + return +} + +func NewDescribeFavorRepositoryPersonalRequest() (request *DescribeFavorRepositoryPersonalRequest) { + request = &DescribeFavorRepositoryPersonalRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "DescribeFavorRepositoryPersonal") + + + return +} + +func NewDescribeFavorRepositoryPersonalResponse() (response *DescribeFavorRepositoryPersonalResponse) { + response = &DescribeFavorRepositoryPersonalResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeFavorRepositoryPersonal +// 查询个人收藏仓库 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) DescribeFavorRepositoryPersonal(request *DescribeFavorRepositoryPersonalRequest) (response *DescribeFavorRepositoryPersonalResponse, err error) { + return c.DescribeFavorRepositoryPersonalWithContext(context.Background(), request) +} + +// DescribeFavorRepositoryPersonal +// 查询个人收藏仓库 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) DescribeFavorRepositoryPersonalWithContext(ctx context.Context, request *DescribeFavorRepositoryPersonalRequest) (response *DescribeFavorRepositoryPersonalResponse, err error) { + if request == nil { + request = NewDescribeFavorRepositoryPersonalRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeFavorRepositoryPersonal require credential") + } + + request.SetContext(ctx) + + response = NewDescribeFavorRepositoryPersonalResponse() + err = c.Send(request, response) + return +} + +func NewDescribeGCJobsRequest() (request *DescribeGCJobsRequest) { + request = &DescribeGCJobsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "DescribeGCJobs") + + + return +} + +func NewDescribeGCJobsResponse() (response *DescribeGCJobsResponse) { + response = &DescribeGCJobsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeGCJobs +// GC 最近10条历史 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeGCJobs(request *DescribeGCJobsRequest) (response *DescribeGCJobsResponse, err error) { + return c.DescribeGCJobsWithContext(context.Background(), request) +} + +// DescribeGCJobs +// GC 最近10条历史 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeGCJobsWithContext(ctx context.Context, request *DescribeGCJobsRequest) (response *DescribeGCJobsResponse, err error) { + if request == nil { + request = NewDescribeGCJobsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeGCJobs require credential") + } + + request.SetContext(ctx) + + response = NewDescribeGCJobsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeImageAccelerateServiceRequest() (request *DescribeImageAccelerateServiceRequest) { + request = &DescribeImageAccelerateServiceRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("tcr", APIVersion, "DescribeExternalEndpointStatus") + + request.Init().WithApiInfo("tcr", APIVersion, "DescribeImageAccelerateService") + + return } -func NewDescribeExternalEndpointStatusResponse() (response *DescribeExternalEndpointStatusResponse) { - response = &DescribeExternalEndpointStatusResponse{ +func NewDescribeImageAccelerateServiceResponse() (response *DescribeImageAccelerateServiceResponse) { + response = &DescribeImageAccelerateServiceResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DescribeExternalEndpointStatus -// 查询实例公网访问入口状态 +// DescribeImageAccelerateService +// 查询镜像加速服务状态 // // 可能返回的错误码: // INTERNALERROR = "InternalError" @@ -1531,41 +3476,33 @@ func NewDescribeExternalEndpointStatusResponse() (response *DescribeExternalEndp // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" -func (c *Client) DescribeExternalEndpointStatus(request *DescribeExternalEndpointStatusRequest) (response *DescribeExternalEndpointStatusResponse, err error) { - if request == nil { - request = NewDescribeExternalEndpointStatusRequest() - } - response = NewDescribeExternalEndpointStatusResponse() - err = c.Send(request, response) - return -} - -func NewDescribeFavorRepositoryPersonalRequest() (request *DescribeFavorRepositoryPersonalRequest) { - request = &DescribeFavorRepositoryPersonalRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - request.Init().WithApiInfo("tcr", APIVersion, "DescribeFavorRepositoryPersonal") - return -} - -func NewDescribeFavorRepositoryPersonalResponse() (response *DescribeFavorRepositoryPersonalResponse) { - response = &DescribeFavorRepositoryPersonalResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return +func (c *Client) DescribeImageAccelerateService(request *DescribeImageAccelerateServiceRequest) (response *DescribeImageAccelerateServiceResponse, err error) { + return c.DescribeImageAccelerateServiceWithContext(context.Background(), request) } -// DescribeFavorRepositoryPersonal -// 查询个人收藏仓库 +// DescribeImageAccelerateService +// 查询镜像加速服务状态 // // 可能返回的错误码: // INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" // MISSINGPARAMETER = "MissingParameter" -func (c *Client) DescribeFavorRepositoryPersonal(request *DescribeFavorRepositoryPersonalRequest) (response *DescribeFavorRepositoryPersonalResponse, err error) { +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeImageAccelerateServiceWithContext(ctx context.Context, request *DescribeImageAccelerateServiceRequest) (response *DescribeImageAccelerateServiceResponse, err error) { if request == nil { - request = NewDescribeFavorRepositoryPersonalRequest() + request = NewDescribeImageAccelerateServiceRequest() } - response = NewDescribeFavorRepositoryPersonalResponse() + + if c.GetCredential() == nil { + return nil, errors.New("DescribeImageAccelerateService require credential") + } + + request.SetContext(ctx) + + response = NewDescribeImageAccelerateServiceResponse() err = c.Send(request, response) return } @@ -1574,7 +3511,10 @@ func NewDescribeImageFilterPersonalRequest() (request *DescribeImageFilterPerson request = &DescribeImageFilterPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeImageFilterPersonal") + + return } @@ -1594,9 +3534,28 @@ func NewDescribeImageFilterPersonalResponse() (response *DescribeImageFilterPers // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" func (c *Client) DescribeImageFilterPersonal(request *DescribeImageFilterPersonalRequest) (response *DescribeImageFilterPersonalResponse, err error) { + return c.DescribeImageFilterPersonalWithContext(context.Background(), request) +} + +// DescribeImageFilterPersonal +// 用于在个人版中查询与指定tag镜像内容相同的tag列表 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRUNAUTHORIZED = "InternalError.ErrUnauthorized" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +func (c *Client) DescribeImageFilterPersonalWithContext(ctx context.Context, request *DescribeImageFilterPersonalRequest) (response *DescribeImageFilterPersonalResponse, err error) { if request == nil { request = NewDescribeImageFilterPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeImageFilterPersonal require credential") + } + + request.SetContext(ctx) + response = NewDescribeImageFilterPersonalResponse() err = c.Send(request, response) return @@ -1606,7 +3565,10 @@ func NewDescribeImageLifecycleGlobalPersonalRequest() (request *DescribeImageLif request = &DescribeImageLifecycleGlobalPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeImageLifecycleGlobalPersonal") + + return } @@ -1623,9 +3585,25 @@ func NewDescribeImageLifecycleGlobalPersonalResponse() (response *DescribeImageL // 可能返回的错误码: // INTERNALERROR = "InternalError" func (c *Client) DescribeImageLifecycleGlobalPersonal(request *DescribeImageLifecycleGlobalPersonalRequest) (response *DescribeImageLifecycleGlobalPersonalResponse, err error) { + return c.DescribeImageLifecycleGlobalPersonalWithContext(context.Background(), request) +} + +// DescribeImageLifecycleGlobalPersonal +// 用于获取个人版全局镜像版本自动清理策略 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +func (c *Client) DescribeImageLifecycleGlobalPersonalWithContext(ctx context.Context, request *DescribeImageLifecycleGlobalPersonalRequest) (response *DescribeImageLifecycleGlobalPersonalResponse, err error) { if request == nil { request = NewDescribeImageLifecycleGlobalPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeImageLifecycleGlobalPersonal require credential") + } + + request.SetContext(ctx) + response = NewDescribeImageLifecycleGlobalPersonalResponse() err = c.Send(request, response) return @@ -1635,7 +3613,10 @@ func NewDescribeImageLifecyclePersonalRequest() (request *DescribeImageLifecycle request = &DescribeImageLifecyclePersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeImageLifecyclePersonal") + + return } @@ -1653,9 +3634,26 @@ func NewDescribeImageLifecyclePersonalResponse() (response *DescribeImageLifecyc // INTERNALERROR = "InternalError" // MISSINGPARAMETER = "MissingParameter" func (c *Client) DescribeImageLifecyclePersonal(request *DescribeImageLifecyclePersonalRequest) (response *DescribeImageLifecyclePersonalResponse, err error) { + return c.DescribeImageLifecyclePersonalWithContext(context.Background(), request) +} + +// DescribeImageLifecyclePersonal +// 用于获取个人版仓库中自动清理策略 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) DescribeImageLifecyclePersonalWithContext(ctx context.Context, request *DescribeImageLifecyclePersonalRequest) (response *DescribeImageLifecyclePersonalResponse, err error) { if request == nil { request = NewDescribeImageLifecyclePersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeImageLifecyclePersonal require credential") + } + + request.SetContext(ctx) + response = NewDescribeImageLifecyclePersonalResponse() err = c.Send(request, response) return @@ -1665,7 +3663,10 @@ func NewDescribeImageManifestsRequest() (request *DescribeImageManifestsRequest) request = &DescribeImageManifestsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeImageManifests") + + return } @@ -1693,9 +3694,36 @@ func NewDescribeImageManifestsResponse() (response *DescribeImageManifestsRespon // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeImageManifests(request *DescribeImageManifestsRequest) (response *DescribeImageManifestsResponse, err error) { + return c.DescribeImageManifestsWithContext(context.Background(), request) +} + +// DescribeImageManifests +// 查询容器镜像Manifest信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeImageManifestsWithContext(ctx context.Context, request *DescribeImageManifestsRequest) (response *DescribeImageManifestsResponse, err error) { if request == nil { request = NewDescribeImageManifestsRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeImageManifests require credential") + } + + request.SetContext(ctx) + response = NewDescribeImageManifestsResponse() err = c.Send(request, response) return @@ -1705,7 +3733,10 @@ func NewDescribeImagePersonalRequest() (request *DescribeImagePersonalRequest) { request = &DescribeImagePersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeImagePersonal") + + return } @@ -1725,9 +3756,28 @@ func NewDescribeImagePersonalResponse() (response *DescribeImagePersonalResponse // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" func (c *Client) DescribeImagePersonal(request *DescribeImagePersonalRequest) (response *DescribeImagePersonalResponse, err error) { + return c.DescribeImagePersonalWithContext(context.Background(), request) +} + +// DescribeImagePersonal +// 用于获取个人版镜像仓库tag列表 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRUNAUTHORIZED = "InternalError.ErrUnauthorized" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +func (c *Client) DescribeImagePersonalWithContext(ctx context.Context, request *DescribeImagePersonalRequest) (response *DescribeImagePersonalResponse, err error) { if request == nil { request = NewDescribeImagePersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeImagePersonal require credential") + } + + request.SetContext(ctx) + response = NewDescribeImagePersonalResponse() err = c.Send(request, response) return @@ -1737,21 +3787,223 @@ func NewDescribeImagesRequest() (request *DescribeImagesRequest) { request = &DescribeImagesRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("tcr", APIVersion, "DescribeImages") + + request.Init().WithApiInfo("tcr", APIVersion, "DescribeImages") + + + return +} + +func NewDescribeImagesResponse() (response *DescribeImagesResponse) { + response = &DescribeImagesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeImages +// 查询镜像版本列表或指定容器镜像信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +func (c *Client) DescribeImages(request *DescribeImagesRequest) (response *DescribeImagesResponse, err error) { + return c.DescribeImagesWithContext(context.Background(), request) +} + +// DescribeImages +// 查询镜像版本列表或指定容器镜像信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +func (c *Client) DescribeImagesWithContext(ctx context.Context, request *DescribeImagesRequest) (response *DescribeImagesResponse, err error) { + if request == nil { + request = NewDescribeImagesRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeImages require credential") + } + + request.SetContext(ctx) + + response = NewDescribeImagesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeImmutableTagRulesRequest() (request *DescribeImmutableTagRulesRequest) { + request = &DescribeImmutableTagRulesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "DescribeImmutableTagRules") + + + return +} + +func NewDescribeImmutableTagRulesResponse() (response *DescribeImmutableTagRulesResponse) { + response = &DescribeImmutableTagRulesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeImmutableTagRules +// 列出镜像不可变规则 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INTERNALERROR_UNKNOWN = "InternalError.Unknown" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +func (c *Client) DescribeImmutableTagRules(request *DescribeImmutableTagRulesRequest) (response *DescribeImmutableTagRulesResponse, err error) { + return c.DescribeImmutableTagRulesWithContext(context.Background(), request) +} + +// DescribeImmutableTagRules +// 列出镜像不可变规则 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INTERNALERROR_UNKNOWN = "InternalError.Unknown" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +func (c *Client) DescribeImmutableTagRulesWithContext(ctx context.Context, request *DescribeImmutableTagRulesRequest) (response *DescribeImmutableTagRulesResponse, err error) { + if request == nil { + request = NewDescribeImmutableTagRulesRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeImmutableTagRules require credential") + } + + request.SetContext(ctx) + + response = NewDescribeImmutableTagRulesResponse() + err = c.Send(request, response) + return +} + +func NewDescribeInstanceAllRequest() (request *DescribeInstanceAllRequest) { + request = &DescribeInstanceAllRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "DescribeInstanceAll") + + + return +} + +func NewDescribeInstanceAllResponse() (response *DescribeInstanceAllResponse) { + response = &DescribeInstanceAllResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeInstanceAll +// 查询全部实例信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINSUFFICIENT_ERRORINSTANCENOTRUNNING = "ResourceInsufficient.ErrorInstanceNotRunning" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeInstanceAll(request *DescribeInstanceAllRequest) (response *DescribeInstanceAllResponse, err error) { + return c.DescribeInstanceAllWithContext(context.Background(), request) +} + +// DescribeInstanceAll +// 查询全部实例信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINSUFFICIENT_ERRORINSTANCENOTRUNNING = "ResourceInsufficient.ErrorInstanceNotRunning" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeInstanceAllWithContext(ctx context.Context, request *DescribeInstanceAllRequest) (response *DescribeInstanceAllResponse, err error) { + if request == nil { + request = NewDescribeInstanceAllRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeInstanceAll require credential") + } + + request.SetContext(ctx) + + response = NewDescribeInstanceAllResponse() + err = c.Send(request, response) + return +} + +func NewDescribeInstanceAllNamespacesRequest() (request *DescribeInstanceAllNamespacesRequest) { + request = &DescribeInstanceAllNamespacesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "DescribeInstanceAllNamespaces") + + return } -func NewDescribeImagesResponse() (response *DescribeImagesResponse) { - response = &DescribeImagesResponse{ +func NewDescribeInstanceAllNamespacesResponse() (response *DescribeInstanceAllNamespacesResponse) { + response = &DescribeInstanceAllNamespacesResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DescribeImages -// 查询镜像版本列表或指定容器镜像信息 +// DescribeInstanceAllNamespaces +// 查询所有有实例命名空间列表 // // 可能返回的错误码: +// FAILEDOPERATION_DEPENDENCEERROR = "FailedOperation.DependenceError" +// FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" +// FAILEDOPERATION_OPERATIONCANCEL = "FailedOperation.OperationCancel" // INTERNALERROR = "InternalError" // INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" // INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" @@ -1763,46 +4015,112 @@ func NewDescribeImagesResponse() (response *DescribeImagesResponse) { // OPERATIONDENIED = "OperationDenied" // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" -func (c *Client) DescribeImages(request *DescribeImagesRequest) (response *DescribeImagesResponse, err error) { +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeInstanceAllNamespaces(request *DescribeInstanceAllNamespacesRequest) (response *DescribeInstanceAllNamespacesResponse, err error) { + return c.DescribeInstanceAllNamespacesWithContext(context.Background(), request) +} + +// DescribeInstanceAllNamespaces +// 查询所有有实例命名空间列表 +// +// 可能返回的错误码: +// FAILEDOPERATION_DEPENDENCEERROR = "FailedOperation.DependenceError" +// FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" +// FAILEDOPERATION_OPERATIONCANCEL = "FailedOperation.OperationCancel" +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeInstanceAllNamespacesWithContext(ctx context.Context, request *DescribeInstanceAllNamespacesRequest) (response *DescribeInstanceAllNamespacesResponse, err error) { if request == nil { - request = NewDescribeImagesRequest() + request = NewDescribeInstanceAllNamespacesRequest() } - response = NewDescribeImagesResponse() + + if c.GetCredential() == nil { + return nil, errors.New("DescribeInstanceAllNamespaces require credential") + } + + request.SetContext(ctx) + + response = NewDescribeInstanceAllNamespacesResponse() err = c.Send(request, response) return } -func NewDescribeImmutableTagRulesRequest() (request *DescribeImmutableTagRulesRequest) { - request = &DescribeImmutableTagRulesRequest{ +func NewDescribeInstanceCustomizedDomainRequest() (request *DescribeInstanceCustomizedDomainRequest) { + request = &DescribeInstanceCustomizedDomainRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("tcr", APIVersion, "DescribeImmutableTagRules") + + request.Init().WithApiInfo("tcr", APIVersion, "DescribeInstanceCustomizedDomain") + + return } -func NewDescribeImmutableTagRulesResponse() (response *DescribeImmutableTagRulesResponse) { - response = &DescribeImmutableTagRulesResponse{ +func NewDescribeInstanceCustomizedDomainResponse() (response *DescribeInstanceCustomizedDomainResponse) { + response = &DescribeInstanceCustomizedDomainResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DescribeImmutableTagRules -// 列出镜像不可变规则 +// DescribeInstanceCustomizedDomain +// 查询实例自定义域名列表 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// FAILEDOPERATION = "FailedOperation" // INTERNALERROR = "InternalError" -// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" -// INTERNALERROR_UNKNOWN = "InternalError.Unknown" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" // INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" -func (c *Client) DescribeImmutableTagRules(request *DescribeImmutableTagRulesRequest) (response *DescribeImmutableTagRulesResponse, err error) { +// INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeInstanceCustomizedDomain(request *DescribeInstanceCustomizedDomainRequest) (response *DescribeInstanceCustomizedDomainResponse, err error) { + return c.DescribeInstanceCustomizedDomainWithContext(context.Background(), request) +} + +// DescribeInstanceCustomizedDomain +// 查询实例自定义域名列表 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeInstanceCustomizedDomainWithContext(ctx context.Context, request *DescribeInstanceCustomizedDomainRequest) (response *DescribeInstanceCustomizedDomainResponse, err error) { if request == nil { - request = NewDescribeImmutableTagRulesRequest() + request = NewDescribeInstanceCustomizedDomainRequest() } - response = NewDescribeImmutableTagRulesResponse() + + if c.GetCredential() == nil { + return nil, errors.New("DescribeInstanceCustomizedDomain require credential") + } + + request.SetContext(ctx) + + response = NewDescribeInstanceCustomizedDomainResponse() err = c.Send(request, response) return } @@ -1811,7 +4129,10 @@ func NewDescribeInstanceStatusRequest() (request *DescribeInstanceStatusRequest) request = &DescribeInstanceStatusRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeInstanceStatus") + + return } @@ -1834,9 +4155,31 @@ func NewDescribeInstanceStatusResponse() (response *DescribeInstanceStatusRespon // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeInstanceStatus(request *DescribeInstanceStatusRequest) (response *DescribeInstanceStatusResponse, err error) { + return c.DescribeInstanceStatusWithContext(context.Background(), request) +} + +// DescribeInstanceStatus +// 查询实例当前状态以及过程信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeInstanceStatusWithContext(ctx context.Context, request *DescribeInstanceStatusRequest) (response *DescribeInstanceStatusResponse, err error) { if request == nil { request = NewDescribeInstanceStatusRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeInstanceStatus require credential") + } + + request.SetContext(ctx) + response = NewDescribeInstanceStatusResponse() err = c.Send(request, response) return @@ -1846,7 +4189,10 @@ func NewDescribeInstanceTokenRequest() (request *DescribeInstanceTokenRequest) { request = &DescribeInstanceTokenRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeInstanceToken") + + return } @@ -1868,9 +4214,30 @@ func NewDescribeInstanceTokenResponse() (response *DescribeInstanceTokenResponse // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeInstanceToken(request *DescribeInstanceTokenRequest) (response *DescribeInstanceTokenResponse, err error) { + return c.DescribeInstanceTokenWithContext(context.Background(), request) +} + +// DescribeInstanceToken +// 查询长期访问凭证信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeInstanceTokenWithContext(ctx context.Context, request *DescribeInstanceTokenRequest) (response *DescribeInstanceTokenResponse, err error) { if request == nil { request = NewDescribeInstanceTokenRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeInstanceToken require credential") + } + + request.SetContext(ctx) + response = NewDescribeInstanceTokenResponse() err = c.Send(request, response) return @@ -1880,7 +4247,10 @@ func NewDescribeInstancesRequest() (request *DescribeInstancesRequest) { request = &DescribeInstancesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeInstances") + + return } @@ -1895,6 +4265,7 @@ func NewDescribeInstancesResponse() (response *DescribeInstancesResponse) { // 查询实例信息 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // INTERNALERROR = "InternalError" // INTERNALERROR_DBERROR = "InternalError.DbError" // INVALIDPARAMETER = "InvalidParameter" @@ -1905,9 +4276,34 @@ func NewDescribeInstancesResponse() (response *DescribeInstancesResponse) { // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error) { + return c.DescribeInstancesWithContext(context.Background(), request) +} + +// DescribeInstances +// 查询实例信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINSUFFICIENT_ERRORINSTANCENOTRUNNING = "ResourceInsufficient.ErrorInstanceNotRunning" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error) { if request == nil { request = NewDescribeInstancesRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeInstances require credential") + } + + request.SetContext(ctx) + response = NewDescribeInstancesResponse() err = c.Send(request, response) return @@ -1917,7 +4313,10 @@ func NewDescribeInternalEndpointDnsStatusRequest() (request *DescribeInternalEnd request = &DescribeInternalEndpointDnsStatusRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeInternalEndpointDnsStatus") + + return } @@ -1944,9 +4343,35 @@ func NewDescribeInternalEndpointDnsStatusResponse() (response *DescribeInternalE // INVALIDPARAMETER = "InvalidParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeInternalEndpointDnsStatus(request *DescribeInternalEndpointDnsStatusRequest) (response *DescribeInternalEndpointDnsStatusResponse, err error) { + return c.DescribeInternalEndpointDnsStatusWithContext(context.Background(), request) +} + +// DescribeInternalEndpointDnsStatus +// 批量查询vpc是否已经添加私有域名解析 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_CREATEPRIVATEZONE = "InternalError.CreatePrivateZone" +// INTERNALERROR_CREATEPRIVATEZONERECORD = "InternalError.CreatePrivateZoneRecord" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_DELETEPRIVATEZONERECORD = "InternalError.DeletePrivateZoneRecord" +// INTERNALERROR_DESCRIBEINTERNALENDPOINTDNSSTATUS = "InternalError.DescribeInternalEndpointDnsStatus" +// INTERNALERROR_DESCRIBEPRIVATEZONELIST = "InternalError.DescribePrivateZoneList" +// INTERNALERROR_DESCRIBEPRIVATEZONERECORDLIST = "InternalError.DescribePrivateZoneRecordList" +// INTERNALERROR_DESCRIBEPRIVATEZONESERVICELIST = "InternalError.DescribePrivateZoneServiceList" +// INVALIDPARAMETER = "InvalidParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeInternalEndpointDnsStatusWithContext(ctx context.Context, request *DescribeInternalEndpointDnsStatusRequest) (response *DescribeInternalEndpointDnsStatusResponse, err error) { if request == nil { request = NewDescribeInternalEndpointDnsStatusRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeInternalEndpointDnsStatus require credential") + } + + request.SetContext(ctx) + response = NewDescribeInternalEndpointDnsStatusResponse() err = c.Send(request, response) return @@ -1956,7 +4381,10 @@ func NewDescribeInternalEndpointsRequest() (request *DescribeInternalEndpointsRe request = &DescribeInternalEndpointsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeInternalEndpoints") + + return } @@ -1979,9 +4407,31 @@ func NewDescribeInternalEndpointsResponse() (response *DescribeInternalEndpoints // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeInternalEndpoints(request *DescribeInternalEndpointsRequest) (response *DescribeInternalEndpointsResponse, err error) { + return c.DescribeInternalEndpointsWithContext(context.Background(), request) +} + +// DescribeInternalEndpoints +// 查询实例内网访问VPC链接 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeInternalEndpointsWithContext(ctx context.Context, request *DescribeInternalEndpointsRequest) (response *DescribeInternalEndpointsResponse, err error) { if request == nil { request = NewDescribeInternalEndpointsRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeInternalEndpoints require credential") + } + + request.SetContext(ctx) + response = NewDescribeInternalEndpointsResponse() err = c.Send(request, response) return @@ -1991,7 +4441,10 @@ func NewDescribeNamespacePersonalRequest() (request *DescribeNamespacePersonalRe request = &DescribeNamespacePersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeNamespacePersonal") + + return } @@ -2010,9 +4463,27 @@ func NewDescribeNamespacePersonalResponse() (response *DescribeNamespacePersonal // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" func (c *Client) DescribeNamespacePersonal(request *DescribeNamespacePersonalRequest) (response *DescribeNamespacePersonalResponse, err error) { + return c.DescribeNamespacePersonalWithContext(context.Background(), request) +} + +// DescribeNamespacePersonal +// 查询个人版命名空间信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" +func (c *Client) DescribeNamespacePersonalWithContext(ctx context.Context, request *DescribeNamespacePersonalRequest) (response *DescribeNamespacePersonalResponse, err error) { if request == nil { request = NewDescribeNamespacePersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeNamespacePersonal require credential") + } + + request.SetContext(ctx) + response = NewDescribeNamespacePersonalResponse() err = c.Send(request, response) return @@ -2022,7 +4493,10 @@ func NewDescribeNamespacesRequest() (request *DescribeNamespacesRequest) { request = &DescribeNamespacesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeNamespaces") + + return } @@ -2037,31 +4511,134 @@ func NewDescribeNamespacesResponse() (response *DescribeNamespacesResponse) { // 查询命名空间列表或指定命名空间信息 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DEPENDENCEERROR = "FailedOperation.DependenceError" +// FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" +// FAILEDOPERATION_ERRORTCRRESOURCECONFLICT = "FailedOperation.ErrorTcrResourceConflict" +// FAILEDOPERATION_ERRORTCRUNAUTHORIZED = "FailedOperation.ErrorTcrUnauthorized" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" +// FAILEDOPERATION_OPERATIONCANCEL = "FailedOperation.OperationCancel" // INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" // INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" // INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" // INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" // INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" // MISSINGPARAMETER = "MissingParameter" // OPERATIONDENIED = "OperationDenied" // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeNamespaces(request *DescribeNamespacesRequest) (response *DescribeNamespacesResponse, err error) { + return c.DescribeNamespacesWithContext(context.Background(), request) +} + +// DescribeNamespaces +// 查询命名空间列表或指定命名空间信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DEPENDENCEERROR = "FailedOperation.DependenceError" +// FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" +// FAILEDOPERATION_ERRORTCRRESOURCECONFLICT = "FailedOperation.ErrorTcrResourceConflict" +// FAILEDOPERATION_ERRORTCRUNAUTHORIZED = "FailedOperation.ErrorTcrUnauthorized" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" +// FAILEDOPERATION_OPERATIONCANCEL = "FailedOperation.OperationCancel" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeNamespacesWithContext(ctx context.Context, request *DescribeNamespacesRequest) (response *DescribeNamespacesResponse, err error) { if request == nil { request = NewDescribeNamespacesRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeNamespaces require credential") + } + + request.SetContext(ctx) + response = NewDescribeNamespacesResponse() err = c.Send(request, response) return } +func NewDescribeRegionsRequest() (request *DescribeRegionsRequest) { + request = &DescribeRegionsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("tcr", APIVersion, "DescribeRegions") + + + return +} + +func NewDescribeRegionsResponse() (response *DescribeRegionsResponse) { + response = &DescribeRegionsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeRegions +// 用于在TCR中获取可用区域 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + return c.DescribeRegionsWithContext(context.Background(), request) +} + +// DescribeRegions +// 用于在TCR中获取可用区域 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeRegionsWithContext(ctx context.Context, request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { + if request == nil { + request = NewDescribeRegionsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeRegions require credential") + } + + request.SetContext(ctx) + + response = NewDescribeRegionsResponse() + err = c.Send(request, response) + return +} + func NewDescribeReplicationInstanceCreateTasksRequest() (request *DescribeReplicationInstanceCreateTasksRequest) { request = &DescribeReplicationInstanceCreateTasksRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeReplicationInstanceCreateTasks") + + return } @@ -2084,9 +4661,31 @@ func NewDescribeReplicationInstanceCreateTasksResponse() (response *DescribeRepl // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeReplicationInstanceCreateTasks(request *DescribeReplicationInstanceCreateTasksRequest) (response *DescribeReplicationInstanceCreateTasksResponse, err error) { + return c.DescribeReplicationInstanceCreateTasksWithContext(context.Background(), request) +} + +// DescribeReplicationInstanceCreateTasks +// 查询创建从实例任务状态 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeReplicationInstanceCreateTasksWithContext(ctx context.Context, request *DescribeReplicationInstanceCreateTasksRequest) (response *DescribeReplicationInstanceCreateTasksResponse, err error) { if request == nil { request = NewDescribeReplicationInstanceCreateTasksRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeReplicationInstanceCreateTasks require credential") + } + + request.SetContext(ctx) + response = NewDescribeReplicationInstanceCreateTasksResponse() err = c.Send(request, response) return @@ -2096,7 +4695,10 @@ func NewDescribeReplicationInstanceSyncStatusRequest() (request *DescribeReplica request = &DescribeReplicationInstanceSyncStatusRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeReplicationInstanceSyncStatus") + + return } @@ -2119,9 +4721,31 @@ func NewDescribeReplicationInstanceSyncStatusResponse() (response *DescribeRepli // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeReplicationInstanceSyncStatus(request *DescribeReplicationInstanceSyncStatusRequest) (response *DescribeReplicationInstanceSyncStatusResponse, err error) { + return c.DescribeReplicationInstanceSyncStatusWithContext(context.Background(), request) +} + +// DescribeReplicationInstanceSyncStatus +// 查询从实例同步状态 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeReplicationInstanceSyncStatusWithContext(ctx context.Context, request *DescribeReplicationInstanceSyncStatusRequest) (response *DescribeReplicationInstanceSyncStatusResponse, err error) { if request == nil { request = NewDescribeReplicationInstanceSyncStatusRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeReplicationInstanceSyncStatus require credential") + } + + request.SetContext(ctx) + response = NewDescribeReplicationInstanceSyncStatusResponse() err = c.Send(request, response) return @@ -2131,7 +4755,10 @@ func NewDescribeReplicationInstancesRequest() (request *DescribeReplicationInsta request = &DescribeReplicationInstancesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeReplicationInstances") + + return } @@ -2155,10 +4782,34 @@ func NewDescribeReplicationInstancesResponse() (response *DescribeReplicationIns // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" -func (c *Client) DescribeReplicationInstances(request *DescribeReplicationInstancesRequest) (response *DescribeReplicationInstancesResponse, err error) { +func (c *Client) DescribeReplicationInstances(request *DescribeReplicationInstancesRequest) (response *DescribeReplicationInstancesResponse, err error) { + return c.DescribeReplicationInstancesWithContext(context.Background(), request) +} + +// DescribeReplicationInstances +// 查询从实例列表 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINSUFFICIENT_ERRORINSTANCENOTRUNNING = "ResourceInsufficient.ErrorInstanceNotRunning" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeReplicationInstancesWithContext(ctx context.Context, request *DescribeReplicationInstancesRequest) (response *DescribeReplicationInstancesResponse, err error) { if request == nil { request = NewDescribeReplicationInstancesRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeReplicationInstances require credential") + } + + request.SetContext(ctx) + response = NewDescribeReplicationInstancesResponse() err = c.Send(request, response) return @@ -2168,7 +4819,10 @@ func NewDescribeRepositoriesRequest() (request *DescribeRepositoriesRequest) { request = &DescribeRepositoriesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeRepositories") + + return } @@ -2195,9 +4849,35 @@ func NewDescribeRepositoriesResponse() (response *DescribeRepositoriesResponse) // RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeRepositories(request *DescribeRepositoriesRequest) (response *DescribeRepositoriesResponse, err error) { + return c.DescribeRepositoriesWithContext(context.Background(), request) +} + +// DescribeRepositories +// 查询镜像仓库列表或指定镜像仓库信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeRepositoriesWithContext(ctx context.Context, request *DescribeRepositoriesRequest) (response *DescribeRepositoriesResponse, err error) { if request == nil { request = NewDescribeRepositoriesRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeRepositories require credential") + } + + request.SetContext(ctx) + response = NewDescribeRepositoriesResponse() err = c.Send(request, response) return @@ -2207,7 +4887,10 @@ func NewDescribeRepositoryFilterPersonalRequest() (request *DescribeRepositoryFi request = &DescribeRepositoryFilterPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeRepositoryFilterPersonal") + + return } @@ -2226,9 +4909,27 @@ func NewDescribeRepositoryFilterPersonalResponse() (response *DescribeRepository // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" func (c *Client) DescribeRepositoryFilterPersonal(request *DescribeRepositoryFilterPersonalRequest) (response *DescribeRepositoryFilterPersonalResponse, err error) { + return c.DescribeRepositoryFilterPersonalWithContext(context.Background(), request) +} + +// DescribeRepositoryFilterPersonal +// 用于在个人版镜像仓库中,获取满足输入搜索条件的用户镜像仓库 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" +func (c *Client) DescribeRepositoryFilterPersonalWithContext(ctx context.Context, request *DescribeRepositoryFilterPersonalRequest) (response *DescribeRepositoryFilterPersonalResponse, err error) { if request == nil { request = NewDescribeRepositoryFilterPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeRepositoryFilterPersonal require credential") + } + + request.SetContext(ctx) + response = NewDescribeRepositoryFilterPersonalResponse() err = c.Send(request, response) return @@ -2238,7 +4939,10 @@ func NewDescribeRepositoryOwnerPersonalRequest() (request *DescribeRepositoryOwn request = &DescribeRepositoryOwnerPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeRepositoryOwnerPersonal") + + return } @@ -2256,10 +4960,30 @@ func NewDescribeRepositoryOwnerPersonalResponse() (response *DescribeRepositoryO // INTERNALERROR = "InternalError" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeRepositoryOwnerPersonal(request *DescribeRepositoryOwnerPersonalRequest) (response *DescribeRepositoryOwnerPersonalResponse, err error) { + return c.DescribeRepositoryOwnerPersonalWithContext(context.Background(), request) +} + +// DescribeRepositoryOwnerPersonal +// 用于在个人版中获取用户全部的镜像仓库列表 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeRepositoryOwnerPersonalWithContext(ctx context.Context, request *DescribeRepositoryOwnerPersonalRequest) (response *DescribeRepositoryOwnerPersonalResponse, err error) { if request == nil { request = NewDescribeRepositoryOwnerPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeRepositoryOwnerPersonal require credential") + } + + request.SetContext(ctx) + response = NewDescribeRepositoryOwnerPersonalResponse() err = c.Send(request, response) return @@ -2269,7 +4993,10 @@ func NewDescribeRepositoryPersonalRequest() (request *DescribeRepositoryPersonal request = &DescribeRepositoryPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeRepositoryPersonal") + + return } @@ -2288,9 +5015,27 @@ func NewDescribeRepositoryPersonalResponse() (response *DescribeRepositoryPerson // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" func (c *Client) DescribeRepositoryPersonal(request *DescribeRepositoryPersonalRequest) (response *DescribeRepositoryPersonalResponse, err error) { + return c.DescribeRepositoryPersonalWithContext(context.Background(), request) +} + +// DescribeRepositoryPersonal +// 查询个人版仓库信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +func (c *Client) DescribeRepositoryPersonalWithContext(ctx context.Context, request *DescribeRepositoryPersonalRequest) (response *DescribeRepositoryPersonalResponse, err error) { if request == nil { request = NewDescribeRepositoryPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeRepositoryPersonal require credential") + } + + request.SetContext(ctx) + response = NewDescribeRepositoryPersonalResponse() err = c.Send(request, response) return @@ -2300,7 +5045,10 @@ func NewDescribeSecurityPoliciesRequest() (request *DescribeSecurityPoliciesRequ request = &DescribeSecurityPoliciesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeSecurityPolicies") + + return } @@ -2315,17 +5063,51 @@ func NewDescribeSecurityPoliciesResponse() (response *DescribeSecurityPoliciesRe // 查询实例公网访问白名单策略 // // 可能返回的错误码: +// FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" +// FAILEDOPERATION_GETSECURITYPOLICYFAIL = "FailedOperation.GetSecurityPolicyFail" +// FAILEDOPERATION_GETTCRCLIENT = "FailedOperation.GetTcrClient" // INTERNALERROR = "InternalError" // INTERNALERROR_DBERROR = "InternalError.DbError" // INVALIDPARAMETER = "InvalidParameter" // MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeSecurityPolicies(request *DescribeSecurityPoliciesRequest) (response *DescribeSecurityPoliciesResponse, err error) { + return c.DescribeSecurityPoliciesWithContext(context.Background(), request) +} + +// DescribeSecurityPolicies +// 查询实例公网访问白名单策略 +// +// 可能返回的错误码: +// FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" +// FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" +// FAILEDOPERATION_GETSECURITYPOLICYFAIL = "FailedOperation.GetSecurityPolicyFail" +// FAILEDOPERATION_GETTCRCLIENT = "FailedOperation.GetTcrClient" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeSecurityPoliciesWithContext(ctx context.Context, request *DescribeSecurityPoliciesRequest) (response *DescribeSecurityPoliciesResponse, err error) { if request == nil { request = NewDescribeSecurityPoliciesRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeSecurityPolicies require credential") + } + + request.SetContext(ctx) + response = NewDescribeSecurityPoliciesResponse() err = c.Send(request, response) return @@ -2335,7 +5117,10 @@ func NewDescribeTagRetentionExecutionRequest() (request *DescribeTagRetentionExe request = &DescribeTagRetentionExecutionRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeTagRetentionExecution") + + return } @@ -2363,9 +5148,36 @@ func NewDescribeTagRetentionExecutionResponse() (response *DescribeTagRetentionE // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeTagRetentionExecution(request *DescribeTagRetentionExecutionRequest) (response *DescribeTagRetentionExecutionResponse, err error) { + return c.DescribeTagRetentionExecutionWithContext(context.Background(), request) +} + +// DescribeTagRetentionExecution +// 查询版本保留执行记录 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeTagRetentionExecutionWithContext(ctx context.Context, request *DescribeTagRetentionExecutionRequest) (response *DescribeTagRetentionExecutionResponse, err error) { if request == nil { request = NewDescribeTagRetentionExecutionRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeTagRetentionExecution require credential") + } + + request.SetContext(ctx) + response = NewDescribeTagRetentionExecutionResponse() err = c.Send(request, response) return @@ -2375,7 +5187,10 @@ func NewDescribeTagRetentionExecutionTaskRequest() (request *DescribeTagRetentio request = &DescribeTagRetentionExecutionTaskRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeTagRetentionExecutionTask") + + return } @@ -2403,9 +5218,36 @@ func NewDescribeTagRetentionExecutionTaskResponse() (response *DescribeTagRetent // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeTagRetentionExecutionTask(request *DescribeTagRetentionExecutionTaskRequest) (response *DescribeTagRetentionExecutionTaskResponse, err error) { + return c.DescribeTagRetentionExecutionTaskWithContext(context.Background(), request) +} + +// DescribeTagRetentionExecutionTask +// 查询版本保留执行任务 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeTagRetentionExecutionTaskWithContext(ctx context.Context, request *DescribeTagRetentionExecutionTaskRequest) (response *DescribeTagRetentionExecutionTaskResponse, err error) { if request == nil { request = NewDescribeTagRetentionExecutionTaskRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeTagRetentionExecutionTask require credential") + } + + request.SetContext(ctx) + response = NewDescribeTagRetentionExecutionTaskResponse() err = c.Send(request, response) return @@ -2415,7 +5257,10 @@ func NewDescribeTagRetentionRulesRequest() (request *DescribeTagRetentionRulesRe request = &DescribeTagRetentionRulesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeTagRetentionRules") + + return } @@ -2444,9 +5289,37 @@ func NewDescribeTagRetentionRulesResponse() (response *DescribeTagRetentionRules // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DescribeTagRetentionRules(request *DescribeTagRetentionRulesRequest) (response *DescribeTagRetentionRulesResponse, err error) { + return c.DescribeTagRetentionRulesWithContext(context.Background(), request) +} + +// DescribeTagRetentionRules +// 查询版本保留规则 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeTagRetentionRulesWithContext(ctx context.Context, request *DescribeTagRetentionRulesRequest) (response *DescribeTagRetentionRulesResponse, err error) { if request == nil { request = NewDescribeTagRetentionRulesRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeTagRetentionRules require credential") + } + + request.SetContext(ctx) + response = NewDescribeTagRetentionRulesResponse() err = c.Send(request, response) return @@ -2456,7 +5329,10 @@ func NewDescribeUserQuotaPersonalRequest() (request *DescribeUserQuotaPersonalRe request = &DescribeUserQuotaPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeUserQuotaPersonal") + + return } @@ -2473,9 +5349,25 @@ func NewDescribeUserQuotaPersonalResponse() (response *DescribeUserQuotaPersonal // 可能返回的错误码: // INTERNALERROR = "InternalError" func (c *Client) DescribeUserQuotaPersonal(request *DescribeUserQuotaPersonalRequest) (response *DescribeUserQuotaPersonalResponse, err error) { + return c.DescribeUserQuotaPersonalWithContext(context.Background(), request) +} + +// DescribeUserQuotaPersonal +// 查询个人用户配额 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +func (c *Client) DescribeUserQuotaPersonalWithContext(ctx context.Context, request *DescribeUserQuotaPersonalRequest) (response *DescribeUserQuotaPersonalResponse, err error) { if request == nil { request = NewDescribeUserQuotaPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeUserQuotaPersonal require credential") + } + + request.SetContext(ctx) + response = NewDescribeUserQuotaPersonalResponse() err = c.Send(request, response) return @@ -2485,7 +5377,10 @@ func NewDescribeWebhookTriggerRequest() (request *DescribeWebhookTriggerRequest) request = &DescribeWebhookTriggerRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeWebhookTrigger") + + return } @@ -2505,12 +5400,36 @@ func NewDescribeWebhookTriggerResponse() (response *DescribeWebhookTriggerRespon // INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" // INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" func (c *Client) DescribeWebhookTrigger(request *DescribeWebhookTriggerRequest) (response *DescribeWebhookTriggerResponse, err error) { + return c.DescribeWebhookTriggerWithContext(context.Background(), request) +} + +// DescribeWebhookTrigger +// 查询触发器 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +func (c *Client) DescribeWebhookTriggerWithContext(ctx context.Context, request *DescribeWebhookTriggerRequest) (response *DescribeWebhookTriggerResponse, err error) { if request == nil { request = NewDescribeWebhookTriggerRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeWebhookTrigger require credential") + } + + request.SetContext(ctx) + response = NewDescribeWebhookTriggerResponse() err = c.Send(request, response) return @@ -2520,7 +5439,10 @@ func NewDescribeWebhookTriggerLogRequest() (request *DescribeWebhookTriggerLogRe request = &DescribeWebhookTriggerLogRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DescribeWebhookTriggerLog") + + return } @@ -2543,9 +5465,31 @@ func NewDescribeWebhookTriggerLogResponse() (response *DescribeWebhookTriggerLog // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" func (c *Client) DescribeWebhookTriggerLog(request *DescribeWebhookTriggerLogRequest) (response *DescribeWebhookTriggerLogResponse, err error) { + return c.DescribeWebhookTriggerLogWithContext(context.Background(), request) +} + +// DescribeWebhookTriggerLog +// 获取触发器日志 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +func (c *Client) DescribeWebhookTriggerLogWithContext(ctx context.Context, request *DescribeWebhookTriggerLogRequest) (response *DescribeWebhookTriggerLogResponse, err error) { if request == nil { request = NewDescribeWebhookTriggerLogRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeWebhookTriggerLog require credential") + } + + request.SetContext(ctx) + response = NewDescribeWebhookTriggerLogResponse() err = c.Send(request, response) return @@ -2555,7 +5499,10 @@ func NewDownloadHelmChartRequest() (request *DownloadHelmChartRequest) { request = &DownloadHelmChartRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DownloadHelmChart") + + return } @@ -2572,11 +5519,31 @@ func NewDownloadHelmChartResponse() (response *DownloadHelmChartResponse) { // 可能返回的错误码: // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) DownloadHelmChart(request *DownloadHelmChartRequest) (response *DownloadHelmChartResponse, err error) { + return c.DownloadHelmChartWithContext(context.Background(), request) +} + +// DownloadHelmChart +// 用于在TCR中下载helm chart +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DownloadHelmChartWithContext(ctx context.Context, request *DownloadHelmChartRequest) (response *DownloadHelmChartResponse, err error) { if request == nil { request = NewDownloadHelmChartRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DownloadHelmChart require credential") + } + + request.SetContext(ctx) + response = NewDownloadHelmChartResponse() err = c.Send(request, response) return @@ -2586,7 +5553,10 @@ func NewDuplicateImagePersonalRequest() (request *DuplicateImagePersonalRequest) request = &DuplicateImagePersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "DuplicateImagePersonal") + + return } @@ -2606,9 +5576,28 @@ func NewDuplicateImagePersonalResponse() (response *DuplicateImagePersonalRespon // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOTAG = "ResourceNotFound.ErrNoTag" func (c *Client) DuplicateImagePersonal(request *DuplicateImagePersonalRequest) (response *DuplicateImagePersonalResponse, err error) { + return c.DuplicateImagePersonalWithContext(context.Background(), request) +} + +// DuplicateImagePersonal +// 用于在个人版镜像仓库中复制镜像版本 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_ERRNSMISMATCH = "InvalidParameter.ErrNSMisMatch" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOTAG = "ResourceNotFound.ErrNoTag" +func (c *Client) DuplicateImagePersonalWithContext(ctx context.Context, request *DuplicateImagePersonalRequest) (response *DuplicateImagePersonalResponse, err error) { if request == nil { request = NewDuplicateImagePersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("DuplicateImagePersonal require credential") + } + + request.SetContext(ctx) + response = NewDuplicateImagePersonalResponse() err = c.Send(request, response) return @@ -2618,7 +5607,10 @@ func NewManageExternalEndpointRequest() (request *ManageExternalEndpointRequest) request = &ManageExternalEndpointRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ManageExternalEndpoint") + + return } @@ -2641,9 +5633,31 @@ func NewManageExternalEndpointResponse() (response *ManageExternalEndpointRespon // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ManageExternalEndpoint(request *ManageExternalEndpointRequest) (response *ManageExternalEndpointResponse, err error) { + return c.ManageExternalEndpointWithContext(context.Background(), request) +} + +// ManageExternalEndpoint +// 管理实例公网访问 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) ManageExternalEndpointWithContext(ctx context.Context, request *ManageExternalEndpointRequest) (response *ManageExternalEndpointResponse, err error) { if request == nil { request = NewManageExternalEndpointRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ManageExternalEndpoint require credential") + } + + request.SetContext(ctx) + response = NewManageExternalEndpointResponse() err = c.Send(request, response) return @@ -2653,7 +5667,10 @@ func NewManageImageLifecycleGlobalPersonalRequest() (request *ManageImageLifecyc request = &ManageImageLifecycleGlobalPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ManageImageLifecycleGlobalPersonal") + + return } @@ -2670,9 +5687,25 @@ func NewManageImageLifecycleGlobalPersonalResponse() (response *ManageImageLifec // 可能返回的错误码: // MISSINGPARAMETER = "MissingParameter" func (c *Client) ManageImageLifecycleGlobalPersonal(request *ManageImageLifecycleGlobalPersonalRequest) (response *ManageImageLifecycleGlobalPersonalResponse, err error) { + return c.ManageImageLifecycleGlobalPersonalWithContext(context.Background(), request) +} + +// ManageImageLifecycleGlobalPersonal +// 用于设置个人版全局镜像版本自动清理策略 +// +// 可能返回的错误码: +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ManageImageLifecycleGlobalPersonalWithContext(ctx context.Context, request *ManageImageLifecycleGlobalPersonalRequest) (response *ManageImageLifecycleGlobalPersonalResponse, err error) { if request == nil { request = NewManageImageLifecycleGlobalPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ManageImageLifecycleGlobalPersonal require credential") + } + + request.SetContext(ctx) + response = NewManageImageLifecycleGlobalPersonalResponse() err = c.Send(request, response) return @@ -2682,7 +5715,10 @@ func NewManageInternalEndpointRequest() (request *ManageInternalEndpointRequest) request = &ManageInternalEndpointRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ManageInternalEndpoint") + + return } @@ -2709,10 +5745,37 @@ func NewManageInternalEndpointResponse() (response *ManageInternalEndpointRespon // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" -func (c *Client) ManageInternalEndpoint(request *ManageInternalEndpointRequest) (response *ManageInternalEndpointResponse, err error) { +func (c *Client) ManageInternalEndpoint(request *ManageInternalEndpointRequest) (response *ManageInternalEndpointResponse, err error) { + return c.ManageInternalEndpointWithContext(context.Background(), request) +} + +// ManageInternalEndpoint +// 管理实例内网访问VPC链接 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINSUFFICIENT_ERRORVPCDNSSTATUS = "ResourceInsufficient.ErrorVpcDnsStatus" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) ManageInternalEndpointWithContext(ctx context.Context, request *ManageInternalEndpointRequest) (response *ManageInternalEndpointResponse, err error) { if request == nil { request = NewManageInternalEndpointRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ManageInternalEndpoint require credential") + } + + request.SetContext(ctx) + response = NewManageInternalEndpointResponse() err = c.Send(request, response) return @@ -2722,7 +5785,10 @@ func NewManageReplicationRequest() (request *ManageReplicationRequest) { request = &ManageReplicationRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ManageReplication") + + return } @@ -2752,9 +5818,38 @@ func NewManageReplicationResponse() (response *ManageReplicationResponse) { // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ManageReplication(request *ManageReplicationRequest) (response *ManageReplicationResponse, err error) { + return c.ManageReplicationWithContext(context.Background(), request) +} + +// ManageReplication +// 管理实例同步 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) ManageReplicationWithContext(ctx context.Context, request *ManageReplicationRequest) (response *ManageReplicationResponse, err error) { if request == nil { request = NewManageReplicationRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ManageReplication require credential") + } + + request.SetContext(ctx) + response = NewManageReplicationResponse() err = c.Send(request, response) return @@ -2764,7 +5859,10 @@ func NewModifyApplicationTriggerPersonalRequest() (request *ModifyApplicationTri request = &ModifyApplicationTriggerPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ModifyApplicationTriggerPersonal") + + return } @@ -2785,9 +5883,29 @@ func NewModifyApplicationTriggerPersonalResponse() (response *ModifyApplicationT // RESOURCENOTFOUND_ERRNOTRIGGER = "ResourceNotFound.ErrNoTrigger" // RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" func (c *Client) ModifyApplicationTriggerPersonal(request *ModifyApplicationTriggerPersonalRequest) (response *ModifyApplicationTriggerPersonalResponse, err error) { + return c.ModifyApplicationTriggerPersonalWithContext(context.Background(), request) +} + +// ModifyApplicationTriggerPersonal +// 用于修改应用更新触发器 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +// RESOURCENOTFOUND_ERRNOTRIGGER = "ResourceNotFound.ErrNoTrigger" +// RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" +func (c *Client) ModifyApplicationTriggerPersonalWithContext(ctx context.Context, request *ModifyApplicationTriggerPersonalRequest) (response *ModifyApplicationTriggerPersonalResponse, err error) { if request == nil { request = NewModifyApplicationTriggerPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyApplicationTriggerPersonal require credential") + } + + request.SetContext(ctx) + response = NewModifyApplicationTriggerPersonalResponse() err = c.Send(request, response) return @@ -2797,7 +5915,10 @@ func NewModifyImmutableTagRulesRequest() (request *ModifyImmutableTagRulesReques request = &ModifyImmutableTagRulesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ModifyImmutableTagRules") + + return } @@ -2819,9 +5940,30 @@ func NewModifyImmutableTagRulesResponse() (response *ModifyImmutableTagRulesResp // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" func (c *Client) ModifyImmutableTagRules(request *ModifyImmutableTagRulesRequest) (response *ModifyImmutableTagRulesResponse, err error) { + return c.ModifyImmutableTagRulesWithContext(context.Background(), request) +} + +// ModifyImmutableTagRules +// 更新镜像不可变规则 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_UNKNOWN = "InternalError.Unknown" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +func (c *Client) ModifyImmutableTagRulesWithContext(ctx context.Context, request *ModifyImmutableTagRulesRequest) (response *ModifyImmutableTagRulesResponse, err error) { if request == nil { request = NewModifyImmutableTagRulesRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyImmutableTagRules require credential") + } + + request.SetContext(ctx) + response = NewModifyImmutableTagRulesResponse() err = c.Send(request, response) return @@ -2831,7 +5973,10 @@ func NewModifyInstanceRequest() (request *ModifyInstanceRequest) { request = &ModifyInstanceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ModifyInstance") + + return } @@ -2857,9 +6002,34 @@ func NewModifyInstanceResponse() (response *ModifyInstanceResponse) { // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ModifyInstance(request *ModifyInstanceRequest) (response *ModifyInstanceResponse, err error) { + return c.ModifyInstanceWithContext(context.Background(), request) +} + +// ModifyInstance +// 更新实例信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) ModifyInstanceWithContext(ctx context.Context, request *ModifyInstanceRequest) (response *ModifyInstanceResponse, err error) { if request == nil { request = NewModifyInstanceRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyInstance require credential") + } + + request.SetContext(ctx) + response = NewModifyInstanceResponse() err = c.Send(request, response) return @@ -2869,7 +6039,10 @@ func NewModifyInstanceTokenRequest() (request *ModifyInstanceTokenRequest) { request = &ModifyInstanceTokenRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ModifyInstanceToken") + + return } @@ -2892,9 +6065,31 @@ func NewModifyInstanceTokenResponse() (response *ModifyInstanceTokenResponse) { // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ModifyInstanceToken(request *ModifyInstanceTokenRequest) (response *ModifyInstanceTokenResponse, err error) { + return c.ModifyInstanceTokenWithContext(context.Background(), request) +} + +// ModifyInstanceToken +// 更新实例内指定长期访问凭证的启用状态 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_UNKNOWN = "InternalError.Unknown" +// INVALIDPARAMETER = "InvalidParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) ModifyInstanceTokenWithContext(ctx context.Context, request *ModifyInstanceTokenRequest) (response *ModifyInstanceTokenResponse, err error) { if request == nil { request = NewModifyInstanceTokenRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyInstanceToken require credential") + } + + request.SetContext(ctx) + response = NewModifyInstanceTokenResponse() err = c.Send(request, response) return @@ -2904,7 +6099,10 @@ func NewModifyNamespaceRequest() (request *ModifyNamespaceRequest) { request = &ModifyNamespaceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ModifyNamespace") + + return } @@ -2932,9 +6130,36 @@ func NewModifyNamespaceResponse() (response *ModifyNamespaceResponse) { // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ModifyNamespace(request *ModifyNamespaceRequest) (response *ModifyNamespaceResponse, err error) { + return c.ModifyNamespaceWithContext(context.Background(), request) +} + +// ModifyNamespace +// 更新命名空间信息,当前仅支持修改命名空间访问级别 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) ModifyNamespaceWithContext(ctx context.Context, request *ModifyNamespaceRequest) (response *ModifyNamespaceResponse, err error) { if request == nil { request = NewModifyNamespaceRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyNamespace require credential") + } + + request.SetContext(ctx) + response = NewModifyNamespaceResponse() err = c.Send(request, response) return @@ -2944,7 +6169,10 @@ func NewModifyRepositoryRequest() (request *ModifyRepositoryRequest) { request = &ModifyRepositoryRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ModifyRepository") + + return } @@ -2966,12 +6194,38 @@ func NewModifyRepositoryResponse() (response *ModifyRepositoryResponse) { // INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" // INVALIDPARAMETER = "InvalidParameter" // OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ModifyRepository(request *ModifyRepositoryRequest) (response *ModifyRepositoryResponse, err error) { + return c.ModifyRepositoryWithContext(context.Background(), request) +} + +// ModifyRepository +// 更新镜像仓库信息,可修改仓库描述信息 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INTERNALERROR_ERRORTCRINVALIDMEDIATYPE = "InternalError.ErrorTcrInvalidMediaType" +// INTERNALERROR_ERRORTCRRESOURCECONFLICT = "InternalError.ErrorTcrResourceConflict" +// INTERNALERROR_ERRORTCRUNAUTHORIZED = "InternalError.ErrorTcrUnauthorized" +// INVALIDPARAMETER = "InvalidParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) ModifyRepositoryWithContext(ctx context.Context, request *ModifyRepositoryRequest) (response *ModifyRepositoryResponse, err error) { if request == nil { request = NewModifyRepositoryRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyRepository require credential") + } + + request.SetContext(ctx) + response = NewModifyRepositoryResponse() err = c.Send(request, response) return @@ -2981,7 +6235,10 @@ func NewModifyRepositoryAccessPersonalRequest() (request *ModifyRepositoryAccess request = &ModifyRepositoryAccessPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ModifyRepositoryAccessPersonal") + + return } @@ -3001,9 +6258,28 @@ func NewModifyRepositoryAccessPersonalResponse() (response *ModifyRepositoryAcce // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" func (c *Client) ModifyRepositoryAccessPersonal(request *ModifyRepositoryAccessPersonalRequest) (response *ModifyRepositoryAccessPersonalResponse, err error) { + return c.ModifyRepositoryAccessPersonalWithContext(context.Background(), request) +} + +// ModifyRepositoryAccessPersonal +// 用于更新个人版镜像仓库的访问属性 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_ERRNSMISMATCH = "InvalidParameter.ErrNSMisMatch" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +func (c *Client) ModifyRepositoryAccessPersonalWithContext(ctx context.Context, request *ModifyRepositoryAccessPersonalRequest) (response *ModifyRepositoryAccessPersonalResponse, err error) { if request == nil { request = NewModifyRepositoryAccessPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyRepositoryAccessPersonal require credential") + } + + request.SetContext(ctx) + response = NewModifyRepositoryAccessPersonalResponse() err = c.Send(request, response) return @@ -3013,7 +6289,10 @@ func NewModifyRepositoryInfoPersonalRequest() (request *ModifyRepositoryInfoPers request = &ModifyRepositoryInfoPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ModifyRepositoryInfoPersonal") + + return } @@ -3033,9 +6312,28 @@ func NewModifyRepositoryInfoPersonalResponse() (response *ModifyRepositoryInfoPe // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" func (c *Client) ModifyRepositoryInfoPersonal(request *ModifyRepositoryInfoPersonalRequest) (response *ModifyRepositoryInfoPersonalResponse, err error) { + return c.ModifyRepositoryInfoPersonalWithContext(context.Background(), request) +} + +// ModifyRepositoryInfoPersonal +// 用于在个人版镜像仓库中更新容器镜像描述 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_ERRNSMISMATCH = "InvalidParameter.ErrNSMisMatch" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOREPO = "ResourceNotFound.ErrNoRepo" +func (c *Client) ModifyRepositoryInfoPersonalWithContext(ctx context.Context, request *ModifyRepositoryInfoPersonalRequest) (response *ModifyRepositoryInfoPersonalResponse, err error) { if request == nil { request = NewModifyRepositoryInfoPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyRepositoryInfoPersonal require credential") + } + + request.SetContext(ctx) + response = NewModifyRepositoryInfoPersonalResponse() err = c.Send(request, response) return @@ -3045,7 +6343,10 @@ func NewModifySecurityPolicyRequest() (request *ModifySecurityPolicyRequest) { request = &ModifySecurityPolicyRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ModifySecurityPolicy") + + return } @@ -3068,9 +6369,31 @@ func NewModifySecurityPolicyResponse() (response *ModifySecurityPolicyResponse) // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ModifySecurityPolicy(request *ModifySecurityPolicyRequest) (response *ModifySecurityPolicyResponse, err error) { + return c.ModifySecurityPolicyWithContext(context.Background(), request) +} + +// ModifySecurityPolicy +// 更新实例公网访问白名单 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) ModifySecurityPolicyWithContext(ctx context.Context, request *ModifySecurityPolicyRequest) (response *ModifySecurityPolicyResponse, err error) { if request == nil { request = NewModifySecurityPolicyRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ModifySecurityPolicy require credential") + } + + request.SetContext(ctx) + response = NewModifySecurityPolicyResponse() err = c.Send(request, response) return @@ -3080,7 +6403,10 @@ func NewModifyTagRetentionRuleRequest() (request *ModifyTagRetentionRuleRequest) request = &ModifyTagRetentionRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ModifyTagRetentionRule") + + return } @@ -3109,9 +6435,37 @@ func NewModifyTagRetentionRuleResponse() (response *ModifyTagRetentionRuleRespon // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) ModifyTagRetentionRule(request *ModifyTagRetentionRuleRequest) (response *ModifyTagRetentionRuleResponse, err error) { + return c.ModifyTagRetentionRuleWithContext(context.Background(), request) +} + +// ModifyTagRetentionRule +// 更新版本保留规则 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) ModifyTagRetentionRuleWithContext(ctx context.Context, request *ModifyTagRetentionRuleRequest) (response *ModifyTagRetentionRuleResponse, err error) { if request == nil { request = NewModifyTagRetentionRuleRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyTagRetentionRule require credential") + } + + request.SetContext(ctx) + response = NewModifyTagRetentionRuleResponse() err = c.Send(request, response) return @@ -3121,7 +6475,10 @@ func NewModifyUserPasswordPersonalRequest() (request *ModifyUserPasswordPersonal request = &ModifyUserPasswordPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ModifyUserPasswordPersonal") + + return } @@ -3140,9 +6497,27 @@ func NewModifyUserPasswordPersonalResponse() (response *ModifyUserPasswordPerson // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" func (c *Client) ModifyUserPasswordPersonal(request *ModifyUserPasswordPersonalRequest) (response *ModifyUserPasswordPersonalResponse, err error) { + return c.ModifyUserPasswordPersonalWithContext(context.Background(), request) +} + +// ModifyUserPasswordPersonal +// 修改个人用户登录密码 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND_ERRNOUSER = "ResourceNotFound.ErrNoUser" +func (c *Client) ModifyUserPasswordPersonalWithContext(ctx context.Context, request *ModifyUserPasswordPersonalRequest) (response *ModifyUserPasswordPersonalResponse, err error) { if request == nil { request = NewModifyUserPasswordPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyUserPasswordPersonal require credential") + } + + request.SetContext(ctx) + response = NewModifyUserPasswordPersonalResponse() err = c.Send(request, response) return @@ -3152,7 +6527,10 @@ func NewModifyWebhookTriggerRequest() (request *ModifyWebhookTriggerRequest) { request = &ModifyWebhookTriggerRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ModifyWebhookTrigger") + + return } @@ -3175,9 +6553,31 @@ func NewModifyWebhookTriggerResponse() (response *ModifyWebhookTriggerResponse) // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" func (c *Client) ModifyWebhookTrigger(request *ModifyWebhookTriggerRequest) (response *ModifyWebhookTriggerResponse, err error) { + return c.ModifyWebhookTriggerWithContext(context.Background(), request) +} + +// ModifyWebhookTrigger +// 更新触发器 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRORTCRINTERNAL = "InternalError.ErrorTcrInternal" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORTCRINVALIDPARAMETER = "InvalidParameter.ErrorTcrInvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TCRRESOURCENOTFOUND = "ResourceNotFound.TcrResourceNotFound" +func (c *Client) ModifyWebhookTriggerWithContext(ctx context.Context, request *ModifyWebhookTriggerRequest) (response *ModifyWebhookTriggerResponse, err error) { if request == nil { request = NewModifyWebhookTriggerRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyWebhookTrigger require credential") + } + + request.SetContext(ctx) + response = NewModifyWebhookTriggerResponse() err = c.Send(request, response) return @@ -3187,7 +6587,10 @@ func NewRenewInstanceRequest() (request *RenewInstanceRequest) { request = &RenewInstanceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "RenewInstance") + + return } @@ -3218,9 +6621,39 @@ func NewRenewInstanceResponse() (response *RenewInstanceResponse) { // UNKNOWNPARAMETER = "UnknownParameter" // UNSUPPORTEDOPERATION = "UnsupportedOperation" func (c *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error) { + return c.RenewInstanceWithContext(context.Background(), request) +} + +// RenewInstance +// 预付费实例续费,同时支持按量计费转包年包月 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DBERROR = "InternalError.DbError" +// INTERNALERROR_ERRCONFLICT = "InternalError.ErrConflict" +// INTERNALERROR_ERRNOTEXIST = "InternalError.ErrNotExist" +// INTERNALERROR_ERRORCONFLICT = "InternalError.ErrorConflict" +// INTERNALERROR_ERROROVERLIMIT = "InternalError.ErrorOverLimit" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_ERRORNAMEEXISTS = "InvalidParameter.ErrorNameExists" +// INVALIDPARAMETER_ERRORREGISTRYNAME = "InvalidParameter.ErrorRegistryName" +// INVALIDPARAMETER_ERRORTAGOVERLIMIT = "InvalidParameter.ErrorTagOverLimit" +// INVALIDPARAMETER_UNSUPPORTEDREGION = "InvalidParameter.UnsupportedRegion" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) RenewInstanceWithContext(ctx context.Context, request *RenewInstanceRequest) (response *RenewInstanceResponse, err error) { if request == nil { request = NewRenewInstanceRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("RenewInstance require credential") + } + + request.SetContext(ctx) + response = NewRenewInstanceResponse() err = c.Send(request, response) return @@ -3230,7 +6663,10 @@ func NewValidateNamespaceExistPersonalRequest() (request *ValidateNamespaceExist request = &ValidateNamespaceExistPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ValidateNamespaceExistPersonal") + + return } @@ -3248,9 +6684,26 @@ func NewValidateNamespaceExistPersonalResponse() (response *ValidateNamespaceExi // INTERNALERROR = "InternalError" // MISSINGPARAMETER = "MissingParameter" func (c *Client) ValidateNamespaceExistPersonal(request *ValidateNamespaceExistPersonalRequest) (response *ValidateNamespaceExistPersonalResponse, err error) { + return c.ValidateNamespaceExistPersonalWithContext(context.Background(), request) +} + +// ValidateNamespaceExistPersonal +// 查询个人版用户命名空间是否存在 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ValidateNamespaceExistPersonalWithContext(ctx context.Context, request *ValidateNamespaceExistPersonalRequest) (response *ValidateNamespaceExistPersonalResponse, err error) { if request == nil { request = NewValidateNamespaceExistPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ValidateNamespaceExistPersonal require credential") + } + + request.SetContext(ctx) + response = NewValidateNamespaceExistPersonalResponse() err = c.Send(request, response) return @@ -3260,7 +6713,10 @@ func NewValidateRepositoryExistPersonalRequest() (request *ValidateRepositoryExi request = &ValidateRepositoryExistPersonalRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("tcr", APIVersion, "ValidateRepositoryExistPersonal") + + return } @@ -3279,9 +6735,27 @@ func NewValidateRepositoryExistPersonalResponse() (response *ValidateRepositoryE // INVALIDPARAMETER_ERRNSMISMATCH = "InvalidParameter.ErrNSMisMatch" // MISSINGPARAMETER = "MissingParameter" func (c *Client) ValidateRepositoryExistPersonal(request *ValidateRepositoryExistPersonalRequest) (response *ValidateRepositoryExistPersonalResponse, err error) { + return c.ValidateRepositoryExistPersonalWithContext(context.Background(), request) +} + +// ValidateRepositoryExistPersonal +// 用于判断个人版仓库是否存在 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_ERRNSMISMATCH = "InvalidParameter.ErrNSMisMatch" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ValidateRepositoryExistPersonalWithContext(ctx context.Context, request *ValidateRepositoryExistPersonalRequest) (response *ValidateRepositoryExistPersonalResponse, err error) { if request == nil { request = NewValidateRepositoryExistPersonalRequest() } + + if c.GetCredential() == nil { + return nil, errors.New("ValidateRepositoryExistPersonal require credential") + } + + request.SetContext(ctx) + response = NewValidateRepositoryExistPersonalResponse() err = c.Send(request, response) return diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924/errors.go index cac260cd11..fb46a8d10a 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924/errors.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924/errors.go @@ -23,6 +23,42 @@ const ( // 操作失败。 FAILEDOPERATION = "FailedOperation" + // 依赖服务异常。 + FAILEDOPERATION_DEPENDENCEERROR = "FailedOperation.DependenceError" + + // 获取数据库数据错误。 + FAILEDOPERATION_ERRORGETDBDATAERROR = "FailedOperation.ErrorGetDBDataError" + + // Tcr实例请求无效的Hearder类型。 + FAILEDOPERATION_ERRORTCRINVALIDMEDIATYPE = "FailedOperation.ErrorTcrInvalidMediaType" + + // Tcr实例资源冲突。 + FAILEDOPERATION_ERRORTCRRESOURCECONFLICT = "FailedOperation.ErrorTcrResourceConflict" + + // 没有Tcr操作权限。 + FAILEDOPERATION_ERRORTCRUNAUTHORIZED = "FailedOperation.ErrorTcrUnauthorized" + + // 获取数据库数据错误。 + FAILEDOPERATION_GETDBDATAERROR = "FailedOperation.GetDBDataError" + + // 获取安全组策略错误。 + FAILEDOPERATION_GETSECURITYPOLICYFAIL = "FailedOperation.GetSecurityPolicyFail" + + // 获取TcrClient错误。 + FAILEDOPERATION_GETTCRCLIENT = "FailedOperation.GetTcrClient" + + // 操作取消。 + FAILEDOPERATION_OPERATIONCANCEL = "FailedOperation.OperationCancel" + + // 交易失败。 + FAILEDOPERATION_TRADEFAILED = "FailedOperation.TradeFailed" + + // 校验仓库名称失败。 + FAILEDOPERATION_VALIDATEREGISTRYNAMEFAIL = "FailedOperation.ValidateRegistryNameFail" + + // 校验支持地域错误。 + FAILEDOPERATION_VALIDATESUPPORTEDREGIONFAIL = "FailedOperation.ValidateSupportedRegionFail" + // 内部错误。 INTERNALERROR = "InternalError" @@ -98,6 +134,9 @@ const ( // 无效的参数,仓库已存在。 INVALIDPARAMETER_ERRREPOEXIST = "InvalidParameter.ErrRepoExist" + // 参数过多。 + INVALIDPARAMETER_ERRTOOLARGE = "InvalidParameter.ErrTooLarge" + // 触发器名称已存在。 INVALIDPARAMETER_ERRTRIGGEREXIST = "InvalidParameter.ErrTriggerExist" @@ -143,6 +182,9 @@ const ( // 操作被拒绝。 OPERATIONDENIED = "OperationDenied" + // 配额超限。 + OPERATIONDENIED_QUOTAOVERLIMIT = "OperationDenied.QuotaOverLimit" + // 实例状态异常。 RESOURCEINSUFFICIENT_ERRORINSTANCENOTRUNNING = "ResourceInsufficient.ErrorInstanceNotRunning" diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924/models.go index 4bbc83827d..6391815d55 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924/models.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924/models.go @@ -21,7 +21,6 @@ import ( ) type AccessVpc struct { - // Vpc的Id VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -36,7 +35,6 @@ type AccessVpc struct { } type AutoDelStrategyInfo struct { - // 用户名 Username *string `json:"Username,omitempty" name:"Username"` @@ -57,7 +55,6 @@ type AutoDelStrategyInfo struct { } type AutoDelStrategyInfoResp struct { - // 总数目 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` @@ -66,9 +63,18 @@ type AutoDelStrategyInfoResp struct { StrategyInfo []*AutoDelStrategyInfo `json:"StrategyInfo,omitempty" name:"StrategyInfo"` } +// Predefined struct for user +type BatchDeleteImagePersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // Tag列表 + Tags []*string `json:"Tags,omitempty" name:"Tags"` +} + type BatchDeleteImagePersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -96,13 +102,15 @@ func (r *BatchDeleteImagePersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type BatchDeleteImagePersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type BatchDeleteImagePersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *BatchDeleteImagePersonalResponseParams `json:"Response"` } func (r *BatchDeleteImagePersonalResponse) ToJsonString() string { @@ -116,9 +124,15 @@ func (r *BatchDeleteImagePersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type BatchDeleteRepositoryPersonalRequestParams struct { + // 仓库名称数组 + RepoNames []*string `json:"RepoNames,omitempty" name:"RepoNames"` +} + type BatchDeleteRepositoryPersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称数组 RepoNames []*string `json:"RepoNames,omitempty" name:"RepoNames"` } @@ -142,13 +156,15 @@ func (r *BatchDeleteRepositoryPersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type BatchDeleteRepositoryPersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type BatchDeleteRepositoryPersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *BatchDeleteRepositoryPersonalResponseParams `json:"Response"` } func (r *BatchDeleteRepositoryPersonalResponse) ToJsonString() string { @@ -162,9 +178,15 @@ func (r *BatchDeleteRepositoryPersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CheckInstanceNameRequestParams struct { + // 待创建的实例名称 + RegistryName *string `json:"RegistryName,omitempty" name:"RegistryName"` +} + type CheckInstanceNameRequest struct { *tchttp.BaseRequest - + // 待创建的实例名称 RegistryName *string `json:"RegistryName,omitempty" name:"RegistryName"` } @@ -188,16 +210,18 @@ func (r *CheckInstanceNameRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CheckInstanceNameResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CheckInstanceNameResponseParams struct { + // 检查结果,true为合法,false为非法 + IsValidated *bool `json:"IsValidated,omitempty" name:"IsValidated"` - // 检查结果,true为合法,false为非法 - IsValidated *bool `json:"IsValidated,omitempty" name:"IsValidated"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CheckInstanceNameResponse struct { + *tchttp.BaseResponse + Response *CheckInstanceNameResponseParams `json:"Response"` } func (r *CheckInstanceNameResponse) ToJsonString() string { @@ -211,9 +235,15 @@ func (r *CheckInstanceNameResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CheckInstanceRequestParams struct { + // 待检测的实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +} + type CheckInstanceRequest struct { *tchttp.BaseRequest - + // 待检测的实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` } @@ -237,19 +267,21 @@ func (r *CheckInstanceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CheckInstanceResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CheckInstanceResponseParams struct { + // 检查结果,true为合法,false为非法 + IsValidated *bool `json:"IsValidated,omitempty" name:"IsValidated"` - // 检查结果,true为合法,false为非法 - IsValidated *bool `json:"IsValidated,omitempty" name:"IsValidated"` + // 实例所在的RegionId + RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"` - // 实例所在的RegionId - RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CheckInstanceResponse struct { + *tchttp.BaseResponse + Response *CheckInstanceResponseParams `json:"Response"` } func (r *CheckInstanceResponse) ToJsonString() string { @@ -263,9 +295,42 @@ func (r *CheckInstanceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateApplicationTriggerPersonalRequestParams struct { + // 触发器关联的镜像仓库,library/test格式 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // 触发器名称 + TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"` + + // 触发方式,"all"全部触发,"taglist"指定tag触发,"regex"正则触发 + InvokeMethod *string `json:"InvokeMethod,omitempty" name:"InvokeMethod"` + + // 应用所在TKE集群ID + ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` + + // 应用所在TKE集群命名空间 + Namespace *string `json:"Namespace,omitempty" name:"Namespace"` + + // 应用所在TKE集群工作负载类型,支持Deployment、StatefulSet、DaemonSet、CronJob、Job。 + WorkloadType *string `json:"WorkloadType,omitempty" name:"WorkloadType"` + + // 应用所在TKE集群工作负载名称 + WorkloadName *string `json:"WorkloadName,omitempty" name:"WorkloadName"` + + // 应用所在TKE集群工作负载下容器名称 + ContainerName *string `json:"ContainerName,omitempty" name:"ContainerName"` + + // 应用所在TKE集群地域 + ClusterRegion *int64 `json:"ClusterRegion,omitempty" name:"ClusterRegion"` + + // 触发方式对应的表达式 + InvokeExpr *string `json:"InvokeExpr,omitempty" name:"InvokeExpr"` +} + type CreateApplicationTriggerPersonalRequest struct { *tchttp.BaseRequest - + // 触发器关联的镜像仓库,library/test格式 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -325,13 +390,15 @@ func (r *CreateApplicationTriggerPersonalRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateApplicationTriggerPersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateApplicationTriggerPersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateApplicationTriggerPersonalResponseParams `json:"Response"` } func (r *CreateApplicationTriggerPersonalResponse) ToJsonString() string { @@ -345,9 +412,120 @@ func (r *CreateApplicationTriggerPersonalResponse) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } -type CreateImageLifecyclePersonalRequest struct { +// Predefined struct for user +type CreateImageAccelerationServiceRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 创建CFS的归属的VPCID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 创建CFS的归属的子网ID + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 创建CFS的存储类型,其中 SD 为标准型存储, HP为性能存储。 + StorageType *string `json:"StorageType,omitempty" name:"StorageType"` + + // 权限组 ID + PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"` + + // 可用区名称,例如ap-beijing-1,请参考 概览 文档中的地域与可用区列表 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 云标签描述 + TagSpecification *TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"` +} + +type CreateImageAccelerationServiceRequest struct { *tchttp.BaseRequest + + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 创建CFS的归属的VPCID + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 创建CFS的归属的子网ID + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 创建CFS的存储类型,其中 SD 为标准型存储, HP为性能存储。 + StorageType *string `json:"StorageType,omitempty" name:"StorageType"` + + // 权限组 ID + PGroupId *string `json:"PGroupId,omitempty" name:"PGroupId"` + + // 可用区名称,例如ap-beijing-1,请参考 概览 文档中的地域与可用区列表 + Zone *string `json:"Zone,omitempty" name:"Zone"` + + // 云标签描述 + TagSpecification *TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"` +} + +func (r *CreateImageAccelerationServiceRequest) 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 *CreateImageAccelerationServiceRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + delete(f, "VpcId") + delete(f, "SubnetId") + delete(f, "StorageType") + delete(f, "PGroupId") + delete(f, "Zone") + delete(f, "TagSpecification") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateImageAccelerationServiceRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateImageAccelerationServiceResponseParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type CreateImageAccelerationServiceResponse struct { + *tchttp.BaseResponse + Response *CreateImageAccelerationServiceResponseParams `json:"Response"` +} + +func (r *CreateImageAccelerationServiceResponse) 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 *CreateImageAccelerationServiceResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateImageLifecyclePersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // keep_last_days:保留最近几天的数据;keep_last_nums:保留最近多少个 + Type *string `json:"Type,omitempty" name:"Type"` + + // 策略值 + Val *int64 `json:"Val,omitempty" name:"Val"` +} + +type CreateImageLifecyclePersonalRequest struct { + *tchttp.BaseRequest + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -379,13 +557,15 @@ func (r *CreateImageLifecyclePersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateImageLifecyclePersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateImageLifecyclePersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateImageLifecyclePersonalResponseParams `json:"Response"` } func (r *CreateImageLifecyclePersonalResponse) ToJsonString() string { @@ -399,9 +579,21 @@ func (r *CreateImageLifecyclePersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateImmutableTagRulesRequestParams struct { + // 实例 Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 规则 + Rule *ImmutableTagRule `json:"Rule,omitempty" name:"Rule"` +} + type CreateImmutableTagRulesRequest struct { *tchttp.BaseRequest - + // 实例 Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -433,13 +625,15 @@ func (r *CreateImmutableTagRulesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateImmutableTagRulesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateImmutableTagRulesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateImmutableTagRulesResponseParams `json:"Response"` } func (r *CreateImmutableTagRulesResponse) ToJsonString() string { @@ -453,9 +647,95 @@ func (r *CreateImmutableTagRulesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateInstanceRequest struct { +// Predefined struct for user +type CreateInstanceCustomizedDomainRequestParams struct { + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 自定义域名 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // 证书ID + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` +} + +type CreateInstanceCustomizedDomainRequest struct { *tchttp.BaseRequest + + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 自定义域名 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // 证书ID + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` +} + +func (r *CreateInstanceCustomizedDomainRequest) 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 *CreateInstanceCustomizedDomainRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + delete(f, "DomainName") + delete(f, "CertificateId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateInstanceCustomizedDomainRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateInstanceCustomizedDomainResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type CreateInstanceCustomizedDomainResponse struct { + *tchttp.BaseResponse + Response *CreateInstanceCustomizedDomainResponseParams `json:"Response"` +} + +func (r *CreateInstanceCustomizedDomainResponse) 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 *CreateInstanceCustomizedDomainResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateInstanceRequestParams struct { + // 企业版实例名称 + RegistryName *string `json:"RegistryName,omitempty" name:"RegistryName"` + + // 企业版实例类型(basic 基础版;standard 标准版;premium 高级版) + RegistryType *string `json:"RegistryType,omitempty" name:"RegistryType"` + + // 云标签描述 + TagSpecification *TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"` + + // 实例计费类型,0表示按量计费,1表示预付费,默认为按量计费 + RegistryChargeType *int64 `json:"RegistryChargeType,omitempty" name:"RegistryChargeType"` + + // 是否同步TCR云标签至生成的COS Bucket + SyncTag *bool `json:"SyncTag,omitempty" name:"SyncTag"` +} +type CreateInstanceRequest struct { + *tchttp.BaseRequest + // 企业版实例名称 RegistryName *string `json:"RegistryName,omitempty" name:"RegistryName"` @@ -467,6 +747,9 @@ type CreateInstanceRequest struct { // 实例计费类型,0表示按量计费,1表示预付费,默认为按量计费 RegistryChargeType *int64 `json:"RegistryChargeType,omitempty" name:"RegistryChargeType"` + + // 是否同步TCR云标签至生成的COS Bucket + SyncTag *bool `json:"SyncTag,omitempty" name:"SyncTag"` } func (r *CreateInstanceRequest) ToJsonString() string { @@ -485,22 +768,25 @@ func (r *CreateInstanceRequest) FromJsonString(s string) error { delete(f, "RegistryType") delete(f, "TagSpecification") delete(f, "RegistryChargeType") + delete(f, "SyncTag") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateInstanceRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type CreateInstanceResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateInstanceResponseParams struct { + // 企业版实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 企业版实例Id - RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateInstanceResponse struct { + *tchttp.BaseResponse + Response *CreateInstanceResponseParams `json:"Response"` } func (r *CreateInstanceResponse) ToJsonString() string { @@ -514,9 +800,21 @@ func (r *CreateInstanceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateInstanceTokenRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 访问凭证类型,longterm 为长期访问凭证,temp 为临时访问凭证,默认是临时访问凭证,有效期1小时 + TokenType *string `json:"TokenType,omitempty" name:"TokenType"` + + // 长期访问凭证描述信息 + Desc *string `json:"Desc,omitempty" name:"Desc"` +} + type CreateInstanceTokenRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -548,32 +846,34 @@ func (r *CreateInstanceTokenRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateInstanceTokenResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 用户名 +// Predefined struct for user +type CreateInstanceTokenResponseParams struct { + // 用户名 // 注意:此字段可能返回 null,表示取不到有效值。 - Username *string `json:"Username,omitempty" name:"Username"` + Username *string `json:"Username,omitempty" name:"Username"` - // 访问凭证 - Token *string `json:"Token,omitempty" name:"Token"` + // 访问凭证 + Token *string `json:"Token,omitempty" name:"Token"` - // 访问凭证过期时间戳,是一个时间戳数字,无单位 - ExpTime *int64 `json:"ExpTime,omitempty" name:"ExpTime"` + // 访问凭证过期时间戳,是一个时间戳数字,无单位 + ExpTime *int64 `json:"ExpTime,omitempty" name:"ExpTime"` - // 长期凭证的TokenId,短期凭证没有TokenId + // 长期凭证的TokenId,短期凭证没有TokenId // 注意:此字段可能返回 null,表示取不到有效值。 - TokenId *string `json:"TokenId,omitempty" name:"TokenId"` + TokenId *string `json:"TokenId,omitempty" name:"TokenId"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } -func (r *CreateInstanceTokenResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) +type CreateInstanceTokenResponse struct { + *tchttp.BaseResponse + Response *CreateInstanceTokenResponseParams `json:"Response"` +} + +func (r *CreateInstanceTokenResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -582,9 +882,29 @@ func (r *CreateInstanceTokenResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateInternalEndpointDnsRequestParams struct { + // tcr实例id + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 私有网络id + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // tcr内网访问链路ip + EniLBIp *string `json:"EniLBIp,omitempty" name:"EniLBIp"` + + // true:为默认域名,公网域名一致 + // false: 使用vpc域名 + // 默认为vpc域名 + UsePublicDomain *bool `json:"UsePublicDomain,omitempty" name:"UsePublicDomain"` + + // 解析地域,需要保证和vpc处于同一地域,如果不填则默认为主实例地域 + RegionName *string `json:"RegionName,omitempty" name:"RegionName"` +} + type CreateInternalEndpointDnsRequest struct { *tchttp.BaseRequest - + // tcr实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -598,6 +918,9 @@ type CreateInternalEndpointDnsRequest struct { // false: 使用vpc域名 // 默认为vpc域名 UsePublicDomain *bool `json:"UsePublicDomain,omitempty" name:"UsePublicDomain"` + + // 解析地域,需要保证和vpc处于同一地域,如果不填则默认为主实例地域 + RegionName *string `json:"RegionName,omitempty" name:"RegionName"` } func (r *CreateInternalEndpointDnsRequest) ToJsonString() string { @@ -616,19 +939,22 @@ func (r *CreateInternalEndpointDnsRequest) FromJsonString(s string) error { delete(f, "VpcId") delete(f, "EniLBIp") delete(f, "UsePublicDomain") + delete(f, "RegionName") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateInternalEndpointDnsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateInternalEndpointDnsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateInternalEndpointDnsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateInternalEndpointDnsResponseParams `json:"Response"` } func (r *CreateInternalEndpointDnsResponse) ToJsonString() string { @@ -642,9 +968,18 @@ func (r *CreateInternalEndpointDnsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateMultipleSecurityPolicyRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 安全组策略 + SecurityGroupPolicySet []*SecurityPolicy `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` +} + type CreateMultipleSecurityPolicyRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -672,16 +1007,18 @@ func (r *CreateMultipleSecurityPolicyRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateMultipleSecurityPolicyResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateMultipleSecurityPolicyResponseParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 实例Id - RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateMultipleSecurityPolicyResponse struct { + *tchttp.BaseResponse + Response *CreateMultipleSecurityPolicyResponseParams `json:"Response"` } func (r *CreateMultipleSecurityPolicyResponse) ToJsonString() string { @@ -695,9 +1032,15 @@ func (r *CreateMultipleSecurityPolicyResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateNamespacePersonalRequestParams struct { + // 命名空间名称 + Namespace *string `json:"Namespace,omitempty" name:"Namespace"` +} + type CreateNamespacePersonalRequest struct { *tchttp.BaseRequest - + // 命名空间名称 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` } @@ -721,13 +1064,15 @@ func (r *CreateNamespacePersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateNamespacePersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateNamespacePersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateNamespacePersonalResponseParams `json:"Response"` } func (r *CreateNamespacePersonalResponse) ToJsonString() string { @@ -741,9 +1086,24 @@ func (r *CreateNamespacePersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateNamespaceRequestParams struct { + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间的名称(长度2-30个字符,只能包含小写字母、数字及分隔符("."、"_"、"-"),且不能以分隔符开头、结尾或连续) + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 是否公开,true为公开,fale为私有 + IsPublic *bool `json:"IsPublic,omitempty" name:"IsPublic"` + + // 云标签描述 + TagSpecification *TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"` +} + type CreateNamespaceRequest struct { *tchttp.BaseRequest - + // 实例ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -752,6 +1112,9 @@ type CreateNamespaceRequest struct { // 是否公开,true为公开,fale为私有 IsPublic *bool `json:"IsPublic,omitempty" name:"IsPublic"` + + // 云标签描述 + TagSpecification *TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"` } func (r *CreateNamespaceRequest) ToJsonString() string { @@ -769,19 +1132,22 @@ func (r *CreateNamespaceRequest) FromJsonString(s string) error { delete(f, "RegistryId") delete(f, "NamespaceName") delete(f, "IsPublic") + delete(f, "TagSpecification") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateNamespaceRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateNamespaceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateNamespaceResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateNamespaceResponseParams `json:"Response"` } func (r *CreateNamespaceResponse) ToJsonString() string { @@ -795,9 +1161,24 @@ func (r *CreateNamespaceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateReplicationInstanceRequestParams struct { + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 复制实例地域ID + ReplicationRegionId *uint64 `json:"ReplicationRegionId,omitempty" name:"ReplicationRegionId"` + + // 复制实例地域名称 + ReplicationRegionName *string `json:"ReplicationRegionName,omitempty" name:"ReplicationRegionName"` + + // 是否同步TCR云标签至生成的COS Bucket + SyncTag *bool `json:"SyncTag,omitempty" name:"SyncTag"` +} + type CreateReplicationInstanceRequest struct { *tchttp.BaseRequest - + // 主实例iD RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -806,6 +1187,9 @@ type CreateReplicationInstanceRequest struct { // 复制实例地域名称 ReplicationRegionName *string `json:"ReplicationRegionName,omitempty" name:"ReplicationRegionName"` + + // 是否同步TCR云标签至生成的COS Bucket + SyncTag *bool `json:"SyncTag,omitempty" name:"SyncTag"` } func (r *CreateReplicationInstanceRequest) ToJsonString() string { @@ -823,22 +1207,25 @@ func (r *CreateReplicationInstanceRequest) FromJsonString(s string) error { delete(f, "RegistryId") delete(f, "ReplicationRegionId") delete(f, "ReplicationRegionName") + delete(f, "SyncTag") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateReplicationInstanceRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type CreateReplicationInstanceResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateReplicationInstanceResponseParams struct { + // 企业版复制实例Id + ReplicationRegistryId *string `json:"ReplicationRegistryId,omitempty" name:"ReplicationRegistryId"` - // 企业版复制实例Id - ReplicationRegistryId *string `json:"ReplicationRegistryId,omitempty" name:"ReplicationRegistryId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateReplicationInstanceResponse struct { + *tchttp.BaseResponse + Response *CreateReplicationInstanceResponseParams `json:"Response"` } func (r *CreateReplicationInstanceResponse) ToJsonString() string { @@ -852,9 +1239,21 @@ func (r *CreateReplicationInstanceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateRepositoryPersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // 是否公共,1:公共,0:私有 + Public *uint64 `json:"Public,omitempty" name:"Public"` + + // 仓库描述 + Description *string `json:"Description,omitempty" name:"Description"` +} + type CreateRepositoryPersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -886,13 +1285,15 @@ func (r *CreateRepositoryPersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateRepositoryPersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateRepositoryPersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateRepositoryPersonalResponseParams `json:"Response"` } func (r *CreateRepositoryPersonalResponse) ToJsonString() string { @@ -906,9 +1307,27 @@ func (r *CreateRepositoryPersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateRepositoryRequestParams struct { + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 仓库名称 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + + // 仓库简短描述 + BriefDescription *string `json:"BriefDescription,omitempty" name:"BriefDescription"` + + // 仓库详细描述 + Description *string `json:"Description,omitempty" name:"Description"` +} + type CreateRepositoryRequest struct { *tchttp.BaseRequest - + // 实例ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -948,13 +1367,15 @@ func (r *CreateRepositoryRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateRepositoryResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateRepositoryResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateRepositoryResponseParams `json:"Response"` } func (r *CreateRepositoryResponse) ToJsonString() string { @@ -968,27 +1389,39 @@ func (r *CreateRepositoryResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateSecurityPolicyRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type CreateSecurityPoliciesRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 192.168.0.0/24 + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // 描述 + Description *string `json:"Description,omitempty" name:"Description"` +} +type CreateSecurityPoliciesRequest struct { + *tchttp.BaseRequest + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` // 192.168.0.0/24 CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` - // 备注 + // 描述 Description *string `json:"Description,omitempty" name:"Description"` } -func (r *CreateSecurityPolicyRequest) ToJsonString() string { +func (r *CreateSecurityPoliciesRequest) 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 *CreateSecurityPolicyRequest) FromJsonString(s string) error { +func (r *CreateSecurityPoliciesRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err @@ -997,161 +1430,445 @@ func (r *CreateSecurityPolicyRequest) FromJsonString(s string) error { delete(f, "CidrBlock") delete(f, "Description") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSecurityPolicyRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSecurityPoliciesRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type CreateSecurityPolicyResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateSecurityPoliciesResponseParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 实例Id - RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateSecurityPoliciesResponse struct { + *tchttp.BaseResponse + Response *CreateSecurityPoliciesResponseParams `json:"Response"` } -func (r *CreateSecurityPolicyResponse) ToJsonString() string { +func (r *CreateSecurityPoliciesResponse) 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 *CreateSecurityPolicyResponse) FromJsonString(s string) error { +func (r *CreateSecurityPoliciesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateTagRetentionExecutionRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type CreateSecurityPolicyRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 主实例iD + // 192.168.0.0/24 + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // 备注 + Description *string `json:"Description,omitempty" name:"Description"` +} + +type CreateSecurityPolicyRequest struct { + *tchttp.BaseRequest + + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 版本保留规则Id - RetentionId *int64 `json:"RetentionId,omitempty" name:"RetentionId"` + // 192.168.0.0/24 + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` - // 是否模拟执行,默认值为false,即非模拟执行 - DryRun *bool `json:"DryRun,omitempty" name:"DryRun"` + // 备注 + Description *string `json:"Description,omitempty" name:"Description"` } -func (r *CreateTagRetentionExecutionRequest) ToJsonString() string { +func (r *CreateSecurityPolicyRequest) 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 *CreateTagRetentionExecutionRequest) FromJsonString(s string) error { +func (r *CreateSecurityPolicyRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "RegistryId") - delete(f, "RetentionId") - delete(f, "DryRun") + delete(f, "CidrBlock") + delete(f, "Description") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTagRetentionExecutionRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSecurityPolicyRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type CreateTagRetentionExecutionResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateSecurityPolicyResponseParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } -func (r *CreateTagRetentionExecutionResponse) ToJsonString() string { +type CreateSecurityPolicyResponse struct { + *tchttp.BaseResponse + Response *CreateSecurityPolicyResponseParams `json:"Response"` +} + +func (r *CreateSecurityPolicyResponse) 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 *CreateTagRetentionExecutionResponse) FromJsonString(s string) error { +func (r *CreateSecurityPolicyResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateTagRetentionRuleRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type CreateSignaturePolicyRequestParams struct { + // 实例 Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 主实例iD + // 策略名称 + Name *string `json:"Name,omitempty" name:"Name"` + + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // KMS 密钥 + KmsId *string `json:"KmsId,omitempty" name:"KmsId"` + + // KMS 密钥所属地域 + KmsRegion *string `json:"KmsRegion,omitempty" name:"KmsRegion"` + + // 用户自定义域名,为空时使用 TCR 实例默认域名生成签名 + Domain *string `json:"Domain,omitempty" name:"Domain"` + + // 禁用加签策略,默认为 false + Disabled *bool `json:"Disabled,omitempty" name:"Disabled"` +} + +type CreateSignaturePolicyRequest struct { + *tchttp.BaseRequest + + // 实例 Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 命名空间的Id - NamespaceId *int64 `json:"NamespaceId,omitempty" name:"NamespaceId"` + // 策略名称 + Name *string `json:"Name,omitempty" name:"Name"` - // 保留策略 - RetentionRule *RetentionRule `json:"RetentionRule,omitempty" name:"RetentionRule"` + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` - // 执行周期,当前只能选择: manual;daily;weekly;monthly - CronSetting *string `json:"CronSetting,omitempty" name:"CronSetting"` + // KMS 密钥 + KmsId *string `json:"KmsId,omitempty" name:"KmsId"` - // 是否禁用规则,默认值为false + // KMS 密钥所属地域 + KmsRegion *string `json:"KmsRegion,omitempty" name:"KmsRegion"` + + // 用户自定义域名,为空时使用 TCR 实例默认域名生成签名 + Domain *string `json:"Domain,omitempty" name:"Domain"` + + // 禁用加签策略,默认为 false Disabled *bool `json:"Disabled,omitempty" name:"Disabled"` } -func (r *CreateTagRetentionRuleRequest) ToJsonString() string { +func (r *CreateSignaturePolicyRequest) 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 *CreateTagRetentionRuleRequest) FromJsonString(s string) error { +func (r *CreateSignaturePolicyRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "RegistryId") - delete(f, "NamespaceId") - delete(f, "RetentionRule") - delete(f, "CronSetting") + delete(f, "Name") + delete(f, "NamespaceName") + delete(f, "KmsId") + delete(f, "KmsRegion") + delete(f, "Domain") delete(f, "Disabled") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTagRetentionRuleRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSignaturePolicyRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type CreateTagRetentionRuleResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateSignaturePolicyResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateSignaturePolicyResponse struct { + *tchttp.BaseResponse + Response *CreateSignaturePolicyResponseParams `json:"Response"` } -func (r *CreateTagRetentionRuleResponse) ToJsonString() string { +func (r *CreateSignaturePolicyResponse) 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 *CreateTagRetentionRuleResponse) FromJsonString(s string) error { +func (r *CreateSignaturePolicyResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateUserPersonalRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type CreateSignatureRequestParams struct { + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 用户密码,密码必须为8到16位 - Password *string `json:"Password,omitempty" name:"Password"` -} + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` -func (r *CreateUserPersonalRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} + // 仓库名称 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + + // Tag名称 + ImageVersion *string `json:"ImageVersion,omitempty" name:"ImageVersion"` +} + +type CreateSignatureRequest struct { + *tchttp.BaseRequest + + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 仓库名称 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + + // Tag名称 + ImageVersion *string `json:"ImageVersion,omitempty" name:"ImageVersion"` +} + +func (r *CreateSignatureRequest) 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 *CreateSignatureRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + delete(f, "NamespaceName") + delete(f, "RepositoryName") + delete(f, "ImageVersion") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSignatureRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateSignatureResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type CreateSignatureResponse struct { + *tchttp.BaseResponse + Response *CreateSignatureResponseParams `json:"Response"` +} + +func (r *CreateSignatureResponse) 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 *CreateSignatureResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateTagRetentionExecutionRequestParams struct { + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 版本保留规则Id + RetentionId *int64 `json:"RetentionId,omitempty" name:"RetentionId"` + + // 是否模拟执行,默认值为false,即非模拟执行 + DryRun *bool `json:"DryRun,omitempty" name:"DryRun"` +} + +type CreateTagRetentionExecutionRequest struct { + *tchttp.BaseRequest + + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 版本保留规则Id + RetentionId *int64 `json:"RetentionId,omitempty" name:"RetentionId"` + + // 是否模拟执行,默认值为false,即非模拟执行 + DryRun *bool `json:"DryRun,omitempty" name:"DryRun"` +} + +func (r *CreateTagRetentionExecutionRequest) 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 *CreateTagRetentionExecutionRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + delete(f, "RetentionId") + delete(f, "DryRun") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTagRetentionExecutionRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateTagRetentionExecutionResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type CreateTagRetentionExecutionResponse struct { + *tchttp.BaseResponse + Response *CreateTagRetentionExecutionResponseParams `json:"Response"` +} + +func (r *CreateTagRetentionExecutionResponse) 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 *CreateTagRetentionExecutionResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateTagRetentionRuleRequestParams struct { + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间的Id + NamespaceId *int64 `json:"NamespaceId,omitempty" name:"NamespaceId"` + + // 保留策略 + RetentionRule *RetentionRule `json:"RetentionRule,omitempty" name:"RetentionRule"` + + // 执行周期,当前只能选择: manual;daily;weekly;monthly + CronSetting *string `json:"CronSetting,omitempty" name:"CronSetting"` + + // 是否禁用规则,默认值为false + Disabled *bool `json:"Disabled,omitempty" name:"Disabled"` +} + +type CreateTagRetentionRuleRequest struct { + *tchttp.BaseRequest + + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间的Id + NamespaceId *int64 `json:"NamespaceId,omitempty" name:"NamespaceId"` + + // 保留策略 + RetentionRule *RetentionRule `json:"RetentionRule,omitempty" name:"RetentionRule"` + + // 执行周期,当前只能选择: manual;daily;weekly;monthly + CronSetting *string `json:"CronSetting,omitempty" name:"CronSetting"` + + // 是否禁用规则,默认值为false + Disabled *bool `json:"Disabled,omitempty" name:"Disabled"` +} + +func (r *CreateTagRetentionRuleRequest) 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 *CreateTagRetentionRuleRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + delete(f, "NamespaceId") + delete(f, "RetentionRule") + delete(f, "CronSetting") + delete(f, "Disabled") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTagRetentionRuleRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateTagRetentionRuleResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type CreateTagRetentionRuleResponse struct { + *tchttp.BaseResponse + Response *CreateTagRetentionRuleResponseParams `json:"Response"` +} + +func (r *CreateTagRetentionRuleResponse) 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 *CreateTagRetentionRuleResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateUserPersonalRequestParams struct { + // 用户密码,密码必须为8到16位 + Password *string `json:"Password,omitempty" name:"Password"` +} + +type CreateUserPersonalRequest struct { + *tchttp.BaseRequest + + // 用户密码,密码必须为8到16位 + Password *string `json:"Password,omitempty" name:"Password"` +} + +func (r *CreateUserPersonalRequest) 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 @@ -1167,13 +1884,15 @@ func (r *CreateUserPersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateUserPersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateUserPersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateUserPersonalResponseParams `json:"Response"` } func (r *CreateUserPersonalResponse) ToJsonString() string { @@ -1187,9 +1906,21 @@ func (r *CreateUserPersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateWebhookTriggerRequestParams struct { + // 实例 Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 触发器参数 + Trigger *WebhookTrigger `json:"Trigger,omitempty" name:"Trigger"` + + // 命名空间 + Namespace *string `json:"Namespace,omitempty" name:"Namespace"` +} + type CreateWebhookTriggerRequest struct { *tchttp.BaseRequest - + // 实例 Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -1221,16 +1952,18 @@ func (r *CreateWebhookTriggerRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateWebhookTriggerResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateWebhookTriggerResponseParams struct { + // 新建的触发器 + Trigger *WebhookTrigger `json:"Trigger,omitempty" name:"Trigger"` - // 新建的触发器 - Trigger *WebhookTrigger `json:"Trigger,omitempty" name:"Trigger"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateWebhookTriggerResponse struct { + *tchttp.BaseResponse + Response *CreateWebhookTriggerResponseParams `json:"Response"` } func (r *CreateWebhookTriggerResponse) ToJsonString() string { @@ -1244,9 +1977,29 @@ func (r *CreateWebhookTriggerResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +type CustomizedDomainInfo struct { + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 证书ID + CertId *string `json:"CertId,omitempty" name:"CertId"` + + // 域名名称 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // 域名创建状态(SUCCESS, FAILURE, CREATING, DELETING) + Status *string `json:"Status,omitempty" name:"Status"` +} + +// Predefined struct for user +type DeleteApplicationTriggerPersonalRequestParams struct { + // 触发器名称 + TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"` +} + type DeleteApplicationTriggerPersonalRequest struct { *tchttp.BaseRequest - + // 触发器名称 TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"` } @@ -1270,13 +2023,15 @@ func (r *DeleteApplicationTriggerPersonalRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteApplicationTriggerPersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteApplicationTriggerPersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteApplicationTriggerPersonalResponseParams `json:"Response"` } func (r *DeleteApplicationTriggerPersonalResponse) ToJsonString() string { @@ -1290,8 +2045,68 @@ func (r *DeleteApplicationTriggerPersonalResponse) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteImageAccelerateServiceRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +} + +type DeleteImageAccelerateServiceRequest struct { + *tchttp.BaseRequest + + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +} + +func (r *DeleteImageAccelerateServiceRequest) 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 *DeleteImageAccelerateServiceRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteImageAccelerateServiceRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteImageAccelerateServiceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DeleteImageAccelerateServiceResponse struct { + *tchttp.BaseResponse + Response *DeleteImageAccelerateServiceResponseParams `json:"Response"` +} + +func (r *DeleteImageAccelerateServiceResponse) 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 *DeleteImageAccelerateServiceResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteImageLifecycleGlobalPersonalRequestParams struct { + +} + type DeleteImageLifecycleGlobalPersonalRequest struct { *tchttp.BaseRequest + } func (r *DeleteImageLifecycleGlobalPersonalRequest) ToJsonString() string { @@ -1306,19 +2121,22 @@ func (r *DeleteImageLifecycleGlobalPersonalRequest) FromJsonString(s string) err if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteImageLifecycleGlobalPersonalRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteImageLifecycleGlobalPersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteImageLifecycleGlobalPersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteImageLifecycleGlobalPersonalResponseParams `json:"Response"` } func (r *DeleteImageLifecycleGlobalPersonalResponse) ToJsonString() string { @@ -1332,9 +2150,15 @@ func (r *DeleteImageLifecycleGlobalPersonalResponse) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteImageLifecyclePersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` +} + type DeleteImageLifecyclePersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` } @@ -1358,13 +2182,15 @@ func (r *DeleteImageLifecyclePersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteImageLifecyclePersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteImageLifecyclePersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteImageLifecyclePersonalResponseParams `json:"Response"` } func (r *DeleteImageLifecyclePersonalResponse) ToJsonString() string { @@ -1378,9 +2204,18 @@ func (r *DeleteImageLifecyclePersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteImagePersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // Tag名 + Tag *string `json:"Tag,omitempty" name:"Tag"` +} + type DeleteImagePersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -1408,13 +2243,15 @@ func (r *DeleteImagePersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteImagePersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteImagePersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteImagePersonalResponseParams `json:"Response"` } func (r *DeleteImagePersonalResponse) ToJsonString() string { @@ -1428,9 +2265,24 @@ func (r *DeleteImagePersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteImageRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 镜像仓库名称 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + + // 镜像版本 + ImageVersion *string `json:"ImageVersion,omitempty" name:"ImageVersion"` + + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` +} + type DeleteImageRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -1466,13 +2318,15 @@ func (r *DeleteImageRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteImageResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteImageResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteImageResponseParams `json:"Response"` } func (r *DeleteImageResponse) ToJsonString() string { @@ -1486,9 +2340,21 @@ func (r *DeleteImageResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteImmutableTagRulesRequestParams struct { + // 实例 Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 规则 Id + RuleId *int64 `json:"RuleId,omitempty" name:"RuleId"` +} + type DeleteImmutableTagRulesRequest struct { *tchttp.BaseRequest - + // 实例 Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -1520,13 +2386,15 @@ func (r *DeleteImmutableTagRulesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteImmutableTagRulesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteImmutableTagRulesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteImmutableTagRulesResponseParams `json:"Response"` } func (r *DeleteImmutableTagRulesResponse) ToJsonString() string { @@ -1540,14 +2408,97 @@ func (r *DeleteImmutableTagRulesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DeleteInstanceRequest struct { +// Predefined struct for user +type DeleteInstanceCustomizedDomainRequestParams struct { + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 自定义域名 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // 证书ID + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` +} + +type DeleteInstanceCustomizedDomainRequest struct { *tchttp.BaseRequest + + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + // 自定义域名 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // 证书ID + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` +} + +func (r *DeleteInstanceCustomizedDomainRequest) 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 *DeleteInstanceCustomizedDomainRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + delete(f, "DomainName") + delete(f, "CertificateId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteInstanceCustomizedDomainRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteInstanceCustomizedDomainResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DeleteInstanceCustomizedDomainResponse struct { + *tchttp.BaseResponse + Response *DeleteInstanceCustomizedDomainResponseParams `json:"Response"` +} + +func (r *DeleteInstanceCustomizedDomainResponse) 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 *DeleteInstanceCustomizedDomainResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteInstanceRequestParams struct { + // 实例id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 是否删除存储桶,默认为false + DeleteBucket *bool `json:"DeleteBucket,omitempty" name:"DeleteBucket"` + + // 是否dryRun模式,缺省值:false + DryRun *bool `json:"DryRun,omitempty" name:"DryRun"` +} + +type DeleteInstanceRequest struct { + *tchttp.BaseRequest + // 实例id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` // 是否删除存储桶,默认为false DeleteBucket *bool `json:"DeleteBucket,omitempty" name:"DeleteBucket"` + + // 是否dryRun模式,缺省值:false + DryRun *bool `json:"DryRun,omitempty" name:"DryRun"` } func (r *DeleteInstanceRequest) ToJsonString() string { @@ -1564,19 +2515,22 @@ func (r *DeleteInstanceRequest) FromJsonString(s string) error { } delete(f, "RegistryId") delete(f, "DeleteBucket") + delete(f, "DryRun") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteInstanceRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteInstanceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteInstanceResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteInstanceResponseParams `json:"Response"` } func (r *DeleteInstanceResponse) ToJsonString() string { @@ -1590,9 +2544,18 @@ func (r *DeleteInstanceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteInstanceTokenRequestParams struct { + // 实例 ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 访问凭证 ID + TokenId *string `json:"TokenId,omitempty" name:"TokenId"` +} + type DeleteInstanceTokenRequest struct { *tchttp.BaseRequest - + // 实例 ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -1620,13 +2583,15 @@ func (r *DeleteInstanceTokenRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteInstanceTokenResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteInstanceTokenResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteInstanceTokenResponseParams `json:"Response"` } func (r *DeleteInstanceTokenResponse) ToJsonString() string { @@ -1640,9 +2605,28 @@ func (r *DeleteInstanceTokenResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteInternalEndpointDnsRequestParams struct { + // tcr实例id + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 私有网络id + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // tcr内网访问链路ip + EniLBIp *string `json:"EniLBIp,omitempty" name:"EniLBIp"` + + // true:使用默认域名 + // false: 使用带有vpc的域名 + UsePublicDomain *bool `json:"UsePublicDomain,omitempty" name:"UsePublicDomain"` + + // 解析地域,需要保证和vpc处于同一地域,如果不填则默认为主实例地域 + RegionName *string `json:"RegionName,omitempty" name:"RegionName"` +} + type DeleteInternalEndpointDnsRequest struct { *tchttp.BaseRequest - + // tcr实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -1655,6 +2639,9 @@ type DeleteInternalEndpointDnsRequest struct { // true:使用默认域名 // false: 使用带有vpc的域名 UsePublicDomain *bool `json:"UsePublicDomain,omitempty" name:"UsePublicDomain"` + + // 解析地域,需要保证和vpc处于同一地域,如果不填则默认为主实例地域 + RegionName *string `json:"RegionName,omitempty" name:"RegionName"` } func (r *DeleteInternalEndpointDnsRequest) ToJsonString() string { @@ -1673,19 +2660,22 @@ func (r *DeleteInternalEndpointDnsRequest) FromJsonString(s string) error { delete(f, "VpcId") delete(f, "EniLBIp") delete(f, "UsePublicDomain") + delete(f, "RegionName") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteInternalEndpointDnsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteInternalEndpointDnsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteInternalEndpointDnsResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteInternalEndpointDnsResponseParams `json:"Response"` } func (r *DeleteInternalEndpointDnsResponse) ToJsonString() string { @@ -1699,9 +2689,18 @@ func (r *DeleteInternalEndpointDnsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteMultipleSecurityPolicyRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 安全组策略 + SecurityGroupPolicySet []*SecurityPolicy `json:"SecurityGroupPolicySet,omitempty" name:"SecurityGroupPolicySet"` +} + type DeleteMultipleSecurityPolicyRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -1729,16 +2728,18 @@ func (r *DeleteMultipleSecurityPolicyRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DeleteMultipleSecurityPolicyResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DeleteMultipleSecurityPolicyResponseParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 实例Id - RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DeleteMultipleSecurityPolicyResponse struct { + *tchttp.BaseResponse + Response *DeleteMultipleSecurityPolicyResponseParams `json:"Response"` } func (r *DeleteMultipleSecurityPolicyResponse) ToJsonString() string { @@ -1752,9 +2753,15 @@ func (r *DeleteMultipleSecurityPolicyResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteNamespacePersonalRequestParams struct { + // 命名空间名称 + Namespace *string `json:"Namespace,omitempty" name:"Namespace"` +} + type DeleteNamespacePersonalRequest struct { *tchttp.BaseRequest - + // 命名空间名称 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` } @@ -1778,13 +2785,15 @@ func (r *DeleteNamespacePersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteNamespacePersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteNamespacePersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteNamespacePersonalResponseParams `json:"Response"` } func (r *DeleteNamespacePersonalResponse) ToJsonString() string { @@ -1798,9 +2807,18 @@ func (r *DeleteNamespacePersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteNamespaceRequestParams struct { + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间的名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` +} + type DeleteNamespaceRequest struct { *tchttp.BaseRequest - + // 实例ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -1828,13 +2846,15 @@ func (r *DeleteNamespaceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteNamespaceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteNamespaceResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteNamespaceResponseParams `json:"Response"` } func (r *DeleteNamespaceResponse) ToJsonString() string { @@ -1848,9 +2868,83 @@ func (r *DeleteNamespaceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DeleteRepositoryPersonalRequest struct { +// Predefined struct for user +type DeleteReplicationInstanceRequestParams struct { + // 实例id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 复制实例ID + ReplicationRegistryId *string `json:"ReplicationRegistryId,omitempty" name:"ReplicationRegistryId"` + + // 复制实例地域Id + ReplicationRegionId *uint64 `json:"ReplicationRegionId,omitempty" name:"ReplicationRegionId"` +} + +type DeleteReplicationInstanceRequest struct { *tchttp.BaseRequest + + // 实例id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 复制实例ID + ReplicationRegistryId *string `json:"ReplicationRegistryId,omitempty" name:"ReplicationRegistryId"` + + // 复制实例地域Id + ReplicationRegionId *uint64 `json:"ReplicationRegionId,omitempty" name:"ReplicationRegionId"` +} + +func (r *DeleteReplicationInstanceRequest) 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 *DeleteReplicationInstanceRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + delete(f, "ReplicationRegistryId") + delete(f, "ReplicationRegionId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteReplicationInstanceRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteReplicationInstanceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DeleteReplicationInstanceResponse struct { + *tchttp.BaseResponse + Response *DeleteReplicationInstanceResponseParams `json:"Response"` +} + +func (r *DeleteReplicationInstanceResponse) 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 *DeleteReplicationInstanceResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} +// Predefined struct for user +type DeleteRepositoryPersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` +} + +type DeleteRepositoryPersonalRequest struct { + *tchttp.BaseRequest + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` } @@ -1874,13 +2968,15 @@ func (r *DeleteRepositoryPersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteRepositoryPersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteRepositoryPersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteRepositoryPersonalResponseParams `json:"Response"` } func (r *DeleteRepositoryPersonalResponse) ToJsonString() string { @@ -1894,120 +2990,293 @@ func (r *DeleteRepositoryPersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteRepositoryRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间的名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 镜像仓库的名称 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` +} + type DeleteRepositoryRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` // 命名空间的名称 NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` - // 镜像仓库的名称 - RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + // 镜像仓库的名称 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` +} + +func (r *DeleteRepositoryRequest) 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 *DeleteRepositoryRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + delete(f, "NamespaceName") + delete(f, "RepositoryName") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteRepositoryRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteRepositoryResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DeleteRepositoryResponse struct { + *tchttp.BaseResponse + Response *DeleteRepositoryResponseParams `json:"Response"` +} + +func (r *DeleteRepositoryResponse) 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 *DeleteRepositoryResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteRepositoryTagsRequestParams struct { + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 仓库名称 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + + // Tag列表,单次请求Tag数量最大为20 + Tags []*string `json:"Tags,omitempty" name:"Tags"` +} + +type DeleteRepositoryTagsRequest struct { + *tchttp.BaseRequest + + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 仓库名称 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + + // Tag列表,单次请求Tag数量最大为20 + Tags []*string `json:"Tags,omitempty" name:"Tags"` +} + +func (r *DeleteRepositoryTagsRequest) 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 *DeleteRepositoryTagsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + delete(f, "NamespaceName") + delete(f, "RepositoryName") + delete(f, "Tags") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteRepositoryTagsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteRepositoryTagsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DeleteRepositoryTagsResponse struct { + *tchttp.BaseResponse + Response *DeleteRepositoryTagsResponseParams `json:"Response"` +} + +func (r *DeleteRepositoryTagsResponse) 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 *DeleteRepositoryTagsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteSecurityPolicyRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 白名单Id + PolicyIndex *int64 `json:"PolicyIndex,omitempty" name:"PolicyIndex"` + + // 白名单版本 + PolicyVersion *string `json:"PolicyVersion,omitempty" name:"PolicyVersion"` +} + +type DeleteSecurityPolicyRequest struct { + *tchttp.BaseRequest + + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 白名单Id + PolicyIndex *int64 `json:"PolicyIndex,omitempty" name:"PolicyIndex"` + + // 白名单版本 + PolicyVersion *string `json:"PolicyVersion,omitempty" name:"PolicyVersion"` } -func (r *DeleteRepositoryRequest) ToJsonString() string { +func (r *DeleteSecurityPolicyRequest) 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 *DeleteRepositoryRequest) FromJsonString(s string) error { +func (r *DeleteSecurityPolicyRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "RegistryId") - delete(f, "NamespaceName") - delete(f, "RepositoryName") + delete(f, "PolicyIndex") + delete(f, "PolicyVersion") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteRepositoryRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteSecurityPolicyRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DeleteRepositoryResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DeleteSecurityPolicyResponseParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } -func (r *DeleteRepositoryResponse) ToJsonString() string { +type DeleteSecurityPolicyResponse struct { + *tchttp.BaseResponse + Response *DeleteSecurityPolicyResponseParams `json:"Response"` +} + +func (r *DeleteSecurityPolicyResponse) 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 *DeleteRepositoryResponse) FromJsonString(s string) error { +func (r *DeleteSecurityPolicyResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DeleteSecurityPolicyRequest struct { - *tchttp.BaseRequest - - // 实例Id +// Predefined struct for user +type DeleteSignaturePolicyRequestParams struct { + // 实例ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 白名单Id - PolicyIndex *int64 `json:"PolicyIndex,omitempty" name:"PolicyIndex"` + // 命名空间的名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` +} - // 白名单版本 - PolicyVersion *string `json:"PolicyVersion,omitempty" name:"PolicyVersion"` +type DeleteSignaturePolicyRequest struct { + *tchttp.BaseRequest + + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间的名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` } -func (r *DeleteSecurityPolicyRequest) ToJsonString() string { +func (r *DeleteSignaturePolicyRequest) 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 *DeleteSecurityPolicyRequest) FromJsonString(s string) error { +func (r *DeleteSignaturePolicyRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "RegistryId") - delete(f, "PolicyIndex") - delete(f, "PolicyVersion") + delete(f, "NamespaceName") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteSecurityPolicyRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteSignaturePolicyRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DeleteSecurityPolicyResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 实例Id - RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +// Predefined struct for user +type DeleteSignaturePolicyResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DeleteSignaturePolicyResponse struct { + *tchttp.BaseResponse + Response *DeleteSignaturePolicyResponseParams `json:"Response"` } -func (r *DeleteSecurityPolicyResponse) ToJsonString() string { +func (r *DeleteSignaturePolicyResponse) 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 *DeleteSecurityPolicyResponse) FromJsonString(s string) error { +func (r *DeleteSignaturePolicyResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteTagRetentionRuleRequestParams struct { + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 版本保留规则的Id + RetentionId *int64 `json:"RetentionId,omitempty" name:"RetentionId"` +} + type DeleteTagRetentionRuleRequest struct { *tchttp.BaseRequest - + // 主实例iD RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -2035,13 +3304,15 @@ func (r *DeleteTagRetentionRuleRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteTagRetentionRuleResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteTagRetentionRuleResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteTagRetentionRuleResponseParams `json:"Response"` } func (r *DeleteTagRetentionRuleResponse) ToJsonString() string { @@ -2055,9 +3326,21 @@ func (r *DeleteTagRetentionRuleResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteWebhookTriggerRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间 + Namespace *string `json:"Namespace,omitempty" name:"Namespace"` + + // 触发器 Id + Id *int64 `json:"Id,omitempty" name:"Id"` +} + type DeleteWebhookTriggerRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -2089,13 +3372,15 @@ func (r *DeleteWebhookTriggerRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteWebhookTriggerResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteWebhookTriggerResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteWebhookTriggerResponseParams `json:"Response"` } func (r *DeleteWebhookTriggerResponse) ToJsonString() string { @@ -2109,9 +3394,27 @@ func (r *DeleteWebhookTriggerResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeApplicationTriggerLogPersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // 偏移量,默认为0 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回最大数量,默认 20, 最大值 100 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 升序或降序 + Order *string `json:"Order,omitempty" name:"Order"` + + // 按某列排序 + OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` +} + type DescribeApplicationTriggerLogPersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -2152,7 +3455,6 @@ func (r *DescribeApplicationTriggerLogPersonalRequest) FromJsonString(s string) } type DescribeApplicationTriggerLogPersonalResp struct { - // 返回总数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` @@ -2161,16 +3463,18 @@ type DescribeApplicationTriggerLogPersonalResp struct { LogInfo []*TriggerLogResp `json:"LogInfo,omitempty" name:"LogInfo"` } -type DescribeApplicationTriggerLogPersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeApplicationTriggerLogPersonalResponseParams struct { + // 触发日志返回值 + Data *DescribeApplicationTriggerLogPersonalResp `json:"Data,omitempty" name:"Data"` - // 触发日志返回值 - Data *DescribeApplicationTriggerLogPersonalResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeApplicationTriggerLogPersonalResponse struct { + *tchttp.BaseResponse + Response *DescribeApplicationTriggerLogPersonalResponseParams `json:"Response"` } func (r *DescribeApplicationTriggerLogPersonalResponse) ToJsonString() string { @@ -2184,9 +3488,24 @@ func (r *DescribeApplicationTriggerLogPersonalResponse) FromJsonString(s string) return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeApplicationTriggerPersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // 触发器名称 + TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"` + + // 偏移量,默认为0 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回最大数量,默认 20, 最大值 100 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeApplicationTriggerPersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -2223,7 +3542,6 @@ func (r *DescribeApplicationTriggerPersonalRequest) FromJsonString(s string) err } type DescribeApplicationTriggerPersonalResp struct { - // 返回条目总数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` @@ -2231,16 +3549,18 @@ type DescribeApplicationTriggerPersonalResp struct { TriggerInfo []*TriggerResp `json:"TriggerInfo,omitempty" name:"TriggerInfo"` } -type DescribeApplicationTriggerPersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeApplicationTriggerPersonalResponseParams struct { + // 触发器列表返回值 + Data *DescribeApplicationTriggerPersonalResp `json:"Data,omitempty" name:"Data"` - // 触发器列表返回值 - Data *DescribeApplicationTriggerPersonalResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeApplicationTriggerPersonalResponse struct { + *tchttp.BaseResponse + Response *DescribeApplicationTriggerPersonalResponseParams `json:"Response"` } func (r *DescribeApplicationTriggerPersonalResponse) ToJsonString() string { @@ -2254,9 +3574,24 @@ func (r *DescribeApplicationTriggerPersonalResponse) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeChartDownloadInfoRequestParams struct { + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // Chart包的名称 + ChartName *string `json:"ChartName,omitempty" name:"ChartName"` + + // Chart包的版本 + ChartVersion *string `json:"ChartVersion,omitempty" name:"ChartVersion"` +} + type DescribeChartDownloadInfoRequest struct { *tchttp.BaseRequest - + // 实例ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -2292,16 +3627,18 @@ func (r *DescribeChartDownloadInfoRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeChartDownloadInfoResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeChartDownloadInfoResponseParams struct { + // 用于下载的url的预签名地址 + PreSignedDownloadURL *string `json:"PreSignedDownloadURL,omitempty" name:"PreSignedDownloadURL"` - // 用于下载的url的预签名地址 - PreSignedDownloadURL *string `json:"PreSignedDownloadURL,omitempty" name:"PreSignedDownloadURL"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeChartDownloadInfoResponse struct { + *tchttp.BaseResponse + Response *DescribeChartDownloadInfoResponseParams `json:"Response"` } func (r *DescribeChartDownloadInfoResponse) ToJsonString() string { @@ -2315,9 +3652,15 @@ func (r *DescribeChartDownloadInfoResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeExternalEndpointStatusRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +} + type DescribeExternalEndpointStatusRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` } @@ -2341,20 +3684,22 @@ func (r *DescribeExternalEndpointStatusRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeExternalEndpointStatusResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 开启公网访问状态,开启中(Opening)、已开启(Opened)、关闭(Closed) - Status *string `json:"Status,omitempty" name:"Status"` +// Predefined struct for user +type DescribeExternalEndpointStatusResponseParams struct { + // 开启公网访问状态,开启中(Opening)、已开启(Opened)、关闭(Closed) + Status *string `json:"Status,omitempty" name:"Status"` - // 原因 + // 原因 // 注意:此字段可能返回 null,表示取不到有效值。 - Reason *string `json:"Reason,omitempty" name:"Reason"` + Reason *string `json:"Reason,omitempty" name:"Reason"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeExternalEndpointStatusResponse struct { + *tchttp.BaseResponse + Response *DescribeExternalEndpointStatusResponseParams `json:"Response"` } func (r *DescribeExternalEndpointStatusResponse) ToJsonString() string { @@ -2368,9 +3713,21 @@ func (r *DescribeExternalEndpointStatusResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeFavorRepositoryPersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // 分页Limit + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // Offset用于分页 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` +} + type DescribeFavorRepositoryPersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -2402,32 +3759,163 @@ func (r *DescribeFavorRepositoryPersonalRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } -type DescribeFavorRepositoryPersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeFavorRepositoryPersonalResponseParams struct { + // 个人收藏仓库列表返回信息 + Data *FavorResp `json:"Data,omitempty" name:"Data"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeFavorRepositoryPersonalResponse struct { + *tchttp.BaseResponse + Response *DescribeFavorRepositoryPersonalResponseParams `json:"Response"` +} + +func (r *DescribeFavorRepositoryPersonalResponse) 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 *DescribeFavorRepositoryPersonalResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeGCJobsRequestParams struct { + // 实例 Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +} + +type DescribeGCJobsRequest struct { + *tchttp.BaseRequest + + // 实例 Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +} + +func (r *DescribeGCJobsRequest) 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 *DescribeGCJobsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeGCJobsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeGCJobsResponseParams struct { + // GC Job 列表 + Jobs []*GCJobInfo `json:"Jobs,omitempty" name:"Jobs"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeGCJobsResponse struct { + *tchttp.BaseResponse + Response *DescribeGCJobsResponseParams `json:"Response"` +} + +func (r *DescribeGCJobsResponse) 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 *DescribeGCJobsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeImageAccelerateServiceRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +} + +type DescribeImageAccelerateServiceRequest struct { + *tchttp.BaseRequest + + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +} + +func (r *DescribeImageAccelerateServiceRequest) 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 *DescribeImageAccelerateServiceRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeImageAccelerateServiceRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeImageAccelerateServiceResponseParams struct { + // 镜像加速状态 + Status *string `json:"Status,omitempty" name:"Status"` + + // CFS的VIP + CFSVIP *string `json:"CFSVIP,omitempty" name:"CFSVIP"` - // 个人收藏仓库列表返回信息 - Data *FavorResp `json:"Data,omitempty" name:"Data"` + // 是否开通 + IsEnable *bool `json:"IsEnable,omitempty" name:"IsEnable"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } -func (r *DescribeFavorRepositoryPersonalResponse) ToJsonString() string { +type DescribeImageAccelerateServiceResponse struct { + *tchttp.BaseResponse + Response *DescribeImageAccelerateServiceResponseParams `json:"Response"` +} + +func (r *DescribeImageAccelerateServiceResponse) 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 *DescribeFavorRepositoryPersonalResponse) FromJsonString(s string) error { +func (r *DescribeImageAccelerateServiceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeImageFilterPersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // Tag名 + Tag *string `json:"Tag,omitempty" name:"Tag"` +} + type DescribeImageFilterPersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -2455,16 +3943,18 @@ func (r *DescribeImageFilterPersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeImageFilterPersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeImageFilterPersonalResponseParams struct { + // 返回tag镜像内容相同的tag列表 + Data *SameImagesResp `json:"Data,omitempty" name:"Data"` - // 返回tag镜像内容相同的tag列表 - Data *SameImagesResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeImageFilterPersonalResponse struct { + *tchttp.BaseResponse + Response *DescribeImageFilterPersonalResponseParams `json:"Response"` } func (r *DescribeImageFilterPersonalResponse) ToJsonString() string { @@ -2478,8 +3968,14 @@ func (r *DescribeImageFilterPersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeImageLifecycleGlobalPersonalRequestParams struct { + +} + type DescribeImageLifecycleGlobalPersonalRequest struct { *tchttp.BaseRequest + } func (r *DescribeImageLifecycleGlobalPersonalRequest) ToJsonString() string { @@ -2494,22 +3990,25 @@ func (r *DescribeImageLifecycleGlobalPersonalRequest) FromJsonString(s string) e if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeImageLifecycleGlobalPersonalRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeImageLifecycleGlobalPersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeImageLifecycleGlobalPersonalResponseParams struct { + // 全局自动删除策略信息 + Data *AutoDelStrategyInfoResp `json:"Data,omitempty" name:"Data"` - // 全局自动删除策略信息 - Data *AutoDelStrategyInfoResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeImageLifecycleGlobalPersonalResponse struct { + *tchttp.BaseResponse + Response *DescribeImageLifecycleGlobalPersonalResponseParams `json:"Response"` } func (r *DescribeImageLifecycleGlobalPersonalResponse) ToJsonString() string { @@ -2523,9 +4022,15 @@ func (r *DescribeImageLifecycleGlobalPersonalResponse) FromJsonString(s string) return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeImageLifecyclePersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` +} + type DescribeImageLifecyclePersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` } @@ -2549,16 +4054,18 @@ func (r *DescribeImageLifecyclePersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeImageLifecyclePersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeImageLifecyclePersonalResponseParams struct { + // 自动删除策略信息 + Data *AutoDelStrategyInfoResp `json:"Data,omitempty" name:"Data"` - // 自动删除策略信息 - Data *AutoDelStrategyInfoResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeImageLifecyclePersonalResponse struct { + *tchttp.BaseResponse + Response *DescribeImageLifecyclePersonalResponseParams `json:"Response"` } func (r *DescribeImageLifecyclePersonalResponse) ToJsonString() string { @@ -2572,9 +4079,24 @@ func (r *DescribeImageLifecyclePersonalResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeImageManifestsRequestParams struct { + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 镜像仓库名称 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + + // 镜像版本 + ImageVersion *string `json:"ImageVersion,omitempty" name:"ImageVersion"` +} + type DescribeImageManifestsRequest struct { *tchttp.BaseRequest - + // 实例ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -2610,19 +4132,21 @@ func (r *DescribeImageManifestsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeImageManifestsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeImageManifestsResponseParams struct { + // 镜像的Manifest信息 + Manifest *string `json:"Manifest,omitempty" name:"Manifest"` - // 镜像的Manifest信息 - Manifest *string `json:"Manifest,omitempty" name:"Manifest"` + // 镜像的配置信息 + Config *string `json:"Config,omitempty" name:"Config"` - // 镜像的配置信息 - Config *string `json:"Config,omitempty" name:"Config"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeImageManifestsResponse struct { + *tchttp.BaseResponse + Response *DescribeImageManifestsResponseParams `json:"Response"` } func (r *DescribeImageManifestsResponse) ToJsonString() string { @@ -2636,9 +4160,24 @@ func (r *DescribeImageManifestsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeImagePersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // 偏移量,默认为0 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回最大数量,默认 20, 最大值 100 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // tag名称,可根据输入搜索 + Tag *string `json:"Tag,omitempty" name:"Tag"` +} + type DescribeImagePersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -2674,16 +4213,18 @@ func (r *DescribeImagePersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeImagePersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeImagePersonalResponseParams struct { + // 镜像tag信息 + Data *TagInfoResp `json:"Data,omitempty" name:"Data"` - // 镜像tag信息 - Data *TagInfoResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeImagePersonalResponse struct { + *tchttp.BaseResponse + Response *DescribeImagePersonalResponseParams `json:"Response"` } func (r *DescribeImagePersonalResponse) ToJsonString() string { @@ -2697,138 +4238,399 @@ func (r *DescribeImagePersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeImagesRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type DescribeImagesRequestParams struct { + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 镜像仓库名称 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + + // 指定镜像版本进行查找,当前为模糊搜索 + ImageVersion *string `json:"ImageVersion,omitempty" name:"ImageVersion"` + + // 每页个数,用于分页,默认20 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 页数,默认值为1 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 指定镜像 Digest 进行查找 + Digest *string `json:"Digest,omitempty" name:"Digest"` +} + +type DescribeImagesRequest struct { + *tchttp.BaseRequest + + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 镜像仓库名称 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + + // 指定镜像版本进行查找,当前为模糊搜索 + ImageVersion *string `json:"ImageVersion,omitempty" name:"ImageVersion"` + + // 每页个数,用于分页,默认20 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 页数,默认值为1 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 指定镜像 Digest 进行查找 + Digest *string `json:"Digest,omitempty" name:"Digest"` +} + +func (r *DescribeImagesRequest) 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 *DescribeImagesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + delete(f, "NamespaceName") + delete(f, "RepositoryName") + delete(f, "ImageVersion") + delete(f, "Limit") + delete(f, "Offset") + delete(f, "Digest") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeImagesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeImagesResponseParams struct { + // 容器镜像信息列表 + ImageInfoList []*TcrImageInfo `json:"ImageInfoList,omitempty" name:"ImageInfoList"` + + // 容器镜像总数 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeImagesResponse struct { + *tchttp.BaseResponse + Response *DescribeImagesResponseParams `json:"Response"` +} + +func (r *DescribeImagesResponse) 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 *DescribeImagesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeImmutableTagRulesRequestParams struct { + // 实例 Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +} + +type DescribeImmutableTagRulesRequest struct { + *tchttp.BaseRequest + + // 实例 Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +} + +func (r *DescribeImmutableTagRulesRequest) 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 *DescribeImmutableTagRulesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RegistryId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeImmutableTagRulesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeImmutableTagRulesResponseParams struct { + // 规则列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Rules []*ImmutableTagRule `json:"Rules,omitempty" name:"Rules"` + + // 未创建规则的命名空间 + // 注意:此字段可能返回 null,表示取不到有效值。 + EmptyNs []*string `json:"EmptyNs,omitempty" name:"EmptyNs"` + + // 规则总量 + Total *int64 `json:"Total,omitempty" name:"Total"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeImmutableTagRulesResponse struct { + *tchttp.BaseResponse + Response *DescribeImmutableTagRulesResponseParams `json:"Response"` +} + +func (r *DescribeImmutableTagRulesResponse) 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 *DescribeImmutableTagRulesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeInstanceAllNamespacesRequestParams struct { + +} + +type DescribeInstanceAllNamespacesRequest struct { + *tchttp.BaseRequest + +} + +func (r *DescribeInstanceAllNamespacesRequest) 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 *DescribeInstanceAllNamespacesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeInstanceAllNamespacesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeInstanceAllNamespacesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeInstanceAllNamespacesResponse struct { + *tchttp.BaseResponse + Response *DescribeInstanceAllNamespacesResponseParams `json:"Response"` +} + +func (r *DescribeInstanceAllNamespacesResponse) 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 *DescribeInstanceAllNamespacesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeInstanceAllRequestParams struct { + // 实例ID列表(为空时, + // 表示获取账号下所有实例) + Registryids []*string `json:"Registryids,omitempty" name:"Registryids"` + + // 偏移量,默认0 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` - // 实例ID - RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + // 最大输出条数,默认20,最大为100 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` - // 命名空间名称 - NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + // 过滤条件 + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` - // 镜像仓库名称 - RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + // 获取所有地域的实例,默认为False + AllRegion *bool `json:"AllRegion,omitempty" name:"AllRegion"` +} - // 指定镜像版本进行查找,当前为模糊搜索 - ImageVersion *string `json:"ImageVersion,omitempty" name:"ImageVersion"` +type DescribeInstanceAllRequest struct { + *tchttp.BaseRequest + + // 实例ID列表(为空时, + // 表示获取账号下所有实例) + Registryids []*string `json:"Registryids,omitempty" name:"Registryids"` - // 每页个数,用于分页,默认20 + // 偏移量,默认0 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 最大输出条数,默认20,最大为100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` - // 页数,默认值为1 - Offset *int64 `json:"Offset,omitempty" name:"Offset"` + // 过滤条件 + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 获取所有地域的实例,默认为False + AllRegion *bool `json:"AllRegion,omitempty" name:"AllRegion"` } -func (r *DescribeImagesRequest) ToJsonString() string { +func (r *DescribeInstanceAllRequest) 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 *DescribeImagesRequest) FromJsonString(s string) error { +func (r *DescribeInstanceAllRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "RegistryId") - delete(f, "NamespaceName") - delete(f, "RepositoryName") - delete(f, "ImageVersion") - delete(f, "Limit") + delete(f, "Registryids") delete(f, "Offset") + delete(f, "Limit") + delete(f, "Filters") + delete(f, "AllRegion") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeImagesRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeInstanceAllRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeImagesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeInstanceAllResponseParams struct { + // 总实例个数 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 容器镜像信息列表 - ImageInfoList []*TcrImageInfo `json:"ImageInfoList,omitempty" name:"ImageInfoList"` + // 实例信息列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Registries []*Registry `json:"Registries,omitempty" name:"Registries"` - // 容器镜像总数 - 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 DescribeInstanceAllResponse struct { + *tchttp.BaseResponse + Response *DescribeInstanceAllResponseParams `json:"Response"` } -func (r *DescribeImagesResponse) ToJsonString() string { +func (r *DescribeInstanceAllResponse) 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 *DescribeImagesResponse) FromJsonString(s string) error { +func (r *DescribeInstanceAllResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeImmutableTagRulesRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type DescribeInstanceCustomizedDomainRequestParams struct { + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 实例 Id + // 分页Limit + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 分页Offset + Offset *int64 `json:"Offset,omitempty" name:"Offset"` +} + +type DescribeInstanceCustomizedDomainRequest struct { + *tchttp.BaseRequest + + // 主实例iD RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 分页Limit + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 分页Offset + Offset *int64 `json:"Offset,omitempty" name:"Offset"` } -func (r *DescribeImmutableTagRulesRequest) ToJsonString() string { +func (r *DescribeInstanceCustomizedDomainRequest) 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 *DescribeImmutableTagRulesRequest) FromJsonString(s string) error { +func (r *DescribeInstanceCustomizedDomainRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "RegistryId") + delete(f, "Limit") + delete(f, "Offset") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeImmutableTagRulesRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeInstanceCustomizedDomainRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeImmutableTagRulesResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 规则列表 +// Predefined struct for user +type DescribeInstanceCustomizedDomainResponseParams struct { + // 域名信息列表 // 注意:此字段可能返回 null,表示取不到有效值。 - Rules []*ImmutableTagRule `json:"Rules,omitempty" name:"Rules"` + DomainInfoList []*CustomizedDomainInfo `json:"DomainInfoList,omitempty" name:"DomainInfoList"` - // 未创建规则的命名空间 - // 注意:此字段可能返回 null,表示取不到有效值。 - EmptyNs []*string `json:"EmptyNs,omitempty" name:"EmptyNs"` + // 总个数 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 规则总量 - 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 DescribeInstanceCustomizedDomainResponse struct { + *tchttp.BaseResponse + Response *DescribeInstanceCustomizedDomainResponseParams `json:"Response"` } -func (r *DescribeImmutableTagRulesResponse) ToJsonString() string { +func (r *DescribeInstanceCustomizedDomainResponse) 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 *DescribeImmutableTagRulesResponse) FromJsonString(s string) error { +func (r *DescribeInstanceCustomizedDomainResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeInstanceStatusRequestParams struct { + // 实例ID的数组 + RegistryIds []*string `json:"RegistryIds,omitempty" name:"RegistryIds"` +} + type DescribeInstanceStatusRequest struct { *tchttp.BaseRequest - + // 实例ID的数组 RegistryIds []*string `json:"RegistryIds,omitempty" name:"RegistryIds"` } @@ -2852,17 +4654,19 @@ func (r *DescribeInstanceStatusRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeInstanceStatusResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 实例的状态列表 +// Predefined struct for user +type DescribeInstanceStatusResponseParams struct { + // 实例的状态列表 // 注意:此字段可能返回 null,表示取不到有效值。 - RegistryStatusSet []*RegistryStatus `json:"RegistryStatusSet,omitempty" name:"RegistryStatusSet"` + RegistryStatusSet []*RegistryStatus `json:"RegistryStatusSet,omitempty" name:"RegistryStatusSet"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeInstanceStatusResponse struct { + *tchttp.BaseResponse + Response *DescribeInstanceStatusResponseParams `json:"Response"` } func (r *DescribeInstanceStatusResponse) ToJsonString() string { @@ -2876,9 +4680,21 @@ func (r *DescribeInstanceStatusResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeInstanceTokenRequestParams struct { + // 实例 ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 分页单页数量 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 分页偏移量 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` +} + type DescribeInstanceTokenRequest struct { *tchttp.BaseRequest - + // 实例 ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -2910,19 +4726,21 @@ func (r *DescribeInstanceTokenRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeInstanceTokenResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeInstanceTokenResponseParams struct { + // 长期访问凭证总数 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 长期访问凭证总数 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 长期访问凭证列表 + Tokens []*TcrInstanceToken `json:"Tokens,omitempty" name:"Tokens"` - // 长期访问凭证列表 - Tokens []*TcrInstanceToken `json:"Tokens,omitempty" name:"Tokens"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeInstanceTokenResponse struct { + *tchttp.BaseResponse + Response *DescribeInstanceTokenResponseParams `json:"Response"` } func (r *DescribeInstanceTokenResponse) ToJsonString() string { @@ -2936,9 +4754,28 @@ func (r *DescribeInstanceTokenResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeInstancesRequestParams struct { + // 实例ID列表(为空时, + // 表示获取账号下所有实例) + Registryids []*string `json:"Registryids,omitempty" name:"Registryids"` + + // 偏移量,默认0 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 最大输出条数,默认20,最大为100 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件 + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 获取所有地域的实例,默认为False + AllRegion *bool `json:"AllRegion,omitempty" name:"AllRegion"` +} + type DescribeInstancesRequest struct { *tchttp.BaseRequest - + // 实例ID列表(为空时, // 表示获取账号下所有实例) Registryids []*string `json:"Registryids,omitempty" name:"Registryids"` @@ -2979,20 +4816,22 @@ func (r *DescribeInstancesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeInstancesResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 总实例个数 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` +// Predefined struct for user +type DescribeInstancesResponseParams struct { + // 总实例个数 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 实例信息列表 + // 实例信息列表 // 注意:此字段可能返回 null,表示取不到有效值。 - Registries []*Registry `json:"Registries,omitempty" name:"Registries"` + Registries []*Registry `json:"Registries,omitempty" name:"Registries"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeInstancesResponse struct { + *tchttp.BaseResponse + Response *DescribeInstancesResponseParams `json:"Response"` } func (r *DescribeInstancesResponse) ToJsonString() string { @@ -3006,9 +4845,15 @@ func (r *DescribeInstancesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeInternalEndpointDnsStatusRequestParams struct { + // vpc列表 + VpcSet []*VpcAndDomainInfo `json:"VpcSet,omitempty" name:"VpcSet"` +} + type DescribeInternalEndpointDnsStatusRequest struct { *tchttp.BaseRequest - + // vpc列表 VpcSet []*VpcAndDomainInfo `json:"VpcSet,omitempty" name:"VpcSet"` } @@ -3032,17 +4877,19 @@ func (r *DescribeInternalEndpointDnsStatusRequest) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } -type DescribeInternalEndpointDnsStatusResponse struct { - *tchttp.BaseResponse - Response *struct { - - // vpc私有域名解析状态列表 +// Predefined struct for user +type DescribeInternalEndpointDnsStatusResponseParams struct { + // vpc私有域名解析状态列表 // 注意:此字段可能返回 null,表示取不到有效值。 - VpcSet []*VpcPrivateDomainStatus `json:"VpcSet,omitempty" name:"VpcSet"` + VpcSet []*VpcPrivateDomainStatus `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 DescribeInternalEndpointDnsStatusResponse struct { + *tchttp.BaseResponse + Response *DescribeInternalEndpointDnsStatusResponseParams `json:"Response"` } func (r *DescribeInternalEndpointDnsStatusResponse) ToJsonString() string { @@ -3056,9 +4903,15 @@ func (r *DescribeInternalEndpointDnsStatusResponse) FromJsonString(s string) err return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeInternalEndpointsRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +} + type DescribeInternalEndpointsRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` } @@ -3082,20 +4935,22 @@ func (r *DescribeInternalEndpointsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeInternalEndpointsResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 内网接入信息的列表 +// Predefined struct for user +type DescribeInternalEndpointsResponseParams struct { + // 内网接入信息的列表 // 注意:此字段可能返回 null,表示取不到有效值。 - AccessVpcSet []*AccessVpc `json:"AccessVpcSet,omitempty" name:"AccessVpcSet"` + AccessVpcSet []*AccessVpc `json:"AccessVpcSet,omitempty" name:"AccessVpcSet"` + + // 内网接入总数 + 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 DescribeInternalEndpointsResponse struct { + *tchttp.BaseResponse + Response *DescribeInternalEndpointsResponseParams `json:"Response"` } func (r *DescribeInternalEndpointsResponse) ToJsonString() string { @@ -3109,130 +4964,248 @@ func (r *DescribeInternalEndpointsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeNamespacePersonalRequestParams struct { + // 命名空间,支持模糊查询 + Namespace *string `json:"Namespace,omitempty" name:"Namespace"` + + // 单页数量 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 偏移量 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` +} + type DescribeNamespacePersonalRequest struct { *tchttp.BaseRequest - + // 命名空间,支持模糊查询 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` // 单页数量 Limit *int64 `json:"Limit,omitempty" name:"Limit"` - // 偏移量 - Offset *int64 `json:"Offset,omitempty" name:"Offset"` + // 偏移量 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` +} + +func (r *DescribeNamespacePersonalRequest) 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 *DescribeNamespacePersonalRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Namespace") + delete(f, "Limit") + delete(f, "Offset") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeNamespacePersonalRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeNamespacePersonalResponseParams struct { + // 用户命名空间返回信息 + Data *NamespaceInfoResp `json:"Data,omitempty" name:"Data"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeNamespacePersonalResponse struct { + *tchttp.BaseResponse + Response *DescribeNamespacePersonalResponseParams `json:"Response"` +} + +func (r *DescribeNamespacePersonalResponse) 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 *DescribeNamespacePersonalResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeNamespacesRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 指定命名空间,不填写默认查询所有命名空间 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 每页个数 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 页面偏移(第几页) + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 列出所有命名空间 + All *bool `json:"All,omitempty" name:"All"` + + // 过滤条件 + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 仅查询启用了 KMS 镜像签名的空间 + KmsSignPolicy *bool `json:"KmsSignPolicy,omitempty" name:"KmsSignPolicy"` +} + +type DescribeNamespacesRequest struct { + *tchttp.BaseRequest + + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 指定命名空间,不填写默认查询所有命名空间 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 每页个数 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 页面偏移(第几页) + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 列出所有命名空间 + All *bool `json:"All,omitempty" name:"All"` + + // 过滤条件 + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 仅查询启用了 KMS 镜像签名的空间 + KmsSignPolicy *bool `json:"KmsSignPolicy,omitempty" name:"KmsSignPolicy"` } -func (r *DescribeNamespacePersonalRequest) ToJsonString() string { +func (r *DescribeNamespacesRequest) 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 *DescribeNamespacePersonalRequest) FromJsonString(s string) error { +func (r *DescribeNamespacesRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "Namespace") + delete(f, "RegistryId") + delete(f, "NamespaceName") delete(f, "Limit") delete(f, "Offset") + delete(f, "All") + delete(f, "Filters") + delete(f, "KmsSignPolicy") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeNamespacePersonalRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeNamespacesRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeNamespacePersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeNamespacesResponseParams struct { + // 命名空间列表信息 + NamespaceList []*TcrNamespaceInfo `json:"NamespaceList,omitempty" name:"NamespaceList"` + + // 总个数 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 用户命名空间返回信息 - Data *NamespaceInfoResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeNamespacesResponse struct { + *tchttp.BaseResponse + Response *DescribeNamespacesResponseParams `json:"Response"` } -func (r *DescribeNamespacePersonalResponse) ToJsonString() string { +func (r *DescribeNamespacesResponse) 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 *DescribeNamespacePersonalResponse) FromJsonString(s string) error { +func (r *DescribeNamespacesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeNamespacesRequest struct { - *tchttp.BaseRequest - - // 实例Id - RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - - // 指定命名空间,不填写默认查询所有命名空间 - NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` +// Predefined struct for user +type DescribeRegionsRequestParams struct { - // 每页个数 - Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} - // 页偏移 - Offset *int64 `json:"Offset,omitempty" name:"Offset"` +type DescribeRegionsRequest struct { + *tchttp.BaseRequest + } -func (r *DescribeNamespacesRequest) ToJsonString() string { +func (r *DescribeRegionsRequest) 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 *DescribeNamespacesRequest) FromJsonString(s string) error { +func (r *DescribeRegionsRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "RegistryId") - delete(f, "NamespaceName") - delete(f, "Limit") - delete(f, "Offset") + if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeNamespacesRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRegionsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeNamespacesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRegionsResponseParams struct { + // 返回的总数 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 命名空间列表信息 - NamespaceList []*TcrNamespaceInfo `json:"NamespaceList,omitempty" name:"NamespaceList"` + // 地域信息列表 + Regions []*Region `json:"Regions,omitempty" name:"Regions"` - // 总个数 - 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 DescribeRegionsResponse struct { + *tchttp.BaseResponse + Response *DescribeRegionsResponseParams `json:"Response"` } -func (r *DescribeNamespacesResponse) ToJsonString() string { +func (r *DescribeRegionsResponse) 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 *DescribeNamespacesResponse) FromJsonString(s string) error { +func (r *DescribeRegionsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeReplicationInstanceCreateTasksRequestParams struct { + // 同步实例Id,见实例返回列表中的同步实例ID + ReplicationRegistryId *string `json:"ReplicationRegistryId,omitempty" name:"ReplicationRegistryId"` + + // 同步实例的地域ID,见实例返回列表中地域ID + ReplicationRegionId *uint64 `json:"ReplicationRegionId,omitempty" name:"ReplicationRegionId"` +} + type DescribeReplicationInstanceCreateTasksRequest struct { *tchttp.BaseRequest - + // 同步实例Id,见实例返回列表中的同步实例ID ReplicationRegistryId *string `json:"ReplicationRegistryId,omitempty" name:"ReplicationRegistryId"` @@ -3260,19 +5233,21 @@ func (r *DescribeReplicationInstanceCreateTasksRequest) FromJsonString(s string) return json.Unmarshal([]byte(s), &r) } -type DescribeReplicationInstanceCreateTasksResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeReplicationInstanceCreateTasksResponseParams struct { + // 任务详情 + TaskDetail []*TaskDetail `json:"TaskDetail,omitempty" name:"TaskDetail"` - // 任务详情 - TaskDetail []*TaskDetail `json:"TaskDetail,omitempty" name:"TaskDetail"` + // 整体任务状态 + Status *string `json:"Status,omitempty" name:"Status"` - // 整体任务状态 - Status *string `json:"Status,omitempty" name:"Status"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeReplicationInstanceCreateTasksResponse struct { + *tchttp.BaseResponse + Response *DescribeReplicationInstanceCreateTasksResponseParams `json:"Response"` } func (r *DescribeReplicationInstanceCreateTasksResponse) ToJsonString() string { @@ -3286,9 +5261,30 @@ func (r *DescribeReplicationInstanceCreateTasksResponse) FromJsonString(s string return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeReplicationInstanceSyncStatusRequestParams struct { + // 主实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 复制实例Id + ReplicationRegistryId *string `json:"ReplicationRegistryId,omitempty" name:"ReplicationRegistryId"` + + // 复制实例的地域Id + ReplicationRegionId *uint64 `json:"ReplicationRegionId,omitempty" name:"ReplicationRegionId"` + + // 是否显示同步日志 + ShowReplicationLog *bool `json:"ShowReplicationLog,omitempty" name:"ShowReplicationLog"` + + // 日志页号, 默认0 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 最大输出条数,默认5,最大为20 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeReplicationInstanceSyncStatusRequest struct { *tchttp.BaseRequest - + // 主实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -3332,23 +5328,25 @@ func (r *DescribeReplicationInstanceSyncStatusRequest) FromJsonString(s string) return json.Unmarshal([]byte(s), &r) } -type DescribeReplicationInstanceSyncStatusResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 同步状态 - ReplicationStatus *string `json:"ReplicationStatus,omitempty" name:"ReplicationStatus"` +// Predefined struct for user +type DescribeReplicationInstanceSyncStatusResponseParams struct { + // 同步状态 + ReplicationStatus *string `json:"ReplicationStatus,omitempty" name:"ReplicationStatus"` - // 同步完成时间 - ReplicationTime *string `json:"ReplicationTime,omitempty" name:"ReplicationTime"` + // 同步完成时间 + ReplicationTime *string `json:"ReplicationTime,omitempty" name:"ReplicationTime"` - // 同步日志 + // 同步日志 // 注意:此字段可能返回 null,表示取不到有效值。 - ReplicationLog *ReplicationLog `json:"ReplicationLog,omitempty" name:"ReplicationLog"` + ReplicationLog *ReplicationLog `json:"ReplicationLog,omitempty" name:"ReplicationLog"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeReplicationInstanceSyncStatusResponse struct { + *tchttp.BaseResponse + Response *DescribeReplicationInstanceSyncStatusResponseParams `json:"Response"` } func (r *DescribeReplicationInstanceSyncStatusResponse) ToJsonString() string { @@ -3362,9 +5360,21 @@ func (r *DescribeReplicationInstanceSyncStatusResponse) FromJsonString(s string) return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeReplicationInstancesRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 偏移量,默认0 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 最大输出条数,默认20,最大为100 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeReplicationInstancesRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -3396,20 +5406,22 @@ func (r *DescribeReplicationInstancesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeReplicationInstancesResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 总实例个数 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` +// Predefined struct for user +type DescribeReplicationInstancesResponseParams struct { + // 总实例个数 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 同步实例列表 + // 同步实例列表 // 注意:此字段可能返回 null,表示取不到有效值。 - ReplicationRegistries []*ReplicationRegistry `json:"ReplicationRegistries,omitempty" name:"ReplicationRegistries"` + ReplicationRegistries []*ReplicationRegistry `json:"ReplicationRegistries,omitempty" name:"ReplicationRegistries"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeReplicationInstancesResponse struct { + *tchttp.BaseResponse + Response *DescribeReplicationInstancesResponseParams `json:"Response"` } func (r *DescribeReplicationInstancesResponse) ToJsonString() string { @@ -3423,9 +5435,30 @@ func (r *DescribeReplicationInstancesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRepositoriesRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 指定命名空间,不填写默认为查询所有命名空间下镜像仓库 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 指定镜像仓库,不填写默认查询指定命名空间下所有镜像仓库 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + + // 页数,用于分页 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 每页个数,用于分页 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 基于字段排序,支持的值有-creation_time,-name, -update_time + SortBy *string `json:"SortBy,omitempty" name:"SortBy"` +} + type DescribeRepositoriesRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -3469,19 +5502,21 @@ func (r *DescribeRepositoriesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeRepositoriesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRepositoriesResponseParams struct { + // 仓库信息列表 + RepositoryList []*TcrRepositoryInfo `json:"RepositoryList,omitempty" name:"RepositoryList"` - // 仓库信息列表 - RepositoryList []*TcrRepositoryInfo `json:"RepositoryList,omitempty" name:"RepositoryList"` + // 总个数 + 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 DescribeRepositoriesResponse struct { + *tchttp.BaseResponse + Response *DescribeRepositoriesResponseParams `json:"Response"` } func (r *DescribeRepositoriesResponse) ToJsonString() string { @@ -3495,9 +5530,27 @@ func (r *DescribeRepositoriesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRepositoryFilterPersonalRequestParams struct { + // 搜索镜像名 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // 偏移量,默认为0 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回最大数量,默认 20,最大100 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 筛选条件:1表示public,0表示private + Public *int64 `json:"Public,omitempty" name:"Public"` + + // 命名空间 + Namespace *string `json:"Namespace,omitempty" name:"Namespace"` +} + type DescribeRepositoryFilterPersonalRequest struct { *tchttp.BaseRequest - + // 搜索镜像名 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -3537,16 +5590,18 @@ func (r *DescribeRepositoryFilterPersonalRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } -type DescribeRepositoryFilterPersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRepositoryFilterPersonalResponseParams struct { + // 仓库信息 + Data *SearchUserRepositoryResp `json:"Data,omitempty" name:"Data"` - // 仓库信息 - Data *SearchUserRepositoryResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeRepositoryFilterPersonalResponse struct { + *tchttp.BaseResponse + Response *DescribeRepositoryFilterPersonalResponseParams `json:"Response"` } func (r *DescribeRepositoryFilterPersonalResponse) ToJsonString() string { @@ -3560,9 +5615,21 @@ func (r *DescribeRepositoryFilterPersonalResponse) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRepositoryOwnerPersonalRequestParams struct { + // 偏移量,默认为0 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回最大数量,默认 20, 最大值 100 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` +} + type DescribeRepositoryOwnerPersonalRequest struct { *tchttp.BaseRequest - + // 偏移量,默认为0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` @@ -3594,16 +5661,18 @@ func (r *DescribeRepositoryOwnerPersonalRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } -type DescribeRepositoryOwnerPersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRepositoryOwnerPersonalResponseParams struct { + // 仓库信息 + Data *RepoInfoResp `json:"Data,omitempty" name:"Data"` - // 仓库信息 - Data *RepoInfoResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeRepositoryOwnerPersonalResponse struct { + *tchttp.BaseResponse + Response *DescribeRepositoryOwnerPersonalResponseParams `json:"Response"` } func (r *DescribeRepositoryOwnerPersonalResponse) ToJsonString() string { @@ -3617,9 +5686,15 @@ func (r *DescribeRepositoryOwnerPersonalResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRepositoryPersonalRequestParams struct { + // 仓库名字 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` +} + type DescribeRepositoryPersonalRequest struct { *tchttp.BaseRequest - + // 仓库名字 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` } @@ -3643,16 +5718,18 @@ func (r *DescribeRepositoryPersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeRepositoryPersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRepositoryPersonalResponseParams struct { + // 仓库信息 + Data *RepositoryInfoResp `json:"Data,omitempty" name:"Data"` - // 仓库信息 - Data *RepositoryInfoResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeRepositoryPersonalResponse struct { + *tchttp.BaseResponse + Response *DescribeRepositoryPersonalResponseParams `json:"Response"` } func (r *DescribeRepositoryPersonalResponse) ToJsonString() string { @@ -3666,9 +5743,15 @@ func (r *DescribeRepositoryPersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeSecurityPoliciesRequestParams struct { + // 实例的Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` +} + type DescribeSecurityPoliciesRequest struct { *tchttp.BaseRequest - + // 实例的Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` } @@ -3692,17 +5775,19 @@ func (r *DescribeSecurityPoliciesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeSecurityPoliciesResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 实例安全策略组 +// Predefined struct for user +type DescribeSecurityPoliciesResponseParams struct { + // 实例安全策略组 // 注意:此字段可能返回 null,表示取不到有效值。 - SecurityPolicySet []*SecurityPolicy `json:"SecurityPolicySet,omitempty" name:"SecurityPolicySet"` + SecurityPolicySet []*SecurityPolicy `json:"SecurityPolicySet,omitempty" name:"SecurityPolicySet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeSecurityPoliciesResponse struct { + *tchttp.BaseResponse + Response *DescribeSecurityPoliciesResponseParams `json:"Response"` } func (r *DescribeSecurityPoliciesResponse) ToJsonString() string { @@ -3716,9 +5801,24 @@ func (r *DescribeSecurityPoliciesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeTagRetentionExecutionRequestParams struct { + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 规则Id + RetentionId *int64 `json:"RetentionId,omitempty" name:"RetentionId"` + + // 分页PageSize + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 分页Page + Offset *int64 `json:"Offset,omitempty" name:"Offset"` +} + type DescribeTagRetentionExecutionRequest struct { *tchttp.BaseRequest - + // 主实例iD RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -3754,19 +5854,21 @@ func (r *DescribeTagRetentionExecutionRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeTagRetentionExecutionResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeTagRetentionExecutionResponseParams struct { + // 版本保留执行记录列表 + RetentionExecutionList []*RetentionExecution `json:"RetentionExecutionList,omitempty" name:"RetentionExecutionList"` - // 版本保留执行记录列表 - RetentionExecutionList []*RetentionExecution `json:"RetentionExecutionList,omitempty" name:"RetentionExecutionList"` + // 版本保留执行记录总数 + 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 DescribeTagRetentionExecutionResponse struct { + *tchttp.BaseResponse + Response *DescribeTagRetentionExecutionResponseParams `json:"Response"` } func (r *DescribeTagRetentionExecutionResponse) ToJsonString() string { @@ -3780,9 +5882,27 @@ func (r *DescribeTagRetentionExecutionResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeTagRetentionExecutionTaskRequestParams struct { + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 规则Id + RetentionId *int64 `json:"RetentionId,omitempty" name:"RetentionId"` + + // 规则执行Id + ExecutionId *int64 `json:"ExecutionId,omitempty" name:"ExecutionId"` + + // 分页Page + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 分页PageSize + Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeTagRetentionExecutionTaskRequest struct { *tchttp.BaseRequest - + // 主实例iD RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -3822,19 +5942,21 @@ func (r *DescribeTagRetentionExecutionTaskRequest) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } -type DescribeTagRetentionExecutionTaskResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeTagRetentionExecutionTaskResponseParams struct { + // 版本保留执行任务列表 + RetentionTaskList []*RetentionTask `json:"RetentionTaskList,omitempty" name:"RetentionTaskList"` - // 版本保留执行任务列表 - RetentionTaskList []*RetentionTask `json:"RetentionTaskList,omitempty" name:"RetentionTaskList"` + // 版本保留执行任务总数 + 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 DescribeTagRetentionExecutionTaskResponse struct { + *tchttp.BaseResponse + Response *DescribeTagRetentionExecutionTaskResponseParams `json:"Response"` } func (r *DescribeTagRetentionExecutionTaskResponse) ToJsonString() string { @@ -3848,9 +5970,24 @@ func (r *DescribeTagRetentionExecutionTaskResponse) FromJsonString(s string) err return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeTagRetentionRulesRequestParams struct { + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间的名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 分页PageSize + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 分页Page + Offset *int64 `json:"Offset,omitempty" name:"Offset"` +} + type DescribeTagRetentionRulesRequest struct { *tchttp.BaseRequest - + // 主实例iD RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -3886,19 +6023,21 @@ func (r *DescribeTagRetentionRulesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeTagRetentionRulesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeTagRetentionRulesResponseParams struct { + // 版本保留策略列表 + RetentionPolicyList []*RetentionPolicy `json:"RetentionPolicyList,omitempty" name:"RetentionPolicyList"` - // 版本保留策略列表 - RetentionPolicyList []*RetentionPolicy `json:"RetentionPolicyList,omitempty" name:"RetentionPolicyList"` + // 版本保留策略总数 + 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 DescribeTagRetentionRulesResponse struct { + *tchttp.BaseResponse + Response *DescribeTagRetentionRulesResponseParams `json:"Response"` } func (r *DescribeTagRetentionRulesResponse) ToJsonString() string { @@ -3912,8 +6051,14 @@ func (r *DescribeTagRetentionRulesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeUserQuotaPersonalRequestParams struct { + +} + type DescribeUserQuotaPersonalRequest struct { *tchttp.BaseRequest + } func (r *DescribeUserQuotaPersonalRequest) ToJsonString() string { @@ -3928,22 +6073,25 @@ func (r *DescribeUserQuotaPersonalRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeUserQuotaPersonalRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeUserQuotaPersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeUserQuotaPersonalResponseParams struct { + // 配额返回信息 + Data *RespLimit `json:"Data,omitempty" name:"Data"` - // 配额返回信息 - Data *RespLimit `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeUserQuotaPersonalResponse struct { + *tchttp.BaseResponse + Response *DescribeUserQuotaPersonalResponseParams `json:"Response"` } func (r *DescribeUserQuotaPersonalResponse) ToJsonString() string { @@ -3957,9 +6105,27 @@ func (r *DescribeUserQuotaPersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeWebhookTriggerLogRequestParams struct { + // 实例 Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间 + Namespace *string `json:"Namespace,omitempty" name:"Namespace"` + + // 触发器 Id + Id *int64 `json:"Id,omitempty" name:"Id"` + + // 分页单页数量 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 分页偏移量 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` +} + type DescribeWebhookTriggerLogRequest struct { *tchttp.BaseRequest - + // 实例 Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -3999,19 +6165,21 @@ func (r *DescribeWebhookTriggerLogRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeWebhookTriggerLogResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeWebhookTriggerLogResponseParams struct { + // 总数 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 总数 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 日志列表 + Logs []*WebhookTriggerLog `json:"Logs,omitempty" name:"Logs"` - // 日志列表 - Logs []*WebhookTriggerLog `json:"Logs,omitempty" name:"Logs"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeWebhookTriggerLogResponse struct { + *tchttp.BaseResponse + Response *DescribeWebhookTriggerLogResponseParams `json:"Response"` } func (r *DescribeWebhookTriggerLogResponse) ToJsonString() string { @@ -4025,9 +6193,24 @@ func (r *DescribeWebhookTriggerLogResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeWebhookTriggerRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 分页单页数量 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 分页偏移量 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 命名空间 + Namespace *string `json:"Namespace,omitempty" name:"Namespace"` +} + type DescribeWebhookTriggerRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -4063,19 +6246,21 @@ func (r *DescribeWebhookTriggerRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeWebhookTriggerResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeWebhookTriggerResponseParams struct { + // 触发器总数 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 触发器总数 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 触发器列表 + Triggers []*WebhookTrigger `json:"Triggers,omitempty" name:"Triggers"` - // 触发器列表 - Triggers []*WebhookTrigger `json:"Triggers,omitempty" name:"Triggers"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeWebhookTriggerResponse struct { + *tchttp.BaseResponse + Response *DescribeWebhookTriggerResponseParams `json:"Response"` } func (r *DescribeWebhookTriggerResponse) ToJsonString() string { @@ -4089,9 +6274,24 @@ func (r *DescribeWebhookTriggerResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DownloadHelmChartRequestParams struct { + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // Helm chart名称 + ChartName *string `json:"ChartName,omitempty" name:"ChartName"` + + // Helm chart版本 + ChartVersion *string `json:"ChartVersion,omitempty" name:"ChartVersion"` +} + type DownloadHelmChartRequest struct { *tchttp.BaseRequest - + // 实例ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -4127,37 +6327,39 @@ func (r *DownloadHelmChartRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DownloadHelmChartResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DownloadHelmChartResponseParams struct { + // 临时token + TmpToken *string `json:"TmpToken,omitempty" name:"TmpToken"` - // 临时token - TmpToken *string `json:"TmpToken,omitempty" name:"TmpToken"` + // 临时的secretId + TmpSecretId *string `json:"TmpSecretId,omitempty" name:"TmpSecretId"` - // 临时的secretId - TmpSecretId *string `json:"TmpSecretId,omitempty" name:"TmpSecretId"` + // 临时的secretKey + TmpSecretKey *string `json:"TmpSecretKey,omitempty" name:"TmpSecretKey"` - // 临时的secretKey - TmpSecretKey *string `json:"TmpSecretKey,omitempty" name:"TmpSecretKey"` + // 存储桶信息 + Bucket *string `json:"Bucket,omitempty" name:"Bucket"` - // 存储桶信息 - Bucket *string `json:"Bucket,omitempty" name:"Bucket"` + // 实例ID + Region *string `json:"Region,omitempty" name:"Region"` - // 实例ID - Region *string `json:"Region,omitempty" name:"Region"` + // chart信息 + Path *string `json:"Path,omitempty" name:"Path"` - // chart信息 - Path *string `json:"Path,omitempty" name:"Path"` + // 开始时间时间戳 + StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"` - // 开始时间时间戳 - StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"` + // token过期时间时间戳 + ExpiredTime *int64 `json:"ExpiredTime,omitempty" name:"ExpiredTime"` - // token过期时间时间戳 - ExpiredTime *int64 `json:"ExpiredTime,omitempty" name:"ExpiredTime"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DownloadHelmChartResponse struct { + *tchttp.BaseResponse + Response *DownloadHelmChartResponseParams `json:"Response"` } func (r *DownloadHelmChartResponse) ToJsonString() string { @@ -4172,14 +6374,22 @@ func (r *DownloadHelmChartResponse) FromJsonString(s string) error { } type DupImageTagResp struct { - // 镜像Digest值 Digest *string `json:"Digest,omitempty" name:"Digest"` } +// Predefined struct for user +type DuplicateImagePersonalRequestParams struct { + // 源镜像名称,不包含domain。例如: tencentyun/foo:v1 + SrcImage *string `json:"SrcImage,omitempty" name:"SrcImage"` + + // 目的镜像名称,不包含domain。例如: tencentyun/foo:latest + DestImage *string `json:"DestImage,omitempty" name:"DestImage"` +} + type DuplicateImagePersonalRequest struct { *tchttp.BaseRequest - + // 源镜像名称,不包含domain。例如: tencentyun/foo:v1 SrcImage *string `json:"SrcImage,omitempty" name:"SrcImage"` @@ -4207,16 +6417,18 @@ func (r *DuplicateImagePersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DuplicateImagePersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DuplicateImagePersonalResponseParams struct { + // 复制镜像返回值 + Data *DupImageTagResp `json:"Data,omitempty" name:"Data"` - // 复制镜像返回值 - Data *DupImageTagResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DuplicateImagePersonalResponse struct { + *tchttp.BaseResponse + Response *DuplicateImagePersonalResponseParams `json:"Response"` } func (r *DuplicateImagePersonalResponse) ToJsonString() string { @@ -4231,7 +6443,6 @@ func (r *DuplicateImagePersonalResponse) FromJsonString(s string) error { } type FavorResp struct { - // 收藏仓库的总数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` @@ -4241,7 +6452,6 @@ type FavorResp struct { } type Favors struct { - // 仓库名字 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -4280,7 +6490,6 @@ type Favors struct { } type Filter struct { - // 属性名称, 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。 Name *string `json:"Name,omitempty" name:"Name"` @@ -4288,8 +6497,24 @@ type Filter struct { Values []*string `json:"Values,omitempty" name:"Values"` } -type Header struct { +type GCJobInfo struct { + // 作业 ID + ID *int64 `json:"ID,omitempty" name:"ID"` + + // 作业状态 + JobStatus *string `json:"JobStatus,omitempty" name:"JobStatus"` + + // 创建时间 + CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"` + + // 更新时间 + UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` + // 调度信息 + Schedule *Schedule `json:"Schedule,omitempty" name:"Schedule"` +} + +type Header struct { // Header Key Key *string `json:"Key,omitempty" name:"Key"` @@ -4298,7 +6523,6 @@ type Header struct { } type ImmutableTagRule struct { - // 仓库匹配规则 RepositoryPattern *string `json:"RepositoryPattern,omitempty" name:"RepositoryPattern"` @@ -4321,8 +6545,15 @@ type ImmutableTagRule struct { NsName *string `json:"NsName,omitempty" name:"NsName"` } -type Limit struct { +type KeyValueString struct { + // 键 + Key *string `json:"Key,omitempty" name:"Key"` + + // 值 + Value *string `json:"Value,omitempty" name:"Value"` +} +type Limit struct { // 用户名 Username *string `json:"Username,omitempty" name:"Username"` @@ -4333,9 +6564,18 @@ type Limit struct { Value *int64 `json:"Value,omitempty" name:"Value"` } +// Predefined struct for user +type ManageExternalEndpointRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 操作(Create/Delete) + Operation *string `json:"Operation,omitempty" name:"Operation"` +} + type ManageExternalEndpointRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -4363,16 +6603,18 @@ func (r *ManageExternalEndpointRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ManageExternalEndpointResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type ManageExternalEndpointResponseParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 实例Id - RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ManageExternalEndpointResponse struct { + *tchttp.BaseResponse + Response *ManageExternalEndpointResponseParams `json:"Response"` } func (r *ManageExternalEndpointResponse) ToJsonString() string { @@ -4386,9 +6628,18 @@ func (r *ManageExternalEndpointResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ManageImageLifecycleGlobalPersonalRequestParams struct { + // global_keep_last_days:全局保留最近几天的数据;global_keep_last_nums:全局保留最近多少个 + Type *string `json:"Type,omitempty" name:"Type"` + + // 策略值 + Val *int64 `json:"Val,omitempty" name:"Val"` +} + type ManageImageLifecycleGlobalPersonalRequest struct { *tchttp.BaseRequest - + // global_keep_last_days:全局保留最近几天的数据;global_keep_last_nums:全局保留最近多少个 Type *string `json:"Type,omitempty" name:"Type"` @@ -4416,13 +6667,15 @@ func (r *ManageImageLifecycleGlobalPersonalRequest) FromJsonString(s string) err return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ManageImageLifecycleGlobalPersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ManageImageLifecycleGlobalPersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ManageImageLifecycleGlobalPersonalResponseParams `json:"Response"` } func (r *ManageImageLifecycleGlobalPersonalResponse) ToJsonString() string { @@ -4436,9 +6689,30 @@ func (r *ManageImageLifecycleGlobalPersonalResponse) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ManageInternalEndpointRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // Create/Delete + Operation *string `json:"Operation,omitempty" name:"Operation"` + + // 需要接入的用户vpcid + VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + + // 需要接入的用户子网id + SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + + // 请求的地域ID,用于实例复制地域 + RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"` + + // 请求的地域名称,用于实例复制地域 + RegionName *string `json:"RegionName,omitempty" name:"RegionName"` +} + type ManageInternalEndpointRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -4482,16 +6756,18 @@ func (r *ManageInternalEndpointRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ManageInternalEndpointResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type ManageInternalEndpointResponseParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 实例Id - RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ManageInternalEndpointResponse struct { + *tchttp.BaseResponse + Response *ManageInternalEndpointResponseParams `json:"Response"` } func (r *ManageInternalEndpointResponse) ToJsonString() string { @@ -4505,9 +6781,30 @@ func (r *ManageInternalEndpointResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ManageReplicationRequestParams struct { + // 复制源实例ID + SourceRegistryId *string `json:"SourceRegistryId,omitempty" name:"SourceRegistryId"` + + // 复制目标实例ID + DestinationRegistryId *string `json:"DestinationRegistryId,omitempty" name:"DestinationRegistryId"` + + // 同步规则 + Rule *ReplicationRule `json:"Rule,omitempty" name:"Rule"` + + // 规则描述 + Description *string `json:"Description,omitempty" name:"Description"` + + // 目标实例的地域ID,如广州是1 + DestinationRegionId *uint64 `json:"DestinationRegionId,omitempty" name:"DestinationRegionId"` + + // 开启跨主账号实例同步配置项 + PeerReplicationOption *PeerReplicationOption `json:"PeerReplicationOption,omitempty" name:"PeerReplicationOption"` +} + type ManageReplicationRequest struct { *tchttp.BaseRequest - + // 复制源实例ID SourceRegistryId *string `json:"SourceRegistryId,omitempty" name:"SourceRegistryId"` @@ -4551,13 +6848,15 @@ func (r *ManageReplicationRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ManageReplicationResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ManageReplicationResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ManageReplicationResponseParams `json:"Response"` } func (r *ManageReplicationResponse) ToJsonString() string { @@ -4571,9 +6870,45 @@ func (r *ManageReplicationResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyApplicationTriggerPersonalRequestParams struct { + // 触发器关联的镜像仓库,library/test格式 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // 触发器名称,必填参数 + TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"` + + // 触发方式,"all"全部触发,"taglist"指定tag触发,"regex"正则触发 + InvokeMethod *string `json:"InvokeMethod,omitempty" name:"InvokeMethod"` + + // 触发方式对应的表达式 + InvokeExpr *string `json:"InvokeExpr,omitempty" name:"InvokeExpr"` + + // 应用所在TKE集群ID + ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` + + // 应用所在TKE集群命名空间 + Namespace *string `json:"Namespace,omitempty" name:"Namespace"` + + // 应用所在TKE集群工作负载类型,支持Deployment、StatefulSet、DaemonSet、CronJob、Job。 + WorkloadType *string `json:"WorkloadType,omitempty" name:"WorkloadType"` + + // 应用所在TKE集群工作负载名称 + WorkloadName *string `json:"WorkloadName,omitempty" name:"WorkloadName"` + + // 应用所在TKE集群工作负载下容器名称 + ContainerName *string `json:"ContainerName,omitempty" name:"ContainerName"` + + // 应用所在TKE集群地域数字ID,如1(广州)、16(成都) + ClusterRegion *int64 `json:"ClusterRegion,omitempty" name:"ClusterRegion"` + + // 新触发器名称 + NewTriggerName *string `json:"NewTriggerName,omitempty" name:"NewTriggerName"` +} + type ModifyApplicationTriggerPersonalRequest struct { *tchttp.BaseRequest - + // 触发器关联的镜像仓库,library/test格式 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -4637,13 +6972,15 @@ func (r *ModifyApplicationTriggerPersonalRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyApplicationTriggerPersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyApplicationTriggerPersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyApplicationTriggerPersonalResponseParams `json:"Response"` } func (r *ModifyApplicationTriggerPersonalResponse) ToJsonString() string { @@ -4657,9 +6994,24 @@ func (r *ModifyApplicationTriggerPersonalResponse) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyImmutableTagRulesRequestParams struct { + // 实例 Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 规则 Id + RuleId *int64 `json:"RuleId,omitempty" name:"RuleId"` + + // 规则 + Rule *ImmutableTagRule `json:"Rule,omitempty" name:"Rule"` +} + type ModifyImmutableTagRulesRequest struct { *tchttp.BaseRequest - + // 实例 Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -4695,13 +7047,15 @@ func (r *ModifyImmutableTagRulesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyImmutableTagRulesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyImmutableTagRulesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyImmutableTagRulesResponseParams `json:"Response"` } func (r *ModifyImmutableTagRulesResponse) ToJsonString() string { @@ -4715,9 +7069,18 @@ func (r *ModifyImmutableTagRulesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyInstanceRequestParams struct { + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 实例的规格 + RegistryType *string `json:"RegistryType,omitempty" name:"RegistryType"` +} + type ModifyInstanceRequest struct { *tchttp.BaseRequest - + // 实例ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -4745,13 +7108,15 @@ func (r *ModifyInstanceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyInstanceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyInstanceResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyInstanceResponseParams `json:"Response"` } func (r *ModifyInstanceResponse) ToJsonString() string { @@ -4765,9 +7130,27 @@ func (r *ModifyInstanceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyInstanceTokenRequestParams struct { + // 实例长期访问凭证 ID + TokenId *string `json:"TokenId,omitempty" name:"TokenId"` + + // 实例 ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 启用或禁用实例长期访问凭证 + Enable *bool `json:"Enable,omitempty" name:"Enable"` + + // 访问凭证描述 + Desc *string `json:"Desc,omitempty" name:"Desc"` + + // 1为修改描述 2为操作启动禁用,默认值为2 + ModifyFlag *int64 `json:"ModifyFlag,omitempty" name:"ModifyFlag"` +} + type ModifyInstanceTokenRequest struct { *tchttp.BaseRequest - + // 实例长期访问凭证 ID TokenId *string `json:"TokenId,omitempty" name:"TokenId"` @@ -4807,13 +7190,15 @@ func (r *ModifyInstanceTokenRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyInstanceTokenResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyInstanceTokenResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyInstanceTokenResponseParams `json:"Response"` } func (r *ModifyInstanceTokenResponse) ToJsonString() string { @@ -4827,9 +7212,21 @@ func (r *ModifyInstanceTokenResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNamespaceRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 访问级别,True为公开,False为私有 + IsPublic *bool `json:"IsPublic,omitempty" name:"IsPublic"` +} + type ModifyNamespaceRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -4861,13 +7258,15 @@ func (r *ModifyNamespaceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyNamespaceResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyNamespaceResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyNamespaceResponseParams `json:"Response"` } func (r *ModifyNamespaceResponse) ToJsonString() string { @@ -4881,9 +7280,18 @@ func (r *ModifyNamespaceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyRepositoryAccessPersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // 默认值为0, 1公共,0私有 + Public *int64 `json:"Public,omitempty" name:"Public"` +} + type ModifyRepositoryAccessPersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -4911,13 +7319,15 @@ func (r *ModifyRepositoryAccessPersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyRepositoryAccessPersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyRepositoryAccessPersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyRepositoryAccessPersonalResponseParams `json:"Response"` } func (r *ModifyRepositoryAccessPersonalResponse) ToJsonString() string { @@ -4931,9 +7341,18 @@ func (r *ModifyRepositoryAccessPersonalResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyRepositoryInfoPersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` + + // 仓库描述 + Description *string `json:"Description,omitempty" name:"Description"` +} + type ModifyRepositoryInfoPersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -4961,13 +7380,15 @@ func (r *ModifyRepositoryInfoPersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyRepositoryInfoPersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyRepositoryInfoPersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyRepositoryInfoPersonalResponseParams `json:"Response"` } func (r *ModifyRepositoryInfoPersonalResponse) ToJsonString() string { @@ -4981,9 +7402,27 @@ func (r *ModifyRepositoryInfoPersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyRepositoryRequestParams struct { + // 实例ID + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间名称 + NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"` + + // 镜像仓库名称 + RepositoryName *string `json:"RepositoryName,omitempty" name:"RepositoryName"` + + // 仓库简短描述 + BriefDescription *string `json:"BriefDescription,omitempty" name:"BriefDescription"` + + // 仓库详细描述 + Description *string `json:"Description,omitempty" name:"Description"` +} + type ModifyRepositoryRequest struct { *tchttp.BaseRequest - + // 实例ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -5023,13 +7462,15 @@ func (r *ModifyRepositoryRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyRepositoryResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyRepositoryResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyRepositoryResponseParams `json:"Response"` } func (r *ModifyRepositoryResponse) ToJsonString() string { @@ -5043,9 +7484,24 @@ func (r *ModifyRepositoryResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifySecurityPolicyRequestParams struct { + // 实例的Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // PolicyId + PolicyIndex *int64 `json:"PolicyIndex,omitempty" name:"PolicyIndex"` + + // 192.168.0.0/24 白名单Ip + CidrBlock *string `json:"CidrBlock,omitempty" name:"CidrBlock"` + + // 备注 + Description *string `json:"Description,omitempty" name:"Description"` +} + type ModifySecurityPolicyRequest struct { *tchttp.BaseRequest - + // 实例的Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -5081,16 +7537,18 @@ func (r *ModifySecurityPolicyRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ModifySecurityPolicyResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type ModifySecurityPolicyResponseParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 实例Id - RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ModifySecurityPolicyResponse struct { + *tchttp.BaseResponse + Response *ModifySecurityPolicyResponseParams `json:"Response"` } func (r *ModifySecurityPolicyResponse) ToJsonString() string { @@ -5104,9 +7562,30 @@ func (r *ModifySecurityPolicyResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyTagRetentionRuleRequestParams struct { + // 主实例iD + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 命名空间的Id,必须填写原有的命名空间id + NamespaceId *int64 `json:"NamespaceId,omitempty" name:"NamespaceId"` + + // 保留策略 + RetentionRule *RetentionRule `json:"RetentionRule,omitempty" name:"RetentionRule"` + + // 执行周期,必须填写为原来的设置 + CronSetting *string `json:"CronSetting,omitempty" name:"CronSetting"` + + // 规则Id + RetentionId *int64 `json:"RetentionId,omitempty" name:"RetentionId"` + + // 是否禁用规则 + Disabled *bool `json:"Disabled,omitempty" name:"Disabled"` +} + type ModifyTagRetentionRuleRequest struct { *tchttp.BaseRequest - + // 主实例iD RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -5150,13 +7629,15 @@ func (r *ModifyTagRetentionRuleRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyTagRetentionRuleResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyTagRetentionRuleResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyTagRetentionRuleResponseParams `json:"Response"` } func (r *ModifyTagRetentionRuleResponse) ToJsonString() string { @@ -5170,9 +7651,15 @@ func (r *ModifyTagRetentionRuleResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyUserPasswordPersonalRequestParams struct { + // 更新后的密码 + Password *string `json:"Password,omitempty" name:"Password"` +} + type ModifyUserPasswordPersonalRequest struct { *tchttp.BaseRequest - + // 更新后的密码 Password *string `json:"Password,omitempty" name:"Password"` } @@ -5196,13 +7683,15 @@ func (r *ModifyUserPasswordPersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyUserPasswordPersonalResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyUserPasswordPersonalResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyUserPasswordPersonalResponseParams `json:"Response"` } func (r *ModifyUserPasswordPersonalResponse) ToJsonString() string { @@ -5216,9 +7705,21 @@ func (r *ModifyUserPasswordPersonalResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyWebhookTriggerRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 触发器参数 + Trigger *WebhookTrigger `json:"Trigger,omitempty" name:"Trigger"` + + // 命名空间 + Namespace *string `json:"Namespace,omitempty" name:"Namespace"` +} + type ModifyWebhookTriggerRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -5250,13 +7751,15 @@ func (r *ModifyWebhookTriggerRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyWebhookTriggerResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyWebhookTriggerResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyWebhookTriggerResponseParams `json:"Response"` } func (r *ModifyWebhookTriggerResponse) ToJsonString() string { @@ -5271,7 +7774,6 @@ func (r *ModifyWebhookTriggerResponse) FromJsonString(s string) error { } type NamespaceInfo struct { - // 命名空间 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` @@ -5283,7 +7785,6 @@ type NamespaceInfo struct { } type NamespaceInfoResp struct { - // 命名空间数量 NamespaceCount *int64 `json:"NamespaceCount,omitempty" name:"NamespaceCount"` @@ -5292,7 +7793,6 @@ type NamespaceInfoResp struct { } type NamespaceIsExistsResp struct { - // 命名空间是否存在 IsExist *bool `json:"IsExist,omitempty" name:"IsExist"` @@ -5301,7 +7801,6 @@ type NamespaceIsExistsResp struct { } type PeerReplicationOption struct { - // 待同步实例的uin PeerRegistryUin *string `json:"PeerRegistryUin,omitempty" name:"PeerRegistryUin"` @@ -5312,8 +7811,33 @@ type PeerReplicationOption struct { EnablePeerReplication *bool `json:"EnablePeerReplication,omitempty" name:"EnablePeerReplication"` } -type Registry struct { +type Region struct { + // gz + Alias *string `json:"Alias,omitempty" name:"Alias"` + + // 1 + RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"` + + // ap-guangzhou + RegionName *string `json:"RegionName,omitempty" name:"RegionName"` + + // alluser + Status *string `json:"Status,omitempty" name:"Status"` + + // remark + Remark *string `json:"Remark,omitempty" name:"Remark"` + + // 创建时间 + CreatedAt *string `json:"CreatedAt,omitempty" name:"CreatedAt"` + + // 更新时间 + UpdatedAt *string `json:"UpdatedAt,omitempty" name:"UpdatedAt"` + + // id + Id *int64 `json:"Id,omitempty" name:"Id"` +} +type Registry struct { // 实例ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -5365,7 +7889,6 @@ type Registry struct { } type RegistryChargePrepaid struct { - // 购买实例的时长,单位:月 Period *int64 `json:"Period,omitempty" name:"Period"` @@ -5374,7 +7897,6 @@ type RegistryChargePrepaid struct { } type RegistryCondition struct { - // 实例创建过程类型 Type *string `json:"Type,omitempty" name:"Type"` @@ -5387,7 +7909,6 @@ type RegistryCondition struct { } type RegistryStatus struct { - // 实例的Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -5399,9 +7920,21 @@ type RegistryStatus struct { Conditions []*RegistryCondition `json:"Conditions,omitempty" name:"Conditions"` } +// Predefined struct for user +type RenewInstanceRequestParams struct { + // 实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + + // 预付费自动续费标识和购买时长,0:手动续费,1:自动续费,2:不续费并且不通知;单位为月 + RegistryChargePrepaid *RegistryChargePrepaid `json:"RegistryChargePrepaid,omitempty" name:"RegistryChargePrepaid"` + + // 0 续费, 1按量转包年包月 + Flag *int64 `json:"Flag,omitempty" name:"Flag"` +} + type RenewInstanceRequest struct { *tchttp.BaseRequest - + // 实例Id RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -5433,16 +7966,18 @@ func (r *RenewInstanceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type RenewInstanceResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type RenewInstanceResponseParams struct { + // 企业版实例Id + RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` - // 企业版实例Id - RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type RenewInstanceResponse struct { + *tchttp.BaseResponse + Response *RenewInstanceResponseParams `json:"Response"` } func (r *RenewInstanceResponse) ToJsonString() string { @@ -5457,7 +7992,6 @@ func (r *RenewInstanceResponse) FromJsonString(s string) error { } type ReplicationFilter struct { - // 类型(name、tag和resource) Type *string `json:"Type,omitempty" name:"Type"` @@ -5466,7 +8000,6 @@ type ReplicationFilter struct { } type ReplicationLog struct { - // 资源类型 // 注意:此字段可能返回 null,表示取不到有效值。 ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` @@ -5493,7 +8026,6 @@ type ReplicationLog struct { } type ReplicationRegistry struct { - // 主实例ID RegistryId *string `json:"RegistryId,omitempty" name:"RegistryId"` @@ -5514,7 +8046,6 @@ type ReplicationRegistry struct { } type ReplicationRule struct { - // 同步规则名称 Name *string `json:"Name,omitempty" name:"Name"` @@ -5529,7 +8060,6 @@ type ReplicationRule struct { } type RepoInfo struct { - // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -5565,7 +8095,6 @@ type RepoInfo struct { } type RepoInfoResp struct { - // 仓库总数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` @@ -5577,13 +8106,11 @@ type RepoInfoResp struct { } type RepoIsExistResp struct { - // 仓库是否存在 IsExist *bool `json:"IsExist,omitempty" name:"IsExist"` } type RepositoryInfoResp struct { - // 镜像仓库名字 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -5617,13 +8144,11 @@ type RepositoryInfoResp struct { } type RespLimit struct { - // 配额信息 LimitInfo []*Limit `json:"LimitInfo,omitempty" name:"LimitInfo"` } type RetentionExecution struct { - // 执行Id ExecutionId *int64 `json:"ExecutionId,omitempty" name:"ExecutionId"` @@ -5641,7 +8166,6 @@ type RetentionExecution struct { } type RetentionPolicy struct { - // 版本保留策略Id RetentionId *int64 `json:"RetentionId,omitempty" name:"RetentionId"` @@ -5662,7 +8186,6 @@ type RetentionPolicy struct { } type RetentionRule struct { - // 支持的策略,可选值为latestPushedK(保留最新推送多少个版本)nDaysSinceLastPush(保留近天内推送) Key *string `json:"Key,omitempty" name:"Key"` @@ -5671,7 +8194,6 @@ type RetentionRule struct { } type RetentionTask struct { - // 任务Id TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"` @@ -5698,14 +8220,17 @@ type RetentionTask struct { } type SameImagesResp struct { - // tag列表 // 注意:此字段可能返回 null,表示取不到有效值。 SameImages []*string `json:"SameImages,omitempty" name:"SameImages"` } -type SearchUserRepositoryResp struct { +type Schedule struct { + // 类型:Hourly, Daily, Weekly, Custom, Manual, Dryrun, None + Type *string `json:"Type,omitempty" name:"Type"` +} +type SearchUserRepositoryResp struct { // 总个数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` @@ -5720,7 +8245,6 @@ type SearchUserRepositoryResp struct { } type SecurityPolicy struct { - // 策略索引 PolicyIndex *int64 `json:"PolicyIndex,omitempty" name:"PolicyIndex"` @@ -5735,7 +8259,6 @@ type SecurityPolicy struct { } type Tag struct { - // 云标签的key Key *string `json:"Key,omitempty" name:"Key"` @@ -5744,7 +8267,6 @@ type Tag struct { } type TagInfo struct { - // Tag名称 TagName *string `json:"TagName,omitempty" name:"TagName"` @@ -5790,7 +8312,6 @@ type TagInfo struct { } type TagInfoResp struct { - // Tag的总数 TagCount *int64 `json:"TagCount,omitempty" name:"TagCount"` @@ -5805,7 +8326,6 @@ type TagInfoResp struct { } type TagSpecification struct { - // 默认值为instance // 注意:此字段可能返回 null,表示取不到有效值。 ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` @@ -5816,7 +8336,6 @@ type TagSpecification struct { } type TaskDetail struct { - // 任务 TaskName *string `json:"TaskName,omitempty" name:"TaskName"` @@ -5839,11 +8358,10 @@ type TaskDetail struct { } type TcrImageInfo struct { - // 哈希值 Digest *string `json:"Digest,omitempty" name:"Digest"` - // 镜像大小 + // 镜像体积(单位:字节) Size *int64 `json:"Size,omitempty" name:"Size"` // Tag名称 @@ -5851,10 +8369,17 @@ type TcrImageInfo struct { // 更新时间 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` + + // 制品类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + Kind *string `json:"Kind,omitempty" name:"Kind"` + + // KMS 签名信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + KmsSignature *string `json:"KmsSignature,omitempty" name:"KmsSignature"` } type TcrInstanceToken struct { - // 令牌ID Id *string `json:"Id,omitempty" name:"Id"` @@ -5875,7 +8400,6 @@ type TcrInstanceToken struct { } type TcrNamespaceInfo struct { - // 命名空间名称 Name *string `json:"Name,omitempty" name:"Name"` @@ -5887,17 +8411,24 @@ type TcrNamespaceInfo struct { // 命名空间的Id NamespaceId *int64 `json:"NamespaceId,omitempty" name:"NamespaceId"` + + // 实例云标签 + // 注意:此字段可能返回 null,表示取不到有效值。 + TagSpecification *TagSpecification `json:"TagSpecification,omitempty" name:"TagSpecification"` + + // 命名空间元数据 + // 注意:此字段可能返回 null,表示取不到有效值。 + Metadata []*KeyValueString `json:"Metadata,omitempty" name:"Metadata"` } type TcrRepositoryInfo struct { - // 仓库名称 Name *string `json:"Name,omitempty" name:"Name"` // 命名空间名称 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` - // 创建时间 + // 创建时间,格式"2006-01-02 15:04:05.999999999 -0700 MST" CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"` // 是否公开 @@ -5911,12 +8442,11 @@ type TcrRepositoryInfo struct { // 注意:此字段可能返回 null,表示取不到有效值。 BriefDescription *string `json:"BriefDescription,omitempty" name:"BriefDescription"` - // 更新时间 + // 更新时间,格式"2006-01-02 15:04:05.999999999 -0700 MST" UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` } type TriggerInvokeCondition struct { - // 触发方式 InvokeMethod *string `json:"InvokeMethod,omitempty" name:"InvokeMethod"` @@ -5926,7 +8456,6 @@ type TriggerInvokeCondition struct { } type TriggerInvokePara struct { - // AppId // 注意:此字段可能返回 null,表示取不到有效值。 AppId *string `json:"AppId,omitempty" name:"AppId"` @@ -5953,7 +8482,6 @@ type TriggerInvokePara struct { } type TriggerInvokeResult struct { - // 请求TKE返回值 // 注意:此字段可能返回 null,表示取不到有效值。 ReturnCode *int64 `json:"ReturnCode,omitempty" name:"ReturnCode"` @@ -5964,7 +8492,6 @@ type TriggerInvokeResult struct { } type TriggerLogResp struct { - // 仓库名称 // 注意:此字段可能返回 null,表示取不到有效值。 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` @@ -6003,7 +8530,6 @@ type TriggerLogResp struct { } type TriggerResp struct { - // 触发器名称 // 注意:此字段可能返回 null,表示取不到有效值。 TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"` @@ -6033,9 +8559,15 @@ type TriggerResp struct { InvokePara *TriggerInvokePara `json:"InvokePara,omitempty" name:"InvokePara"` } +// Predefined struct for user +type ValidateNamespaceExistPersonalRequestParams struct { + // 命名空间名称 + Namespace *string `json:"Namespace,omitempty" name:"Namespace"` +} + type ValidateNamespaceExistPersonalRequest struct { *tchttp.BaseRequest - + // 命名空间名称 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` } @@ -6059,16 +8591,18 @@ func (r *ValidateNamespaceExistPersonalRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ValidateNamespaceExistPersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type ValidateNamespaceExistPersonalResponseParams struct { + // 验证命名空间是否存在返回信息 + Data *NamespaceIsExistsResp `json:"Data,omitempty" name:"Data"` - // 验证命名空间是否存在返回信息 - Data *NamespaceIsExistsResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ValidateNamespaceExistPersonalResponse struct { + *tchttp.BaseResponse + Response *ValidateNamespaceExistPersonalResponseParams `json:"Response"` } func (r *ValidateNamespaceExistPersonalResponse) ToJsonString() string { @@ -6082,9 +8616,15 @@ func (r *ValidateNamespaceExistPersonalResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ValidateRepositoryExistPersonalRequestParams struct { + // 仓库名称 + RepoName *string `json:"RepoName,omitempty" name:"RepoName"` +} + type ValidateRepositoryExistPersonalRequest struct { *tchttp.BaseRequest - + // 仓库名称 RepoName *string `json:"RepoName,omitempty" name:"RepoName"` } @@ -6108,16 +8648,18 @@ func (r *ValidateRepositoryExistPersonalRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } -type ValidateRepositoryExistPersonalResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type ValidateRepositoryExistPersonalResponseParams struct { + // 验证个人版仓库是否存在返回信息 + Data *RepoIsExistResp `json:"Data,omitempty" name:"Data"` - // 验证个人版仓库是否存在返回信息 - Data *RepoIsExistResp `json:"Data,omitempty" name:"Data"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type ValidateRepositoryExistPersonalResponse struct { + *tchttp.BaseResponse + Response *ValidateRepositoryExistPersonalResponseParams `json:"Response"` } func (r *ValidateRepositoryExistPersonalResponse) ToJsonString() string { @@ -6132,7 +8674,6 @@ func (r *ValidateRepositoryExistPersonalResponse) FromJsonString(s string) error } type VpcAndDomainInfo struct { - // tcr实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -6145,10 +8686,12 @@ type VpcAndDomainInfo struct { // true:use instance name as subdomain // false: use instancename+"-vpc" as subdomain UsePublicDomain *bool `json:"UsePublicDomain,omitempty" name:"UsePublicDomain"` + + // 解析地域,需要保证和vpc处于同一地域,如果不填则默认为主实例地域 + RegionName *string `json:"RegionName,omitempty" name:"RegionName"` } type VpcPrivateDomainStatus struct { - // 地域 // 注意:此字段可能返回 null,表示取不到有效值。 Region *string `json:"Region,omitempty" name:"Region"` @@ -6163,7 +8706,6 @@ type VpcPrivateDomainStatus struct { } type WebhookTarget struct { - // 目标地址 Address *string `json:"Address,omitempty" name:"Address"` @@ -6172,7 +8714,6 @@ type WebhookTarget struct { } type WebhookTrigger struct { - // 触发器名称 Name *string `json:"Name,omitempty" name:"Name"` @@ -6199,7 +8740,6 @@ type WebhookTrigger struct { } type WebhookTriggerLog struct { - // 日志 Id Id *int64 `json:"Id,omitempty" name:"Id"` @@ -6223,4 +8763,4 @@ type WebhookTriggerLog struct { // 状态 Status *string `json:"Status,omitempty" name:"Status"` -} +} \ No newline at end of file diff --git a/vendor/modules.txt b/vendor/modules.txt index 4fec24a9d1..6a7123fe91 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -609,7 +609,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sts/v20180813 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tag/v20180813 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcaplusdb v1.0.199 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcaplusdb/v20190823 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.267 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr v1.0.486 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tcr/v20190924 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.268 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq/v20200217 diff --git a/website/docs/r/tcr_vpc_attachment.html.markdown b/website/docs/r/tcr_vpc_attachment.html.markdown index 8e680790b5..02a3694561 100644 --- a/website/docs/r/tcr_vpc_attachment.html.markdown +++ b/website/docs/r/tcr_vpc_attachment.html.markdown @@ -30,7 +30,7 @@ The following arguments are supported: * `vpc_id` - (Required, String, ForceNew) ID of VPC. * `enable_public_domain_dns` - (Optional, Bool) Whether to enable public domain dns. Default value is `false`. * `enable_vpc_domain_dns` - (Optional, Bool) Whether to enable vpc domain dns. Default value is `false`. -* `region_id` - (Optional, Int) ID of region. Conflict with region_name, can not be set at the same time. +* `region_id` - (Optional, Int, **Deprecated**) this argument was deprecated, use `region_name` instead. ID of region. Conflict with region_name, can not be set at the same time. * `region_name` - (Optional, String) Name of region. Conflict with region_id, can not be set at the same time. ## Attributes Reference