// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package v20210712

import (
    "context"
    "errors"
    "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common"
    tchttp "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/http"
    "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/profile"
)

const APIVersion = "2021-07-12"

type Client struct {
    common.Client
}

// Deprecated
func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) {
    cpf := profile.NewClientProfile()
    client = &Client{}
    client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf)
    return
}

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) {
    client = &Client{}
    client.Init(region).
        WithCredential(credential).
        WithProfile(clientProfile)
    return
}


func NewCreateLibraryRequest() (request *CreateLibraryRequest) {
    request = &CreateLibraryRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("smh", APIVersion, "CreateLibrary")
    
    
    return
}

func NewCreateLibraryResponse() (response *CreateLibraryResponse) {
    response = &CreateLibraryResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// CreateLibrary
// This API is used to create a PaaS service media library.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INTERNALERROR_POSTPAIDFAIL = "InternalError.PostpaidFail"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  INVALIDPARAMETERVALUE_BUCKETNAMEINVALID = "InvalidParameterValue.BucketNameInvalid"
//  INVALIDPARAMETERVALUE_BUCKETNAMENOTBELONGYOU = "InvalidParameterValue.BucketNameNotBelongYou"
//  INVALIDPARAMETERVALUE_BUCKETNOTFOUND = "InvalidParameterValue.BucketNotFound"
//  INVALIDPARAMETERVALUE_BUCKETNOTSUPPORT = "InvalidParameterValue.BucketNotSupport"
//  INVALIDPARAMETERVALUE_BUCKETREGIONINVALID = "InvalidParameterValue.BucketRegionInvalid"
//  INVALIDPARAMETERVALUE_COSSTORAGECLASS = "InvalidParameterValue.CosStorageClass"
//  INVALIDPARAMETERVALUE_COSSTORAGECLASSINTELLIGENTTIERING = "InvalidParameterValue.CosStorageClassIntelligentTiering"
//  MISSINGPARAMETER = "MissingParameter"
//  UNAUTHORIZEDOPERATION_PASSROLE = "UnauthorizedOperation.PassRole"
//  UNAUTHORIZEDOPERATION_SERVICELINKEDROLE = "UnauthorizedOperation.ServiceLinkedRole"
//  UNSUPPORTEDOPERATION_BALANCELESS = "UnsupportedOperation.BalanceLess"
func (c *Client) CreateLibrary(request *CreateLibraryRequest) (response *CreateLibraryResponse, err error) {
    return c.CreateLibraryWithContext(context.Background(), request)
}

// CreateLibrary
// This API is used to create a PaaS service media library.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INTERNALERROR_POSTPAIDFAIL = "InternalError.PostpaidFail"
//  INVALIDPARAMETERVALUE = "InvalidParameterValue"
//  INVALIDPARAMETERVALUE_BUCKETNAMEINVALID = "InvalidParameterValue.BucketNameInvalid"
//  INVALIDPARAMETERVALUE_BUCKETNAMENOTBELONGYOU = "InvalidParameterValue.BucketNameNotBelongYou"
//  INVALIDPARAMETERVALUE_BUCKETNOTFOUND = "InvalidParameterValue.BucketNotFound"
//  INVALIDPARAMETERVALUE_BUCKETNOTSUPPORT = "InvalidParameterValue.BucketNotSupport"
//  INVALIDPARAMETERVALUE_BUCKETREGIONINVALID = "InvalidParameterValue.BucketRegionInvalid"
//  INVALIDPARAMETERVALUE_COSSTORAGECLASS = "InvalidParameterValue.CosStorageClass"
//  INVALIDPARAMETERVALUE_COSSTORAGECLASSINTELLIGENTTIERING = "InvalidParameterValue.CosStorageClassIntelligentTiering"
//  MISSINGPARAMETER = "MissingParameter"
//  UNAUTHORIZEDOPERATION_PASSROLE = "UnauthorizedOperation.PassRole"
//  UNAUTHORIZEDOPERATION_SERVICELINKEDROLE = "UnauthorizedOperation.ServiceLinkedRole"
//  UNSUPPORTEDOPERATION_BALANCELESS = "UnsupportedOperation.BalanceLess"
func (c *Client) CreateLibraryWithContext(ctx context.Context, request *CreateLibraryRequest) (response *CreateLibraryResponse, err error) {
    if request == nil {
        request = NewCreateLibraryRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "smh", APIVersion, "CreateLibrary")
    
    if c.GetCredential() == nil {
        return nil, errors.New("CreateLibrary require credential")
    }

    request.SetContext(ctx)
    
    response = NewCreateLibraryResponse()
    err = c.Send(request, response)
    return
}

func NewDeleteLibraryRequest() (request *DeleteLibraryRequest) {
    request = &DeleteLibraryRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("smh", APIVersion, "DeleteLibrary")
    
    
    return
}

func NewDeleteLibraryResponse() (response *DeleteLibraryResponse) {
    response = &DeleteLibraryResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DeleteLibrary
// This API is used to delete a PaaS service media library.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INTERNALERROR_MODIFYRESOURCESTATUSFAIL = "InternalError.ModifyResourceStatusFail"
//  RESOURCEINUSE_MULTISPACE = "ResourceInUse.MultiSpace"
//  RESOURCENOTFOUND_LIBRARY = "ResourceNotFound.Library"
func (c *Client) DeleteLibrary(request *DeleteLibraryRequest) (response *DeleteLibraryResponse, err error) {
    return c.DeleteLibraryWithContext(context.Background(), request)
}

// DeleteLibrary
// This API is used to delete a PaaS service media library.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INTERNALERROR_MODIFYRESOURCESTATUSFAIL = "InternalError.ModifyResourceStatusFail"
//  RESOURCEINUSE_MULTISPACE = "ResourceInUse.MultiSpace"
//  RESOURCENOTFOUND_LIBRARY = "ResourceNotFound.Library"
func (c *Client) DeleteLibraryWithContext(ctx context.Context, request *DeleteLibraryRequest) (response *DeleteLibraryResponse, err error) {
    if request == nil {
        request = NewDeleteLibraryRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "smh", APIVersion, "DeleteLibrary")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DeleteLibrary require credential")
    }

    request.SetContext(ctx)
    
    response = NewDeleteLibraryResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeLibrariesRequest() (request *DescribeLibrariesRequest) {
    request = &DescribeLibrariesRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("smh", APIVersion, "DescribeLibraries")
    
    
    return
}

func NewDescribeLibrariesResponse() (response *DescribeLibrariesResponse) {
    response = &DescribeLibrariesResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeLibraries
// This API is used to query the PaaS service repository list.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
func (c *Client) DescribeLibraries(request *DescribeLibrariesRequest) (response *DescribeLibrariesResponse, err error) {
    return c.DescribeLibrariesWithContext(context.Background(), request)
}

// DescribeLibraries
// This API is used to query the PaaS service repository list.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
func (c *Client) DescribeLibrariesWithContext(ctx context.Context, request *DescribeLibrariesRequest) (response *DescribeLibrariesResponse, err error) {
    if request == nil {
        request = NewDescribeLibrariesRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "smh", APIVersion, "DescribeLibraries")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeLibraries require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeLibrariesResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeLibrarySecretRequest() (request *DescribeLibrarySecretRequest) {
    request = &DescribeLibrarySecretRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("smh", APIVersion, "DescribeLibrarySecret")
    
    
    return
}

func NewDescribeLibrarySecretResponse() (response *DescribeLibrarySecretResponse) {
    response = &DescribeLibrarySecretResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeLibrarySecret
// This API is used to query the PaaS service Media Library Key.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  RESOURCENOTFOUND_LIBRARY = "ResourceNotFound.Library"
func (c *Client) DescribeLibrarySecret(request *DescribeLibrarySecretRequest) (response *DescribeLibrarySecretResponse, err error) {
    return c.DescribeLibrarySecretWithContext(context.Background(), request)
}

// DescribeLibrarySecret
// This API is used to query the PaaS service Media Library Key.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  RESOURCENOTFOUND_LIBRARY = "ResourceNotFound.Library"
func (c *Client) DescribeLibrarySecretWithContext(ctx context.Context, request *DescribeLibrarySecretRequest) (response *DescribeLibrarySecretResponse, err error) {
    if request == nil {
        request = NewDescribeLibrarySecretRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "smh", APIVersion, "DescribeLibrarySecret")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeLibrarySecret require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeLibrarySecretResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeOfficialInstancesRequest() (request *DescribeOfficialInstancesRequest) {
    request = &DescribeOfficialInstancesRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("smh", APIVersion, "DescribeOfficialInstances")
    
    
    return
}

func NewDescribeOfficialInstancesResponse() (response *DescribeOfficialInstancesResponse) {
    response = &DescribeOfficialInstancesResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeOfficialInstances
// This API is used to query official cloud disk instances.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
func (c *Client) DescribeOfficialInstances(request *DescribeOfficialInstancesRequest) (response *DescribeOfficialInstancesResponse, err error) {
    return c.DescribeOfficialInstancesWithContext(context.Background(), request)
}

// DescribeOfficialInstances
// This API is used to query official cloud disk instances.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
func (c *Client) DescribeOfficialInstancesWithContext(ctx context.Context, request *DescribeOfficialInstancesRequest) (response *DescribeOfficialInstancesResponse, err error) {
    if request == nil {
        request = NewDescribeOfficialInstancesRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "smh", APIVersion, "DescribeOfficialInstances")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeOfficialInstances require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeOfficialInstancesResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeOfficialOverviewRequest() (request *DescribeOfficialOverviewRequest) {
    request = &DescribeOfficialOverviewRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("smh", APIVersion, "DescribeOfficialOverview")
    
    
    return
}

func NewDescribeOfficialOverviewResponse() (response *DescribeOfficialOverviewResponse) {
    response = &DescribeOfficialOverviewResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeOfficialOverview
// This API is used to query overview data of official cloud disk instances.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeOfficialOverview(request *DescribeOfficialOverviewRequest) (response *DescribeOfficialOverviewResponse, err error) {
    return c.DescribeOfficialOverviewWithContext(context.Background(), request)
}

// DescribeOfficialOverview
// This API is used to query overview data of official cloud disk instances.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
func (c *Client) DescribeOfficialOverviewWithContext(ctx context.Context, request *DescribeOfficialOverviewRequest) (response *DescribeOfficialOverviewResponse, err error) {
    if request == nil {
        request = NewDescribeOfficialOverviewRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "smh", APIVersion, "DescribeOfficialOverview")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeOfficialOverview require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeOfficialOverviewResponse()
    err = c.Send(request, response)
    return
}

func NewDescribeTrafficPackagesRequest() (request *DescribeTrafficPackagesRequest) {
    request = &DescribeTrafficPackagesRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("smh", APIVersion, "DescribeTrafficPackages")
    
    
    return
}

func NewDescribeTrafficPackagesResponse() (response *DescribeTrafficPackagesResponse) {
    response = &DescribeTrafficPackagesResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// DescribeTrafficPackages
// This API is used to query traffic packages.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
func (c *Client) DescribeTrafficPackages(request *DescribeTrafficPackagesRequest) (response *DescribeTrafficPackagesResponse, err error) {
    return c.DescribeTrafficPackagesWithContext(context.Background(), request)
}

// DescribeTrafficPackages
// This API is used to query traffic packages.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
func (c *Client) DescribeTrafficPackagesWithContext(ctx context.Context, request *DescribeTrafficPackagesRequest) (response *DescribeTrafficPackagesResponse, err error) {
    if request == nil {
        request = NewDescribeTrafficPackagesRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "smh", APIVersion, "DescribeTrafficPackages")
    
    if c.GetCredential() == nil {
        return nil, errors.New("DescribeTrafficPackages require credential")
    }

    request.SetContext(ctx)
    
    response = NewDescribeTrafficPackagesResponse()
    err = c.Send(request, response)
    return
}

func NewModifyLibraryRequest() (request *ModifyLibraryRequest) {
    request = &ModifyLibraryRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("smh", APIVersion, "ModifyLibrary")
    
    
    return
}

func NewModifyLibraryResponse() (response *ModifyLibraryResponse) {
    response = &ModifyLibraryResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// ModifyLibrary
// This API is used to modify the configuration items of a PaaS service media library.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
//  MISSINGPARAMETER = "MissingParameter"
//  RESOURCENOTFOUND_LIBRARY = "ResourceNotFound.Library"
func (c *Client) ModifyLibrary(request *ModifyLibraryRequest) (response *ModifyLibraryResponse, err error) {
    return c.ModifyLibraryWithContext(context.Background(), request)
}

// ModifyLibrary
// This API is used to modify the configuration items of a PaaS service media library.
//
// error code that may be returned:
//  INTERNALERROR = "InternalError"
//  INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
//  MISSINGPARAMETER = "MissingParameter"
//  RESOURCENOTFOUND_LIBRARY = "ResourceNotFound.Library"
func (c *Client) ModifyLibraryWithContext(ctx context.Context, request *ModifyLibraryRequest) (response *ModifyLibraryResponse, err error) {
    if request == nil {
        request = NewModifyLibraryRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "smh", APIVersion, "ModifyLibrary")
    
    if c.GetCredential() == nil {
        return nil, errors.New("ModifyLibrary require credential")
    }

    request.SetContext(ctx)
    
    response = NewModifyLibraryResponse()
    err = c.Send(request, response)
    return
}

func NewSendSmsCodeRequest() (request *SendSmsCodeRequest) {
    request = &SendSmsCodeRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("smh", APIVersion, "SendSmsCode")
    
    
    return
}

func NewSendSmsCodeResponse() (response *SendSmsCodeResponse) {
    response = &SendSmsCodeResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// SendSmsCode
// This API is used to send SMS verification codes for changing the admin account of a super official cloud disk instance.
//
// error code that may be returned:
//  INTERNALERROR_SENDSMS = "InternalError.SendSms"
//  INVALIDPARAMETERVALUE_COUNTRYCODE = "InvalidParameterValue.CountryCode"
//  INVALIDPARAMETERVALUE_NOTMODIFIED = "InvalidParameterValue.NotModified"
//  INVALIDPARAMETERVALUE_NOTSUPERADMIN = "InvalidParameterValue.NotSuperAdmin"
//  INVALIDPARAMETERVALUE_PHONENUMBER = "InvalidParameterValue.PhoneNumber"
//  REQUESTLIMITEXCEEDED_SENDSMS = "RequestLimitExceeded.SendSms"
//  RESOURCENOTFOUND_OFFICIALINSTANCE = "ResourceNotFound.OfficialInstance"
//  UNSUPPORTEDOPERATION_PURPOSE = "UnsupportedOperation.Purpose"
func (c *Client) SendSmsCode(request *SendSmsCodeRequest) (response *SendSmsCodeResponse, err error) {
    return c.SendSmsCodeWithContext(context.Background(), request)
}

// SendSmsCode
// This API is used to send SMS verification codes for changing the admin account of a super official cloud disk instance.
//
// error code that may be returned:
//  INTERNALERROR_SENDSMS = "InternalError.SendSms"
//  INVALIDPARAMETERVALUE_COUNTRYCODE = "InvalidParameterValue.CountryCode"
//  INVALIDPARAMETERVALUE_NOTMODIFIED = "InvalidParameterValue.NotModified"
//  INVALIDPARAMETERVALUE_NOTSUPERADMIN = "InvalidParameterValue.NotSuperAdmin"
//  INVALIDPARAMETERVALUE_PHONENUMBER = "InvalidParameterValue.PhoneNumber"
//  REQUESTLIMITEXCEEDED_SENDSMS = "RequestLimitExceeded.SendSms"
//  RESOURCENOTFOUND_OFFICIALINSTANCE = "ResourceNotFound.OfficialInstance"
//  UNSUPPORTEDOPERATION_PURPOSE = "UnsupportedOperation.Purpose"
func (c *Client) SendSmsCodeWithContext(ctx context.Context, request *SendSmsCodeRequest) (response *SendSmsCodeResponse, err error) {
    if request == nil {
        request = NewSendSmsCodeRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "smh", APIVersion, "SendSmsCode")
    
    if c.GetCredential() == nil {
        return nil, errors.New("SendSmsCode require credential")
    }

    request.SetContext(ctx)
    
    response = NewSendSmsCodeResponse()
    err = c.Send(request, response)
    return
}

func NewVerifySmsCodeRequest() (request *VerifySmsCodeRequest) {
    request = &VerifySmsCodeRequest{
        BaseRequest: &tchttp.BaseRequest{},
    }
    
    request.Init().WithApiInfo("smh", APIVersion, "VerifySmsCode")
    
    
    return
}

func NewVerifySmsCodeResponse() (response *VerifySmsCodeResponse) {
    response = &VerifySmsCodeResponse{
        BaseResponse: &tchttp.BaseResponse{},
    } 
    return

}

// VerifySmsCode
// This API is used to verify the SMS verification code for rebinding the super administrator account of an official cloud disk instance.
//
// error code that may be returned:
//  INVALIDPARAMETERVALUE_COUNTRYCODE = "InvalidParameterValue.CountryCode"
//  INVALIDPARAMETERVALUE_PHONENUMBER = "InvalidParameterValue.PhoneNumber"
//  LIMITEXCEEDED_USERLIMIT = "LimitExceeded.UserLimit"
//  RESOURCENOTFOUND_OFFICIALINSTANCE = "ResourceNotFound.OfficialInstance"
//  UNAUTHORIZEDOPERATION_SMSCODE = "UnauthorizedOperation.SmsCode"
//  UNAUTHORIZEDOPERATION_SMSCODEEXCEEDED = "UnauthorizedOperation.SmsCodeExceeded"
//  UNSUPPORTEDOPERATION_PURPOSE = "UnsupportedOperation.Purpose"
func (c *Client) VerifySmsCode(request *VerifySmsCodeRequest) (response *VerifySmsCodeResponse, err error) {
    return c.VerifySmsCodeWithContext(context.Background(), request)
}

// VerifySmsCode
// This API is used to verify the SMS verification code for rebinding the super administrator account of an official cloud disk instance.
//
// error code that may be returned:
//  INVALIDPARAMETERVALUE_COUNTRYCODE = "InvalidParameterValue.CountryCode"
//  INVALIDPARAMETERVALUE_PHONENUMBER = "InvalidParameterValue.PhoneNumber"
//  LIMITEXCEEDED_USERLIMIT = "LimitExceeded.UserLimit"
//  RESOURCENOTFOUND_OFFICIALINSTANCE = "ResourceNotFound.OfficialInstance"
//  UNAUTHORIZEDOPERATION_SMSCODE = "UnauthorizedOperation.SmsCode"
//  UNAUTHORIZEDOPERATION_SMSCODEEXCEEDED = "UnauthorizedOperation.SmsCodeExceeded"
//  UNSUPPORTEDOPERATION_PURPOSE = "UnsupportedOperation.Purpose"
func (c *Client) VerifySmsCodeWithContext(ctx context.Context, request *VerifySmsCodeRequest) (response *VerifySmsCodeResponse, err error) {
    if request == nil {
        request = NewVerifySmsCodeRequest()
    }
    c.InitBaseRequest(&request.BaseRequest, "smh", APIVersion, "VerifySmsCode")
    
    if c.GetCredential() == nil {
        return nil, errors.New("VerifySmsCode require credential")
    }

    request.SetContext(ctx)
    
    response = NewVerifySmsCodeResponse()
    err = c.Send(request, response)
    return
}
