compute

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 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

func (a *Client) DeleteMachineSnapshot(params *DeleteMachineSnapshotParams, opts ...ClientOption) (*DeleteMachineSnapshotAccepted, error)

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 and custom property updates are supported. 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, 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type GetMachineSnapshotOK added in v0.2.8

type GetMachineSnapshotOK struct {
	Payload *models.BlockDevice
}
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.BlockDevice

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

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

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

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

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

type GetMachinesParams

type GetMachinesParams struct {

	/* DollarCount.

	   Flag which when specified 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

	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 (*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 (*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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 Hot Add option 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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