Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateWorkload(params *CreateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateWorkloadOK, error)
- func (a *Client) DeleteWorkload(params *DeleteWorkloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteWorkloadNoContent, error)
- func (a *Client) GetLocations(params *GetLocationsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetLocationsOK, error)
- func (a *Client) GetWorkload(params *GetWorkloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetWorkloadOK, error)
- func (a *Client) GetWorkloads(params *GetWorkloadsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetWorkloadsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateWorkload(params *UpdateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateWorkloadOK, error)
- type ClientOption
- type ClientService
- type CreateWorkloadDefault
- type CreateWorkloadInternalServerError
- type CreateWorkloadOK
- type CreateWorkloadParams
- func NewCreateWorkloadParams() *CreateWorkloadParams
- func NewCreateWorkloadParamsWithContext(ctx context.Context) *CreateWorkloadParams
- func NewCreateWorkloadParamsWithHTTPClient(client *http.Client) *CreateWorkloadParams
- func NewCreateWorkloadParamsWithTimeout(timeout time.Duration) *CreateWorkloadParams
- func (o *CreateWorkloadParams) SetBody(body *workload_models.V1CreateWorkloadRequest)
- func (o *CreateWorkloadParams) SetContext(ctx context.Context)
- func (o *CreateWorkloadParams) SetDefaults()
- func (o *CreateWorkloadParams) SetHTTPClient(client *http.Client)
- func (o *CreateWorkloadParams) SetStackID(stackID string)
- func (o *CreateWorkloadParams) SetTimeout(timeout time.Duration)
- func (o *CreateWorkloadParams) WithBody(body *workload_models.V1CreateWorkloadRequest) *CreateWorkloadParams
- func (o *CreateWorkloadParams) WithContext(ctx context.Context) *CreateWorkloadParams
- func (o *CreateWorkloadParams) WithDefaults() *CreateWorkloadParams
- func (o *CreateWorkloadParams) WithHTTPClient(client *http.Client) *CreateWorkloadParams
- func (o *CreateWorkloadParams) WithStackID(stackID string) *CreateWorkloadParams
- func (o *CreateWorkloadParams) WithTimeout(timeout time.Duration) *CreateWorkloadParams
- func (o *CreateWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateWorkloadReader
- type CreateWorkloadUnauthorized
- type DeleteWorkloadDefault
- type DeleteWorkloadInternalServerError
- type DeleteWorkloadNoContent
- type DeleteWorkloadParams
- func NewDeleteWorkloadParams() *DeleteWorkloadParams
- func NewDeleteWorkloadParamsWithContext(ctx context.Context) *DeleteWorkloadParams
- func NewDeleteWorkloadParamsWithHTTPClient(client *http.Client) *DeleteWorkloadParams
- func NewDeleteWorkloadParamsWithTimeout(timeout time.Duration) *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) SetContext(ctx context.Context)
- func (o *DeleteWorkloadParams) SetDefaults()
- func (o *DeleteWorkloadParams) SetHTTPClient(client *http.Client)
- func (o *DeleteWorkloadParams) SetStackID(stackID string)
- func (o *DeleteWorkloadParams) SetTimeout(timeout time.Duration)
- func (o *DeleteWorkloadParams) SetWorkloadID(workloadID string)
- func (o *DeleteWorkloadParams) WithContext(ctx context.Context) *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) WithDefaults() *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) WithHTTPClient(client *http.Client) *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) WithStackID(stackID string) *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) WithTimeout(timeout time.Duration) *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) WithWorkloadID(workloadID string) *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteWorkloadReader
- type DeleteWorkloadUnauthorized
- type GetLocationsDefault
- type GetLocationsInternalServerError
- type GetLocationsOK
- type GetLocationsParams
- func (o *GetLocationsParams) SetContext(ctx context.Context)
- func (o *GetLocationsParams) SetDefaults()
- func (o *GetLocationsParams) SetHTTPClient(client *http.Client)
- func (o *GetLocationsParams) SetPageRequestAfter(pageRequestAfter *string)
- func (o *GetLocationsParams) SetPageRequestFilter(pageRequestFilter *string)
- func (o *GetLocationsParams) SetPageRequestFirst(pageRequestFirst *string)
- func (o *GetLocationsParams) SetPageRequestSortBy(pageRequestSortBy *string)
- func (o *GetLocationsParams) SetTimeout(timeout time.Duration)
- func (o *GetLocationsParams) WithContext(ctx context.Context) *GetLocationsParams
- func (o *GetLocationsParams) WithDefaults() *GetLocationsParams
- func (o *GetLocationsParams) WithHTTPClient(client *http.Client) *GetLocationsParams
- func (o *GetLocationsParams) WithPageRequestAfter(pageRequestAfter *string) *GetLocationsParams
- func (o *GetLocationsParams) WithPageRequestFilter(pageRequestFilter *string) *GetLocationsParams
- func (o *GetLocationsParams) WithPageRequestFirst(pageRequestFirst *string) *GetLocationsParams
- func (o *GetLocationsParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetLocationsParams
- func (o *GetLocationsParams) WithTimeout(timeout time.Duration) *GetLocationsParams
- func (o *GetLocationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLocationsReader
- type GetLocationsUnauthorized
- type GetWorkloadDefault
- type GetWorkloadInternalServerError
- type GetWorkloadOK
- type GetWorkloadParams
- func (o *GetWorkloadParams) SetContext(ctx context.Context)
- func (o *GetWorkloadParams) SetDefaults()
- func (o *GetWorkloadParams) SetHTTPClient(client *http.Client)
- func (o *GetWorkloadParams) SetStackID(stackID string)
- func (o *GetWorkloadParams) SetTimeout(timeout time.Duration)
- func (o *GetWorkloadParams) SetWorkloadID(workloadID string)
- func (o *GetWorkloadParams) WithContext(ctx context.Context) *GetWorkloadParams
- func (o *GetWorkloadParams) WithDefaults() *GetWorkloadParams
- func (o *GetWorkloadParams) WithHTTPClient(client *http.Client) *GetWorkloadParams
- func (o *GetWorkloadParams) WithStackID(stackID string) *GetWorkloadParams
- func (o *GetWorkloadParams) WithTimeout(timeout time.Duration) *GetWorkloadParams
- func (o *GetWorkloadParams) WithWorkloadID(workloadID string) *GetWorkloadParams
- func (o *GetWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWorkloadReader
- type GetWorkloadUnauthorized
- type GetWorkloadsDefault
- type GetWorkloadsInternalServerError
- type GetWorkloadsOK
- type GetWorkloadsParams
- func (o *GetWorkloadsParams) SetContext(ctx context.Context)
- func (o *GetWorkloadsParams) SetDefaults()
- func (o *GetWorkloadsParams) SetHTTPClient(client *http.Client)
- func (o *GetWorkloadsParams) SetPageRequestAfter(pageRequestAfter *string)
- func (o *GetWorkloadsParams) SetPageRequestFilter(pageRequestFilter *string)
- func (o *GetWorkloadsParams) SetPageRequestFirst(pageRequestFirst *string)
- func (o *GetWorkloadsParams) SetPageRequestSortBy(pageRequestSortBy *string)
- func (o *GetWorkloadsParams) SetStackID(stackID string)
- func (o *GetWorkloadsParams) SetTimeout(timeout time.Duration)
- func (o *GetWorkloadsParams) WithContext(ctx context.Context) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithDefaults() *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithHTTPClient(client *http.Client) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithPageRequestAfter(pageRequestAfter *string) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithPageRequestFilter(pageRequestFilter *string) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithPageRequestFirst(pageRequestFirst *string) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithStackID(stackID string) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithTimeout(timeout time.Duration) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWorkloadsReader
- type GetWorkloadsUnauthorized
- type UpdateWorkloadDefault
- type UpdateWorkloadInternalServerError
- type UpdateWorkloadOK
- type UpdateWorkloadParams
- func NewUpdateWorkloadParams() *UpdateWorkloadParams
- func NewUpdateWorkloadParamsWithContext(ctx context.Context) *UpdateWorkloadParams
- func NewUpdateWorkloadParamsWithHTTPClient(client *http.Client) *UpdateWorkloadParams
- func NewUpdateWorkloadParamsWithTimeout(timeout time.Duration) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) SetBody(body *workload_models.V1UpdateWorkloadRequest)
- func (o *UpdateWorkloadParams) SetContext(ctx context.Context)
- func (o *UpdateWorkloadParams) SetDefaults()
- func (o *UpdateWorkloadParams) SetHTTPClient(client *http.Client)
- func (o *UpdateWorkloadParams) SetStackID(stackID string)
- func (o *UpdateWorkloadParams) SetTimeout(timeout time.Duration)
- func (o *UpdateWorkloadParams) SetWorkloadID(workloadID string)
- func (o *UpdateWorkloadParams) WithBody(body *workload_models.V1UpdateWorkloadRequest) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WithContext(ctx context.Context) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WithDefaults() *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WithHTTPClient(client *http.Client) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WithStackID(stackID string) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WithTimeout(timeout time.Duration) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WithWorkloadID(workloadID string) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateWorkloadReader
- type UpdateWorkloadUnauthorized
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 workloads API
func (*Client) CreateWorkload ¶
func (a *Client) CreateWorkload(params *CreateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateWorkloadOK, error)
CreateWorkload creates a new workload
func (*Client) DeleteWorkload ¶
func (a *Client) DeleteWorkload(params *DeleteWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteWorkloadNoContent, error)
DeleteWorkload deletes a workload
func (*Client) GetLocations ¶
func (a *Client) GetLocations(params *GetLocationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLocationsOK, error)
GetLocations retrieves the locations a workload may be created in
func (*Client) GetWorkload ¶
func (a *Client) GetWorkload(params *GetWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadOK, error)
GetWorkload retrieves an individual workload
func (*Client) GetWorkloads ¶
func (a *Client) GetWorkloads(params *GetWorkloadsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadsOK, error)
GetWorkloads retrieves a stack s workloads
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateWorkload ¶
func (a *Client) UpdateWorkload(params *UpdateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWorkloadOK, error)
UpdateWorkload updates a workload
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateWorkload(params *CreateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateWorkloadOK, error) DeleteWorkload(params *DeleteWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteWorkloadNoContent, error) GetLocations(params *GetLocationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLocationsOK, error) GetWorkload(params *GetWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadOK, error) GetWorkloads(params *GetWorkloadsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadsOK, error) UpdateWorkload(params *UpdateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWorkloadOK, 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 workloads API client.
type CreateWorkloadDefault ¶
type CreateWorkloadDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
CreateWorkloadDefault describes a response with status code -1, with default header values.
Default error structure.
func NewCreateWorkloadDefault ¶
func NewCreateWorkloadDefault(code int) *CreateWorkloadDefault
NewCreateWorkloadDefault creates a CreateWorkloadDefault with default headers values
func (*CreateWorkloadDefault) Code ¶
func (o *CreateWorkloadDefault) Code() int
Code gets the status code for the create workload default response
func (*CreateWorkloadDefault) Error ¶
func (o *CreateWorkloadDefault) Error() string
func (*CreateWorkloadDefault) GetPayload ¶
func (o *CreateWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
type CreateWorkloadInternalServerError ¶
type CreateWorkloadInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
CreateWorkloadInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewCreateWorkloadInternalServerError ¶
func NewCreateWorkloadInternalServerError() *CreateWorkloadInternalServerError
NewCreateWorkloadInternalServerError creates a CreateWorkloadInternalServerError with default headers values
func (*CreateWorkloadInternalServerError) Error ¶
func (o *CreateWorkloadInternalServerError) Error() string
func (*CreateWorkloadInternalServerError) GetPayload ¶
func (o *CreateWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
type CreateWorkloadOK ¶
type CreateWorkloadOK struct {
Payload *workload_models.V1CreateWorkloadResponse
}
CreateWorkloadOK describes a response with status code 200, with default header values.
CreateWorkloadOK create workload o k
func NewCreateWorkloadOK ¶
func NewCreateWorkloadOK() *CreateWorkloadOK
NewCreateWorkloadOK creates a CreateWorkloadOK with default headers values
func (*CreateWorkloadOK) Error ¶
func (o *CreateWorkloadOK) Error() string
func (*CreateWorkloadOK) GetPayload ¶
func (o *CreateWorkloadOK) GetPayload() *workload_models.V1CreateWorkloadResponse
type CreateWorkloadParams ¶
type CreateWorkloadParams struct { // Body. Body *workload_models.V1CreateWorkloadRequest /* StackID. The ID of the stack to create the workload in */ StackID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateWorkloadParams contains all the parameters to send to the API endpoint
for the create workload operation. Typically these are written to a http.Request.
func NewCreateWorkloadParams ¶
func NewCreateWorkloadParams() *CreateWorkloadParams
NewCreateWorkloadParams creates a new CreateWorkloadParams 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 NewCreateWorkloadParamsWithContext ¶
func NewCreateWorkloadParamsWithContext(ctx context.Context) *CreateWorkloadParams
NewCreateWorkloadParamsWithContext creates a new CreateWorkloadParams object with the ability to set a context for a request.
func NewCreateWorkloadParamsWithHTTPClient ¶
func NewCreateWorkloadParamsWithHTTPClient(client *http.Client) *CreateWorkloadParams
NewCreateWorkloadParamsWithHTTPClient creates a new CreateWorkloadParams object with the ability to set a custom HTTPClient for a request.
func NewCreateWorkloadParamsWithTimeout ¶
func NewCreateWorkloadParamsWithTimeout(timeout time.Duration) *CreateWorkloadParams
NewCreateWorkloadParamsWithTimeout creates a new CreateWorkloadParams object with the ability to set a timeout on a request.
func (*CreateWorkloadParams) SetBody ¶
func (o *CreateWorkloadParams) SetBody(body *workload_models.V1CreateWorkloadRequest)
SetBody adds the body to the create workload params
func (*CreateWorkloadParams) SetContext ¶
func (o *CreateWorkloadParams) SetContext(ctx context.Context)
SetContext adds the context to the create workload params
func (*CreateWorkloadParams) SetDefaults ¶
func (o *CreateWorkloadParams) SetDefaults()
SetDefaults hydrates default values in the create workload params (not the query body).
All values with no default are reset to their zero value.
func (*CreateWorkloadParams) SetHTTPClient ¶
func (o *CreateWorkloadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create workload params
func (*CreateWorkloadParams) SetStackID ¶
func (o *CreateWorkloadParams) SetStackID(stackID string)
SetStackID adds the stackId to the create workload params
func (*CreateWorkloadParams) SetTimeout ¶
func (o *CreateWorkloadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create workload params
func (*CreateWorkloadParams) WithBody ¶
func (o *CreateWorkloadParams) WithBody(body *workload_models.V1CreateWorkloadRequest) *CreateWorkloadParams
WithBody adds the body to the create workload params
func (*CreateWorkloadParams) WithContext ¶
func (o *CreateWorkloadParams) WithContext(ctx context.Context) *CreateWorkloadParams
WithContext adds the context to the create workload params
func (*CreateWorkloadParams) WithDefaults ¶
func (o *CreateWorkloadParams) WithDefaults() *CreateWorkloadParams
WithDefaults hydrates default values in the create workload params (not the query body).
All values with no default are reset to their zero value.
func (*CreateWorkloadParams) WithHTTPClient ¶
func (o *CreateWorkloadParams) WithHTTPClient(client *http.Client) *CreateWorkloadParams
WithHTTPClient adds the HTTPClient to the create workload params
func (*CreateWorkloadParams) WithStackID ¶
func (o *CreateWorkloadParams) WithStackID(stackID string) *CreateWorkloadParams
WithStackID adds the stackID to the create workload params
func (*CreateWorkloadParams) WithTimeout ¶
func (o *CreateWorkloadParams) WithTimeout(timeout time.Duration) *CreateWorkloadParams
WithTimeout adds the timeout to the create workload params
func (*CreateWorkloadParams) WriteToRequest ¶
func (o *CreateWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateWorkloadReader ¶
type CreateWorkloadReader struct {
// contains filtered or unexported fields
}
CreateWorkloadReader is a Reader for the CreateWorkload structure.
func (*CreateWorkloadReader) ReadResponse ¶
func (o *CreateWorkloadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateWorkloadUnauthorized ¶
type CreateWorkloadUnauthorized struct {
}CreateWorkloadUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewCreateWorkloadUnauthorized ¶
func NewCreateWorkloadUnauthorized() *CreateWorkloadUnauthorized
NewCreateWorkloadUnauthorized creates a CreateWorkloadUnauthorized with default headers values
func (*CreateWorkloadUnauthorized) Error ¶
func (o *CreateWorkloadUnauthorized) Error() string
func (*CreateWorkloadUnauthorized) GetPayload ¶
func (o *CreateWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
type DeleteWorkloadDefault ¶
type DeleteWorkloadDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
DeleteWorkloadDefault describes a response with status code -1, with default header values.
Default error structure.
func NewDeleteWorkloadDefault ¶
func NewDeleteWorkloadDefault(code int) *DeleteWorkloadDefault
NewDeleteWorkloadDefault creates a DeleteWorkloadDefault with default headers values
func (*DeleteWorkloadDefault) Code ¶
func (o *DeleteWorkloadDefault) Code() int
Code gets the status code for the delete workload default response
func (*DeleteWorkloadDefault) Error ¶
func (o *DeleteWorkloadDefault) Error() string
func (*DeleteWorkloadDefault) GetPayload ¶
func (o *DeleteWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
type DeleteWorkloadInternalServerError ¶
type DeleteWorkloadInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
DeleteWorkloadInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewDeleteWorkloadInternalServerError ¶
func NewDeleteWorkloadInternalServerError() *DeleteWorkloadInternalServerError
NewDeleteWorkloadInternalServerError creates a DeleteWorkloadInternalServerError with default headers values
func (*DeleteWorkloadInternalServerError) Error ¶
func (o *DeleteWorkloadInternalServerError) Error() string
func (*DeleteWorkloadInternalServerError) GetPayload ¶
func (o *DeleteWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
type DeleteWorkloadNoContent ¶
type DeleteWorkloadNoContent struct { }
DeleteWorkloadNoContent describes a response with status code 204, with default header values.
No content
func NewDeleteWorkloadNoContent ¶
func NewDeleteWorkloadNoContent() *DeleteWorkloadNoContent
NewDeleteWorkloadNoContent creates a DeleteWorkloadNoContent with default headers values
func (*DeleteWorkloadNoContent) Error ¶
func (o *DeleteWorkloadNoContent) Error() string
type DeleteWorkloadParams ¶
type DeleteWorkloadParams struct { /* StackID. The ID of the stack containing the workload to delete */ StackID string /* WorkloadID. The ID of the workload to delete */ WorkloadID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteWorkloadParams contains all the parameters to send to the API endpoint
for the delete workload operation. Typically these are written to a http.Request.
func NewDeleteWorkloadParams ¶
func NewDeleteWorkloadParams() *DeleteWorkloadParams
NewDeleteWorkloadParams creates a new DeleteWorkloadParams 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 NewDeleteWorkloadParamsWithContext ¶
func NewDeleteWorkloadParamsWithContext(ctx context.Context) *DeleteWorkloadParams
NewDeleteWorkloadParamsWithContext creates a new DeleteWorkloadParams object with the ability to set a context for a request.
func NewDeleteWorkloadParamsWithHTTPClient ¶
func NewDeleteWorkloadParamsWithHTTPClient(client *http.Client) *DeleteWorkloadParams
NewDeleteWorkloadParamsWithHTTPClient creates a new DeleteWorkloadParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteWorkloadParamsWithTimeout ¶
func NewDeleteWorkloadParamsWithTimeout(timeout time.Duration) *DeleteWorkloadParams
NewDeleteWorkloadParamsWithTimeout creates a new DeleteWorkloadParams object with the ability to set a timeout on a request.
func (*DeleteWorkloadParams) SetContext ¶
func (o *DeleteWorkloadParams) SetContext(ctx context.Context)
SetContext adds the context to the delete workload params
func (*DeleteWorkloadParams) SetDefaults ¶
func (o *DeleteWorkloadParams) SetDefaults()
SetDefaults hydrates default values in the delete workload params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteWorkloadParams) SetHTTPClient ¶
func (o *DeleteWorkloadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete workload params
func (*DeleteWorkloadParams) SetStackID ¶
func (o *DeleteWorkloadParams) SetStackID(stackID string)
SetStackID adds the stackId to the delete workload params
func (*DeleteWorkloadParams) SetTimeout ¶
func (o *DeleteWorkloadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete workload params
func (*DeleteWorkloadParams) SetWorkloadID ¶
func (o *DeleteWorkloadParams) SetWorkloadID(workloadID string)
SetWorkloadID adds the workloadId to the delete workload params
func (*DeleteWorkloadParams) WithContext ¶
func (o *DeleteWorkloadParams) WithContext(ctx context.Context) *DeleteWorkloadParams
WithContext adds the context to the delete workload params
func (*DeleteWorkloadParams) WithDefaults ¶
func (o *DeleteWorkloadParams) WithDefaults() *DeleteWorkloadParams
WithDefaults hydrates default values in the delete workload params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteWorkloadParams) WithHTTPClient ¶
func (o *DeleteWorkloadParams) WithHTTPClient(client *http.Client) *DeleteWorkloadParams
WithHTTPClient adds the HTTPClient to the delete workload params
func (*DeleteWorkloadParams) WithStackID ¶
func (o *DeleteWorkloadParams) WithStackID(stackID string) *DeleteWorkloadParams
WithStackID adds the stackID to the delete workload params
func (*DeleteWorkloadParams) WithTimeout ¶
func (o *DeleteWorkloadParams) WithTimeout(timeout time.Duration) *DeleteWorkloadParams
WithTimeout adds the timeout to the delete workload params
func (*DeleteWorkloadParams) WithWorkloadID ¶
func (o *DeleteWorkloadParams) WithWorkloadID(workloadID string) *DeleteWorkloadParams
WithWorkloadID adds the workloadID to the delete workload params
func (*DeleteWorkloadParams) WriteToRequest ¶
func (o *DeleteWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteWorkloadReader ¶
type DeleteWorkloadReader struct {
// contains filtered or unexported fields
}
DeleteWorkloadReader is a Reader for the DeleteWorkload structure.
func (*DeleteWorkloadReader) ReadResponse ¶
func (o *DeleteWorkloadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteWorkloadUnauthorized ¶
type DeleteWorkloadUnauthorized struct {
}DeleteWorkloadUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewDeleteWorkloadUnauthorized ¶
func NewDeleteWorkloadUnauthorized() *DeleteWorkloadUnauthorized
NewDeleteWorkloadUnauthorized creates a DeleteWorkloadUnauthorized with default headers values
func (*DeleteWorkloadUnauthorized) Error ¶
func (o *DeleteWorkloadUnauthorized) Error() string
func (*DeleteWorkloadUnauthorized) GetPayload ¶
func (o *DeleteWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
type GetLocationsDefault ¶
type GetLocationsDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
GetLocationsDefault describes a response with status code -1, with default header values.
Default error structure.
func NewGetLocationsDefault ¶
func NewGetLocationsDefault(code int) *GetLocationsDefault
NewGetLocationsDefault creates a GetLocationsDefault with default headers values
func (*GetLocationsDefault) Code ¶
func (o *GetLocationsDefault) Code() int
Code gets the status code for the get locations default response
func (*GetLocationsDefault) Error ¶
func (o *GetLocationsDefault) Error() string
func (*GetLocationsDefault) GetPayload ¶
func (o *GetLocationsDefault) GetPayload() *workload_models.StackpathapiStatus
type GetLocationsInternalServerError ¶
type GetLocationsInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
GetLocationsInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewGetLocationsInternalServerError ¶
func NewGetLocationsInternalServerError() *GetLocationsInternalServerError
NewGetLocationsInternalServerError creates a GetLocationsInternalServerError with default headers values
func (*GetLocationsInternalServerError) Error ¶
func (o *GetLocationsInternalServerError) Error() string
func (*GetLocationsInternalServerError) GetPayload ¶
func (o *GetLocationsInternalServerError) GetPayload() *workload_models.StackpathapiStatus
type GetLocationsOK ¶
type GetLocationsOK struct {
Payload *workload_models.V1GetLocationsResponse
}
GetLocationsOK describes a response with status code 200, with default header values.
GetLocationsOK get locations o k
func NewGetLocationsOK ¶
func NewGetLocationsOK() *GetLocationsOK
NewGetLocationsOK creates a GetLocationsOK with default headers values
func (*GetLocationsOK) Error ¶
func (o *GetLocationsOK) Error() string
func (*GetLocationsOK) GetPayload ¶
func (o *GetLocationsOK) GetPayload() *workload_models.V1GetLocationsResponse
type GetLocationsParams ¶
type GetLocationsParams 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 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetLocationsParams contains all the parameters to send to the API endpoint
for the get locations operation. Typically these are written to a http.Request.
func NewGetLocationsParams ¶
func NewGetLocationsParams() *GetLocationsParams
NewGetLocationsParams creates a new GetLocationsParams 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 NewGetLocationsParamsWithContext ¶
func NewGetLocationsParamsWithContext(ctx context.Context) *GetLocationsParams
NewGetLocationsParamsWithContext creates a new GetLocationsParams object with the ability to set a context for a request.
func NewGetLocationsParamsWithHTTPClient ¶
func NewGetLocationsParamsWithHTTPClient(client *http.Client) *GetLocationsParams
NewGetLocationsParamsWithHTTPClient creates a new GetLocationsParams object with the ability to set a custom HTTPClient for a request.
func NewGetLocationsParamsWithTimeout ¶
func NewGetLocationsParamsWithTimeout(timeout time.Duration) *GetLocationsParams
NewGetLocationsParamsWithTimeout creates a new GetLocationsParams object with the ability to set a timeout on a request.
func (*GetLocationsParams) SetContext ¶
func (o *GetLocationsParams) SetContext(ctx context.Context)
SetContext adds the context to the get locations params
func (*GetLocationsParams) SetDefaults ¶
func (o *GetLocationsParams) SetDefaults()
SetDefaults hydrates default values in the get locations params (not the query body).
All values with no default are reset to their zero value.
func (*GetLocationsParams) SetHTTPClient ¶
func (o *GetLocationsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get locations params
func (*GetLocationsParams) SetPageRequestAfter ¶
func (o *GetLocationsParams) SetPageRequestAfter(pageRequestAfter *string)
SetPageRequestAfter adds the pageRequestAfter to the get locations params
func (*GetLocationsParams) SetPageRequestFilter ¶
func (o *GetLocationsParams) SetPageRequestFilter(pageRequestFilter *string)
SetPageRequestFilter adds the pageRequestFilter to the get locations params
func (*GetLocationsParams) SetPageRequestFirst ¶
func (o *GetLocationsParams) SetPageRequestFirst(pageRequestFirst *string)
SetPageRequestFirst adds the pageRequestFirst to the get locations params
func (*GetLocationsParams) SetPageRequestSortBy ¶
func (o *GetLocationsParams) SetPageRequestSortBy(pageRequestSortBy *string)
SetPageRequestSortBy adds the pageRequestSortBy to the get locations params
func (*GetLocationsParams) SetTimeout ¶
func (o *GetLocationsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get locations params
func (*GetLocationsParams) WithContext ¶
func (o *GetLocationsParams) WithContext(ctx context.Context) *GetLocationsParams
WithContext adds the context to the get locations params
func (*GetLocationsParams) WithDefaults ¶
func (o *GetLocationsParams) WithDefaults() *GetLocationsParams
WithDefaults hydrates default values in the get locations params (not the query body).
All values with no default are reset to their zero value.
func (*GetLocationsParams) WithHTTPClient ¶
func (o *GetLocationsParams) WithHTTPClient(client *http.Client) *GetLocationsParams
WithHTTPClient adds the HTTPClient to the get locations params
func (*GetLocationsParams) WithPageRequestAfter ¶
func (o *GetLocationsParams) WithPageRequestAfter(pageRequestAfter *string) *GetLocationsParams
WithPageRequestAfter adds the pageRequestAfter to the get locations params
func (*GetLocationsParams) WithPageRequestFilter ¶
func (o *GetLocationsParams) WithPageRequestFilter(pageRequestFilter *string) *GetLocationsParams
WithPageRequestFilter adds the pageRequestFilter to the get locations params
func (*GetLocationsParams) WithPageRequestFirst ¶
func (o *GetLocationsParams) WithPageRequestFirst(pageRequestFirst *string) *GetLocationsParams
WithPageRequestFirst adds the pageRequestFirst to the get locations params
func (*GetLocationsParams) WithPageRequestSortBy ¶
func (o *GetLocationsParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetLocationsParams
WithPageRequestSortBy adds the pageRequestSortBy to the get locations params
func (*GetLocationsParams) WithTimeout ¶
func (o *GetLocationsParams) WithTimeout(timeout time.Duration) *GetLocationsParams
WithTimeout adds the timeout to the get locations params
func (*GetLocationsParams) WriteToRequest ¶
func (o *GetLocationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetLocationsReader ¶
type GetLocationsReader struct {
// contains filtered or unexported fields
}
GetLocationsReader is a Reader for the GetLocations structure.
func (*GetLocationsReader) ReadResponse ¶
func (o *GetLocationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetLocationsUnauthorized ¶
type GetLocationsUnauthorized struct {
}GetLocationsUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewGetLocationsUnauthorized ¶
func NewGetLocationsUnauthorized() *GetLocationsUnauthorized
NewGetLocationsUnauthorized creates a GetLocationsUnauthorized with default headers values
func (*GetLocationsUnauthorized) Error ¶
func (o *GetLocationsUnauthorized) Error() string
func (*GetLocationsUnauthorized) GetPayload ¶
func (o *GetLocationsUnauthorized) GetPayload() *workload_models.StackpathapiStatus
type GetWorkloadDefault ¶
type GetWorkloadDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
GetWorkloadDefault describes a response with status code -1, with default header values.
Default error structure.
func NewGetWorkloadDefault ¶
func NewGetWorkloadDefault(code int) *GetWorkloadDefault
NewGetWorkloadDefault creates a GetWorkloadDefault with default headers values
func (*GetWorkloadDefault) Code ¶
func (o *GetWorkloadDefault) Code() int
Code gets the status code for the get workload default response
func (*GetWorkloadDefault) Error ¶
func (o *GetWorkloadDefault) Error() string
func (*GetWorkloadDefault) GetPayload ¶
func (o *GetWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
type GetWorkloadInternalServerError ¶
type GetWorkloadInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
GetWorkloadInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewGetWorkloadInternalServerError ¶
func NewGetWorkloadInternalServerError() *GetWorkloadInternalServerError
NewGetWorkloadInternalServerError creates a GetWorkloadInternalServerError with default headers values
func (*GetWorkloadInternalServerError) Error ¶
func (o *GetWorkloadInternalServerError) Error() string
func (*GetWorkloadInternalServerError) GetPayload ¶
func (o *GetWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
type GetWorkloadOK ¶
type GetWorkloadOK struct {
Payload *workload_models.V1GetWorkloadResponse
}
GetWorkloadOK describes a response with status code 200, with default header values.
GetWorkloadOK get workload o k
func NewGetWorkloadOK ¶
func NewGetWorkloadOK() *GetWorkloadOK
NewGetWorkloadOK creates a GetWorkloadOK with default headers values
func (*GetWorkloadOK) Error ¶
func (o *GetWorkloadOK) Error() string
func (*GetWorkloadOK) GetPayload ¶
func (o *GetWorkloadOK) GetPayload() *workload_models.V1GetWorkloadResponse
type GetWorkloadParams ¶
type GetWorkloadParams struct { /* StackID. The ID of the stack containing the workload to retrieve */ StackID string /* WorkloadID. The ID the workload to retrieve */ WorkloadID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWorkloadParams contains all the parameters to send to the API endpoint
for the get workload operation. Typically these are written to a http.Request.
func NewGetWorkloadParams ¶
func NewGetWorkloadParams() *GetWorkloadParams
NewGetWorkloadParams creates a new GetWorkloadParams 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 NewGetWorkloadParamsWithContext ¶
func NewGetWorkloadParamsWithContext(ctx context.Context) *GetWorkloadParams
NewGetWorkloadParamsWithContext creates a new GetWorkloadParams object with the ability to set a context for a request.
func NewGetWorkloadParamsWithHTTPClient ¶
func NewGetWorkloadParamsWithHTTPClient(client *http.Client) *GetWorkloadParams
NewGetWorkloadParamsWithHTTPClient creates a new GetWorkloadParams object with the ability to set a custom HTTPClient for a request.
func NewGetWorkloadParamsWithTimeout ¶
func NewGetWorkloadParamsWithTimeout(timeout time.Duration) *GetWorkloadParams
NewGetWorkloadParamsWithTimeout creates a new GetWorkloadParams object with the ability to set a timeout on a request.
func (*GetWorkloadParams) SetContext ¶
func (o *GetWorkloadParams) SetContext(ctx context.Context)
SetContext adds the context to the get workload params
func (*GetWorkloadParams) SetDefaults ¶
func (o *GetWorkloadParams) SetDefaults()
SetDefaults hydrates default values in the get workload params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadParams) SetHTTPClient ¶
func (o *GetWorkloadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get workload params
func (*GetWorkloadParams) SetStackID ¶
func (o *GetWorkloadParams) SetStackID(stackID string)
SetStackID adds the stackId to the get workload params
func (*GetWorkloadParams) SetTimeout ¶
func (o *GetWorkloadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get workload params
func (*GetWorkloadParams) SetWorkloadID ¶
func (o *GetWorkloadParams) SetWorkloadID(workloadID string)
SetWorkloadID adds the workloadId to the get workload params
func (*GetWorkloadParams) WithContext ¶
func (o *GetWorkloadParams) WithContext(ctx context.Context) *GetWorkloadParams
WithContext adds the context to the get workload params
func (*GetWorkloadParams) WithDefaults ¶
func (o *GetWorkloadParams) WithDefaults() *GetWorkloadParams
WithDefaults hydrates default values in the get workload params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadParams) WithHTTPClient ¶
func (o *GetWorkloadParams) WithHTTPClient(client *http.Client) *GetWorkloadParams
WithHTTPClient adds the HTTPClient to the get workload params
func (*GetWorkloadParams) WithStackID ¶
func (o *GetWorkloadParams) WithStackID(stackID string) *GetWorkloadParams
WithStackID adds the stackID to the get workload params
func (*GetWorkloadParams) WithTimeout ¶
func (o *GetWorkloadParams) WithTimeout(timeout time.Duration) *GetWorkloadParams
WithTimeout adds the timeout to the get workload params
func (*GetWorkloadParams) WithWorkloadID ¶
func (o *GetWorkloadParams) WithWorkloadID(workloadID string) *GetWorkloadParams
WithWorkloadID adds the workloadID to the get workload params
func (*GetWorkloadParams) WriteToRequest ¶
func (o *GetWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWorkloadReader ¶
type GetWorkloadReader struct {
// contains filtered or unexported fields
}
GetWorkloadReader is a Reader for the GetWorkload structure.
func (*GetWorkloadReader) ReadResponse ¶
func (o *GetWorkloadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWorkloadUnauthorized ¶
type GetWorkloadUnauthorized struct {
}GetWorkloadUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewGetWorkloadUnauthorized ¶
func NewGetWorkloadUnauthorized() *GetWorkloadUnauthorized
NewGetWorkloadUnauthorized creates a GetWorkloadUnauthorized with default headers values
func (*GetWorkloadUnauthorized) Error ¶
func (o *GetWorkloadUnauthorized) Error() string
func (*GetWorkloadUnauthorized) GetPayload ¶
func (o *GetWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
type GetWorkloadsDefault ¶
type GetWorkloadsDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
GetWorkloadsDefault describes a response with status code -1, with default header values.
Default error structure.
func NewGetWorkloadsDefault ¶
func NewGetWorkloadsDefault(code int) *GetWorkloadsDefault
NewGetWorkloadsDefault creates a GetWorkloadsDefault with default headers values
func (*GetWorkloadsDefault) Code ¶
func (o *GetWorkloadsDefault) Code() int
Code gets the status code for the get workloads default response
func (*GetWorkloadsDefault) Error ¶
func (o *GetWorkloadsDefault) Error() string
func (*GetWorkloadsDefault) GetPayload ¶
func (o *GetWorkloadsDefault) GetPayload() *workload_models.StackpathapiStatus
type GetWorkloadsInternalServerError ¶
type GetWorkloadsInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
GetWorkloadsInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewGetWorkloadsInternalServerError ¶
func NewGetWorkloadsInternalServerError() *GetWorkloadsInternalServerError
NewGetWorkloadsInternalServerError creates a GetWorkloadsInternalServerError with default headers values
func (*GetWorkloadsInternalServerError) Error ¶
func (o *GetWorkloadsInternalServerError) Error() string
func (*GetWorkloadsInternalServerError) GetPayload ¶
func (o *GetWorkloadsInternalServerError) GetPayload() *workload_models.StackpathapiStatus
type GetWorkloadsOK ¶
type GetWorkloadsOK struct {
Payload *workload_models.V1GetWorkloadsResponse
}
GetWorkloadsOK describes a response with status code 200, with default header values.
GetWorkloadsOK get workloads o k
func NewGetWorkloadsOK ¶
func NewGetWorkloadsOK() *GetWorkloadsOK
NewGetWorkloadsOK creates a GetWorkloadsOK with default headers values
func (*GetWorkloadsOK) Error ¶
func (o *GetWorkloadsOK) Error() string
func (*GetWorkloadsOK) GetPayload ¶
func (o *GetWorkloadsOK) GetPayload() *workload_models.V1GetWorkloadsResponse
type GetWorkloadsParams ¶
type GetWorkloadsParams 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 to retrieve workloads from */ StackID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWorkloadsParams contains all the parameters to send to the API endpoint
for the get workloads operation. Typically these are written to a http.Request.
func NewGetWorkloadsParams ¶
func NewGetWorkloadsParams() *GetWorkloadsParams
NewGetWorkloadsParams creates a new GetWorkloadsParams 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 NewGetWorkloadsParamsWithContext ¶
func NewGetWorkloadsParamsWithContext(ctx context.Context) *GetWorkloadsParams
NewGetWorkloadsParamsWithContext creates a new GetWorkloadsParams object with the ability to set a context for a request.
func NewGetWorkloadsParamsWithHTTPClient ¶
func NewGetWorkloadsParamsWithHTTPClient(client *http.Client) *GetWorkloadsParams
NewGetWorkloadsParamsWithHTTPClient creates a new GetWorkloadsParams object with the ability to set a custom HTTPClient for a request.
func NewGetWorkloadsParamsWithTimeout ¶
func NewGetWorkloadsParamsWithTimeout(timeout time.Duration) *GetWorkloadsParams
NewGetWorkloadsParamsWithTimeout creates a new GetWorkloadsParams object with the ability to set a timeout on a request.
func (*GetWorkloadsParams) SetContext ¶
func (o *GetWorkloadsParams) SetContext(ctx context.Context)
SetContext adds the context to the get workloads params
func (*GetWorkloadsParams) SetDefaults ¶
func (o *GetWorkloadsParams) SetDefaults()
SetDefaults hydrates default values in the get workloads params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadsParams) SetHTTPClient ¶
func (o *GetWorkloadsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get workloads params
func (*GetWorkloadsParams) SetPageRequestAfter ¶
func (o *GetWorkloadsParams) SetPageRequestAfter(pageRequestAfter *string)
SetPageRequestAfter adds the pageRequestAfter to the get workloads params
func (*GetWorkloadsParams) SetPageRequestFilter ¶
func (o *GetWorkloadsParams) SetPageRequestFilter(pageRequestFilter *string)
SetPageRequestFilter adds the pageRequestFilter to the get workloads params
func (*GetWorkloadsParams) SetPageRequestFirst ¶
func (o *GetWorkloadsParams) SetPageRequestFirst(pageRequestFirst *string)
SetPageRequestFirst adds the pageRequestFirst to the get workloads params
func (*GetWorkloadsParams) SetPageRequestSortBy ¶
func (o *GetWorkloadsParams) SetPageRequestSortBy(pageRequestSortBy *string)
SetPageRequestSortBy adds the pageRequestSortBy to the get workloads params
func (*GetWorkloadsParams) SetStackID ¶
func (o *GetWorkloadsParams) SetStackID(stackID string)
SetStackID adds the stackId to the get workloads params
func (*GetWorkloadsParams) SetTimeout ¶
func (o *GetWorkloadsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get workloads params
func (*GetWorkloadsParams) WithContext ¶
func (o *GetWorkloadsParams) WithContext(ctx context.Context) *GetWorkloadsParams
WithContext adds the context to the get workloads params
func (*GetWorkloadsParams) WithDefaults ¶
func (o *GetWorkloadsParams) WithDefaults() *GetWorkloadsParams
WithDefaults hydrates default values in the get workloads params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadsParams) WithHTTPClient ¶
func (o *GetWorkloadsParams) WithHTTPClient(client *http.Client) *GetWorkloadsParams
WithHTTPClient adds the HTTPClient to the get workloads params
func (*GetWorkloadsParams) WithPageRequestAfter ¶
func (o *GetWorkloadsParams) WithPageRequestAfter(pageRequestAfter *string) *GetWorkloadsParams
WithPageRequestAfter adds the pageRequestAfter to the get workloads params
func (*GetWorkloadsParams) WithPageRequestFilter ¶
func (o *GetWorkloadsParams) WithPageRequestFilter(pageRequestFilter *string) *GetWorkloadsParams
WithPageRequestFilter adds the pageRequestFilter to the get workloads params
func (*GetWorkloadsParams) WithPageRequestFirst ¶
func (o *GetWorkloadsParams) WithPageRequestFirst(pageRequestFirst *string) *GetWorkloadsParams
WithPageRequestFirst adds the pageRequestFirst to the get workloads params
func (*GetWorkloadsParams) WithPageRequestSortBy ¶
func (o *GetWorkloadsParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetWorkloadsParams
WithPageRequestSortBy adds the pageRequestSortBy to the get workloads params
func (*GetWorkloadsParams) WithStackID ¶
func (o *GetWorkloadsParams) WithStackID(stackID string) *GetWorkloadsParams
WithStackID adds the stackID to the get workloads params
func (*GetWorkloadsParams) WithTimeout ¶
func (o *GetWorkloadsParams) WithTimeout(timeout time.Duration) *GetWorkloadsParams
WithTimeout adds the timeout to the get workloads params
func (*GetWorkloadsParams) WriteToRequest ¶
func (o *GetWorkloadsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWorkloadsReader ¶
type GetWorkloadsReader struct {
// contains filtered or unexported fields
}
GetWorkloadsReader is a Reader for the GetWorkloads structure.
func (*GetWorkloadsReader) ReadResponse ¶
func (o *GetWorkloadsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWorkloadsUnauthorized ¶
type GetWorkloadsUnauthorized struct {
}GetWorkloadsUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewGetWorkloadsUnauthorized ¶
func NewGetWorkloadsUnauthorized() *GetWorkloadsUnauthorized
NewGetWorkloadsUnauthorized creates a GetWorkloadsUnauthorized with default headers values
func (*GetWorkloadsUnauthorized) Error ¶
func (o *GetWorkloadsUnauthorized) Error() string
func (*GetWorkloadsUnauthorized) GetPayload ¶
func (o *GetWorkloadsUnauthorized) GetPayload() *workload_models.StackpathapiStatus
type UpdateWorkloadDefault ¶
type UpdateWorkloadDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
UpdateWorkloadDefault describes a response with status code -1, with default header values.
Default error structure.
func NewUpdateWorkloadDefault ¶
func NewUpdateWorkloadDefault(code int) *UpdateWorkloadDefault
NewUpdateWorkloadDefault creates a UpdateWorkloadDefault with default headers values
func (*UpdateWorkloadDefault) Code ¶
func (o *UpdateWorkloadDefault) Code() int
Code gets the status code for the update workload default response
func (*UpdateWorkloadDefault) Error ¶
func (o *UpdateWorkloadDefault) Error() string
func (*UpdateWorkloadDefault) GetPayload ¶
func (o *UpdateWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
type UpdateWorkloadInternalServerError ¶
type UpdateWorkloadInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
UpdateWorkloadInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewUpdateWorkloadInternalServerError ¶
func NewUpdateWorkloadInternalServerError() *UpdateWorkloadInternalServerError
NewUpdateWorkloadInternalServerError creates a UpdateWorkloadInternalServerError with default headers values
func (*UpdateWorkloadInternalServerError) Error ¶
func (o *UpdateWorkloadInternalServerError) Error() string
func (*UpdateWorkloadInternalServerError) GetPayload ¶
func (o *UpdateWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
type UpdateWorkloadOK ¶
type UpdateWorkloadOK struct {
Payload *workload_models.V1UpdateWorkloadResponse
}
UpdateWorkloadOK describes a response with status code 200, with default header values.
UpdateWorkloadOK update workload o k
func NewUpdateWorkloadOK ¶
func NewUpdateWorkloadOK() *UpdateWorkloadOK
NewUpdateWorkloadOK creates a UpdateWorkloadOK with default headers values
func (*UpdateWorkloadOK) Error ¶
func (o *UpdateWorkloadOK) Error() string
func (*UpdateWorkloadOK) GetPayload ¶
func (o *UpdateWorkloadOK) GetPayload() *workload_models.V1UpdateWorkloadResponse
type UpdateWorkloadParams ¶
type UpdateWorkloadParams struct { // Body. Body *workload_models.V1UpdateWorkloadRequest /* StackID. The ID of the stack containing the workload to update */ StackID string /* WorkloadID. The ID of the workload to update */ WorkloadID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateWorkloadParams contains all the parameters to send to the API endpoint
for the update workload operation. Typically these are written to a http.Request.
func NewUpdateWorkloadParams ¶
func NewUpdateWorkloadParams() *UpdateWorkloadParams
NewUpdateWorkloadParams creates a new UpdateWorkloadParams 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 NewUpdateWorkloadParamsWithContext ¶
func NewUpdateWorkloadParamsWithContext(ctx context.Context) *UpdateWorkloadParams
NewUpdateWorkloadParamsWithContext creates a new UpdateWorkloadParams object with the ability to set a context for a request.
func NewUpdateWorkloadParamsWithHTTPClient ¶
func NewUpdateWorkloadParamsWithHTTPClient(client *http.Client) *UpdateWorkloadParams
NewUpdateWorkloadParamsWithHTTPClient creates a new UpdateWorkloadParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateWorkloadParamsWithTimeout ¶
func NewUpdateWorkloadParamsWithTimeout(timeout time.Duration) *UpdateWorkloadParams
NewUpdateWorkloadParamsWithTimeout creates a new UpdateWorkloadParams object with the ability to set a timeout on a request.
func (*UpdateWorkloadParams) SetBody ¶
func (o *UpdateWorkloadParams) SetBody(body *workload_models.V1UpdateWorkloadRequest)
SetBody adds the body to the update workload params
func (*UpdateWorkloadParams) SetContext ¶
func (o *UpdateWorkloadParams) SetContext(ctx context.Context)
SetContext adds the context to the update workload params
func (*UpdateWorkloadParams) SetDefaults ¶
func (o *UpdateWorkloadParams) SetDefaults()
SetDefaults hydrates default values in the update workload params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateWorkloadParams) SetHTTPClient ¶
func (o *UpdateWorkloadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update workload params
func (*UpdateWorkloadParams) SetStackID ¶
func (o *UpdateWorkloadParams) SetStackID(stackID string)
SetStackID adds the stackId to the update workload params
func (*UpdateWorkloadParams) SetTimeout ¶
func (o *UpdateWorkloadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update workload params
func (*UpdateWorkloadParams) SetWorkloadID ¶
func (o *UpdateWorkloadParams) SetWorkloadID(workloadID string)
SetWorkloadID adds the workloadId to the update workload params
func (*UpdateWorkloadParams) WithBody ¶
func (o *UpdateWorkloadParams) WithBody(body *workload_models.V1UpdateWorkloadRequest) *UpdateWorkloadParams
WithBody adds the body to the update workload params
func (*UpdateWorkloadParams) WithContext ¶
func (o *UpdateWorkloadParams) WithContext(ctx context.Context) *UpdateWorkloadParams
WithContext adds the context to the update workload params
func (*UpdateWorkloadParams) WithDefaults ¶
func (o *UpdateWorkloadParams) WithDefaults() *UpdateWorkloadParams
WithDefaults hydrates default values in the update workload params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateWorkloadParams) WithHTTPClient ¶
func (o *UpdateWorkloadParams) WithHTTPClient(client *http.Client) *UpdateWorkloadParams
WithHTTPClient adds the HTTPClient to the update workload params
func (*UpdateWorkloadParams) WithStackID ¶
func (o *UpdateWorkloadParams) WithStackID(stackID string) *UpdateWorkloadParams
WithStackID adds the stackID to the update workload params
func (*UpdateWorkloadParams) WithTimeout ¶
func (o *UpdateWorkloadParams) WithTimeout(timeout time.Duration) *UpdateWorkloadParams
WithTimeout adds the timeout to the update workload params
func (*UpdateWorkloadParams) WithWorkloadID ¶
func (o *UpdateWorkloadParams) WithWorkloadID(workloadID string) *UpdateWorkloadParams
WithWorkloadID adds the workloadID to the update workload params
func (*UpdateWorkloadParams) WriteToRequest ¶
func (o *UpdateWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateWorkloadReader ¶
type UpdateWorkloadReader struct {
// contains filtered or unexported fields
}
UpdateWorkloadReader is a Reader for the UpdateWorkload structure.
func (*UpdateWorkloadReader) ReadResponse ¶
func (o *UpdateWorkloadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateWorkloadUnauthorized ¶
type UpdateWorkloadUnauthorized struct {
}UpdateWorkloadUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewUpdateWorkloadUnauthorized ¶
func NewUpdateWorkloadUnauthorized() *UpdateWorkloadUnauthorized
NewUpdateWorkloadUnauthorized creates a UpdateWorkloadUnauthorized with default headers values
func (*UpdateWorkloadUnauthorized) Error ¶
func (o *UpdateWorkloadUnauthorized) Error() string
func (*UpdateWorkloadUnauthorized) GetPayload ¶
func (o *UpdateWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
Source Files ¶
- create_workload_parameters.go
- create_workload_responses.go
- delete_workload_parameters.go
- delete_workload_responses.go
- get_locations_parameters.go
- get_locations_responses.go
- get_workload_parameters.go
- get_workload_responses.go
- get_workloads_parameters.go
- get_workloads_responses.go
- update_workload_parameters.go
- update_workload_responses.go
- workloads_client.go