Documentation ¶
Overview ¶
Package billingiface provides an interface to enable mocking the BILLING 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 BILLING
- func (c *BILLING) QueryBalanceAcct(input *QueryBalanceAcctInput) (*QueryBalanceAcctOutput, error)
- func (c *BILLING) QueryBalanceAcctCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *BILLING) QueryBalanceAcctCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *BILLING) QueryBalanceAcctCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *BILLING) QueryBalanceAcctRequest(input *QueryBalanceAcctInput) (req *request.Request, output *QueryBalanceAcctOutput)
- func (c *BILLING) QueryBalanceAcctWithContext(ctx volcengine.Context, input *QueryBalanceAcctInput, opts ...request.Option) (*QueryBalanceAcctOutput, error)
- func (c *BILLING) UnsubscribeInstance(input *UnsubscribeInstanceInput) (*UnsubscribeInstanceOutput, error)
- func (c *BILLING) UnsubscribeInstanceCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *BILLING) UnsubscribeInstanceCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *BILLING) UnsubscribeInstanceCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *BILLING) UnsubscribeInstanceRequest(input *UnsubscribeInstanceInput) (req *request.Request, output *UnsubscribeInstanceOutput)
- func (c *BILLING) UnsubscribeInstanceWithContext(ctx volcengine.Context, input *UnsubscribeInstanceInput, ...) (*UnsubscribeInstanceOutput, error)
- type BILLINGAPI
- type QueryBalanceAcctInput
- type QueryBalanceAcctOutput
- func (s QueryBalanceAcctOutput) GoString() string
- func (s *QueryBalanceAcctOutput) SetAccountID(v int32) *QueryBalanceAcctOutput
- func (s *QueryBalanceAcctOutput) SetArrearsBalance(v string) *QueryBalanceAcctOutput
- func (s *QueryBalanceAcctOutput) SetAvailableBalance(v string) *QueryBalanceAcctOutput
- func (s *QueryBalanceAcctOutput) SetCashBalance(v string) *QueryBalanceAcctOutput
- func (s *QueryBalanceAcctOutput) SetCreditLimit(v string) *QueryBalanceAcctOutput
- func (s *QueryBalanceAcctOutput) SetFreezeAmount(v string) *QueryBalanceAcctOutput
- func (s QueryBalanceAcctOutput) String() string
- type SuccessInstanceInfoForUnsubscribeInstanceOutput
- func (s SuccessInstanceInfoForUnsubscribeInstanceOutput) GoString() string
- func (s *SuccessInstanceInfoForUnsubscribeInstanceOutput) SetInstanceID(v string) *SuccessInstanceInfoForUnsubscribeInstanceOutput
- func (s *SuccessInstanceInfoForUnsubscribeInstanceOutput) SetProduct(v string) *SuccessInstanceInfoForUnsubscribeInstanceOutput
- func (s SuccessInstanceInfoForUnsubscribeInstanceOutput) String() string
- type UnsubscribeInstanceInput
- func (s UnsubscribeInstanceInput) GoString() string
- func (s *UnsubscribeInstanceInput) SetClientToken(v string) *UnsubscribeInstanceInput
- func (s *UnsubscribeInstanceInput) SetInstanceID(v string) *UnsubscribeInstanceInput
- func (s *UnsubscribeInstanceInput) SetProduct(v string) *UnsubscribeInstanceInput
- func (s *UnsubscribeInstanceInput) SetUnsubscribeRelatedInstance(v bool) *UnsubscribeInstanceInput
- func (s UnsubscribeInstanceInput) String() string
- type UnsubscribeInstanceOutput
- func (s UnsubscribeInstanceOutput) GoString() string
- func (s *UnsubscribeInstanceOutput) SetOrderID(v string) *UnsubscribeInstanceOutput
- func (s *UnsubscribeInstanceOutput) SetSuccessInstanceInfos(v []*SuccessInstanceInfoForUnsubscribeInstanceOutput) *UnsubscribeInstanceOutput
- func (s UnsubscribeInstanceOutput) String() string
Constants ¶
const ( ServiceName = "billing" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "billing" // ServiceID is a unique identifer of a specific service. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BILLING ¶
BILLING provides the API operation methods for making requests to BILLING. See this package's package overview docs for details on the service.
BILLING 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) *BILLING
New create int can support ssl or region locate set
func (*BILLING) QueryBalanceAcct ¶ added in v1.0.100
func (c *BILLING) QueryBalanceAcct(input *QueryBalanceAcctInput) (*QueryBalanceAcctOutput, error)
QueryBalanceAcct API operation for BILLING.
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 BILLING's API operation QueryBalanceAcct for usage and error information.
func (*BILLING) QueryBalanceAcctCommon ¶ added in v1.0.100
func (c *BILLING) QueryBalanceAcctCommon(input *map[string]interface{}) (*map[string]interface{}, error)
QueryBalanceAcctCommon API operation for BILLING.
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 BILLING's API operation QueryBalanceAcctCommon for usage and error information.
func (*BILLING) QueryBalanceAcctCommonRequest ¶ added in v1.0.100
func (c *BILLING) QueryBalanceAcctCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
QueryBalanceAcctCommonRequest generates a "volcengine/request.Request" representing the client's request for the QueryBalanceAcctCommon operation. The "output" return value will be populated with the QueryBalanceAcctCommon request's response once the request completes successfully.
Use "Send" method on the returned QueryBalanceAcctCommon Request to send the API call to the service. the "output" return value is not valid until after QueryBalanceAcctCommon Send returns without error.
See QueryBalanceAcctCommon for more information on using the QueryBalanceAcctCommon API call, and error handling.
// Example sending a request using the QueryBalanceAcctCommonRequest method. req, resp := client.QueryBalanceAcctCommonRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*BILLING) QueryBalanceAcctCommonWithContext ¶ added in v1.0.100
func (c *BILLING) QueryBalanceAcctCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
QueryBalanceAcctCommonWithContext is the same as QueryBalanceAcctCommon with the addition of the ability to pass a context and additional request options.
See QueryBalanceAcctCommon 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 (*BILLING) QueryBalanceAcctRequest ¶ added in v1.0.100
func (c *BILLING) QueryBalanceAcctRequest(input *QueryBalanceAcctInput) (req *request.Request, output *QueryBalanceAcctOutput)
QueryBalanceAcctRequest generates a "volcengine/request.Request" representing the client's request for the QueryBalanceAcct operation. The "output" return value will be populated with the QueryBalanceAcctCommon request's response once the request completes successfully.
Use "Send" method on the returned QueryBalanceAcctCommon Request to send the API call to the service. the "output" return value is not valid until after QueryBalanceAcctCommon Send returns without error.
See QueryBalanceAcct for more information on using the QueryBalanceAcct API call, and error handling.
// Example sending a request using the QueryBalanceAcctRequest method. req, resp := client.QueryBalanceAcctRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*BILLING) QueryBalanceAcctWithContext ¶ added in v1.0.100
func (c *BILLING) QueryBalanceAcctWithContext(ctx volcengine.Context, input *QueryBalanceAcctInput, opts ...request.Option) (*QueryBalanceAcctOutput, error)
QueryBalanceAcctWithContext is the same as QueryBalanceAcct with the addition of the ability to pass a context and additional request options.
See QueryBalanceAcct 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 (*BILLING) UnsubscribeInstance ¶
func (c *BILLING) UnsubscribeInstance(input *UnsubscribeInstanceInput) (*UnsubscribeInstanceOutput, error)
UnsubscribeInstance API operation for BILLING.
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 BILLING's API operation UnsubscribeInstance for usage and error information.
func (*BILLING) UnsubscribeInstanceCommon ¶
func (c *BILLING) UnsubscribeInstanceCommon(input *map[string]interface{}) (*map[string]interface{}, error)
UnsubscribeInstanceCommon API operation for BILLING.
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 BILLING's API operation UnsubscribeInstanceCommon for usage and error information.
func (*BILLING) UnsubscribeInstanceCommonRequest ¶
func (c *BILLING) UnsubscribeInstanceCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
UnsubscribeInstanceCommonRequest generates a "volcengine/request.Request" representing the client's request for the UnsubscribeInstanceCommon operation. The "output" return value will be populated with the UnsubscribeInstanceCommon request's response once the request completes successfully.
Use "Send" method on the returned UnsubscribeInstanceCommon Request to send the API call to the service. the "output" return value is not valid until after UnsubscribeInstanceCommon Send returns without error.
See UnsubscribeInstanceCommon for more information on using the UnsubscribeInstanceCommon API call, and error handling.
// Example sending a request using the UnsubscribeInstanceCommonRequest method. req, resp := client.UnsubscribeInstanceCommonRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*BILLING) UnsubscribeInstanceCommonWithContext ¶
func (c *BILLING) UnsubscribeInstanceCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
UnsubscribeInstanceCommonWithContext is the same as UnsubscribeInstanceCommon with the addition of the ability to pass a context and additional request options.
See UnsubscribeInstanceCommon 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 (*BILLING) UnsubscribeInstanceRequest ¶
func (c *BILLING) UnsubscribeInstanceRequest(input *UnsubscribeInstanceInput) (req *request.Request, output *UnsubscribeInstanceOutput)
UnsubscribeInstanceRequest generates a "volcengine/request.Request" representing the client's request for the UnsubscribeInstance operation. The "output" return value will be populated with the UnsubscribeInstanceCommon request's response once the request completes successfully.
Use "Send" method on the returned UnsubscribeInstanceCommon Request to send the API call to the service. the "output" return value is not valid until after UnsubscribeInstanceCommon Send returns without error.
See UnsubscribeInstance for more information on using the UnsubscribeInstance API call, and error handling.
// Example sending a request using the UnsubscribeInstanceRequest method. req, resp := client.UnsubscribeInstanceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*BILLING) UnsubscribeInstanceWithContext ¶
func (c *BILLING) UnsubscribeInstanceWithContext(ctx volcengine.Context, input *UnsubscribeInstanceInput, opts ...request.Option) (*UnsubscribeInstanceOutput, error)
UnsubscribeInstanceWithContext is the same as UnsubscribeInstance with the addition of the ability to pass a context and additional request options.
See UnsubscribeInstance 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 BILLINGAPI ¶
type BILLINGAPI interface { QueryBalanceAcctCommon(*map[string]interface{}) (*map[string]interface{}, error) QueryBalanceAcctCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error) QueryBalanceAcctCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{}) QueryBalanceAcct(*QueryBalanceAcctInput) (*QueryBalanceAcctOutput, error) QueryBalanceAcctWithContext(volcengine.Context, *QueryBalanceAcctInput, ...request.Option) (*QueryBalanceAcctOutput, error) QueryBalanceAcctRequest(*QueryBalanceAcctInput) (*request.Request, *QueryBalanceAcctOutput) UnsubscribeInstanceCommon(*map[string]interface{}) (*map[string]interface{}, error) UnsubscribeInstanceCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error) UnsubscribeInstanceCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{}) UnsubscribeInstance(*UnsubscribeInstanceInput) (*UnsubscribeInstanceOutput, error) UnsubscribeInstanceWithContext(volcengine.Context, *UnsubscribeInstanceInput, ...request.Option) (*UnsubscribeInstanceOutput, error) UnsubscribeInstanceRequest(*UnsubscribeInstanceInput) (*request.Request, *UnsubscribeInstanceOutput) }
BILLINGAPI provides an interface to enable mocking the billing.BILLING service client's API operation,
// volcengine sdk func uses an SDK service client to make a request to // BILLING. func myFunc(svc BILLINGAPI) bool { // Make svc.QueryBalanceAcct request } func main() { sess := session.New() svc := billing.New(sess) myFunc(svc) }
type QueryBalanceAcctInput ¶ added in v1.0.100
type QueryBalanceAcctInput struct {
// contains filtered or unexported fields
}
func (QueryBalanceAcctInput) GoString ¶ added in v1.0.100
func (s QueryBalanceAcctInput) GoString() string
GoString returns the string representation
func (QueryBalanceAcctInput) String ¶ added in v1.0.100
func (s QueryBalanceAcctInput) String() string
String returns the string representation
type QueryBalanceAcctOutput ¶ added in v1.0.100
type QueryBalanceAcctOutput struct { Metadata *response.ResponseMetadata AccountID *int32 `type:"int32"` ArrearsBalance *string `type:"string"` AvailableBalance *string `type:"string"` CashBalance *string `type:"string"` CreditLimit *string `type:"string"` FreezeAmount *string `type:"string"` // contains filtered or unexported fields }
func (QueryBalanceAcctOutput) GoString ¶ added in v1.0.100
func (s QueryBalanceAcctOutput) GoString() string
GoString returns the string representation
func (*QueryBalanceAcctOutput) SetAccountID ¶ added in v1.0.100
func (s *QueryBalanceAcctOutput) SetAccountID(v int32) *QueryBalanceAcctOutput
SetAccountID sets the AccountID field's value.
func (*QueryBalanceAcctOutput) SetArrearsBalance ¶ added in v1.0.100
func (s *QueryBalanceAcctOutput) SetArrearsBalance(v string) *QueryBalanceAcctOutput
SetArrearsBalance sets the ArrearsBalance field's value.
func (*QueryBalanceAcctOutput) SetAvailableBalance ¶ added in v1.0.100
func (s *QueryBalanceAcctOutput) SetAvailableBalance(v string) *QueryBalanceAcctOutput
SetAvailableBalance sets the AvailableBalance field's value.
func (*QueryBalanceAcctOutput) SetCashBalance ¶ added in v1.0.100
func (s *QueryBalanceAcctOutput) SetCashBalance(v string) *QueryBalanceAcctOutput
SetCashBalance sets the CashBalance field's value.
func (*QueryBalanceAcctOutput) SetCreditLimit ¶ added in v1.0.100
func (s *QueryBalanceAcctOutput) SetCreditLimit(v string) *QueryBalanceAcctOutput
SetCreditLimit sets the CreditLimit field's value.
func (*QueryBalanceAcctOutput) SetFreezeAmount ¶ added in v1.0.100
func (s *QueryBalanceAcctOutput) SetFreezeAmount(v string) *QueryBalanceAcctOutput
SetFreezeAmount sets the FreezeAmount field's value.
func (QueryBalanceAcctOutput) String ¶ added in v1.0.100
func (s QueryBalanceAcctOutput) String() string
String returns the string representation
type SuccessInstanceInfoForUnsubscribeInstanceOutput ¶
type SuccessInstanceInfoForUnsubscribeInstanceOutput struct { InstanceID *string `type:"string"` Product *string `type:"string"` // contains filtered or unexported fields }
func (SuccessInstanceInfoForUnsubscribeInstanceOutput) GoString ¶
func (s SuccessInstanceInfoForUnsubscribeInstanceOutput) GoString() string
GoString returns the string representation
func (*SuccessInstanceInfoForUnsubscribeInstanceOutput) SetInstanceID ¶
func (s *SuccessInstanceInfoForUnsubscribeInstanceOutput) SetInstanceID(v string) *SuccessInstanceInfoForUnsubscribeInstanceOutput
SetInstanceID sets the InstanceID field's value.
func (*SuccessInstanceInfoForUnsubscribeInstanceOutput) SetProduct ¶
func (s *SuccessInstanceInfoForUnsubscribeInstanceOutput) SetProduct(v string) *SuccessInstanceInfoForUnsubscribeInstanceOutput
SetProduct sets the Product field's value.
func (SuccessInstanceInfoForUnsubscribeInstanceOutput) String ¶
func (s SuccessInstanceInfoForUnsubscribeInstanceOutput) String() string
String returns the string representation
type UnsubscribeInstanceInput ¶
type UnsubscribeInstanceInput struct { ClientToken *string `type:"string"` InstanceID *string `type:"string"` Product *string `type:"string"` UnsubscribeRelatedInstance *bool `type:"boolean"` // contains filtered or unexported fields }
func (UnsubscribeInstanceInput) GoString ¶
func (s UnsubscribeInstanceInput) GoString() string
GoString returns the string representation
func (*UnsubscribeInstanceInput) SetClientToken ¶
func (s *UnsubscribeInstanceInput) SetClientToken(v string) *UnsubscribeInstanceInput
SetClientToken sets the ClientToken field's value.
func (*UnsubscribeInstanceInput) SetInstanceID ¶
func (s *UnsubscribeInstanceInput) SetInstanceID(v string) *UnsubscribeInstanceInput
SetInstanceID sets the InstanceID field's value.
func (*UnsubscribeInstanceInput) SetProduct ¶
func (s *UnsubscribeInstanceInput) SetProduct(v string) *UnsubscribeInstanceInput
SetProduct sets the Product field's value.
func (*UnsubscribeInstanceInput) SetUnsubscribeRelatedInstance ¶
func (s *UnsubscribeInstanceInput) SetUnsubscribeRelatedInstance(v bool) *UnsubscribeInstanceInput
SetUnsubscribeRelatedInstance sets the UnsubscribeRelatedInstance field's value.
func (UnsubscribeInstanceInput) String ¶
func (s UnsubscribeInstanceInput) String() string
String returns the string representation
type UnsubscribeInstanceOutput ¶
type UnsubscribeInstanceOutput struct { Metadata *response.ResponseMetadata OrderID *string `type:"string"` SuccessInstanceInfos []*SuccessInstanceInfoForUnsubscribeInstanceOutput `type:"list"` // contains filtered or unexported fields }
func (UnsubscribeInstanceOutput) GoString ¶
func (s UnsubscribeInstanceOutput) GoString() string
GoString returns the string representation
func (*UnsubscribeInstanceOutput) SetOrderID ¶
func (s *UnsubscribeInstanceOutput) SetOrderID(v string) *UnsubscribeInstanceOutput
SetOrderID sets the OrderID field's value.
func (*UnsubscribeInstanceOutput) SetSuccessInstanceInfos ¶
func (s *UnsubscribeInstanceOutput) SetSuccessInstanceInfos(v []*SuccessInstanceInfoForUnsubscribeInstanceOutput) *UnsubscribeInstanceOutput
SetSuccessInstanceInfos sets the SuccessInstanceInfos field's value.
func (UnsubscribeInstanceOutput) String ¶
func (s UnsubscribeInstanceOutput) String() string
String returns the string representation