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) 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 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) 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 { 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.UnsubscribeInstance request } func main() { sess := session.New() svc := billing.New(sess) myFunc(svc) }
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