Documentation ¶
Index ¶
- type AddVMDefault
- type AddVMOK
- type AddVMParams
- func (o *AddVMParams) SetBody(body *models.VM)
- func (o *AddVMParams) SetContext(ctx context.Context)
- func (o *AddVMParams) SetTimeout(timeout time.Duration)
- func (o *AddVMParams) WithBody(body *models.VM) *AddVMParams
- func (o *AddVMParams) WithContext(ctx context.Context) *AddVMParams
- func (o *AddVMParams) WithTimeout(timeout time.Duration) *AddVMParams
- func (o *AddVMParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddVMReader
- type Client
- func (a *Client) AddVM(params *AddVMParams) (*AddVMOK, error)
- func (a *Client) DeleteVM(params *DeleteVMParams) (*DeleteVMNoContent, error)
- func (a *Client) FindVmsByDeployment(params *FindVmsByDeploymentParams) (*FindVmsByDeploymentOK, error)
- func (a *Client) FindVmsByFilters(params *FindVmsByFiltersParams) (*FindVmsByFiltersOK, error)
- func (a *Client) FindVmsByStates(params *FindVmsByStatesParams) (*FindVmsByStatesOK, error)
- func (a *Client) GetVMByCid(params *GetVMByCidParams) (*GetVMByCidOK, error)
- func (a *Client) ListVM(params *ListVMParams) (*ListVMOK, error)
- func (a *Client) OrderVMByFilter(params *OrderVMByFilterParams) (*OrderVMByFilterOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateVM(params *UpdateVMParams) (*UpdateVMOK, error)
- func (a *Client) UpdateVMWithState(params *UpdateVMWithStateParams) (*UpdateVMWithStateOK, error)
- type DeleteVMDefault
- type DeleteVMNoContent
- type DeleteVMNotFound
- type DeleteVMParams
- func (o *DeleteVMParams) SetCid(cid int32)
- func (o *DeleteVMParams) SetContext(ctx context.Context)
- func (o *DeleteVMParams) SetTimeout(timeout time.Duration)
- func (o *DeleteVMParams) WithCid(cid int32) *DeleteVMParams
- func (o *DeleteVMParams) WithContext(ctx context.Context) *DeleteVMParams
- func (o *DeleteVMParams) WithTimeout(timeout time.Duration) *DeleteVMParams
- func (o *DeleteVMParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteVMReader
- type FindVmsByDeploymentDefault
- type FindVmsByDeploymentNotFound
- type FindVmsByDeploymentOK
- type FindVmsByDeploymentParams
- func (o *FindVmsByDeploymentParams) SetContext(ctx context.Context)
- func (o *FindVmsByDeploymentParams) SetDeployment(deployment []string)
- func (o *FindVmsByDeploymentParams) SetTimeout(timeout time.Duration)
- func (o *FindVmsByDeploymentParams) WithContext(ctx context.Context) *FindVmsByDeploymentParams
- func (o *FindVmsByDeploymentParams) WithDeployment(deployment []string) *FindVmsByDeploymentParams
- func (o *FindVmsByDeploymentParams) WithTimeout(timeout time.Duration) *FindVmsByDeploymentParams
- func (o *FindVmsByDeploymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindVmsByDeploymentReader
- type FindVmsByFiltersDefault
- type FindVmsByFiltersNotFound
- type FindVmsByFiltersOK
- type FindVmsByFiltersParams
- func (o *FindVmsByFiltersParams) SetBody(body *models.VMFilter)
- func (o *FindVmsByFiltersParams) SetContext(ctx context.Context)
- func (o *FindVmsByFiltersParams) SetTimeout(timeout time.Duration)
- func (o *FindVmsByFiltersParams) WithBody(body *models.VMFilter) *FindVmsByFiltersParams
- func (o *FindVmsByFiltersParams) WithContext(ctx context.Context) *FindVmsByFiltersParams
- func (o *FindVmsByFiltersParams) WithTimeout(timeout time.Duration) *FindVmsByFiltersParams
- func (o *FindVmsByFiltersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindVmsByFiltersReader
- type FindVmsByStatesDefault
- type FindVmsByStatesNotFound
- type FindVmsByStatesOK
- type FindVmsByStatesParams
- func (o *FindVmsByStatesParams) SetContext(ctx context.Context)
- func (o *FindVmsByStatesParams) SetStates(states []string)
- func (o *FindVmsByStatesParams) SetTimeout(timeout time.Duration)
- func (o *FindVmsByStatesParams) WithContext(ctx context.Context) *FindVmsByStatesParams
- func (o *FindVmsByStatesParams) WithStates(states []string) *FindVmsByStatesParams
- func (o *FindVmsByStatesParams) WithTimeout(timeout time.Duration) *FindVmsByStatesParams
- func (o *FindVmsByStatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindVmsByStatesReader
- type GetVMByCidDefault
- type GetVMByCidNotFound
- type GetVMByCidOK
- type GetVMByCidParams
- func (o *GetVMByCidParams) SetCid(cid int32)
- func (o *GetVMByCidParams) SetContext(ctx context.Context)
- func (o *GetVMByCidParams) SetTimeout(timeout time.Duration)
- func (o *GetVMByCidParams) WithCid(cid int32) *GetVMByCidParams
- func (o *GetVMByCidParams) WithContext(ctx context.Context) *GetVMByCidParams
- func (o *GetVMByCidParams) WithTimeout(timeout time.Duration) *GetVMByCidParams
- func (o *GetVMByCidParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetVMByCidReader
- type ListVMDefault
- type ListVMNotFound
- type ListVMOK
- type ListVMParams
- func (o *ListVMParams) SetContext(ctx context.Context)
- func (o *ListVMParams) SetTimeout(timeout time.Duration)
- func (o *ListVMParams) WithContext(ctx context.Context) *ListVMParams
- func (o *ListVMParams) WithTimeout(timeout time.Duration) *ListVMParams
- func (o *ListVMParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListVMReader
- type OrderVMByFilterDefault
- type OrderVMByFilterNotFound
- type OrderVMByFilterOK
- type OrderVMByFilterParams
- func (o *OrderVMByFilterParams) SetBody(body *models.VMFilter)
- func (o *OrderVMByFilterParams) SetContext(ctx context.Context)
- func (o *OrderVMByFilterParams) SetTimeout(timeout time.Duration)
- func (o *OrderVMByFilterParams) WithBody(body *models.VMFilter) *OrderVMByFilterParams
- func (o *OrderVMByFilterParams) WithContext(ctx context.Context) *OrderVMByFilterParams
- func (o *OrderVMByFilterParams) WithTimeout(timeout time.Duration) *OrderVMByFilterParams
- func (o *OrderVMByFilterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type OrderVMByFilterReader
- type SoftLayerPoolClient
- type UpdateVMDefault
- type UpdateVMNotFound
- type UpdateVMOK
- type UpdateVMParams
- func (o *UpdateVMParams) SetBody(body *models.VM)
- func (o *UpdateVMParams) SetContext(ctx context.Context)
- func (o *UpdateVMParams) SetTimeout(timeout time.Duration)
- func (o *UpdateVMParams) WithBody(body *models.VM) *UpdateVMParams
- func (o *UpdateVMParams) WithContext(ctx context.Context) *UpdateVMParams
- func (o *UpdateVMParams) WithTimeout(timeout time.Duration) *UpdateVMParams
- func (o *UpdateVMParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateVMReader
- type UpdateVMWithStateDefault
- type UpdateVMWithStateNotFound
- type UpdateVMWithStateOK
- type UpdateVMWithStateParams
- func (o *UpdateVMWithStateParams) SetBody(body *models.VMState)
- func (o *UpdateVMWithStateParams) SetCid(cid int32)
- func (o *UpdateVMWithStateParams) SetContext(ctx context.Context)
- func (o *UpdateVMWithStateParams) SetTimeout(timeout time.Duration)
- func (o *UpdateVMWithStateParams) WithBody(body *models.VMState) *UpdateVMWithStateParams
- func (o *UpdateVMWithStateParams) WithCid(cid int32) *UpdateVMWithStateParams
- func (o *UpdateVMWithStateParams) WithContext(ctx context.Context) *UpdateVMWithStateParams
- func (o *UpdateVMWithStateParams) WithTimeout(timeout time.Duration) *UpdateVMWithStateParams
- func (o *UpdateVMWithStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateVMWithStateReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddVMDefault ¶
AddVMDefault handles this case with default header values.
unexpected error
func NewAddVMDefault ¶
func NewAddVMDefault(code int) *AddVMDefault
NewAddVMDefault creates a AddVMDefault with default headers values
func (*AddVMDefault) Code ¶
func (o *AddVMDefault) Code() int
Code gets the status code for the add Vm default response
func (*AddVMDefault) Error ¶
func (o *AddVMDefault) Error() string
type AddVMOK ¶
type AddVMOK struct {
Payload string
}
AddVMOK handles this case with default header values.
add a new vm into the pool
func NewAddVMOK ¶
func NewAddVMOK() *AddVMOK
NewAddVMOK creates a AddVMOK with default headers values
func (*AddVMOK) WithPayload ¶
WithPayload adds the payload to the add Vm o k response
type AddVMParams ¶
type AddVMParams struct { /*Body Vm object that needs to be added to the pool */ Body *models.VM Context context.Context // contains filtered or unexported fields }
AddVMParams contains all the parameters to send to the API endpoint for the add Vm operation typically these are written to a http.Request
func NewAddVMParams ¶
func NewAddVMParams() *AddVMParams
NewAddVMParams creates a new AddVMParams object with the default values initialized.
func NewAddVMParamsWithContext ¶
func NewAddVMParamsWithContext(ctx context.Context) *AddVMParams
NewAddVMParamsWithContext creates a new AddVMParams object with the default values initialized, and the ability to set a context for a request
func NewAddVMParamsWithTimeout ¶
func NewAddVMParamsWithTimeout(timeout time.Duration) *AddVMParams
NewAddVMParamsWithTimeout creates a new AddVMParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddVMParams) SetBody ¶
func (o *AddVMParams) SetBody(body *models.VM)
SetBody adds the body to the add Vm params
func (*AddVMParams) SetContext ¶
func (o *AddVMParams) SetContext(ctx context.Context)
SetContext adds the context to the add Vm params
func (*AddVMParams) SetTimeout ¶
func (o *AddVMParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add Vm params
func (*AddVMParams) WithBody ¶
func (o *AddVMParams) WithBody(body *models.VM) *AddVMParams
WithBody adds the body to the add Vm params
func (*AddVMParams) WithContext ¶
func (o *AddVMParams) WithContext(ctx context.Context) *AddVMParams
WithContext adds the context to the add Vm params
func (*AddVMParams) WithTimeout ¶
func (o *AddVMParams) WithTimeout(timeout time.Duration) *AddVMParams
WithTimeout adds the timeout to the add Vm params
func (*AddVMParams) WriteToRequest ¶
func (o *AddVMParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddVMReader ¶
type AddVMReader struct {
// contains filtered or unexported fields
}
AddVMReader is a Reader for the AddVM structure.
func (*AddVMReader) ReadResponse ¶
func (o *AddVMReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for vm API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new vm API client.
func (*Client) AddVM ¶
func (a *Client) AddVM(params *AddVMParams) (*AddVMOK, error)
AddVM adds a new vm to the pool
func (*Client) DeleteVM ¶
func (a *Client) DeleteVM(params *DeleteVMParams) (*DeleteVMNoContent, error)
DeleteVM deletes a vm from pool
func (*Client) FindVmsByDeployment ¶
func (a *Client) FindVmsByDeployment(params *FindVmsByDeploymentParams) (*FindVmsByDeploymentOK, error)
FindVmsByDeployment finds vms by deployment name
Multiple deployment values can be provided with comma separated strings
func (*Client) FindVmsByFilters ¶
func (a *Client) FindVmsByFilters(params *FindVmsByFiltersParams) (*FindVmsByFiltersOK, error)
FindVmsByFilters finds vms by filters cpu memory private vlan public vlan state
func (*Client) FindVmsByStates ¶
func (a *Client) FindVmsByStates(params *FindVmsByStatesParams) (*FindVmsByStatesOK, error)
FindVmsByStates finds vms by states
func (*Client) GetVMByCid ¶
func (a *Client) GetVMByCid(params *GetVMByCidParams) (*GetVMByCidOK, error)
GetVMByCid finds vm by ID
Returns a vm when ID < 10. ID > 10 or nonintegers will simulate API error conditions
func (*Client) ListVM ¶
func (a *Client) ListVM(params *ListVMParams) (*ListVMOK, error)
ListVM lists vms of the pool
func (*Client) OrderVMByFilter ¶
func (a *Client) OrderVMByFilter(params *OrderVMByFilterParams) (*OrderVMByFilterOK, error)
OrderVMByFilter orders a free vm by filters cpu memory private vlan public vlan state
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateVM ¶
func (a *Client) UpdateVM(params *UpdateVMParams) (*UpdateVMOK, error)
UpdateVM updates an existing vm
func (*Client) UpdateVMWithState ¶
func (a *Client) UpdateVMWithState(params *UpdateVMWithStateParams) (*UpdateVMWithStateOK, error)
UpdateVMWithState updates a vm in the pool with state
type DeleteVMDefault ¶
DeleteVMDefault handles this case with default header values.
unexpected error
func NewDeleteVMDefault ¶
func NewDeleteVMDefault(code int) *DeleteVMDefault
NewDeleteVMDefault creates a DeleteVMDefault with default headers values
func (*DeleteVMDefault) Code ¶
func (o *DeleteVMDefault) Code() int
Code gets the status code for the delete Vm default response
func (*DeleteVMDefault) Error ¶
func (o *DeleteVMDefault) Error() string
type DeleteVMNoContent ¶
type DeleteVMNoContent struct {
Payload string
}
DeleteVMNoContent handles this case with default header values.
vm removed successfully
func NewDeleteVMNoContent ¶
func NewDeleteVMNoContent() *DeleteVMNoContent
NewDeleteVMNoContent creates a DeleteVMNoContent with default headers values
func (*DeleteVMNoContent) Error ¶
func (o *DeleteVMNoContent) Error() string
type DeleteVMNotFound ¶
type DeleteVMNotFound struct { }
DeleteVMNotFound handles this case with default header values.
vm not found
func NewDeleteVMNotFound ¶
func NewDeleteVMNotFound() *DeleteVMNotFound
NewDeleteVMNotFound creates a DeleteVMNotFound with default headers values
func (*DeleteVMNotFound) Error ¶
func (o *DeleteVMNotFound) Error() string
type DeleteVMParams ¶
type DeleteVMParams struct { /*Cid vm id to delete */ Cid int32 Context context.Context // contains filtered or unexported fields }
DeleteVMParams contains all the parameters to send to the API endpoint for the delete Vm operation typically these are written to a http.Request
func NewDeleteVMParams ¶
func NewDeleteVMParams() *DeleteVMParams
NewDeleteVMParams creates a new DeleteVMParams object with the default values initialized.
func NewDeleteVMParamsWithContext ¶
func NewDeleteVMParamsWithContext(ctx context.Context) *DeleteVMParams
NewDeleteVMParamsWithContext creates a new DeleteVMParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteVMParamsWithTimeout ¶
func NewDeleteVMParamsWithTimeout(timeout time.Duration) *DeleteVMParams
NewDeleteVMParamsWithTimeout creates a new DeleteVMParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteVMParams) SetCid ¶
func (o *DeleteVMParams) SetCid(cid int32)
SetCid adds the cid to the delete Vm params
func (*DeleteVMParams) SetContext ¶
func (o *DeleteVMParams) SetContext(ctx context.Context)
SetContext adds the context to the delete Vm params
func (*DeleteVMParams) SetTimeout ¶
func (o *DeleteVMParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete Vm params
func (*DeleteVMParams) WithCid ¶
func (o *DeleteVMParams) WithCid(cid int32) *DeleteVMParams
WithCid adds the cid to the delete Vm params
func (*DeleteVMParams) WithContext ¶
func (o *DeleteVMParams) WithContext(ctx context.Context) *DeleteVMParams
WithContext adds the context to the delete Vm params
func (*DeleteVMParams) WithTimeout ¶
func (o *DeleteVMParams) WithTimeout(timeout time.Duration) *DeleteVMParams
WithTimeout adds the timeout to the delete Vm params
func (*DeleteVMParams) WriteToRequest ¶
func (o *DeleteVMParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteVMReader ¶
type DeleteVMReader struct {
// contains filtered or unexported fields
}
DeleteVMReader is a Reader for the DeleteVM structure.
func (*DeleteVMReader) ReadResponse ¶
func (o *DeleteVMReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindVmsByDeploymentDefault ¶
type FindVmsByDeploymentDefault struct { Payload *models.Error // contains filtered or unexported fields }
FindVmsByDeploymentDefault handles this case with default header values.
unexpected error
func NewFindVmsByDeploymentDefault ¶
func NewFindVmsByDeploymentDefault(code int) *FindVmsByDeploymentDefault
NewFindVmsByDeploymentDefault creates a FindVmsByDeploymentDefault with default headers values
func (*FindVmsByDeploymentDefault) Code ¶
func (o *FindVmsByDeploymentDefault) Code() int
Code gets the status code for the find vms by deployment default response
func (*FindVmsByDeploymentDefault) Error ¶
func (o *FindVmsByDeploymentDefault) Error() string
type FindVmsByDeploymentNotFound ¶
type FindVmsByDeploymentNotFound struct { }
FindVmsByDeploymentNotFound handles this case with default header values.
vm not found
func NewFindVmsByDeploymentNotFound ¶
func NewFindVmsByDeploymentNotFound() *FindVmsByDeploymentNotFound
NewFindVmsByDeploymentNotFound creates a FindVmsByDeploymentNotFound with default headers values
func (*FindVmsByDeploymentNotFound) Error ¶
func (o *FindVmsByDeploymentNotFound) Error() string
type FindVmsByDeploymentOK ¶
type FindVmsByDeploymentOK struct {
Payload *models.VmsResponse
}
FindVmsByDeploymentOK handles this case with default header values.
successful operation
func NewFindVmsByDeploymentOK ¶
func NewFindVmsByDeploymentOK() *FindVmsByDeploymentOK
NewFindVmsByDeploymentOK creates a FindVmsByDeploymentOK with default headers values
func (*FindVmsByDeploymentOK) Error ¶
func (o *FindVmsByDeploymentOK) Error() string
type FindVmsByDeploymentParams ¶
type FindVmsByDeploymentParams struct { /*Deployment deployment values that need to be considered for filter */ Deployment []string Context context.Context // contains filtered or unexported fields }
FindVmsByDeploymentParams contains all the parameters to send to the API endpoint for the find vms by deployment operation typically these are written to a http.Request
func NewFindVmsByDeploymentParams ¶
func NewFindVmsByDeploymentParams() *FindVmsByDeploymentParams
NewFindVmsByDeploymentParams creates a new FindVmsByDeploymentParams object with the default values initialized.
func NewFindVmsByDeploymentParamsWithContext ¶
func NewFindVmsByDeploymentParamsWithContext(ctx context.Context) *FindVmsByDeploymentParams
NewFindVmsByDeploymentParamsWithContext creates a new FindVmsByDeploymentParams object with the default values initialized, and the ability to set a context for a request
func NewFindVmsByDeploymentParamsWithTimeout ¶
func NewFindVmsByDeploymentParamsWithTimeout(timeout time.Duration) *FindVmsByDeploymentParams
NewFindVmsByDeploymentParamsWithTimeout creates a new FindVmsByDeploymentParams object with the default values initialized, and the ability to set a timeout on a request
func (*FindVmsByDeploymentParams) SetContext ¶
func (o *FindVmsByDeploymentParams) SetContext(ctx context.Context)
SetContext adds the context to the find vms by deployment params
func (*FindVmsByDeploymentParams) SetDeployment ¶
func (o *FindVmsByDeploymentParams) SetDeployment(deployment []string)
SetDeployment adds the deployment to the find vms by deployment params
func (*FindVmsByDeploymentParams) SetTimeout ¶
func (o *FindVmsByDeploymentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find vms by deployment params
func (*FindVmsByDeploymentParams) WithContext ¶
func (o *FindVmsByDeploymentParams) WithContext(ctx context.Context) *FindVmsByDeploymentParams
WithContext adds the context to the find vms by deployment params
func (*FindVmsByDeploymentParams) WithDeployment ¶
func (o *FindVmsByDeploymentParams) WithDeployment(deployment []string) *FindVmsByDeploymentParams
WithDeployment adds the deployment to the find vms by deployment params
func (*FindVmsByDeploymentParams) WithTimeout ¶
func (o *FindVmsByDeploymentParams) WithTimeout(timeout time.Duration) *FindVmsByDeploymentParams
WithTimeout adds the timeout to the find vms by deployment params
func (*FindVmsByDeploymentParams) WriteToRequest ¶
func (o *FindVmsByDeploymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindVmsByDeploymentReader ¶
type FindVmsByDeploymentReader struct {
// contains filtered or unexported fields
}
FindVmsByDeploymentReader is a Reader for the FindVmsByDeployment structure.
func (*FindVmsByDeploymentReader) ReadResponse ¶
func (o *FindVmsByDeploymentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindVmsByFiltersDefault ¶
type FindVmsByFiltersDefault struct { Payload *models.Error // contains filtered or unexported fields }
FindVmsByFiltersDefault handles this case with default header values.
unexpected error
func NewFindVmsByFiltersDefault ¶
func NewFindVmsByFiltersDefault(code int) *FindVmsByFiltersDefault
NewFindVmsByFiltersDefault creates a FindVmsByFiltersDefault with default headers values
func (*FindVmsByFiltersDefault) Code ¶
func (o *FindVmsByFiltersDefault) Code() int
Code gets the status code for the find vms by filters default response
func (*FindVmsByFiltersDefault) Error ¶
func (o *FindVmsByFiltersDefault) Error() string
type FindVmsByFiltersNotFound ¶
type FindVmsByFiltersNotFound struct { }
FindVmsByFiltersNotFound handles this case with default header values.
vm not found
func NewFindVmsByFiltersNotFound ¶
func NewFindVmsByFiltersNotFound() *FindVmsByFiltersNotFound
NewFindVmsByFiltersNotFound creates a FindVmsByFiltersNotFound with default headers values
func (*FindVmsByFiltersNotFound) Error ¶
func (o *FindVmsByFiltersNotFound) Error() string
type FindVmsByFiltersOK ¶
type FindVmsByFiltersOK struct {
Payload *models.VmsResponse
}
FindVmsByFiltersOK handles this case with default header values.
successful operation
func NewFindVmsByFiltersOK ¶
func NewFindVmsByFiltersOK() *FindVmsByFiltersOK
NewFindVmsByFiltersOK creates a FindVmsByFiltersOK with default headers values
func (*FindVmsByFiltersOK) Error ¶
func (o *FindVmsByFiltersOK) Error() string
type FindVmsByFiltersParams ¶
type FindVmsByFiltersParams struct { /*Body Vm object that needs to be added to the pool */ Body *models.VMFilter Context context.Context // contains filtered or unexported fields }
FindVmsByFiltersParams contains all the parameters to send to the API endpoint for the find vms by filters operation typically these are written to a http.Request
func NewFindVmsByFiltersParams ¶
func NewFindVmsByFiltersParams() *FindVmsByFiltersParams
NewFindVmsByFiltersParams creates a new FindVmsByFiltersParams object with the default values initialized.
func NewFindVmsByFiltersParamsWithContext ¶
func NewFindVmsByFiltersParamsWithContext(ctx context.Context) *FindVmsByFiltersParams
NewFindVmsByFiltersParamsWithContext creates a new FindVmsByFiltersParams object with the default values initialized, and the ability to set a context for a request
func NewFindVmsByFiltersParamsWithTimeout ¶
func NewFindVmsByFiltersParamsWithTimeout(timeout time.Duration) *FindVmsByFiltersParams
NewFindVmsByFiltersParamsWithTimeout creates a new FindVmsByFiltersParams object with the default values initialized, and the ability to set a timeout on a request
func (*FindVmsByFiltersParams) SetBody ¶
func (o *FindVmsByFiltersParams) SetBody(body *models.VMFilter)
SetBody adds the body to the find vms by filters params
func (*FindVmsByFiltersParams) SetContext ¶
func (o *FindVmsByFiltersParams) SetContext(ctx context.Context)
SetContext adds the context to the find vms by filters params
func (*FindVmsByFiltersParams) SetTimeout ¶
func (o *FindVmsByFiltersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find vms by filters params
func (*FindVmsByFiltersParams) WithBody ¶
func (o *FindVmsByFiltersParams) WithBody(body *models.VMFilter) *FindVmsByFiltersParams
WithBody adds the body to the find vms by filters params
func (*FindVmsByFiltersParams) WithContext ¶
func (o *FindVmsByFiltersParams) WithContext(ctx context.Context) *FindVmsByFiltersParams
WithContext adds the context to the find vms by filters params
func (*FindVmsByFiltersParams) WithTimeout ¶
func (o *FindVmsByFiltersParams) WithTimeout(timeout time.Duration) *FindVmsByFiltersParams
WithTimeout adds the timeout to the find vms by filters params
func (*FindVmsByFiltersParams) WriteToRequest ¶
func (o *FindVmsByFiltersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindVmsByFiltersReader ¶
type FindVmsByFiltersReader struct {
// contains filtered or unexported fields
}
FindVmsByFiltersReader is a Reader for the FindVmsByFilters structure.
func (*FindVmsByFiltersReader) ReadResponse ¶
func (o *FindVmsByFiltersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindVmsByStatesDefault ¶
type FindVmsByStatesDefault struct { Payload *models.Error // contains filtered or unexported fields }
FindVmsByStatesDefault handles this case with default header values.
unexpected error
func NewFindVmsByStatesDefault ¶
func NewFindVmsByStatesDefault(code int) *FindVmsByStatesDefault
NewFindVmsByStatesDefault creates a FindVmsByStatesDefault with default headers values
func (*FindVmsByStatesDefault) Code ¶
func (o *FindVmsByStatesDefault) Code() int
Code gets the status code for the find vms by states default response
func (*FindVmsByStatesDefault) Error ¶
func (o *FindVmsByStatesDefault) Error() string
type FindVmsByStatesNotFound ¶
type FindVmsByStatesNotFound struct { }
FindVmsByStatesNotFound handles this case with default header values.
vm not found
func NewFindVmsByStatesNotFound ¶
func NewFindVmsByStatesNotFound() *FindVmsByStatesNotFound
NewFindVmsByStatesNotFound creates a FindVmsByStatesNotFound with default headers values
func (*FindVmsByStatesNotFound) Error ¶
func (o *FindVmsByStatesNotFound) Error() string
type FindVmsByStatesOK ¶
type FindVmsByStatesOK struct {
Payload *models.VmsResponse
}
FindVmsByStatesOK handles this case with default header values.
successful operation
func NewFindVmsByStatesOK ¶
func NewFindVmsByStatesOK() *FindVmsByStatesOK
NewFindVmsByStatesOK creates a FindVmsByStatesOK with default headers values
func (*FindVmsByStatesOK) Error ¶
func (o *FindVmsByStatesOK) Error() string
type FindVmsByStatesParams ¶
type FindVmsByStatesParams struct { /*States States to filter by */ States []string Context context.Context // contains filtered or unexported fields }
FindVmsByStatesParams contains all the parameters to send to the API endpoint for the find vms by states operation typically these are written to a http.Request
func NewFindVmsByStatesParams ¶
func NewFindVmsByStatesParams() *FindVmsByStatesParams
NewFindVmsByStatesParams creates a new FindVmsByStatesParams object with the default values initialized.
func NewFindVmsByStatesParamsWithContext ¶
func NewFindVmsByStatesParamsWithContext(ctx context.Context) *FindVmsByStatesParams
NewFindVmsByStatesParamsWithContext creates a new FindVmsByStatesParams object with the default values initialized, and the ability to set a context for a request
func NewFindVmsByStatesParamsWithTimeout ¶
func NewFindVmsByStatesParamsWithTimeout(timeout time.Duration) *FindVmsByStatesParams
NewFindVmsByStatesParamsWithTimeout creates a new FindVmsByStatesParams object with the default values initialized, and the ability to set a timeout on a request
func (*FindVmsByStatesParams) SetContext ¶
func (o *FindVmsByStatesParams) SetContext(ctx context.Context)
SetContext adds the context to the find vms by states params
func (*FindVmsByStatesParams) SetStates ¶
func (o *FindVmsByStatesParams) SetStates(states []string)
SetStates adds the states to the find vms by states params
func (*FindVmsByStatesParams) SetTimeout ¶
func (o *FindVmsByStatesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find vms by states params
func (*FindVmsByStatesParams) WithContext ¶
func (o *FindVmsByStatesParams) WithContext(ctx context.Context) *FindVmsByStatesParams
WithContext adds the context to the find vms by states params
func (*FindVmsByStatesParams) WithStates ¶
func (o *FindVmsByStatesParams) WithStates(states []string) *FindVmsByStatesParams
WithStates adds the states to the find vms by states params
func (*FindVmsByStatesParams) WithTimeout ¶
func (o *FindVmsByStatesParams) WithTimeout(timeout time.Duration) *FindVmsByStatesParams
WithTimeout adds the timeout to the find vms by states params
func (*FindVmsByStatesParams) WriteToRequest ¶
func (o *FindVmsByStatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindVmsByStatesReader ¶
type FindVmsByStatesReader struct {
// contains filtered or unexported fields
}
FindVmsByStatesReader is a Reader for the FindVmsByStates structure.
func (*FindVmsByStatesReader) ReadResponse ¶
func (o *FindVmsByStatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetVMByCidDefault ¶
GetVMByCidDefault handles this case with default header values.
unexpected error
func NewGetVMByCidDefault ¶
func NewGetVMByCidDefault(code int) *GetVMByCidDefault
NewGetVMByCidDefault creates a GetVMByCidDefault with default headers values
func (*GetVMByCidDefault) Code ¶
func (o *GetVMByCidDefault) Code() int
Code gets the status code for the get Vm by cid default response
func (*GetVMByCidDefault) Error ¶
func (o *GetVMByCidDefault) Error() string
type GetVMByCidNotFound ¶
type GetVMByCidNotFound struct { }
GetVMByCidNotFound handles this case with default header values.
vm not found
func NewGetVMByCidNotFound ¶
func NewGetVMByCidNotFound() *GetVMByCidNotFound
NewGetVMByCidNotFound creates a GetVMByCidNotFound with default headers values
func (*GetVMByCidNotFound) Error ¶
func (o *GetVMByCidNotFound) Error() string
type GetVMByCidOK ¶
type GetVMByCidOK struct {
Payload *models.VMResponse
}
GetVMByCidOK handles this case with default header values.
successful operation
func NewGetVMByCidOK ¶
func NewGetVMByCidOK() *GetVMByCidOK
NewGetVMByCidOK creates a GetVMByCidOK with default headers values
func (*GetVMByCidOK) Error ¶
func (o *GetVMByCidOK) Error() string
type GetVMByCidParams ¶
type GetVMByCidParams struct { /*Cid ID of vm that needs to be fetched */ Cid int32 Context context.Context // contains filtered or unexported fields }
GetVMByCidParams contains all the parameters to send to the API endpoint for the get Vm by cid operation typically these are written to a http.Request
func NewGetVMByCidParams ¶
func NewGetVMByCidParams() *GetVMByCidParams
NewGetVMByCidParams creates a new GetVMByCidParams object with the default values initialized.
func NewGetVMByCidParamsWithContext ¶
func NewGetVMByCidParamsWithContext(ctx context.Context) *GetVMByCidParams
NewGetVMByCidParamsWithContext creates a new GetVMByCidParams object with the default values initialized, and the ability to set a context for a request
func NewGetVMByCidParamsWithTimeout ¶
func NewGetVMByCidParamsWithTimeout(timeout time.Duration) *GetVMByCidParams
NewGetVMByCidParamsWithTimeout creates a new GetVMByCidParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetVMByCidParams) SetCid ¶
func (o *GetVMByCidParams) SetCid(cid int32)
SetCid adds the cid to the get Vm by cid params
func (*GetVMByCidParams) SetContext ¶
func (o *GetVMByCidParams) SetContext(ctx context.Context)
SetContext adds the context to the get Vm by cid params
func (*GetVMByCidParams) SetTimeout ¶
func (o *GetVMByCidParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get Vm by cid params
func (*GetVMByCidParams) WithCid ¶
func (o *GetVMByCidParams) WithCid(cid int32) *GetVMByCidParams
WithCid adds the cid to the get Vm by cid params
func (*GetVMByCidParams) WithContext ¶
func (o *GetVMByCidParams) WithContext(ctx context.Context) *GetVMByCidParams
WithContext adds the context to the get Vm by cid params
func (*GetVMByCidParams) WithTimeout ¶
func (o *GetVMByCidParams) WithTimeout(timeout time.Duration) *GetVMByCidParams
WithTimeout adds the timeout to the get Vm by cid params
func (*GetVMByCidParams) WriteToRequest ¶
func (o *GetVMByCidParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetVMByCidReader ¶
type GetVMByCidReader struct {
// contains filtered or unexported fields
}
GetVMByCidReader is a Reader for the GetVMByCid structure.
func (*GetVMByCidReader) ReadResponse ¶
func (o *GetVMByCidReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListVMDefault ¶
ListVMDefault handles this case with default header values.
unexpected error
func NewListVMDefault ¶
func NewListVMDefault(code int) *ListVMDefault
NewListVMDefault creates a ListVMDefault with default headers values
func (*ListVMDefault) Code ¶
func (o *ListVMDefault) Code() int
Code gets the status code for the list Vm default response
func (*ListVMDefault) Error ¶
func (o *ListVMDefault) Error() string
type ListVMNotFound ¶
type ListVMNotFound struct { }
ListVMNotFound handles this case with default header values.
vm not found
func NewListVMNotFound ¶
func NewListVMNotFound() *ListVMNotFound
NewListVMNotFound creates a ListVMNotFound with default headers values
func (*ListVMNotFound) Error ¶
func (o *ListVMNotFound) Error() string
type ListVMOK ¶
type ListVMOK struct {
Payload *models.VmsResponse
}
ListVMOK handles this case with default header values.
successful operation
func NewListVMOK ¶
func NewListVMOK() *ListVMOK
NewListVMOK creates a ListVMOK with default headers values
type ListVMParams ¶
ListVMParams contains all the parameters to send to the API endpoint for the list Vm operation typically these are written to a http.Request
func NewListVMParams ¶
func NewListVMParams() *ListVMParams
NewListVMParams creates a new ListVMParams object with the default values initialized.
func NewListVMParamsWithContext ¶
func NewListVMParamsWithContext(ctx context.Context) *ListVMParams
NewListVMParamsWithContext creates a new ListVMParams object with the default values initialized, and the ability to set a context for a request
func NewListVMParamsWithTimeout ¶
func NewListVMParamsWithTimeout(timeout time.Duration) *ListVMParams
NewListVMParamsWithTimeout creates a new ListVMParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListVMParams) SetContext ¶
func (o *ListVMParams) SetContext(ctx context.Context)
SetContext adds the context to the list Vm params
func (*ListVMParams) SetTimeout ¶
func (o *ListVMParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list Vm params
func (*ListVMParams) WithContext ¶
func (o *ListVMParams) WithContext(ctx context.Context) *ListVMParams
WithContext adds the context to the list Vm params
func (*ListVMParams) WithTimeout ¶
func (o *ListVMParams) WithTimeout(timeout time.Duration) *ListVMParams
WithTimeout adds the timeout to the list Vm params
func (*ListVMParams) WriteToRequest ¶
func (o *ListVMParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListVMReader ¶
type ListVMReader struct {
// contains filtered or unexported fields
}
ListVMReader is a Reader for the ListVM structure.
func (*ListVMReader) ReadResponse ¶
func (o *ListVMReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type OrderVMByFilterDefault ¶
type OrderVMByFilterDefault struct { Payload *models.Error // contains filtered or unexported fields }
OrderVMByFilterDefault handles this case with default header values.
unexpected error
func NewOrderVMByFilterDefault ¶
func NewOrderVMByFilterDefault(code int) *OrderVMByFilterDefault
NewOrderVMByFilterDefault creates a OrderVMByFilterDefault with default headers values
func (*OrderVMByFilterDefault) Code ¶
func (o *OrderVMByFilterDefault) Code() int
Code gets the status code for the order Vm by filter default response
func (*OrderVMByFilterDefault) Error ¶
func (o *OrderVMByFilterDefault) Error() string
type OrderVMByFilterNotFound ¶
type OrderVMByFilterNotFound struct { }
OrderVMByFilterNotFound handles this case with default header values.
vm not found
func NewOrderVMByFilterNotFound ¶
func NewOrderVMByFilterNotFound() *OrderVMByFilterNotFound
NewOrderVMByFilterNotFound creates a OrderVMByFilterNotFound with default headers values
func (*OrderVMByFilterNotFound) Error ¶
func (o *OrderVMByFilterNotFound) Error() string
type OrderVMByFilterOK ¶
type OrderVMByFilterOK struct {
Payload *models.VMResponse
}
OrderVMByFilterOK handles this case with default header values.
successful operation
func NewOrderVMByFilterOK ¶
func NewOrderVMByFilterOK() *OrderVMByFilterOK
NewOrderVMByFilterOK creates a OrderVMByFilterOK with default headers values
func (*OrderVMByFilterOK) Error ¶
func (o *OrderVMByFilterOK) Error() string
func (*OrderVMByFilterOK) WithPayload ¶
func (o *OrderVMByFilterOK) WithPayload(payload *models.VMResponse) *OrderVMByFilterOK
WithPayload adds the payload to the order Vm by filter o k response
type OrderVMByFilterParams ¶
type OrderVMByFilterParams struct { /*Body vm filter to order */ Body *models.VMFilter Context context.Context // contains filtered or unexported fields }
OrderVMByFilterParams contains all the parameters to send to the API endpoint for the order Vm by filter operation typically these are written to a http.Request
func NewOrderVMByFilterParams ¶
func NewOrderVMByFilterParams() *OrderVMByFilterParams
NewOrderVMByFilterParams creates a new OrderVMByFilterParams object with the default values initialized.
func NewOrderVMByFilterParamsWithContext ¶
func NewOrderVMByFilterParamsWithContext(ctx context.Context) *OrderVMByFilterParams
NewOrderVMByFilterParamsWithContext creates a new OrderVMByFilterParams object with the default values initialized, and the ability to set a context for a request
func NewOrderVMByFilterParamsWithTimeout ¶
func NewOrderVMByFilterParamsWithTimeout(timeout time.Duration) *OrderVMByFilterParams
NewOrderVMByFilterParamsWithTimeout creates a new OrderVMByFilterParams object with the default values initialized, and the ability to set a timeout on a request
func (*OrderVMByFilterParams) SetBody ¶
func (o *OrderVMByFilterParams) SetBody(body *models.VMFilter)
SetBody adds the body to the order Vm by filter params
func (*OrderVMByFilterParams) SetContext ¶
func (o *OrderVMByFilterParams) SetContext(ctx context.Context)
SetContext adds the context to the order Vm by filter params
func (*OrderVMByFilterParams) SetTimeout ¶
func (o *OrderVMByFilterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the order Vm by filter params
func (*OrderVMByFilterParams) WithBody ¶
func (o *OrderVMByFilterParams) WithBody(body *models.VMFilter) *OrderVMByFilterParams
WithBody adds the body to the order Vm by filter params
func (*OrderVMByFilterParams) WithContext ¶
func (o *OrderVMByFilterParams) WithContext(ctx context.Context) *OrderVMByFilterParams
WithContext adds the context to the order Vm by filter params
func (*OrderVMByFilterParams) WithTimeout ¶
func (o *OrderVMByFilterParams) WithTimeout(timeout time.Duration) *OrderVMByFilterParams
WithTimeout adds the timeout to the order Vm by filter params
func (*OrderVMByFilterParams) WriteToRequest ¶
func (o *OrderVMByFilterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type OrderVMByFilterReader ¶
type OrderVMByFilterReader struct {
// contains filtered or unexported fields
}
OrderVMByFilterReader is a Reader for the OrderVMByFilter structure.
func (*OrderVMByFilterReader) ReadResponse ¶
func (o *OrderVMByFilterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SoftLayerPoolClient ¶
type SoftLayerPoolClient interface { AddVM(params *AddVMParams) (*AddVMOK, error) DeleteVM(params *DeleteVMParams) (*DeleteVMNoContent, error) FindVmsByDeployment(params *FindVmsByDeploymentParams) (*FindVmsByDeploymentOK, error) FindVmsByFilters(params *FindVmsByFiltersParams) (*FindVmsByFiltersOK, error) FindVmsByStates(params *FindVmsByStatesParams) (*FindVmsByStatesOK, error) GetVMByCid(params *GetVMByCidParams) (*GetVMByCidOK, error) ListVM(params *ListVMParams) (*ListVMOK, error) OrderVMByFilter(params *OrderVMByFilterParams) (*OrderVMByFilterOK, error) UpdateVM(params *UpdateVMParams) (*UpdateVMOK, error) UpdateVMWithState(params *UpdateVMWithStateParams) (*UpdateVMWithStateOK, error) SetTransport(transport runtime.ClientTransport) }
type UpdateVMDefault ¶
UpdateVMDefault handles this case with default header values.
unexpected error
func NewUpdateVMDefault ¶
func NewUpdateVMDefault(code int) *UpdateVMDefault
NewUpdateVMDefault creates a UpdateVMDefault with default headers values
func (*UpdateVMDefault) Code ¶
func (o *UpdateVMDefault) Code() int
Code gets the status code for the update Vm default response
func (*UpdateVMDefault) Error ¶
func (o *UpdateVMDefault) Error() string
type UpdateVMNotFound ¶
type UpdateVMNotFound struct { }
UpdateVMNotFound handles this case with default header values.
vm not found
func NewUpdateVMNotFound ¶
func NewUpdateVMNotFound() *UpdateVMNotFound
NewUpdateVMNotFound creates a UpdateVMNotFound with default headers values
func (*UpdateVMNotFound) Error ¶
func (o *UpdateVMNotFound) Error() string
type UpdateVMOK ¶
type UpdateVMOK struct {
Payload string
}
UpdateVMOK handles this case with default header values.
update vm in the pool
func NewUpdateVMOK ¶
func NewUpdateVMOK() *UpdateVMOK
NewUpdateVMOK creates a UpdateVMOK with default headers values
func (*UpdateVMOK) Error ¶
func (o *UpdateVMOK) Error() string
type UpdateVMParams ¶
type UpdateVMParams struct { /*Body Vm object that needs to be added to the pool */ Body *models.VM Context context.Context // contains filtered or unexported fields }
UpdateVMParams contains all the parameters to send to the API endpoint for the update Vm operation typically these are written to a http.Request
func NewUpdateVMParams ¶
func NewUpdateVMParams() *UpdateVMParams
NewUpdateVMParams creates a new UpdateVMParams object with the default values initialized.
func NewUpdateVMParamsWithContext ¶
func NewUpdateVMParamsWithContext(ctx context.Context) *UpdateVMParams
NewUpdateVMParamsWithContext creates a new UpdateVMParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateVMParamsWithTimeout ¶
func NewUpdateVMParamsWithTimeout(timeout time.Duration) *UpdateVMParams
NewUpdateVMParamsWithTimeout creates a new UpdateVMParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateVMParams) SetBody ¶
func (o *UpdateVMParams) SetBody(body *models.VM)
SetBody adds the body to the update Vm params
func (*UpdateVMParams) SetContext ¶
func (o *UpdateVMParams) SetContext(ctx context.Context)
SetContext adds the context to the update Vm params
func (*UpdateVMParams) SetTimeout ¶
func (o *UpdateVMParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update Vm params
func (*UpdateVMParams) WithBody ¶
func (o *UpdateVMParams) WithBody(body *models.VM) *UpdateVMParams
WithBody adds the body to the update Vm params
func (*UpdateVMParams) WithContext ¶
func (o *UpdateVMParams) WithContext(ctx context.Context) *UpdateVMParams
WithContext adds the context to the update Vm params
func (*UpdateVMParams) WithTimeout ¶
func (o *UpdateVMParams) WithTimeout(timeout time.Duration) *UpdateVMParams
WithTimeout adds the timeout to the update Vm params
func (*UpdateVMParams) WriteToRequest ¶
func (o *UpdateVMParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateVMReader ¶
type UpdateVMReader struct {
// contains filtered or unexported fields
}
UpdateVMReader is a Reader for the UpdateVM structure.
func (*UpdateVMReader) ReadResponse ¶
func (o *UpdateVMReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateVMWithStateDefault ¶
type UpdateVMWithStateDefault struct { Payload *models.Error // contains filtered or unexported fields }
UpdateVMWithStateDefault handles this case with default header values.
unexpected error
func NewUpdateVMWithStateDefault ¶
func NewUpdateVMWithStateDefault(code int) *UpdateVMWithStateDefault
NewUpdateVMWithStateDefault creates a UpdateVMWithStateDefault with default headers values
func (*UpdateVMWithStateDefault) Code ¶
func (o *UpdateVMWithStateDefault) Code() int
Code gets the status code for the update Vm with state default response
func (*UpdateVMWithStateDefault) Error ¶
func (o *UpdateVMWithStateDefault) Error() string
type UpdateVMWithStateNotFound ¶
type UpdateVMWithStateNotFound struct { }
UpdateVMWithStateNotFound handles this case with default header values.
vm not found
func NewUpdateVMWithStateNotFound ¶
func NewUpdateVMWithStateNotFound() *UpdateVMWithStateNotFound
NewUpdateVMWithStateNotFound creates a UpdateVMWithStateNotFound with default headers values
func (*UpdateVMWithStateNotFound) Error ¶
func (o *UpdateVMWithStateNotFound) Error() string
type UpdateVMWithStateOK ¶
type UpdateVMWithStateOK struct {
Payload string
}
UpdateVMWithStateOK handles this case with default header values.
state updated successfully
func NewUpdateVMWithStateOK ¶
func NewUpdateVMWithStateOK() *UpdateVMWithStateOK
NewUpdateVMWithStateOK creates a UpdateVMWithStateOK with default headers values
func (*UpdateVMWithStateOK) Error ¶
func (o *UpdateVMWithStateOK) Error() string
func (*UpdateVMWithStateOK) WithPayload ¶
func (o *UpdateVMWithStateOK) WithPayload(payload string) *UpdateVMWithStateOK
WithPayload adds the payload to the update Vm with state o k response
type UpdateVMWithStateParams ¶
type UpdateVMWithStateParams struct { /*Body Vm state that needs to be updated */ Body *models.VMState /*Cid ID of vm that needs to be updated */ Cid int32 Context context.Context // contains filtered or unexported fields }
UpdateVMWithStateParams contains all the parameters to send to the API endpoint for the update Vm with state operation typically these are written to a http.Request
func NewUpdateVMWithStateParams ¶
func NewUpdateVMWithStateParams() *UpdateVMWithStateParams
NewUpdateVMWithStateParams creates a new UpdateVMWithStateParams object with the default values initialized.
func NewUpdateVMWithStateParamsWithContext ¶
func NewUpdateVMWithStateParamsWithContext(ctx context.Context) *UpdateVMWithStateParams
NewUpdateVMWithStateParamsWithContext creates a new UpdateVMWithStateParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateVMWithStateParamsWithTimeout ¶
func NewUpdateVMWithStateParamsWithTimeout(timeout time.Duration) *UpdateVMWithStateParams
NewUpdateVMWithStateParamsWithTimeout creates a new UpdateVMWithStateParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateVMWithStateParams) SetBody ¶
func (o *UpdateVMWithStateParams) SetBody(body *models.VMState)
SetBody adds the body to the update Vm with state params
func (*UpdateVMWithStateParams) SetCid ¶
func (o *UpdateVMWithStateParams) SetCid(cid int32)
SetCid adds the cid to the update Vm with state params
func (*UpdateVMWithStateParams) SetContext ¶
func (o *UpdateVMWithStateParams) SetContext(ctx context.Context)
SetContext adds the context to the update Vm with state params
func (*UpdateVMWithStateParams) SetTimeout ¶
func (o *UpdateVMWithStateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update Vm with state params
func (*UpdateVMWithStateParams) WithBody ¶
func (o *UpdateVMWithStateParams) WithBody(body *models.VMState) *UpdateVMWithStateParams
WithBody adds the body to the update Vm with state params
func (*UpdateVMWithStateParams) WithCid ¶
func (o *UpdateVMWithStateParams) WithCid(cid int32) *UpdateVMWithStateParams
WithCid adds the cid to the update Vm with state params
func (*UpdateVMWithStateParams) WithContext ¶
func (o *UpdateVMWithStateParams) WithContext(ctx context.Context) *UpdateVMWithStateParams
WithContext adds the context to the update Vm with state params
func (*UpdateVMWithStateParams) WithTimeout ¶
func (o *UpdateVMWithStateParams) WithTimeout(timeout time.Duration) *UpdateVMWithStateParams
WithTimeout adds the timeout to the update Vm with state params
func (*UpdateVMWithStateParams) WriteToRequest ¶
func (o *UpdateVMWithStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateVMWithStateReader ¶
type UpdateVMWithStateReader struct {
// contains filtered or unexported fields
}
UpdateVMWithStateReader is a Reader for the UpdateVMWithState structure.
func (*UpdateVMWithStateReader) ReadResponse ¶
func (o *UpdateVMWithStateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- add_vm_parameters.go
- add_vm_responses.go
- delete_vm_parameters.go
- delete_vm_responses.go
- find_vms_by_deployment_parameters.go
- find_vms_by_deployment_responses.go
- find_vms_by_filters_parameters.go
- find_vms_by_filters_responses.go
- find_vms_by_states_parameters.go
- find_vms_by_states_responses.go
- get_vm_by_cid_parameters.go
- get_vm_by_cid_responses.go
- interface.go
- list_vm_parameters.go
- list_vm_responses.go
- order_vm_by_filter_parameters.go
- order_vm_by_filter_responses.go
- update_vm_parameters.go
- update_vm_responses.go
- update_vm_with_state_parameters.go
- update_vm_with_state_responses.go
- vm_client.go