compute

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for compute API

func (*Client) CreateMachine

func (a *Client) CreateMachine(params *CreateMachineParams, opts ...ClientOption) (*CreateMachineAccepted, error)

CreateMachine creates machine

Create machine

func (*Client) CreateMachineSnapshot

func (a *Client) CreateMachineSnapshot(params *CreateMachineSnapshotParams, opts ...ClientOption) (*CreateMachineSnapshotAccepted, error)

CreateMachineSnapshot creates snapshot operation for machine

Second day create snapshot operation for machine

func (*Client) DeleteMachine

func (a *Client) DeleteMachine(params *DeleteMachineParams, opts ...ClientOption) (*DeleteMachineAccepted, error)

DeleteMachine deletes machine

Delete Machine with a given id

func (*Client) DeleteMachineSnapshot

DeleteMachineSnapshot deletes snapshot operation for machine

Second day delete snapshot operation for machine

func (*Client) GetMachine

func (a *Client) GetMachine(params *GetMachineParams, opts ...ClientOption) (*GetMachineOK, error)

GetMachine gets machine

Get machine with a given id

func (*Client) GetMachineSnapshot added in v0.2.8

func (a *Client) GetMachineSnapshot(params *GetMachineSnapshotParams, opts ...ClientOption) (*GetMachineSnapshotOK, error)

GetMachineSnapshot gets machine snapshot

Get snapshot with a given id for specific machine

func (*Client) GetMachineSnapshots

func (a *Client) GetMachineSnapshots(params *GetMachineSnapshotsParams, opts ...ClientOption) (*GetMachineSnapshotsOK, error)

GetMachineSnapshots gets machine snapshots information

Get machine snapshots information

func (*Client) GetMachines

func (a *Client) GetMachines(params *GetMachinesParams, opts ...ClientOption) (*GetMachinesOK, error)

GetMachines gets machines

Get all machines

func (*Client) PowerOffMachine

func (a *Client) PowerOffMachine(params *PowerOffMachineParams, opts ...ClientOption) (*PowerOffMachineAccepted, error)

PowerOffMachine powers off operation for machine

Second day power-off operation for machine

func (*Client) PowerOnMachine

func (a *Client) PowerOnMachine(params *PowerOnMachineParams, opts ...ClientOption) (*PowerOnMachineAccepted, error)

PowerOnMachine powers on operation for machine

Second day power-on operation for machine

func (*Client) RebootMachine

func (a *Client) RebootMachine(params *RebootMachineParams, opts ...ClientOption) (*RebootMachineAccepted, error)

RebootMachine reboots operation for machine

Second day reboot operation for machine

func (*Client) ResetMachine

func (a *Client) ResetMachine(params *ResetMachineParams, opts ...ClientOption) (*ResetMachineAccepted, error)

ResetMachine resets operation for machine

Second day reset operation for machine

func (*Client) ResizeMachine

func (a *Client) ResizeMachine(params *ResizeMachineParams, opts ...ClientOption) (*ResizeMachineAccepted, error)

ResizeMachine resizes operation for machine

Second day resize operation for machine

func (*Client) RestartMachine

func (a *Client) RestartMachine(params *RestartMachineParams, opts ...ClientOption) (*RestartMachineAccepted, error)

RestartMachine restarts operation for machine

Second day restart operation for machine

func (*Client) RevertMachineSnapshot

func (a *Client) RevertMachineSnapshot(params *RevertMachineSnapshotParams, opts ...ClientOption) (*RevertMachineSnapshotAccepted, error)

RevertMachineSnapshot reverts snapshot operation for machine

Second day revert snapshot operation for machine

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) ShutdownMachine

func (a *Client) ShutdownMachine(params *ShutdownMachineParams, opts ...ClientOption) (*ShutdownMachineAccepted, error)

ShutdownMachine shuts down operation for machine

Second day shut down operation machine

func (*Client) SuspendMachine

func (a *Client) SuspendMachine(params *SuspendMachineParams, opts ...ClientOption) (*SuspendMachineAccepted, error)

SuspendMachine suspends operation for machine

Second day suspend operation for machine

func (*Client) UpdateMachine

func (a *Client) UpdateMachine(params *UpdateMachineParams, opts ...ClientOption) (*UpdateMachineOK, error)

UpdateMachine updates machine

Update machine. Only description, tag, custom property and bootConfig updates are supported. Please note that all existing tags, assigned to this machine, that are not implicitly added in the Patch body, will be unassigned from this machine!All other properties in the MachineSpecification body are ignored.

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

type ClientService interface {
	CreateMachine(params *CreateMachineParams, opts ...ClientOption) (*CreateMachineAccepted, error)

	CreateMachineSnapshot(params *CreateMachineSnapshotParams, opts ...ClientOption) (*CreateMachineSnapshotAccepted, error)

	DeleteMachine(params *DeleteMachineParams, opts ...ClientOption) (*DeleteMachineAccepted, error)

	DeleteMachineSnapshot(params *DeleteMachineSnapshotParams, opts ...ClientOption) (*DeleteMachineSnapshotAccepted, *DeleteMachineSnapshotNoContent, error)

	GetMachine(params *GetMachineParams, opts ...ClientOption) (*GetMachineOK, error)

	GetMachineSnapshot(params *GetMachineSnapshotParams, opts ...ClientOption) (*GetMachineSnapshotOK, error)

	GetMachineSnapshots(params *GetMachineSnapshotsParams, opts ...ClientOption) (*GetMachineSnapshotsOK, error)

	GetMachines(params *GetMachinesParams, opts ...ClientOption) (*GetMachinesOK, error)

	PowerOffMachine(params *PowerOffMachineParams, opts ...ClientOption) (*PowerOffMachineAccepted, error)

	PowerOnMachine(params *PowerOnMachineParams, opts ...ClientOption) (*PowerOnMachineAccepted, error)

	RebootMachine(params *RebootMachineParams, opts ...ClientOption) (*RebootMachineAccepted, error)

	ResetMachine(params *ResetMachineParams, opts ...ClientOption) (*ResetMachineAccepted, error)

	ResizeMachine(params *ResizeMachineParams, opts ...ClientOption) (*ResizeMachineAccepted, error)

	RestartMachine(params *RestartMachineParams, opts ...ClientOption) (*RestartMachineAccepted, error)

	RevertMachineSnapshot(params *RevertMachineSnapshotParams, opts ...ClientOption) (*RevertMachineSnapshotAccepted, error)

	ShutdownMachine(params *ShutdownMachineParams, opts ...ClientOption) (*ShutdownMachineAccepted, error)

	SuspendMachine(params *SuspendMachineParams, opts ...ClientOption) (*SuspendMachineAccepted, error)

	UpdateMachine(params *UpdateMachineParams, opts ...ClientOption) (*UpdateMachineOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new compute API client.

type CreateMachineAccepted

type CreateMachineAccepted struct {
	Payload *models.RequestTracker
}

CreateMachineAccepted describes a response with status code 202, with default header values.

successful operation

func NewCreateMachineAccepted

func NewCreateMachineAccepted() *CreateMachineAccepted

NewCreateMachineAccepted creates a CreateMachineAccepted with default headers values

func (*CreateMachineAccepted) Error

func (o *CreateMachineAccepted) Error() string

func (*CreateMachineAccepted) GetPayload

func (o *CreateMachineAccepted) GetPayload() *models.RequestTracker

func (*CreateMachineAccepted) IsClientError added in v0.5.0

func (o *CreateMachineAccepted) IsClientError() bool

IsClientError returns true when this create machine accepted response has a 4xx status code

func (*CreateMachineAccepted) IsCode added in v0.5.0

func (o *CreateMachineAccepted) IsCode(code int) bool

IsCode returns true when this create machine accepted response a status code equal to that given

func (*CreateMachineAccepted) IsRedirect added in v0.5.0

func (o *CreateMachineAccepted) IsRedirect() bool

IsRedirect returns true when this create machine accepted response has a 3xx status code

func (*CreateMachineAccepted) IsServerError added in v0.5.0

func (o *CreateMachineAccepted) IsServerError() bool

IsServerError returns true when this create machine accepted response has a 5xx status code

func (*CreateMachineAccepted) IsSuccess added in v0.5.0

func (o *CreateMachineAccepted) IsSuccess() bool

IsSuccess returns true when this create machine accepted response has a 2xx status code

func (*CreateMachineAccepted) String added in v0.5.0

func (o *CreateMachineAccepted) String() string

type CreateMachineBadRequest

type CreateMachineBadRequest struct {
	Payload *models.Error
}

CreateMachineBadRequest describes a response with status code 400, with default header values.

Invalid Request - bad data

func NewCreateMachineBadRequest

func NewCreateMachineBadRequest() *CreateMachineBadRequest

NewCreateMachineBadRequest creates a CreateMachineBadRequest with default headers values

func (*CreateMachineBadRequest) Error

func (o *CreateMachineBadRequest) Error() string

func (*CreateMachineBadRequest) GetPayload added in v0.2.9

func (o *CreateMachineBadRequest) GetPayload() *models.Error

func (*CreateMachineBadRequest) IsClientError added in v0.5.0

func (o *CreateMachineBadRequest) IsClientError() bool

IsClientError returns true when this create machine bad request response has a 4xx status code

func (*CreateMachineBadRequest) IsCode added in v0.5.0

func (o *CreateMachineBadRequest) IsCode(code int) bool

IsCode returns true when this create machine bad request response a status code equal to that given

func (*CreateMachineBadRequest) IsRedirect added in v0.5.0

func (o *CreateMachineBadRequest) IsRedirect() bool

IsRedirect returns true when this create machine bad request response has a 3xx status code

func (*CreateMachineBadRequest) IsServerError added in v0.5.0

func (o *CreateMachineBadRequest) IsServerError() bool

IsServerError returns true when this create machine bad request response has a 5xx status code

func (*CreateMachineBadRequest) IsSuccess added in v0.5.0

func (o *CreateMachineBadRequest) IsSuccess() bool

IsSuccess returns true when this create machine bad request response has a 2xx status code

func (*CreateMachineBadRequest) String added in v0.5.0

func (o *CreateMachineBadRequest) String() string

type CreateMachineForbidden

type CreateMachineForbidden struct {
	Payload *models.ServiceErrorResponse
}

CreateMachineForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCreateMachineForbidden

func NewCreateMachineForbidden() *CreateMachineForbidden

NewCreateMachineForbidden creates a CreateMachineForbidden with default headers values

func (*CreateMachineForbidden) Error

func (o *CreateMachineForbidden) Error() string

func (*CreateMachineForbidden) GetPayload added in v0.2.20

func (*CreateMachineForbidden) IsClientError added in v0.5.0

func (o *CreateMachineForbidden) IsClientError() bool

IsClientError returns true when this create machine forbidden response has a 4xx status code

func (*CreateMachineForbidden) IsCode added in v0.5.0

func (o *CreateMachineForbidden) IsCode(code int) bool

IsCode returns true when this create machine forbidden response a status code equal to that given

func (*CreateMachineForbidden) IsRedirect added in v0.5.0

func (o *CreateMachineForbidden) IsRedirect() bool

IsRedirect returns true when this create machine forbidden response has a 3xx status code

func (*CreateMachineForbidden) IsServerError added in v0.5.0

func (o *CreateMachineForbidden) IsServerError() bool

IsServerError returns true when this create machine forbidden response has a 5xx status code

func (*CreateMachineForbidden) IsSuccess added in v0.5.0

func (o *CreateMachineForbidden) IsSuccess() bool

IsSuccess returns true when this create machine forbidden response has a 2xx status code

func (*CreateMachineForbidden) String added in v0.5.0

func (o *CreateMachineForbidden) String() string

type CreateMachineParams

type CreateMachineParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* Body.

	   Machine Specification instance
	*/
	Body *models.MachineSpecification

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateMachineParams contains all the parameters to send to the API endpoint

for the create machine operation.

Typically these are written to a http.Request.

func NewCreateMachineParams

func NewCreateMachineParams() *CreateMachineParams

NewCreateMachineParams creates a new CreateMachineParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateMachineParamsWithContext

func NewCreateMachineParamsWithContext(ctx context.Context) *CreateMachineParams

NewCreateMachineParamsWithContext creates a new CreateMachineParams object with the ability to set a context for a request.

func NewCreateMachineParamsWithHTTPClient

func NewCreateMachineParamsWithHTTPClient(client *http.Client) *CreateMachineParams

NewCreateMachineParamsWithHTTPClient creates a new CreateMachineParams object with the ability to set a custom HTTPClient for a request.

func NewCreateMachineParamsWithTimeout

func NewCreateMachineParamsWithTimeout(timeout time.Duration) *CreateMachineParams

NewCreateMachineParamsWithTimeout creates a new CreateMachineParams object with the ability to set a timeout on a request.

func (*CreateMachineParams) SetAPIVersion

func (o *CreateMachineParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the create machine params

func (*CreateMachineParams) SetBody

SetBody adds the body to the create machine params

func (*CreateMachineParams) SetContext

func (o *CreateMachineParams) SetContext(ctx context.Context)

SetContext adds the context to the create machine params

func (*CreateMachineParams) SetDefaults added in v0.2.20

func (o *CreateMachineParams) SetDefaults()

SetDefaults hydrates default values in the create machine params (not the query body).

All values with no default are reset to their zero value.

func (*CreateMachineParams) SetHTTPClient

func (o *CreateMachineParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create machine params

func (*CreateMachineParams) SetTimeout

func (o *CreateMachineParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create machine params

func (*CreateMachineParams) WithAPIVersion

func (o *CreateMachineParams) WithAPIVersion(aPIVersion *string) *CreateMachineParams

WithAPIVersion adds the aPIVersion to the create machine params

func (*CreateMachineParams) WithBody

WithBody adds the body to the create machine params

func (*CreateMachineParams) WithContext

WithContext adds the context to the create machine params

func (*CreateMachineParams) WithDefaults added in v0.2.20

func (o *CreateMachineParams) WithDefaults() *CreateMachineParams

WithDefaults hydrates default values in the create machine params (not the query body).

All values with no default are reset to their zero value.

func (*CreateMachineParams) WithHTTPClient

func (o *CreateMachineParams) WithHTTPClient(client *http.Client) *CreateMachineParams

WithHTTPClient adds the HTTPClient to the create machine params

func (*CreateMachineParams) WithTimeout

func (o *CreateMachineParams) WithTimeout(timeout time.Duration) *CreateMachineParams

WithTimeout adds the timeout to the create machine params

func (*CreateMachineParams) WriteToRequest

func (o *CreateMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateMachineReader

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

CreateMachineReader is a Reader for the CreateMachine structure.

func (*CreateMachineReader) ReadResponse

func (o *CreateMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateMachineSnapshotAccepted

type CreateMachineSnapshotAccepted struct {
	Payload *models.RequestTracker
}

CreateMachineSnapshotAccepted describes a response with status code 202, with default header values.

successful operation

func NewCreateMachineSnapshotAccepted

func NewCreateMachineSnapshotAccepted() *CreateMachineSnapshotAccepted

NewCreateMachineSnapshotAccepted creates a CreateMachineSnapshotAccepted with default headers values

func (*CreateMachineSnapshotAccepted) Error

func (*CreateMachineSnapshotAccepted) GetPayload

func (*CreateMachineSnapshotAccepted) IsClientError added in v0.5.0

func (o *CreateMachineSnapshotAccepted) IsClientError() bool

IsClientError returns true when this create machine snapshot accepted response has a 4xx status code

func (*CreateMachineSnapshotAccepted) IsCode added in v0.5.0

func (o *CreateMachineSnapshotAccepted) IsCode(code int) bool

IsCode returns true when this create machine snapshot accepted response a status code equal to that given

func (*CreateMachineSnapshotAccepted) IsRedirect added in v0.5.0

func (o *CreateMachineSnapshotAccepted) IsRedirect() bool

IsRedirect returns true when this create machine snapshot accepted response has a 3xx status code

func (*CreateMachineSnapshotAccepted) IsServerError added in v0.5.0

func (o *CreateMachineSnapshotAccepted) IsServerError() bool

IsServerError returns true when this create machine snapshot accepted response has a 5xx status code

func (*CreateMachineSnapshotAccepted) IsSuccess added in v0.5.0

func (o *CreateMachineSnapshotAccepted) IsSuccess() bool

IsSuccess returns true when this create machine snapshot accepted response has a 2xx status code

func (*CreateMachineSnapshotAccepted) String added in v0.5.0

type CreateMachineSnapshotForbidden

type CreateMachineSnapshotForbidden struct {
	Payload *models.ServiceErrorResponse
}

CreateMachineSnapshotForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCreateMachineSnapshotForbidden

func NewCreateMachineSnapshotForbidden() *CreateMachineSnapshotForbidden

NewCreateMachineSnapshotForbidden creates a CreateMachineSnapshotForbidden with default headers values

func (*CreateMachineSnapshotForbidden) Error

func (*CreateMachineSnapshotForbidden) GetPayload added in v0.2.20

func (*CreateMachineSnapshotForbidden) IsClientError added in v0.5.0

func (o *CreateMachineSnapshotForbidden) IsClientError() bool

IsClientError returns true when this create machine snapshot forbidden response has a 4xx status code

func (*CreateMachineSnapshotForbidden) IsCode added in v0.5.0

func (o *CreateMachineSnapshotForbidden) IsCode(code int) bool

IsCode returns true when this create machine snapshot forbidden response a status code equal to that given

func (*CreateMachineSnapshotForbidden) IsRedirect added in v0.5.0

func (o *CreateMachineSnapshotForbidden) IsRedirect() bool

IsRedirect returns true when this create machine snapshot forbidden response has a 3xx status code

func (*CreateMachineSnapshotForbidden) IsServerError added in v0.5.0

func (o *CreateMachineSnapshotForbidden) IsServerError() bool

IsServerError returns true when this create machine snapshot forbidden response has a 5xx status code

func (*CreateMachineSnapshotForbidden) IsSuccess added in v0.5.0

func (o *CreateMachineSnapshotForbidden) IsSuccess() bool

IsSuccess returns true when this create machine snapshot forbidden response has a 2xx status code

func (*CreateMachineSnapshotForbidden) String added in v0.5.0

type CreateMachineSnapshotNotFound

type CreateMachineSnapshotNotFound struct {
	Payload *models.Error
}

CreateMachineSnapshotNotFound describes a response with status code 404, with default header values.

Not Found

func NewCreateMachineSnapshotNotFound

func NewCreateMachineSnapshotNotFound() *CreateMachineSnapshotNotFound

NewCreateMachineSnapshotNotFound creates a CreateMachineSnapshotNotFound with default headers values

func (*CreateMachineSnapshotNotFound) Error

func (*CreateMachineSnapshotNotFound) GetPayload added in v0.2.9

func (o *CreateMachineSnapshotNotFound) GetPayload() *models.Error

func (*CreateMachineSnapshotNotFound) IsClientError added in v0.5.0

func (o *CreateMachineSnapshotNotFound) IsClientError() bool

IsClientError returns true when this create machine snapshot not found response has a 4xx status code

func (*CreateMachineSnapshotNotFound) IsCode added in v0.5.0

func (o *CreateMachineSnapshotNotFound) IsCode(code int) bool

IsCode returns true when this create machine snapshot not found response a status code equal to that given

func (*CreateMachineSnapshotNotFound) IsRedirect added in v0.5.0

func (o *CreateMachineSnapshotNotFound) IsRedirect() bool

IsRedirect returns true when this create machine snapshot not found response has a 3xx status code

func (*CreateMachineSnapshotNotFound) IsServerError added in v0.5.0

func (o *CreateMachineSnapshotNotFound) IsServerError() bool

IsServerError returns true when this create machine snapshot not found response has a 5xx status code

func (*CreateMachineSnapshotNotFound) IsSuccess added in v0.5.0

func (o *CreateMachineSnapshotNotFound) IsSuccess() bool

IsSuccess returns true when this create machine snapshot not found response has a 2xx status code

func (*CreateMachineSnapshotNotFound) String added in v0.5.0

type CreateMachineSnapshotParams

type CreateMachineSnapshotParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* Body.

	   Snapshot Specification details
	*/
	Body *models.SnapshotSpecification

	/* ID.

	   The id of the Machine.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateMachineSnapshotParams contains all the parameters to send to the API endpoint

for the create machine snapshot operation.

Typically these are written to a http.Request.

func NewCreateMachineSnapshotParams

func NewCreateMachineSnapshotParams() *CreateMachineSnapshotParams

NewCreateMachineSnapshotParams creates a new CreateMachineSnapshotParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateMachineSnapshotParamsWithContext

func NewCreateMachineSnapshotParamsWithContext(ctx context.Context) *CreateMachineSnapshotParams

NewCreateMachineSnapshotParamsWithContext creates a new CreateMachineSnapshotParams object with the ability to set a context for a request.

func NewCreateMachineSnapshotParamsWithHTTPClient

func NewCreateMachineSnapshotParamsWithHTTPClient(client *http.Client) *CreateMachineSnapshotParams

NewCreateMachineSnapshotParamsWithHTTPClient creates a new CreateMachineSnapshotParams object with the ability to set a custom HTTPClient for a request.

func NewCreateMachineSnapshotParamsWithTimeout

func NewCreateMachineSnapshotParamsWithTimeout(timeout time.Duration) *CreateMachineSnapshotParams

NewCreateMachineSnapshotParamsWithTimeout creates a new CreateMachineSnapshotParams object with the ability to set a timeout on a request.

func (*CreateMachineSnapshotParams) SetAPIVersion

func (o *CreateMachineSnapshotParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the create machine snapshot params

func (*CreateMachineSnapshotParams) SetBody

SetBody adds the body to the create machine snapshot params

func (*CreateMachineSnapshotParams) SetContext

func (o *CreateMachineSnapshotParams) SetContext(ctx context.Context)

SetContext adds the context to the create machine snapshot params

func (*CreateMachineSnapshotParams) SetDefaults added in v0.2.20

func (o *CreateMachineSnapshotParams) SetDefaults()

SetDefaults hydrates default values in the create machine snapshot params (not the query body).

All values with no default are reset to their zero value.

func (*CreateMachineSnapshotParams) SetHTTPClient

func (o *CreateMachineSnapshotParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create machine snapshot params

func (*CreateMachineSnapshotParams) SetID

func (o *CreateMachineSnapshotParams) SetID(id string)

SetID adds the id to the create machine snapshot params

func (*CreateMachineSnapshotParams) SetTimeout

func (o *CreateMachineSnapshotParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create machine snapshot params

func (*CreateMachineSnapshotParams) WithAPIVersion

func (o *CreateMachineSnapshotParams) WithAPIVersion(aPIVersion *string) *CreateMachineSnapshotParams

WithAPIVersion adds the aPIVersion to the create machine snapshot params

func (*CreateMachineSnapshotParams) WithBody

WithBody adds the body to the create machine snapshot params

func (*CreateMachineSnapshotParams) WithContext

WithContext adds the context to the create machine snapshot params

func (*CreateMachineSnapshotParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the create machine snapshot params (not the query body).

All values with no default are reset to their zero value.

func (*CreateMachineSnapshotParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create machine snapshot params

func (*CreateMachineSnapshotParams) WithID

WithID adds the id to the create machine snapshot params

func (*CreateMachineSnapshotParams) WithTimeout

WithTimeout adds the timeout to the create machine snapshot params

func (*CreateMachineSnapshotParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateMachineSnapshotReader

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

CreateMachineSnapshotReader is a Reader for the CreateMachineSnapshot structure.

func (*CreateMachineSnapshotReader) ReadResponse

func (o *CreateMachineSnapshotReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteMachineAccepted

type DeleteMachineAccepted struct {
	Payload *models.RequestTracker
}

DeleteMachineAccepted describes a response with status code 202, with default header values.

successful operation

func NewDeleteMachineAccepted

func NewDeleteMachineAccepted() *DeleteMachineAccepted

NewDeleteMachineAccepted creates a DeleteMachineAccepted with default headers values

func (*DeleteMachineAccepted) Error

func (o *DeleteMachineAccepted) Error() string

func (*DeleteMachineAccepted) GetPayload

func (o *DeleteMachineAccepted) GetPayload() *models.RequestTracker

func (*DeleteMachineAccepted) IsClientError added in v0.5.0

func (o *DeleteMachineAccepted) IsClientError() bool

IsClientError returns true when this delete machine accepted response has a 4xx status code

func (*DeleteMachineAccepted) IsCode added in v0.5.0

func (o *DeleteMachineAccepted) IsCode(code int) bool

IsCode returns true when this delete machine accepted response a status code equal to that given

func (*DeleteMachineAccepted) IsRedirect added in v0.5.0

func (o *DeleteMachineAccepted) IsRedirect() bool

IsRedirect returns true when this delete machine accepted response has a 3xx status code

func (*DeleteMachineAccepted) IsServerError added in v0.5.0

func (o *DeleteMachineAccepted) IsServerError() bool

IsServerError returns true when this delete machine accepted response has a 5xx status code

func (*DeleteMachineAccepted) IsSuccess added in v0.5.0

func (o *DeleteMachineAccepted) IsSuccess() bool

IsSuccess returns true when this delete machine accepted response has a 2xx status code

func (*DeleteMachineAccepted) String added in v0.5.0

func (o *DeleteMachineAccepted) String() string

type DeleteMachineForbidden

type DeleteMachineForbidden struct {
	Payload *models.ServiceErrorResponse
}

DeleteMachineForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteMachineForbidden

func NewDeleteMachineForbidden() *DeleteMachineForbidden

NewDeleteMachineForbidden creates a DeleteMachineForbidden with default headers values

func (*DeleteMachineForbidden) Error

func (o *DeleteMachineForbidden) Error() string

func (*DeleteMachineForbidden) GetPayload added in v0.2.20

func (*DeleteMachineForbidden) IsClientError added in v0.5.0

func (o *DeleteMachineForbidden) IsClientError() bool

IsClientError returns true when this delete machine forbidden response has a 4xx status code

func (*DeleteMachineForbidden) IsCode added in v0.5.0

func (o *DeleteMachineForbidden) IsCode(code int) bool

IsCode returns true when this delete machine forbidden response a status code equal to that given

func (*DeleteMachineForbidden) IsRedirect added in v0.5.0

func (o *DeleteMachineForbidden) IsRedirect() bool

IsRedirect returns true when this delete machine forbidden response has a 3xx status code

func (*DeleteMachineForbidden) IsServerError added in v0.5.0

func (o *DeleteMachineForbidden) IsServerError() bool

IsServerError returns true when this delete machine forbidden response has a 5xx status code

func (*DeleteMachineForbidden) IsSuccess added in v0.5.0

func (o *DeleteMachineForbidden) IsSuccess() bool

IsSuccess returns true when this delete machine forbidden response has a 2xx status code

func (*DeleteMachineForbidden) String added in v0.5.0

func (o *DeleteMachineForbidden) String() string

type DeleteMachineParams

type DeleteMachineParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ForceDelete.

	   Controls whether this is a force delete operation. If true, best effort is made for deleting this machine. Use with caution as force deleting may cause inconsistencies between the cloud provider and vRA.
	*/
	ForceDelete *bool

	/* ID.

	   The ID of the machine.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteMachineParams contains all the parameters to send to the API endpoint

for the delete machine operation.

Typically these are written to a http.Request.

func NewDeleteMachineParams

func NewDeleteMachineParams() *DeleteMachineParams

NewDeleteMachineParams creates a new DeleteMachineParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteMachineParamsWithContext

func NewDeleteMachineParamsWithContext(ctx context.Context) *DeleteMachineParams

NewDeleteMachineParamsWithContext creates a new DeleteMachineParams object with the ability to set a context for a request.

func NewDeleteMachineParamsWithHTTPClient

func NewDeleteMachineParamsWithHTTPClient(client *http.Client) *DeleteMachineParams

NewDeleteMachineParamsWithHTTPClient creates a new DeleteMachineParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteMachineParamsWithTimeout

func NewDeleteMachineParamsWithTimeout(timeout time.Duration) *DeleteMachineParams

NewDeleteMachineParamsWithTimeout creates a new DeleteMachineParams object with the ability to set a timeout on a request.

func (*DeleteMachineParams) SetAPIVersion

func (o *DeleteMachineParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete machine params

func (*DeleteMachineParams) SetContext

func (o *DeleteMachineParams) SetContext(ctx context.Context)

SetContext adds the context to the delete machine params

func (*DeleteMachineParams) SetDefaults added in v0.2.20

func (o *DeleteMachineParams) SetDefaults()

SetDefaults hydrates default values in the delete machine params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteMachineParams) SetForceDelete added in v0.2.8

func (o *DeleteMachineParams) SetForceDelete(forceDelete *bool)

SetForceDelete adds the forceDelete to the delete machine params

func (*DeleteMachineParams) SetHTTPClient

func (o *DeleteMachineParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete machine params

func (*DeleteMachineParams) SetID

func (o *DeleteMachineParams) SetID(id string)

SetID adds the id to the delete machine params

func (*DeleteMachineParams) SetTimeout

func (o *DeleteMachineParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete machine params

func (*DeleteMachineParams) WithAPIVersion

func (o *DeleteMachineParams) WithAPIVersion(aPIVersion *string) *DeleteMachineParams

WithAPIVersion adds the aPIVersion to the delete machine params

func (*DeleteMachineParams) WithContext

WithContext adds the context to the delete machine params

func (*DeleteMachineParams) WithDefaults added in v0.2.20

func (o *DeleteMachineParams) WithDefaults() *DeleteMachineParams

WithDefaults hydrates default values in the delete machine params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteMachineParams) WithForceDelete added in v0.2.8

func (o *DeleteMachineParams) WithForceDelete(forceDelete *bool) *DeleteMachineParams

WithForceDelete adds the forceDelete to the delete machine params

func (*DeleteMachineParams) WithHTTPClient

func (o *DeleteMachineParams) WithHTTPClient(client *http.Client) *DeleteMachineParams

WithHTTPClient adds the HTTPClient to the delete machine params

func (*DeleteMachineParams) WithID

WithID adds the id to the delete machine params

func (*DeleteMachineParams) WithTimeout

func (o *DeleteMachineParams) WithTimeout(timeout time.Duration) *DeleteMachineParams

WithTimeout adds the timeout to the delete machine params

func (*DeleteMachineParams) WriteToRequest

func (o *DeleteMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteMachineReader

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

DeleteMachineReader is a Reader for the DeleteMachine structure.

func (*DeleteMachineReader) ReadResponse

func (o *DeleteMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteMachineSnapshotAccepted

type DeleteMachineSnapshotAccepted struct {
	Payload *models.RequestTracker
}

DeleteMachineSnapshotAccepted describes a response with status code 202, with default header values.

successful operation

func NewDeleteMachineSnapshotAccepted

func NewDeleteMachineSnapshotAccepted() *DeleteMachineSnapshotAccepted

NewDeleteMachineSnapshotAccepted creates a DeleteMachineSnapshotAccepted with default headers values

func (*DeleteMachineSnapshotAccepted) Error

func (*DeleteMachineSnapshotAccepted) GetPayload

func (*DeleteMachineSnapshotAccepted) IsClientError added in v0.5.0

func (o *DeleteMachineSnapshotAccepted) IsClientError() bool

IsClientError returns true when this delete machine snapshot accepted response has a 4xx status code

func (*DeleteMachineSnapshotAccepted) IsCode added in v0.5.0

func (o *DeleteMachineSnapshotAccepted) IsCode(code int) bool

IsCode returns true when this delete machine snapshot accepted response a status code equal to that given

func (*DeleteMachineSnapshotAccepted) IsRedirect added in v0.5.0

func (o *DeleteMachineSnapshotAccepted) IsRedirect() bool

IsRedirect returns true when this delete machine snapshot accepted response has a 3xx status code

func (*DeleteMachineSnapshotAccepted) IsServerError added in v0.5.0

func (o *DeleteMachineSnapshotAccepted) IsServerError() bool

IsServerError returns true when this delete machine snapshot accepted response has a 5xx status code

func (*DeleteMachineSnapshotAccepted) IsSuccess added in v0.5.0

func (o *DeleteMachineSnapshotAccepted) IsSuccess() bool

IsSuccess returns true when this delete machine snapshot accepted response has a 2xx status code

func (*DeleteMachineSnapshotAccepted) String added in v0.5.0

type DeleteMachineSnapshotForbidden

type DeleteMachineSnapshotForbidden struct {
	Payload *models.ServiceErrorResponse
}

DeleteMachineSnapshotForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteMachineSnapshotForbidden

func NewDeleteMachineSnapshotForbidden() *DeleteMachineSnapshotForbidden

NewDeleteMachineSnapshotForbidden creates a DeleteMachineSnapshotForbidden with default headers values

func (*DeleteMachineSnapshotForbidden) Error

func (*DeleteMachineSnapshotForbidden) GetPayload added in v0.2.20

func (*DeleteMachineSnapshotForbidden) IsClientError added in v0.5.0

func (o *DeleteMachineSnapshotForbidden) IsClientError() bool

IsClientError returns true when this delete machine snapshot forbidden response has a 4xx status code

func (*DeleteMachineSnapshotForbidden) IsCode added in v0.5.0

func (o *DeleteMachineSnapshotForbidden) IsCode(code int) bool

IsCode returns true when this delete machine snapshot forbidden response a status code equal to that given

func (*DeleteMachineSnapshotForbidden) IsRedirect added in v0.5.0

func (o *DeleteMachineSnapshotForbidden) IsRedirect() bool

IsRedirect returns true when this delete machine snapshot forbidden response has a 3xx status code

func (*DeleteMachineSnapshotForbidden) IsServerError added in v0.5.0

func (o *DeleteMachineSnapshotForbidden) IsServerError() bool

IsServerError returns true when this delete machine snapshot forbidden response has a 5xx status code

func (*DeleteMachineSnapshotForbidden) IsSuccess added in v0.5.0

func (o *DeleteMachineSnapshotForbidden) IsSuccess() bool

IsSuccess returns true when this delete machine snapshot forbidden response has a 2xx status code

func (*DeleteMachineSnapshotForbidden) String added in v0.5.0

type DeleteMachineSnapshotNoContent added in v0.5.0

type DeleteMachineSnapshotNoContent struct {
}

DeleteMachineSnapshotNoContent describes a response with status code 204, with default header values.

No Content

func NewDeleteMachineSnapshotNoContent added in v0.5.0

func NewDeleteMachineSnapshotNoContent() *DeleteMachineSnapshotNoContent

NewDeleteMachineSnapshotNoContent creates a DeleteMachineSnapshotNoContent with default headers values

func (*DeleteMachineSnapshotNoContent) Error added in v0.5.0

func (*DeleteMachineSnapshotNoContent) IsClientError added in v0.5.0

func (o *DeleteMachineSnapshotNoContent) IsClientError() bool

IsClientError returns true when this delete machine snapshot no content response has a 4xx status code

func (*DeleteMachineSnapshotNoContent) IsCode added in v0.5.0

func (o *DeleteMachineSnapshotNoContent) IsCode(code int) bool

IsCode returns true when this delete machine snapshot no content response a status code equal to that given

func (*DeleteMachineSnapshotNoContent) IsRedirect added in v0.5.0

func (o *DeleteMachineSnapshotNoContent) IsRedirect() bool

IsRedirect returns true when this delete machine snapshot no content response has a 3xx status code

func (*DeleteMachineSnapshotNoContent) IsServerError added in v0.5.0

func (o *DeleteMachineSnapshotNoContent) IsServerError() bool

IsServerError returns true when this delete machine snapshot no content response has a 5xx status code

func (*DeleteMachineSnapshotNoContent) IsSuccess added in v0.5.0

func (o *DeleteMachineSnapshotNoContent) IsSuccess() bool

IsSuccess returns true when this delete machine snapshot no content response has a 2xx status code

func (*DeleteMachineSnapshotNoContent) String added in v0.5.0

type DeleteMachineSnapshotParams

type DeleteMachineSnapshotParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The id of the Machine.
	*/
	ID string

	/* SnapshotID.

	   Snapshot id to delete.
	*/
	SnapshotID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteMachineSnapshotParams contains all the parameters to send to the API endpoint

for the delete machine snapshot operation.

Typically these are written to a http.Request.

func NewDeleteMachineSnapshotParams

func NewDeleteMachineSnapshotParams() *DeleteMachineSnapshotParams

NewDeleteMachineSnapshotParams creates a new DeleteMachineSnapshotParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteMachineSnapshotParamsWithContext

func NewDeleteMachineSnapshotParamsWithContext(ctx context.Context) *DeleteMachineSnapshotParams

NewDeleteMachineSnapshotParamsWithContext creates a new DeleteMachineSnapshotParams object with the ability to set a context for a request.

func NewDeleteMachineSnapshotParamsWithHTTPClient

func NewDeleteMachineSnapshotParamsWithHTTPClient(client *http.Client) *DeleteMachineSnapshotParams

NewDeleteMachineSnapshotParamsWithHTTPClient creates a new DeleteMachineSnapshotParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteMachineSnapshotParamsWithTimeout

func NewDeleteMachineSnapshotParamsWithTimeout(timeout time.Duration) *DeleteMachineSnapshotParams

NewDeleteMachineSnapshotParamsWithTimeout creates a new DeleteMachineSnapshotParams object with the ability to set a timeout on a request.

func (*DeleteMachineSnapshotParams) SetAPIVersion

func (o *DeleteMachineSnapshotParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete machine snapshot params

func (*DeleteMachineSnapshotParams) SetContext

func (o *DeleteMachineSnapshotParams) SetContext(ctx context.Context)

SetContext adds the context to the delete machine snapshot params

func (*DeleteMachineSnapshotParams) SetDefaults added in v0.2.20

func (o *DeleteMachineSnapshotParams) SetDefaults()

SetDefaults hydrates default values in the delete machine snapshot params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteMachineSnapshotParams) SetHTTPClient

func (o *DeleteMachineSnapshotParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete machine snapshot params

func (*DeleteMachineSnapshotParams) SetID

func (o *DeleteMachineSnapshotParams) SetID(id string)

SetID adds the id to the delete machine snapshot params

func (*DeleteMachineSnapshotParams) SetSnapshotID added in v0.4.0

func (o *DeleteMachineSnapshotParams) SetSnapshotID(snapshotID string)

SetSnapshotID adds the snapshotId to the delete machine snapshot params

func (*DeleteMachineSnapshotParams) SetTimeout

func (o *DeleteMachineSnapshotParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete machine snapshot params

func (*DeleteMachineSnapshotParams) WithAPIVersion

func (o *DeleteMachineSnapshotParams) WithAPIVersion(aPIVersion *string) *DeleteMachineSnapshotParams

WithAPIVersion adds the aPIVersion to the delete machine snapshot params

func (*DeleteMachineSnapshotParams) WithContext

WithContext adds the context to the delete machine snapshot params

func (*DeleteMachineSnapshotParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the delete machine snapshot params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteMachineSnapshotParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete machine snapshot params

func (*DeleteMachineSnapshotParams) WithID

WithID adds the id to the delete machine snapshot params

func (*DeleteMachineSnapshotParams) WithSnapshotID added in v0.4.0

func (o *DeleteMachineSnapshotParams) WithSnapshotID(snapshotID string) *DeleteMachineSnapshotParams

WithSnapshotID adds the snapshotID to the delete machine snapshot params

func (*DeleteMachineSnapshotParams) WithTimeout

WithTimeout adds the timeout to the delete machine snapshot params

func (*DeleteMachineSnapshotParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteMachineSnapshotReader

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

DeleteMachineSnapshotReader is a Reader for the DeleteMachineSnapshot structure.

func (*DeleteMachineSnapshotReader) ReadResponse

func (o *DeleteMachineSnapshotReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetMachineForbidden

type GetMachineForbidden struct {
	Payload *models.ServiceErrorResponse
}

GetMachineForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetMachineForbidden

func NewGetMachineForbidden() *GetMachineForbidden

NewGetMachineForbidden creates a GetMachineForbidden with default headers values

func (*GetMachineForbidden) Error

func (o *GetMachineForbidden) Error() string

func (*GetMachineForbidden) GetPayload added in v0.2.20

func (*GetMachineForbidden) IsClientError added in v0.5.0

func (o *GetMachineForbidden) IsClientError() bool

IsClientError returns true when this get machine forbidden response has a 4xx status code

func (*GetMachineForbidden) IsCode added in v0.5.0

func (o *GetMachineForbidden) IsCode(code int) bool

IsCode returns true when this get machine forbidden response a status code equal to that given

func (*GetMachineForbidden) IsRedirect added in v0.5.0

func (o *GetMachineForbidden) IsRedirect() bool

IsRedirect returns true when this get machine forbidden response has a 3xx status code

func (*GetMachineForbidden) IsServerError added in v0.5.0

func (o *GetMachineForbidden) IsServerError() bool

IsServerError returns true when this get machine forbidden response has a 5xx status code

func (*GetMachineForbidden) IsSuccess added in v0.5.0

func (o *GetMachineForbidden) IsSuccess() bool

IsSuccess returns true when this get machine forbidden response has a 2xx status code

func (*GetMachineForbidden) String added in v0.5.0

func (o *GetMachineForbidden) String() string

type GetMachineNotFound

type GetMachineNotFound struct {
	Payload *models.Error
}

GetMachineNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetMachineNotFound

func NewGetMachineNotFound() *GetMachineNotFound

NewGetMachineNotFound creates a GetMachineNotFound with default headers values

func (*GetMachineNotFound) Error

func (o *GetMachineNotFound) Error() string

func (*GetMachineNotFound) GetPayload added in v0.2.9

func (o *GetMachineNotFound) GetPayload() *models.Error

func (*GetMachineNotFound) IsClientError added in v0.5.0

func (o *GetMachineNotFound) IsClientError() bool

IsClientError returns true when this get machine not found response has a 4xx status code

func (*GetMachineNotFound) IsCode added in v0.5.0

func (o *GetMachineNotFound) IsCode(code int) bool

IsCode returns true when this get machine not found response a status code equal to that given

func (*GetMachineNotFound) IsRedirect added in v0.5.0

func (o *GetMachineNotFound) IsRedirect() bool

IsRedirect returns true when this get machine not found response has a 3xx status code

func (*GetMachineNotFound) IsServerError added in v0.5.0

func (o *GetMachineNotFound) IsServerError() bool

IsServerError returns true when this get machine not found response has a 5xx status code

func (*GetMachineNotFound) IsSuccess added in v0.5.0

func (o *GetMachineNotFound) IsSuccess() bool

IsSuccess returns true when this get machine not found response has a 2xx status code

func (*GetMachineNotFound) String added in v0.5.0

func (o *GetMachineNotFound) String() string

type GetMachineOK

type GetMachineOK struct {
	Payload *models.Machine
}

GetMachineOK describes a response with status code 200, with default header values.

successful operation

func NewGetMachineOK

func NewGetMachineOK() *GetMachineOK

NewGetMachineOK creates a GetMachineOK with default headers values

func (*GetMachineOK) Error

func (o *GetMachineOK) Error() string

func (*GetMachineOK) GetPayload

func (o *GetMachineOK) GetPayload() *models.Machine

func (*GetMachineOK) IsClientError added in v0.5.0

func (o *GetMachineOK) IsClientError() bool

IsClientError returns true when this get machine o k response has a 4xx status code

func (*GetMachineOK) IsCode added in v0.5.0

func (o *GetMachineOK) IsCode(code int) bool

IsCode returns true when this get machine o k response a status code equal to that given

func (*GetMachineOK) IsRedirect added in v0.5.0

func (o *GetMachineOK) IsRedirect() bool

IsRedirect returns true when this get machine o k response has a 3xx status code

func (*GetMachineOK) IsServerError added in v0.5.0

func (o *GetMachineOK) IsServerError() bool

IsServerError returns true when this get machine o k response has a 5xx status code

func (*GetMachineOK) IsSuccess added in v0.5.0

func (o *GetMachineOK) IsSuccess() bool

IsSuccess returns true when this get machine o k response has a 2xx status code

func (*GetMachineOK) String added in v0.5.0

func (o *GetMachineOK) String() string

type GetMachineParams

type GetMachineParams struct {

	/* DollarSelect.

	   Select a subset of properties to include in the response.
	*/
	DollarSelect *string

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The ID of the machine.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetMachineParams contains all the parameters to send to the API endpoint

for the get machine operation.

Typically these are written to a http.Request.

func NewGetMachineParams

func NewGetMachineParams() *GetMachineParams

NewGetMachineParams creates a new GetMachineParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetMachineParamsWithContext

func NewGetMachineParamsWithContext(ctx context.Context) *GetMachineParams

NewGetMachineParamsWithContext creates a new GetMachineParams object with the ability to set a context for a request.

func NewGetMachineParamsWithHTTPClient

func NewGetMachineParamsWithHTTPClient(client *http.Client) *GetMachineParams

NewGetMachineParamsWithHTTPClient creates a new GetMachineParams object with the ability to set a custom HTTPClient for a request.

func NewGetMachineParamsWithTimeout

func NewGetMachineParamsWithTimeout(timeout time.Duration) *GetMachineParams

NewGetMachineParamsWithTimeout creates a new GetMachineParams object with the ability to set a timeout on a request.

func (*GetMachineParams) SetAPIVersion

func (o *GetMachineParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get machine params

func (*GetMachineParams) SetContext

func (o *GetMachineParams) SetContext(ctx context.Context)

SetContext adds the context to the get machine params

func (*GetMachineParams) SetDefaults added in v0.2.20

func (o *GetMachineParams) SetDefaults()

SetDefaults hydrates default values in the get machine params (not the query body).

All values with no default are reset to their zero value.

func (*GetMachineParams) SetDollarSelect added in v0.2.20

func (o *GetMachineParams) SetDollarSelect(dollarSelect *string)

SetDollarSelect adds the dollarSelect to the get machine params

func (*GetMachineParams) SetHTTPClient

func (o *GetMachineParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get machine params

func (*GetMachineParams) SetID

func (o *GetMachineParams) SetID(id string)

SetID adds the id to the get machine params

func (*GetMachineParams) SetTimeout

func (o *GetMachineParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get machine params

func (*GetMachineParams) WithAPIVersion

func (o *GetMachineParams) WithAPIVersion(aPIVersion *string) *GetMachineParams

WithAPIVersion adds the aPIVersion to the get machine params

func (*GetMachineParams) WithContext

func (o *GetMachineParams) WithContext(ctx context.Context) *GetMachineParams

WithContext adds the context to the get machine params

func (*GetMachineParams) WithDefaults added in v0.2.20

func (o *GetMachineParams) WithDefaults() *GetMachineParams

WithDefaults hydrates default values in the get machine params (not the query body).

All values with no default are reset to their zero value.

func (*GetMachineParams) WithDollarSelect added in v0.2.20

func (o *GetMachineParams) WithDollarSelect(dollarSelect *string) *GetMachineParams

WithDollarSelect adds the dollarSelect to the get machine params

func (*GetMachineParams) WithHTTPClient

func (o *GetMachineParams) WithHTTPClient(client *http.Client) *GetMachineParams

WithHTTPClient adds the HTTPClient to the get machine params

func (*GetMachineParams) WithID

func (o *GetMachineParams) WithID(id string) *GetMachineParams

WithID adds the id to the get machine params

func (*GetMachineParams) WithTimeout

func (o *GetMachineParams) WithTimeout(timeout time.Duration) *GetMachineParams

WithTimeout adds the timeout to the get machine params

func (*GetMachineParams) WriteToRequest

func (o *GetMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetMachineReader

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

GetMachineReader is a Reader for the GetMachine structure.

func (*GetMachineReader) ReadResponse

func (o *GetMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetMachineSnapshotForbidden added in v0.2.8

type GetMachineSnapshotForbidden struct {
	Payload *models.ServiceErrorResponse
}

GetMachineSnapshotForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetMachineSnapshotForbidden added in v0.2.8

func NewGetMachineSnapshotForbidden() *GetMachineSnapshotForbidden

NewGetMachineSnapshotForbidden creates a GetMachineSnapshotForbidden with default headers values

func (*GetMachineSnapshotForbidden) Error added in v0.2.8

func (*GetMachineSnapshotForbidden) GetPayload added in v0.2.20

func (*GetMachineSnapshotForbidden) IsClientError added in v0.5.0

func (o *GetMachineSnapshotForbidden) IsClientError() bool

IsClientError returns true when this get machine snapshot forbidden response has a 4xx status code

func (*GetMachineSnapshotForbidden) IsCode added in v0.5.0

func (o *GetMachineSnapshotForbidden) IsCode(code int) bool

IsCode returns true when this get machine snapshot forbidden response a status code equal to that given

func (*GetMachineSnapshotForbidden) IsRedirect added in v0.5.0

func (o *GetMachineSnapshotForbidden) IsRedirect() bool

IsRedirect returns true when this get machine snapshot forbidden response has a 3xx status code

func (*GetMachineSnapshotForbidden) IsServerError added in v0.5.0

func (o *GetMachineSnapshotForbidden) IsServerError() bool

IsServerError returns true when this get machine snapshot forbidden response has a 5xx status code

func (*GetMachineSnapshotForbidden) IsSuccess added in v0.5.0

func (o *GetMachineSnapshotForbidden) IsSuccess() bool

IsSuccess returns true when this get machine snapshot forbidden response has a 2xx status code

func (*GetMachineSnapshotForbidden) String added in v0.5.0

func (o *GetMachineSnapshotForbidden) String() string

type GetMachineSnapshotNotFound added in v0.2.8

type GetMachineSnapshotNotFound struct {
	Payload *models.Error
}

GetMachineSnapshotNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetMachineSnapshotNotFound added in v0.2.8

func NewGetMachineSnapshotNotFound() *GetMachineSnapshotNotFound

NewGetMachineSnapshotNotFound creates a GetMachineSnapshotNotFound with default headers values

func (*GetMachineSnapshotNotFound) Error added in v0.2.8

func (*GetMachineSnapshotNotFound) GetPayload added in v0.2.9

func (o *GetMachineSnapshotNotFound) GetPayload() *models.Error

func (*GetMachineSnapshotNotFound) IsClientError added in v0.5.0

func (o *GetMachineSnapshotNotFound) IsClientError() bool

IsClientError returns true when this get machine snapshot not found response has a 4xx status code

func (*GetMachineSnapshotNotFound) IsCode added in v0.5.0

func (o *GetMachineSnapshotNotFound) IsCode(code int) bool

IsCode returns true when this get machine snapshot not found response a status code equal to that given

func (*GetMachineSnapshotNotFound) IsRedirect added in v0.5.0

func (o *GetMachineSnapshotNotFound) IsRedirect() bool

IsRedirect returns true when this get machine snapshot not found response has a 3xx status code

func (*GetMachineSnapshotNotFound) IsServerError added in v0.5.0

func (o *GetMachineSnapshotNotFound) IsServerError() bool

IsServerError returns true when this get machine snapshot not found response has a 5xx status code

func (*GetMachineSnapshotNotFound) IsSuccess added in v0.5.0

func (o *GetMachineSnapshotNotFound) IsSuccess() bool

IsSuccess returns true when this get machine snapshot not found response has a 2xx status code

func (*GetMachineSnapshotNotFound) String added in v0.5.0

func (o *GetMachineSnapshotNotFound) String() string

type GetMachineSnapshotOK added in v0.2.8

type GetMachineSnapshotOK struct {
	Payload *models.Snapshot
}

GetMachineSnapshotOK describes a response with status code 200, with default header values.

successful operation

func NewGetMachineSnapshotOK added in v0.2.8

func NewGetMachineSnapshotOK() *GetMachineSnapshotOK

NewGetMachineSnapshotOK creates a GetMachineSnapshotOK with default headers values

func (*GetMachineSnapshotOK) Error added in v0.2.8

func (o *GetMachineSnapshotOK) Error() string

func (*GetMachineSnapshotOK) GetPayload added in v0.2.8

func (o *GetMachineSnapshotOK) GetPayload() *models.Snapshot

func (*GetMachineSnapshotOK) IsClientError added in v0.5.0

func (o *GetMachineSnapshotOK) IsClientError() bool

IsClientError returns true when this get machine snapshot o k response has a 4xx status code

func (*GetMachineSnapshotOK) IsCode added in v0.5.0

func (o *GetMachineSnapshotOK) IsCode(code int) bool

IsCode returns true when this get machine snapshot o k response a status code equal to that given

func (*GetMachineSnapshotOK) IsRedirect added in v0.5.0

func (o *GetMachineSnapshotOK) IsRedirect() bool

IsRedirect returns true when this get machine snapshot o k response has a 3xx status code

func (*GetMachineSnapshotOK) IsServerError added in v0.5.0

func (o *GetMachineSnapshotOK) IsServerError() bool

IsServerError returns true when this get machine snapshot o k response has a 5xx status code

func (*GetMachineSnapshotOK) IsSuccess added in v0.5.0

func (o *GetMachineSnapshotOK) IsSuccess() bool

IsSuccess returns true when this get machine snapshot o k response has a 2xx status code

func (*GetMachineSnapshotOK) String added in v0.5.0

func (o *GetMachineSnapshotOK) String() string

type GetMachineSnapshotParams added in v0.2.8

type GetMachineSnapshotParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The ID of the machine.
	*/
	ID string

	/* SnapshotID.

	   The ID of the snapshot.
	*/
	SnapshotID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetMachineSnapshotParams contains all the parameters to send to the API endpoint

for the get machine snapshot operation.

Typically these are written to a http.Request.

func NewGetMachineSnapshotParams added in v0.2.8

func NewGetMachineSnapshotParams() *GetMachineSnapshotParams

NewGetMachineSnapshotParams creates a new GetMachineSnapshotParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetMachineSnapshotParamsWithContext added in v0.2.8

func NewGetMachineSnapshotParamsWithContext(ctx context.Context) *GetMachineSnapshotParams

NewGetMachineSnapshotParamsWithContext creates a new GetMachineSnapshotParams object with the ability to set a context for a request.

func NewGetMachineSnapshotParamsWithHTTPClient added in v0.2.8

func NewGetMachineSnapshotParamsWithHTTPClient(client *http.Client) *GetMachineSnapshotParams

NewGetMachineSnapshotParamsWithHTTPClient creates a new GetMachineSnapshotParams object with the ability to set a custom HTTPClient for a request.

func NewGetMachineSnapshotParamsWithTimeout added in v0.2.8

func NewGetMachineSnapshotParamsWithTimeout(timeout time.Duration) *GetMachineSnapshotParams

NewGetMachineSnapshotParamsWithTimeout creates a new GetMachineSnapshotParams object with the ability to set a timeout on a request.

func (*GetMachineSnapshotParams) SetAPIVersion added in v0.2.8

func (o *GetMachineSnapshotParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get machine snapshot params

func (*GetMachineSnapshotParams) SetContext added in v0.2.8

func (o *GetMachineSnapshotParams) SetContext(ctx context.Context)

SetContext adds the context to the get machine snapshot params

func (*GetMachineSnapshotParams) SetDefaults added in v0.2.20

func (o *GetMachineSnapshotParams) SetDefaults()

SetDefaults hydrates default values in the get machine snapshot params (not the query body).

All values with no default are reset to their zero value.

func (*GetMachineSnapshotParams) SetHTTPClient added in v0.2.8

func (o *GetMachineSnapshotParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get machine snapshot params

func (*GetMachineSnapshotParams) SetID added in v0.2.8

func (o *GetMachineSnapshotParams) SetID(id string)

SetID adds the id to the get machine snapshot params

func (*GetMachineSnapshotParams) SetSnapshotID added in v0.4.0

func (o *GetMachineSnapshotParams) SetSnapshotID(snapshotID string)

SetSnapshotID adds the snapshotId to the get machine snapshot params

func (*GetMachineSnapshotParams) SetTimeout added in v0.2.8

func (o *GetMachineSnapshotParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get machine snapshot params

func (*GetMachineSnapshotParams) WithAPIVersion added in v0.2.8

func (o *GetMachineSnapshotParams) WithAPIVersion(aPIVersion *string) *GetMachineSnapshotParams

WithAPIVersion adds the aPIVersion to the get machine snapshot params

func (*GetMachineSnapshotParams) WithContext added in v0.2.8

WithContext adds the context to the get machine snapshot params

func (*GetMachineSnapshotParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get machine snapshot params (not the query body).

All values with no default are reset to their zero value.

func (*GetMachineSnapshotParams) WithHTTPClient added in v0.2.8

func (o *GetMachineSnapshotParams) WithHTTPClient(client *http.Client) *GetMachineSnapshotParams

WithHTTPClient adds the HTTPClient to the get machine snapshot params

func (*GetMachineSnapshotParams) WithID added in v0.2.8

WithID adds the id to the get machine snapshot params

func (*GetMachineSnapshotParams) WithSnapshotID added in v0.4.0

func (o *GetMachineSnapshotParams) WithSnapshotID(snapshotID string) *GetMachineSnapshotParams

WithSnapshotID adds the snapshotID to the get machine snapshot params

func (*GetMachineSnapshotParams) WithTimeout added in v0.2.8

WithTimeout adds the timeout to the get machine snapshot params

func (*GetMachineSnapshotParams) WriteToRequest added in v0.2.8

WriteToRequest writes these params to a swagger request

type GetMachineSnapshotReader added in v0.2.8

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

GetMachineSnapshotReader is a Reader for the GetMachineSnapshot structure.

func (*GetMachineSnapshotReader) ReadResponse added in v0.2.8

func (o *GetMachineSnapshotReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetMachineSnapshotsForbidden

type GetMachineSnapshotsForbidden struct {
	Payload *models.ServiceErrorResponse
}

GetMachineSnapshotsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetMachineSnapshotsForbidden

func NewGetMachineSnapshotsForbidden() *GetMachineSnapshotsForbidden

NewGetMachineSnapshotsForbidden creates a GetMachineSnapshotsForbidden with default headers values

func (*GetMachineSnapshotsForbidden) Error

func (*GetMachineSnapshotsForbidden) GetPayload added in v0.2.20

func (*GetMachineSnapshotsForbidden) IsClientError added in v0.5.0

func (o *GetMachineSnapshotsForbidden) IsClientError() bool

IsClientError returns true when this get machine snapshots forbidden response has a 4xx status code

func (*GetMachineSnapshotsForbidden) IsCode added in v0.5.0

func (o *GetMachineSnapshotsForbidden) IsCode(code int) bool

IsCode returns true when this get machine snapshots forbidden response a status code equal to that given

func (*GetMachineSnapshotsForbidden) IsRedirect added in v0.5.0

func (o *GetMachineSnapshotsForbidden) IsRedirect() bool

IsRedirect returns true when this get machine snapshots forbidden response has a 3xx status code

func (*GetMachineSnapshotsForbidden) IsServerError added in v0.5.0

func (o *GetMachineSnapshotsForbidden) IsServerError() bool

IsServerError returns true when this get machine snapshots forbidden response has a 5xx status code

func (*GetMachineSnapshotsForbidden) IsSuccess added in v0.5.0

func (o *GetMachineSnapshotsForbidden) IsSuccess() bool

IsSuccess returns true when this get machine snapshots forbidden response has a 2xx status code

func (*GetMachineSnapshotsForbidden) String added in v0.5.0

type GetMachineSnapshotsNotFound

type GetMachineSnapshotsNotFound struct {
	Payload *models.Error
}

GetMachineSnapshotsNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetMachineSnapshotsNotFound

func NewGetMachineSnapshotsNotFound() *GetMachineSnapshotsNotFound

NewGetMachineSnapshotsNotFound creates a GetMachineSnapshotsNotFound with default headers values

func (*GetMachineSnapshotsNotFound) Error

func (*GetMachineSnapshotsNotFound) GetPayload added in v0.2.9

func (o *GetMachineSnapshotsNotFound) GetPayload() *models.Error

func (*GetMachineSnapshotsNotFound) IsClientError added in v0.5.0

func (o *GetMachineSnapshotsNotFound) IsClientError() bool

IsClientError returns true when this get machine snapshots not found response has a 4xx status code

func (*GetMachineSnapshotsNotFound) IsCode added in v0.5.0

func (o *GetMachineSnapshotsNotFound) IsCode(code int) bool

IsCode returns true when this get machine snapshots not found response a status code equal to that given

func (*GetMachineSnapshotsNotFound) IsRedirect added in v0.5.0

func (o *GetMachineSnapshotsNotFound) IsRedirect() bool

IsRedirect returns true when this get machine snapshots not found response has a 3xx status code

func (*GetMachineSnapshotsNotFound) IsServerError added in v0.5.0

func (o *GetMachineSnapshotsNotFound) IsServerError() bool

IsServerError returns true when this get machine snapshots not found response has a 5xx status code

func (*GetMachineSnapshotsNotFound) IsSuccess added in v0.5.0

func (o *GetMachineSnapshotsNotFound) IsSuccess() bool

IsSuccess returns true when this get machine snapshots not found response has a 2xx status code

func (*GetMachineSnapshotsNotFound) String added in v0.5.0

func (o *GetMachineSnapshotsNotFound) String() string

type GetMachineSnapshotsOK

type GetMachineSnapshotsOK struct {
	Payload []*models.Snapshot
}

GetMachineSnapshotsOK describes a response with status code 200, with default header values.

successful operation

func NewGetMachineSnapshotsOK

func NewGetMachineSnapshotsOK() *GetMachineSnapshotsOK

NewGetMachineSnapshotsOK creates a GetMachineSnapshotsOK with default headers values

func (*GetMachineSnapshotsOK) Error

func (o *GetMachineSnapshotsOK) Error() string

func (*GetMachineSnapshotsOK) GetPayload

func (o *GetMachineSnapshotsOK) GetPayload() []*models.Snapshot

func (*GetMachineSnapshotsOK) IsClientError added in v0.5.0

func (o *GetMachineSnapshotsOK) IsClientError() bool

IsClientError returns true when this get machine snapshots o k response has a 4xx status code

func (*GetMachineSnapshotsOK) IsCode added in v0.5.0

func (o *GetMachineSnapshotsOK) IsCode(code int) bool

IsCode returns true when this get machine snapshots o k response a status code equal to that given

func (*GetMachineSnapshotsOK) IsRedirect added in v0.5.0

func (o *GetMachineSnapshotsOK) IsRedirect() bool

IsRedirect returns true when this get machine snapshots o k response has a 3xx status code

func (*GetMachineSnapshotsOK) IsServerError added in v0.5.0

func (o *GetMachineSnapshotsOK) IsServerError() bool

IsServerError returns true when this get machine snapshots o k response has a 5xx status code

func (*GetMachineSnapshotsOK) IsSuccess added in v0.5.0

func (o *GetMachineSnapshotsOK) IsSuccess() bool

IsSuccess returns true when this get machine snapshots o k response has a 2xx status code

func (*GetMachineSnapshotsOK) String added in v0.5.0

func (o *GetMachineSnapshotsOK) String() string

type GetMachineSnapshotsParams

type GetMachineSnapshotsParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The ID of the machine.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetMachineSnapshotsParams contains all the parameters to send to the API endpoint

for the get machine snapshots operation.

Typically these are written to a http.Request.

func NewGetMachineSnapshotsParams

func NewGetMachineSnapshotsParams() *GetMachineSnapshotsParams

NewGetMachineSnapshotsParams creates a new GetMachineSnapshotsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetMachineSnapshotsParamsWithContext

func NewGetMachineSnapshotsParamsWithContext(ctx context.Context) *GetMachineSnapshotsParams

NewGetMachineSnapshotsParamsWithContext creates a new GetMachineSnapshotsParams object with the ability to set a context for a request.

func NewGetMachineSnapshotsParamsWithHTTPClient

func NewGetMachineSnapshotsParamsWithHTTPClient(client *http.Client) *GetMachineSnapshotsParams

NewGetMachineSnapshotsParamsWithHTTPClient creates a new GetMachineSnapshotsParams object with the ability to set a custom HTTPClient for a request.

func NewGetMachineSnapshotsParamsWithTimeout

func NewGetMachineSnapshotsParamsWithTimeout(timeout time.Duration) *GetMachineSnapshotsParams

NewGetMachineSnapshotsParamsWithTimeout creates a new GetMachineSnapshotsParams object with the ability to set a timeout on a request.

func (*GetMachineSnapshotsParams) SetAPIVersion

func (o *GetMachineSnapshotsParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get machine snapshots params

func (*GetMachineSnapshotsParams) SetContext

func (o *GetMachineSnapshotsParams) SetContext(ctx context.Context)

SetContext adds the context to the get machine snapshots params

func (*GetMachineSnapshotsParams) SetDefaults added in v0.2.20

func (o *GetMachineSnapshotsParams) SetDefaults()

SetDefaults hydrates default values in the get machine snapshots params (not the query body).

All values with no default are reset to their zero value.

func (*GetMachineSnapshotsParams) SetHTTPClient

func (o *GetMachineSnapshotsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get machine snapshots params

func (*GetMachineSnapshotsParams) SetID

func (o *GetMachineSnapshotsParams) SetID(id string)

SetID adds the id to the get machine snapshots params

func (*GetMachineSnapshotsParams) SetTimeout

func (o *GetMachineSnapshotsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get machine snapshots params

func (*GetMachineSnapshotsParams) WithAPIVersion

func (o *GetMachineSnapshotsParams) WithAPIVersion(aPIVersion *string) *GetMachineSnapshotsParams

WithAPIVersion adds the aPIVersion to the get machine snapshots params

func (*GetMachineSnapshotsParams) WithContext

WithContext adds the context to the get machine snapshots params

func (*GetMachineSnapshotsParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get machine snapshots params (not the query body).

All values with no default are reset to their zero value.

func (*GetMachineSnapshotsParams) WithHTTPClient

func (o *GetMachineSnapshotsParams) WithHTTPClient(client *http.Client) *GetMachineSnapshotsParams

WithHTTPClient adds the HTTPClient to the get machine snapshots params

func (*GetMachineSnapshotsParams) WithID

WithID adds the id to the get machine snapshots params

func (*GetMachineSnapshotsParams) WithTimeout

WithTimeout adds the timeout to the get machine snapshots params

func (*GetMachineSnapshotsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetMachineSnapshotsReader

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

GetMachineSnapshotsReader is a Reader for the GetMachineSnapshots structure.

func (*GetMachineSnapshotsReader) ReadResponse

func (o *GetMachineSnapshotsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetMachinesForbidden

type GetMachinesForbidden struct {
	Payload *models.ServiceErrorResponse
}

GetMachinesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetMachinesForbidden

func NewGetMachinesForbidden() *GetMachinesForbidden

NewGetMachinesForbidden creates a GetMachinesForbidden with default headers values

func (*GetMachinesForbidden) Error

func (o *GetMachinesForbidden) Error() string

func (*GetMachinesForbidden) GetPayload added in v0.2.20

func (*GetMachinesForbidden) IsClientError added in v0.5.0

func (o *GetMachinesForbidden) IsClientError() bool

IsClientError returns true when this get machines forbidden response has a 4xx status code

func (*GetMachinesForbidden) IsCode added in v0.5.0

func (o *GetMachinesForbidden) IsCode(code int) bool

IsCode returns true when this get machines forbidden response a status code equal to that given

func (*GetMachinesForbidden) IsRedirect added in v0.5.0

func (o *GetMachinesForbidden) IsRedirect() bool

IsRedirect returns true when this get machines forbidden response has a 3xx status code

func (*GetMachinesForbidden) IsServerError added in v0.5.0

func (o *GetMachinesForbidden) IsServerError() bool

IsServerError returns true when this get machines forbidden response has a 5xx status code

func (*GetMachinesForbidden) IsSuccess added in v0.5.0

func (o *GetMachinesForbidden) IsSuccess() bool

IsSuccess returns true when this get machines forbidden response has a 2xx status code

func (*GetMachinesForbidden) String added in v0.5.0

func (o *GetMachinesForbidden) String() string

type GetMachinesOK

type GetMachinesOK struct {
	Payload *models.MachineResult
}

GetMachinesOK describes a response with status code 200, with default header values.

successful operation

func NewGetMachinesOK

func NewGetMachinesOK() *GetMachinesOK

NewGetMachinesOK creates a GetMachinesOK with default headers values

func (*GetMachinesOK) Error

func (o *GetMachinesOK) Error() string

func (*GetMachinesOK) GetPayload

func (o *GetMachinesOK) GetPayload() *models.MachineResult

func (*GetMachinesOK) IsClientError added in v0.5.0

func (o *GetMachinesOK) IsClientError() bool

IsClientError returns true when this get machines o k response has a 4xx status code

func (*GetMachinesOK) IsCode added in v0.5.0

func (o *GetMachinesOK) IsCode(code int) bool

IsCode returns true when this get machines o k response a status code equal to that given

func (*GetMachinesOK) IsRedirect added in v0.5.0

func (o *GetMachinesOK) IsRedirect() bool

IsRedirect returns true when this get machines o k response has a 3xx status code

func (*GetMachinesOK) IsServerError added in v0.5.0

func (o *GetMachinesOK) IsServerError() bool

IsServerError returns true when this get machines o k response has a 5xx status code

func (*GetMachinesOK) IsSuccess added in v0.5.0

func (o *GetMachinesOK) IsSuccess() bool

IsSuccess returns true when this get machines o k response has a 2xx status code

func (*GetMachinesOK) String added in v0.5.0

func (o *GetMachinesOK) String() string

type GetMachinesParams

type GetMachinesParams struct {

	/* DollarCount.

	   Flag which when specified, regardless of the assigned value, shows the total number of records. If the collection has a filter it shows the number of records matching the filter.
	*/
	DollarCount *bool

	/* DollarFilter.

	   Filter the results by a specified predicate expression. Operators: eq, ne, and, or.
	*/
	DollarFilter *string

	/* DollarSelect.

	   Select a subset of properties to include in the response.
	*/
	DollarSelect *string

	/* DollarSkip.

	   Number of records you want to skip.
	*/
	DollarSkip *int64

	/* DollarTop.

	   Number of records you want to get.
	*/
	DollarTop *int64

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* SkipOperationLinks.

	   If set to true will not return operation links.
	*/
	SkipOperationLinks *bool

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetMachinesParams contains all the parameters to send to the API endpoint

for the get machines operation.

Typically these are written to a http.Request.

func NewGetMachinesParams

func NewGetMachinesParams() *GetMachinesParams

NewGetMachinesParams creates a new GetMachinesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetMachinesParamsWithContext

func NewGetMachinesParamsWithContext(ctx context.Context) *GetMachinesParams

NewGetMachinesParamsWithContext creates a new GetMachinesParams object with the ability to set a context for a request.

func NewGetMachinesParamsWithHTTPClient

func NewGetMachinesParamsWithHTTPClient(client *http.Client) *GetMachinesParams

NewGetMachinesParamsWithHTTPClient creates a new GetMachinesParams object with the ability to set a custom HTTPClient for a request.

func NewGetMachinesParamsWithTimeout

func NewGetMachinesParamsWithTimeout(timeout time.Duration) *GetMachinesParams

NewGetMachinesParamsWithTimeout creates a new GetMachinesParams object with the ability to set a timeout on a request.

func (*GetMachinesParams) SetAPIVersion

func (o *GetMachinesParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get machines params

func (*GetMachinesParams) SetContext

func (o *GetMachinesParams) SetContext(ctx context.Context)

SetContext adds the context to the get machines params

func (*GetMachinesParams) SetDefaults added in v0.2.20

func (o *GetMachinesParams) SetDefaults()

SetDefaults hydrates default values in the get machines params (not the query body).

All values with no default are reset to their zero value.

func (*GetMachinesParams) SetDollarCount added in v0.2.20

func (o *GetMachinesParams) SetDollarCount(dollarCount *bool)

SetDollarCount adds the dollarCount to the get machines params

func (*GetMachinesParams) SetDollarFilter added in v0.2.5

func (o *GetMachinesParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter to the get machines params

func (*GetMachinesParams) SetDollarSelect added in v0.2.20

func (o *GetMachinesParams) SetDollarSelect(dollarSelect *string)

SetDollarSelect adds the dollarSelect to the get machines params

func (*GetMachinesParams) SetDollarSkip added in v0.2.20

func (o *GetMachinesParams) SetDollarSkip(dollarSkip *int64)

SetDollarSkip adds the dollarSkip to the get machines params

func (*GetMachinesParams) SetDollarTop added in v0.2.20

func (o *GetMachinesParams) SetDollarTop(dollarTop *int64)

SetDollarTop adds the dollarTop to the get machines params

func (*GetMachinesParams) SetHTTPClient

func (o *GetMachinesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get machines params

func (o *GetMachinesParams) SetSkipOperationLinks(skipOperationLinks *bool)

SetSkipOperationLinks adds the skipOperationLinks to the get machines params

func (*GetMachinesParams) SetTimeout

func (o *GetMachinesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get machines params

func (*GetMachinesParams) WithAPIVersion

func (o *GetMachinesParams) WithAPIVersion(aPIVersion *string) *GetMachinesParams

WithAPIVersion adds the aPIVersion to the get machines params

func (*GetMachinesParams) WithContext

func (o *GetMachinesParams) WithContext(ctx context.Context) *GetMachinesParams

WithContext adds the context to the get machines params

func (*GetMachinesParams) WithDefaults added in v0.2.20

func (o *GetMachinesParams) WithDefaults() *GetMachinesParams

WithDefaults hydrates default values in the get machines params (not the query body).

All values with no default are reset to their zero value.

func (*GetMachinesParams) WithDollarCount added in v0.2.20

func (o *GetMachinesParams) WithDollarCount(dollarCount *bool) *GetMachinesParams

WithDollarCount adds the dollarCount to the get machines params

func (*GetMachinesParams) WithDollarFilter added in v0.2.5

func (o *GetMachinesParams) WithDollarFilter(dollarFilter *string) *GetMachinesParams

WithDollarFilter adds the dollarFilter to the get machines params

func (*GetMachinesParams) WithDollarSelect added in v0.2.20

func (o *GetMachinesParams) WithDollarSelect(dollarSelect *string) *GetMachinesParams

WithDollarSelect adds the dollarSelect to the get machines params

func (*GetMachinesParams) WithDollarSkip added in v0.2.20

func (o *GetMachinesParams) WithDollarSkip(dollarSkip *int64) *GetMachinesParams

WithDollarSkip adds the dollarSkip to the get machines params

func (*GetMachinesParams) WithDollarTop added in v0.2.20

func (o *GetMachinesParams) WithDollarTop(dollarTop *int64) *GetMachinesParams

WithDollarTop adds the dollarTop to the get machines params

func (*GetMachinesParams) WithHTTPClient

func (o *GetMachinesParams) WithHTTPClient(client *http.Client) *GetMachinesParams

WithHTTPClient adds the HTTPClient to the get machines params

func (o *GetMachinesParams) WithSkipOperationLinks(skipOperationLinks *bool) *GetMachinesParams

WithSkipOperationLinks adds the skipOperationLinks to the get machines params

func (*GetMachinesParams) WithTimeout

func (o *GetMachinesParams) WithTimeout(timeout time.Duration) *GetMachinesParams

WithTimeout adds the timeout to the get machines params

func (*GetMachinesParams) WriteToRequest

func (o *GetMachinesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetMachinesReader

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

GetMachinesReader is a Reader for the GetMachines structure.

func (*GetMachinesReader) ReadResponse

func (o *GetMachinesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PowerOffMachineAccepted

type PowerOffMachineAccepted struct {
	Payload *models.RequestTracker
}

PowerOffMachineAccepted describes a response with status code 202, with default header values.

successful operation

func NewPowerOffMachineAccepted

func NewPowerOffMachineAccepted() *PowerOffMachineAccepted

NewPowerOffMachineAccepted creates a PowerOffMachineAccepted with default headers values

func (*PowerOffMachineAccepted) Error

func (o *PowerOffMachineAccepted) Error() string

func (*PowerOffMachineAccepted) GetPayload

func (*PowerOffMachineAccepted) IsClientError added in v0.5.0

func (o *PowerOffMachineAccepted) IsClientError() bool

IsClientError returns true when this power off machine accepted response has a 4xx status code

func (*PowerOffMachineAccepted) IsCode added in v0.5.0

func (o *PowerOffMachineAccepted) IsCode(code int) bool

IsCode returns true when this power off machine accepted response a status code equal to that given

func (*PowerOffMachineAccepted) IsRedirect added in v0.5.0

func (o *PowerOffMachineAccepted) IsRedirect() bool

IsRedirect returns true when this power off machine accepted response has a 3xx status code

func (*PowerOffMachineAccepted) IsServerError added in v0.5.0

func (o *PowerOffMachineAccepted) IsServerError() bool

IsServerError returns true when this power off machine accepted response has a 5xx status code

func (*PowerOffMachineAccepted) IsSuccess added in v0.5.0

func (o *PowerOffMachineAccepted) IsSuccess() bool

IsSuccess returns true when this power off machine accepted response has a 2xx status code

func (*PowerOffMachineAccepted) String added in v0.5.0

func (o *PowerOffMachineAccepted) String() string

type PowerOffMachineForbidden

type PowerOffMachineForbidden struct {
	Payload *models.ServiceErrorResponse
}

PowerOffMachineForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPowerOffMachineForbidden

func NewPowerOffMachineForbidden() *PowerOffMachineForbidden

NewPowerOffMachineForbidden creates a PowerOffMachineForbidden with default headers values

func (*PowerOffMachineForbidden) Error

func (o *PowerOffMachineForbidden) Error() string

func (*PowerOffMachineForbidden) GetPayload added in v0.2.20

func (*PowerOffMachineForbidden) IsClientError added in v0.5.0

func (o *PowerOffMachineForbidden) IsClientError() bool

IsClientError returns true when this power off machine forbidden response has a 4xx status code

func (*PowerOffMachineForbidden) IsCode added in v0.5.0

func (o *PowerOffMachineForbidden) IsCode(code int) bool

IsCode returns true when this power off machine forbidden response a status code equal to that given

func (*PowerOffMachineForbidden) IsRedirect added in v0.5.0

func (o *PowerOffMachineForbidden) IsRedirect() bool

IsRedirect returns true when this power off machine forbidden response has a 3xx status code

func (*PowerOffMachineForbidden) IsServerError added in v0.5.0

func (o *PowerOffMachineForbidden) IsServerError() bool

IsServerError returns true when this power off machine forbidden response has a 5xx status code

func (*PowerOffMachineForbidden) IsSuccess added in v0.5.0

func (o *PowerOffMachineForbidden) IsSuccess() bool

IsSuccess returns true when this power off machine forbidden response has a 2xx status code

func (*PowerOffMachineForbidden) String added in v0.5.0

func (o *PowerOffMachineForbidden) String() string

type PowerOffMachineNotFound

type PowerOffMachineNotFound struct {
	Payload *models.Error
}

PowerOffMachineNotFound describes a response with status code 404, with default header values.

Not Found

func NewPowerOffMachineNotFound

func NewPowerOffMachineNotFound() *PowerOffMachineNotFound

NewPowerOffMachineNotFound creates a PowerOffMachineNotFound with default headers values

func (*PowerOffMachineNotFound) Error

func (o *PowerOffMachineNotFound) Error() string

func (*PowerOffMachineNotFound) GetPayload added in v0.2.9

func (o *PowerOffMachineNotFound) GetPayload() *models.Error

func (*PowerOffMachineNotFound) IsClientError added in v0.5.0

func (o *PowerOffMachineNotFound) IsClientError() bool

IsClientError returns true when this power off machine not found response has a 4xx status code

func (*PowerOffMachineNotFound) IsCode added in v0.5.0

func (o *PowerOffMachineNotFound) IsCode(code int) bool

IsCode returns true when this power off machine not found response a status code equal to that given

func (*PowerOffMachineNotFound) IsRedirect added in v0.5.0

func (o *PowerOffMachineNotFound) IsRedirect() bool

IsRedirect returns true when this power off machine not found response has a 3xx status code

func (*PowerOffMachineNotFound) IsServerError added in v0.5.0

func (o *PowerOffMachineNotFound) IsServerError() bool

IsServerError returns true when this power off machine not found response has a 5xx status code

func (*PowerOffMachineNotFound) IsSuccess added in v0.5.0

func (o *PowerOffMachineNotFound) IsSuccess() bool

IsSuccess returns true when this power off machine not found response has a 2xx status code

func (*PowerOffMachineNotFound) String added in v0.5.0

func (o *PowerOffMachineNotFound) String() string

type PowerOffMachineParams

type PowerOffMachineParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The id of the Machine.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PowerOffMachineParams contains all the parameters to send to the API endpoint

for the power off machine operation.

Typically these are written to a http.Request.

func NewPowerOffMachineParams

func NewPowerOffMachineParams() *PowerOffMachineParams

NewPowerOffMachineParams creates a new PowerOffMachineParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPowerOffMachineParamsWithContext

func NewPowerOffMachineParamsWithContext(ctx context.Context) *PowerOffMachineParams

NewPowerOffMachineParamsWithContext creates a new PowerOffMachineParams object with the ability to set a context for a request.

func NewPowerOffMachineParamsWithHTTPClient

func NewPowerOffMachineParamsWithHTTPClient(client *http.Client) *PowerOffMachineParams

NewPowerOffMachineParamsWithHTTPClient creates a new PowerOffMachineParams object with the ability to set a custom HTTPClient for a request.

func NewPowerOffMachineParamsWithTimeout

func NewPowerOffMachineParamsWithTimeout(timeout time.Duration) *PowerOffMachineParams

NewPowerOffMachineParamsWithTimeout creates a new PowerOffMachineParams object with the ability to set a timeout on a request.

func (*PowerOffMachineParams) SetAPIVersion

func (o *PowerOffMachineParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the power off machine params

func (*PowerOffMachineParams) SetContext

func (o *PowerOffMachineParams) SetContext(ctx context.Context)

SetContext adds the context to the power off machine params

func (*PowerOffMachineParams) SetDefaults added in v0.2.20

func (o *PowerOffMachineParams) SetDefaults()

SetDefaults hydrates default values in the power off machine params (not the query body).

All values with no default are reset to their zero value.

func (*PowerOffMachineParams) SetHTTPClient

func (o *PowerOffMachineParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the power off machine params

func (*PowerOffMachineParams) SetID

func (o *PowerOffMachineParams) SetID(id string)

SetID adds the id to the power off machine params

func (*PowerOffMachineParams) SetTimeout

func (o *PowerOffMachineParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the power off machine params

func (*PowerOffMachineParams) WithAPIVersion

func (o *PowerOffMachineParams) WithAPIVersion(aPIVersion *string) *PowerOffMachineParams

WithAPIVersion adds the aPIVersion to the power off machine params

func (*PowerOffMachineParams) WithContext

WithContext adds the context to the power off machine params

func (*PowerOffMachineParams) WithDefaults added in v0.2.20

func (o *PowerOffMachineParams) WithDefaults() *PowerOffMachineParams

WithDefaults hydrates default values in the power off machine params (not the query body).

All values with no default are reset to their zero value.

func (*PowerOffMachineParams) WithHTTPClient

func (o *PowerOffMachineParams) WithHTTPClient(client *http.Client) *PowerOffMachineParams

WithHTTPClient adds the HTTPClient to the power off machine params

func (*PowerOffMachineParams) WithID

WithID adds the id to the power off machine params

func (*PowerOffMachineParams) WithTimeout

func (o *PowerOffMachineParams) WithTimeout(timeout time.Duration) *PowerOffMachineParams

WithTimeout adds the timeout to the power off machine params

func (*PowerOffMachineParams) WriteToRequest

func (o *PowerOffMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PowerOffMachineReader

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

PowerOffMachineReader is a Reader for the PowerOffMachine structure.

func (*PowerOffMachineReader) ReadResponse

func (o *PowerOffMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PowerOnMachineAccepted

type PowerOnMachineAccepted struct {
	Payload *models.RequestTracker
}

PowerOnMachineAccepted describes a response with status code 202, with default header values.

successful operation

func NewPowerOnMachineAccepted

func NewPowerOnMachineAccepted() *PowerOnMachineAccepted

NewPowerOnMachineAccepted creates a PowerOnMachineAccepted with default headers values

func (*PowerOnMachineAccepted) Error

func (o *PowerOnMachineAccepted) Error() string

func (*PowerOnMachineAccepted) GetPayload

func (o *PowerOnMachineAccepted) GetPayload() *models.RequestTracker

func (*PowerOnMachineAccepted) IsClientError added in v0.5.0

func (o *PowerOnMachineAccepted) IsClientError() bool

IsClientError returns true when this power on machine accepted response has a 4xx status code

func (*PowerOnMachineAccepted) IsCode added in v0.5.0

func (o *PowerOnMachineAccepted) IsCode(code int) bool

IsCode returns true when this power on machine accepted response a status code equal to that given

func (*PowerOnMachineAccepted) IsRedirect added in v0.5.0

func (o *PowerOnMachineAccepted) IsRedirect() bool

IsRedirect returns true when this power on machine accepted response has a 3xx status code

func (*PowerOnMachineAccepted) IsServerError added in v0.5.0

func (o *PowerOnMachineAccepted) IsServerError() bool

IsServerError returns true when this power on machine accepted response has a 5xx status code

func (*PowerOnMachineAccepted) IsSuccess added in v0.5.0

func (o *PowerOnMachineAccepted) IsSuccess() bool

IsSuccess returns true when this power on machine accepted response has a 2xx status code

func (*PowerOnMachineAccepted) String added in v0.5.0

func (o *PowerOnMachineAccepted) String() string

type PowerOnMachineForbidden

type PowerOnMachineForbidden struct {
	Payload *models.ServiceErrorResponse
}

PowerOnMachineForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPowerOnMachineForbidden

func NewPowerOnMachineForbidden() *PowerOnMachineForbidden

NewPowerOnMachineForbidden creates a PowerOnMachineForbidden with default headers values

func (*PowerOnMachineForbidden) Error

func (o *PowerOnMachineForbidden) Error() string

func (*PowerOnMachineForbidden) GetPayload added in v0.2.20

func (*PowerOnMachineForbidden) IsClientError added in v0.5.0

func (o *PowerOnMachineForbidden) IsClientError() bool

IsClientError returns true when this power on machine forbidden response has a 4xx status code

func (*PowerOnMachineForbidden) IsCode added in v0.5.0

func (o *PowerOnMachineForbidden) IsCode(code int) bool

IsCode returns true when this power on machine forbidden response a status code equal to that given

func (*PowerOnMachineForbidden) IsRedirect added in v0.5.0

func (o *PowerOnMachineForbidden) IsRedirect() bool

IsRedirect returns true when this power on machine forbidden response has a 3xx status code

func (*PowerOnMachineForbidden) IsServerError added in v0.5.0

func (o *PowerOnMachineForbidden) IsServerError() bool

IsServerError returns true when this power on machine forbidden response has a 5xx status code

func (*PowerOnMachineForbidden) IsSuccess added in v0.5.0

func (o *PowerOnMachineForbidden) IsSuccess() bool

IsSuccess returns true when this power on machine forbidden response has a 2xx status code

func (*PowerOnMachineForbidden) String added in v0.5.0

func (o *PowerOnMachineForbidden) String() string

type PowerOnMachineNotFound

type PowerOnMachineNotFound struct {
	Payload *models.Error
}

PowerOnMachineNotFound describes a response with status code 404, with default header values.

Not Found

func NewPowerOnMachineNotFound

func NewPowerOnMachineNotFound() *PowerOnMachineNotFound

NewPowerOnMachineNotFound creates a PowerOnMachineNotFound with default headers values

func (*PowerOnMachineNotFound) Error

func (o *PowerOnMachineNotFound) Error() string

func (*PowerOnMachineNotFound) GetPayload added in v0.2.9

func (o *PowerOnMachineNotFound) GetPayload() *models.Error

func (*PowerOnMachineNotFound) IsClientError added in v0.5.0

func (o *PowerOnMachineNotFound) IsClientError() bool

IsClientError returns true when this power on machine not found response has a 4xx status code

func (*PowerOnMachineNotFound) IsCode added in v0.5.0

func (o *PowerOnMachineNotFound) IsCode(code int) bool

IsCode returns true when this power on machine not found response a status code equal to that given

func (*PowerOnMachineNotFound) IsRedirect added in v0.5.0

func (o *PowerOnMachineNotFound) IsRedirect() bool

IsRedirect returns true when this power on machine not found response has a 3xx status code

func (*PowerOnMachineNotFound) IsServerError added in v0.5.0

func (o *PowerOnMachineNotFound) IsServerError() bool

IsServerError returns true when this power on machine not found response has a 5xx status code

func (*PowerOnMachineNotFound) IsSuccess added in v0.5.0

func (o *PowerOnMachineNotFound) IsSuccess() bool

IsSuccess returns true when this power on machine not found response has a 2xx status code

func (*PowerOnMachineNotFound) String added in v0.5.0

func (o *PowerOnMachineNotFound) String() string

type PowerOnMachineParams

type PowerOnMachineParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The id of the Machine.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PowerOnMachineParams contains all the parameters to send to the API endpoint

for the power on machine operation.

Typically these are written to a http.Request.

func NewPowerOnMachineParams

func NewPowerOnMachineParams() *PowerOnMachineParams

NewPowerOnMachineParams creates a new PowerOnMachineParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPowerOnMachineParamsWithContext

func NewPowerOnMachineParamsWithContext(ctx context.Context) *PowerOnMachineParams

NewPowerOnMachineParamsWithContext creates a new PowerOnMachineParams object with the ability to set a context for a request.

func NewPowerOnMachineParamsWithHTTPClient

func NewPowerOnMachineParamsWithHTTPClient(client *http.Client) *PowerOnMachineParams

NewPowerOnMachineParamsWithHTTPClient creates a new PowerOnMachineParams object with the ability to set a custom HTTPClient for a request.

func NewPowerOnMachineParamsWithTimeout

func NewPowerOnMachineParamsWithTimeout(timeout time.Duration) *PowerOnMachineParams

NewPowerOnMachineParamsWithTimeout creates a new PowerOnMachineParams object with the ability to set a timeout on a request.

func (*PowerOnMachineParams) SetAPIVersion

func (o *PowerOnMachineParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the power on machine params

func (*PowerOnMachineParams) SetContext

func (o *PowerOnMachineParams) SetContext(ctx context.Context)

SetContext adds the context to the power on machine params

func (*PowerOnMachineParams) SetDefaults added in v0.2.20

func (o *PowerOnMachineParams) SetDefaults()

SetDefaults hydrates default values in the power on machine params (not the query body).

All values with no default are reset to their zero value.

func (*PowerOnMachineParams) SetHTTPClient

func (o *PowerOnMachineParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the power on machine params

func (*PowerOnMachineParams) SetID

func (o *PowerOnMachineParams) SetID(id string)

SetID adds the id to the power on machine params

func (*PowerOnMachineParams) SetTimeout

func (o *PowerOnMachineParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the power on machine params

func (*PowerOnMachineParams) WithAPIVersion

func (o *PowerOnMachineParams) WithAPIVersion(aPIVersion *string) *PowerOnMachineParams

WithAPIVersion adds the aPIVersion to the power on machine params

func (*PowerOnMachineParams) WithContext

WithContext adds the context to the power on machine params

func (*PowerOnMachineParams) WithDefaults added in v0.2.20

func (o *PowerOnMachineParams) WithDefaults() *PowerOnMachineParams

WithDefaults hydrates default values in the power on machine params (not the query body).

All values with no default are reset to their zero value.

func (*PowerOnMachineParams) WithHTTPClient

func (o *PowerOnMachineParams) WithHTTPClient(client *http.Client) *PowerOnMachineParams

WithHTTPClient adds the HTTPClient to the power on machine params

func (*PowerOnMachineParams) WithID

WithID adds the id to the power on machine params

func (*PowerOnMachineParams) WithTimeout

func (o *PowerOnMachineParams) WithTimeout(timeout time.Duration) *PowerOnMachineParams

WithTimeout adds the timeout to the power on machine params

func (*PowerOnMachineParams) WriteToRequest

func (o *PowerOnMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PowerOnMachineReader

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

PowerOnMachineReader is a Reader for the PowerOnMachine structure.

func (*PowerOnMachineReader) ReadResponse

func (o *PowerOnMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RebootMachineAccepted

type RebootMachineAccepted struct {
	Payload *models.RequestTracker
}

RebootMachineAccepted describes a response with status code 202, with default header values.

successful operation

func NewRebootMachineAccepted

func NewRebootMachineAccepted() *RebootMachineAccepted

NewRebootMachineAccepted creates a RebootMachineAccepted with default headers values

func (*RebootMachineAccepted) Error

func (o *RebootMachineAccepted) Error() string

func (*RebootMachineAccepted) GetPayload

func (o *RebootMachineAccepted) GetPayload() *models.RequestTracker

func (*RebootMachineAccepted) IsClientError added in v0.5.0

func (o *RebootMachineAccepted) IsClientError() bool

IsClientError returns true when this reboot machine accepted response has a 4xx status code

func (*RebootMachineAccepted) IsCode added in v0.5.0

func (o *RebootMachineAccepted) IsCode(code int) bool

IsCode returns true when this reboot machine accepted response a status code equal to that given

func (*RebootMachineAccepted) IsRedirect added in v0.5.0

func (o *RebootMachineAccepted) IsRedirect() bool

IsRedirect returns true when this reboot machine accepted response has a 3xx status code

func (*RebootMachineAccepted) IsServerError added in v0.5.0

func (o *RebootMachineAccepted) IsServerError() bool

IsServerError returns true when this reboot machine accepted response has a 5xx status code

func (*RebootMachineAccepted) IsSuccess added in v0.5.0

func (o *RebootMachineAccepted) IsSuccess() bool

IsSuccess returns true when this reboot machine accepted response has a 2xx status code

func (*RebootMachineAccepted) String added in v0.5.0

func (o *RebootMachineAccepted) String() string

type RebootMachineForbidden

type RebootMachineForbidden struct {
	Payload *models.ServiceErrorResponse
}

RebootMachineForbidden describes a response with status code 403, with default header values.

Forbidden

func NewRebootMachineForbidden

func NewRebootMachineForbidden() *RebootMachineForbidden

NewRebootMachineForbidden creates a RebootMachineForbidden with default headers values

func (*RebootMachineForbidden) Error

func (o *RebootMachineForbidden) Error() string

func (*RebootMachineForbidden) GetPayload added in v0.2.20

func (*RebootMachineForbidden) IsClientError added in v0.5.0

func (o *RebootMachineForbidden) IsClientError() bool

IsClientError returns true when this reboot machine forbidden response has a 4xx status code

func (*RebootMachineForbidden) IsCode added in v0.5.0

func (o *RebootMachineForbidden) IsCode(code int) bool

IsCode returns true when this reboot machine forbidden response a status code equal to that given

func (*RebootMachineForbidden) IsRedirect added in v0.5.0

func (o *RebootMachineForbidden) IsRedirect() bool

IsRedirect returns true when this reboot machine forbidden response has a 3xx status code

func (*RebootMachineForbidden) IsServerError added in v0.5.0

func (o *RebootMachineForbidden) IsServerError() bool

IsServerError returns true when this reboot machine forbidden response has a 5xx status code

func (*RebootMachineForbidden) IsSuccess added in v0.5.0

func (o *RebootMachineForbidden) IsSuccess() bool

IsSuccess returns true when this reboot machine forbidden response has a 2xx status code

func (*RebootMachineForbidden) String added in v0.5.0

func (o *RebootMachineForbidden) String() string

type RebootMachineNotFound

type RebootMachineNotFound struct {
	Payload *models.Error
}

RebootMachineNotFound describes a response with status code 404, with default header values.

Not Found

func NewRebootMachineNotFound

func NewRebootMachineNotFound() *RebootMachineNotFound

NewRebootMachineNotFound creates a RebootMachineNotFound with default headers values

func (*RebootMachineNotFound) Error

func (o *RebootMachineNotFound) Error() string

func (*RebootMachineNotFound) GetPayload added in v0.2.9

func (o *RebootMachineNotFound) GetPayload() *models.Error

func (*RebootMachineNotFound) IsClientError added in v0.5.0

func (o *RebootMachineNotFound) IsClientError() bool

IsClientError returns true when this reboot machine not found response has a 4xx status code

func (*RebootMachineNotFound) IsCode added in v0.5.0

func (o *RebootMachineNotFound) IsCode(code int) bool

IsCode returns true when this reboot machine not found response a status code equal to that given

func (*RebootMachineNotFound) IsRedirect added in v0.5.0

func (o *RebootMachineNotFound) IsRedirect() bool

IsRedirect returns true when this reboot machine not found response has a 3xx status code

func (*RebootMachineNotFound) IsServerError added in v0.5.0

func (o *RebootMachineNotFound) IsServerError() bool

IsServerError returns true when this reboot machine not found response has a 5xx status code

func (*RebootMachineNotFound) IsSuccess added in v0.5.0

func (o *RebootMachineNotFound) IsSuccess() bool

IsSuccess returns true when this reboot machine not found response has a 2xx status code

func (*RebootMachineNotFound) String added in v0.5.0

func (o *RebootMachineNotFound) String() string

type RebootMachineParams

type RebootMachineParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The id of the Machine.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RebootMachineParams contains all the parameters to send to the API endpoint

for the reboot machine operation.

Typically these are written to a http.Request.

func NewRebootMachineParams

func NewRebootMachineParams() *RebootMachineParams

NewRebootMachineParams creates a new RebootMachineParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRebootMachineParamsWithContext

func NewRebootMachineParamsWithContext(ctx context.Context) *RebootMachineParams

NewRebootMachineParamsWithContext creates a new RebootMachineParams object with the ability to set a context for a request.

func NewRebootMachineParamsWithHTTPClient

func NewRebootMachineParamsWithHTTPClient(client *http.Client) *RebootMachineParams

NewRebootMachineParamsWithHTTPClient creates a new RebootMachineParams object with the ability to set a custom HTTPClient for a request.

func NewRebootMachineParamsWithTimeout

func NewRebootMachineParamsWithTimeout(timeout time.Duration) *RebootMachineParams

NewRebootMachineParamsWithTimeout creates a new RebootMachineParams object with the ability to set a timeout on a request.

func (*RebootMachineParams) SetAPIVersion

func (o *RebootMachineParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the reboot machine params

func (*RebootMachineParams) SetContext

func (o *RebootMachineParams) SetContext(ctx context.Context)

SetContext adds the context to the reboot machine params

func (*RebootMachineParams) SetDefaults added in v0.2.20

func (o *RebootMachineParams) SetDefaults()

SetDefaults hydrates default values in the reboot machine params (not the query body).

All values with no default are reset to their zero value.

func (*RebootMachineParams) SetHTTPClient

func (o *RebootMachineParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the reboot machine params

func (*RebootMachineParams) SetID

func (o *RebootMachineParams) SetID(id string)

SetID adds the id to the reboot machine params

func (*RebootMachineParams) SetTimeout

func (o *RebootMachineParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the reboot machine params

func (*RebootMachineParams) WithAPIVersion

func (o *RebootMachineParams) WithAPIVersion(aPIVersion *string) *RebootMachineParams

WithAPIVersion adds the aPIVersion to the reboot machine params

func (*RebootMachineParams) WithContext

WithContext adds the context to the reboot machine params

func (*RebootMachineParams) WithDefaults added in v0.2.20

func (o *RebootMachineParams) WithDefaults() *RebootMachineParams

WithDefaults hydrates default values in the reboot machine params (not the query body).

All values with no default are reset to their zero value.

func (*RebootMachineParams) WithHTTPClient

func (o *RebootMachineParams) WithHTTPClient(client *http.Client) *RebootMachineParams

WithHTTPClient adds the HTTPClient to the reboot machine params

func (*RebootMachineParams) WithID

WithID adds the id to the reboot machine params

func (*RebootMachineParams) WithTimeout

func (o *RebootMachineParams) WithTimeout(timeout time.Duration) *RebootMachineParams

WithTimeout adds the timeout to the reboot machine params

func (*RebootMachineParams) WriteToRequest

func (o *RebootMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RebootMachineReader

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

RebootMachineReader is a Reader for the RebootMachine structure.

func (*RebootMachineReader) ReadResponse

func (o *RebootMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ResetMachineAccepted

type ResetMachineAccepted struct {
	Payload *models.RequestTracker
}

ResetMachineAccepted describes a response with status code 202, with default header values.

successful operation

func NewResetMachineAccepted

func NewResetMachineAccepted() *ResetMachineAccepted

NewResetMachineAccepted creates a ResetMachineAccepted with default headers values

func (*ResetMachineAccepted) Error

func (o *ResetMachineAccepted) Error() string

func (*ResetMachineAccepted) GetPayload

func (o *ResetMachineAccepted) GetPayload() *models.RequestTracker

func (*ResetMachineAccepted) IsClientError added in v0.5.0

func (o *ResetMachineAccepted) IsClientError() bool

IsClientError returns true when this reset machine accepted response has a 4xx status code

func (*ResetMachineAccepted) IsCode added in v0.5.0

func (o *ResetMachineAccepted) IsCode(code int) bool

IsCode returns true when this reset machine accepted response a status code equal to that given

func (*ResetMachineAccepted) IsRedirect added in v0.5.0

func (o *ResetMachineAccepted) IsRedirect() bool

IsRedirect returns true when this reset machine accepted response has a 3xx status code

func (*ResetMachineAccepted) IsServerError added in v0.5.0

func (o *ResetMachineAccepted) IsServerError() bool

IsServerError returns true when this reset machine accepted response has a 5xx status code

func (*ResetMachineAccepted) IsSuccess added in v0.5.0

func (o *ResetMachineAccepted) IsSuccess() bool

IsSuccess returns true when this reset machine accepted response has a 2xx status code

func (*ResetMachineAccepted) String added in v0.5.0

func (o *ResetMachineAccepted) String() string

type ResetMachineForbidden

type ResetMachineForbidden struct {
	Payload *models.ServiceErrorResponse
}

ResetMachineForbidden describes a response with status code 403, with default header values.

Forbidden

func NewResetMachineForbidden

func NewResetMachineForbidden() *ResetMachineForbidden

NewResetMachineForbidden creates a ResetMachineForbidden with default headers values

func (*ResetMachineForbidden) Error

func (o *ResetMachineForbidden) Error() string

func (*ResetMachineForbidden) GetPayload added in v0.2.20

func (*ResetMachineForbidden) IsClientError added in v0.5.0

func (o *ResetMachineForbidden) IsClientError() bool

IsClientError returns true when this reset machine forbidden response has a 4xx status code

func (*ResetMachineForbidden) IsCode added in v0.5.0

func (o *ResetMachineForbidden) IsCode(code int) bool

IsCode returns true when this reset machine forbidden response a status code equal to that given

func (*ResetMachineForbidden) IsRedirect added in v0.5.0

func (o *ResetMachineForbidden) IsRedirect() bool

IsRedirect returns true when this reset machine forbidden response has a 3xx status code

func (*ResetMachineForbidden) IsServerError added in v0.5.0

func (o *ResetMachineForbidden) IsServerError() bool

IsServerError returns true when this reset machine forbidden response has a 5xx status code

func (*ResetMachineForbidden) IsSuccess added in v0.5.0

func (o *ResetMachineForbidden) IsSuccess() bool

IsSuccess returns true when this reset machine forbidden response has a 2xx status code

func (*ResetMachineForbidden) String added in v0.5.0

func (o *ResetMachineForbidden) String() string

type ResetMachineNotFound

type ResetMachineNotFound struct {
	Payload *models.Error
}

ResetMachineNotFound describes a response with status code 404, with default header values.

Not Found

func NewResetMachineNotFound

func NewResetMachineNotFound() *ResetMachineNotFound

NewResetMachineNotFound creates a ResetMachineNotFound with default headers values

func (*ResetMachineNotFound) Error

func (o *ResetMachineNotFound) Error() string

func (*ResetMachineNotFound) GetPayload added in v0.2.9

func (o *ResetMachineNotFound) GetPayload() *models.Error

func (*ResetMachineNotFound) IsClientError added in v0.5.0

func (o *ResetMachineNotFound) IsClientError() bool

IsClientError returns true when this reset machine not found response has a 4xx status code

func (*ResetMachineNotFound) IsCode added in v0.5.0

func (o *ResetMachineNotFound) IsCode(code int) bool

IsCode returns true when this reset machine not found response a status code equal to that given

func (*ResetMachineNotFound) IsRedirect added in v0.5.0

func (o *ResetMachineNotFound) IsRedirect() bool

IsRedirect returns true when this reset machine not found response has a 3xx status code

func (*ResetMachineNotFound) IsServerError added in v0.5.0

func (o *ResetMachineNotFound) IsServerError() bool

IsServerError returns true when this reset machine not found response has a 5xx status code

func (*ResetMachineNotFound) IsSuccess added in v0.5.0

func (o *ResetMachineNotFound) IsSuccess() bool

IsSuccess returns true when this reset machine not found response has a 2xx status code

func (*ResetMachineNotFound) String added in v0.5.0

func (o *ResetMachineNotFound) String() string

type ResetMachineParams

type ResetMachineParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The id of the Machine.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ResetMachineParams contains all the parameters to send to the API endpoint

for the reset machine operation.

Typically these are written to a http.Request.

func NewResetMachineParams

func NewResetMachineParams() *ResetMachineParams

NewResetMachineParams creates a new ResetMachineParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewResetMachineParamsWithContext

func NewResetMachineParamsWithContext(ctx context.Context) *ResetMachineParams

NewResetMachineParamsWithContext creates a new ResetMachineParams object with the ability to set a context for a request.

func NewResetMachineParamsWithHTTPClient

func NewResetMachineParamsWithHTTPClient(client *http.Client) *ResetMachineParams

NewResetMachineParamsWithHTTPClient creates a new ResetMachineParams object with the ability to set a custom HTTPClient for a request.

func NewResetMachineParamsWithTimeout

func NewResetMachineParamsWithTimeout(timeout time.Duration) *ResetMachineParams

NewResetMachineParamsWithTimeout creates a new ResetMachineParams object with the ability to set a timeout on a request.

func (*ResetMachineParams) SetAPIVersion

func (o *ResetMachineParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the reset machine params

func (*ResetMachineParams) SetContext

func (o *ResetMachineParams) SetContext(ctx context.Context)

SetContext adds the context to the reset machine params

func (*ResetMachineParams) SetDefaults added in v0.2.20

func (o *ResetMachineParams) SetDefaults()

SetDefaults hydrates default values in the reset machine params (not the query body).

All values with no default are reset to their zero value.

func (*ResetMachineParams) SetHTTPClient

func (o *ResetMachineParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the reset machine params

func (*ResetMachineParams) SetID

func (o *ResetMachineParams) SetID(id string)

SetID adds the id to the reset machine params

func (*ResetMachineParams) SetTimeout

func (o *ResetMachineParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the reset machine params

func (*ResetMachineParams) WithAPIVersion

func (o *ResetMachineParams) WithAPIVersion(aPIVersion *string) *ResetMachineParams

WithAPIVersion adds the aPIVersion to the reset machine params

func (*ResetMachineParams) WithContext

WithContext adds the context to the reset machine params

func (*ResetMachineParams) WithDefaults added in v0.2.20

func (o *ResetMachineParams) WithDefaults() *ResetMachineParams

WithDefaults hydrates default values in the reset machine params (not the query body).

All values with no default are reset to their zero value.

func (*ResetMachineParams) WithHTTPClient

func (o *ResetMachineParams) WithHTTPClient(client *http.Client) *ResetMachineParams

WithHTTPClient adds the HTTPClient to the reset machine params

func (*ResetMachineParams) WithID

WithID adds the id to the reset machine params

func (*ResetMachineParams) WithTimeout

func (o *ResetMachineParams) WithTimeout(timeout time.Duration) *ResetMachineParams

WithTimeout adds the timeout to the reset machine params

func (*ResetMachineParams) WriteToRequest

func (o *ResetMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ResetMachineReader

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

ResetMachineReader is a Reader for the ResetMachine structure.

func (*ResetMachineReader) ReadResponse

func (o *ResetMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ResizeMachineAccepted

type ResizeMachineAccepted struct {
	Payload *models.RequestTracker
}

ResizeMachineAccepted describes a response with status code 202, with default header values.

successful operation

func NewResizeMachineAccepted

func NewResizeMachineAccepted() *ResizeMachineAccepted

NewResizeMachineAccepted creates a ResizeMachineAccepted with default headers values

func (*ResizeMachineAccepted) Error

func (o *ResizeMachineAccepted) Error() string

func (*ResizeMachineAccepted) GetPayload

func (o *ResizeMachineAccepted) GetPayload() *models.RequestTracker

func (*ResizeMachineAccepted) IsClientError added in v0.5.0

func (o *ResizeMachineAccepted) IsClientError() bool

IsClientError returns true when this resize machine accepted response has a 4xx status code

func (*ResizeMachineAccepted) IsCode added in v0.5.0

func (o *ResizeMachineAccepted) IsCode(code int) bool

IsCode returns true when this resize machine accepted response a status code equal to that given

func (*ResizeMachineAccepted) IsRedirect added in v0.5.0

func (o *ResizeMachineAccepted) IsRedirect() bool

IsRedirect returns true when this resize machine accepted response has a 3xx status code

func (*ResizeMachineAccepted) IsServerError added in v0.5.0

func (o *ResizeMachineAccepted) IsServerError() bool

IsServerError returns true when this resize machine accepted response has a 5xx status code

func (*ResizeMachineAccepted) IsSuccess added in v0.5.0

func (o *ResizeMachineAccepted) IsSuccess() bool

IsSuccess returns true when this resize machine accepted response has a 2xx status code

func (*ResizeMachineAccepted) String added in v0.5.0

func (o *ResizeMachineAccepted) String() string

type ResizeMachineForbidden

type ResizeMachineForbidden struct {
	Payload *models.ServiceErrorResponse
}

ResizeMachineForbidden describes a response with status code 403, with default header values.

Forbidden

func NewResizeMachineForbidden

func NewResizeMachineForbidden() *ResizeMachineForbidden

NewResizeMachineForbidden creates a ResizeMachineForbidden with default headers values

func (*ResizeMachineForbidden) Error

func (o *ResizeMachineForbidden) Error() string

func (*ResizeMachineForbidden) GetPayload added in v0.2.20

func (*ResizeMachineForbidden) IsClientError added in v0.5.0

func (o *ResizeMachineForbidden) IsClientError() bool

IsClientError returns true when this resize machine forbidden response has a 4xx status code

func (*ResizeMachineForbidden) IsCode added in v0.5.0

func (o *ResizeMachineForbidden) IsCode(code int) bool

IsCode returns true when this resize machine forbidden response a status code equal to that given

func (*ResizeMachineForbidden) IsRedirect added in v0.5.0

func (o *ResizeMachineForbidden) IsRedirect() bool

IsRedirect returns true when this resize machine forbidden response has a 3xx status code

func (*ResizeMachineForbidden) IsServerError added in v0.5.0

func (o *ResizeMachineForbidden) IsServerError() bool

IsServerError returns true when this resize machine forbidden response has a 5xx status code

func (*ResizeMachineForbidden) IsSuccess added in v0.5.0

func (o *ResizeMachineForbidden) IsSuccess() bool

IsSuccess returns true when this resize machine forbidden response has a 2xx status code

func (*ResizeMachineForbidden) String added in v0.5.0

func (o *ResizeMachineForbidden) String() string

type ResizeMachineNotFound

type ResizeMachineNotFound struct {
	Payload *models.Error
}

ResizeMachineNotFound describes a response with status code 404, with default header values.

Not Found

func NewResizeMachineNotFound

func NewResizeMachineNotFound() *ResizeMachineNotFound

NewResizeMachineNotFound creates a ResizeMachineNotFound with default headers values

func (*ResizeMachineNotFound) Error

func (o *ResizeMachineNotFound) Error() string

func (*ResizeMachineNotFound) GetPayload added in v0.2.9

func (o *ResizeMachineNotFound) GetPayload() *models.Error

func (*ResizeMachineNotFound) IsClientError added in v0.5.0

func (o *ResizeMachineNotFound) IsClientError() bool

IsClientError returns true when this resize machine not found response has a 4xx status code

func (*ResizeMachineNotFound) IsCode added in v0.5.0

func (o *ResizeMachineNotFound) IsCode(code int) bool

IsCode returns true when this resize machine not found response a status code equal to that given

func (*ResizeMachineNotFound) IsRedirect added in v0.5.0

func (o *ResizeMachineNotFound) IsRedirect() bool

IsRedirect returns true when this resize machine not found response has a 3xx status code

func (*ResizeMachineNotFound) IsServerError added in v0.5.0

func (o *ResizeMachineNotFound) IsServerError() bool

IsServerError returns true when this resize machine not found response has a 5xx status code

func (*ResizeMachineNotFound) IsSuccess added in v0.5.0

func (o *ResizeMachineNotFound) IsSuccess() bool

IsSuccess returns true when this resize machine not found response has a 2xx status code

func (*ResizeMachineNotFound) String added in v0.5.0

func (o *ResizeMachineNotFound) String() string

type ResizeMachineParams

type ResizeMachineParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* CoreCount.

	   The desired number of cores per socket to resize the Machine
	*/
	CoreCount *string

	/* CPUCount.

	   The desired number of CPUs to resize the Machine
	*/
	CPUCount *string

	/* ID.

	   The id of the Machine.
	*/
	ID string

	/* MemoryInMB.

	   The desired memory in MBs to resize the Machine
	*/
	MemoryInMB *string

	/* Name.

	   The desired flavor to resize the Machine.
	*/
	Name *string

	/* RebootMachine.

	   Only applicable for vSphere VMs with the CPU Hot Add or Memory Hot Plug options enabled. If set to false, VM is resized without reboot.
	*/
	RebootMachine *bool

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ResizeMachineParams contains all the parameters to send to the API endpoint

for the resize machine operation.

Typically these are written to a http.Request.

func NewResizeMachineParams

func NewResizeMachineParams() *ResizeMachineParams

NewResizeMachineParams creates a new ResizeMachineParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewResizeMachineParamsWithContext

func NewResizeMachineParamsWithContext(ctx context.Context) *ResizeMachineParams

NewResizeMachineParamsWithContext creates a new ResizeMachineParams object with the ability to set a context for a request.

func NewResizeMachineParamsWithHTTPClient

func NewResizeMachineParamsWithHTTPClient(client *http.Client) *ResizeMachineParams

NewResizeMachineParamsWithHTTPClient creates a new ResizeMachineParams object with the ability to set a custom HTTPClient for a request.

func NewResizeMachineParamsWithTimeout

func NewResizeMachineParamsWithTimeout(timeout time.Duration) *ResizeMachineParams

NewResizeMachineParamsWithTimeout creates a new ResizeMachineParams object with the ability to set a timeout on a request.

func (*ResizeMachineParams) SetAPIVersion

func (o *ResizeMachineParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the resize machine params

func (*ResizeMachineParams) SetCPUCount

func (o *ResizeMachineParams) SetCPUCount(cPUCount *string)

SetCPUCount adds the cpuCount to the resize machine params

func (*ResizeMachineParams) SetContext

func (o *ResizeMachineParams) SetContext(ctx context.Context)

SetContext adds the context to the resize machine params

func (*ResizeMachineParams) SetCoreCount added in v0.2.18

func (o *ResizeMachineParams) SetCoreCount(coreCount *string)

SetCoreCount adds the coreCount to the resize machine params

func (*ResizeMachineParams) SetDefaults added in v0.2.20

func (o *ResizeMachineParams) SetDefaults()

SetDefaults hydrates default values in the resize machine params (not the query body).

All values with no default are reset to their zero value.

func (*ResizeMachineParams) SetHTTPClient

func (o *ResizeMachineParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the resize machine params

func (*ResizeMachineParams) SetID

func (o *ResizeMachineParams) SetID(id string)

SetID adds the id to the resize machine params

func (*ResizeMachineParams) SetMemoryInMB

func (o *ResizeMachineParams) SetMemoryInMB(memoryInMB *string)

SetMemoryInMB adds the memoryInMB to the resize machine params

func (*ResizeMachineParams) SetName

func (o *ResizeMachineParams) SetName(name *string)

SetName adds the name to the resize machine params

func (*ResizeMachineParams) SetRebootMachine added in v0.2.18

func (o *ResizeMachineParams) SetRebootMachine(rebootMachine *bool)

SetRebootMachine adds the rebootMachine to the resize machine params

func (*ResizeMachineParams) SetTimeout

func (o *ResizeMachineParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the resize machine params

func (*ResizeMachineParams) WithAPIVersion

func (o *ResizeMachineParams) WithAPIVersion(aPIVersion *string) *ResizeMachineParams

WithAPIVersion adds the aPIVersion to the resize machine params

func (*ResizeMachineParams) WithCPUCount

func (o *ResizeMachineParams) WithCPUCount(cPUCount *string) *ResizeMachineParams

WithCPUCount adds the cPUCount to the resize machine params

func (*ResizeMachineParams) WithContext

WithContext adds the context to the resize machine params

func (*ResizeMachineParams) WithCoreCount added in v0.2.18

func (o *ResizeMachineParams) WithCoreCount(coreCount *string) *ResizeMachineParams

WithCoreCount adds the coreCount to the resize machine params

func (*ResizeMachineParams) WithDefaults added in v0.2.20

func (o *ResizeMachineParams) WithDefaults() *ResizeMachineParams

WithDefaults hydrates default values in the resize machine params (not the query body).

All values with no default are reset to their zero value.

func (*ResizeMachineParams) WithHTTPClient

func (o *ResizeMachineParams) WithHTTPClient(client *http.Client) *ResizeMachineParams

WithHTTPClient adds the HTTPClient to the resize machine params

func (*ResizeMachineParams) WithID

WithID adds the id to the resize machine params

func (*ResizeMachineParams) WithMemoryInMB

func (o *ResizeMachineParams) WithMemoryInMB(memoryInMB *string) *ResizeMachineParams

WithMemoryInMB adds the memoryInMB to the resize machine params

func (*ResizeMachineParams) WithName

func (o *ResizeMachineParams) WithName(name *string) *ResizeMachineParams

WithName adds the name to the resize machine params

func (*ResizeMachineParams) WithRebootMachine added in v0.2.18

func (o *ResizeMachineParams) WithRebootMachine(rebootMachine *bool) *ResizeMachineParams

WithRebootMachine adds the rebootMachine to the resize machine params

func (*ResizeMachineParams) WithTimeout

func (o *ResizeMachineParams) WithTimeout(timeout time.Duration) *ResizeMachineParams

WithTimeout adds the timeout to the resize machine params

func (*ResizeMachineParams) WriteToRequest

func (o *ResizeMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ResizeMachineReader

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

ResizeMachineReader is a Reader for the ResizeMachine structure.

func (*ResizeMachineReader) ReadResponse

func (o *ResizeMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RestartMachineAccepted

type RestartMachineAccepted struct {
	Payload *models.RequestTracker
}

RestartMachineAccepted describes a response with status code 202, with default header values.

successful operation

func NewRestartMachineAccepted

func NewRestartMachineAccepted() *RestartMachineAccepted

NewRestartMachineAccepted creates a RestartMachineAccepted with default headers values

func (*RestartMachineAccepted) Error

func (o *RestartMachineAccepted) Error() string

func (*RestartMachineAccepted) GetPayload

func (o *RestartMachineAccepted) GetPayload() *models.RequestTracker

func (*RestartMachineAccepted) IsClientError added in v0.5.0

func (o *RestartMachineAccepted) IsClientError() bool

IsClientError returns true when this restart machine accepted response has a 4xx status code

func (*RestartMachineAccepted) IsCode added in v0.5.0

func (o *RestartMachineAccepted) IsCode(code int) bool

IsCode returns true when this restart machine accepted response a status code equal to that given

func (*RestartMachineAccepted) IsRedirect added in v0.5.0

func (o *RestartMachineAccepted) IsRedirect() bool

IsRedirect returns true when this restart machine accepted response has a 3xx status code

func (*RestartMachineAccepted) IsServerError added in v0.5.0

func (o *RestartMachineAccepted) IsServerError() bool

IsServerError returns true when this restart machine accepted response has a 5xx status code

func (*RestartMachineAccepted) IsSuccess added in v0.5.0

func (o *RestartMachineAccepted) IsSuccess() bool

IsSuccess returns true when this restart machine accepted response has a 2xx status code

func (*RestartMachineAccepted) String added in v0.5.0

func (o *RestartMachineAccepted) String() string

type RestartMachineForbidden

type RestartMachineForbidden struct {
	Payload *models.ServiceErrorResponse
}

RestartMachineForbidden describes a response with status code 403, with default header values.

Forbidden

func NewRestartMachineForbidden

func NewRestartMachineForbidden() *RestartMachineForbidden

NewRestartMachineForbidden creates a RestartMachineForbidden with default headers values

func (*RestartMachineForbidden) Error

func (o *RestartMachineForbidden) Error() string

func (*RestartMachineForbidden) GetPayload added in v0.2.20

func (*RestartMachineForbidden) IsClientError added in v0.5.0

func (o *RestartMachineForbidden) IsClientError() bool

IsClientError returns true when this restart machine forbidden response has a 4xx status code

func (*RestartMachineForbidden) IsCode added in v0.5.0

func (o *RestartMachineForbidden) IsCode(code int) bool

IsCode returns true when this restart machine forbidden response a status code equal to that given

func (*RestartMachineForbidden) IsRedirect added in v0.5.0

func (o *RestartMachineForbidden) IsRedirect() bool

IsRedirect returns true when this restart machine forbidden response has a 3xx status code

func (*RestartMachineForbidden) IsServerError added in v0.5.0

func (o *RestartMachineForbidden) IsServerError() bool

IsServerError returns true when this restart machine forbidden response has a 5xx status code

func (*RestartMachineForbidden) IsSuccess added in v0.5.0

func (o *RestartMachineForbidden) IsSuccess() bool

IsSuccess returns true when this restart machine forbidden response has a 2xx status code

func (*RestartMachineForbidden) String added in v0.5.0

func (o *RestartMachineForbidden) String() string

type RestartMachineNotFound

type RestartMachineNotFound struct {
	Payload *models.Error
}

RestartMachineNotFound describes a response with status code 404, with default header values.

Not Found

func NewRestartMachineNotFound

func NewRestartMachineNotFound() *RestartMachineNotFound

NewRestartMachineNotFound creates a RestartMachineNotFound with default headers values

func (*RestartMachineNotFound) Error

func (o *RestartMachineNotFound) Error() string

func (*RestartMachineNotFound) GetPayload added in v0.2.9

func (o *RestartMachineNotFound) GetPayload() *models.Error

func (*RestartMachineNotFound) IsClientError added in v0.5.0

func (o *RestartMachineNotFound) IsClientError() bool

IsClientError returns true when this restart machine not found response has a 4xx status code

func (*RestartMachineNotFound) IsCode added in v0.5.0

func (o *RestartMachineNotFound) IsCode(code int) bool

IsCode returns true when this restart machine not found response a status code equal to that given

func (*RestartMachineNotFound) IsRedirect added in v0.5.0

func (o *RestartMachineNotFound) IsRedirect() bool

IsRedirect returns true when this restart machine not found response has a 3xx status code

func (*RestartMachineNotFound) IsServerError added in v0.5.0

func (o *RestartMachineNotFound) IsServerError() bool

IsServerError returns true when this restart machine not found response has a 5xx status code

func (*RestartMachineNotFound) IsSuccess added in v0.5.0

func (o *RestartMachineNotFound) IsSuccess() bool

IsSuccess returns true when this restart machine not found response has a 2xx status code

func (*RestartMachineNotFound) String added in v0.5.0

func (o *RestartMachineNotFound) String() string

type RestartMachineParams

type RestartMachineParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The id of the Machine.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RestartMachineParams contains all the parameters to send to the API endpoint

for the restart machine operation.

Typically these are written to a http.Request.

func NewRestartMachineParams

func NewRestartMachineParams() *RestartMachineParams

NewRestartMachineParams creates a new RestartMachineParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRestartMachineParamsWithContext

func NewRestartMachineParamsWithContext(ctx context.Context) *RestartMachineParams

NewRestartMachineParamsWithContext creates a new RestartMachineParams object with the ability to set a context for a request.

func NewRestartMachineParamsWithHTTPClient

func NewRestartMachineParamsWithHTTPClient(client *http.Client) *RestartMachineParams

NewRestartMachineParamsWithHTTPClient creates a new RestartMachineParams object with the ability to set a custom HTTPClient for a request.

func NewRestartMachineParamsWithTimeout

func NewRestartMachineParamsWithTimeout(timeout time.Duration) *RestartMachineParams

NewRestartMachineParamsWithTimeout creates a new RestartMachineParams object with the ability to set a timeout on a request.

func (*RestartMachineParams) SetAPIVersion

func (o *RestartMachineParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the restart machine params

func (*RestartMachineParams) SetContext

func (o *RestartMachineParams) SetContext(ctx context.Context)

SetContext adds the context to the restart machine params

func (*RestartMachineParams) SetDefaults added in v0.2.20

func (o *RestartMachineParams) SetDefaults()

SetDefaults hydrates default values in the restart machine params (not the query body).

All values with no default are reset to their zero value.

func (*RestartMachineParams) SetHTTPClient

func (o *RestartMachineParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the restart machine params

func (*RestartMachineParams) SetID

func (o *RestartMachineParams) SetID(id string)

SetID adds the id to the restart machine params

func (*RestartMachineParams) SetTimeout

func (o *RestartMachineParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the restart machine params

func (*RestartMachineParams) WithAPIVersion

func (o *RestartMachineParams) WithAPIVersion(aPIVersion *string) *RestartMachineParams

WithAPIVersion adds the aPIVersion to the restart machine params

func (*RestartMachineParams) WithContext

WithContext adds the context to the restart machine params

func (*RestartMachineParams) WithDefaults added in v0.2.20

func (o *RestartMachineParams) WithDefaults() *RestartMachineParams

WithDefaults hydrates default values in the restart machine params (not the query body).

All values with no default are reset to their zero value.

func (*RestartMachineParams) WithHTTPClient

func (o *RestartMachineParams) WithHTTPClient(client *http.Client) *RestartMachineParams

WithHTTPClient adds the HTTPClient to the restart machine params

func (*RestartMachineParams) WithID

WithID adds the id to the restart machine params

func (*RestartMachineParams) WithTimeout

func (o *RestartMachineParams) WithTimeout(timeout time.Duration) *RestartMachineParams

WithTimeout adds the timeout to the restart machine params

func (*RestartMachineParams) WriteToRequest

func (o *RestartMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RestartMachineReader

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

RestartMachineReader is a Reader for the RestartMachine structure.

func (*RestartMachineReader) ReadResponse

func (o *RestartMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RevertMachineSnapshotAccepted

type RevertMachineSnapshotAccepted struct {
	Payload *models.RequestTracker
}

RevertMachineSnapshotAccepted describes a response with status code 202, with default header values.

successful operation

func NewRevertMachineSnapshotAccepted

func NewRevertMachineSnapshotAccepted() *RevertMachineSnapshotAccepted

NewRevertMachineSnapshotAccepted creates a RevertMachineSnapshotAccepted with default headers values

func (*RevertMachineSnapshotAccepted) Error

func (*RevertMachineSnapshotAccepted) GetPayload

func (*RevertMachineSnapshotAccepted) IsClientError added in v0.5.0

func (o *RevertMachineSnapshotAccepted) IsClientError() bool

IsClientError returns true when this revert machine snapshot accepted response has a 4xx status code

func (*RevertMachineSnapshotAccepted) IsCode added in v0.5.0

func (o *RevertMachineSnapshotAccepted) IsCode(code int) bool

IsCode returns true when this revert machine snapshot accepted response a status code equal to that given

func (*RevertMachineSnapshotAccepted) IsRedirect added in v0.5.0

func (o *RevertMachineSnapshotAccepted) IsRedirect() bool

IsRedirect returns true when this revert machine snapshot accepted response has a 3xx status code

func (*RevertMachineSnapshotAccepted) IsServerError added in v0.5.0

func (o *RevertMachineSnapshotAccepted) IsServerError() bool

IsServerError returns true when this revert machine snapshot accepted response has a 5xx status code

func (*RevertMachineSnapshotAccepted) IsSuccess added in v0.5.0

func (o *RevertMachineSnapshotAccepted) IsSuccess() bool

IsSuccess returns true when this revert machine snapshot accepted response has a 2xx status code

func (*RevertMachineSnapshotAccepted) String added in v0.5.0

type RevertMachineSnapshotForbidden

type RevertMachineSnapshotForbidden struct {
	Payload *models.ServiceErrorResponse
}

RevertMachineSnapshotForbidden describes a response with status code 403, with default header values.

Forbidden

func NewRevertMachineSnapshotForbidden

func NewRevertMachineSnapshotForbidden() *RevertMachineSnapshotForbidden

NewRevertMachineSnapshotForbidden creates a RevertMachineSnapshotForbidden with default headers values

func (*RevertMachineSnapshotForbidden) Error

func (*RevertMachineSnapshotForbidden) GetPayload added in v0.2.20

func (*RevertMachineSnapshotForbidden) IsClientError added in v0.5.0

func (o *RevertMachineSnapshotForbidden) IsClientError() bool

IsClientError returns true when this revert machine snapshot forbidden response has a 4xx status code

func (*RevertMachineSnapshotForbidden) IsCode added in v0.5.0

func (o *RevertMachineSnapshotForbidden) IsCode(code int) bool

IsCode returns true when this revert machine snapshot forbidden response a status code equal to that given

func (*RevertMachineSnapshotForbidden) IsRedirect added in v0.5.0

func (o *RevertMachineSnapshotForbidden) IsRedirect() bool

IsRedirect returns true when this revert machine snapshot forbidden response has a 3xx status code

func (*RevertMachineSnapshotForbidden) IsServerError added in v0.5.0

func (o *RevertMachineSnapshotForbidden) IsServerError() bool

IsServerError returns true when this revert machine snapshot forbidden response has a 5xx status code

func (*RevertMachineSnapshotForbidden) IsSuccess added in v0.5.0

func (o *RevertMachineSnapshotForbidden) IsSuccess() bool

IsSuccess returns true when this revert machine snapshot forbidden response has a 2xx status code

func (*RevertMachineSnapshotForbidden) String added in v0.5.0

type RevertMachineSnapshotNotFound

type RevertMachineSnapshotNotFound struct {
	Payload *models.Error
}

RevertMachineSnapshotNotFound describes a response with status code 404, with default header values.

Not Found

func NewRevertMachineSnapshotNotFound

func NewRevertMachineSnapshotNotFound() *RevertMachineSnapshotNotFound

NewRevertMachineSnapshotNotFound creates a RevertMachineSnapshotNotFound with default headers values

func (*RevertMachineSnapshotNotFound) Error

func (*RevertMachineSnapshotNotFound) GetPayload added in v0.2.9

func (o *RevertMachineSnapshotNotFound) GetPayload() *models.Error

func (*RevertMachineSnapshotNotFound) IsClientError added in v0.5.0

func (o *RevertMachineSnapshotNotFound) IsClientError() bool

IsClientError returns true when this revert machine snapshot not found response has a 4xx status code

func (*RevertMachineSnapshotNotFound) IsCode added in v0.5.0

func (o *RevertMachineSnapshotNotFound) IsCode(code int) bool

IsCode returns true when this revert machine snapshot not found response a status code equal to that given

func (*RevertMachineSnapshotNotFound) IsRedirect added in v0.5.0

func (o *RevertMachineSnapshotNotFound) IsRedirect() bool

IsRedirect returns true when this revert machine snapshot not found response has a 3xx status code

func (*RevertMachineSnapshotNotFound) IsServerError added in v0.5.0

func (o *RevertMachineSnapshotNotFound) IsServerError() bool

IsServerError returns true when this revert machine snapshot not found response has a 5xx status code

func (*RevertMachineSnapshotNotFound) IsSuccess added in v0.5.0

func (o *RevertMachineSnapshotNotFound) IsSuccess() bool

IsSuccess returns true when this revert machine snapshot not found response has a 2xx status code

func (*RevertMachineSnapshotNotFound) String added in v0.5.0

type RevertMachineSnapshotParams

type RevertMachineSnapshotParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion string

	/* ID.

	   The id of the Machine.
	*/
	ID string

	/* SnapshotID.

	   Snapshot id to revert.
	*/
	SnapshotID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RevertMachineSnapshotParams contains all the parameters to send to the API endpoint

for the revert machine snapshot operation.

Typically these are written to a http.Request.

func NewRevertMachineSnapshotParams

func NewRevertMachineSnapshotParams() *RevertMachineSnapshotParams

NewRevertMachineSnapshotParams creates a new RevertMachineSnapshotParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRevertMachineSnapshotParamsWithContext

func NewRevertMachineSnapshotParamsWithContext(ctx context.Context) *RevertMachineSnapshotParams

NewRevertMachineSnapshotParamsWithContext creates a new RevertMachineSnapshotParams object with the ability to set a context for a request.

func NewRevertMachineSnapshotParamsWithHTTPClient

func NewRevertMachineSnapshotParamsWithHTTPClient(client *http.Client) *RevertMachineSnapshotParams

NewRevertMachineSnapshotParamsWithHTTPClient creates a new RevertMachineSnapshotParams object with the ability to set a custom HTTPClient for a request.

func NewRevertMachineSnapshotParamsWithTimeout

func NewRevertMachineSnapshotParamsWithTimeout(timeout time.Duration) *RevertMachineSnapshotParams

NewRevertMachineSnapshotParamsWithTimeout creates a new RevertMachineSnapshotParams object with the ability to set a timeout on a request.

func (*RevertMachineSnapshotParams) SetAPIVersion

func (o *RevertMachineSnapshotParams) SetAPIVersion(aPIVersion string)

SetAPIVersion adds the apiVersion to the revert machine snapshot params

func (*RevertMachineSnapshotParams) SetContext

func (o *RevertMachineSnapshotParams) SetContext(ctx context.Context)

SetContext adds the context to the revert machine snapshot params

func (*RevertMachineSnapshotParams) SetDefaults added in v0.2.20

func (o *RevertMachineSnapshotParams) SetDefaults()

SetDefaults hydrates default values in the revert machine snapshot params (not the query body).

All values with no default are reset to their zero value.

func (*RevertMachineSnapshotParams) SetHTTPClient

func (o *RevertMachineSnapshotParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the revert machine snapshot params

func (*RevertMachineSnapshotParams) SetID

func (o *RevertMachineSnapshotParams) SetID(id string)

SetID adds the id to the revert machine snapshot params

func (*RevertMachineSnapshotParams) SetSnapshotID added in v0.4.0

func (o *RevertMachineSnapshotParams) SetSnapshotID(snapshotID string)

SetSnapshotID adds the snapshotId to the revert machine snapshot params

func (*RevertMachineSnapshotParams) SetTimeout

func (o *RevertMachineSnapshotParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the revert machine snapshot params

func (*RevertMachineSnapshotParams) WithAPIVersion

func (o *RevertMachineSnapshotParams) WithAPIVersion(aPIVersion string) *RevertMachineSnapshotParams

WithAPIVersion adds the aPIVersion to the revert machine snapshot params

func (*RevertMachineSnapshotParams) WithContext

WithContext adds the context to the revert machine snapshot params

func (*RevertMachineSnapshotParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the revert machine snapshot params (not the query body).

All values with no default are reset to their zero value.

func (*RevertMachineSnapshotParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the revert machine snapshot params

func (*RevertMachineSnapshotParams) WithID

WithID adds the id to the revert machine snapshot params

func (*RevertMachineSnapshotParams) WithSnapshotID added in v0.4.0

func (o *RevertMachineSnapshotParams) WithSnapshotID(snapshotID string) *RevertMachineSnapshotParams

WithSnapshotID adds the snapshotID to the revert machine snapshot params

func (*RevertMachineSnapshotParams) WithTimeout

WithTimeout adds the timeout to the revert machine snapshot params

func (*RevertMachineSnapshotParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RevertMachineSnapshotReader

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

RevertMachineSnapshotReader is a Reader for the RevertMachineSnapshot structure.

func (*RevertMachineSnapshotReader) ReadResponse

func (o *RevertMachineSnapshotReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ShutdownMachineAccepted

type ShutdownMachineAccepted struct {
	Payload *models.RequestTracker
}

ShutdownMachineAccepted describes a response with status code 202, with default header values.

successful operation

func NewShutdownMachineAccepted

func NewShutdownMachineAccepted() *ShutdownMachineAccepted

NewShutdownMachineAccepted creates a ShutdownMachineAccepted with default headers values

func (*ShutdownMachineAccepted) Error

func (o *ShutdownMachineAccepted) Error() string

func (*ShutdownMachineAccepted) GetPayload

func (*ShutdownMachineAccepted) IsClientError added in v0.5.0

func (o *ShutdownMachineAccepted) IsClientError() bool

IsClientError returns true when this shutdown machine accepted response has a 4xx status code

func (*ShutdownMachineAccepted) IsCode added in v0.5.0

func (o *ShutdownMachineAccepted) IsCode(code int) bool

IsCode returns true when this shutdown machine accepted response a status code equal to that given

func (*ShutdownMachineAccepted) IsRedirect added in v0.5.0

func (o *ShutdownMachineAccepted) IsRedirect() bool

IsRedirect returns true when this shutdown machine accepted response has a 3xx status code

func (*ShutdownMachineAccepted) IsServerError added in v0.5.0

func (o *ShutdownMachineAccepted) IsServerError() bool

IsServerError returns true when this shutdown machine accepted response has a 5xx status code

func (*ShutdownMachineAccepted) IsSuccess added in v0.5.0

func (o *ShutdownMachineAccepted) IsSuccess() bool

IsSuccess returns true when this shutdown machine accepted response has a 2xx status code

func (*ShutdownMachineAccepted) String added in v0.5.0

func (o *ShutdownMachineAccepted) String() string

type ShutdownMachineForbidden

type ShutdownMachineForbidden struct {
	Payload *models.ServiceErrorResponse
}

ShutdownMachineForbidden describes a response with status code 403, with default header values.

Forbidden

func NewShutdownMachineForbidden

func NewShutdownMachineForbidden() *ShutdownMachineForbidden

NewShutdownMachineForbidden creates a ShutdownMachineForbidden with default headers values

func (*ShutdownMachineForbidden) Error

func (o *ShutdownMachineForbidden) Error() string

func (*ShutdownMachineForbidden) GetPayload added in v0.2.20

func (*ShutdownMachineForbidden) IsClientError added in v0.5.0

func (o *ShutdownMachineForbidden) IsClientError() bool

IsClientError returns true when this shutdown machine forbidden response has a 4xx status code

func (*ShutdownMachineForbidden) IsCode added in v0.5.0

func (o *ShutdownMachineForbidden) IsCode(code int) bool

IsCode returns true when this shutdown machine forbidden response a status code equal to that given

func (*ShutdownMachineForbidden) IsRedirect added in v0.5.0

func (o *ShutdownMachineForbidden) IsRedirect() bool

IsRedirect returns true when this shutdown machine forbidden response has a 3xx status code

func (*ShutdownMachineForbidden) IsServerError added in v0.5.0

func (o *ShutdownMachineForbidden) IsServerError() bool

IsServerError returns true when this shutdown machine forbidden response has a 5xx status code

func (*ShutdownMachineForbidden) IsSuccess added in v0.5.0

func (o *ShutdownMachineForbidden) IsSuccess() bool

IsSuccess returns true when this shutdown machine forbidden response has a 2xx status code

func (*ShutdownMachineForbidden) String added in v0.5.0

func (o *ShutdownMachineForbidden) String() string

type ShutdownMachineNotFound

type ShutdownMachineNotFound struct {
	Payload *models.Error
}

ShutdownMachineNotFound describes a response with status code 404, with default header values.

Not Found

func NewShutdownMachineNotFound

func NewShutdownMachineNotFound() *ShutdownMachineNotFound

NewShutdownMachineNotFound creates a ShutdownMachineNotFound with default headers values

func (*ShutdownMachineNotFound) Error

func (o *ShutdownMachineNotFound) Error() string

func (*ShutdownMachineNotFound) GetPayload added in v0.2.9

func (o *ShutdownMachineNotFound) GetPayload() *models.Error

func (*ShutdownMachineNotFound) IsClientError added in v0.5.0

func (o *ShutdownMachineNotFound) IsClientError() bool

IsClientError returns true when this shutdown machine not found response has a 4xx status code

func (*ShutdownMachineNotFound) IsCode added in v0.5.0

func (o *ShutdownMachineNotFound) IsCode(code int) bool

IsCode returns true when this shutdown machine not found response a status code equal to that given

func (*ShutdownMachineNotFound) IsRedirect added in v0.5.0

func (o *ShutdownMachineNotFound) IsRedirect() bool

IsRedirect returns true when this shutdown machine not found response has a 3xx status code

func (*ShutdownMachineNotFound) IsServerError added in v0.5.0

func (o *ShutdownMachineNotFound) IsServerError() bool

IsServerError returns true when this shutdown machine not found response has a 5xx status code

func (*ShutdownMachineNotFound) IsSuccess added in v0.5.0

func (o *ShutdownMachineNotFound) IsSuccess() bool

IsSuccess returns true when this shutdown machine not found response has a 2xx status code

func (*ShutdownMachineNotFound) String added in v0.5.0

func (o *ShutdownMachineNotFound) String() string

type ShutdownMachineParams

type ShutdownMachineParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The id of the Machine.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ShutdownMachineParams contains all the parameters to send to the API endpoint

for the shutdown machine operation.

Typically these are written to a http.Request.

func NewShutdownMachineParams

func NewShutdownMachineParams() *ShutdownMachineParams

NewShutdownMachineParams creates a new ShutdownMachineParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewShutdownMachineParamsWithContext

func NewShutdownMachineParamsWithContext(ctx context.Context) *ShutdownMachineParams

NewShutdownMachineParamsWithContext creates a new ShutdownMachineParams object with the ability to set a context for a request.

func NewShutdownMachineParamsWithHTTPClient

func NewShutdownMachineParamsWithHTTPClient(client *http.Client) *ShutdownMachineParams

NewShutdownMachineParamsWithHTTPClient creates a new ShutdownMachineParams object with the ability to set a custom HTTPClient for a request.

func NewShutdownMachineParamsWithTimeout

func NewShutdownMachineParamsWithTimeout(timeout time.Duration) *ShutdownMachineParams

NewShutdownMachineParamsWithTimeout creates a new ShutdownMachineParams object with the ability to set a timeout on a request.

func (*ShutdownMachineParams) SetAPIVersion

func (o *ShutdownMachineParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the shutdown machine params

func (*ShutdownMachineParams) SetContext

func (o *ShutdownMachineParams) SetContext(ctx context.Context)

SetContext adds the context to the shutdown machine params

func (*ShutdownMachineParams) SetDefaults added in v0.2.20

func (o *ShutdownMachineParams) SetDefaults()

SetDefaults hydrates default values in the shutdown machine params (not the query body).

All values with no default are reset to their zero value.

func (*ShutdownMachineParams) SetHTTPClient

func (o *ShutdownMachineParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the shutdown machine params

func (*ShutdownMachineParams) SetID

func (o *ShutdownMachineParams) SetID(id string)

SetID adds the id to the shutdown machine params

func (*ShutdownMachineParams) SetTimeout

func (o *ShutdownMachineParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the shutdown machine params

func (*ShutdownMachineParams) WithAPIVersion

func (o *ShutdownMachineParams) WithAPIVersion(aPIVersion *string) *ShutdownMachineParams

WithAPIVersion adds the aPIVersion to the shutdown machine params

func (*ShutdownMachineParams) WithContext

WithContext adds the context to the shutdown machine params

func (*ShutdownMachineParams) WithDefaults added in v0.2.20

func (o *ShutdownMachineParams) WithDefaults() *ShutdownMachineParams

WithDefaults hydrates default values in the shutdown machine params (not the query body).

All values with no default are reset to their zero value.

func (*ShutdownMachineParams) WithHTTPClient

func (o *ShutdownMachineParams) WithHTTPClient(client *http.Client) *ShutdownMachineParams

WithHTTPClient adds the HTTPClient to the shutdown machine params

func (*ShutdownMachineParams) WithID

WithID adds the id to the shutdown machine params

func (*ShutdownMachineParams) WithTimeout

func (o *ShutdownMachineParams) WithTimeout(timeout time.Duration) *ShutdownMachineParams

WithTimeout adds the timeout to the shutdown machine params

func (*ShutdownMachineParams) WriteToRequest

func (o *ShutdownMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ShutdownMachineReader

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

ShutdownMachineReader is a Reader for the ShutdownMachine structure.

func (*ShutdownMachineReader) ReadResponse

func (o *ShutdownMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SuspendMachineAccepted

type SuspendMachineAccepted struct {
	Payload *models.RequestTracker
}

SuspendMachineAccepted describes a response with status code 202, with default header values.

successful operation

func NewSuspendMachineAccepted

func NewSuspendMachineAccepted() *SuspendMachineAccepted

NewSuspendMachineAccepted creates a SuspendMachineAccepted with default headers values

func (*SuspendMachineAccepted) Error

func (o *SuspendMachineAccepted) Error() string

func (*SuspendMachineAccepted) GetPayload

func (o *SuspendMachineAccepted) GetPayload() *models.RequestTracker

func (*SuspendMachineAccepted) IsClientError added in v0.5.0

func (o *SuspendMachineAccepted) IsClientError() bool

IsClientError returns true when this suspend machine accepted response has a 4xx status code

func (*SuspendMachineAccepted) IsCode added in v0.5.0

func (o *SuspendMachineAccepted) IsCode(code int) bool

IsCode returns true when this suspend machine accepted response a status code equal to that given

func (*SuspendMachineAccepted) IsRedirect added in v0.5.0

func (o *SuspendMachineAccepted) IsRedirect() bool

IsRedirect returns true when this suspend machine accepted response has a 3xx status code

func (*SuspendMachineAccepted) IsServerError added in v0.5.0

func (o *SuspendMachineAccepted) IsServerError() bool

IsServerError returns true when this suspend machine accepted response has a 5xx status code

func (*SuspendMachineAccepted) IsSuccess added in v0.5.0

func (o *SuspendMachineAccepted) IsSuccess() bool

IsSuccess returns true when this suspend machine accepted response has a 2xx status code

func (*SuspendMachineAccepted) String added in v0.5.0

func (o *SuspendMachineAccepted) String() string

type SuspendMachineForbidden

type SuspendMachineForbidden struct {
	Payload *models.ServiceErrorResponse
}

SuspendMachineForbidden describes a response with status code 403, with default header values.

Forbidden

func NewSuspendMachineForbidden

func NewSuspendMachineForbidden() *SuspendMachineForbidden

NewSuspendMachineForbidden creates a SuspendMachineForbidden with default headers values

func (*SuspendMachineForbidden) Error

func (o *SuspendMachineForbidden) Error() string

func (*SuspendMachineForbidden) GetPayload added in v0.2.20

func (*SuspendMachineForbidden) IsClientError added in v0.5.0

func (o *SuspendMachineForbidden) IsClientError() bool

IsClientError returns true when this suspend machine forbidden response has a 4xx status code

func (*SuspendMachineForbidden) IsCode added in v0.5.0

func (o *SuspendMachineForbidden) IsCode(code int) bool

IsCode returns true when this suspend machine forbidden response a status code equal to that given

func (*SuspendMachineForbidden) IsRedirect added in v0.5.0

func (o *SuspendMachineForbidden) IsRedirect() bool

IsRedirect returns true when this suspend machine forbidden response has a 3xx status code

func (*SuspendMachineForbidden) IsServerError added in v0.5.0

func (o *SuspendMachineForbidden) IsServerError() bool

IsServerError returns true when this suspend machine forbidden response has a 5xx status code

func (*SuspendMachineForbidden) IsSuccess added in v0.5.0

func (o *SuspendMachineForbidden) IsSuccess() bool

IsSuccess returns true when this suspend machine forbidden response has a 2xx status code

func (*SuspendMachineForbidden) String added in v0.5.0

func (o *SuspendMachineForbidden) String() string

type SuspendMachineNotFound

type SuspendMachineNotFound struct {
	Payload *models.Error
}

SuspendMachineNotFound describes a response with status code 404, with default header values.

Not Found

func NewSuspendMachineNotFound

func NewSuspendMachineNotFound() *SuspendMachineNotFound

NewSuspendMachineNotFound creates a SuspendMachineNotFound with default headers values

func (*SuspendMachineNotFound) Error

func (o *SuspendMachineNotFound) Error() string

func (*SuspendMachineNotFound) GetPayload added in v0.2.9

func (o *SuspendMachineNotFound) GetPayload() *models.Error

func (*SuspendMachineNotFound) IsClientError added in v0.5.0

func (o *SuspendMachineNotFound) IsClientError() bool

IsClientError returns true when this suspend machine not found response has a 4xx status code

func (*SuspendMachineNotFound) IsCode added in v0.5.0

func (o *SuspendMachineNotFound) IsCode(code int) bool

IsCode returns true when this suspend machine not found response a status code equal to that given

func (*SuspendMachineNotFound) IsRedirect added in v0.5.0

func (o *SuspendMachineNotFound) IsRedirect() bool

IsRedirect returns true when this suspend machine not found response has a 3xx status code

func (*SuspendMachineNotFound) IsServerError added in v0.5.0

func (o *SuspendMachineNotFound) IsServerError() bool

IsServerError returns true when this suspend machine not found response has a 5xx status code

func (*SuspendMachineNotFound) IsSuccess added in v0.5.0

func (o *SuspendMachineNotFound) IsSuccess() bool

IsSuccess returns true when this suspend machine not found response has a 2xx status code

func (*SuspendMachineNotFound) String added in v0.5.0

func (o *SuspendMachineNotFound) String() string

type SuspendMachineParams

type SuspendMachineParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The id of the Machine.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SuspendMachineParams contains all the parameters to send to the API endpoint

for the suspend machine operation.

Typically these are written to a http.Request.

func NewSuspendMachineParams

func NewSuspendMachineParams() *SuspendMachineParams

NewSuspendMachineParams creates a new SuspendMachineParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSuspendMachineParamsWithContext

func NewSuspendMachineParamsWithContext(ctx context.Context) *SuspendMachineParams

NewSuspendMachineParamsWithContext creates a new SuspendMachineParams object with the ability to set a context for a request.

func NewSuspendMachineParamsWithHTTPClient

func NewSuspendMachineParamsWithHTTPClient(client *http.Client) *SuspendMachineParams

NewSuspendMachineParamsWithHTTPClient creates a new SuspendMachineParams object with the ability to set a custom HTTPClient for a request.

func NewSuspendMachineParamsWithTimeout

func NewSuspendMachineParamsWithTimeout(timeout time.Duration) *SuspendMachineParams

NewSuspendMachineParamsWithTimeout creates a new SuspendMachineParams object with the ability to set a timeout on a request.

func (*SuspendMachineParams) SetAPIVersion

func (o *SuspendMachineParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the suspend machine params

func (*SuspendMachineParams) SetContext

func (o *SuspendMachineParams) SetContext(ctx context.Context)

SetContext adds the context to the suspend machine params

func (*SuspendMachineParams) SetDefaults added in v0.2.20

func (o *SuspendMachineParams) SetDefaults()

SetDefaults hydrates default values in the suspend machine params (not the query body).

All values with no default are reset to their zero value.

func (*SuspendMachineParams) SetHTTPClient

func (o *SuspendMachineParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the suspend machine params

func (*SuspendMachineParams) SetID

func (o *SuspendMachineParams) SetID(id string)

SetID adds the id to the suspend machine params

func (*SuspendMachineParams) SetTimeout

func (o *SuspendMachineParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the suspend machine params

func (*SuspendMachineParams) WithAPIVersion

func (o *SuspendMachineParams) WithAPIVersion(aPIVersion *string) *SuspendMachineParams

WithAPIVersion adds the aPIVersion to the suspend machine params

func (*SuspendMachineParams) WithContext

WithContext adds the context to the suspend machine params

func (*SuspendMachineParams) WithDefaults added in v0.2.20

func (o *SuspendMachineParams) WithDefaults() *SuspendMachineParams

WithDefaults hydrates default values in the suspend machine params (not the query body).

All values with no default are reset to their zero value.

func (*SuspendMachineParams) WithHTTPClient

func (o *SuspendMachineParams) WithHTTPClient(client *http.Client) *SuspendMachineParams

WithHTTPClient adds the HTTPClient to the suspend machine params

func (*SuspendMachineParams) WithID

WithID adds the id to the suspend machine params

func (*SuspendMachineParams) WithTimeout

func (o *SuspendMachineParams) WithTimeout(timeout time.Duration) *SuspendMachineParams

WithTimeout adds the timeout to the suspend machine params

func (*SuspendMachineParams) WriteToRequest

func (o *SuspendMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SuspendMachineReader

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

SuspendMachineReader is a Reader for the SuspendMachine structure.

func (*SuspendMachineReader) ReadResponse

func (o *SuspendMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateMachineForbidden

type UpdateMachineForbidden struct {
	Payload *models.ServiceErrorResponse
}

UpdateMachineForbidden describes a response with status code 403, with default header values.

Forbidden

func NewUpdateMachineForbidden

func NewUpdateMachineForbidden() *UpdateMachineForbidden

NewUpdateMachineForbidden creates a UpdateMachineForbidden with default headers values

func (*UpdateMachineForbidden) Error

func (o *UpdateMachineForbidden) Error() string

func (*UpdateMachineForbidden) GetPayload added in v0.2.20

func (*UpdateMachineForbidden) IsClientError added in v0.5.0

func (o *UpdateMachineForbidden) IsClientError() bool

IsClientError returns true when this update machine forbidden response has a 4xx status code

func (*UpdateMachineForbidden) IsCode added in v0.5.0

func (o *UpdateMachineForbidden) IsCode(code int) bool

IsCode returns true when this update machine forbidden response a status code equal to that given

func (*UpdateMachineForbidden) IsRedirect added in v0.5.0

func (o *UpdateMachineForbidden) IsRedirect() bool

IsRedirect returns true when this update machine forbidden response has a 3xx status code

func (*UpdateMachineForbidden) IsServerError added in v0.5.0

func (o *UpdateMachineForbidden) IsServerError() bool

IsServerError returns true when this update machine forbidden response has a 5xx status code

func (*UpdateMachineForbidden) IsSuccess added in v0.5.0

func (o *UpdateMachineForbidden) IsSuccess() bool

IsSuccess returns true when this update machine forbidden response has a 2xx status code

func (*UpdateMachineForbidden) String added in v0.5.0

func (o *UpdateMachineForbidden) String() string

type UpdateMachineNotFound

type UpdateMachineNotFound struct {
	Payload *models.Error
}

UpdateMachineNotFound describes a response with status code 404, with default header values.

Not Found

func NewUpdateMachineNotFound

func NewUpdateMachineNotFound() *UpdateMachineNotFound

NewUpdateMachineNotFound creates a UpdateMachineNotFound with default headers values

func (*UpdateMachineNotFound) Error

func (o *UpdateMachineNotFound) Error() string

func (*UpdateMachineNotFound) GetPayload added in v0.2.9

func (o *UpdateMachineNotFound) GetPayload() *models.Error

func (*UpdateMachineNotFound) IsClientError added in v0.5.0

func (o *UpdateMachineNotFound) IsClientError() bool

IsClientError returns true when this update machine not found response has a 4xx status code

func (*UpdateMachineNotFound) IsCode added in v0.5.0

func (o *UpdateMachineNotFound) IsCode(code int) bool

IsCode returns true when this update machine not found response a status code equal to that given

func (*UpdateMachineNotFound) IsRedirect added in v0.5.0

func (o *UpdateMachineNotFound) IsRedirect() bool

IsRedirect returns true when this update machine not found response has a 3xx status code

func (*UpdateMachineNotFound) IsServerError added in v0.5.0

func (o *UpdateMachineNotFound) IsServerError() bool

IsServerError returns true when this update machine not found response has a 5xx status code

func (*UpdateMachineNotFound) IsSuccess added in v0.5.0

func (o *UpdateMachineNotFound) IsSuccess() bool

IsSuccess returns true when this update machine not found response has a 2xx status code

func (*UpdateMachineNotFound) String added in v0.5.0

func (o *UpdateMachineNotFound) String() string

type UpdateMachineOK

type UpdateMachineOK struct {
	Payload *models.Machine
}

UpdateMachineOK describes a response with status code 200, with default header values.

successful operation

func NewUpdateMachineOK

func NewUpdateMachineOK() *UpdateMachineOK

NewUpdateMachineOK creates a UpdateMachineOK with default headers values

func (*UpdateMachineOK) Error

func (o *UpdateMachineOK) Error() string

func (*UpdateMachineOK) GetPayload

func (o *UpdateMachineOK) GetPayload() *models.Machine

func (*UpdateMachineOK) IsClientError added in v0.5.0

func (o *UpdateMachineOK) IsClientError() bool

IsClientError returns true when this update machine o k response has a 4xx status code

func (*UpdateMachineOK) IsCode added in v0.5.0

func (o *UpdateMachineOK) IsCode(code int) bool

IsCode returns true when this update machine o k response a status code equal to that given

func (*UpdateMachineOK) IsRedirect added in v0.5.0

func (o *UpdateMachineOK) IsRedirect() bool

IsRedirect returns true when this update machine o k response has a 3xx status code

func (*UpdateMachineOK) IsServerError added in v0.5.0

func (o *UpdateMachineOK) IsServerError() bool

IsServerError returns true when this update machine o k response has a 5xx status code

func (*UpdateMachineOK) IsSuccess added in v0.5.0

func (o *UpdateMachineOK) IsSuccess() bool

IsSuccess returns true when this update machine o k response has a 2xx status code

func (*UpdateMachineOK) String added in v0.5.0

func (o *UpdateMachineOK) String() string

type UpdateMachineParams

type UpdateMachineParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* Body.

	   Machine Specification
	*/
	Body *models.UpdateMachineSpecification

	/* ID.

	   The ID of the Machine.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateMachineParams contains all the parameters to send to the API endpoint

for the update machine operation.

Typically these are written to a http.Request.

func NewUpdateMachineParams

func NewUpdateMachineParams() *UpdateMachineParams

NewUpdateMachineParams creates a new UpdateMachineParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateMachineParamsWithContext

func NewUpdateMachineParamsWithContext(ctx context.Context) *UpdateMachineParams

NewUpdateMachineParamsWithContext creates a new UpdateMachineParams object with the ability to set a context for a request.

func NewUpdateMachineParamsWithHTTPClient

func NewUpdateMachineParamsWithHTTPClient(client *http.Client) *UpdateMachineParams

NewUpdateMachineParamsWithHTTPClient creates a new UpdateMachineParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateMachineParamsWithTimeout

func NewUpdateMachineParamsWithTimeout(timeout time.Duration) *UpdateMachineParams

NewUpdateMachineParamsWithTimeout creates a new UpdateMachineParams object with the ability to set a timeout on a request.

func (*UpdateMachineParams) SetAPIVersion

func (o *UpdateMachineParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the update machine params

func (*UpdateMachineParams) SetBody

SetBody adds the body to the update machine params

func (*UpdateMachineParams) SetContext

func (o *UpdateMachineParams) SetContext(ctx context.Context)

SetContext adds the context to the update machine params

func (*UpdateMachineParams) SetDefaults added in v0.2.20

func (o *UpdateMachineParams) SetDefaults()

SetDefaults hydrates default values in the update machine params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateMachineParams) SetHTTPClient

func (o *UpdateMachineParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update machine params

func (*UpdateMachineParams) SetID

func (o *UpdateMachineParams) SetID(id string)

SetID adds the id to the update machine params

func (*UpdateMachineParams) SetTimeout

func (o *UpdateMachineParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update machine params

func (*UpdateMachineParams) WithAPIVersion

func (o *UpdateMachineParams) WithAPIVersion(aPIVersion *string) *UpdateMachineParams

WithAPIVersion adds the aPIVersion to the update machine params

func (*UpdateMachineParams) WithBody

WithBody adds the body to the update machine params

func (*UpdateMachineParams) WithContext

WithContext adds the context to the update machine params

func (*UpdateMachineParams) WithDefaults added in v0.2.20

func (o *UpdateMachineParams) WithDefaults() *UpdateMachineParams

WithDefaults hydrates default values in the update machine params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateMachineParams) WithHTTPClient

func (o *UpdateMachineParams) WithHTTPClient(client *http.Client) *UpdateMachineParams

WithHTTPClient adds the HTTPClient to the update machine params

func (*UpdateMachineParams) WithID

WithID adds the id to the update machine params

func (*UpdateMachineParams) WithTimeout

func (o *UpdateMachineParams) WithTimeout(timeout time.Duration) *UpdateMachineParams

WithTimeout adds the timeout to the update machine params

func (*UpdateMachineParams) WriteToRequest

func (o *UpdateMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateMachineReader

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

UpdateMachineReader is a Reader for the UpdateMachine structure.

func (*UpdateMachineReader) ReadResponse

func (o *UpdateMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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