Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action ¶
func Action(client *gcorecloud.ServiceClient, instanceID string, opts ActionOptsBuilder) (r tasks.Result)
Action run an action for the instance.
Types ¶
type ActionOpts ¶
type ActionOpts struct { Action types.InstanceActionType `json:"action" required:"true" validate:"required,enum"` ActivateProfile *bool `json:"activate_profile,omitempty"` }
ActionOpts represents options used to run action.
func (ActionOpts) ToActionMap ¶
func (opts ActionOpts) ToActionMap() (map[string]interface{}, error)
ToActionMap builds a request body from ActionOpts.
func (ActionOpts) Validate ¶
func (opts ActionOpts) Validate() error
Validate checks if the ActionOpts is valid.
type ActionOptsBuilder ¶
ActionOptsBuilder allows extensions to add parameters to the action request.
Click to show internal directories.
Click to hide internal directories.