workload

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for workload 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) PutWorkload

func (a *Client) PutWorkload(params *PutWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutWorkloadOK, error)

PutWorkload replaces an existing workload

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)

	PutWorkload(params *PutWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutWorkloadOK, 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 workload 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 (*CreateWorkloadDefault) IsClientError

func (o *CreateWorkloadDefault) IsClientError() bool

IsClientError returns true when this create workload default response has a 4xx status code

func (*CreateWorkloadDefault) IsCode

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

IsCode returns true when this create workload default response a status code equal to that given

func (*CreateWorkloadDefault) IsRedirect

func (o *CreateWorkloadDefault) IsRedirect() bool

IsRedirect returns true when this create workload default response has a 3xx status code

func (*CreateWorkloadDefault) IsServerError

func (o *CreateWorkloadDefault) IsServerError() bool

IsServerError returns true when this create workload default response has a 5xx status code

func (*CreateWorkloadDefault) IsSuccess

func (o *CreateWorkloadDefault) IsSuccess() bool

IsSuccess returns true when this create workload default response has a 2xx status code

func (*CreateWorkloadDefault) String

func (o *CreateWorkloadDefault) String() string

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) Code

Code gets the status code for the create workload internal server error response

func (*CreateWorkloadInternalServerError) Error

func (*CreateWorkloadInternalServerError) GetPayload

func (*CreateWorkloadInternalServerError) IsClientError

func (o *CreateWorkloadInternalServerError) IsClientError() bool

IsClientError returns true when this create workload internal server error response has a 4xx status code

func (*CreateWorkloadInternalServerError) IsCode

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

IsCode returns true when this create workload internal server error response a status code equal to that given

func (*CreateWorkloadInternalServerError) IsRedirect

func (o *CreateWorkloadInternalServerError) IsRedirect() bool

IsRedirect returns true when this create workload internal server error response has a 3xx status code

func (*CreateWorkloadInternalServerError) IsServerError

func (o *CreateWorkloadInternalServerError) IsServerError() bool

IsServerError returns true when this create workload internal server error response has a 5xx status code

func (*CreateWorkloadInternalServerError) IsSuccess

func (o *CreateWorkloadInternalServerError) IsSuccess() bool

IsSuccess returns true when this create workload internal server error response has a 2xx status code

func (*CreateWorkloadInternalServerError) String

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) Code

func (o *CreateWorkloadOK) Code() int

Code gets the status code for the create workload o k response

func (*CreateWorkloadOK) Error

func (o *CreateWorkloadOK) Error() string

func (*CreateWorkloadOK) GetPayload

func (*CreateWorkloadOK) IsClientError

func (o *CreateWorkloadOK) IsClientError() bool

IsClientError returns true when this create workload o k response has a 4xx status code

func (*CreateWorkloadOK) IsCode

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

IsCode returns true when this create workload o k response a status code equal to that given

func (*CreateWorkloadOK) IsRedirect

func (o *CreateWorkloadOK) IsRedirect() bool

IsRedirect returns true when this create workload o k response has a 3xx status code

func (*CreateWorkloadOK) IsServerError

func (o *CreateWorkloadOK) IsServerError() bool

IsServerError returns true when this create workload o k response has a 5xx status code

func (*CreateWorkloadOK) IsSuccess

func (o *CreateWorkloadOK) IsSuccess() bool

IsSuccess returns true when this create workload o k response has a 2xx status code

func (*CreateWorkloadOK) String

func (o *CreateWorkloadOK) String() string

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

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

WithBody adds the body to the create workload params

func (*CreateWorkloadParams) WithContext

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 {
	Payload *workload_models.StackpathapiStatus
}

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) Code

func (o *CreateWorkloadUnauthorized) Code() int

Code gets the status code for the create workload unauthorized response

func (*CreateWorkloadUnauthorized) Error

func (*CreateWorkloadUnauthorized) GetPayload

func (*CreateWorkloadUnauthorized) IsClientError

func (o *CreateWorkloadUnauthorized) IsClientError() bool

IsClientError returns true when this create workload unauthorized response has a 4xx status code

func (*CreateWorkloadUnauthorized) IsCode

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

IsCode returns true when this create workload unauthorized response a status code equal to that given

func (*CreateWorkloadUnauthorized) IsRedirect

func (o *CreateWorkloadUnauthorized) IsRedirect() bool

IsRedirect returns true when this create workload unauthorized response has a 3xx status code

func (*CreateWorkloadUnauthorized) IsServerError

func (o *CreateWorkloadUnauthorized) IsServerError() bool

IsServerError returns true when this create workload unauthorized response has a 5xx status code

func (*CreateWorkloadUnauthorized) IsSuccess

func (o *CreateWorkloadUnauthorized) IsSuccess() bool

IsSuccess returns true when this create workload unauthorized response has a 2xx status code

func (*CreateWorkloadUnauthorized) String

func (o *CreateWorkloadUnauthorized) String() string

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 (*DeleteWorkloadDefault) IsClientError

func (o *DeleteWorkloadDefault) IsClientError() bool

IsClientError returns true when this delete workload default response has a 4xx status code

func (*DeleteWorkloadDefault) IsCode

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

IsCode returns true when this delete workload default response a status code equal to that given

func (*DeleteWorkloadDefault) IsRedirect

func (o *DeleteWorkloadDefault) IsRedirect() bool

IsRedirect returns true when this delete workload default response has a 3xx status code

func (*DeleteWorkloadDefault) IsServerError

func (o *DeleteWorkloadDefault) IsServerError() bool

IsServerError returns true when this delete workload default response has a 5xx status code

func (*DeleteWorkloadDefault) IsSuccess

func (o *DeleteWorkloadDefault) IsSuccess() bool

IsSuccess returns true when this delete workload default response has a 2xx status code

func (*DeleteWorkloadDefault) String

func (o *DeleteWorkloadDefault) String() string

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) Code

Code gets the status code for the delete workload internal server error response

func (*DeleteWorkloadInternalServerError) Error

func (*DeleteWorkloadInternalServerError) GetPayload

func (*DeleteWorkloadInternalServerError) IsClientError

func (o *DeleteWorkloadInternalServerError) IsClientError() bool

IsClientError returns true when this delete workload internal server error response has a 4xx status code

func (*DeleteWorkloadInternalServerError) IsCode

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

IsCode returns true when this delete workload internal server error response a status code equal to that given

func (*DeleteWorkloadInternalServerError) IsRedirect

func (o *DeleteWorkloadInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete workload internal server error response has a 3xx status code

func (*DeleteWorkloadInternalServerError) IsServerError

func (o *DeleteWorkloadInternalServerError) IsServerError() bool

IsServerError returns true when this delete workload internal server error response has a 5xx status code

func (*DeleteWorkloadInternalServerError) IsSuccess

func (o *DeleteWorkloadInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete workload internal server error response has a 2xx status code

func (*DeleteWorkloadInternalServerError) String

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) Code

func (o *DeleteWorkloadNoContent) Code() int

Code gets the status code for the delete workload no content response

func (*DeleteWorkloadNoContent) Error

func (o *DeleteWorkloadNoContent) Error() string

func (*DeleteWorkloadNoContent) IsClientError

func (o *DeleteWorkloadNoContent) IsClientError() bool

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

func (*DeleteWorkloadNoContent) IsCode

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

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

func (*DeleteWorkloadNoContent) IsRedirect

func (o *DeleteWorkloadNoContent) IsRedirect() bool

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

func (*DeleteWorkloadNoContent) IsServerError

func (o *DeleteWorkloadNoContent) IsServerError() bool

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

func (*DeleteWorkloadNoContent) IsSuccess

func (o *DeleteWorkloadNoContent) IsSuccess() bool

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

func (*DeleteWorkloadNoContent) String

func (o *DeleteWorkloadNoContent) String() 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

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 {
	Payload *workload_models.StackpathapiStatus
}

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) Code

func (o *DeleteWorkloadUnauthorized) Code() int

Code gets the status code for the delete workload unauthorized response

func (*DeleteWorkloadUnauthorized) Error

func (*DeleteWorkloadUnauthorized) GetPayload

func (*DeleteWorkloadUnauthorized) IsClientError

func (o *DeleteWorkloadUnauthorized) IsClientError() bool

IsClientError returns true when this delete workload unauthorized response has a 4xx status code

func (*DeleteWorkloadUnauthorized) IsCode

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

IsCode returns true when this delete workload unauthorized response a status code equal to that given

func (*DeleteWorkloadUnauthorized) IsRedirect

func (o *DeleteWorkloadUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete workload unauthorized response has a 3xx status code

func (*DeleteWorkloadUnauthorized) IsServerError

func (o *DeleteWorkloadUnauthorized) IsServerError() bool

IsServerError returns true when this delete workload unauthorized response has a 5xx status code

func (*DeleteWorkloadUnauthorized) IsSuccess

func (o *DeleteWorkloadUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete workload unauthorized response has a 2xx status code

func (*DeleteWorkloadUnauthorized) String

func (o *DeleteWorkloadUnauthorized) String() string

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 (*GetLocationsDefault) IsClientError

func (o *GetLocationsDefault) IsClientError() bool

IsClientError returns true when this get locations default response has a 4xx status code

func (*GetLocationsDefault) IsCode

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

IsCode returns true when this get locations default response a status code equal to that given

func (*GetLocationsDefault) IsRedirect

func (o *GetLocationsDefault) IsRedirect() bool

IsRedirect returns true when this get locations default response has a 3xx status code

func (*GetLocationsDefault) IsServerError

func (o *GetLocationsDefault) IsServerError() bool

IsServerError returns true when this get locations default response has a 5xx status code

func (*GetLocationsDefault) IsSuccess

func (o *GetLocationsDefault) IsSuccess() bool

IsSuccess returns true when this get locations default response has a 2xx status code

func (*GetLocationsDefault) String

func (o *GetLocationsDefault) String() string

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) Code

Code gets the status code for the get locations internal server error response

func (*GetLocationsInternalServerError) Error

func (*GetLocationsInternalServerError) GetPayload

func (*GetLocationsInternalServerError) IsClientError

func (o *GetLocationsInternalServerError) IsClientError() bool

IsClientError returns true when this get locations internal server error response has a 4xx status code

func (*GetLocationsInternalServerError) IsCode

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

IsCode returns true when this get locations internal server error response a status code equal to that given

func (*GetLocationsInternalServerError) IsRedirect

func (o *GetLocationsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get locations internal server error response has a 3xx status code

func (*GetLocationsInternalServerError) IsServerError

func (o *GetLocationsInternalServerError) IsServerError() bool

IsServerError returns true when this get locations internal server error response has a 5xx status code

func (*GetLocationsInternalServerError) IsSuccess

func (o *GetLocationsInternalServerError) IsSuccess() bool

IsSuccess returns true when this get locations internal server error response has a 2xx status code

func (*GetLocationsInternalServerError) String

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) Code

func (o *GetLocationsOK) Code() int

Code gets the status code for the get locations o k response

func (*GetLocationsOK) Error

func (o *GetLocationsOK) Error() string

func (*GetLocationsOK) GetPayload

func (*GetLocationsOK) IsClientError

func (o *GetLocationsOK) IsClientError() bool

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

func (*GetLocationsOK) IsCode

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

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

func (*GetLocationsOK) IsRedirect

func (o *GetLocationsOK) IsRedirect() bool

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

func (*GetLocationsOK) IsServerError

func (o *GetLocationsOK) IsServerError() bool

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

func (*GetLocationsOK) IsSuccess

func (o *GetLocationsOK) IsSuccess() bool

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

func (*GetLocationsOK) String

func (o *GetLocationsOK) String() string

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

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 {
	Payload *workload_models.StackpathapiStatus
}

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) Code

func (o *GetLocationsUnauthorized) Code() int

Code gets the status code for the get locations unauthorized response

func (*GetLocationsUnauthorized) Error

func (o *GetLocationsUnauthorized) Error() string

func (*GetLocationsUnauthorized) GetPayload

func (*GetLocationsUnauthorized) IsClientError

func (o *GetLocationsUnauthorized) IsClientError() bool

IsClientError returns true when this get locations unauthorized response has a 4xx status code

func (*GetLocationsUnauthorized) IsCode

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

IsCode returns true when this get locations unauthorized response a status code equal to that given

func (*GetLocationsUnauthorized) IsRedirect

func (o *GetLocationsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get locations unauthorized response has a 3xx status code

func (*GetLocationsUnauthorized) IsServerError

func (o *GetLocationsUnauthorized) IsServerError() bool

IsServerError returns true when this get locations unauthorized response has a 5xx status code

func (*GetLocationsUnauthorized) IsSuccess

func (o *GetLocationsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get locations unauthorized response has a 2xx status code

func (*GetLocationsUnauthorized) String

func (o *GetLocationsUnauthorized) String() string

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 (*GetWorkloadDefault) IsClientError

func (o *GetWorkloadDefault) IsClientError() bool

IsClientError returns true when this get workload default response has a 4xx status code

func (*GetWorkloadDefault) IsCode

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

IsCode returns true when this get workload default response a status code equal to that given

func (*GetWorkloadDefault) IsRedirect

func (o *GetWorkloadDefault) IsRedirect() bool

IsRedirect returns true when this get workload default response has a 3xx status code

func (*GetWorkloadDefault) IsServerError

func (o *GetWorkloadDefault) IsServerError() bool

IsServerError returns true when this get workload default response has a 5xx status code

func (*GetWorkloadDefault) IsSuccess

func (o *GetWorkloadDefault) IsSuccess() bool

IsSuccess returns true when this get workload default response has a 2xx status code

func (*GetWorkloadDefault) String

func (o *GetWorkloadDefault) String() string

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) Code

Code gets the status code for the get workload internal server error response

func (*GetWorkloadInternalServerError) Error

func (*GetWorkloadInternalServerError) GetPayload

func (*GetWorkloadInternalServerError) IsClientError

func (o *GetWorkloadInternalServerError) IsClientError() bool

IsClientError returns true when this get workload internal server error response has a 4xx status code

func (*GetWorkloadInternalServerError) IsCode

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

IsCode returns true when this get workload internal server error response a status code equal to that given

func (*GetWorkloadInternalServerError) IsRedirect

func (o *GetWorkloadInternalServerError) IsRedirect() bool

IsRedirect returns true when this get workload internal server error response has a 3xx status code

func (*GetWorkloadInternalServerError) IsServerError

func (o *GetWorkloadInternalServerError) IsServerError() bool

IsServerError returns true when this get workload internal server error response has a 5xx status code

func (*GetWorkloadInternalServerError) IsSuccess

func (o *GetWorkloadInternalServerError) IsSuccess() bool

IsSuccess returns true when this get workload internal server error response has a 2xx status code

func (*GetWorkloadInternalServerError) String

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) Code

func (o *GetWorkloadOK) Code() int

Code gets the status code for the get workload o k response

func (*GetWorkloadOK) Error

func (o *GetWorkloadOK) Error() string

func (*GetWorkloadOK) GetPayload

func (*GetWorkloadOK) IsClientError

func (o *GetWorkloadOK) IsClientError() bool

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

func (*GetWorkloadOK) IsCode

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

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

func (*GetWorkloadOK) IsRedirect

func (o *GetWorkloadOK) IsRedirect() bool

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

func (*GetWorkloadOK) IsServerError

func (o *GetWorkloadOK) IsServerError() bool

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

func (*GetWorkloadOK) IsSuccess

func (o *GetWorkloadOK) IsSuccess() bool

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

func (*GetWorkloadOK) String

func (o *GetWorkloadOK) String() string

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 {
	Payload *workload_models.StackpathapiStatus
}

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) Code

func (o *GetWorkloadUnauthorized) Code() int

Code gets the status code for the get workload unauthorized response

func (*GetWorkloadUnauthorized) Error

func (o *GetWorkloadUnauthorized) Error() string

func (*GetWorkloadUnauthorized) GetPayload

func (*GetWorkloadUnauthorized) IsClientError

func (o *GetWorkloadUnauthorized) IsClientError() bool

IsClientError returns true when this get workload unauthorized response has a 4xx status code

func (*GetWorkloadUnauthorized) IsCode

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

IsCode returns true when this get workload unauthorized response a status code equal to that given

func (*GetWorkloadUnauthorized) IsRedirect

func (o *GetWorkloadUnauthorized) IsRedirect() bool

IsRedirect returns true when this get workload unauthorized response has a 3xx status code

func (*GetWorkloadUnauthorized) IsServerError

func (o *GetWorkloadUnauthorized) IsServerError() bool

IsServerError returns true when this get workload unauthorized response has a 5xx status code

func (*GetWorkloadUnauthorized) IsSuccess

func (o *GetWorkloadUnauthorized) IsSuccess() bool

IsSuccess returns true when this get workload unauthorized response has a 2xx status code

func (*GetWorkloadUnauthorized) String

func (o *GetWorkloadUnauthorized) String() string

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 (*GetWorkloadsDefault) IsClientError

func (o *GetWorkloadsDefault) IsClientError() bool

IsClientError returns true when this get workloads default response has a 4xx status code

func (*GetWorkloadsDefault) IsCode

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

IsCode returns true when this get workloads default response a status code equal to that given

func (*GetWorkloadsDefault) IsRedirect

func (o *GetWorkloadsDefault) IsRedirect() bool

IsRedirect returns true when this get workloads default response has a 3xx status code

func (*GetWorkloadsDefault) IsServerError

func (o *GetWorkloadsDefault) IsServerError() bool

IsServerError returns true when this get workloads default response has a 5xx status code

func (*GetWorkloadsDefault) IsSuccess

func (o *GetWorkloadsDefault) IsSuccess() bool

IsSuccess returns true when this get workloads default response has a 2xx status code

func (*GetWorkloadsDefault) String

func (o *GetWorkloadsDefault) String() string

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) Code

Code gets the status code for the get workloads internal server error response

func (*GetWorkloadsInternalServerError) Error

func (*GetWorkloadsInternalServerError) GetPayload

func (*GetWorkloadsInternalServerError) IsClientError

func (o *GetWorkloadsInternalServerError) IsClientError() bool

IsClientError returns true when this get workloads internal server error response has a 4xx status code

func (*GetWorkloadsInternalServerError) IsCode

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

IsCode returns true when this get workloads internal server error response a status code equal to that given

func (*GetWorkloadsInternalServerError) IsRedirect

func (o *GetWorkloadsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get workloads internal server error response has a 3xx status code

func (*GetWorkloadsInternalServerError) IsServerError

func (o *GetWorkloadsInternalServerError) IsServerError() bool

IsServerError returns true when this get workloads internal server error response has a 5xx status code

func (*GetWorkloadsInternalServerError) IsSuccess

func (o *GetWorkloadsInternalServerError) IsSuccess() bool

IsSuccess returns true when this get workloads internal server error response has a 2xx status code

func (*GetWorkloadsInternalServerError) String

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) Code

func (o *GetWorkloadsOK) Code() int

Code gets the status code for the get workloads o k response

func (*GetWorkloadsOK) Error

func (o *GetWorkloadsOK) Error() string

func (*GetWorkloadsOK) GetPayload

func (*GetWorkloadsOK) IsClientError

func (o *GetWorkloadsOK) IsClientError() bool

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

func (*GetWorkloadsOK) IsCode

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

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

func (*GetWorkloadsOK) IsRedirect

func (o *GetWorkloadsOK) IsRedirect() bool

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

func (*GetWorkloadsOK) IsServerError

func (o *GetWorkloadsOK) IsServerError() bool

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

func (*GetWorkloadsOK) IsSuccess

func (o *GetWorkloadsOK) IsSuccess() bool

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

func (*GetWorkloadsOK) String

func (o *GetWorkloadsOK) String() string

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

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 {
	Payload *workload_models.StackpathapiStatus
}

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) Code

func (o *GetWorkloadsUnauthorized) Code() int

Code gets the status code for the get workloads unauthorized response

func (*GetWorkloadsUnauthorized) Error

func (o *GetWorkloadsUnauthorized) Error() string

func (*GetWorkloadsUnauthorized) GetPayload

func (*GetWorkloadsUnauthorized) IsClientError

func (o *GetWorkloadsUnauthorized) IsClientError() bool

IsClientError returns true when this get workloads unauthorized response has a 4xx status code

func (*GetWorkloadsUnauthorized) IsCode

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

IsCode returns true when this get workloads unauthorized response a status code equal to that given

func (*GetWorkloadsUnauthorized) IsRedirect

func (o *GetWorkloadsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get workloads unauthorized response has a 3xx status code

func (*GetWorkloadsUnauthorized) IsServerError

func (o *GetWorkloadsUnauthorized) IsServerError() bool

IsServerError returns true when this get workloads unauthorized response has a 5xx status code

func (*GetWorkloadsUnauthorized) IsSuccess

func (o *GetWorkloadsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get workloads unauthorized response has a 2xx status code

func (*GetWorkloadsUnauthorized) String

func (o *GetWorkloadsUnauthorized) String() string

type PutWorkloadDefault

type PutWorkloadDefault struct {
	Payload *workload_models.StackpathapiStatus
	// contains filtered or unexported fields
}

PutWorkloadDefault describes a response with status code -1, with default header values.

Default error structure.

func NewPutWorkloadDefault

func NewPutWorkloadDefault(code int) *PutWorkloadDefault

NewPutWorkloadDefault creates a PutWorkloadDefault with default headers values

func (*PutWorkloadDefault) Code

func (o *PutWorkloadDefault) Code() int

Code gets the status code for the put workload default response

func (*PutWorkloadDefault) Error

func (o *PutWorkloadDefault) Error() string

func (*PutWorkloadDefault) GetPayload

func (*PutWorkloadDefault) IsClientError

func (o *PutWorkloadDefault) IsClientError() bool

IsClientError returns true when this put workload default response has a 4xx status code

func (*PutWorkloadDefault) IsCode

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

IsCode returns true when this put workload default response a status code equal to that given

func (*PutWorkloadDefault) IsRedirect

func (o *PutWorkloadDefault) IsRedirect() bool

IsRedirect returns true when this put workload default response has a 3xx status code

func (*PutWorkloadDefault) IsServerError

func (o *PutWorkloadDefault) IsServerError() bool

IsServerError returns true when this put workload default response has a 5xx status code

func (*PutWorkloadDefault) IsSuccess

func (o *PutWorkloadDefault) IsSuccess() bool

IsSuccess returns true when this put workload default response has a 2xx status code

func (*PutWorkloadDefault) String

func (o *PutWorkloadDefault) String() string

type PutWorkloadInternalServerError

type PutWorkloadInternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}

PutWorkloadInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewPutWorkloadInternalServerError

func NewPutWorkloadInternalServerError() *PutWorkloadInternalServerError

NewPutWorkloadInternalServerError creates a PutWorkloadInternalServerError with default headers values

func (*PutWorkloadInternalServerError) Code

Code gets the status code for the put workload internal server error response

func (*PutWorkloadInternalServerError) Error

func (*PutWorkloadInternalServerError) GetPayload

func (*PutWorkloadInternalServerError) IsClientError

func (o *PutWorkloadInternalServerError) IsClientError() bool

IsClientError returns true when this put workload internal server error response has a 4xx status code

func (*PutWorkloadInternalServerError) IsCode

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

IsCode returns true when this put workload internal server error response a status code equal to that given

func (*PutWorkloadInternalServerError) IsRedirect

func (o *PutWorkloadInternalServerError) IsRedirect() bool

IsRedirect returns true when this put workload internal server error response has a 3xx status code

func (*PutWorkloadInternalServerError) IsServerError

func (o *PutWorkloadInternalServerError) IsServerError() bool

IsServerError returns true when this put workload internal server error response has a 5xx status code

func (*PutWorkloadInternalServerError) IsSuccess

func (o *PutWorkloadInternalServerError) IsSuccess() bool

IsSuccess returns true when this put workload internal server error response has a 2xx status code

func (*PutWorkloadInternalServerError) String

type PutWorkloadOK

type PutWorkloadOK struct {
	Payload *workload_models.V1PutWorkloadResponse
}

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

PutWorkloadOK put workload o k

func NewPutWorkloadOK

func NewPutWorkloadOK() *PutWorkloadOK

NewPutWorkloadOK creates a PutWorkloadOK with default headers values

func (*PutWorkloadOK) Code

func (o *PutWorkloadOK) Code() int

Code gets the status code for the put workload o k response

func (*PutWorkloadOK) Error

func (o *PutWorkloadOK) Error() string

func (*PutWorkloadOK) GetPayload

func (*PutWorkloadOK) IsClientError

func (o *PutWorkloadOK) IsClientError() bool

IsClientError returns true when this put workload o k response has a 4xx status code

func (*PutWorkloadOK) IsCode

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

IsCode returns true when this put workload o k response a status code equal to that given

func (*PutWorkloadOK) IsRedirect

func (o *PutWorkloadOK) IsRedirect() bool

IsRedirect returns true when this put workload o k response has a 3xx status code

func (*PutWorkloadOK) IsServerError

func (o *PutWorkloadOK) IsServerError() bool

IsServerError returns true when this put workload o k response has a 5xx status code

func (*PutWorkloadOK) IsSuccess

func (o *PutWorkloadOK) IsSuccess() bool

IsSuccess returns true when this put workload o k response has a 2xx status code

func (*PutWorkloadOK) String

func (o *PutWorkloadOK) String() string

type PutWorkloadParams

type PutWorkloadParams struct {

	// Body.
	Body *workload_models.V1PutWorkloadRequest

	/* WorkloadID.

	   A workload's unique identifier
	*/
	WorkloadID string

	/* WorkloadStackID.

	   The ID of the stack that a workload belongs to
	*/
	WorkloadStackID string

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

PutWorkloadParams contains all the parameters to send to the API endpoint

for the put workload operation.

Typically these are written to a http.Request.

func NewPutWorkloadParams

func NewPutWorkloadParams() *PutWorkloadParams

NewPutWorkloadParams creates a new PutWorkloadParams 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 NewPutWorkloadParamsWithContext

func NewPutWorkloadParamsWithContext(ctx context.Context) *PutWorkloadParams

NewPutWorkloadParamsWithContext creates a new PutWorkloadParams object with the ability to set a context for a request.

func NewPutWorkloadParamsWithHTTPClient

func NewPutWorkloadParamsWithHTTPClient(client *http.Client) *PutWorkloadParams

NewPutWorkloadParamsWithHTTPClient creates a new PutWorkloadParams object with the ability to set a custom HTTPClient for a request.

func NewPutWorkloadParamsWithTimeout

func NewPutWorkloadParamsWithTimeout(timeout time.Duration) *PutWorkloadParams

NewPutWorkloadParamsWithTimeout creates a new PutWorkloadParams object with the ability to set a timeout on a request.

func (*PutWorkloadParams) SetBody

SetBody adds the body to the put workload params

func (*PutWorkloadParams) SetContext

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

SetContext adds the context to the put workload params

func (*PutWorkloadParams) SetDefaults

func (o *PutWorkloadParams) SetDefaults()

SetDefaults hydrates default values in the put workload params (not the query body).

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

func (*PutWorkloadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put workload params

func (*PutWorkloadParams) SetTimeout

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

SetTimeout adds the timeout to the put workload params

func (*PutWorkloadParams) SetWorkloadID

func (o *PutWorkloadParams) SetWorkloadID(workloadID string)

SetWorkloadID adds the workloadId to the put workload params

func (*PutWorkloadParams) SetWorkloadStackID

func (o *PutWorkloadParams) SetWorkloadStackID(workloadStackID string)

SetWorkloadStackID adds the workloadStackId to the put workload params

func (*PutWorkloadParams) WithBody

WithBody adds the body to the put workload params

func (*PutWorkloadParams) WithContext

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

WithContext adds the context to the put workload params

func (*PutWorkloadParams) WithDefaults

func (o *PutWorkloadParams) WithDefaults() *PutWorkloadParams

WithDefaults hydrates default values in the put workload params (not the query body).

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

func (*PutWorkloadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put workload params

func (*PutWorkloadParams) WithTimeout

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

WithTimeout adds the timeout to the put workload params

func (*PutWorkloadParams) WithWorkloadID

func (o *PutWorkloadParams) WithWorkloadID(workloadID string) *PutWorkloadParams

WithWorkloadID adds the workloadID to the put workload params

func (*PutWorkloadParams) WithWorkloadStackID

func (o *PutWorkloadParams) WithWorkloadStackID(workloadStackID string) *PutWorkloadParams

WithWorkloadStackID adds the workloadStackID to the put workload params

func (*PutWorkloadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutWorkloadReader

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

PutWorkloadReader is a Reader for the PutWorkload structure.

func (*PutWorkloadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutWorkloadUnauthorized

type PutWorkloadUnauthorized struct {
	Payload *workload_models.StackpathapiStatus
}

PutWorkloadUnauthorized describes a response with status code 401, with default header values.

Returned when an unauthorized request is attempted.

func NewPutWorkloadUnauthorized

func NewPutWorkloadUnauthorized() *PutWorkloadUnauthorized

NewPutWorkloadUnauthorized creates a PutWorkloadUnauthorized with default headers values

func (*PutWorkloadUnauthorized) Code

func (o *PutWorkloadUnauthorized) Code() int

Code gets the status code for the put workload unauthorized response

func (*PutWorkloadUnauthorized) Error

func (o *PutWorkloadUnauthorized) Error() string

func (*PutWorkloadUnauthorized) GetPayload

func (*PutWorkloadUnauthorized) IsClientError

func (o *PutWorkloadUnauthorized) IsClientError() bool

IsClientError returns true when this put workload unauthorized response has a 4xx status code

func (*PutWorkloadUnauthorized) IsCode

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

IsCode returns true when this put workload unauthorized response a status code equal to that given

func (*PutWorkloadUnauthorized) IsRedirect

func (o *PutWorkloadUnauthorized) IsRedirect() bool

IsRedirect returns true when this put workload unauthorized response has a 3xx status code

func (*PutWorkloadUnauthorized) IsServerError

func (o *PutWorkloadUnauthorized) IsServerError() bool

IsServerError returns true when this put workload unauthorized response has a 5xx status code

func (*PutWorkloadUnauthorized) IsSuccess

func (o *PutWorkloadUnauthorized) IsSuccess() bool

IsSuccess returns true when this put workload unauthorized response has a 2xx status code

func (*PutWorkloadUnauthorized) String

func (o *PutWorkloadUnauthorized) String() string

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 (*UpdateWorkloadDefault) IsClientError

func (o *UpdateWorkloadDefault) IsClientError() bool

IsClientError returns true when this update workload default response has a 4xx status code

func (*UpdateWorkloadDefault) IsCode

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

IsCode returns true when this update workload default response a status code equal to that given

func (*UpdateWorkloadDefault) IsRedirect

func (o *UpdateWorkloadDefault) IsRedirect() bool

IsRedirect returns true when this update workload default response has a 3xx status code

func (*UpdateWorkloadDefault) IsServerError

func (o *UpdateWorkloadDefault) IsServerError() bool

IsServerError returns true when this update workload default response has a 5xx status code

func (*UpdateWorkloadDefault) IsSuccess

func (o *UpdateWorkloadDefault) IsSuccess() bool

IsSuccess returns true when this update workload default response has a 2xx status code

func (*UpdateWorkloadDefault) String

func (o *UpdateWorkloadDefault) String() string

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) Code

Code gets the status code for the update workload internal server error response

func (*UpdateWorkloadInternalServerError) Error

func (*UpdateWorkloadInternalServerError) GetPayload

func (*UpdateWorkloadInternalServerError) IsClientError

func (o *UpdateWorkloadInternalServerError) IsClientError() bool

IsClientError returns true when this update workload internal server error response has a 4xx status code

func (*UpdateWorkloadInternalServerError) IsCode

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

IsCode returns true when this update workload internal server error response a status code equal to that given

func (*UpdateWorkloadInternalServerError) IsRedirect

func (o *UpdateWorkloadInternalServerError) IsRedirect() bool

IsRedirect returns true when this update workload internal server error response has a 3xx status code

func (*UpdateWorkloadInternalServerError) IsServerError

func (o *UpdateWorkloadInternalServerError) IsServerError() bool

IsServerError returns true when this update workload internal server error response has a 5xx status code

func (*UpdateWorkloadInternalServerError) IsSuccess

func (o *UpdateWorkloadInternalServerError) IsSuccess() bool

IsSuccess returns true when this update workload internal server error response has a 2xx status code

func (*UpdateWorkloadInternalServerError) String

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) Code

func (o *UpdateWorkloadOK) Code() int

Code gets the status code for the update workload o k response

func (*UpdateWorkloadOK) Error

func (o *UpdateWorkloadOK) Error() string

func (*UpdateWorkloadOK) GetPayload

func (*UpdateWorkloadOK) IsClientError

func (o *UpdateWorkloadOK) IsClientError() bool

IsClientError returns true when this update workload o k response has a 4xx status code

func (*UpdateWorkloadOK) IsCode

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

IsCode returns true when this update workload o k response a status code equal to that given

func (*UpdateWorkloadOK) IsRedirect

func (o *UpdateWorkloadOK) IsRedirect() bool

IsRedirect returns true when this update workload o k response has a 3xx status code

func (*UpdateWorkloadOK) IsServerError

func (o *UpdateWorkloadOK) IsServerError() bool

IsServerError returns true when this update workload o k response has a 5xx status code

func (*UpdateWorkloadOK) IsSuccess

func (o *UpdateWorkloadOK) IsSuccess() bool

IsSuccess returns true when this update workload o k response has a 2xx status code

func (*UpdateWorkloadOK) String

func (o *UpdateWorkloadOK) String() string

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

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

WithBody adds the body to the update workload params

func (*UpdateWorkloadParams) WithContext

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 {
	Payload *workload_models.StackpathapiStatus
}

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) Code

func (o *UpdateWorkloadUnauthorized) Code() int

Code gets the status code for the update workload unauthorized response

func (*UpdateWorkloadUnauthorized) Error

func (*UpdateWorkloadUnauthorized) GetPayload

func (*UpdateWorkloadUnauthorized) IsClientError

func (o *UpdateWorkloadUnauthorized) IsClientError() bool

IsClientError returns true when this update workload unauthorized response has a 4xx status code

func (*UpdateWorkloadUnauthorized) IsCode

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

IsCode returns true when this update workload unauthorized response a status code equal to that given

func (*UpdateWorkloadUnauthorized) IsRedirect

func (o *UpdateWorkloadUnauthorized) IsRedirect() bool

IsRedirect returns true when this update workload unauthorized response has a 3xx status code

func (*UpdateWorkloadUnauthorized) IsServerError

func (o *UpdateWorkloadUnauthorized) IsServerError() bool

IsServerError returns true when this update workload unauthorized response has a 5xx status code

func (*UpdateWorkloadUnauthorized) IsSuccess

func (o *UpdateWorkloadUnauthorized) IsSuccess() bool

IsSuccess returns true when this update workload unauthorized response has a 2xx status code

func (*UpdateWorkloadUnauthorized) String

func (o *UpdateWorkloadUnauthorized) String() string

type WatchNetworks2Default

type WatchNetworks2Default struct {
	Payload *workload_models.StackpathapiStatus
	// contains filtered or unexported fields
}

WatchNetworks2Default describes a response with status code -1, with default header values.

Default error structure.

func NewWatchNetworks2Default

func NewWatchNetworks2Default(code int) *WatchNetworks2Default

NewWatchNetworks2Default creates a WatchNetworks2Default with default headers values

func (*WatchNetworks2Default) Code

func (o *WatchNetworks2Default) Code() int

Code gets the status code for the watch networks2 default response

func (*WatchNetworks2Default) Error

func (o *WatchNetworks2Default) Error() string

func (*WatchNetworks2Default) GetPayload

func (*WatchNetworks2Default) IsClientError

func (o *WatchNetworks2Default) IsClientError() bool

IsClientError returns true when this watch networks2 default response has a 4xx status code

func (*WatchNetworks2Default) IsCode

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

IsCode returns true when this watch networks2 default response a status code equal to that given

func (*WatchNetworks2Default) IsRedirect

func (o *WatchNetworks2Default) IsRedirect() bool

IsRedirect returns true when this watch networks2 default response has a 3xx status code

func (*WatchNetworks2Default) IsServerError

func (o *WatchNetworks2Default) IsServerError() bool

IsServerError returns true when this watch networks2 default response has a 5xx status code

func (*WatchNetworks2Default) IsSuccess

func (o *WatchNetworks2Default) IsSuccess() bool

IsSuccess returns true when this watch networks2 default response has a 2xx status code

func (*WatchNetworks2Default) String

func (o *WatchNetworks2Default) String() string

type WatchNetworks2InternalServerError

type WatchNetworks2InternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}

WatchNetworks2InternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewWatchNetworks2InternalServerError

func NewWatchNetworks2InternalServerError() *WatchNetworks2InternalServerError

NewWatchNetworks2InternalServerError creates a WatchNetworks2InternalServerError with default headers values

func (*WatchNetworks2InternalServerError) Code

Code gets the status code for the watch networks2 internal server error response

func (*WatchNetworks2InternalServerError) Error

func (*WatchNetworks2InternalServerError) GetPayload

func (*WatchNetworks2InternalServerError) IsClientError

func (o *WatchNetworks2InternalServerError) IsClientError() bool

IsClientError returns true when this watch networks2 internal server error response has a 4xx status code

func (*WatchNetworks2InternalServerError) IsCode

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

IsCode returns true when this watch networks2 internal server error response a status code equal to that given

func (*WatchNetworks2InternalServerError) IsRedirect

func (o *WatchNetworks2InternalServerError) IsRedirect() bool

IsRedirect returns true when this watch networks2 internal server error response has a 3xx status code

func (*WatchNetworks2InternalServerError) IsServerError

func (o *WatchNetworks2InternalServerError) IsServerError() bool

IsServerError returns true when this watch networks2 internal server error response has a 5xx status code

func (*WatchNetworks2InternalServerError) IsSuccess

func (o *WatchNetworks2InternalServerError) IsSuccess() bool

IsSuccess returns true when this watch networks2 internal server error response has a 2xx status code

func (*WatchNetworks2InternalServerError) String

type WatchNetworks2OK

type WatchNetworks2OK struct {
	Payload *workload_models.V1WatchNetworksResponse
}

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

(streaming responses)

func NewWatchNetworks2OK

func NewWatchNetworks2OK() *WatchNetworks2OK

NewWatchNetworks2OK creates a WatchNetworks2OK with default headers values

func (*WatchNetworks2OK) Code

func (o *WatchNetworks2OK) Code() int

Code gets the status code for the watch networks2 o k response

func (*WatchNetworks2OK) Error

func (o *WatchNetworks2OK) Error() string

func (*WatchNetworks2OK) GetPayload

func (*WatchNetworks2OK) IsClientError

func (o *WatchNetworks2OK) IsClientError() bool

IsClientError returns true when this watch networks2 o k response has a 4xx status code

func (*WatchNetworks2OK) IsCode

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

IsCode returns true when this watch networks2 o k response a status code equal to that given

func (*WatchNetworks2OK) IsRedirect

func (o *WatchNetworks2OK) IsRedirect() bool

IsRedirect returns true when this watch networks2 o k response has a 3xx status code

func (*WatchNetworks2OK) IsServerError

func (o *WatchNetworks2OK) IsServerError() bool

IsServerError returns true when this watch networks2 o k response has a 5xx status code

func (*WatchNetworks2OK) IsSuccess

func (o *WatchNetworks2OK) IsSuccess() bool

IsSuccess returns true when this watch networks2 o k response has a 2xx status code

func (*WatchNetworks2OK) String

func (o *WatchNetworks2OK) String() string

type WatchNetworks2Params

type WatchNetworks2Params struct {

	// StackID.
	StackID string

	// Version.
	Version *string

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

WatchNetworks2Params contains all the parameters to send to the API endpoint

for the watch networks2 operation.

Typically these are written to a http.Request.

func NewWatchNetworks2Params

func NewWatchNetworks2Params() *WatchNetworks2Params

NewWatchNetworks2Params creates a new WatchNetworks2Params 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 NewWatchNetworks2ParamsWithContext

func NewWatchNetworks2ParamsWithContext(ctx context.Context) *WatchNetworks2Params

NewWatchNetworks2ParamsWithContext creates a new WatchNetworks2Params object with the ability to set a context for a request.

func NewWatchNetworks2ParamsWithHTTPClient

func NewWatchNetworks2ParamsWithHTTPClient(client *http.Client) *WatchNetworks2Params

NewWatchNetworks2ParamsWithHTTPClient creates a new WatchNetworks2Params object with the ability to set a custom HTTPClient for a request.

func NewWatchNetworks2ParamsWithTimeout

func NewWatchNetworks2ParamsWithTimeout(timeout time.Duration) *WatchNetworks2Params

NewWatchNetworks2ParamsWithTimeout creates a new WatchNetworks2Params object with the ability to set a timeout on a request.

func (*WatchNetworks2Params) SetContext

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

SetContext adds the context to the watch networks2 params

func (*WatchNetworks2Params) SetDefaults

func (o *WatchNetworks2Params) SetDefaults()

SetDefaults hydrates default values in the watch networks2 params (not the query body).

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

func (*WatchNetworks2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the watch networks2 params

func (*WatchNetworks2Params) SetStackID

func (o *WatchNetworks2Params) SetStackID(stackID string)

SetStackID adds the stackId to the watch networks2 params

func (*WatchNetworks2Params) SetTimeout

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

SetTimeout adds the timeout to the watch networks2 params

func (*WatchNetworks2Params) SetVersion

func (o *WatchNetworks2Params) SetVersion(version *string)

SetVersion adds the version to the watch networks2 params

func (*WatchNetworks2Params) WithContext

WithContext adds the context to the watch networks2 params

func (*WatchNetworks2Params) WithDefaults

func (o *WatchNetworks2Params) WithDefaults() *WatchNetworks2Params

WithDefaults hydrates default values in the watch networks2 params (not the query body).

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

func (*WatchNetworks2Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the watch networks2 params

func (*WatchNetworks2Params) WithStackID

func (o *WatchNetworks2Params) WithStackID(stackID string) *WatchNetworks2Params

WithStackID adds the stackID to the watch networks2 params

func (*WatchNetworks2Params) WithTimeout

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

WithTimeout adds the timeout to the watch networks2 params

func (*WatchNetworks2Params) WithVersion

func (o *WatchNetworks2Params) WithVersion(version *string) *WatchNetworks2Params

WithVersion adds the version to the watch networks2 params

func (*WatchNetworks2Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type WatchNetworks2Reader

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

WatchNetworks2Reader is a Reader for the WatchNetworks2 structure.

func (*WatchNetworks2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type WatchNetworks2Unauthorized

type WatchNetworks2Unauthorized struct {
	Payload *workload_models.StackpathapiStatus
}

WatchNetworks2Unauthorized describes a response with status code 401, with default header values.

Returned when an unauthorized request is attempted.

func NewWatchNetworks2Unauthorized

func NewWatchNetworks2Unauthorized() *WatchNetworks2Unauthorized

NewWatchNetworks2Unauthorized creates a WatchNetworks2Unauthorized with default headers values

func (*WatchNetworks2Unauthorized) Code

func (o *WatchNetworks2Unauthorized) Code() int

Code gets the status code for the watch networks2 unauthorized response

func (*WatchNetworks2Unauthorized) Error

func (*WatchNetworks2Unauthorized) GetPayload

func (*WatchNetworks2Unauthorized) IsClientError

func (o *WatchNetworks2Unauthorized) IsClientError() bool

IsClientError returns true when this watch networks2 unauthorized response has a 4xx status code

func (*WatchNetworks2Unauthorized) IsCode

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

IsCode returns true when this watch networks2 unauthorized response a status code equal to that given

func (*WatchNetworks2Unauthorized) IsRedirect

func (o *WatchNetworks2Unauthorized) IsRedirect() bool

IsRedirect returns true when this watch networks2 unauthorized response has a 3xx status code

func (*WatchNetworks2Unauthorized) IsServerError

func (o *WatchNetworks2Unauthorized) IsServerError() bool

IsServerError returns true when this watch networks2 unauthorized response has a 5xx status code

func (*WatchNetworks2Unauthorized) IsSuccess

func (o *WatchNetworks2Unauthorized) IsSuccess() bool

IsSuccess returns true when this watch networks2 unauthorized response has a 2xx status code

func (*WatchNetworks2Unauthorized) String

func (o *WatchNetworks2Unauthorized) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL