Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionResults ¶
type ActionResults struct {
// contains filtered or unexported fields
}
func BatchAction ¶
func BatchAction(client *golangsdk.ServiceClient, serverID string, opts BatchOptsBuilder) (r ActionResults)
BatchAction is used to create ,update or delete the tags of a specified instance.
type ActionType ¶
type ActionType string
ActionType specifies the type of batch operation action to be performed
var ( // ActionCreate is used to set action operator to create ActionCreate ActionType = "create" // ActionDelete is used to set action operator to delete ActionDelete ActionType = "delete" )
type BatchOpts ¶
type BatchOpts struct { //List of tags to perform batch operation Tags []Tag `json:"tags,omitempty"` //Operator , Possible values are:create, update,delete Action ActionType `json:"action" required:"true"` }
BatchOpts contains all the values needed to perform BatchAction on the instance tags.
func (BatchOpts) ToTagsBatchMap ¶
ToTagsBatchMap builds a BatchAction request body from BatchOpts.
type BatchOptsBuilder ¶
BatchOptsBuilder allows extensions to add additional parameters to the BatchAction request.
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.