Documentation
¶
Index ¶
- type Client
- func (a *Client) GetWorkloadInstance(params *GetWorkloadInstanceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetWorkloadInstanceOK, error)
- func (a *Client) GetWorkloadInstanceInitialPassword(params *GetWorkloadInstanceInitialPasswordParams, ...) (*GetWorkloadInstanceInitialPasswordOK, error)
- func (a *Client) GetWorkloadInstances(params *GetWorkloadInstancesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetWorkloadInstancesOK, error)
- func (a *Client) RestartInstance(params *RestartInstanceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RestartInstanceNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetWorkloadInstanceDefault
- func (o *GetWorkloadInstanceDefault) Code() int
- func (o *GetWorkloadInstanceDefault) Error() string
- func (o *GetWorkloadInstanceDefault) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInstanceDefault) IsClientError() bool
- func (o *GetWorkloadInstanceDefault) IsCode(code int) bool
- func (o *GetWorkloadInstanceDefault) IsRedirect() bool
- func (o *GetWorkloadInstanceDefault) IsServerError() bool
- func (o *GetWorkloadInstanceDefault) IsSuccess() bool
- func (o *GetWorkloadInstanceDefault) String() string
- type GetWorkloadInstanceInitialPasswordDefault
- func (o *GetWorkloadInstanceInitialPasswordDefault) Code() int
- func (o *GetWorkloadInstanceInitialPasswordDefault) Error() string
- func (o *GetWorkloadInstanceInitialPasswordDefault) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInstanceInitialPasswordDefault) IsClientError() bool
- func (o *GetWorkloadInstanceInitialPasswordDefault) IsCode(code int) bool
- func (o *GetWorkloadInstanceInitialPasswordDefault) IsRedirect() bool
- func (o *GetWorkloadInstanceInitialPasswordDefault) IsServerError() bool
- func (o *GetWorkloadInstanceInitialPasswordDefault) IsSuccess() bool
- func (o *GetWorkloadInstanceInitialPasswordDefault) String() string
- type GetWorkloadInstanceInitialPasswordInternalServerError
- func (o *GetWorkloadInstanceInitialPasswordInternalServerError) Code() int
- func (o *GetWorkloadInstanceInitialPasswordInternalServerError) Error() string
- func (o *GetWorkloadInstanceInitialPasswordInternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInstanceInitialPasswordInternalServerError) IsClientError() bool
- func (o *GetWorkloadInstanceInitialPasswordInternalServerError) IsCode(code int) bool
- func (o *GetWorkloadInstanceInitialPasswordInternalServerError) IsRedirect() bool
- func (o *GetWorkloadInstanceInitialPasswordInternalServerError) IsServerError() bool
- func (o *GetWorkloadInstanceInitialPasswordInternalServerError) IsSuccess() bool
- func (o *GetWorkloadInstanceInitialPasswordInternalServerError) String() string
- type GetWorkloadInstanceInitialPasswordOK
- func (o *GetWorkloadInstanceInitialPasswordOK) Code() int
- func (o *GetWorkloadInstanceInitialPasswordOK) Error() string
- func (o *GetWorkloadInstanceInitialPasswordOK) GetPayload() *workload_models.V1GetWorkloadInstanceInitialPasswordResponse
- func (o *GetWorkloadInstanceInitialPasswordOK) IsClientError() bool
- func (o *GetWorkloadInstanceInitialPasswordOK) IsCode(code int) bool
- func (o *GetWorkloadInstanceInitialPasswordOK) IsRedirect() bool
- func (o *GetWorkloadInstanceInitialPasswordOK) IsServerError() bool
- func (o *GetWorkloadInstanceInitialPasswordOK) IsSuccess() bool
- func (o *GetWorkloadInstanceInitialPasswordOK) String() string
- type GetWorkloadInstanceInitialPasswordParams
- func NewGetWorkloadInstanceInitialPasswordParams() *GetWorkloadInstanceInitialPasswordParams
- func NewGetWorkloadInstanceInitialPasswordParamsWithContext(ctx context.Context) *GetWorkloadInstanceInitialPasswordParams
- func NewGetWorkloadInstanceInitialPasswordParamsWithHTTPClient(client *http.Client) *GetWorkloadInstanceInitialPasswordParams
- func NewGetWorkloadInstanceInitialPasswordParamsWithTimeout(timeout time.Duration) *GetWorkloadInstanceInitialPasswordParams
- func (o *GetWorkloadInstanceInitialPasswordParams) SetContext(ctx context.Context)
- func (o *GetWorkloadInstanceInitialPasswordParams) SetDefaults()
- func (o *GetWorkloadInstanceInitialPasswordParams) SetHTTPClient(client *http.Client)
- func (o *GetWorkloadInstanceInitialPasswordParams) SetInstanceName(instanceName string)
- func (o *GetWorkloadInstanceInitialPasswordParams) SetStackID(stackID string)
- func (o *GetWorkloadInstanceInitialPasswordParams) SetTimeout(timeout time.Duration)
- func (o *GetWorkloadInstanceInitialPasswordParams) SetWorkloadID(workloadID string)
- func (o *GetWorkloadInstanceInitialPasswordParams) WithContext(ctx context.Context) *GetWorkloadInstanceInitialPasswordParams
- func (o *GetWorkloadInstanceInitialPasswordParams) WithDefaults() *GetWorkloadInstanceInitialPasswordParams
- func (o *GetWorkloadInstanceInitialPasswordParams) WithHTTPClient(client *http.Client) *GetWorkloadInstanceInitialPasswordParams
- func (o *GetWorkloadInstanceInitialPasswordParams) WithInstanceName(instanceName string) *GetWorkloadInstanceInitialPasswordParams
- func (o *GetWorkloadInstanceInitialPasswordParams) WithStackID(stackID string) *GetWorkloadInstanceInitialPasswordParams
- func (o *GetWorkloadInstanceInitialPasswordParams) WithTimeout(timeout time.Duration) *GetWorkloadInstanceInitialPasswordParams
- func (o *GetWorkloadInstanceInitialPasswordParams) WithWorkloadID(workloadID string) *GetWorkloadInstanceInitialPasswordParams
- func (o *GetWorkloadInstanceInitialPasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWorkloadInstanceInitialPasswordReader
- type GetWorkloadInstanceInitialPasswordUnauthorized
- func (o *GetWorkloadInstanceInitialPasswordUnauthorized) Code() int
- func (o *GetWorkloadInstanceInitialPasswordUnauthorized) Error() string
- func (o *GetWorkloadInstanceInitialPasswordUnauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInstanceInitialPasswordUnauthorized) IsClientError() bool
- func (o *GetWorkloadInstanceInitialPasswordUnauthorized) IsCode(code int) bool
- func (o *GetWorkloadInstanceInitialPasswordUnauthorized) IsRedirect() bool
- func (o *GetWorkloadInstanceInitialPasswordUnauthorized) IsServerError() bool
- func (o *GetWorkloadInstanceInitialPasswordUnauthorized) IsSuccess() bool
- func (o *GetWorkloadInstanceInitialPasswordUnauthorized) String() string
- type GetWorkloadInstanceInternalServerError
- func (o *GetWorkloadInstanceInternalServerError) Code() int
- func (o *GetWorkloadInstanceInternalServerError) Error() string
- func (o *GetWorkloadInstanceInternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInstanceInternalServerError) IsClientError() bool
- func (o *GetWorkloadInstanceInternalServerError) IsCode(code int) bool
- func (o *GetWorkloadInstanceInternalServerError) IsRedirect() bool
- func (o *GetWorkloadInstanceInternalServerError) IsServerError() bool
- func (o *GetWorkloadInstanceInternalServerError) IsSuccess() bool
- func (o *GetWorkloadInstanceInternalServerError) String() string
- type GetWorkloadInstanceOK
- func (o *GetWorkloadInstanceOK) Code() int
- func (o *GetWorkloadInstanceOK) Error() string
- func (o *GetWorkloadInstanceOK) GetPayload() *workload_models.V1GetWorkloadInstanceResponse
- func (o *GetWorkloadInstanceOK) IsClientError() bool
- func (o *GetWorkloadInstanceOK) IsCode(code int) bool
- func (o *GetWorkloadInstanceOK) IsRedirect() bool
- func (o *GetWorkloadInstanceOK) IsServerError() bool
- func (o *GetWorkloadInstanceOK) IsSuccess() bool
- func (o *GetWorkloadInstanceOK) String() string
- type GetWorkloadInstanceParams
- func NewGetWorkloadInstanceParams() *GetWorkloadInstanceParams
- func NewGetWorkloadInstanceParamsWithContext(ctx context.Context) *GetWorkloadInstanceParams
- func NewGetWorkloadInstanceParamsWithHTTPClient(client *http.Client) *GetWorkloadInstanceParams
- func NewGetWorkloadInstanceParamsWithTimeout(timeout time.Duration) *GetWorkloadInstanceParams
- func (o *GetWorkloadInstanceParams) SetContext(ctx context.Context)
- func (o *GetWorkloadInstanceParams) SetDefaults()
- func (o *GetWorkloadInstanceParams) SetHTTPClient(client *http.Client)
- func (o *GetWorkloadInstanceParams) SetInstanceName(instanceName string)
- func (o *GetWorkloadInstanceParams) SetStackID(stackID string)
- func (o *GetWorkloadInstanceParams) SetTimeout(timeout time.Duration)
- func (o *GetWorkloadInstanceParams) SetWorkloadID(workloadID string)
- func (o *GetWorkloadInstanceParams) WithContext(ctx context.Context) *GetWorkloadInstanceParams
- func (o *GetWorkloadInstanceParams) WithDefaults() *GetWorkloadInstanceParams
- func (o *GetWorkloadInstanceParams) WithHTTPClient(client *http.Client) *GetWorkloadInstanceParams
- func (o *GetWorkloadInstanceParams) WithInstanceName(instanceName string) *GetWorkloadInstanceParams
- func (o *GetWorkloadInstanceParams) WithStackID(stackID string) *GetWorkloadInstanceParams
- func (o *GetWorkloadInstanceParams) WithTimeout(timeout time.Duration) *GetWorkloadInstanceParams
- func (o *GetWorkloadInstanceParams) WithWorkloadID(workloadID string) *GetWorkloadInstanceParams
- func (o *GetWorkloadInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWorkloadInstanceReader
- type GetWorkloadInstanceUnauthorized
- func (o *GetWorkloadInstanceUnauthorized) Code() int
- func (o *GetWorkloadInstanceUnauthorized) Error() string
- func (o *GetWorkloadInstanceUnauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInstanceUnauthorized) IsClientError() bool
- func (o *GetWorkloadInstanceUnauthorized) IsCode(code int) bool
- func (o *GetWorkloadInstanceUnauthorized) IsRedirect() bool
- func (o *GetWorkloadInstanceUnauthorized) IsServerError() bool
- func (o *GetWorkloadInstanceUnauthorized) IsSuccess() bool
- func (o *GetWorkloadInstanceUnauthorized) String() string
- type GetWorkloadInstancesDefault
- func (o *GetWorkloadInstancesDefault) Code() int
- func (o *GetWorkloadInstancesDefault) Error() string
- func (o *GetWorkloadInstancesDefault) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInstancesDefault) IsClientError() bool
- func (o *GetWorkloadInstancesDefault) IsCode(code int) bool
- func (o *GetWorkloadInstancesDefault) IsRedirect() bool
- func (o *GetWorkloadInstancesDefault) IsServerError() bool
- func (o *GetWorkloadInstancesDefault) IsSuccess() bool
- func (o *GetWorkloadInstancesDefault) String() string
- type GetWorkloadInstancesInternalServerError
- func (o *GetWorkloadInstancesInternalServerError) Code() int
- func (o *GetWorkloadInstancesInternalServerError) Error() string
- func (o *GetWorkloadInstancesInternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInstancesInternalServerError) IsClientError() bool
- func (o *GetWorkloadInstancesInternalServerError) IsCode(code int) bool
- func (o *GetWorkloadInstancesInternalServerError) IsRedirect() bool
- func (o *GetWorkloadInstancesInternalServerError) IsServerError() bool
- func (o *GetWorkloadInstancesInternalServerError) IsSuccess() bool
- func (o *GetWorkloadInstancesInternalServerError) String() string
- type GetWorkloadInstancesOK
- func (o *GetWorkloadInstancesOK) Code() int
- func (o *GetWorkloadInstancesOK) Error() string
- func (o *GetWorkloadInstancesOK) GetPayload() *workload_models.V1GetWorkloadInstancesResponse
- func (o *GetWorkloadInstancesOK) IsClientError() bool
- func (o *GetWorkloadInstancesOK) IsCode(code int) bool
- func (o *GetWorkloadInstancesOK) IsRedirect() bool
- func (o *GetWorkloadInstancesOK) IsServerError() bool
- func (o *GetWorkloadInstancesOK) IsSuccess() bool
- func (o *GetWorkloadInstancesOK) String() string
- type GetWorkloadInstancesParams
- func NewGetWorkloadInstancesParams() *GetWorkloadInstancesParams
- func NewGetWorkloadInstancesParamsWithContext(ctx context.Context) *GetWorkloadInstancesParams
- func NewGetWorkloadInstancesParamsWithHTTPClient(client *http.Client) *GetWorkloadInstancesParams
- func NewGetWorkloadInstancesParamsWithTimeout(timeout time.Duration) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) SetContext(ctx context.Context)
- func (o *GetWorkloadInstancesParams) SetDefaults()
- func (o *GetWorkloadInstancesParams) SetHTTPClient(client *http.Client)
- func (o *GetWorkloadInstancesParams) SetPageRequestAfter(pageRequestAfter *string)
- func (o *GetWorkloadInstancesParams) SetPageRequestFilter(pageRequestFilter *string)
- func (o *GetWorkloadInstancesParams) SetPageRequestFirst(pageRequestFirst *string)
- func (o *GetWorkloadInstancesParams) SetPageRequestSortBy(pageRequestSortBy *string)
- func (o *GetWorkloadInstancesParams) SetStackID(stackID string)
- func (o *GetWorkloadInstancesParams) SetTimeout(timeout time.Duration)
- func (o *GetWorkloadInstancesParams) SetWorkloadID(workloadID string)
- func (o *GetWorkloadInstancesParams) WithContext(ctx context.Context) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithDefaults() *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithHTTPClient(client *http.Client) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithPageRequestAfter(pageRequestAfter *string) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithPageRequestFilter(pageRequestFilter *string) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithPageRequestFirst(pageRequestFirst *string) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithStackID(stackID string) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithTimeout(timeout time.Duration) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithWorkloadID(workloadID string) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWorkloadInstancesReader
- type GetWorkloadInstancesUnauthorized
- func (o *GetWorkloadInstancesUnauthorized) Code() int
- func (o *GetWorkloadInstancesUnauthorized) Error() string
- func (o *GetWorkloadInstancesUnauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInstancesUnauthorized) IsClientError() bool
- func (o *GetWorkloadInstancesUnauthorized) IsCode(code int) bool
- func (o *GetWorkloadInstancesUnauthorized) IsRedirect() bool
- func (o *GetWorkloadInstancesUnauthorized) IsServerError() bool
- func (o *GetWorkloadInstancesUnauthorized) IsSuccess() bool
- func (o *GetWorkloadInstancesUnauthorized) String() string
- type RestartInstanceDefault
- func (o *RestartInstanceDefault) Code() int
- func (o *RestartInstanceDefault) Error() string
- func (o *RestartInstanceDefault) GetPayload() *workload_models.StackpathapiStatus
- func (o *RestartInstanceDefault) IsClientError() bool
- func (o *RestartInstanceDefault) IsCode(code int) bool
- func (o *RestartInstanceDefault) IsRedirect() bool
- func (o *RestartInstanceDefault) IsServerError() bool
- func (o *RestartInstanceDefault) IsSuccess() bool
- func (o *RestartInstanceDefault) String() string
- type RestartInstanceInternalServerError
- func (o *RestartInstanceInternalServerError) Code() int
- func (o *RestartInstanceInternalServerError) Error() string
- func (o *RestartInstanceInternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *RestartInstanceInternalServerError) IsClientError() bool
- func (o *RestartInstanceInternalServerError) IsCode(code int) bool
- func (o *RestartInstanceInternalServerError) IsRedirect() bool
- func (o *RestartInstanceInternalServerError) IsServerError() bool
- func (o *RestartInstanceInternalServerError) IsSuccess() bool
- func (o *RestartInstanceInternalServerError) String() string
- type RestartInstanceNoContent
- func (o *RestartInstanceNoContent) Code() int
- func (o *RestartInstanceNoContent) Error() string
- func (o *RestartInstanceNoContent) IsClientError() bool
- func (o *RestartInstanceNoContent) IsCode(code int) bool
- func (o *RestartInstanceNoContent) IsRedirect() bool
- func (o *RestartInstanceNoContent) IsServerError() bool
- func (o *RestartInstanceNoContent) IsSuccess() bool
- func (o *RestartInstanceNoContent) String() string
- type RestartInstanceParams
- func NewRestartInstanceParams() *RestartInstanceParams
- func NewRestartInstanceParamsWithContext(ctx context.Context) *RestartInstanceParams
- func NewRestartInstanceParamsWithHTTPClient(client *http.Client) *RestartInstanceParams
- func NewRestartInstanceParamsWithTimeout(timeout time.Duration) *RestartInstanceParams
- func (o *RestartInstanceParams) SetContext(ctx context.Context)
- func (o *RestartInstanceParams) SetDefaults()
- func (o *RestartInstanceParams) SetHTTPClient(client *http.Client)
- func (o *RestartInstanceParams) SetInstanceName(instanceName string)
- func (o *RestartInstanceParams) SetStackID(stackID string)
- func (o *RestartInstanceParams) SetTimeout(timeout time.Duration)
- func (o *RestartInstanceParams) SetWorkloadID(workloadID string)
- func (o *RestartInstanceParams) WithContext(ctx context.Context) *RestartInstanceParams
- func (o *RestartInstanceParams) WithDefaults() *RestartInstanceParams
- func (o *RestartInstanceParams) WithHTTPClient(client *http.Client) *RestartInstanceParams
- func (o *RestartInstanceParams) WithInstanceName(instanceName string) *RestartInstanceParams
- func (o *RestartInstanceParams) WithStackID(stackID string) *RestartInstanceParams
- func (o *RestartInstanceParams) WithTimeout(timeout time.Duration) *RestartInstanceParams
- func (o *RestartInstanceParams) WithWorkloadID(workloadID string) *RestartInstanceParams
- func (o *RestartInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RestartInstanceReader
- type RestartInstanceUnauthorized
- func (o *RestartInstanceUnauthorized) Code() int
- func (o *RestartInstanceUnauthorized) Error() string
- func (o *RestartInstanceUnauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *RestartInstanceUnauthorized) IsClientError() bool
- func (o *RestartInstanceUnauthorized) IsCode(code int) bool
- func (o *RestartInstanceUnauthorized) IsRedirect() bool
- func (o *RestartInstanceUnauthorized) IsServerError() bool
- func (o *RestartInstanceUnauthorized) IsSuccess() bool
- func (o *RestartInstanceUnauthorized) String() string
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 instance API
func (*Client) GetWorkloadInstance ¶
func (a *Client) GetWorkloadInstance(params *GetWorkloadInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadInstanceOK, error)
GetWorkloadInstance gets a workload instance
func (*Client) GetWorkloadInstanceInitialPassword ¶
func (a *Client) GetWorkloadInstanceInitialPassword(params *GetWorkloadInstanceInitialPasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadInstanceInitialPasswordOK, error)
GetWorkloadInstanceInitialPassword gets an instance s initial password
func (*Client) GetWorkloadInstances ¶
func (a *Client) GetWorkloadInstances(params *GetWorkloadInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadInstancesOK, error)
GetWorkloadInstances retrieves a workload s instances
func (*Client) RestartInstance ¶
func (a *Client) RestartInstance(params *RestartInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestartInstanceNoContent, error)
RestartInstance restarts an instance
The action is performed asynchronously and a successful response does not mean the instance has restarted yet.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetWorkloadInstance(params *GetWorkloadInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadInstanceOK, error) GetWorkloadInstanceInitialPassword(params *GetWorkloadInstanceInitialPasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadInstanceInitialPasswordOK, error) GetWorkloadInstances(params *GetWorkloadInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadInstancesOK, error) RestartInstance(params *RestartInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestartInstanceNoContent, 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 instance API client.
type GetWorkloadInstanceDefault ¶
type GetWorkloadInstanceDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
GetWorkloadInstanceDefault describes a response with status code -1, with default header values.
Default error structure.
func NewGetWorkloadInstanceDefault ¶
func NewGetWorkloadInstanceDefault(code int) *GetWorkloadInstanceDefault
NewGetWorkloadInstanceDefault creates a GetWorkloadInstanceDefault with default headers values
func (*GetWorkloadInstanceDefault) Code ¶
func (o *GetWorkloadInstanceDefault) Code() int
Code gets the status code for the get workload instance default response
func (*GetWorkloadInstanceDefault) Error ¶
func (o *GetWorkloadInstanceDefault) Error() string
func (*GetWorkloadInstanceDefault) GetPayload ¶
func (o *GetWorkloadInstanceDefault) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadInstanceDefault) IsClientError ¶
func (o *GetWorkloadInstanceDefault) IsClientError() bool
IsClientError returns true when this get workload instance default response has a 4xx status code
func (*GetWorkloadInstanceDefault) IsCode ¶
func (o *GetWorkloadInstanceDefault) IsCode(code int) bool
IsCode returns true when this get workload instance default response a status code equal to that given
func (*GetWorkloadInstanceDefault) IsRedirect ¶
func (o *GetWorkloadInstanceDefault) IsRedirect() bool
IsRedirect returns true when this get workload instance default response has a 3xx status code
func (*GetWorkloadInstanceDefault) IsServerError ¶
func (o *GetWorkloadInstanceDefault) IsServerError() bool
IsServerError returns true when this get workload instance default response has a 5xx status code
func (*GetWorkloadInstanceDefault) IsSuccess ¶
func (o *GetWorkloadInstanceDefault) IsSuccess() bool
IsSuccess returns true when this get workload instance default response has a 2xx status code
func (*GetWorkloadInstanceDefault) String ¶
func (o *GetWorkloadInstanceDefault) String() string
type GetWorkloadInstanceInitialPasswordDefault ¶
type GetWorkloadInstanceInitialPasswordDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
GetWorkloadInstanceInitialPasswordDefault describes a response with status code -1, with default header values.
Default error structure.
func NewGetWorkloadInstanceInitialPasswordDefault ¶
func NewGetWorkloadInstanceInitialPasswordDefault(code int) *GetWorkloadInstanceInitialPasswordDefault
NewGetWorkloadInstanceInitialPasswordDefault creates a GetWorkloadInstanceInitialPasswordDefault with default headers values
func (*GetWorkloadInstanceInitialPasswordDefault) Code ¶
func (o *GetWorkloadInstanceInitialPasswordDefault) Code() int
Code gets the status code for the get workload instance initial password default response
func (*GetWorkloadInstanceInitialPasswordDefault) Error ¶
func (o *GetWorkloadInstanceInitialPasswordDefault) Error() string
func (*GetWorkloadInstanceInitialPasswordDefault) GetPayload ¶
func (o *GetWorkloadInstanceInitialPasswordDefault) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadInstanceInitialPasswordDefault) IsClientError ¶
func (o *GetWorkloadInstanceInitialPasswordDefault) IsClientError() bool
IsClientError returns true when this get workload instance initial password default response has a 4xx status code
func (*GetWorkloadInstanceInitialPasswordDefault) IsCode ¶
func (o *GetWorkloadInstanceInitialPasswordDefault) IsCode(code int) bool
IsCode returns true when this get workload instance initial password default response a status code equal to that given
func (*GetWorkloadInstanceInitialPasswordDefault) IsRedirect ¶
func (o *GetWorkloadInstanceInitialPasswordDefault) IsRedirect() bool
IsRedirect returns true when this get workload instance initial password default response has a 3xx status code
func (*GetWorkloadInstanceInitialPasswordDefault) IsServerError ¶
func (o *GetWorkloadInstanceInitialPasswordDefault) IsServerError() bool
IsServerError returns true when this get workload instance initial password default response has a 5xx status code
func (*GetWorkloadInstanceInitialPasswordDefault) IsSuccess ¶
func (o *GetWorkloadInstanceInitialPasswordDefault) IsSuccess() bool
IsSuccess returns true when this get workload instance initial password default response has a 2xx status code
func (*GetWorkloadInstanceInitialPasswordDefault) String ¶
func (o *GetWorkloadInstanceInitialPasswordDefault) String() string
type GetWorkloadInstanceInitialPasswordInternalServerError ¶
type GetWorkloadInstanceInitialPasswordInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
GetWorkloadInstanceInitialPasswordInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewGetWorkloadInstanceInitialPasswordInternalServerError ¶
func NewGetWorkloadInstanceInitialPasswordInternalServerError() *GetWorkloadInstanceInitialPasswordInternalServerError
NewGetWorkloadInstanceInitialPasswordInternalServerError creates a GetWorkloadInstanceInitialPasswordInternalServerError with default headers values
func (*GetWorkloadInstanceInitialPasswordInternalServerError) Code ¶
func (o *GetWorkloadInstanceInitialPasswordInternalServerError) Code() int
Code gets the status code for the get workload instance initial password internal server error response
func (*GetWorkloadInstanceInitialPasswordInternalServerError) Error ¶
func (o *GetWorkloadInstanceInitialPasswordInternalServerError) Error() string
func (*GetWorkloadInstanceInitialPasswordInternalServerError) GetPayload ¶
func (o *GetWorkloadInstanceInitialPasswordInternalServerError) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadInstanceInitialPasswordInternalServerError) IsClientError ¶
func (o *GetWorkloadInstanceInitialPasswordInternalServerError) IsClientError() bool
IsClientError returns true when this get workload instance initial password internal server error response has a 4xx status code
func (*GetWorkloadInstanceInitialPasswordInternalServerError) IsCode ¶
func (o *GetWorkloadInstanceInitialPasswordInternalServerError) IsCode(code int) bool
IsCode returns true when this get workload instance initial password internal server error response a status code equal to that given
func (*GetWorkloadInstanceInitialPasswordInternalServerError) IsRedirect ¶
func (o *GetWorkloadInstanceInitialPasswordInternalServerError) IsRedirect() bool
IsRedirect returns true when this get workload instance initial password internal server error response has a 3xx status code
func (*GetWorkloadInstanceInitialPasswordInternalServerError) IsServerError ¶
func (o *GetWorkloadInstanceInitialPasswordInternalServerError) IsServerError() bool
IsServerError returns true when this get workload instance initial password internal server error response has a 5xx status code
func (*GetWorkloadInstanceInitialPasswordInternalServerError) IsSuccess ¶
func (o *GetWorkloadInstanceInitialPasswordInternalServerError) IsSuccess() bool
IsSuccess returns true when this get workload instance initial password internal server error response has a 2xx status code
func (*GetWorkloadInstanceInitialPasswordInternalServerError) String ¶
func (o *GetWorkloadInstanceInitialPasswordInternalServerError) String() string
type GetWorkloadInstanceInitialPasswordOK ¶
type GetWorkloadInstanceInitialPasswordOK struct {
Payload *workload_models.V1GetWorkloadInstanceInitialPasswordResponse
}
GetWorkloadInstanceInitialPasswordOK describes a response with status code 200, with default header values.
GetWorkloadInstanceInitialPasswordOK get workload instance initial password o k
func NewGetWorkloadInstanceInitialPasswordOK ¶
func NewGetWorkloadInstanceInitialPasswordOK() *GetWorkloadInstanceInitialPasswordOK
NewGetWorkloadInstanceInitialPasswordOK creates a GetWorkloadInstanceInitialPasswordOK with default headers values
func (*GetWorkloadInstanceInitialPasswordOK) Code ¶
func (o *GetWorkloadInstanceInitialPasswordOK) Code() int
Code gets the status code for the get workload instance initial password o k response
func (*GetWorkloadInstanceInitialPasswordOK) Error ¶
func (o *GetWorkloadInstanceInitialPasswordOK) Error() string
func (*GetWorkloadInstanceInitialPasswordOK) GetPayload ¶
func (o *GetWorkloadInstanceInitialPasswordOK) GetPayload() *workload_models.V1GetWorkloadInstanceInitialPasswordResponse
func (*GetWorkloadInstanceInitialPasswordOK) IsClientError ¶
func (o *GetWorkloadInstanceInitialPasswordOK) IsClientError() bool
IsClientError returns true when this get workload instance initial password o k response has a 4xx status code
func (*GetWorkloadInstanceInitialPasswordOK) IsCode ¶
func (o *GetWorkloadInstanceInitialPasswordOK) IsCode(code int) bool
IsCode returns true when this get workload instance initial password o k response a status code equal to that given
func (*GetWorkloadInstanceInitialPasswordOK) IsRedirect ¶
func (o *GetWorkloadInstanceInitialPasswordOK) IsRedirect() bool
IsRedirect returns true when this get workload instance initial password o k response has a 3xx status code
func (*GetWorkloadInstanceInitialPasswordOK) IsServerError ¶
func (o *GetWorkloadInstanceInitialPasswordOK) IsServerError() bool
IsServerError returns true when this get workload instance initial password o k response has a 5xx status code
func (*GetWorkloadInstanceInitialPasswordOK) IsSuccess ¶
func (o *GetWorkloadInstanceInitialPasswordOK) IsSuccess() bool
IsSuccess returns true when this get workload instance initial password o k response has a 2xx status code
func (*GetWorkloadInstanceInitialPasswordOK) String ¶
func (o *GetWorkloadInstanceInitialPasswordOK) String() string
type GetWorkloadInstanceInitialPasswordParams ¶
type GetWorkloadInstanceInitialPasswordParams struct { // InstanceName. InstanceName string // StackID. StackID string // WorkloadID. WorkloadID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWorkloadInstanceInitialPasswordParams contains all the parameters to send to the API endpoint
for the get workload instance initial password operation. Typically these are written to a http.Request.
func NewGetWorkloadInstanceInitialPasswordParams ¶
func NewGetWorkloadInstanceInitialPasswordParams() *GetWorkloadInstanceInitialPasswordParams
NewGetWorkloadInstanceInitialPasswordParams creates a new GetWorkloadInstanceInitialPasswordParams 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 NewGetWorkloadInstanceInitialPasswordParamsWithContext ¶
func NewGetWorkloadInstanceInitialPasswordParamsWithContext(ctx context.Context) *GetWorkloadInstanceInitialPasswordParams
NewGetWorkloadInstanceInitialPasswordParamsWithContext creates a new GetWorkloadInstanceInitialPasswordParams object with the ability to set a context for a request.
func NewGetWorkloadInstanceInitialPasswordParamsWithHTTPClient ¶
func NewGetWorkloadInstanceInitialPasswordParamsWithHTTPClient(client *http.Client) *GetWorkloadInstanceInitialPasswordParams
NewGetWorkloadInstanceInitialPasswordParamsWithHTTPClient creates a new GetWorkloadInstanceInitialPasswordParams object with the ability to set a custom HTTPClient for a request.
func NewGetWorkloadInstanceInitialPasswordParamsWithTimeout ¶
func NewGetWorkloadInstanceInitialPasswordParamsWithTimeout(timeout time.Duration) *GetWorkloadInstanceInitialPasswordParams
NewGetWorkloadInstanceInitialPasswordParamsWithTimeout creates a new GetWorkloadInstanceInitialPasswordParams object with the ability to set a timeout on a request.
func (*GetWorkloadInstanceInitialPasswordParams) SetContext ¶
func (o *GetWorkloadInstanceInitialPasswordParams) SetContext(ctx context.Context)
SetContext adds the context to the get workload instance initial password params
func (*GetWorkloadInstanceInitialPasswordParams) SetDefaults ¶
func (o *GetWorkloadInstanceInitialPasswordParams) SetDefaults()
SetDefaults hydrates default values in the get workload instance initial password params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadInstanceInitialPasswordParams) SetHTTPClient ¶
func (o *GetWorkloadInstanceInitialPasswordParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get workload instance initial password params
func (*GetWorkloadInstanceInitialPasswordParams) SetInstanceName ¶
func (o *GetWorkloadInstanceInitialPasswordParams) SetInstanceName(instanceName string)
SetInstanceName adds the instanceName to the get workload instance initial password params
func (*GetWorkloadInstanceInitialPasswordParams) SetStackID ¶
func (o *GetWorkloadInstanceInitialPasswordParams) SetStackID(stackID string)
SetStackID adds the stackId to the get workload instance initial password params
func (*GetWorkloadInstanceInitialPasswordParams) SetTimeout ¶
func (o *GetWorkloadInstanceInitialPasswordParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get workload instance initial password params
func (*GetWorkloadInstanceInitialPasswordParams) SetWorkloadID ¶
func (o *GetWorkloadInstanceInitialPasswordParams) SetWorkloadID(workloadID string)
SetWorkloadID adds the workloadId to the get workload instance initial password params
func (*GetWorkloadInstanceInitialPasswordParams) WithContext ¶
func (o *GetWorkloadInstanceInitialPasswordParams) WithContext(ctx context.Context) *GetWorkloadInstanceInitialPasswordParams
WithContext adds the context to the get workload instance initial password params
func (*GetWorkloadInstanceInitialPasswordParams) WithDefaults ¶
func (o *GetWorkloadInstanceInitialPasswordParams) WithDefaults() *GetWorkloadInstanceInitialPasswordParams
WithDefaults hydrates default values in the get workload instance initial password params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadInstanceInitialPasswordParams) WithHTTPClient ¶
func (o *GetWorkloadInstanceInitialPasswordParams) WithHTTPClient(client *http.Client) *GetWorkloadInstanceInitialPasswordParams
WithHTTPClient adds the HTTPClient to the get workload instance initial password params
func (*GetWorkloadInstanceInitialPasswordParams) WithInstanceName ¶
func (o *GetWorkloadInstanceInitialPasswordParams) WithInstanceName(instanceName string) *GetWorkloadInstanceInitialPasswordParams
WithInstanceName adds the instanceName to the get workload instance initial password params
func (*GetWorkloadInstanceInitialPasswordParams) WithStackID ¶
func (o *GetWorkloadInstanceInitialPasswordParams) WithStackID(stackID string) *GetWorkloadInstanceInitialPasswordParams
WithStackID adds the stackID to the get workload instance initial password params
func (*GetWorkloadInstanceInitialPasswordParams) WithTimeout ¶
func (o *GetWorkloadInstanceInitialPasswordParams) WithTimeout(timeout time.Duration) *GetWorkloadInstanceInitialPasswordParams
WithTimeout adds the timeout to the get workload instance initial password params
func (*GetWorkloadInstanceInitialPasswordParams) WithWorkloadID ¶
func (o *GetWorkloadInstanceInitialPasswordParams) WithWorkloadID(workloadID string) *GetWorkloadInstanceInitialPasswordParams
WithWorkloadID adds the workloadID to the get workload instance initial password params
func (*GetWorkloadInstanceInitialPasswordParams) WriteToRequest ¶
func (o *GetWorkloadInstanceInitialPasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWorkloadInstanceInitialPasswordReader ¶
type GetWorkloadInstanceInitialPasswordReader struct {
// contains filtered or unexported fields
}
GetWorkloadInstanceInitialPasswordReader is a Reader for the GetWorkloadInstanceInitialPassword structure.
func (*GetWorkloadInstanceInitialPasswordReader) ReadResponse ¶
func (o *GetWorkloadInstanceInitialPasswordReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWorkloadInstanceInitialPasswordUnauthorized ¶
type GetWorkloadInstanceInitialPasswordUnauthorized struct {
}GetWorkloadInstanceInitialPasswordUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewGetWorkloadInstanceInitialPasswordUnauthorized ¶
func NewGetWorkloadInstanceInitialPasswordUnauthorized() *GetWorkloadInstanceInitialPasswordUnauthorized
NewGetWorkloadInstanceInitialPasswordUnauthorized creates a GetWorkloadInstanceInitialPasswordUnauthorized with default headers values
func (*GetWorkloadInstanceInitialPasswordUnauthorized) Code ¶
func (o *GetWorkloadInstanceInitialPasswordUnauthorized) Code() int
Code gets the status code for the get workload instance initial password unauthorized response
func (*GetWorkloadInstanceInitialPasswordUnauthorized) Error ¶
func (o *GetWorkloadInstanceInitialPasswordUnauthorized) Error() string
func (*GetWorkloadInstanceInitialPasswordUnauthorized) GetPayload ¶
func (o *GetWorkloadInstanceInitialPasswordUnauthorized) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadInstanceInitialPasswordUnauthorized) IsClientError ¶
func (o *GetWorkloadInstanceInitialPasswordUnauthorized) IsClientError() bool
IsClientError returns true when this get workload instance initial password unauthorized response has a 4xx status code
func (*GetWorkloadInstanceInitialPasswordUnauthorized) IsCode ¶
func (o *GetWorkloadInstanceInitialPasswordUnauthorized) IsCode(code int) bool
IsCode returns true when this get workload instance initial password unauthorized response a status code equal to that given
func (*GetWorkloadInstanceInitialPasswordUnauthorized) IsRedirect ¶
func (o *GetWorkloadInstanceInitialPasswordUnauthorized) IsRedirect() bool
IsRedirect returns true when this get workload instance initial password unauthorized response has a 3xx status code
func (*GetWorkloadInstanceInitialPasswordUnauthorized) IsServerError ¶
func (o *GetWorkloadInstanceInitialPasswordUnauthorized) IsServerError() bool
IsServerError returns true when this get workload instance initial password unauthorized response has a 5xx status code
func (*GetWorkloadInstanceInitialPasswordUnauthorized) IsSuccess ¶
func (o *GetWorkloadInstanceInitialPasswordUnauthorized) IsSuccess() bool
IsSuccess returns true when this get workload instance initial password unauthorized response has a 2xx status code
func (*GetWorkloadInstanceInitialPasswordUnauthorized) String ¶
func (o *GetWorkloadInstanceInitialPasswordUnauthorized) String() string
type GetWorkloadInstanceInternalServerError ¶
type GetWorkloadInstanceInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
GetWorkloadInstanceInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewGetWorkloadInstanceInternalServerError ¶
func NewGetWorkloadInstanceInternalServerError() *GetWorkloadInstanceInternalServerError
NewGetWorkloadInstanceInternalServerError creates a GetWorkloadInstanceInternalServerError with default headers values
func (*GetWorkloadInstanceInternalServerError) Code ¶
func (o *GetWorkloadInstanceInternalServerError) Code() int
Code gets the status code for the get workload instance internal server error response
func (*GetWorkloadInstanceInternalServerError) Error ¶
func (o *GetWorkloadInstanceInternalServerError) Error() string
func (*GetWorkloadInstanceInternalServerError) GetPayload ¶
func (o *GetWorkloadInstanceInternalServerError) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadInstanceInternalServerError) IsClientError ¶
func (o *GetWorkloadInstanceInternalServerError) IsClientError() bool
IsClientError returns true when this get workload instance internal server error response has a 4xx status code
func (*GetWorkloadInstanceInternalServerError) IsCode ¶
func (o *GetWorkloadInstanceInternalServerError) IsCode(code int) bool
IsCode returns true when this get workload instance internal server error response a status code equal to that given
func (*GetWorkloadInstanceInternalServerError) IsRedirect ¶
func (o *GetWorkloadInstanceInternalServerError) IsRedirect() bool
IsRedirect returns true when this get workload instance internal server error response has a 3xx status code
func (*GetWorkloadInstanceInternalServerError) IsServerError ¶
func (o *GetWorkloadInstanceInternalServerError) IsServerError() bool
IsServerError returns true when this get workload instance internal server error response has a 5xx status code
func (*GetWorkloadInstanceInternalServerError) IsSuccess ¶
func (o *GetWorkloadInstanceInternalServerError) IsSuccess() bool
IsSuccess returns true when this get workload instance internal server error response has a 2xx status code
func (*GetWorkloadInstanceInternalServerError) String ¶
func (o *GetWorkloadInstanceInternalServerError) String() string
type GetWorkloadInstanceOK ¶
type GetWorkloadInstanceOK struct {
Payload *workload_models.V1GetWorkloadInstanceResponse
}
GetWorkloadInstanceOK describes a response with status code 200, with default header values.
GetWorkloadInstanceOK get workload instance o k
func NewGetWorkloadInstanceOK ¶
func NewGetWorkloadInstanceOK() *GetWorkloadInstanceOK
NewGetWorkloadInstanceOK creates a GetWorkloadInstanceOK with default headers values
func (*GetWorkloadInstanceOK) Code ¶
func (o *GetWorkloadInstanceOK) Code() int
Code gets the status code for the get workload instance o k response
func (*GetWorkloadInstanceOK) Error ¶
func (o *GetWorkloadInstanceOK) Error() string
func (*GetWorkloadInstanceOK) GetPayload ¶
func (o *GetWorkloadInstanceOK) GetPayload() *workload_models.V1GetWorkloadInstanceResponse
func (*GetWorkloadInstanceOK) IsClientError ¶
func (o *GetWorkloadInstanceOK) IsClientError() bool
IsClientError returns true when this get workload instance o k response has a 4xx status code
func (*GetWorkloadInstanceOK) IsCode ¶
func (o *GetWorkloadInstanceOK) IsCode(code int) bool
IsCode returns true when this get workload instance o k response a status code equal to that given
func (*GetWorkloadInstanceOK) IsRedirect ¶
func (o *GetWorkloadInstanceOK) IsRedirect() bool
IsRedirect returns true when this get workload instance o k response has a 3xx status code
func (*GetWorkloadInstanceOK) IsServerError ¶
func (o *GetWorkloadInstanceOK) IsServerError() bool
IsServerError returns true when this get workload instance o k response has a 5xx status code
func (*GetWorkloadInstanceOK) IsSuccess ¶
func (o *GetWorkloadInstanceOK) IsSuccess() bool
IsSuccess returns true when this get workload instance o k response has a 2xx status code
func (*GetWorkloadInstanceOK) String ¶
func (o *GetWorkloadInstanceOK) String() string
type GetWorkloadInstanceParams ¶
type GetWorkloadInstanceParams struct { /* InstanceName. The name of the instance to retrieve */ InstanceName string /* StackID. The ID of the stack containing the workload whose instance to retrieve */ StackID string /* WorkloadID. The ID of the workload whose instance to retrieve */ WorkloadID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWorkloadInstanceParams contains all the parameters to send to the API endpoint
for the get workload instance operation. Typically these are written to a http.Request.
func NewGetWorkloadInstanceParams ¶
func NewGetWorkloadInstanceParams() *GetWorkloadInstanceParams
NewGetWorkloadInstanceParams creates a new GetWorkloadInstanceParams 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 NewGetWorkloadInstanceParamsWithContext ¶
func NewGetWorkloadInstanceParamsWithContext(ctx context.Context) *GetWorkloadInstanceParams
NewGetWorkloadInstanceParamsWithContext creates a new GetWorkloadInstanceParams object with the ability to set a context for a request.
func NewGetWorkloadInstanceParamsWithHTTPClient ¶
func NewGetWorkloadInstanceParamsWithHTTPClient(client *http.Client) *GetWorkloadInstanceParams
NewGetWorkloadInstanceParamsWithHTTPClient creates a new GetWorkloadInstanceParams object with the ability to set a custom HTTPClient for a request.
func NewGetWorkloadInstanceParamsWithTimeout ¶
func NewGetWorkloadInstanceParamsWithTimeout(timeout time.Duration) *GetWorkloadInstanceParams
NewGetWorkloadInstanceParamsWithTimeout creates a new GetWorkloadInstanceParams object with the ability to set a timeout on a request.
func (*GetWorkloadInstanceParams) SetContext ¶
func (o *GetWorkloadInstanceParams) SetContext(ctx context.Context)
SetContext adds the context to the get workload instance params
func (*GetWorkloadInstanceParams) SetDefaults ¶
func (o *GetWorkloadInstanceParams) SetDefaults()
SetDefaults hydrates default values in the get workload instance params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadInstanceParams) SetHTTPClient ¶
func (o *GetWorkloadInstanceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get workload instance params
func (*GetWorkloadInstanceParams) SetInstanceName ¶
func (o *GetWorkloadInstanceParams) SetInstanceName(instanceName string)
SetInstanceName adds the instanceName to the get workload instance params
func (*GetWorkloadInstanceParams) SetStackID ¶
func (o *GetWorkloadInstanceParams) SetStackID(stackID string)
SetStackID adds the stackId to the get workload instance params
func (*GetWorkloadInstanceParams) SetTimeout ¶
func (o *GetWorkloadInstanceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get workload instance params
func (*GetWorkloadInstanceParams) SetWorkloadID ¶
func (o *GetWorkloadInstanceParams) SetWorkloadID(workloadID string)
SetWorkloadID adds the workloadId to the get workload instance params
func (*GetWorkloadInstanceParams) WithContext ¶
func (o *GetWorkloadInstanceParams) WithContext(ctx context.Context) *GetWorkloadInstanceParams
WithContext adds the context to the get workload instance params
func (*GetWorkloadInstanceParams) WithDefaults ¶
func (o *GetWorkloadInstanceParams) WithDefaults() *GetWorkloadInstanceParams
WithDefaults hydrates default values in the get workload instance params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadInstanceParams) WithHTTPClient ¶
func (o *GetWorkloadInstanceParams) WithHTTPClient(client *http.Client) *GetWorkloadInstanceParams
WithHTTPClient adds the HTTPClient to the get workload instance params
func (*GetWorkloadInstanceParams) WithInstanceName ¶
func (o *GetWorkloadInstanceParams) WithInstanceName(instanceName string) *GetWorkloadInstanceParams
WithInstanceName adds the instanceName to the get workload instance params
func (*GetWorkloadInstanceParams) WithStackID ¶
func (o *GetWorkloadInstanceParams) WithStackID(stackID string) *GetWorkloadInstanceParams
WithStackID adds the stackID to the get workload instance params
func (*GetWorkloadInstanceParams) WithTimeout ¶
func (o *GetWorkloadInstanceParams) WithTimeout(timeout time.Duration) *GetWorkloadInstanceParams
WithTimeout adds the timeout to the get workload instance params
func (*GetWorkloadInstanceParams) WithWorkloadID ¶
func (o *GetWorkloadInstanceParams) WithWorkloadID(workloadID string) *GetWorkloadInstanceParams
WithWorkloadID adds the workloadID to the get workload instance params
func (*GetWorkloadInstanceParams) WriteToRequest ¶
func (o *GetWorkloadInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWorkloadInstanceReader ¶
type GetWorkloadInstanceReader struct {
// contains filtered or unexported fields
}
GetWorkloadInstanceReader is a Reader for the GetWorkloadInstance structure.
func (*GetWorkloadInstanceReader) ReadResponse ¶
func (o *GetWorkloadInstanceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWorkloadInstanceUnauthorized ¶
type GetWorkloadInstanceUnauthorized struct {
}GetWorkloadInstanceUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewGetWorkloadInstanceUnauthorized ¶
func NewGetWorkloadInstanceUnauthorized() *GetWorkloadInstanceUnauthorized
NewGetWorkloadInstanceUnauthorized creates a GetWorkloadInstanceUnauthorized with default headers values
func (*GetWorkloadInstanceUnauthorized) Code ¶
func (o *GetWorkloadInstanceUnauthorized) Code() int
Code gets the status code for the get workload instance unauthorized response
func (*GetWorkloadInstanceUnauthorized) Error ¶
func (o *GetWorkloadInstanceUnauthorized) Error() string
func (*GetWorkloadInstanceUnauthorized) GetPayload ¶
func (o *GetWorkloadInstanceUnauthorized) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadInstanceUnauthorized) IsClientError ¶
func (o *GetWorkloadInstanceUnauthorized) IsClientError() bool
IsClientError returns true when this get workload instance unauthorized response has a 4xx status code
func (*GetWorkloadInstanceUnauthorized) IsCode ¶
func (o *GetWorkloadInstanceUnauthorized) IsCode(code int) bool
IsCode returns true when this get workload instance unauthorized response a status code equal to that given
func (*GetWorkloadInstanceUnauthorized) IsRedirect ¶
func (o *GetWorkloadInstanceUnauthorized) IsRedirect() bool
IsRedirect returns true when this get workload instance unauthorized response has a 3xx status code
func (*GetWorkloadInstanceUnauthorized) IsServerError ¶
func (o *GetWorkloadInstanceUnauthorized) IsServerError() bool
IsServerError returns true when this get workload instance unauthorized response has a 5xx status code
func (*GetWorkloadInstanceUnauthorized) IsSuccess ¶
func (o *GetWorkloadInstanceUnauthorized) IsSuccess() bool
IsSuccess returns true when this get workload instance unauthorized response has a 2xx status code
func (*GetWorkloadInstanceUnauthorized) String ¶
func (o *GetWorkloadInstanceUnauthorized) String() string
type GetWorkloadInstancesDefault ¶
type GetWorkloadInstancesDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
GetWorkloadInstancesDefault describes a response with status code -1, with default header values.
Default error structure.
func NewGetWorkloadInstancesDefault ¶
func NewGetWorkloadInstancesDefault(code int) *GetWorkloadInstancesDefault
NewGetWorkloadInstancesDefault creates a GetWorkloadInstancesDefault with default headers values
func (*GetWorkloadInstancesDefault) Code ¶
func (o *GetWorkloadInstancesDefault) Code() int
Code gets the status code for the get workload instances default response
func (*GetWorkloadInstancesDefault) Error ¶
func (o *GetWorkloadInstancesDefault) Error() string
func (*GetWorkloadInstancesDefault) GetPayload ¶
func (o *GetWorkloadInstancesDefault) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadInstancesDefault) IsClientError ¶
func (o *GetWorkloadInstancesDefault) IsClientError() bool
IsClientError returns true when this get workload instances default response has a 4xx status code
func (*GetWorkloadInstancesDefault) IsCode ¶
func (o *GetWorkloadInstancesDefault) IsCode(code int) bool
IsCode returns true when this get workload instances default response a status code equal to that given
func (*GetWorkloadInstancesDefault) IsRedirect ¶
func (o *GetWorkloadInstancesDefault) IsRedirect() bool
IsRedirect returns true when this get workload instances default response has a 3xx status code
func (*GetWorkloadInstancesDefault) IsServerError ¶
func (o *GetWorkloadInstancesDefault) IsServerError() bool
IsServerError returns true when this get workload instances default response has a 5xx status code
func (*GetWorkloadInstancesDefault) IsSuccess ¶
func (o *GetWorkloadInstancesDefault) IsSuccess() bool
IsSuccess returns true when this get workload instances default response has a 2xx status code
func (*GetWorkloadInstancesDefault) String ¶
func (o *GetWorkloadInstancesDefault) String() string
type GetWorkloadInstancesInternalServerError ¶
type GetWorkloadInstancesInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
GetWorkloadInstancesInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewGetWorkloadInstancesInternalServerError ¶
func NewGetWorkloadInstancesInternalServerError() *GetWorkloadInstancesInternalServerError
NewGetWorkloadInstancesInternalServerError creates a GetWorkloadInstancesInternalServerError with default headers values
func (*GetWorkloadInstancesInternalServerError) Code ¶
func (o *GetWorkloadInstancesInternalServerError) Code() int
Code gets the status code for the get workload instances internal server error response
func (*GetWorkloadInstancesInternalServerError) Error ¶
func (o *GetWorkloadInstancesInternalServerError) Error() string
func (*GetWorkloadInstancesInternalServerError) GetPayload ¶
func (o *GetWorkloadInstancesInternalServerError) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadInstancesInternalServerError) IsClientError ¶
func (o *GetWorkloadInstancesInternalServerError) IsClientError() bool
IsClientError returns true when this get workload instances internal server error response has a 4xx status code
func (*GetWorkloadInstancesInternalServerError) IsCode ¶
func (o *GetWorkloadInstancesInternalServerError) IsCode(code int) bool
IsCode returns true when this get workload instances internal server error response a status code equal to that given
func (*GetWorkloadInstancesInternalServerError) IsRedirect ¶
func (o *GetWorkloadInstancesInternalServerError) IsRedirect() bool
IsRedirect returns true when this get workload instances internal server error response has a 3xx status code
func (*GetWorkloadInstancesInternalServerError) IsServerError ¶
func (o *GetWorkloadInstancesInternalServerError) IsServerError() bool
IsServerError returns true when this get workload instances internal server error response has a 5xx status code
func (*GetWorkloadInstancesInternalServerError) IsSuccess ¶
func (o *GetWorkloadInstancesInternalServerError) IsSuccess() bool
IsSuccess returns true when this get workload instances internal server error response has a 2xx status code
func (*GetWorkloadInstancesInternalServerError) String ¶
func (o *GetWorkloadInstancesInternalServerError) String() string
type GetWorkloadInstancesOK ¶
type GetWorkloadInstancesOK struct {
Payload *workload_models.V1GetWorkloadInstancesResponse
}
GetWorkloadInstancesOK describes a response with status code 200, with default header values.
GetWorkloadInstancesOK get workload instances o k
func NewGetWorkloadInstancesOK ¶
func NewGetWorkloadInstancesOK() *GetWorkloadInstancesOK
NewGetWorkloadInstancesOK creates a GetWorkloadInstancesOK with default headers values
func (*GetWorkloadInstancesOK) Code ¶
func (o *GetWorkloadInstancesOK) Code() int
Code gets the status code for the get workload instances o k response
func (*GetWorkloadInstancesOK) Error ¶
func (o *GetWorkloadInstancesOK) Error() string
func (*GetWorkloadInstancesOK) GetPayload ¶
func (o *GetWorkloadInstancesOK) GetPayload() *workload_models.V1GetWorkloadInstancesResponse
func (*GetWorkloadInstancesOK) IsClientError ¶
func (o *GetWorkloadInstancesOK) IsClientError() bool
IsClientError returns true when this get workload instances o k response has a 4xx status code
func (*GetWorkloadInstancesOK) IsCode ¶
func (o *GetWorkloadInstancesOK) IsCode(code int) bool
IsCode returns true when this get workload instances o k response a status code equal to that given
func (*GetWorkloadInstancesOK) IsRedirect ¶
func (o *GetWorkloadInstancesOK) IsRedirect() bool
IsRedirect returns true when this get workload instances o k response has a 3xx status code
func (*GetWorkloadInstancesOK) IsServerError ¶
func (o *GetWorkloadInstancesOK) IsServerError() bool
IsServerError returns true when this get workload instances o k response has a 5xx status code
func (*GetWorkloadInstancesOK) IsSuccess ¶
func (o *GetWorkloadInstancesOK) IsSuccess() bool
IsSuccess returns true when this get workload instances o k response has a 2xx status code
func (*GetWorkloadInstancesOK) String ¶
func (o *GetWorkloadInstancesOK) String() string
type GetWorkloadInstancesParams ¶
type GetWorkloadInstancesParams struct { /* PageRequestAfter. The cursor value after which data will be returned. */ PageRequestAfter *string /* PageRequestFilter. SQL-style constraint filters. */ PageRequestFilter *string /* PageRequestFirst. The number of items desired. */ PageRequestFirst *string /* PageRequestSortBy. Sort the response by the given field. */ PageRequestSortBy *string /* StackID. The ID of the stack containing the workload whose instances to retrieve */ StackID string /* WorkloadID. The ID the workload whose instances to retrieve */ WorkloadID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWorkloadInstancesParams contains all the parameters to send to the API endpoint
for the get workload instances operation. Typically these are written to a http.Request.
func NewGetWorkloadInstancesParams ¶
func NewGetWorkloadInstancesParams() *GetWorkloadInstancesParams
NewGetWorkloadInstancesParams creates a new GetWorkloadInstancesParams 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 NewGetWorkloadInstancesParamsWithContext ¶
func NewGetWorkloadInstancesParamsWithContext(ctx context.Context) *GetWorkloadInstancesParams
NewGetWorkloadInstancesParamsWithContext creates a new GetWorkloadInstancesParams object with the ability to set a context for a request.
func NewGetWorkloadInstancesParamsWithHTTPClient ¶
func NewGetWorkloadInstancesParamsWithHTTPClient(client *http.Client) *GetWorkloadInstancesParams
NewGetWorkloadInstancesParamsWithHTTPClient creates a new GetWorkloadInstancesParams object with the ability to set a custom HTTPClient for a request.
func NewGetWorkloadInstancesParamsWithTimeout ¶
func NewGetWorkloadInstancesParamsWithTimeout(timeout time.Duration) *GetWorkloadInstancesParams
NewGetWorkloadInstancesParamsWithTimeout creates a new GetWorkloadInstancesParams object with the ability to set a timeout on a request.
func (*GetWorkloadInstancesParams) SetContext ¶
func (o *GetWorkloadInstancesParams) SetContext(ctx context.Context)
SetContext adds the context to the get workload instances params
func (*GetWorkloadInstancesParams) SetDefaults ¶
func (o *GetWorkloadInstancesParams) SetDefaults()
SetDefaults hydrates default values in the get workload instances params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadInstancesParams) SetHTTPClient ¶
func (o *GetWorkloadInstancesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get workload instances params
func (*GetWorkloadInstancesParams) SetPageRequestAfter ¶
func (o *GetWorkloadInstancesParams) SetPageRequestAfter(pageRequestAfter *string)
SetPageRequestAfter adds the pageRequestAfter to the get workload instances params
func (*GetWorkloadInstancesParams) SetPageRequestFilter ¶
func (o *GetWorkloadInstancesParams) SetPageRequestFilter(pageRequestFilter *string)
SetPageRequestFilter adds the pageRequestFilter to the get workload instances params
func (*GetWorkloadInstancesParams) SetPageRequestFirst ¶
func (o *GetWorkloadInstancesParams) SetPageRequestFirst(pageRequestFirst *string)
SetPageRequestFirst adds the pageRequestFirst to the get workload instances params
func (*GetWorkloadInstancesParams) SetPageRequestSortBy ¶
func (o *GetWorkloadInstancesParams) SetPageRequestSortBy(pageRequestSortBy *string)
SetPageRequestSortBy adds the pageRequestSortBy to the get workload instances params
func (*GetWorkloadInstancesParams) SetStackID ¶
func (o *GetWorkloadInstancesParams) SetStackID(stackID string)
SetStackID adds the stackId to the get workload instances params
func (*GetWorkloadInstancesParams) SetTimeout ¶
func (o *GetWorkloadInstancesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get workload instances params
func (*GetWorkloadInstancesParams) SetWorkloadID ¶
func (o *GetWorkloadInstancesParams) SetWorkloadID(workloadID string)
SetWorkloadID adds the workloadId to the get workload instances params
func (*GetWorkloadInstancesParams) WithContext ¶
func (o *GetWorkloadInstancesParams) WithContext(ctx context.Context) *GetWorkloadInstancesParams
WithContext adds the context to the get workload instances params
func (*GetWorkloadInstancesParams) WithDefaults ¶
func (o *GetWorkloadInstancesParams) WithDefaults() *GetWorkloadInstancesParams
WithDefaults hydrates default values in the get workload instances params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadInstancesParams) WithHTTPClient ¶
func (o *GetWorkloadInstancesParams) WithHTTPClient(client *http.Client) *GetWorkloadInstancesParams
WithHTTPClient adds the HTTPClient to the get workload instances params
func (*GetWorkloadInstancesParams) WithPageRequestAfter ¶
func (o *GetWorkloadInstancesParams) WithPageRequestAfter(pageRequestAfter *string) *GetWorkloadInstancesParams
WithPageRequestAfter adds the pageRequestAfter to the get workload instances params
func (*GetWorkloadInstancesParams) WithPageRequestFilter ¶
func (o *GetWorkloadInstancesParams) WithPageRequestFilter(pageRequestFilter *string) *GetWorkloadInstancesParams
WithPageRequestFilter adds the pageRequestFilter to the get workload instances params
func (*GetWorkloadInstancesParams) WithPageRequestFirst ¶
func (o *GetWorkloadInstancesParams) WithPageRequestFirst(pageRequestFirst *string) *GetWorkloadInstancesParams
WithPageRequestFirst adds the pageRequestFirst to the get workload instances params
func (*GetWorkloadInstancesParams) WithPageRequestSortBy ¶
func (o *GetWorkloadInstancesParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetWorkloadInstancesParams
WithPageRequestSortBy adds the pageRequestSortBy to the get workload instances params
func (*GetWorkloadInstancesParams) WithStackID ¶
func (o *GetWorkloadInstancesParams) WithStackID(stackID string) *GetWorkloadInstancesParams
WithStackID adds the stackID to the get workload instances params
func (*GetWorkloadInstancesParams) WithTimeout ¶
func (o *GetWorkloadInstancesParams) WithTimeout(timeout time.Duration) *GetWorkloadInstancesParams
WithTimeout adds the timeout to the get workload instances params
func (*GetWorkloadInstancesParams) WithWorkloadID ¶
func (o *GetWorkloadInstancesParams) WithWorkloadID(workloadID string) *GetWorkloadInstancesParams
WithWorkloadID adds the workloadID to the get workload instances params
func (*GetWorkloadInstancesParams) WriteToRequest ¶
func (o *GetWorkloadInstancesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWorkloadInstancesReader ¶
type GetWorkloadInstancesReader struct {
// contains filtered or unexported fields
}
GetWorkloadInstancesReader is a Reader for the GetWorkloadInstances structure.
func (*GetWorkloadInstancesReader) ReadResponse ¶
func (o *GetWorkloadInstancesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWorkloadInstancesUnauthorized ¶
type GetWorkloadInstancesUnauthorized struct {
}GetWorkloadInstancesUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewGetWorkloadInstancesUnauthorized ¶
func NewGetWorkloadInstancesUnauthorized() *GetWorkloadInstancesUnauthorized
NewGetWorkloadInstancesUnauthorized creates a GetWorkloadInstancesUnauthorized with default headers values
func (*GetWorkloadInstancesUnauthorized) Code ¶
func (o *GetWorkloadInstancesUnauthorized) Code() int
Code gets the status code for the get workload instances unauthorized response
func (*GetWorkloadInstancesUnauthorized) Error ¶
func (o *GetWorkloadInstancesUnauthorized) Error() string
func (*GetWorkloadInstancesUnauthorized) GetPayload ¶
func (o *GetWorkloadInstancesUnauthorized) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadInstancesUnauthorized) IsClientError ¶
func (o *GetWorkloadInstancesUnauthorized) IsClientError() bool
IsClientError returns true when this get workload instances unauthorized response has a 4xx status code
func (*GetWorkloadInstancesUnauthorized) IsCode ¶
func (o *GetWorkloadInstancesUnauthorized) IsCode(code int) bool
IsCode returns true when this get workload instances unauthorized response a status code equal to that given
func (*GetWorkloadInstancesUnauthorized) IsRedirect ¶
func (o *GetWorkloadInstancesUnauthorized) IsRedirect() bool
IsRedirect returns true when this get workload instances unauthorized response has a 3xx status code
func (*GetWorkloadInstancesUnauthorized) IsServerError ¶
func (o *GetWorkloadInstancesUnauthorized) IsServerError() bool
IsServerError returns true when this get workload instances unauthorized response has a 5xx status code
func (*GetWorkloadInstancesUnauthorized) IsSuccess ¶
func (o *GetWorkloadInstancesUnauthorized) IsSuccess() bool
IsSuccess returns true when this get workload instances unauthorized response has a 2xx status code
func (*GetWorkloadInstancesUnauthorized) String ¶
func (o *GetWorkloadInstancesUnauthorized) String() string
type RestartInstanceDefault ¶
type RestartInstanceDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
RestartInstanceDefault describes a response with status code -1, with default header values.
Default error structure.
func NewRestartInstanceDefault ¶
func NewRestartInstanceDefault(code int) *RestartInstanceDefault
NewRestartInstanceDefault creates a RestartInstanceDefault with default headers values
func (*RestartInstanceDefault) Code ¶
func (o *RestartInstanceDefault) Code() int
Code gets the status code for the restart instance default response
func (*RestartInstanceDefault) Error ¶
func (o *RestartInstanceDefault) Error() string
func (*RestartInstanceDefault) GetPayload ¶
func (o *RestartInstanceDefault) GetPayload() *workload_models.StackpathapiStatus
func (*RestartInstanceDefault) IsClientError ¶
func (o *RestartInstanceDefault) IsClientError() bool
IsClientError returns true when this restart instance default response has a 4xx status code
func (*RestartInstanceDefault) IsCode ¶
func (o *RestartInstanceDefault) IsCode(code int) bool
IsCode returns true when this restart instance default response a status code equal to that given
func (*RestartInstanceDefault) IsRedirect ¶
func (o *RestartInstanceDefault) IsRedirect() bool
IsRedirect returns true when this restart instance default response has a 3xx status code
func (*RestartInstanceDefault) IsServerError ¶
func (o *RestartInstanceDefault) IsServerError() bool
IsServerError returns true when this restart instance default response has a 5xx status code
func (*RestartInstanceDefault) IsSuccess ¶
func (o *RestartInstanceDefault) IsSuccess() bool
IsSuccess returns true when this restart instance default response has a 2xx status code
func (*RestartInstanceDefault) String ¶
func (o *RestartInstanceDefault) String() string
type RestartInstanceInternalServerError ¶
type RestartInstanceInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
RestartInstanceInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewRestartInstanceInternalServerError ¶
func NewRestartInstanceInternalServerError() *RestartInstanceInternalServerError
NewRestartInstanceInternalServerError creates a RestartInstanceInternalServerError with default headers values
func (*RestartInstanceInternalServerError) Code ¶
func (o *RestartInstanceInternalServerError) Code() int
Code gets the status code for the restart instance internal server error response
func (*RestartInstanceInternalServerError) Error ¶
func (o *RestartInstanceInternalServerError) Error() string
func (*RestartInstanceInternalServerError) GetPayload ¶
func (o *RestartInstanceInternalServerError) GetPayload() *workload_models.StackpathapiStatus
func (*RestartInstanceInternalServerError) IsClientError ¶
func (o *RestartInstanceInternalServerError) IsClientError() bool
IsClientError returns true when this restart instance internal server error response has a 4xx status code
func (*RestartInstanceInternalServerError) IsCode ¶
func (o *RestartInstanceInternalServerError) IsCode(code int) bool
IsCode returns true when this restart instance internal server error response a status code equal to that given
func (*RestartInstanceInternalServerError) IsRedirect ¶
func (o *RestartInstanceInternalServerError) IsRedirect() bool
IsRedirect returns true when this restart instance internal server error response has a 3xx status code
func (*RestartInstanceInternalServerError) IsServerError ¶
func (o *RestartInstanceInternalServerError) IsServerError() bool
IsServerError returns true when this restart instance internal server error response has a 5xx status code
func (*RestartInstanceInternalServerError) IsSuccess ¶
func (o *RestartInstanceInternalServerError) IsSuccess() bool
IsSuccess returns true when this restart instance internal server error response has a 2xx status code
func (*RestartInstanceInternalServerError) String ¶
func (o *RestartInstanceInternalServerError) String() string
type RestartInstanceNoContent ¶
type RestartInstanceNoContent struct { }
RestartInstanceNoContent describes a response with status code 204, with default header values.
No content
func NewRestartInstanceNoContent ¶
func NewRestartInstanceNoContent() *RestartInstanceNoContent
NewRestartInstanceNoContent creates a RestartInstanceNoContent with default headers values
func (*RestartInstanceNoContent) Code ¶
func (o *RestartInstanceNoContent) Code() int
Code gets the status code for the restart instance no content response
func (*RestartInstanceNoContent) Error ¶
func (o *RestartInstanceNoContent) Error() string
func (*RestartInstanceNoContent) IsClientError ¶
func (o *RestartInstanceNoContent) IsClientError() bool
IsClientError returns true when this restart instance no content response has a 4xx status code
func (*RestartInstanceNoContent) IsCode ¶
func (o *RestartInstanceNoContent) IsCode(code int) bool
IsCode returns true when this restart instance no content response a status code equal to that given
func (*RestartInstanceNoContent) IsRedirect ¶
func (o *RestartInstanceNoContent) IsRedirect() bool
IsRedirect returns true when this restart instance no content response has a 3xx status code
func (*RestartInstanceNoContent) IsServerError ¶
func (o *RestartInstanceNoContent) IsServerError() bool
IsServerError returns true when this restart instance no content response has a 5xx status code
func (*RestartInstanceNoContent) IsSuccess ¶
func (o *RestartInstanceNoContent) IsSuccess() bool
IsSuccess returns true when this restart instance no content response has a 2xx status code
func (*RestartInstanceNoContent) String ¶
func (o *RestartInstanceNoContent) String() string
type RestartInstanceParams ¶
type RestartInstanceParams struct { // InstanceName. InstanceName string // StackID. StackID string // WorkloadID. WorkloadID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RestartInstanceParams contains all the parameters to send to the API endpoint
for the restart instance operation. Typically these are written to a http.Request.
func NewRestartInstanceParams ¶
func NewRestartInstanceParams() *RestartInstanceParams
NewRestartInstanceParams creates a new RestartInstanceParams 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 NewRestartInstanceParamsWithContext ¶
func NewRestartInstanceParamsWithContext(ctx context.Context) *RestartInstanceParams
NewRestartInstanceParamsWithContext creates a new RestartInstanceParams object with the ability to set a context for a request.
func NewRestartInstanceParamsWithHTTPClient ¶
func NewRestartInstanceParamsWithHTTPClient(client *http.Client) *RestartInstanceParams
NewRestartInstanceParamsWithHTTPClient creates a new RestartInstanceParams object with the ability to set a custom HTTPClient for a request.
func NewRestartInstanceParamsWithTimeout ¶
func NewRestartInstanceParamsWithTimeout(timeout time.Duration) *RestartInstanceParams
NewRestartInstanceParamsWithTimeout creates a new RestartInstanceParams object with the ability to set a timeout on a request.
func (*RestartInstanceParams) SetContext ¶
func (o *RestartInstanceParams) SetContext(ctx context.Context)
SetContext adds the context to the restart instance params
func (*RestartInstanceParams) SetDefaults ¶
func (o *RestartInstanceParams) SetDefaults()
SetDefaults hydrates default values in the restart instance params (not the query body).
All values with no default are reset to their zero value.
func (*RestartInstanceParams) SetHTTPClient ¶
func (o *RestartInstanceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the restart instance params
func (*RestartInstanceParams) SetInstanceName ¶
func (o *RestartInstanceParams) SetInstanceName(instanceName string)
SetInstanceName adds the instanceName to the restart instance params
func (*RestartInstanceParams) SetStackID ¶
func (o *RestartInstanceParams) SetStackID(stackID string)
SetStackID adds the stackId to the restart instance params
func (*RestartInstanceParams) SetTimeout ¶
func (o *RestartInstanceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the restart instance params
func (*RestartInstanceParams) SetWorkloadID ¶
func (o *RestartInstanceParams) SetWorkloadID(workloadID string)
SetWorkloadID adds the workloadId to the restart instance params
func (*RestartInstanceParams) WithContext ¶
func (o *RestartInstanceParams) WithContext(ctx context.Context) *RestartInstanceParams
WithContext adds the context to the restart instance params
func (*RestartInstanceParams) WithDefaults ¶
func (o *RestartInstanceParams) WithDefaults() *RestartInstanceParams
WithDefaults hydrates default values in the restart instance params (not the query body).
All values with no default are reset to their zero value.
func (*RestartInstanceParams) WithHTTPClient ¶
func (o *RestartInstanceParams) WithHTTPClient(client *http.Client) *RestartInstanceParams
WithHTTPClient adds the HTTPClient to the restart instance params
func (*RestartInstanceParams) WithInstanceName ¶
func (o *RestartInstanceParams) WithInstanceName(instanceName string) *RestartInstanceParams
WithInstanceName adds the instanceName to the restart instance params
func (*RestartInstanceParams) WithStackID ¶
func (o *RestartInstanceParams) WithStackID(stackID string) *RestartInstanceParams
WithStackID adds the stackID to the restart instance params
func (*RestartInstanceParams) WithTimeout ¶
func (o *RestartInstanceParams) WithTimeout(timeout time.Duration) *RestartInstanceParams
WithTimeout adds the timeout to the restart instance params
func (*RestartInstanceParams) WithWorkloadID ¶
func (o *RestartInstanceParams) WithWorkloadID(workloadID string) *RestartInstanceParams
WithWorkloadID adds the workloadID to the restart instance params
func (*RestartInstanceParams) WriteToRequest ¶
func (o *RestartInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RestartInstanceReader ¶
type RestartInstanceReader struct {
// contains filtered or unexported fields
}
RestartInstanceReader is a Reader for the RestartInstance structure.
func (*RestartInstanceReader) ReadResponse ¶
func (o *RestartInstanceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RestartInstanceUnauthorized ¶
type RestartInstanceUnauthorized struct {
}RestartInstanceUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewRestartInstanceUnauthorized ¶
func NewRestartInstanceUnauthorized() *RestartInstanceUnauthorized
NewRestartInstanceUnauthorized creates a RestartInstanceUnauthorized with default headers values
func (*RestartInstanceUnauthorized) Code ¶
func (o *RestartInstanceUnauthorized) Code() int
Code gets the status code for the restart instance unauthorized response
func (*RestartInstanceUnauthorized) Error ¶
func (o *RestartInstanceUnauthorized) Error() string
func (*RestartInstanceUnauthorized) GetPayload ¶
func (o *RestartInstanceUnauthorized) GetPayload() *workload_models.StackpathapiStatus
func (*RestartInstanceUnauthorized) IsClientError ¶
func (o *RestartInstanceUnauthorized) IsClientError() bool
IsClientError returns true when this restart instance unauthorized response has a 4xx status code
func (*RestartInstanceUnauthorized) IsCode ¶
func (o *RestartInstanceUnauthorized) IsCode(code int) bool
IsCode returns true when this restart instance unauthorized response a status code equal to that given
func (*RestartInstanceUnauthorized) IsRedirect ¶
func (o *RestartInstanceUnauthorized) IsRedirect() bool
IsRedirect returns true when this restart instance unauthorized response has a 3xx status code
func (*RestartInstanceUnauthorized) IsServerError ¶
func (o *RestartInstanceUnauthorized) IsServerError() bool
IsServerError returns true when this restart instance unauthorized response has a 5xx status code
func (*RestartInstanceUnauthorized) IsSuccess ¶
func (o *RestartInstanceUnauthorized) IsSuccess() bool
IsSuccess returns true when this restart instance unauthorized response has a 2xx status code
func (*RestartInstanceUnauthorized) String ¶
func (o *RestartInstanceUnauthorized) String() string
Source Files
¶
- get_workload_instance_initial_password_parameters.go
- get_workload_instance_initial_password_responses.go
- get_workload_instance_parameters.go
- get_workload_instance_responses.go
- get_workload_instances_parameters.go
- get_workload_instances_responses.go
- instance_client.go
- restart_instance_parameters.go
- restart_instance_responses.go