seccenter

package
v1.2.9 Latest Latest
Warning

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

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

Documentation

Overview

Package seccenteriface provides an interface to enable mocking the SECCENTER 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 = "seccenter" // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "seccenter" // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCloudEnvInput

type AddCloudEnvInput struct {

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

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

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

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

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

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

func (AddCloudEnvInput) GoString

func (s AddCloudEnvInput) GoString() string

GoString returns the string representation

func (*AddCloudEnvInput) SetAccessKey

func (s *AddCloudEnvInput) SetAccessKey(v string) *AddCloudEnvInput

SetAccessKey sets the AccessKey field's value.

func (*AddCloudEnvInput) SetCloudPlatform

func (s *AddCloudEnvInput) SetCloudPlatform(v string) *AddCloudEnvInput

SetCloudPlatform sets the CloudPlatform field's value.

func (*AddCloudEnvInput) SetComment

func (s *AddCloudEnvInput) SetComment(v string) *AddCloudEnvInput

SetComment sets the Comment field's value.

func (*AddCloudEnvInput) SetKeyType

func (s *AddCloudEnvInput) SetKeyType(v string) *AddCloudEnvInput

SetKeyType sets the KeyType field's value.

func (*AddCloudEnvInput) SetSecretKey

func (s *AddCloudEnvInput) SetSecretKey(v string) *AddCloudEnvInput

SetSecretKey sets the SecretKey field's value.

func (*AddCloudEnvInput) SetSyncPeriod

func (s *AddCloudEnvInput) SetSyncPeriod(v int32) *AddCloudEnvInput

SetSyncPeriod sets the SyncPeriod field's value.

func (AddCloudEnvInput) String

func (s AddCloudEnvInput) String() string

String returns the string representation

func (*AddCloudEnvInput) Validate

func (s *AddCloudEnvInput) Validate() error

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

type AddCloudEnvOutput

type AddCloudEnvOutput struct {
	Metadata *response.ResponseMetadata

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

func (AddCloudEnvOutput) GoString

func (s AddCloudEnvOutput) GoString() string

GoString returns the string representation

func (*AddCloudEnvOutput) SetData

SetData sets the Data field's value.

func (AddCloudEnvOutput) String

func (s AddCloudEnvOutput) String() string

String returns the string representation

type DeleteCloudEnvInput

type DeleteCloudEnvInput struct {
	IDList []*string `type:"list" json:",omitempty"`
	// contains filtered or unexported fields
}

func (DeleteCloudEnvInput) GoString

func (s DeleteCloudEnvInput) GoString() string

GoString returns the string representation

func (*DeleteCloudEnvInput) SetIDList

func (s *DeleteCloudEnvInput) SetIDList(v []*string) *DeleteCloudEnvInput

SetIDList sets the IDList field's value.

func (DeleteCloudEnvInput) String

func (s DeleteCloudEnvInput) String() string

String returns the string representation

type DeleteCloudEnvOutput

type DeleteCloudEnvOutput struct {
	Metadata *response.ResponseMetadata

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

func (DeleteCloudEnvOutput) GoString

func (s DeleteCloudEnvOutput) GoString() string

GoString returns the string representation

func (*DeleteCloudEnvOutput) SetData

SetData sets the Data field's value.

func (DeleteCloudEnvOutput) String

func (s DeleteCloudEnvOutput) String() string

String returns the string representation

type ModifyCloudEnvInput

type ModifyCloudEnvInput struct {
	Comment *string `type:"string" json:",omitempty"`

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

	SyncPeriod *int32 `type:"int32" json:",omitempty"`
	// contains filtered or unexported fields
}

func (ModifyCloudEnvInput) GoString

func (s ModifyCloudEnvInput) GoString() string

GoString returns the string representation

func (*ModifyCloudEnvInput) SetComment

SetComment sets the Comment field's value.

func (*ModifyCloudEnvInput) SetID

SetID sets the ID field's value.

func (*ModifyCloudEnvInput) SetSyncPeriod

func (s *ModifyCloudEnvInput) SetSyncPeriod(v int32) *ModifyCloudEnvInput

SetSyncPeriod sets the SyncPeriod field's value.

func (ModifyCloudEnvInput) String

func (s ModifyCloudEnvInput) String() string

String returns the string representation

func (*ModifyCloudEnvInput) Validate

func (s *ModifyCloudEnvInput) Validate() error

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

type ModifyCloudEnvOutput

type ModifyCloudEnvOutput struct {
	Metadata *response.ResponseMetadata

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

func (ModifyCloudEnvOutput) GoString

func (s ModifyCloudEnvOutput) GoString() string

GoString returns the string representation

func (*ModifyCloudEnvOutput) SetData

SetData sets the Data field's value.

func (ModifyCloudEnvOutput) String

func (s ModifyCloudEnvOutput) String() string

String returns the string representation

type MultiCloudAccessSyncInput

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

func (MultiCloudAccessSyncInput) GoString

func (s MultiCloudAccessSyncInput) GoString() string

GoString returns the string representation

func (MultiCloudAccessSyncInput) String

func (s MultiCloudAccessSyncInput) String() string

String returns the string representation

type MultiCloudAccessSyncOutput

type MultiCloudAccessSyncOutput struct {
	Metadata *response.ResponseMetadata

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

func (MultiCloudAccessSyncOutput) GoString

func (s MultiCloudAccessSyncOutput) GoString() string

GoString returns the string representation

func (*MultiCloudAccessSyncOutput) SetData

SetData sets the Data field's value.

func (MultiCloudAccessSyncOutput) String

String returns the string representation

type SECCENTER

type SECCENTER struct {
	*client.Client
}

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

SECCENTER 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 (*SECCENTER) AddCloudEnv

func (c *SECCENTER) AddCloudEnv(input *AddCloudEnvInput) (*AddCloudEnvOutput, error)

AddCloudEnv API operation for SECCENTER.

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

func (*SECCENTER) AddCloudEnvCommon

func (c *SECCENTER) AddCloudEnvCommon(input *map[string]interface{}) (*map[string]interface{}, error)

AddCloudEnvCommon API operation for SECCENTER.

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

func (*SECCENTER) AddCloudEnvCommonRequest

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

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

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

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

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

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

func (*SECCENTER) AddCloudEnvCommonWithContext

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

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

See AddCloudEnvCommon 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 (*SECCENTER) AddCloudEnvRequest

func (c *SECCENTER) AddCloudEnvRequest(input *AddCloudEnvInput) (req *request.Request, output *AddCloudEnvOutput)

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

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

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

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

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

func (*SECCENTER) AddCloudEnvWithContext

func (c *SECCENTER) AddCloudEnvWithContext(ctx volcengine.Context, input *AddCloudEnvInput, opts ...request.Option) (*AddCloudEnvOutput, error)

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

See AddCloudEnv 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 (*SECCENTER) DeleteCloudEnv

func (c *SECCENTER) DeleteCloudEnv(input *DeleteCloudEnvInput) (*DeleteCloudEnvOutput, error)

DeleteCloudEnv API operation for SECCENTER.

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

func (*SECCENTER) DeleteCloudEnvCommon

func (c *SECCENTER) DeleteCloudEnvCommon(input *map[string]interface{}) (*map[string]interface{}, error)

DeleteCloudEnvCommon API operation for SECCENTER.

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

func (*SECCENTER) DeleteCloudEnvCommonRequest

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

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

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

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

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

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

func (*SECCENTER) DeleteCloudEnvCommonWithContext

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

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

See DeleteCloudEnvCommon 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 (*SECCENTER) DeleteCloudEnvRequest

func (c *SECCENTER) DeleteCloudEnvRequest(input *DeleteCloudEnvInput) (req *request.Request, output *DeleteCloudEnvOutput)

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

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

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

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

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

func (*SECCENTER) DeleteCloudEnvWithContext

func (c *SECCENTER) DeleteCloudEnvWithContext(ctx volcengine.Context, input *DeleteCloudEnvInput, opts ...request.Option) (*DeleteCloudEnvOutput, error)

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

See DeleteCloudEnv 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 (*SECCENTER) ModifyCloudEnv

func (c *SECCENTER) ModifyCloudEnv(input *ModifyCloudEnvInput) (*ModifyCloudEnvOutput, error)

ModifyCloudEnv API operation for SECCENTER.

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

func (*SECCENTER) ModifyCloudEnvCommon

func (c *SECCENTER) ModifyCloudEnvCommon(input *map[string]interface{}) (*map[string]interface{}, error)

ModifyCloudEnvCommon API operation for SECCENTER.

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

func (*SECCENTER) ModifyCloudEnvCommonRequest

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

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

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

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

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

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

func (*SECCENTER) ModifyCloudEnvCommonWithContext

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

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

See ModifyCloudEnvCommon 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 (*SECCENTER) ModifyCloudEnvRequest

func (c *SECCENTER) ModifyCloudEnvRequest(input *ModifyCloudEnvInput) (req *request.Request, output *ModifyCloudEnvOutput)

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

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

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

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

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

func (*SECCENTER) ModifyCloudEnvWithContext

func (c *SECCENTER) ModifyCloudEnvWithContext(ctx volcengine.Context, input *ModifyCloudEnvInput, opts ...request.Option) (*ModifyCloudEnvOutput, error)

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

See ModifyCloudEnv 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 (*SECCENTER) MultiCloudAccessSync

func (c *SECCENTER) MultiCloudAccessSync(input *MultiCloudAccessSyncInput) (*MultiCloudAccessSyncOutput, error)

MultiCloudAccessSync API operation for SECCENTER.

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

func (*SECCENTER) MultiCloudAccessSyncCommon

func (c *SECCENTER) MultiCloudAccessSyncCommon(input *map[string]interface{}) (*map[string]interface{}, error)

MultiCloudAccessSyncCommon API operation for SECCENTER.

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

func (*SECCENTER) MultiCloudAccessSyncCommonRequest

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

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

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

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

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

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

func (*SECCENTER) MultiCloudAccessSyncCommonWithContext

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

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

See MultiCloudAccessSyncCommon 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 (*SECCENTER) MultiCloudAccessSyncRequest

func (c *SECCENTER) MultiCloudAccessSyncRequest(input *MultiCloudAccessSyncInput) (req *request.Request, output *MultiCloudAccessSyncOutput)

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

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

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

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

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

func (*SECCENTER) MultiCloudAccessSyncWithContext

func (c *SECCENTER) MultiCloudAccessSyncWithContext(ctx volcengine.Context, input *MultiCloudAccessSyncInput, opts ...request.Option) (*MultiCloudAccessSyncOutput, error)

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

See MultiCloudAccessSync 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 (*SECCENTER) SwitchCloudEnvSync

func (c *SECCENTER) SwitchCloudEnvSync(input *SwitchCloudEnvSyncInput) (*SwitchCloudEnvSyncOutput, error)

SwitchCloudEnvSync API operation for SECCENTER.

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

func (*SECCENTER) SwitchCloudEnvSyncCommon

func (c *SECCENTER) SwitchCloudEnvSyncCommon(input *map[string]interface{}) (*map[string]interface{}, error)

SwitchCloudEnvSyncCommon API operation for SECCENTER.

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

func (*SECCENTER) SwitchCloudEnvSyncCommonRequest

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

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

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

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

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

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

func (*SECCENTER) SwitchCloudEnvSyncCommonWithContext

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

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

See SwitchCloudEnvSyncCommon 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 (*SECCENTER) SwitchCloudEnvSyncRequest

func (c *SECCENTER) SwitchCloudEnvSyncRequest(input *SwitchCloudEnvSyncInput) (req *request.Request, output *SwitchCloudEnvSyncOutput)

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

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

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

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

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

func (*SECCENTER) SwitchCloudEnvSyncWithContext

func (c *SECCENTER) SwitchCloudEnvSyncWithContext(ctx volcengine.Context, input *SwitchCloudEnvSyncInput, opts ...request.Option) (*SwitchCloudEnvSyncOutput, error)

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

See SwitchCloudEnvSync 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 SECCENTERAPI

type SECCENTERAPI interface {
	AddCloudEnvCommon(*map[string]interface{}) (*map[string]interface{}, error)
	AddCloudEnvCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	AddCloudEnvCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	AddCloudEnv(*AddCloudEnvInput) (*AddCloudEnvOutput, error)
	AddCloudEnvWithContext(volcengine.Context, *AddCloudEnvInput, ...request.Option) (*AddCloudEnvOutput, error)
	AddCloudEnvRequest(*AddCloudEnvInput) (*request.Request, *AddCloudEnvOutput)

	DeleteCloudEnvCommon(*map[string]interface{}) (*map[string]interface{}, error)
	DeleteCloudEnvCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	DeleteCloudEnvCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	DeleteCloudEnv(*DeleteCloudEnvInput) (*DeleteCloudEnvOutput, error)
	DeleteCloudEnvWithContext(volcengine.Context, *DeleteCloudEnvInput, ...request.Option) (*DeleteCloudEnvOutput, error)
	DeleteCloudEnvRequest(*DeleteCloudEnvInput) (*request.Request, *DeleteCloudEnvOutput)

	ModifyCloudEnvCommon(*map[string]interface{}) (*map[string]interface{}, error)
	ModifyCloudEnvCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ModifyCloudEnvCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ModifyCloudEnv(*ModifyCloudEnvInput) (*ModifyCloudEnvOutput, error)
	ModifyCloudEnvWithContext(volcengine.Context, *ModifyCloudEnvInput, ...request.Option) (*ModifyCloudEnvOutput, error)
	ModifyCloudEnvRequest(*ModifyCloudEnvInput) (*request.Request, *ModifyCloudEnvOutput)

	MultiCloudAccessSyncCommon(*map[string]interface{}) (*map[string]interface{}, error)
	MultiCloudAccessSyncCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	MultiCloudAccessSyncCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	MultiCloudAccessSync(*MultiCloudAccessSyncInput) (*MultiCloudAccessSyncOutput, error)
	MultiCloudAccessSyncWithContext(volcengine.Context, *MultiCloudAccessSyncInput, ...request.Option) (*MultiCloudAccessSyncOutput, error)
	MultiCloudAccessSyncRequest(*MultiCloudAccessSyncInput) (*request.Request, *MultiCloudAccessSyncOutput)

	SwitchCloudEnvSyncCommon(*map[string]interface{}) (*map[string]interface{}, error)
	SwitchCloudEnvSyncCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	SwitchCloudEnvSyncCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	SwitchCloudEnvSync(*SwitchCloudEnvSyncInput) (*SwitchCloudEnvSyncOutput, error)
	SwitchCloudEnvSyncWithContext(volcengine.Context, *SwitchCloudEnvSyncInput, ...request.Option) (*SwitchCloudEnvSyncOutput, error)
	SwitchCloudEnvSyncRequest(*SwitchCloudEnvSyncInput) (*request.Request, *SwitchCloudEnvSyncOutput)
}

SECCENTERAPI provides an interface to enable mocking the seccenter.SECCENTER service client's API operation,

// volcengine sdk func uses an SDK service client to make a request to
// SECCENTER.
func myFunc(svc SECCENTERAPI) bool {
    // Make svc.AddCloudEnv request
}

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

    myFunc(svc)
}

type SwitchCloudEnvSyncInput

type SwitchCloudEnvSyncInput struct {

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

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

func (SwitchCloudEnvSyncInput) GoString

func (s SwitchCloudEnvSyncInput) GoString() string

GoString returns the string representation

func (*SwitchCloudEnvSyncInput) SetID

SetID sets the ID field's value.

func (*SwitchCloudEnvSyncInput) SetStatus

SetStatus sets the Status field's value.

func (SwitchCloudEnvSyncInput) String

func (s SwitchCloudEnvSyncInput) String() string

String returns the string representation

func (*SwitchCloudEnvSyncInput) Validate

func (s *SwitchCloudEnvSyncInput) Validate() error

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

type SwitchCloudEnvSyncOutput

type SwitchCloudEnvSyncOutput struct {
	Metadata *response.ResponseMetadata

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

func (SwitchCloudEnvSyncOutput) GoString

func (s SwitchCloudEnvSyncOutput) GoString() string

GoString returns the string representation

func (*SwitchCloudEnvSyncOutput) SetData

SetData sets the Data field's value.

func (SwitchCloudEnvSyncOutput) String

func (s SwitchCloudEnvSyncOutput) String() string

String returns the string representation

Jump to

Keyboard shortcuts

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