tis

package
v1.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package tisiface provides an interface to enable mocking the TIS service client for testing your code.

It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters.

Index

Constants

View Source
const (
	ServiceName = "tis"       // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "tis"       // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type BuyResourcePackageInput

type BuyResourcePackageInput struct {

	// DeviceName is a required field
	DeviceName *string `type:"string" json:"deviceName,omitempty" required:"true"`

	// Item is a required field
	Item *string `type:"string" json:"item,omitempty" required:"true"`

	// ProductKey is a required field
	ProductKey *string `type:"string" json:"productKey,omitempty" required:"true"`
	// contains filtered or unexported fields
}

func (BuyResourcePackageInput) GoString

func (s BuyResourcePackageInput) GoString() string

GoString returns the string representation

func (*BuyResourcePackageInput) SetDeviceName

SetDeviceName sets the DeviceName field's value.

func (*BuyResourcePackageInput) SetItem

SetItem sets the Item field's value.

func (*BuyResourcePackageInput) SetProductKey

SetProductKey sets the ProductKey field's value.

func (BuyResourcePackageInput) String

func (s BuyResourcePackageInput) String() string

String returns the string representation

func (*BuyResourcePackageInput) Validate

func (s *BuyResourcePackageInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BuyResourcePackageOutput

type BuyResourcePackageOutput struct {
	Metadata *response.ResponseMetadata

	OrderNo *string `type:"string" json:"orderNo,omitempty"`

	Success *bool `type:"boolean" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (BuyResourcePackageOutput) GoString

func (s BuyResourcePackageOutput) GoString() string

GoString returns the string representation

func (*BuyResourcePackageOutput) SetOrderNo

SetOrderNo sets the OrderNo field's value.

func (*BuyResourcePackageOutput) SetSuccess

SetSuccess sets the Success field's value.

func (BuyResourcePackageOutput) String

func (s BuyResourcePackageOutput) String() string

String returns the string representation

type GetAccessTokenInput

type GetAccessTokenInput struct {

	// AppId is a required field
	AppId *string `type:"string" json:",omitempty" required:"true"`
	// contains filtered or unexported fields
}

func (GetAccessTokenInput) GoString

func (s GetAccessTokenInput) GoString() string

GoString returns the string representation

func (*GetAccessTokenInput) SetAppId

SetAppId sets the AppId field's value.

func (GetAccessTokenInput) String

func (s GetAccessTokenInput) String() string

String returns the string representation

func (*GetAccessTokenInput) Validate

func (s *GetAccessTokenInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetAccessTokenOutput

type GetAccessTokenOutput struct {
	Metadata *response.ResponseMetadata

	AccessToken *string `type:"string" json:",omitempty"`

	ExpireTime *int64 `type:"int64" json:",omitempty"`
	// contains filtered or unexported fields
}

func (GetAccessTokenOutput) GoString

func (s GetAccessTokenOutput) GoString() string

GoString returns the string representation

func (*GetAccessTokenOutput) SetAccessToken

func (s *GetAccessTokenOutput) SetAccessToken(v string) *GetAccessTokenOutput

SetAccessToken sets the AccessToken field's value.

func (*GetAccessTokenOutput) SetExpireTime

func (s *GetAccessTokenOutput) SetExpireTime(v int64) *GetAccessTokenOutput

SetExpireTime sets the ExpireTime field's value.

func (GetAccessTokenOutput) String

func (s GetAccessTokenOutput) String() string

String returns the string representation

type GetQuotaInfoInput

type GetQuotaInfoInput struct {

	// DeviceName is a required field
	DeviceName *string `type:"string" json:"deviceName,omitempty" required:"true"`

	// ProductKey is a required field
	ProductKey *string `type:"string" json:"productKey,omitempty" required:"true"`
	// contains filtered or unexported fields
}

func (GetQuotaInfoInput) GoString

func (s GetQuotaInfoInput) GoString() string

GoString returns the string representation

func (*GetQuotaInfoInput) SetDeviceName

func (s *GetQuotaInfoInput) SetDeviceName(v string) *GetQuotaInfoInput

SetDeviceName sets the DeviceName field's value.

func (*GetQuotaInfoInput) SetProductKey

func (s *GetQuotaInfoInput) SetProductKey(v string) *GetQuotaInfoInput

SetProductKey sets the ProductKey field's value.

func (GetQuotaInfoInput) String

func (s GetQuotaInfoInput) String() string

String returns the string representation

func (*GetQuotaInfoInput) Validate

func (s *GetQuotaInfoInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetQuotaInfoOutput

type GetQuotaInfoOutput struct {
	Metadata *response.ResponseMetadata

	QuotaInfoList []*QuotaInfoListForGetQuotaInfoOutput `type:"list" json:"quotaInfoList,omitempty"`
	// contains filtered or unexported fields
}

func (GetQuotaInfoOutput) GoString

func (s GetQuotaInfoOutput) GoString() string

GoString returns the string representation

func (*GetQuotaInfoOutput) SetQuotaInfoList

SetQuotaInfoList sets the QuotaInfoList field's value.

func (GetQuotaInfoOutput) String

func (s GetQuotaInfoOutput) String() string

String returns the string representation

type QuotaInfoListForGetQuotaInfoOutput

type QuotaInfoListForGetQuotaInfoOutput struct {
	AvailableAmount *int32 `type:"int32" json:"availableAmount,omitempty"`

	ConfigurationCode *string `type:"string" json:"configurationCode,omitempty"`

	PackageName *string `type:"string" json:"packageName,omitempty"`

	TotalAmount *int32 `type:"int32" json:"totalAmount,omitempty"`
	// contains filtered or unexported fields
}

func (QuotaInfoListForGetQuotaInfoOutput) GoString

GoString returns the string representation

func (*QuotaInfoListForGetQuotaInfoOutput) SetAvailableAmount

SetAvailableAmount sets the AvailableAmount field's value.

func (*QuotaInfoListForGetQuotaInfoOutput) SetConfigurationCode added in v1.1.4

SetConfigurationCode sets the ConfigurationCode field's value.

func (*QuotaInfoListForGetQuotaInfoOutput) SetPackageName

SetPackageName sets the PackageName field's value.

func (*QuotaInfoListForGetQuotaInfoOutput) SetTotalAmount

SetTotalAmount sets the TotalAmount field's value.

func (QuotaInfoListForGetQuotaInfoOutput) String

String returns the string representation

type TIS

type TIS struct {
	*client.Client
}

TIS provides the API operation methods for making requests to TIS. See this package's package overview docs for details on the service.

TIS methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*volcengine.Config) *TIS

New create int can support ssl or region locate set

func (*TIS) BuyResourcePackage

func (c *TIS) BuyResourcePackage(input *BuyResourcePackageInput) (*BuyResourcePackageOutput, error)

BuyResourcePackage API operation for TIS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for TIS's API operation BuyResourcePackage for usage and error information.

func (*TIS) BuyResourcePackageCommon

func (c *TIS) BuyResourcePackageCommon(input *map[string]interface{}) (*map[string]interface{}, error)

BuyResourcePackageCommon API operation for TIS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for TIS's API operation BuyResourcePackageCommon for usage and error information.

func (*TIS) BuyResourcePackageCommonRequest

func (c *TIS) BuyResourcePackageCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

BuyResourcePackageCommonRequest generates a "volcengine/request.Request" representing the client's request for the BuyResourcePackageCommon operation. The "output" return value will be populated with the BuyResourcePackageCommon request's response once the request completes successfully.

Use "Send" method on the returned BuyResourcePackageCommon Request to send the API call to the service. the "output" return value is not valid until after BuyResourcePackageCommon Send returns without error.

See BuyResourcePackageCommon for more information on using the BuyResourcePackageCommon API call, and error handling.

// Example sending a request using the BuyResourcePackageCommonRequest method.
req, resp := client.BuyResourcePackageCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*TIS) BuyResourcePackageCommonWithContext

func (c *TIS) BuyResourcePackageCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

BuyResourcePackageCommonWithContext is the same as BuyResourcePackageCommon with the addition of the ability to pass a context and additional request options.

See BuyResourcePackageCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*TIS) BuyResourcePackageRequest

func (c *TIS) BuyResourcePackageRequest(input *BuyResourcePackageInput) (req *request.Request, output *BuyResourcePackageOutput)

BuyResourcePackageRequest generates a "volcengine/request.Request" representing the client's request for the BuyResourcePackage operation. The "output" return value will be populated with the BuyResourcePackageCommon request's response once the request completes successfully.

Use "Send" method on the returned BuyResourcePackageCommon Request to send the API call to the service. the "output" return value is not valid until after BuyResourcePackageCommon Send returns without error.

See BuyResourcePackage for more information on using the BuyResourcePackage API call, and error handling.

// Example sending a request using the BuyResourcePackageRequest method.
req, resp := client.BuyResourcePackageRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*TIS) BuyResourcePackageWithContext

func (c *TIS) BuyResourcePackageWithContext(ctx volcengine.Context, input *BuyResourcePackageInput, opts ...request.Option) (*BuyResourcePackageOutput, error)

BuyResourcePackageWithContext is the same as BuyResourcePackage with the addition of the ability to pass a context and additional request options.

See BuyResourcePackage for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*TIS) GetAccessToken

func (c *TIS) GetAccessToken(input *GetAccessTokenInput) (*GetAccessTokenOutput, error)

GetAccessToken API operation for TIS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for TIS's API operation GetAccessToken for usage and error information.

func (*TIS) GetAccessTokenCommon

func (c *TIS) GetAccessTokenCommon(input *map[string]interface{}) (*map[string]interface{}, error)

GetAccessTokenCommon API operation for TIS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for TIS's API operation GetAccessTokenCommon for usage and error information.

func (*TIS) GetAccessTokenCommonRequest

func (c *TIS) GetAccessTokenCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

GetAccessTokenCommonRequest generates a "volcengine/request.Request" representing the client's request for the GetAccessTokenCommon operation. The "output" return value will be populated with the GetAccessTokenCommon request's response once the request completes successfully.

Use "Send" method on the returned GetAccessTokenCommon Request to send the API call to the service. the "output" return value is not valid until after GetAccessTokenCommon Send returns without error.

See GetAccessTokenCommon for more information on using the GetAccessTokenCommon API call, and error handling.

// Example sending a request using the GetAccessTokenCommonRequest method.
req, resp := client.GetAccessTokenCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*TIS) GetAccessTokenCommonWithContext

func (c *TIS) GetAccessTokenCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

GetAccessTokenCommonWithContext is the same as GetAccessTokenCommon with the addition of the ability to pass a context and additional request options.

See GetAccessTokenCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*TIS) GetAccessTokenRequest

func (c *TIS) GetAccessTokenRequest(input *GetAccessTokenInput) (req *request.Request, output *GetAccessTokenOutput)

GetAccessTokenRequest generates a "volcengine/request.Request" representing the client's request for the GetAccessToken operation. The "output" return value will be populated with the GetAccessTokenCommon request's response once the request completes successfully.

Use "Send" method on the returned GetAccessTokenCommon Request to send the API call to the service. the "output" return value is not valid until after GetAccessTokenCommon Send returns without error.

See GetAccessToken for more information on using the GetAccessToken API call, and error handling.

// Example sending a request using the GetAccessTokenRequest method.
req, resp := client.GetAccessTokenRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*TIS) GetAccessTokenWithContext

func (c *TIS) GetAccessTokenWithContext(ctx volcengine.Context, input *GetAccessTokenInput, opts ...request.Option) (*GetAccessTokenOutput, error)

GetAccessTokenWithContext is the same as GetAccessToken with the addition of the ability to pass a context and additional request options.

See GetAccessToken for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*TIS) GetQuotaInfo

func (c *TIS) GetQuotaInfo(input *GetQuotaInfoInput) (*GetQuotaInfoOutput, error)

GetQuotaInfo API operation for TIS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for TIS's API operation GetQuotaInfo for usage and error information.

func (*TIS) GetQuotaInfoCommon

func (c *TIS) GetQuotaInfoCommon(input *map[string]interface{}) (*map[string]interface{}, error)

GetQuotaInfoCommon API operation for TIS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for TIS's API operation GetQuotaInfoCommon for usage and error information.

func (*TIS) GetQuotaInfoCommonRequest

func (c *TIS) GetQuotaInfoCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

GetQuotaInfoCommonRequest generates a "volcengine/request.Request" representing the client's request for the GetQuotaInfoCommon operation. The "output" return value will be populated with the GetQuotaInfoCommon request's response once the request completes successfully.

Use "Send" method on the returned GetQuotaInfoCommon Request to send the API call to the service. the "output" return value is not valid until after GetQuotaInfoCommon Send returns without error.

See GetQuotaInfoCommon for more information on using the GetQuotaInfoCommon API call, and error handling.

// Example sending a request using the GetQuotaInfoCommonRequest method.
req, resp := client.GetQuotaInfoCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*TIS) GetQuotaInfoCommonWithContext

func (c *TIS) GetQuotaInfoCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

GetQuotaInfoCommonWithContext is the same as GetQuotaInfoCommon with the addition of the ability to pass a context and additional request options.

See GetQuotaInfoCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*TIS) GetQuotaInfoRequest

func (c *TIS) GetQuotaInfoRequest(input *GetQuotaInfoInput) (req *request.Request, output *GetQuotaInfoOutput)

GetQuotaInfoRequest generates a "volcengine/request.Request" representing the client's request for the GetQuotaInfo operation. The "output" return value will be populated with the GetQuotaInfoCommon request's response once the request completes successfully.

Use "Send" method on the returned GetQuotaInfoCommon Request to send the API call to the service. the "output" return value is not valid until after GetQuotaInfoCommon Send returns without error.

See GetQuotaInfo for more information on using the GetQuotaInfo API call, and error handling.

// Example sending a request using the GetQuotaInfoRequest method.
req, resp := client.GetQuotaInfoRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*TIS) GetQuotaInfoWithContext

func (c *TIS) GetQuotaInfoWithContext(ctx volcengine.Context, input *GetQuotaInfoInput, opts ...request.Option) (*GetQuotaInfoOutput, error)

GetQuotaInfoWithContext is the same as GetQuotaInfo with the addition of the ability to pass a context and additional request options.

See GetQuotaInfo for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*TIS) TopActionDispatch added in v1.1.8

func (c *TIS) TopActionDispatch(input *TopActionDispatchInput) (*TopActionDispatchOutput, error)

TopActionDispatch API operation for TIS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for TIS's API operation TopActionDispatch for usage and error information.

func (*TIS) TopActionDispatchCommon added in v1.1.8

func (c *TIS) TopActionDispatchCommon(input *map[string]interface{}) (*map[string]interface{}, error)

TopActionDispatchCommon API operation for TIS.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCENGINE API reference guide for TIS's API operation TopActionDispatchCommon for usage and error information.

func (*TIS) TopActionDispatchCommonRequest added in v1.1.8

func (c *TIS) TopActionDispatchCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

TopActionDispatchCommonRequest generates a "volcengine/request.Request" representing the client's request for the TopActionDispatchCommon operation. The "output" return value will be populated with the TopActionDispatchCommon request's response once the request completes successfully.

Use "Send" method on the returned TopActionDispatchCommon Request to send the API call to the service. the "output" return value is not valid until after TopActionDispatchCommon Send returns without error.

See TopActionDispatchCommon for more information on using the TopActionDispatchCommon API call, and error handling.

// Example sending a request using the TopActionDispatchCommonRequest method.
req, resp := client.TopActionDispatchCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*TIS) TopActionDispatchCommonWithContext added in v1.1.8

func (c *TIS) TopActionDispatchCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

TopActionDispatchCommonWithContext is the same as TopActionDispatchCommon with the addition of the ability to pass a context and additional request options.

See TopActionDispatchCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*TIS) TopActionDispatchRequest added in v1.1.8

func (c *TIS) TopActionDispatchRequest(input *TopActionDispatchInput) (req *request.Request, output *TopActionDispatchOutput)

TopActionDispatchRequest generates a "volcengine/request.Request" representing the client's request for the TopActionDispatch operation. The "output" return value will be populated with the TopActionDispatchCommon request's response once the request completes successfully.

Use "Send" method on the returned TopActionDispatchCommon Request to send the API call to the service. the "output" return value is not valid until after TopActionDispatchCommon Send returns without error.

See TopActionDispatch for more information on using the TopActionDispatch API call, and error handling.

// Example sending a request using the TopActionDispatchRequest method.
req, resp := client.TopActionDispatchRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*TIS) TopActionDispatchWithContext added in v1.1.8

func (c *TIS) TopActionDispatchWithContext(ctx volcengine.Context, input *TopActionDispatchInput, opts ...request.Option) (*TopActionDispatchOutput, error)

TopActionDispatchWithContext is the same as TopActionDispatch with the addition of the ability to pass a context and additional request options.

See TopActionDispatch for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type TISAPI

type TISAPI interface {
	BuyResourcePackageCommon(*map[string]interface{}) (*map[string]interface{}, error)
	BuyResourcePackageCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	BuyResourcePackageCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	BuyResourcePackage(*BuyResourcePackageInput) (*BuyResourcePackageOutput, error)
	BuyResourcePackageWithContext(volcengine.Context, *BuyResourcePackageInput, ...request.Option) (*BuyResourcePackageOutput, error)
	BuyResourcePackageRequest(*BuyResourcePackageInput) (*request.Request, *BuyResourcePackageOutput)

	GetAccessTokenCommon(*map[string]interface{}) (*map[string]interface{}, error)
	GetAccessTokenCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	GetAccessTokenCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	GetAccessToken(*GetAccessTokenInput) (*GetAccessTokenOutput, error)
	GetAccessTokenWithContext(volcengine.Context, *GetAccessTokenInput, ...request.Option) (*GetAccessTokenOutput, error)
	GetAccessTokenRequest(*GetAccessTokenInput) (*request.Request, *GetAccessTokenOutput)

	GetQuotaInfoCommon(*map[string]interface{}) (*map[string]interface{}, error)
	GetQuotaInfoCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	GetQuotaInfoCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	GetQuotaInfo(*GetQuotaInfoInput) (*GetQuotaInfoOutput, error)
	GetQuotaInfoWithContext(volcengine.Context, *GetQuotaInfoInput, ...request.Option) (*GetQuotaInfoOutput, error)
	GetQuotaInfoRequest(*GetQuotaInfoInput) (*request.Request, *GetQuotaInfoOutput)

	TopActionDispatchCommon(*map[string]interface{}) (*map[string]interface{}, error)
	TopActionDispatchCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	TopActionDispatchCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	TopActionDispatch(*TopActionDispatchInput) (*TopActionDispatchOutput, error)
	TopActionDispatchWithContext(volcengine.Context, *TopActionDispatchInput, ...request.Option) (*TopActionDispatchOutput, error)
	TopActionDispatchRequest(*TopActionDispatchInput) (*request.Request, *TopActionDispatchOutput)
}

TISAPI provides an interface to enable mocking the tis.TIS service client's API operation,

// volcengine sdk func uses an SDK service client to make a request to
// TIS.
func myFunc(svc TISAPI) bool {
    // Make svc.BuyResourcePackage request
}

func main() {
    sess := session.New()
    svc := tis.New(sess)

    myFunc(svc)
}

type TopActionDispatchInput added in v1.1.8

type TopActionDispatchInput struct {

	// ActionName is a required field
	ActionName *string `type:"string" json:",omitempty" required:"true"`

	// RequestJson is a required field
	RequestJson *string `type:"string" json:",omitempty" required:"true"`
	// contains filtered or unexported fields
}

func (TopActionDispatchInput) GoString added in v1.1.8

func (s TopActionDispatchInput) GoString() string

GoString returns the string representation

func (*TopActionDispatchInput) SetActionName added in v1.1.8

SetActionName sets the ActionName field's value.

func (*TopActionDispatchInput) SetRequestJson added in v1.1.8

SetRequestJson sets the RequestJson field's value.

func (TopActionDispatchInput) String added in v1.1.8

func (s TopActionDispatchInput) String() string

String returns the string representation

func (*TopActionDispatchInput) Validate added in v1.1.8

func (s *TopActionDispatchInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TopActionDispatchOutput added in v1.1.8

type TopActionDispatchOutput struct {
	Metadata *response.ResponseMetadata

	ResponseJson *string `type:"string" json:",omitempty"`
	// contains filtered or unexported fields
}

func (TopActionDispatchOutput) GoString added in v1.1.8

func (s TopActionDispatchOutput) GoString() string

GoString returns the string representation

func (*TopActionDispatchOutput) SetResponseJson added in v1.1.8

SetResponseJson sets the ResponseJson field's value.

func (TopActionDispatchOutput) String added in v1.1.8

func (s TopActionDispatchOutput) String() string

String returns the string representation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL