Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateMachine(params *CreateMachineParams, opts ...ClientOption) (*CreateMachineAccepted, error)
- func (a *Client) CreateMachineSnapshot(params *CreateMachineSnapshotParams, opts ...ClientOption) (*CreateMachineSnapshotAccepted, error)
- func (a *Client) DeleteMachine(params *DeleteMachineParams, opts ...ClientOption) (*DeleteMachineAccepted, error)
- func (a *Client) DeleteMachineSnapshot(params *DeleteMachineSnapshotParams, opts ...ClientOption) (*DeleteMachineSnapshotAccepted, error)
- func (a *Client) GetMachine(params *GetMachineParams, opts ...ClientOption) (*GetMachineOK, error)
- func (a *Client) GetMachineSnapshot(params *GetMachineSnapshotParams, opts ...ClientOption) (*GetMachineSnapshotOK, error)
- func (a *Client) GetMachineSnapshots(params *GetMachineSnapshotsParams, opts ...ClientOption) (*GetMachineSnapshotsOK, error)
- func (a *Client) GetMachines(params *GetMachinesParams, opts ...ClientOption) (*GetMachinesOK, error)
- func (a *Client) PowerOffMachine(params *PowerOffMachineParams, opts ...ClientOption) (*PowerOffMachineAccepted, error)
- func (a *Client) PowerOnMachine(params *PowerOnMachineParams, opts ...ClientOption) (*PowerOnMachineAccepted, error)
- func (a *Client) RebootMachine(params *RebootMachineParams, opts ...ClientOption) (*RebootMachineAccepted, error)
- func (a *Client) ResetMachine(params *ResetMachineParams, opts ...ClientOption) (*ResetMachineAccepted, error)
- func (a *Client) ResizeMachine(params *ResizeMachineParams, opts ...ClientOption) (*ResizeMachineAccepted, error)
- func (a *Client) RestartMachine(params *RestartMachineParams, opts ...ClientOption) (*RestartMachineAccepted, error)
- func (a *Client) RevertMachineSnapshot(params *RevertMachineSnapshotParams, opts ...ClientOption) (*RevertMachineSnapshotAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) ShutdownMachine(params *ShutdownMachineParams, opts ...ClientOption) (*ShutdownMachineAccepted, error)
- func (a *Client) SuspendMachine(params *SuspendMachineParams, opts ...ClientOption) (*SuspendMachineAccepted, error)
- func (a *Client) UpdateMachine(params *UpdateMachineParams, opts ...ClientOption) (*UpdateMachineOK, error)
- type ClientOption
- type ClientService
- type CreateMachineAccepted
- type CreateMachineBadRequest
- type CreateMachineForbidden
- type CreateMachineParams
- func (o *CreateMachineParams) SetAPIVersion(aPIVersion *string)
- func (o *CreateMachineParams) SetBody(body *models.MachineSpecification)
- func (o *CreateMachineParams) SetContext(ctx context.Context)
- func (o *CreateMachineParams) SetDefaults()
- func (o *CreateMachineParams) SetHTTPClient(client *http.Client)
- func (o *CreateMachineParams) SetTimeout(timeout time.Duration)
- func (o *CreateMachineParams) WithAPIVersion(aPIVersion *string) *CreateMachineParams
- func (o *CreateMachineParams) WithBody(body *models.MachineSpecification) *CreateMachineParams
- func (o *CreateMachineParams) WithContext(ctx context.Context) *CreateMachineParams
- func (o *CreateMachineParams) WithDefaults() *CreateMachineParams
- func (o *CreateMachineParams) WithHTTPClient(client *http.Client) *CreateMachineParams
- func (o *CreateMachineParams) WithTimeout(timeout time.Duration) *CreateMachineParams
- func (o *CreateMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateMachineReader
- type CreateMachineSnapshotAccepted
- type CreateMachineSnapshotForbidden
- type CreateMachineSnapshotNotFound
- type CreateMachineSnapshotParams
- func NewCreateMachineSnapshotParams() *CreateMachineSnapshotParams
- func NewCreateMachineSnapshotParamsWithContext(ctx context.Context) *CreateMachineSnapshotParams
- func NewCreateMachineSnapshotParamsWithHTTPClient(client *http.Client) *CreateMachineSnapshotParams
- func NewCreateMachineSnapshotParamsWithTimeout(timeout time.Duration) *CreateMachineSnapshotParams
- func (o *CreateMachineSnapshotParams) SetAPIVersion(aPIVersion *string)
- func (o *CreateMachineSnapshotParams) SetBody(body *models.SnapshotSpecification)
- func (o *CreateMachineSnapshotParams) SetContext(ctx context.Context)
- func (o *CreateMachineSnapshotParams) SetDefaults()
- func (o *CreateMachineSnapshotParams) SetHTTPClient(client *http.Client)
- func (o *CreateMachineSnapshotParams) SetID(id string)
- func (o *CreateMachineSnapshotParams) SetTimeout(timeout time.Duration)
- func (o *CreateMachineSnapshotParams) WithAPIVersion(aPIVersion *string) *CreateMachineSnapshotParams
- func (o *CreateMachineSnapshotParams) WithBody(body *models.SnapshotSpecification) *CreateMachineSnapshotParams
- func (o *CreateMachineSnapshotParams) WithContext(ctx context.Context) *CreateMachineSnapshotParams
- func (o *CreateMachineSnapshotParams) WithDefaults() *CreateMachineSnapshotParams
- func (o *CreateMachineSnapshotParams) WithHTTPClient(client *http.Client) *CreateMachineSnapshotParams
- func (o *CreateMachineSnapshotParams) WithID(id string) *CreateMachineSnapshotParams
- func (o *CreateMachineSnapshotParams) WithTimeout(timeout time.Duration) *CreateMachineSnapshotParams
- func (o *CreateMachineSnapshotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateMachineSnapshotReader
- type DeleteMachineAccepted
- type DeleteMachineForbidden
- type DeleteMachineParams
- func (o *DeleteMachineParams) SetAPIVersion(aPIVersion *string)
- func (o *DeleteMachineParams) SetContext(ctx context.Context)
- func (o *DeleteMachineParams) SetDefaults()
- func (o *DeleteMachineParams) SetForceDelete(forceDelete *bool)
- func (o *DeleteMachineParams) SetHTTPClient(client *http.Client)
- func (o *DeleteMachineParams) SetID(id string)
- func (o *DeleteMachineParams) SetTimeout(timeout time.Duration)
- func (o *DeleteMachineParams) WithAPIVersion(aPIVersion *string) *DeleteMachineParams
- func (o *DeleteMachineParams) WithContext(ctx context.Context) *DeleteMachineParams
- func (o *DeleteMachineParams) WithDefaults() *DeleteMachineParams
- func (o *DeleteMachineParams) WithForceDelete(forceDelete *bool) *DeleteMachineParams
- func (o *DeleteMachineParams) WithHTTPClient(client *http.Client) *DeleteMachineParams
- func (o *DeleteMachineParams) WithID(id string) *DeleteMachineParams
- func (o *DeleteMachineParams) WithTimeout(timeout time.Duration) *DeleteMachineParams
- func (o *DeleteMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteMachineReader
- type DeleteMachineSnapshotAccepted
- type DeleteMachineSnapshotForbidden
- type DeleteMachineSnapshotParams
- func NewDeleteMachineSnapshotParams() *DeleteMachineSnapshotParams
- func NewDeleteMachineSnapshotParamsWithContext(ctx context.Context) *DeleteMachineSnapshotParams
- func NewDeleteMachineSnapshotParamsWithHTTPClient(client *http.Client) *DeleteMachineSnapshotParams
- func NewDeleteMachineSnapshotParamsWithTimeout(timeout time.Duration) *DeleteMachineSnapshotParams
- func (o *DeleteMachineSnapshotParams) SetAPIVersion(aPIVersion *string)
- func (o *DeleteMachineSnapshotParams) SetContext(ctx context.Context)
- func (o *DeleteMachineSnapshotParams) SetDefaults()
- func (o *DeleteMachineSnapshotParams) SetHTTPClient(client *http.Client)
- func (o *DeleteMachineSnapshotParams) SetID(id string)
- func (o *DeleteMachineSnapshotParams) SetSnapshotID(snapshotID string)
- func (o *DeleteMachineSnapshotParams) SetTimeout(timeout time.Duration)
- func (o *DeleteMachineSnapshotParams) WithAPIVersion(aPIVersion *string) *DeleteMachineSnapshotParams
- func (o *DeleteMachineSnapshotParams) WithContext(ctx context.Context) *DeleteMachineSnapshotParams
- func (o *DeleteMachineSnapshotParams) WithDefaults() *DeleteMachineSnapshotParams
- func (o *DeleteMachineSnapshotParams) WithHTTPClient(client *http.Client) *DeleteMachineSnapshotParams
- func (o *DeleteMachineSnapshotParams) WithID(id string) *DeleteMachineSnapshotParams
- func (o *DeleteMachineSnapshotParams) WithSnapshotID(snapshotID string) *DeleteMachineSnapshotParams
- func (o *DeleteMachineSnapshotParams) WithTimeout(timeout time.Duration) *DeleteMachineSnapshotParams
- func (o *DeleteMachineSnapshotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteMachineSnapshotReader
- type GetMachineForbidden
- type GetMachineNotFound
- type GetMachineOK
- type GetMachineParams
- func (o *GetMachineParams) SetAPIVersion(aPIVersion *string)
- func (o *GetMachineParams) SetContext(ctx context.Context)
- func (o *GetMachineParams) SetDefaults()
- func (o *GetMachineParams) SetDollarSelect(dollarSelect *string)
- func (o *GetMachineParams) SetHTTPClient(client *http.Client)
- func (o *GetMachineParams) SetID(id string)
- func (o *GetMachineParams) SetTimeout(timeout time.Duration)
- func (o *GetMachineParams) WithAPIVersion(aPIVersion *string) *GetMachineParams
- func (o *GetMachineParams) WithContext(ctx context.Context) *GetMachineParams
- func (o *GetMachineParams) WithDefaults() *GetMachineParams
- func (o *GetMachineParams) WithDollarSelect(dollarSelect *string) *GetMachineParams
- func (o *GetMachineParams) WithHTTPClient(client *http.Client) *GetMachineParams
- func (o *GetMachineParams) WithID(id string) *GetMachineParams
- func (o *GetMachineParams) WithTimeout(timeout time.Duration) *GetMachineParams
- func (o *GetMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMachineReader
- type GetMachineSnapshotForbidden
- type GetMachineSnapshotNotFound
- type GetMachineSnapshotOK
- type GetMachineSnapshotParams
- func NewGetMachineSnapshotParams() *GetMachineSnapshotParams
- func NewGetMachineSnapshotParamsWithContext(ctx context.Context) *GetMachineSnapshotParams
- func NewGetMachineSnapshotParamsWithHTTPClient(client *http.Client) *GetMachineSnapshotParams
- func NewGetMachineSnapshotParamsWithTimeout(timeout time.Duration) *GetMachineSnapshotParams
- func (o *GetMachineSnapshotParams) SetAPIVersion(aPIVersion *string)
- func (o *GetMachineSnapshotParams) SetContext(ctx context.Context)
- func (o *GetMachineSnapshotParams) SetDefaults()
- func (o *GetMachineSnapshotParams) SetHTTPClient(client *http.Client)
- func (o *GetMachineSnapshotParams) SetID(id string)
- func (o *GetMachineSnapshotParams) SetSnapshotID(snapshotID string)
- func (o *GetMachineSnapshotParams) SetTimeout(timeout time.Duration)
- func (o *GetMachineSnapshotParams) WithAPIVersion(aPIVersion *string) *GetMachineSnapshotParams
- func (o *GetMachineSnapshotParams) WithContext(ctx context.Context) *GetMachineSnapshotParams
- func (o *GetMachineSnapshotParams) WithDefaults() *GetMachineSnapshotParams
- func (o *GetMachineSnapshotParams) WithHTTPClient(client *http.Client) *GetMachineSnapshotParams
- func (o *GetMachineSnapshotParams) WithID(id string) *GetMachineSnapshotParams
- func (o *GetMachineSnapshotParams) WithSnapshotID(snapshotID string) *GetMachineSnapshotParams
- func (o *GetMachineSnapshotParams) WithTimeout(timeout time.Duration) *GetMachineSnapshotParams
- func (o *GetMachineSnapshotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMachineSnapshotReader
- type GetMachineSnapshotsForbidden
- type GetMachineSnapshotsNotFound
- type GetMachineSnapshotsOK
- type GetMachineSnapshotsParams
- func NewGetMachineSnapshotsParams() *GetMachineSnapshotsParams
- func NewGetMachineSnapshotsParamsWithContext(ctx context.Context) *GetMachineSnapshotsParams
- func NewGetMachineSnapshotsParamsWithHTTPClient(client *http.Client) *GetMachineSnapshotsParams
- func NewGetMachineSnapshotsParamsWithTimeout(timeout time.Duration) *GetMachineSnapshotsParams
- func (o *GetMachineSnapshotsParams) SetAPIVersion(aPIVersion *string)
- func (o *GetMachineSnapshotsParams) SetContext(ctx context.Context)
- func (o *GetMachineSnapshotsParams) SetDefaults()
- func (o *GetMachineSnapshotsParams) SetHTTPClient(client *http.Client)
- func (o *GetMachineSnapshotsParams) SetID(id string)
- func (o *GetMachineSnapshotsParams) SetTimeout(timeout time.Duration)
- func (o *GetMachineSnapshotsParams) WithAPIVersion(aPIVersion *string) *GetMachineSnapshotsParams
- func (o *GetMachineSnapshotsParams) WithContext(ctx context.Context) *GetMachineSnapshotsParams
- func (o *GetMachineSnapshotsParams) WithDefaults() *GetMachineSnapshotsParams
- func (o *GetMachineSnapshotsParams) WithHTTPClient(client *http.Client) *GetMachineSnapshotsParams
- func (o *GetMachineSnapshotsParams) WithID(id string) *GetMachineSnapshotsParams
- func (o *GetMachineSnapshotsParams) WithTimeout(timeout time.Duration) *GetMachineSnapshotsParams
- func (o *GetMachineSnapshotsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMachineSnapshotsReader
- type GetMachinesForbidden
- type GetMachinesOK
- type GetMachinesParams
- func (o *GetMachinesParams) SetAPIVersion(aPIVersion *string)
- func (o *GetMachinesParams) SetContext(ctx context.Context)
- func (o *GetMachinesParams) SetDefaults()
- func (o *GetMachinesParams) SetDollarCount(dollarCount *bool)
- func (o *GetMachinesParams) SetDollarFilter(dollarFilter *string)
- func (o *GetMachinesParams) SetDollarSelect(dollarSelect *string)
- func (o *GetMachinesParams) SetDollarSkip(dollarSkip *int64)
- func (o *GetMachinesParams) SetDollarTop(dollarTop *int64)
- func (o *GetMachinesParams) SetHTTPClient(client *http.Client)
- func (o *GetMachinesParams) SetTimeout(timeout time.Duration)
- func (o *GetMachinesParams) WithAPIVersion(aPIVersion *string) *GetMachinesParams
- func (o *GetMachinesParams) WithContext(ctx context.Context) *GetMachinesParams
- func (o *GetMachinesParams) WithDefaults() *GetMachinesParams
- func (o *GetMachinesParams) WithDollarCount(dollarCount *bool) *GetMachinesParams
- func (o *GetMachinesParams) WithDollarFilter(dollarFilter *string) *GetMachinesParams
- func (o *GetMachinesParams) WithDollarSelect(dollarSelect *string) *GetMachinesParams
- func (o *GetMachinesParams) WithDollarSkip(dollarSkip *int64) *GetMachinesParams
- func (o *GetMachinesParams) WithDollarTop(dollarTop *int64) *GetMachinesParams
- func (o *GetMachinesParams) WithHTTPClient(client *http.Client) *GetMachinesParams
- func (o *GetMachinesParams) WithTimeout(timeout time.Duration) *GetMachinesParams
- func (o *GetMachinesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMachinesReader
- type PowerOffMachineAccepted
- type PowerOffMachineForbidden
- type PowerOffMachineNotFound
- type PowerOffMachineParams
- func NewPowerOffMachineParams() *PowerOffMachineParams
- func NewPowerOffMachineParamsWithContext(ctx context.Context) *PowerOffMachineParams
- func NewPowerOffMachineParamsWithHTTPClient(client *http.Client) *PowerOffMachineParams
- func NewPowerOffMachineParamsWithTimeout(timeout time.Duration) *PowerOffMachineParams
- func (o *PowerOffMachineParams) SetAPIVersion(aPIVersion *string)
- func (o *PowerOffMachineParams) SetContext(ctx context.Context)
- func (o *PowerOffMachineParams) SetDefaults()
- func (o *PowerOffMachineParams) SetHTTPClient(client *http.Client)
- func (o *PowerOffMachineParams) SetID(id string)
- func (o *PowerOffMachineParams) SetTimeout(timeout time.Duration)
- func (o *PowerOffMachineParams) WithAPIVersion(aPIVersion *string) *PowerOffMachineParams
- func (o *PowerOffMachineParams) WithContext(ctx context.Context) *PowerOffMachineParams
- func (o *PowerOffMachineParams) WithDefaults() *PowerOffMachineParams
- func (o *PowerOffMachineParams) WithHTTPClient(client *http.Client) *PowerOffMachineParams
- func (o *PowerOffMachineParams) WithID(id string) *PowerOffMachineParams
- func (o *PowerOffMachineParams) WithTimeout(timeout time.Duration) *PowerOffMachineParams
- func (o *PowerOffMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PowerOffMachineReader
- type PowerOnMachineAccepted
- type PowerOnMachineForbidden
- type PowerOnMachineNotFound
- type PowerOnMachineParams
- func NewPowerOnMachineParams() *PowerOnMachineParams
- func NewPowerOnMachineParamsWithContext(ctx context.Context) *PowerOnMachineParams
- func NewPowerOnMachineParamsWithHTTPClient(client *http.Client) *PowerOnMachineParams
- func NewPowerOnMachineParamsWithTimeout(timeout time.Duration) *PowerOnMachineParams
- func (o *PowerOnMachineParams) SetAPIVersion(aPIVersion *string)
- func (o *PowerOnMachineParams) SetContext(ctx context.Context)
- func (o *PowerOnMachineParams) SetDefaults()
- func (o *PowerOnMachineParams) SetHTTPClient(client *http.Client)
- func (o *PowerOnMachineParams) SetID(id string)
- func (o *PowerOnMachineParams) SetTimeout(timeout time.Duration)
- func (o *PowerOnMachineParams) WithAPIVersion(aPIVersion *string) *PowerOnMachineParams
- func (o *PowerOnMachineParams) WithContext(ctx context.Context) *PowerOnMachineParams
- func (o *PowerOnMachineParams) WithDefaults() *PowerOnMachineParams
- func (o *PowerOnMachineParams) WithHTTPClient(client *http.Client) *PowerOnMachineParams
- func (o *PowerOnMachineParams) WithID(id string) *PowerOnMachineParams
- func (o *PowerOnMachineParams) WithTimeout(timeout time.Duration) *PowerOnMachineParams
- func (o *PowerOnMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PowerOnMachineReader
- type RebootMachineAccepted
- type RebootMachineForbidden
- type RebootMachineNotFound
- type RebootMachineParams
- func (o *RebootMachineParams) SetAPIVersion(aPIVersion *string)
- func (o *RebootMachineParams) SetContext(ctx context.Context)
- func (o *RebootMachineParams) SetDefaults()
- func (o *RebootMachineParams) SetHTTPClient(client *http.Client)
- func (o *RebootMachineParams) SetID(id string)
- func (o *RebootMachineParams) SetTimeout(timeout time.Duration)
- func (o *RebootMachineParams) WithAPIVersion(aPIVersion *string) *RebootMachineParams
- func (o *RebootMachineParams) WithContext(ctx context.Context) *RebootMachineParams
- func (o *RebootMachineParams) WithDefaults() *RebootMachineParams
- func (o *RebootMachineParams) WithHTTPClient(client *http.Client) *RebootMachineParams
- func (o *RebootMachineParams) WithID(id string) *RebootMachineParams
- func (o *RebootMachineParams) WithTimeout(timeout time.Duration) *RebootMachineParams
- func (o *RebootMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RebootMachineReader
- type ResetMachineAccepted
- type ResetMachineForbidden
- type ResetMachineNotFound
- type ResetMachineParams
- func (o *ResetMachineParams) SetAPIVersion(aPIVersion *string)
- func (o *ResetMachineParams) SetContext(ctx context.Context)
- func (o *ResetMachineParams) SetDefaults()
- func (o *ResetMachineParams) SetHTTPClient(client *http.Client)
- func (o *ResetMachineParams) SetID(id string)
- func (o *ResetMachineParams) SetTimeout(timeout time.Duration)
- func (o *ResetMachineParams) WithAPIVersion(aPIVersion *string) *ResetMachineParams
- func (o *ResetMachineParams) WithContext(ctx context.Context) *ResetMachineParams
- func (o *ResetMachineParams) WithDefaults() *ResetMachineParams
- func (o *ResetMachineParams) WithHTTPClient(client *http.Client) *ResetMachineParams
- func (o *ResetMachineParams) WithID(id string) *ResetMachineParams
- func (o *ResetMachineParams) WithTimeout(timeout time.Duration) *ResetMachineParams
- func (o *ResetMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ResetMachineReader
- type ResizeMachineAccepted
- type ResizeMachineForbidden
- type ResizeMachineNotFound
- type ResizeMachineParams
- func (o *ResizeMachineParams) SetAPIVersion(aPIVersion *string)
- func (o *ResizeMachineParams) SetCPUCount(cPUCount *string)
- func (o *ResizeMachineParams) SetContext(ctx context.Context)
- func (o *ResizeMachineParams) SetCoreCount(coreCount *string)
- func (o *ResizeMachineParams) SetDefaults()
- func (o *ResizeMachineParams) SetHTTPClient(client *http.Client)
- func (o *ResizeMachineParams) SetID(id string)
- func (o *ResizeMachineParams) SetMemoryInMB(memoryInMB *string)
- func (o *ResizeMachineParams) SetName(name *string)
- func (o *ResizeMachineParams) SetRebootMachine(rebootMachine *bool)
- func (o *ResizeMachineParams) SetTimeout(timeout time.Duration)
- func (o *ResizeMachineParams) WithAPIVersion(aPIVersion *string) *ResizeMachineParams
- func (o *ResizeMachineParams) WithCPUCount(cPUCount *string) *ResizeMachineParams
- func (o *ResizeMachineParams) WithContext(ctx context.Context) *ResizeMachineParams
- func (o *ResizeMachineParams) WithCoreCount(coreCount *string) *ResizeMachineParams
- func (o *ResizeMachineParams) WithDefaults() *ResizeMachineParams
- func (o *ResizeMachineParams) WithHTTPClient(client *http.Client) *ResizeMachineParams
- func (o *ResizeMachineParams) WithID(id string) *ResizeMachineParams
- func (o *ResizeMachineParams) WithMemoryInMB(memoryInMB *string) *ResizeMachineParams
- func (o *ResizeMachineParams) WithName(name *string) *ResizeMachineParams
- func (o *ResizeMachineParams) WithRebootMachine(rebootMachine *bool) *ResizeMachineParams
- func (o *ResizeMachineParams) WithTimeout(timeout time.Duration) *ResizeMachineParams
- func (o *ResizeMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ResizeMachineReader
- type RestartMachineAccepted
- type RestartMachineForbidden
- type RestartMachineNotFound
- type RestartMachineParams
- func NewRestartMachineParams() *RestartMachineParams
- func NewRestartMachineParamsWithContext(ctx context.Context) *RestartMachineParams
- func NewRestartMachineParamsWithHTTPClient(client *http.Client) *RestartMachineParams
- func NewRestartMachineParamsWithTimeout(timeout time.Duration) *RestartMachineParams
- func (o *RestartMachineParams) SetAPIVersion(aPIVersion *string)
- func (o *RestartMachineParams) SetContext(ctx context.Context)
- func (o *RestartMachineParams) SetDefaults()
- func (o *RestartMachineParams) SetHTTPClient(client *http.Client)
- func (o *RestartMachineParams) SetID(id string)
- func (o *RestartMachineParams) SetTimeout(timeout time.Duration)
- func (o *RestartMachineParams) WithAPIVersion(aPIVersion *string) *RestartMachineParams
- func (o *RestartMachineParams) WithContext(ctx context.Context) *RestartMachineParams
- func (o *RestartMachineParams) WithDefaults() *RestartMachineParams
- func (o *RestartMachineParams) WithHTTPClient(client *http.Client) *RestartMachineParams
- func (o *RestartMachineParams) WithID(id string) *RestartMachineParams
- func (o *RestartMachineParams) WithTimeout(timeout time.Duration) *RestartMachineParams
- func (o *RestartMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RestartMachineReader
- type RevertMachineSnapshotAccepted
- type RevertMachineSnapshotForbidden
- type RevertMachineSnapshotNotFound
- type RevertMachineSnapshotParams
- func NewRevertMachineSnapshotParams() *RevertMachineSnapshotParams
- func NewRevertMachineSnapshotParamsWithContext(ctx context.Context) *RevertMachineSnapshotParams
- func NewRevertMachineSnapshotParamsWithHTTPClient(client *http.Client) *RevertMachineSnapshotParams
- func NewRevertMachineSnapshotParamsWithTimeout(timeout time.Duration) *RevertMachineSnapshotParams
- func (o *RevertMachineSnapshotParams) SetAPIVersion(aPIVersion *string)
- func (o *RevertMachineSnapshotParams) SetContext(ctx context.Context)
- func (o *RevertMachineSnapshotParams) SetDefaults()
- func (o *RevertMachineSnapshotParams) SetHTTPClient(client *http.Client)
- func (o *RevertMachineSnapshotParams) SetID(id string)
- func (o *RevertMachineSnapshotParams) SetSnapshotID(snapshotID string)
- func (o *RevertMachineSnapshotParams) SetTimeout(timeout time.Duration)
- func (o *RevertMachineSnapshotParams) WithAPIVersion(aPIVersion *string) *RevertMachineSnapshotParams
- func (o *RevertMachineSnapshotParams) WithContext(ctx context.Context) *RevertMachineSnapshotParams
- func (o *RevertMachineSnapshotParams) WithDefaults() *RevertMachineSnapshotParams
- func (o *RevertMachineSnapshotParams) WithHTTPClient(client *http.Client) *RevertMachineSnapshotParams
- func (o *RevertMachineSnapshotParams) WithID(id string) *RevertMachineSnapshotParams
- func (o *RevertMachineSnapshotParams) WithSnapshotID(snapshotID string) *RevertMachineSnapshotParams
- func (o *RevertMachineSnapshotParams) WithTimeout(timeout time.Duration) *RevertMachineSnapshotParams
- func (o *RevertMachineSnapshotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RevertMachineSnapshotReader
- type ShutdownMachineAccepted
- type ShutdownMachineForbidden
- type ShutdownMachineNotFound
- type ShutdownMachineParams
- func NewShutdownMachineParams() *ShutdownMachineParams
- func NewShutdownMachineParamsWithContext(ctx context.Context) *ShutdownMachineParams
- func NewShutdownMachineParamsWithHTTPClient(client *http.Client) *ShutdownMachineParams
- func NewShutdownMachineParamsWithTimeout(timeout time.Duration) *ShutdownMachineParams
- func (o *ShutdownMachineParams) SetAPIVersion(aPIVersion *string)
- func (o *ShutdownMachineParams) SetContext(ctx context.Context)
- func (o *ShutdownMachineParams) SetDefaults()
- func (o *ShutdownMachineParams) SetHTTPClient(client *http.Client)
- func (o *ShutdownMachineParams) SetID(id string)
- func (o *ShutdownMachineParams) SetTimeout(timeout time.Duration)
- func (o *ShutdownMachineParams) WithAPIVersion(aPIVersion *string) *ShutdownMachineParams
- func (o *ShutdownMachineParams) WithContext(ctx context.Context) *ShutdownMachineParams
- func (o *ShutdownMachineParams) WithDefaults() *ShutdownMachineParams
- func (o *ShutdownMachineParams) WithHTTPClient(client *http.Client) *ShutdownMachineParams
- func (o *ShutdownMachineParams) WithID(id string) *ShutdownMachineParams
- func (o *ShutdownMachineParams) WithTimeout(timeout time.Duration) *ShutdownMachineParams
- func (o *ShutdownMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ShutdownMachineReader
- type SuspendMachineAccepted
- type SuspendMachineForbidden
- type SuspendMachineNotFound
- type SuspendMachineParams
- func NewSuspendMachineParams() *SuspendMachineParams
- func NewSuspendMachineParamsWithContext(ctx context.Context) *SuspendMachineParams
- func NewSuspendMachineParamsWithHTTPClient(client *http.Client) *SuspendMachineParams
- func NewSuspendMachineParamsWithTimeout(timeout time.Duration) *SuspendMachineParams
- func (o *SuspendMachineParams) SetAPIVersion(aPIVersion *string)
- func (o *SuspendMachineParams) SetContext(ctx context.Context)
- func (o *SuspendMachineParams) SetDefaults()
- func (o *SuspendMachineParams) SetHTTPClient(client *http.Client)
- func (o *SuspendMachineParams) SetID(id string)
- func (o *SuspendMachineParams) SetTimeout(timeout time.Duration)
- func (o *SuspendMachineParams) WithAPIVersion(aPIVersion *string) *SuspendMachineParams
- func (o *SuspendMachineParams) WithContext(ctx context.Context) *SuspendMachineParams
- func (o *SuspendMachineParams) WithDefaults() *SuspendMachineParams
- func (o *SuspendMachineParams) WithHTTPClient(client *http.Client) *SuspendMachineParams
- func (o *SuspendMachineParams) WithID(id string) *SuspendMachineParams
- func (o *SuspendMachineParams) WithTimeout(timeout time.Duration) *SuspendMachineParams
- func (o *SuspendMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SuspendMachineReader
- type UpdateMachineForbidden
- type UpdateMachineNotFound
- type UpdateMachineOK
- type UpdateMachineParams
- func (o *UpdateMachineParams) SetAPIVersion(aPIVersion *string)
- func (o *UpdateMachineParams) SetBody(body *models.UpdateMachineSpecification)
- func (o *UpdateMachineParams) SetContext(ctx context.Context)
- func (o *UpdateMachineParams) SetDefaults()
- func (o *UpdateMachineParams) SetHTTPClient(client *http.Client)
- func (o *UpdateMachineParams) SetID(id string)
- func (o *UpdateMachineParams) SetTimeout(timeout time.Duration)
- func (o *UpdateMachineParams) WithAPIVersion(aPIVersion *string) *UpdateMachineParams
- func (o *UpdateMachineParams) WithBody(body *models.UpdateMachineSpecification) *UpdateMachineParams
- func (o *UpdateMachineParams) WithContext(ctx context.Context) *UpdateMachineParams
- func (o *UpdateMachineParams) WithDefaults() *UpdateMachineParams
- func (o *UpdateMachineParams) WithHTTPClient(client *http.Client) *UpdateMachineParams
- func (o *UpdateMachineParams) WithID(id string) *UpdateMachineParams
- func (o *UpdateMachineParams) WithTimeout(timeout time.Duration) *UpdateMachineParams
- func (o *UpdateMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateMachineReader
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 ¶
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
func (o *CreateMachineForbidden) GetPayload() *models.ServiceErrorResponse
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 ¶
func (o *CreateMachineParams) SetBody(body *models.MachineSpecification)
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 ¶
func (o *CreateMachineParams) WithBody(body *models.MachineSpecification) *CreateMachineParams
WithBody adds the body to the create machine params
func (*CreateMachineParams) WithContext ¶
func (o *CreateMachineParams) WithContext(ctx context.Context) *CreateMachineParams
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 (o *CreateMachineSnapshotAccepted) Error() string
func (*CreateMachineSnapshotAccepted) GetPayload ¶
func (o *CreateMachineSnapshotAccepted) GetPayload() *models.RequestTracker
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 (o *CreateMachineSnapshotForbidden) Error() string
func (*CreateMachineSnapshotForbidden) GetPayload ¶ added in v0.2.20
func (o *CreateMachineSnapshotForbidden) GetPayload() *models.ServiceErrorResponse
type CreateMachineSnapshotNotFound ¶
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 (o *CreateMachineSnapshotNotFound) Error() string
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 ¶
func (o *CreateMachineSnapshotParams) SetBody(body *models.SnapshotSpecification)
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 ¶
func (o *CreateMachineSnapshotParams) WithBody(body *models.SnapshotSpecification) *CreateMachineSnapshotParams
WithBody adds the body to the create machine snapshot params
func (*CreateMachineSnapshotParams) WithContext ¶
func (o *CreateMachineSnapshotParams) WithContext(ctx context.Context) *CreateMachineSnapshotParams
WithContext adds the context to the create machine snapshot params
func (*CreateMachineSnapshotParams) WithDefaults ¶ added in v0.2.20
func (o *CreateMachineSnapshotParams) WithDefaults() *CreateMachineSnapshotParams
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 ¶
func (o *CreateMachineSnapshotParams) WithHTTPClient(client *http.Client) *CreateMachineSnapshotParams
WithHTTPClient adds the HTTPClient to the create machine snapshot params
func (*CreateMachineSnapshotParams) WithID ¶
func (o *CreateMachineSnapshotParams) WithID(id string) *CreateMachineSnapshotParams
WithID adds the id to the create machine snapshot params
func (*CreateMachineSnapshotParams) WithTimeout ¶
func (o *CreateMachineSnapshotParams) WithTimeout(timeout time.Duration) *CreateMachineSnapshotParams
WithTimeout adds the timeout to the create machine snapshot params
func (*CreateMachineSnapshotParams) WriteToRequest ¶
func (o *CreateMachineSnapshotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (o *DeleteMachineForbidden) GetPayload() *models.ServiceErrorResponse
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 ¶
func (o *DeleteMachineParams) WithContext(ctx context.Context) *DeleteMachineParams
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 ¶
func (o *DeleteMachineParams) WithID(id string) *DeleteMachineParams
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 (o *DeleteMachineSnapshotAccepted) Error() string
func (*DeleteMachineSnapshotAccepted) GetPayload ¶
func (o *DeleteMachineSnapshotAccepted) GetPayload() *models.RequestTracker
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 (o *DeleteMachineSnapshotForbidden) Error() string
func (*DeleteMachineSnapshotForbidden) GetPayload ¶ added in v0.2.20
func (o *DeleteMachineSnapshotForbidden) GetPayload() *models.ServiceErrorResponse
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 ¶
func (o *DeleteMachineSnapshotParams) WithContext(ctx context.Context) *DeleteMachineSnapshotParams
WithContext adds the context to the delete machine snapshot params
func (*DeleteMachineSnapshotParams) WithDefaults ¶ added in v0.2.20
func (o *DeleteMachineSnapshotParams) WithDefaults() *DeleteMachineSnapshotParams
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 ¶
func (o *DeleteMachineSnapshotParams) WithHTTPClient(client *http.Client) *DeleteMachineSnapshotParams
WithHTTPClient adds the HTTPClient to the delete machine snapshot params
func (*DeleteMachineSnapshotParams) WithID ¶
func (o *DeleteMachineSnapshotParams) WithID(id string) *DeleteMachineSnapshotParams
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 ¶
func (o *DeleteMachineSnapshotParams) WithTimeout(timeout time.Duration) *DeleteMachineSnapshotParams
WithTimeout adds the timeout to the delete machine snapshot params
func (*DeleteMachineSnapshotParams) WriteToRequest ¶
func (o *DeleteMachineSnapshotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteMachineSnapshotReader ¶
type DeleteMachineSnapshotReader struct {
// contains filtered or unexported fields
}
DeleteMachineSnapshotReader is a Reader for the DeleteMachineSnapshot structure.
func (*DeleteMachineSnapshotReader) ReadResponse ¶
func (o *DeleteMachineSnapshotReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMachineForbidden ¶
type GetMachineForbidden struct {
Payload *models.ServiceErrorResponse
}
GetMachineForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetMachineForbidden ¶
func NewGetMachineForbidden() *GetMachineForbidden
NewGetMachineForbidden creates a GetMachineForbidden with default headers values
func (*GetMachineForbidden) Error ¶
func (o *GetMachineForbidden) Error() string
func (*GetMachineForbidden) GetPayload ¶ added in v0.2.20
func (o *GetMachineForbidden) GetPayload() *models.ServiceErrorResponse
type GetMachineNotFound ¶
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 ¶
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 (o *GetMachineSnapshotForbidden) Error() string
func (*GetMachineSnapshotForbidden) GetPayload ¶ added in v0.2.20
func (o *GetMachineSnapshotForbidden) GetPayload() *models.ServiceErrorResponse
type GetMachineSnapshotNotFound ¶ added in v0.2.8
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 (o *GetMachineSnapshotNotFound) Error() string
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
func (o *GetMachineSnapshotParams) WithContext(ctx context.Context) *GetMachineSnapshotParams
WithContext adds the context to the get machine snapshot params
func (*GetMachineSnapshotParams) WithDefaults ¶ added in v0.2.20
func (o *GetMachineSnapshotParams) WithDefaults() *GetMachineSnapshotParams
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
func (o *GetMachineSnapshotParams) WithID(id string) *GetMachineSnapshotParams
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
func (o *GetMachineSnapshotParams) WithTimeout(timeout time.Duration) *GetMachineSnapshotParams
WithTimeout adds the timeout to the get machine snapshot params
func (*GetMachineSnapshotParams) WriteToRequest ¶ added in v0.2.8
func (o *GetMachineSnapshotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetMachineSnapshotsForbidden) Error() string
func (*GetMachineSnapshotsForbidden) GetPayload ¶ added in v0.2.20
func (o *GetMachineSnapshotsForbidden) GetPayload() *models.ServiceErrorResponse
type GetMachineSnapshotsNotFound ¶
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 (o *GetMachineSnapshotsNotFound) Error() string
func (*GetMachineSnapshotsNotFound) GetPayload ¶ added in v0.2.9
func (o *GetMachineSnapshotsNotFound) GetPayload() *models.Error
type GetMachineSnapshotsOK ¶
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 ¶
func (o *GetMachineSnapshotsParams) WithContext(ctx context.Context) *GetMachineSnapshotsParams
WithContext adds the context to the get machine snapshots params
func (*GetMachineSnapshotsParams) WithDefaults ¶ added in v0.2.20
func (o *GetMachineSnapshotsParams) WithDefaults() *GetMachineSnapshotsParams
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 ¶
func (o *GetMachineSnapshotsParams) WithID(id string) *GetMachineSnapshotsParams
WithID adds the id to the get machine snapshots params
func (*GetMachineSnapshotsParams) WithTimeout ¶
func (o *GetMachineSnapshotsParams) WithTimeout(timeout time.Duration) *GetMachineSnapshotsParams
WithTimeout adds the timeout to the get machine snapshots params
func (*GetMachineSnapshotsParams) WriteToRequest ¶
func (o *GetMachineSnapshotsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMachineSnapshotsReader ¶
type GetMachineSnapshotsReader struct {
// contains filtered or unexported fields
}
GetMachineSnapshotsReader is a Reader for the GetMachineSnapshots structure.
func (*GetMachineSnapshotsReader) ReadResponse ¶
func (o *GetMachineSnapshotsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMachinesForbidden ¶
type GetMachinesForbidden struct {
Payload *models.ServiceErrorResponse
}
GetMachinesForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetMachinesForbidden ¶
func NewGetMachinesForbidden() *GetMachinesForbidden
NewGetMachinesForbidden creates a GetMachinesForbidden with default headers values
func (*GetMachinesForbidden) Error ¶
func (o *GetMachinesForbidden) Error() string
func (*GetMachinesForbidden) GetPayload ¶ added in v0.2.20
func (o *GetMachinesForbidden) GetPayload() *models.ServiceErrorResponse
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 ¶
func (o *PowerOffMachineAccepted) GetPayload() *models.RequestTracker
type PowerOffMachineForbidden ¶
type PowerOffMachineForbidden struct {
Payload *models.ServiceErrorResponse
}
PowerOffMachineForbidden describes a response with status code 403, with default header values.
Forbidden
func NewPowerOffMachineForbidden ¶
func NewPowerOffMachineForbidden() *PowerOffMachineForbidden
NewPowerOffMachineForbidden creates a PowerOffMachineForbidden with default headers values
func (*PowerOffMachineForbidden) Error ¶
func (o *PowerOffMachineForbidden) Error() string
func (*PowerOffMachineForbidden) GetPayload ¶ added in v0.2.20
func (o *PowerOffMachineForbidden) GetPayload() *models.ServiceErrorResponse
type PowerOffMachineNotFound ¶
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 ¶
func (o *PowerOffMachineParams) WithContext(ctx context.Context) *PowerOffMachineParams
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 ¶
func (o *PowerOffMachineParams) WithID(id string) *PowerOffMachineParams
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
func (o *PowerOnMachineForbidden) GetPayload() *models.ServiceErrorResponse
type PowerOnMachineNotFound ¶
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 ¶
func (o *PowerOnMachineParams) WithContext(ctx context.Context) *PowerOnMachineParams
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 ¶
func (o *PowerOnMachineParams) WithID(id string) *PowerOnMachineParams
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
func (o *RebootMachineForbidden) GetPayload() *models.ServiceErrorResponse
type RebootMachineNotFound ¶
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 ¶
func (o *RebootMachineParams) WithContext(ctx context.Context) *RebootMachineParams
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 ¶
func (o *RebootMachineParams) WithID(id string) *RebootMachineParams
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
func (o *ResetMachineForbidden) GetPayload() *models.ServiceErrorResponse
type ResetMachineNotFound ¶
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 ¶
func (o *ResetMachineParams) WithContext(ctx context.Context) *ResetMachineParams
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 ¶
func (o *ResetMachineParams) WithID(id string) *ResetMachineParams
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
func (o *ResizeMachineForbidden) GetPayload() *models.ServiceErrorResponse
type ResizeMachineNotFound ¶
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 ¶
func (o *ResizeMachineParams) WithContext(ctx context.Context) *ResizeMachineParams
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 ¶
func (o *ResizeMachineParams) WithID(id string) *ResizeMachineParams
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
func (o *RestartMachineForbidden) GetPayload() *models.ServiceErrorResponse
type RestartMachineNotFound ¶
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 ¶
func (o *RestartMachineParams) WithContext(ctx context.Context) *RestartMachineParams
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 ¶
func (o *RestartMachineParams) WithID(id string) *RestartMachineParams
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 (o *RevertMachineSnapshotAccepted) Error() string
func (*RevertMachineSnapshotAccepted) GetPayload ¶
func (o *RevertMachineSnapshotAccepted) GetPayload() *models.RequestTracker
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 (o *RevertMachineSnapshotForbidden) Error() string
func (*RevertMachineSnapshotForbidden) GetPayload ¶ added in v0.2.20
func (o *RevertMachineSnapshotForbidden) GetPayload() *models.ServiceErrorResponse
type RevertMachineSnapshotNotFound ¶
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 (o *RevertMachineSnapshotNotFound) Error() string
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 ¶
func (o *RevertMachineSnapshotParams) WithContext(ctx context.Context) *RevertMachineSnapshotParams
WithContext adds the context to the revert machine snapshot params
func (*RevertMachineSnapshotParams) WithDefaults ¶ added in v0.2.20
func (o *RevertMachineSnapshotParams) WithDefaults() *RevertMachineSnapshotParams
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 ¶
func (o *RevertMachineSnapshotParams) WithHTTPClient(client *http.Client) *RevertMachineSnapshotParams
WithHTTPClient adds the HTTPClient to the revert machine snapshot params
func (*RevertMachineSnapshotParams) WithID ¶
func (o *RevertMachineSnapshotParams) WithID(id string) *RevertMachineSnapshotParams
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 ¶
func (o *RevertMachineSnapshotParams) WithTimeout(timeout time.Duration) *RevertMachineSnapshotParams
WithTimeout adds the timeout to the revert machine snapshot params
func (*RevertMachineSnapshotParams) WriteToRequest ¶
func (o *RevertMachineSnapshotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RevertMachineSnapshotReader ¶
type RevertMachineSnapshotReader struct {
// contains filtered or unexported fields
}
RevertMachineSnapshotReader is a Reader for the RevertMachineSnapshot structure.
func (*RevertMachineSnapshotReader) ReadResponse ¶
func (o *RevertMachineSnapshotReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ShutdownMachineAccepted ¶
type ShutdownMachineAccepted struct {
Payload *models.RequestTracker
}
ShutdownMachineAccepted describes a response with status code 202, with default header values.
successful operation
func NewShutdownMachineAccepted ¶
func NewShutdownMachineAccepted() *ShutdownMachineAccepted
NewShutdownMachineAccepted creates a ShutdownMachineAccepted with default headers values
func (*ShutdownMachineAccepted) Error ¶
func (o *ShutdownMachineAccepted) Error() string
func (*ShutdownMachineAccepted) GetPayload ¶
func (o *ShutdownMachineAccepted) GetPayload() *models.RequestTracker
type ShutdownMachineForbidden ¶
type ShutdownMachineForbidden struct {
Payload *models.ServiceErrorResponse
}
ShutdownMachineForbidden describes a response with status code 403, with default header values.
Forbidden
func NewShutdownMachineForbidden ¶
func NewShutdownMachineForbidden() *ShutdownMachineForbidden
NewShutdownMachineForbidden creates a ShutdownMachineForbidden with default headers values
func (*ShutdownMachineForbidden) Error ¶
func (o *ShutdownMachineForbidden) Error() string
func (*ShutdownMachineForbidden) GetPayload ¶ added in v0.2.20
func (o *ShutdownMachineForbidden) GetPayload() *models.ServiceErrorResponse
type ShutdownMachineNotFound ¶
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 ¶
func (o *ShutdownMachineParams) WithContext(ctx context.Context) *ShutdownMachineParams
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 ¶
func (o *ShutdownMachineParams) WithID(id string) *ShutdownMachineParams
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
func (o *SuspendMachineForbidden) GetPayload() *models.ServiceErrorResponse
type SuspendMachineNotFound ¶
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 ¶
func (o *SuspendMachineParams) WithContext(ctx context.Context) *SuspendMachineParams
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 ¶
func (o *SuspendMachineParams) WithID(id string) *SuspendMachineParams
WithID adds the id to the suspend machine params
func (*SuspendMachineParams) WithTimeout ¶
func (o *SuspendMachineParams) WithTimeout(timeout time.Duration) *SuspendMachineParams
WithTimeout adds the timeout to the suspend machine params
func (*SuspendMachineParams) WriteToRequest ¶
func (o *SuspendMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SuspendMachineReader ¶
type SuspendMachineReader struct {
// contains filtered or unexported fields
}
SuspendMachineReader is a Reader for the SuspendMachine structure.
func (*SuspendMachineReader) ReadResponse ¶
func (o *SuspendMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateMachineForbidden ¶
type UpdateMachineForbidden struct {
Payload *models.ServiceErrorResponse
}
UpdateMachineForbidden describes a response with status code 403, with default header values.
Forbidden
func NewUpdateMachineForbidden ¶
func NewUpdateMachineForbidden() *UpdateMachineForbidden
NewUpdateMachineForbidden creates a UpdateMachineForbidden with default headers values
func (*UpdateMachineForbidden) Error ¶
func (o *UpdateMachineForbidden) Error() string
func (*UpdateMachineForbidden) GetPayload ¶ added in v0.2.20
func (o *UpdateMachineForbidden) GetPayload() *models.ServiceErrorResponse
type UpdateMachineNotFound ¶
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 ¶
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 ¶
func (o *UpdateMachineParams) SetBody(body *models.UpdateMachineSpecification)
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 ¶
func (o *UpdateMachineParams) WithBody(body *models.UpdateMachineSpecification) *UpdateMachineParams
WithBody adds the body to the update machine params
func (*UpdateMachineParams) WithContext ¶
func (o *UpdateMachineParams) WithContext(ctx context.Context) *UpdateMachineParams
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 ¶
func (o *UpdateMachineParams) WithID(id string) *UpdateMachineParams
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.
Source Files ¶
- compute_client.go
- create_machine_parameters.go
- create_machine_responses.go
- create_machine_snapshot_parameters.go
- create_machine_snapshot_responses.go
- delete_machine_parameters.go
- delete_machine_responses.go
- delete_machine_snapshot_parameters.go
- delete_machine_snapshot_responses.go
- get_machine_parameters.go
- get_machine_responses.go
- get_machine_snapshot_parameters.go
- get_machine_snapshot_responses.go
- get_machine_snapshots_parameters.go
- get_machine_snapshots_responses.go
- get_machines_parameters.go
- get_machines_responses.go
- power_off_machine_parameters.go
- power_off_machine_responses.go
- power_on_machine_parameters.go
- power_on_machine_responses.go
- reboot_machine_parameters.go
- reboot_machine_responses.go
- reset_machine_parameters.go
- reset_machine_responses.go
- resize_machine_parameters.go
- resize_machine_responses.go
- restart_machine_parameters.go
- restart_machine_responses.go
- revert_machine_snapshot_parameters.go
- revert_machine_snapshot_responses.go
- shutdown_machine_parameters.go
- shutdown_machine_responses.go
- suspend_machine_parameters.go
- suspend_machine_responses.go
- update_machine_parameters.go
- update_machine_responses.go