resourcecenter

package
v1.2.21 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package resourcecenteriface provides an interface to enable mocking the RESOURCECENTER 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 (
	// EnumOfGroupByKeyForGetResourceCountsInputResourceType is a EnumOfGroupByKeyForGetResourceCountsInput enum value
	EnumOfGroupByKeyForGetResourceCountsInputResourceType = "ResourceType"

	// EnumOfGroupByKeyForGetResourceCountsInputRegion is a EnumOfGroupByKeyForGetResourceCountsInput enum value
	EnumOfGroupByKeyForGetResourceCountsInputRegion = "Region"
)
View Source
const (
	// EnumOfSortOrderForSearchResourcesInputAsc is a EnumOfSortOrderForSearchResourcesInput enum value
	EnumOfSortOrderForSearchResourcesInputAsc = "Asc"

	// EnumOfSortOrderForSearchResourcesInputDesc is a EnumOfSortOrderForSearchResourcesInput enum value
	EnumOfSortOrderForSearchResourcesInputDesc = "Desc"
)
View Source
const (
	ServiceName = "resourcecenter" // Name of service.
	EndpointsID = ServiceName      // ID to lookup a service endpoint with.
	ServiceID   = "resourcecenter" // ServiceID is a unique identifer of a specific service.
)

Service information constants

View Source
const (
	// EnumOfSortByForSearchResourcesInputCreateTime is a EnumOfSortByForSearchResourcesInput enum value
	EnumOfSortByForSearchResourcesInputCreateTime = "CreateTime"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DisableResourceCenterInput

type DisableResourceCenterInput struct {
	// contains filtered or unexported fields
}

func (DisableResourceCenterInput) GoString

func (s DisableResourceCenterInput) GoString() string

GoString returns the string representation

func (DisableResourceCenterInput) String

String returns the string representation

type DisableResourceCenterOutput

type DisableResourceCenterOutput struct {
	Metadata *response.ResponseMetadata
	// contains filtered or unexported fields
}

func (DisableResourceCenterOutput) GoString

func (s DisableResourceCenterOutput) GoString() string

GoString returns the string representation

func (DisableResourceCenterOutput) String

String returns the string representation

type EnableResourceCenterInput

type EnableResourceCenterInput struct {
	// contains filtered or unexported fields
}

func (EnableResourceCenterInput) GoString

func (s EnableResourceCenterInput) GoString() string

GoString returns the string representation

func (EnableResourceCenterInput) String

func (s EnableResourceCenterInput) String() string

String returns the string representation

type EnableResourceCenterOutput

type EnableResourceCenterOutput struct {
	Metadata *response.ResponseMetadata
	// contains filtered or unexported fields
}

func (EnableResourceCenterOutput) GoString

func (s EnableResourceCenterOutput) GoString() string

GoString returns the string representation

func (EnableResourceCenterOutput) String

String returns the string representation

type FilterForGetResourceCountsInput

type FilterForGetResourceCountsInput struct {
	Key *string `type:"string" json:",omitempty"`

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

	Values []*string `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (FilterForGetResourceCountsInput) GoString

GoString returns the string representation

func (*FilterForGetResourceCountsInput) SetKey

SetKey sets the Key field's value.

func (*FilterForGetResourceCountsInput) SetMatchType

SetMatchType sets the MatchType field's value.

func (*FilterForGetResourceCountsInput) SetValues

SetValues sets the Values field's value.

func (FilterForGetResourceCountsInput) String

String returns the string representation

type FilterForGetResourceCountsOutput

type FilterForGetResourceCountsOutput struct {
	Key *string `type:"string" json:",omitempty"`

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

	Values []*string `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (FilterForGetResourceCountsOutput) GoString

GoString returns the string representation

func (*FilterForGetResourceCountsOutput) SetKey

SetKey sets the Key field's value.

func (*FilterForGetResourceCountsOutput) SetMatchType

SetMatchType sets the MatchType field's value.

func (*FilterForGetResourceCountsOutput) SetValues

SetValues sets the Values field's value.

func (FilterForGetResourceCountsOutput) String

String returns the string representation

type FilterForSearchResourcesInput

type FilterForSearchResourcesInput struct {
	Key *string `type:"string" json:",omitempty"`

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

	Values []*string `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (FilterForSearchResourcesInput) GoString

GoString returns the string representation

func (*FilterForSearchResourcesInput) SetKey

SetKey sets the Key field's value.

func (*FilterForSearchResourcesInput) SetMatchType

SetMatchType sets the MatchType field's value.

func (*FilterForSearchResourcesInput) SetValues

SetValues sets the Values field's value.

func (FilterForSearchResourcesInput) String

String returns the string representation

type GetResourceCenterStatusInput

type GetResourceCenterStatusInput struct {
	// contains filtered or unexported fields
}

func (GetResourceCenterStatusInput) GoString

func (s GetResourceCenterStatusInput) GoString() string

GoString returns the string representation

func (GetResourceCenterStatusInput) String

String returns the string representation

type GetResourceCenterStatusOutput

type GetResourceCenterStatusOutput struct {
	Metadata *response.ResponseMetadata

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

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

func (GetResourceCenterStatusOutput) GoString

GoString returns the string representation

func (*GetResourceCenterStatusOutput) SetInitStatus

SetInitStatus sets the InitStatus field's value.

func (*GetResourceCenterStatusOutput) SetServiceStatus

SetServiceStatus sets the ServiceStatus field's value.

func (GetResourceCenterStatusOutput) String

String returns the string representation

type GetResourceCountsInput

type GetResourceCountsInput struct {
	Filter []*FilterForGetResourceCountsInput `type:"list" json:",omitempty"`

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

func (GetResourceCountsInput) GoString

func (s GetResourceCountsInput) GoString() string

GoString returns the string representation

func (*GetResourceCountsInput) SetFilter

SetFilter sets the Filter field's value.

func (*GetResourceCountsInput) SetGroupByKey

SetGroupByKey sets the GroupByKey field's value.

func (GetResourceCountsInput) String

func (s GetResourceCountsInput) String() string

String returns the string representation

func (*GetResourceCountsInput) Validate

func (s *GetResourceCountsInput) Validate() error

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

type GetResourceCountsOutput

type GetResourceCountsOutput struct {
	Metadata *response.ResponseMetadata

	Filter []*FilterForGetResourceCountsOutput `type:"list" json:",omitempty"`

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

	ResourceCounts []*ResourceCountForGetResourceCountsOutput `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (GetResourceCountsOutput) GoString

func (s GetResourceCountsOutput) GoString() string

GoString returns the string representation

func (*GetResourceCountsOutput) SetFilter

SetFilter sets the Filter field's value.

func (*GetResourceCountsOutput) SetGroupByKey

SetGroupByKey sets the GroupByKey field's value.

func (*GetResourceCountsOutput) SetResourceCounts

SetResourceCounts sets the ResourceCounts field's value.

func (GetResourceCountsOutput) String

func (s GetResourceCountsOutput) String() string

String returns the string representation

type ListResourceTypesInput

type ListResourceTypesInput struct {
	// contains filtered or unexported fields
}

func (ListResourceTypesInput) GoString

func (s ListResourceTypesInput) GoString() string

GoString returns the string representation

func (ListResourceTypesInput) String

func (s ListResourceTypesInput) String() string

String returns the string representation

type ListResourceTypesOutput

type ListResourceTypesOutput struct {
	Metadata *response.ResponseMetadata

	ResourceTypes []*ResourceTypeForListResourceTypesOutput `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ListResourceTypesOutput) GoString

func (s ListResourceTypesOutput) GoString() string

GoString returns the string representation

func (*ListResourceTypesOutput) SetResourceTypes

SetResourceTypes sets the ResourceTypes field's value.

func (ListResourceTypesOutput) String

func (s ListResourceTypesOutput) String() string

String returns the string representation

type RESOURCECENTER

type RESOURCECENTER struct {
	*client.Client
}

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

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

func New

New create int can support ssl or region locate set

func (*RESOURCECENTER) DisableResourceCenter

func (c *RESOURCECENTER) DisableResourceCenter(input *DisableResourceCenterInput) (*DisableResourceCenterOutput, error)

DisableResourceCenter API operation for RESOURCECENTER.

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 RESOURCECENTER's API operation DisableResourceCenter for usage and error information.

func (*RESOURCECENTER) DisableResourceCenterCommon

func (c *RESOURCECENTER) DisableResourceCenterCommon(input *map[string]interface{}) (*map[string]interface{}, error)

DisableResourceCenterCommon API operation for RESOURCECENTER.

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 RESOURCECENTER's API operation DisableResourceCenterCommon for usage and error information.

func (*RESOURCECENTER) DisableResourceCenterCommonRequest

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

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

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

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

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

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

func (*RESOURCECENTER) DisableResourceCenterCommonWithContext

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

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

See DisableResourceCenterCommon 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 (*RESOURCECENTER) DisableResourceCenterRequest

func (c *RESOURCECENTER) DisableResourceCenterRequest(input *DisableResourceCenterInput) (req *request.Request, output *DisableResourceCenterOutput)

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

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

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

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

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

func (*RESOURCECENTER) DisableResourceCenterWithContext

func (c *RESOURCECENTER) DisableResourceCenterWithContext(ctx volcengine.Context, input *DisableResourceCenterInput, opts ...request.Option) (*DisableResourceCenterOutput, error)

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

See DisableResourceCenter 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 (*RESOURCECENTER) EnableResourceCenter

func (c *RESOURCECENTER) EnableResourceCenter(input *EnableResourceCenterInput) (*EnableResourceCenterOutput, error)

EnableResourceCenter API operation for RESOURCECENTER.

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 RESOURCECENTER's API operation EnableResourceCenter for usage and error information.

func (*RESOURCECENTER) EnableResourceCenterCommon

func (c *RESOURCECENTER) EnableResourceCenterCommon(input *map[string]interface{}) (*map[string]interface{}, error)

EnableResourceCenterCommon API operation for RESOURCECENTER.

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 RESOURCECENTER's API operation EnableResourceCenterCommon for usage and error information.

func (*RESOURCECENTER) EnableResourceCenterCommonRequest

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

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

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

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

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

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

func (*RESOURCECENTER) EnableResourceCenterCommonWithContext

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

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

See EnableResourceCenterCommon 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 (*RESOURCECENTER) EnableResourceCenterRequest

func (c *RESOURCECENTER) EnableResourceCenterRequest(input *EnableResourceCenterInput) (req *request.Request, output *EnableResourceCenterOutput)

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

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

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

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

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

func (*RESOURCECENTER) EnableResourceCenterWithContext

func (c *RESOURCECENTER) EnableResourceCenterWithContext(ctx volcengine.Context, input *EnableResourceCenterInput, opts ...request.Option) (*EnableResourceCenterOutput, error)

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

See EnableResourceCenter 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 (*RESOURCECENTER) GetResourceCenterStatus

func (c *RESOURCECENTER) GetResourceCenterStatus(input *GetResourceCenterStatusInput) (*GetResourceCenterStatusOutput, error)

GetResourceCenterStatus API operation for RESOURCECENTER.

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 RESOURCECENTER's API operation GetResourceCenterStatus for usage and error information.

func (*RESOURCECENTER) GetResourceCenterStatusCommon

func (c *RESOURCECENTER) GetResourceCenterStatusCommon(input *map[string]interface{}) (*map[string]interface{}, error)

GetResourceCenterStatusCommon API operation for RESOURCECENTER.

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 RESOURCECENTER's API operation GetResourceCenterStatusCommon for usage and error information.

func (*RESOURCECENTER) GetResourceCenterStatusCommonRequest

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

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

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

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

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

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

func (*RESOURCECENTER) GetResourceCenterStatusCommonWithContext

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

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

See GetResourceCenterStatusCommon 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 (*RESOURCECENTER) GetResourceCenterStatusRequest

func (c *RESOURCECENTER) GetResourceCenterStatusRequest(input *GetResourceCenterStatusInput) (req *request.Request, output *GetResourceCenterStatusOutput)

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

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

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

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

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

func (*RESOURCECENTER) GetResourceCenterStatusWithContext

func (c *RESOURCECENTER) GetResourceCenterStatusWithContext(ctx volcengine.Context, input *GetResourceCenterStatusInput, opts ...request.Option) (*GetResourceCenterStatusOutput, error)

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

See GetResourceCenterStatus 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 (*RESOURCECENTER) GetResourceCounts

func (c *RESOURCECENTER) GetResourceCounts(input *GetResourceCountsInput) (*GetResourceCountsOutput, error)

GetResourceCounts API operation for RESOURCECENTER.

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 RESOURCECENTER's API operation GetResourceCounts for usage and error information.

func (*RESOURCECENTER) GetResourceCountsCommon

func (c *RESOURCECENTER) GetResourceCountsCommon(input *map[string]interface{}) (*map[string]interface{}, error)

GetResourceCountsCommon API operation for RESOURCECENTER.

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 RESOURCECENTER's API operation GetResourceCountsCommon for usage and error information.

func (*RESOURCECENTER) GetResourceCountsCommonRequest

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

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

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

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

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

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

func (*RESOURCECENTER) GetResourceCountsCommonWithContext

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

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

See GetResourceCountsCommon 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 (*RESOURCECENTER) GetResourceCountsRequest

func (c *RESOURCECENTER) GetResourceCountsRequest(input *GetResourceCountsInput) (req *request.Request, output *GetResourceCountsOutput)

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

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

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

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

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

func (*RESOURCECENTER) GetResourceCountsWithContext

func (c *RESOURCECENTER) GetResourceCountsWithContext(ctx volcengine.Context, input *GetResourceCountsInput, opts ...request.Option) (*GetResourceCountsOutput, error)

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

See GetResourceCounts 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 (*RESOURCECENTER) ListResourceTypes

func (c *RESOURCECENTER) ListResourceTypes(input *ListResourceTypesInput) (*ListResourceTypesOutput, error)

ListResourceTypes API operation for RESOURCECENTER.

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 RESOURCECENTER's API operation ListResourceTypes for usage and error information.

func (*RESOURCECENTER) ListResourceTypesCommon

func (c *RESOURCECENTER) ListResourceTypesCommon(input *map[string]interface{}) (*map[string]interface{}, error)

ListResourceTypesCommon API operation for RESOURCECENTER.

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 RESOURCECENTER's API operation ListResourceTypesCommon for usage and error information.

func (*RESOURCECENTER) ListResourceTypesCommonRequest

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

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

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

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

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

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

func (*RESOURCECENTER) ListResourceTypesCommonWithContext

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

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

See ListResourceTypesCommon 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 (*RESOURCECENTER) ListResourceTypesRequest

func (c *RESOURCECENTER) ListResourceTypesRequest(input *ListResourceTypesInput) (req *request.Request, output *ListResourceTypesOutput)

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

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

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

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

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

func (*RESOURCECENTER) ListResourceTypesWithContext

func (c *RESOURCECENTER) ListResourceTypesWithContext(ctx volcengine.Context, input *ListResourceTypesInput, opts ...request.Option) (*ListResourceTypesOutput, error)

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

See ListResourceTypes 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 (*RESOURCECENTER) SearchResources

func (c *RESOURCECENTER) SearchResources(input *SearchResourcesInput) (*SearchResourcesOutput, error)

SearchResources API operation for RESOURCECENTER.

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 RESOURCECENTER's API operation SearchResources for usage and error information.

func (*RESOURCECENTER) SearchResourcesCommon

func (c *RESOURCECENTER) SearchResourcesCommon(input *map[string]interface{}) (*map[string]interface{}, error)

SearchResourcesCommon API operation for RESOURCECENTER.

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 RESOURCECENTER's API operation SearchResourcesCommon for usage and error information.

func (*RESOURCECENTER) SearchResourcesCommonRequest

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

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

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

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

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

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

func (*RESOURCECENTER) SearchResourcesCommonWithContext

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

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

See SearchResourcesCommon 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 (*RESOURCECENTER) SearchResourcesRequest

func (c *RESOURCECENTER) SearchResourcesRequest(input *SearchResourcesInput) (req *request.Request, output *SearchResourcesOutput)

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

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

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

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

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

func (*RESOURCECENTER) SearchResourcesWithContext

func (c *RESOURCECENTER) SearchResourcesWithContext(ctx volcengine.Context, input *SearchResourcesInput, opts ...request.Option) (*SearchResourcesOutput, error)

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

See SearchResources 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 RESOURCECENTERAPI

type RESOURCECENTERAPI interface {
	DisableResourceCenterCommon(*map[string]interface{}) (*map[string]interface{}, error)
	DisableResourceCenterCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	DisableResourceCenterCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	DisableResourceCenter(*DisableResourceCenterInput) (*DisableResourceCenterOutput, error)
	DisableResourceCenterWithContext(volcengine.Context, *DisableResourceCenterInput, ...request.Option) (*DisableResourceCenterOutput, error)
	DisableResourceCenterRequest(*DisableResourceCenterInput) (*request.Request, *DisableResourceCenterOutput)

	EnableResourceCenterCommon(*map[string]interface{}) (*map[string]interface{}, error)
	EnableResourceCenterCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	EnableResourceCenterCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	EnableResourceCenter(*EnableResourceCenterInput) (*EnableResourceCenterOutput, error)
	EnableResourceCenterWithContext(volcengine.Context, *EnableResourceCenterInput, ...request.Option) (*EnableResourceCenterOutput, error)
	EnableResourceCenterRequest(*EnableResourceCenterInput) (*request.Request, *EnableResourceCenterOutput)

	GetResourceCenterStatusCommon(*map[string]interface{}) (*map[string]interface{}, error)
	GetResourceCenterStatusCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	GetResourceCenterStatusCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	GetResourceCenterStatus(*GetResourceCenterStatusInput) (*GetResourceCenterStatusOutput, error)
	GetResourceCenterStatusWithContext(volcengine.Context, *GetResourceCenterStatusInput, ...request.Option) (*GetResourceCenterStatusOutput, error)
	GetResourceCenterStatusRequest(*GetResourceCenterStatusInput) (*request.Request, *GetResourceCenterStatusOutput)

	GetResourceCountsCommon(*map[string]interface{}) (*map[string]interface{}, error)
	GetResourceCountsCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	GetResourceCountsCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	GetResourceCounts(*GetResourceCountsInput) (*GetResourceCountsOutput, error)
	GetResourceCountsWithContext(volcengine.Context, *GetResourceCountsInput, ...request.Option) (*GetResourceCountsOutput, error)
	GetResourceCountsRequest(*GetResourceCountsInput) (*request.Request, *GetResourceCountsOutput)

	ListResourceTypesCommon(*map[string]interface{}) (*map[string]interface{}, error)
	ListResourceTypesCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ListResourceTypesCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ListResourceTypes(*ListResourceTypesInput) (*ListResourceTypesOutput, error)
	ListResourceTypesWithContext(volcengine.Context, *ListResourceTypesInput, ...request.Option) (*ListResourceTypesOutput, error)
	ListResourceTypesRequest(*ListResourceTypesInput) (*request.Request, *ListResourceTypesOutput)

	SearchResourcesCommon(*map[string]interface{}) (*map[string]interface{}, error)
	SearchResourcesCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	SearchResourcesCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	SearchResources(*SearchResourcesInput) (*SearchResourcesOutput, error)
	SearchResourcesWithContext(volcengine.Context, *SearchResourcesInput, ...request.Option) (*SearchResourcesOutput, error)
	SearchResourcesRequest(*SearchResourcesInput) (*request.Request, *SearchResourcesOutput)
}

RESOURCECENTERAPI provides an interface to enable mocking the resourcecenter.RESOURCECENTER service client's API operation,

// volcengine sdk func uses an SDK service client to make a request to
// RESOURCECENTER.
func myFunc(svc RESOURCECENTERAPI) bool {
    // Make svc.DisableResourceCenter request
}

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

    myFunc(svc)
}

type ResourceCountForGetResourceCountsOutput

type ResourceCountForGetResourceCountsOutput struct {
	Count *int32 `type:"int32" json:",omitempty"`

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

func (ResourceCountForGetResourceCountsOutput) GoString

GoString returns the string representation

func (*ResourceCountForGetResourceCountsOutput) SetCount

SetCount sets the Count field's value.

func (*ResourceCountForGetResourceCountsOutput) SetGroupName

SetGroupName sets the GroupName field's value.

func (ResourceCountForGetResourceCountsOutput) String

String returns the string representation

type ResourceForSearchResourcesOutput

type ResourceForSearchResourcesOutput struct {
	AccountID *int32 `type:"int32" json:",omitempty"`

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

	PrivateIpAddress []*string `type:"list" json:",omitempty"`

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

	PublicIpAddress []*string `type:"list" json:",omitempty"`

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

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

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

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

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

	Tags []*TagForSearchResourcesOutput `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ResourceForSearchResourcesOutput) GoString

GoString returns the string representation

func (*ResourceForSearchResourcesOutput) SetAccountID

SetAccountID sets the AccountID field's value.

func (*ResourceForSearchResourcesOutput) SetCreateTime

SetCreateTime sets the CreateTime field's value.

func (*ResourceForSearchResourcesOutput) SetPrivateIpAddress

SetPrivateIpAddress sets the PrivateIpAddress field's value.

func (*ResourceForSearchResourcesOutput) SetProjectName

SetProjectName sets the ProjectName field's value.

func (*ResourceForSearchResourcesOutput) SetPublicIpAddress

SetPublicIpAddress sets the PublicIpAddress field's value.

func (*ResourceForSearchResourcesOutput) SetRegion

SetRegion sets the Region field's value.

func (*ResourceForSearchResourcesOutput) SetResourceID

SetResourceID sets the ResourceID field's value.

func (*ResourceForSearchResourcesOutput) SetResourceName

SetResourceName sets the ResourceName field's value.

func (*ResourceForSearchResourcesOutput) SetResourceType

SetResourceType sets the ResourceType field's value.

func (*ResourceForSearchResourcesOutput) SetService

SetService sets the Service field's value.

func (*ResourceForSearchResourcesOutput) SetTags

SetTags sets the Tags field's value.

func (ResourceForSearchResourcesOutput) String

String returns the string representation

type ResourceTypeForListResourceTypesOutput

type ResourceTypeForListResourceTypesOutput struct {
	ResourceType *string `type:"string" json:",omitempty"`

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

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

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

func (ResourceTypeForListResourceTypesOutput) GoString

GoString returns the string representation

func (*ResourceTypeForListResourceTypesOutput) SetResourceType

SetResourceType sets the ResourceType field's value.

func (*ResourceTypeForListResourceTypesOutput) SetResourceTypeName

SetResourceTypeName sets the ResourceTypeName field's value.

func (*ResourceTypeForListResourceTypesOutput) SetService

SetService sets the Service field's value.

func (*ResourceTypeForListResourceTypesOutput) SetServiceName

SetServiceName sets the ServiceName field's value.

func (ResourceTypeForListResourceTypesOutput) String

String returns the string representation

type SearchResourcesInput

type SearchResourcesInput struct {
	Filter []*FilterForSearchResourcesInput `type:"list" json:",omitempty"`

	MaxResults *int32 `type:"int32" json:",omitempty"`

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

	SortBy *string `type:"string" json:",omitempty" enum:"EnumOfSortByForSearchResourcesInput"`

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

func (SearchResourcesInput) GoString

func (s SearchResourcesInput) GoString() string

GoString returns the string representation

func (*SearchResourcesInput) SetFilter

SetFilter sets the Filter field's value.

func (*SearchResourcesInput) SetMaxResults

func (s *SearchResourcesInput) SetMaxResults(v int32) *SearchResourcesInput

SetMaxResults sets the MaxResults field's value.

func (*SearchResourcesInput) SetNextToken

func (s *SearchResourcesInput) SetNextToken(v string) *SearchResourcesInput

SetNextToken sets the NextToken field's value.

func (*SearchResourcesInput) SetSortBy

SetSortBy sets the SortBy field's value.

func (*SearchResourcesInput) SetSortOrder

func (s *SearchResourcesInput) SetSortOrder(v string) *SearchResourcesInput

SetSortOrder sets the SortOrder field's value.

func (SearchResourcesInput) String

func (s SearchResourcesInput) String() string

String returns the string representation

type SearchResourcesOutput

type SearchResourcesOutput struct {
	Metadata *response.ResponseMetadata

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

	Resources []*ResourceForSearchResourcesOutput `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (SearchResourcesOutput) GoString

func (s SearchResourcesOutput) GoString() string

GoString returns the string representation

func (*SearchResourcesOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*SearchResourcesOutput) SetResources

SetResources sets the Resources field's value.

func (SearchResourcesOutput) String

func (s SearchResourcesOutput) String() string

String returns the string representation

type TagForSearchResourcesOutput

type TagForSearchResourcesOutput struct {
	Key *string `type:"string" json:",omitempty"`

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

func (TagForSearchResourcesOutput) GoString

func (s TagForSearchResourcesOutput) GoString() string

GoString returns the string representation

func (*TagForSearchResourcesOutput) SetKey

SetKey sets the Key field's value.

func (*TagForSearchResourcesOutput) SetValue

SetValue sets the Value field's value.

func (TagForSearchResourcesOutput) String

String returns the string representation

Jump to

Keyboard shortcuts

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