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
- type BuyResourcePackageInput
- func (s BuyResourcePackageInput) GoString() string
- func (s *BuyResourcePackageInput) SetDeviceName(v string) *BuyResourcePackageInput
- func (s *BuyResourcePackageInput) SetItem(v string) *BuyResourcePackageInput
- func (s *BuyResourcePackageInput) SetProductKey(v string) *BuyResourcePackageInput
- func (s BuyResourcePackageInput) String() string
- func (s *BuyResourcePackageInput) Validate() error
- type BuyResourcePackageOutput
- type GetAccessTokenInput
- type GetAccessTokenOutput
- type GetQuotaInfoInput
- type GetQuotaInfoOutput
- type QuotaInfoListForGetQuotaInfoOutput
- func (s QuotaInfoListForGetQuotaInfoOutput) GoString() string
- func (s *QuotaInfoListForGetQuotaInfoOutput) SetAvailableAmount(v int32) *QuotaInfoListForGetQuotaInfoOutput
- func (s *QuotaInfoListForGetQuotaInfoOutput) SetPackageName(v string) *QuotaInfoListForGetQuotaInfoOutput
- func (s *QuotaInfoListForGetQuotaInfoOutput) SetTotalAmount(v int32) *QuotaInfoListForGetQuotaInfoOutput
- func (s QuotaInfoListForGetQuotaInfoOutput) String() string
- type TIS
- func (c *TIS) BuyResourcePackage(input *BuyResourcePackageInput) (*BuyResourcePackageOutput, error)
- func (c *TIS) BuyResourcePackageCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *TIS) BuyResourcePackageCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *TIS) BuyResourcePackageCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *TIS) BuyResourcePackageRequest(input *BuyResourcePackageInput) (req *request.Request, output *BuyResourcePackageOutput)
- func (c *TIS) BuyResourcePackageWithContext(ctx volcengine.Context, input *BuyResourcePackageInput, opts ...request.Option) (*BuyResourcePackageOutput, error)
- func (c *TIS) GetAccessToken(input *GetAccessTokenInput) (*GetAccessTokenOutput, error)
- func (c *TIS) GetAccessTokenCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *TIS) GetAccessTokenCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *TIS) GetAccessTokenCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *TIS) GetAccessTokenRequest(input *GetAccessTokenInput) (req *request.Request, output *GetAccessTokenOutput)
- func (c *TIS) GetAccessTokenWithContext(ctx volcengine.Context, input *GetAccessTokenInput, opts ...request.Option) (*GetAccessTokenOutput, error)
- func (c *TIS) GetQuotaInfo(input *GetQuotaInfoInput) (*GetQuotaInfoOutput, error)
- func (c *TIS) GetQuotaInfoCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *TIS) GetQuotaInfoCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *TIS) GetQuotaInfoCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *TIS) GetQuotaInfoRequest(input *GetQuotaInfoInput) (req *request.Request, output *GetQuotaInfoOutput)
- func (c *TIS) GetQuotaInfoWithContext(ctx volcengine.Context, input *GetQuotaInfoInput, opts ...request.Option) (*GetQuotaInfoOutput, error)
- type TISAPI
Constants ¶
const ( // EnumOfitemForBuyResourcePackageInputTest01 is a EnumOfitemForBuyResourcePackageInput enum value EnumOfitemForBuyResourcePackageInputTest01 = "test_01" // EnumOfitemForBuyResourcePackageInputRecording3 is a EnumOfitemForBuyResourcePackageInput enum value EnumOfitemForBuyResourcePackageInputRecording3 = "recording_3" // EnumOfitemForBuyResourcePackageInputRecording10 is a EnumOfitemForBuyResourcePackageInput enum value EnumOfitemForBuyResourcePackageInputRecording10 = "recording_10" // EnumOfitemForBuyResourcePackageInputVoice3 is a EnumOfitemForBuyResourcePackageInput enum value EnumOfitemForBuyResourcePackageInputVoice3 = "voice_3" // EnumOfitemForBuyResourcePackageInputVoice10 is a EnumOfitemForBuyResourcePackageInput enum value EnumOfitemForBuyResourcePackageInputVoice10 = "voice_10" // EnumOfitemForBuyResourcePackageInputBigmodel32k is a EnumOfitemForBuyResourcePackageInput enum value EnumOfitemForBuyResourcePackageInputBigmodel32k = "bigmodel_32k" // EnumOfitemForBuyResourcePackageInputBigmodel128k is a EnumOfitemForBuyResourcePackageInput enum value EnumOfitemForBuyResourcePackageInputBigmodel128k = "bigmodel_128k" // EnumOfitemForBuyResourcePackageInputImage10 is a EnumOfitemForBuyResourcePackageInput enum value EnumOfitemForBuyResourcePackageInputImage10 = "image_10" // EnumOfitemForBuyResourcePackageInputImage50 is a EnumOfitemForBuyResourcePackageInput enum value EnumOfitemForBuyResourcePackageInputImage50 = "image_50" )
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" enum:"EnumOfitemForBuyResourcePackageInput"` // 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 ¶
func (s *BuyResourcePackageInput) SetDeviceName(v string) *BuyResourcePackageInput
SetDeviceName sets the DeviceName field's value.
func (*BuyResourcePackageInput) SetItem ¶
func (s *BuyResourcePackageInput) SetItem(v string) *BuyResourcePackageInput
SetItem sets the Item field's value.
func (*BuyResourcePackageInput) SetProductKey ¶
func (s *BuyResourcePackageInput) SetProductKey(v string) *BuyResourcePackageInput
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 ¶
func (s *BuyResourcePackageOutput) SetOrderNo(v string) *BuyResourcePackageOutput
SetOrderNo sets the OrderNo field's value.
func (*BuyResourcePackageOutput) SetSuccess ¶
func (s *BuyResourcePackageOutput) SetSuccess(v bool) *BuyResourcePackageOutput
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 ¶
func (s *GetAccessTokenInput) SetAppId(v string) *GetAccessTokenInput
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 ¶
func (s *GetQuotaInfoOutput) SetQuotaInfoList(v []*QuotaInfoListForGetQuotaInfoOutput) *GetQuotaInfoOutput
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"` PackageName *string `type:"string" json:"packageName,omitempty"` TotalAmount *int32 `type:"int32" json:"totalAmount,omitempty"` // contains filtered or unexported fields }
func (QuotaInfoListForGetQuotaInfoOutput) GoString ¶
func (s QuotaInfoListForGetQuotaInfoOutput) GoString() string
GoString returns the string representation
func (*QuotaInfoListForGetQuotaInfoOutput) SetAvailableAmount ¶
func (s *QuotaInfoListForGetQuotaInfoOutput) SetAvailableAmount(v int32) *QuotaInfoListForGetQuotaInfoOutput
SetAvailableAmount sets the AvailableAmount field's value.
func (*QuotaInfoListForGetQuotaInfoOutput) SetPackageName ¶
func (s *QuotaInfoListForGetQuotaInfoOutput) SetPackageName(v string) *QuotaInfoListForGetQuotaInfoOutput
SetPackageName sets the PackageName field's value.
func (*QuotaInfoListForGetQuotaInfoOutput) SetTotalAmount ¶
func (s *QuotaInfoListForGetQuotaInfoOutput) SetTotalAmount(v int32) *QuotaInfoListForGetQuotaInfoOutput
SetTotalAmount sets the TotalAmount field's value.
func (QuotaInfoListForGetQuotaInfoOutput) String ¶
func (s QuotaInfoListForGetQuotaInfoOutput) String() string
String returns the string representation
type TIS ¶
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 ¶
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 ¶
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.
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) }
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) }