vmp

package
v1.0.180 Latest Latest
Warning

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

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

Documentation

Overview

Package vmpiface provides an interface to enable mocking the VMP service client for testing your code.

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

Index

Constants

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

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateWorkspaceInput

type CreateWorkspaceInput struct {
	DeleteProtectionEnabled *bool `type:"boolean" json:",omitempty"`

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

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

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

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

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

	Tags []*TagForCreateWorkspaceInput `type:"list" json:",omitempty"`

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

func (CreateWorkspaceInput) GoString

func (s CreateWorkspaceInput) GoString() string

GoString returns the string representation

func (*CreateWorkspaceInput) SetDeleteProtectionEnabled

func (s *CreateWorkspaceInput) SetDeleteProtectionEnabled(v bool) *CreateWorkspaceInput

SetDeleteProtectionEnabled sets the DeleteProtectionEnabled field's value.

func (*CreateWorkspaceInput) SetDescription

func (s *CreateWorkspaceInput) SetDescription(v string) *CreateWorkspaceInput

SetDescription sets the Description field's value.

func (*CreateWorkspaceInput) SetInstanceTypeId

func (s *CreateWorkspaceInput) SetInstanceTypeId(v string) *CreateWorkspaceInput

SetInstanceTypeId sets the InstanceTypeId field's value.

func (*CreateWorkspaceInput) SetName

SetName sets the Name field's value.

func (*CreateWorkspaceInput) SetPassword

SetPassword sets the Password field's value.

func (*CreateWorkspaceInput) SetProjectName

func (s *CreateWorkspaceInput) SetProjectName(v string) *CreateWorkspaceInput

SetProjectName sets the ProjectName field's value.

func (*CreateWorkspaceInput) SetTags

SetTags sets the Tags field's value.

func (*CreateWorkspaceInput) SetUsername

SetUsername sets the Username field's value.

func (CreateWorkspaceInput) String

func (s CreateWorkspaceInput) String() string

String returns the string representation

func (*CreateWorkspaceInput) Validate

func (s *CreateWorkspaceInput) Validate() error

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

type CreateWorkspaceOutput

type CreateWorkspaceOutput struct {
	Metadata *response.ResponseMetadata

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

func (CreateWorkspaceOutput) GoString

func (s CreateWorkspaceOutput) GoString() string

GoString returns the string representation

func (*CreateWorkspaceOutput) SetId

SetId sets the Id field's value.

func (CreateWorkspaceOutput) String

func (s CreateWorkspaceOutput) String() string

String returns the string representation

type DeleteWorkspaceInput

type DeleteWorkspaceInput struct {

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

func (DeleteWorkspaceInput) GoString

func (s DeleteWorkspaceInput) GoString() string

GoString returns the string representation

func (*DeleteWorkspaceInput) SetId

SetId sets the Id field's value.

func (DeleteWorkspaceInput) String

func (s DeleteWorkspaceInput) String() string

String returns the string representation

func (*DeleteWorkspaceInput) Validate

func (s *DeleteWorkspaceInput) Validate() error

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

type DeleteWorkspaceOutput

type DeleteWorkspaceOutput struct {
	Metadata *response.ResponseMetadata

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

func (DeleteWorkspaceOutput) GoString

func (s DeleteWorkspaceOutput) GoString() string

GoString returns the string representation

func (*DeleteWorkspaceOutput) SetId

SetId sets the Id field's value.

func (DeleteWorkspaceOutput) String

func (s DeleteWorkspaceOutput) String() string

String returns the string representation

type FiltersForListWorkspaceStatusInput

type FiltersForListWorkspaceStatusInput struct {
	Ids []*string `type:"list" json:",omitempty"`

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

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

func (FiltersForListWorkspaceStatusInput) GoString

GoString returns the string representation

func (*FiltersForListWorkspaceStatusInput) SetIds

SetIds sets the Ids field's value.

func (*FiltersForListWorkspaceStatusInput) SetInstanceTypeIds

SetInstanceTypeIds sets the InstanceTypeIds field's value.

func (*FiltersForListWorkspaceStatusInput) SetName

SetName sets the Name field's value.

func (FiltersForListWorkspaceStatusInput) String

String returns the string representation

type FiltersForListWorkspacesInput

type FiltersForListWorkspacesInput struct {
	Ids []*string `type:"list" json:",omitempty"`

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

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

func (FiltersForListWorkspacesInput) GoString

GoString returns the string representation

func (*FiltersForListWorkspacesInput) SetIds

SetIds sets the Ids field's value.

func (*FiltersForListWorkspacesInput) SetInstanceTypeIds

SetInstanceTypeIds sets the InstanceTypeIds field's value.

func (*FiltersForListWorkspacesInput) SetName

SetName sets the Name field's value.

func (FiltersForListWorkspacesInput) String

String returns the string representation

type ItemForListWorkspaceStatusOutput

type ItemForListWorkspaceStatusOutput struct {
	Id *string `type:"string" json:",omitempty"`

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

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

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

	Usage *UsageForListWorkspaceStatusOutput `type:"structure" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ItemForListWorkspaceStatusOutput) GoString

GoString returns the string representation

func (*ItemForListWorkspaceStatusOutput) SetId

SetId sets the Id field's value.

func (*ItemForListWorkspaceStatusOutput) SetInstanceTypeId

SetInstanceTypeId sets the InstanceTypeId field's value.

func (*ItemForListWorkspaceStatusOutput) SetName

SetName sets the Name field's value.

func (*ItemForListWorkspaceStatusOutput) SetStatus

SetStatus sets the Status field's value.

func (*ItemForListWorkspaceStatusOutput) SetUsage

SetUsage sets the Usage field's value.

func (ItemForListWorkspaceStatusOutput) String

String returns the string representation

type ItemForListWorkspacesOutput

type ItemForListWorkspacesOutput struct {
	CreateTime *string `type:"string" json:",omitempty"`

	DeleteProtectionEnabled *bool `type:"boolean" json:",omitempty"`

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

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

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

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

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

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

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

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

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

	Tags []*TagForListWorkspacesOutput `type:"list" json:",omitempty"`

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

func (ItemForListWorkspacesOutput) GoString

func (s ItemForListWorkspacesOutput) GoString() string

GoString returns the string representation

func (*ItemForListWorkspacesOutput) SetCreateTime

SetCreateTime sets the CreateTime field's value.

func (*ItemForListWorkspacesOutput) SetDeleteProtectionEnabled

func (s *ItemForListWorkspacesOutput) SetDeleteProtectionEnabled(v bool) *ItemForListWorkspacesOutput

SetDeleteProtectionEnabled sets the DeleteProtectionEnabled field's value.

func (*ItemForListWorkspacesOutput) SetDescription

SetDescription sets the Description field's value.

func (*ItemForListWorkspacesOutput) SetId

SetId sets the Id field's value.

func (*ItemForListWorkspacesOutput) SetInstanceTypeId

SetInstanceTypeId sets the InstanceTypeId field's value.

func (*ItemForListWorkspacesOutput) SetName

SetName sets the Name field's value.

func (*ItemForListWorkspacesOutput) SetOverdueReclaimTime

func (s *ItemForListWorkspacesOutput) SetOverdueReclaimTime(v string) *ItemForListWorkspacesOutput

SetOverdueReclaimTime sets the OverdueReclaimTime field's value.

func (*ItemForListWorkspacesOutput) SetProjectName

SetProjectName sets the ProjectName field's value.

func (*ItemForListWorkspacesOutput) SetPrometheusQueryIntranetEndpoint

func (s *ItemForListWorkspacesOutput) SetPrometheusQueryIntranetEndpoint(v string) *ItemForListWorkspacesOutput

SetPrometheusQueryIntranetEndpoint sets the PrometheusQueryIntranetEndpoint field's value.

func (*ItemForListWorkspacesOutput) SetPrometheusWriteIntranetEndpoint

func (s *ItemForListWorkspacesOutput) SetPrometheusWriteIntranetEndpoint(v string) *ItemForListWorkspacesOutput

SetPrometheusWriteIntranetEndpoint sets the PrometheusWriteIntranetEndpoint field's value.

func (*ItemForListWorkspacesOutput) SetStatus

SetStatus sets the Status field's value.

func (*ItemForListWorkspacesOutput) SetTags

SetTags sets the Tags field's value.

func (*ItemForListWorkspacesOutput) SetUsername

SetUsername sets the Username field's value.

func (ItemForListWorkspacesOutput) String

String returns the string representation

type ListWorkspaceStatusInput

type ListWorkspaceStatusInput struct {
	Filters *FiltersForListWorkspaceStatusInput `type:"structure" json:",omitempty"`

	PageNumber *int64 `type:"int64" json:",omitempty"`

	PageSize *int64 `type:"int64" json:",omitempty"`

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

func (ListWorkspaceStatusInput) GoString

func (s ListWorkspaceStatusInput) GoString() string

GoString returns the string representation

func (*ListWorkspaceStatusInput) SetFilters

SetFilters sets the Filters field's value.

func (*ListWorkspaceStatusInput) SetPageNumber

SetPageNumber sets the PageNumber field's value.

func (*ListWorkspaceStatusInput) SetPageSize

SetPageSize sets the PageSize field's value.

func (*ListWorkspaceStatusInput) SetProjectName

SetProjectName sets the ProjectName field's value.

func (ListWorkspaceStatusInput) String

func (s ListWorkspaceStatusInput) String() string

String returns the string representation

type ListWorkspaceStatusOutput

type ListWorkspaceStatusOutput struct {
	Metadata *response.ResponseMetadata

	Items []*ItemForListWorkspaceStatusOutput `type:"list" json:",omitempty"`

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

func (ListWorkspaceStatusOutput) GoString

func (s ListWorkspaceStatusOutput) GoString() string

GoString returns the string representation

func (*ListWorkspaceStatusOutput) SetItems

SetItems sets the Items field's value.

func (*ListWorkspaceStatusOutput) SetTotal

SetTotal sets the Total field's value.

func (ListWorkspaceStatusOutput) String

func (s ListWorkspaceStatusOutput) String() string

String returns the string representation

type ListWorkspacesInput

type ListWorkspacesInput struct {
	Filters *FiltersForListWorkspacesInput `type:"structure" json:",omitempty"`

	PageNumber *int64 `type:"int64" json:",omitempty"`

	PageSize *int64 `type:"int64" json:",omitempty"`

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

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

func (ListWorkspacesInput) GoString

func (s ListWorkspacesInput) GoString() string

GoString returns the string representation

func (*ListWorkspacesInput) SetFilters

SetFilters sets the Filters field's value.

func (*ListWorkspacesInput) SetPageNumber

func (s *ListWorkspacesInput) SetPageNumber(v int64) *ListWorkspacesInput

SetPageNumber sets the PageNumber field's value.

func (*ListWorkspacesInput) SetPageSize

func (s *ListWorkspacesInput) SetPageSize(v int64) *ListWorkspacesInput

SetPageSize sets the PageSize field's value.

func (*ListWorkspacesInput) SetProjectName

func (s *ListWorkspacesInput) SetProjectName(v string) *ListWorkspacesInput

SetProjectName sets the ProjectName field's value.

func (*ListWorkspacesInput) SetTagFilters

SetTagFilters sets the TagFilters field's value.

func (ListWorkspacesInput) String

func (s ListWorkspacesInput) String() string

String returns the string representation

type ListWorkspacesOutput

type ListWorkspacesOutput struct {
	Metadata *response.ResponseMetadata

	Items []*ItemForListWorkspacesOutput `type:"list" json:",omitempty"`

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

func (ListWorkspacesOutput) GoString

func (s ListWorkspacesOutput) GoString() string

GoString returns the string representation

func (*ListWorkspacesOutput) SetItems

SetItems sets the Items field's value.

func (*ListWorkspacesOutput) SetTotal

SetTotal sets the Total field's value.

func (ListWorkspacesOutput) String

func (s ListWorkspacesOutput) String() string

String returns the string representation

type TagFilterForListWorkspacesInput

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

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

func (TagFilterForListWorkspacesInput) GoString

GoString returns the string representation

func (*TagFilterForListWorkspacesInput) SetKey

SetKey sets the Key field's value.

func (*TagFilterForListWorkspacesInput) SetValues

SetValues sets the Values field's value.

func (TagFilterForListWorkspacesInput) String

String returns the string representation

type TagForCreateWorkspaceInput

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

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

func (TagForCreateWorkspaceInput) GoString

func (s TagForCreateWorkspaceInput) GoString() string

GoString returns the string representation

func (*TagForCreateWorkspaceInput) SetKey

SetKey sets the Key field's value.

func (*TagForCreateWorkspaceInput) SetValue

SetValue sets the Value field's value.

func (TagForCreateWorkspaceInput) String

String returns the string representation

type TagForListWorkspacesOutput

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

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

func (TagForListWorkspacesOutput) GoString

func (s TagForListWorkspacesOutput) GoString() string

GoString returns the string representation

func (*TagForListWorkspacesOutput) SetKey

SetKey sets the Key field's value.

func (*TagForListWorkspacesOutput) SetValue

SetValue sets the Value field's value.

func (TagForListWorkspacesOutput) String

String returns the string representation

type UpdateWorkspaceInput

type UpdateWorkspaceInput struct {
	DeleteProtectionEnabled *bool `type:"boolean" json:",omitempty"`

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

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

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

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

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

func (UpdateWorkspaceInput) GoString

func (s UpdateWorkspaceInput) GoString() string

GoString returns the string representation

func (*UpdateWorkspaceInput) SetDeleteProtectionEnabled

func (s *UpdateWorkspaceInput) SetDeleteProtectionEnabled(v bool) *UpdateWorkspaceInput

SetDeleteProtectionEnabled sets the DeleteProtectionEnabled field's value.

func (*UpdateWorkspaceInput) SetDescription

func (s *UpdateWorkspaceInput) SetDescription(v string) *UpdateWorkspaceInput

SetDescription sets the Description field's value.

func (*UpdateWorkspaceInput) SetId

SetId sets the Id field's value.

func (*UpdateWorkspaceInput) SetName

SetName sets the Name field's value.

func (*UpdateWorkspaceInput) SetPassword

SetPassword sets the Password field's value.

func (*UpdateWorkspaceInput) SetUsername

SetUsername sets the Username field's value.

func (UpdateWorkspaceInput) String

func (s UpdateWorkspaceInput) String() string

String returns the string representation

func (*UpdateWorkspaceInput) Validate

func (s *UpdateWorkspaceInput) Validate() error

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

type UpdateWorkspaceOutput

type UpdateWorkspaceOutput struct {
	Metadata *response.ResponseMetadata

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

func (UpdateWorkspaceOutput) GoString

func (s UpdateWorkspaceOutput) GoString() string

GoString returns the string representation

func (*UpdateWorkspaceOutput) SetId

SetId sets the Id field's value.

func (UpdateWorkspaceOutput) String

func (s UpdateWorkspaceOutput) String() string

String returns the string representation

type UsageForListWorkspaceStatusOutput

type UsageForListWorkspaceStatusOutput struct {
	ActiveSeries *int64 `type:"int64" json:",omitempty"`

	IngestedSamplesPerSecond *float64 `type:"double" json:",omitempty"`
	// contains filtered or unexported fields
}

func (UsageForListWorkspaceStatusOutput) GoString

GoString returns the string representation

func (*UsageForListWorkspaceStatusOutput) SetActiveSeries

SetActiveSeries sets the ActiveSeries field's value.

func (*UsageForListWorkspaceStatusOutput) SetIngestedSamplesPerSecond

SetIngestedSamplesPerSecond sets the IngestedSamplesPerSecond field's value.

func (UsageForListWorkspaceStatusOutput) String

String returns the string representation

type VMP

type VMP struct {
	*client.Client
}

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

VMP 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) *VMP

New create int can support ssl or region locate set

func (*VMP) CreateWorkspace

func (c *VMP) CreateWorkspace(input *CreateWorkspaceInput) (*CreateWorkspaceOutput, error)

CreateWorkspace API operation for VMP.

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

func (*VMP) CreateWorkspaceCommon

func (c *VMP) CreateWorkspaceCommon(input *map[string]interface{}) (*map[string]interface{}, error)

CreateWorkspaceCommon API operation for VMP.

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

func (*VMP) CreateWorkspaceCommonRequest

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

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

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

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

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

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

func (*VMP) CreateWorkspaceCommonWithContext

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

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

See CreateWorkspaceCommon 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 (*VMP) CreateWorkspaceRequest

func (c *VMP) CreateWorkspaceRequest(input *CreateWorkspaceInput) (req *request.Request, output *CreateWorkspaceOutput)

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

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

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

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

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

func (*VMP) CreateWorkspaceWithContext

func (c *VMP) CreateWorkspaceWithContext(ctx volcengine.Context, input *CreateWorkspaceInput, opts ...request.Option) (*CreateWorkspaceOutput, error)

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

See CreateWorkspace 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 (*VMP) DeleteWorkspace

func (c *VMP) DeleteWorkspace(input *DeleteWorkspaceInput) (*DeleteWorkspaceOutput, error)

DeleteWorkspace API operation for VMP.

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

func (*VMP) DeleteWorkspaceCommon

func (c *VMP) DeleteWorkspaceCommon(input *map[string]interface{}) (*map[string]interface{}, error)

DeleteWorkspaceCommon API operation for VMP.

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

func (*VMP) DeleteWorkspaceCommonRequest

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

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

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

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

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

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

func (*VMP) DeleteWorkspaceCommonWithContext

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

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

See DeleteWorkspaceCommon 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 (*VMP) DeleteWorkspaceRequest

func (c *VMP) DeleteWorkspaceRequest(input *DeleteWorkspaceInput) (req *request.Request, output *DeleteWorkspaceOutput)

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

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

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

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

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

func (*VMP) DeleteWorkspaceWithContext

func (c *VMP) DeleteWorkspaceWithContext(ctx volcengine.Context, input *DeleteWorkspaceInput, opts ...request.Option) (*DeleteWorkspaceOutput, error)

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

See DeleteWorkspace 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 (*VMP) ListWorkspaceStatus

func (c *VMP) ListWorkspaceStatus(input *ListWorkspaceStatusInput) (*ListWorkspaceStatusOutput, error)

ListWorkspaceStatus API operation for VMP.

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

func (*VMP) ListWorkspaceStatusCommon

func (c *VMP) ListWorkspaceStatusCommon(input *map[string]interface{}) (*map[string]interface{}, error)

ListWorkspaceStatusCommon API operation for VMP.

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

func (*VMP) ListWorkspaceStatusCommonRequest

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

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

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

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

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

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

func (*VMP) ListWorkspaceStatusCommonWithContext

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

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

See ListWorkspaceStatusCommon 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 (*VMP) ListWorkspaceStatusRequest

func (c *VMP) ListWorkspaceStatusRequest(input *ListWorkspaceStatusInput) (req *request.Request, output *ListWorkspaceStatusOutput)

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

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

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

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

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

func (*VMP) ListWorkspaceStatusWithContext

func (c *VMP) ListWorkspaceStatusWithContext(ctx volcengine.Context, input *ListWorkspaceStatusInput, opts ...request.Option) (*ListWorkspaceStatusOutput, error)

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

See ListWorkspaceStatus 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 (*VMP) ListWorkspaces

func (c *VMP) ListWorkspaces(input *ListWorkspacesInput) (*ListWorkspacesOutput, error)

ListWorkspaces API operation for VMP.

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

func (*VMP) ListWorkspacesCommon

func (c *VMP) ListWorkspacesCommon(input *map[string]interface{}) (*map[string]interface{}, error)

ListWorkspacesCommon API operation for VMP.

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

func (*VMP) ListWorkspacesCommonRequest

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

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

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

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

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

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

func (*VMP) ListWorkspacesCommonWithContext

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

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

See ListWorkspacesCommon 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 (*VMP) ListWorkspacesRequest

func (c *VMP) ListWorkspacesRequest(input *ListWorkspacesInput) (req *request.Request, output *ListWorkspacesOutput)

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

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

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

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

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

func (*VMP) ListWorkspacesWithContext

func (c *VMP) ListWorkspacesWithContext(ctx volcengine.Context, input *ListWorkspacesInput, opts ...request.Option) (*ListWorkspacesOutput, error)

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

See ListWorkspaces 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 (*VMP) UpdateWorkspace

func (c *VMP) UpdateWorkspace(input *UpdateWorkspaceInput) (*UpdateWorkspaceOutput, error)

UpdateWorkspace API operation for VMP.

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

func (*VMP) UpdateWorkspaceCommon

func (c *VMP) UpdateWorkspaceCommon(input *map[string]interface{}) (*map[string]interface{}, error)

UpdateWorkspaceCommon API operation for VMP.

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

func (*VMP) UpdateWorkspaceCommonRequest

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

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

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

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

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

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

func (*VMP) UpdateWorkspaceCommonWithContext

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

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

See UpdateWorkspaceCommon 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 (*VMP) UpdateWorkspaceRequest

func (c *VMP) UpdateWorkspaceRequest(input *UpdateWorkspaceInput) (req *request.Request, output *UpdateWorkspaceOutput)

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

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

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

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

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

func (*VMP) UpdateWorkspaceWithContext

func (c *VMP) UpdateWorkspaceWithContext(ctx volcengine.Context, input *UpdateWorkspaceInput, opts ...request.Option) (*UpdateWorkspaceOutput, error)

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

See UpdateWorkspace 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 VMPAPI

type VMPAPI interface {
	CreateWorkspaceCommon(*map[string]interface{}) (*map[string]interface{}, error)
	CreateWorkspaceCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	CreateWorkspaceCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	CreateWorkspace(*CreateWorkspaceInput) (*CreateWorkspaceOutput, error)
	CreateWorkspaceWithContext(volcengine.Context, *CreateWorkspaceInput, ...request.Option) (*CreateWorkspaceOutput, error)
	CreateWorkspaceRequest(*CreateWorkspaceInput) (*request.Request, *CreateWorkspaceOutput)

	DeleteWorkspaceCommon(*map[string]interface{}) (*map[string]interface{}, error)
	DeleteWorkspaceCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	DeleteWorkspaceCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	DeleteWorkspace(*DeleteWorkspaceInput) (*DeleteWorkspaceOutput, error)
	DeleteWorkspaceWithContext(volcengine.Context, *DeleteWorkspaceInput, ...request.Option) (*DeleteWorkspaceOutput, error)
	DeleteWorkspaceRequest(*DeleteWorkspaceInput) (*request.Request, *DeleteWorkspaceOutput)

	ListWorkspaceStatusCommon(*map[string]interface{}) (*map[string]interface{}, error)
	ListWorkspaceStatusCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ListWorkspaceStatusCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ListWorkspaceStatus(*ListWorkspaceStatusInput) (*ListWorkspaceStatusOutput, error)
	ListWorkspaceStatusWithContext(volcengine.Context, *ListWorkspaceStatusInput, ...request.Option) (*ListWorkspaceStatusOutput, error)
	ListWorkspaceStatusRequest(*ListWorkspaceStatusInput) (*request.Request, *ListWorkspaceStatusOutput)

	ListWorkspacesCommon(*map[string]interface{}) (*map[string]interface{}, error)
	ListWorkspacesCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ListWorkspacesCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ListWorkspaces(*ListWorkspacesInput) (*ListWorkspacesOutput, error)
	ListWorkspacesWithContext(volcengine.Context, *ListWorkspacesInput, ...request.Option) (*ListWorkspacesOutput, error)
	ListWorkspacesRequest(*ListWorkspacesInput) (*request.Request, *ListWorkspacesOutput)

	UpdateWorkspaceCommon(*map[string]interface{}) (*map[string]interface{}, error)
	UpdateWorkspaceCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	UpdateWorkspaceCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	UpdateWorkspace(*UpdateWorkspaceInput) (*UpdateWorkspaceOutput, error)
	UpdateWorkspaceWithContext(volcengine.Context, *UpdateWorkspaceInput, ...request.Option) (*UpdateWorkspaceOutput, error)
	UpdateWorkspaceRequest(*UpdateWorkspaceInput) (*request.Request, *UpdateWorkspaceOutput)
}

VMPAPI provides an interface to enable mocking the vmp.VMP service client's API operation,

// volcengine sdk func uses an SDK service client to make a request to
// VMP.
func myFunc(svc VMPAPI) bool {
    // Make svc.CreateWorkspace request
}

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

    myFunc(svc)
}

Jump to

Keyboard shortcuts

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