workloads

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 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 workloads API

func (*Client) CreateWorkload

func (a *Client) CreateWorkload(params *CreateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateWorkloadOK, error)

CreateWorkload creates a new workload

func (*Client) DeleteWorkload

func (a *Client) DeleteWorkload(params *DeleteWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteWorkloadNoContent, error)

DeleteWorkload deletes a workload

func (*Client) GetLocations

func (a *Client) GetLocations(params *GetLocationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLocationsOK, error)

GetLocations retrieves the locations a workload may be created in

func (*Client) GetWorkload

func (a *Client) GetWorkload(params *GetWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadOK, error)

GetWorkload retrieves an individual workload

func (*Client) GetWorkloads

func (a *Client) GetWorkloads(params *GetWorkloadsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadsOK, error)

GetWorkloads retrieves a stack s workloads

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateWorkload

func (a *Client) UpdateWorkload(params *UpdateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWorkloadOK, error)

UpdateWorkload updates a workload

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateWorkload(params *CreateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateWorkloadOK, error)

	DeleteWorkload(params *DeleteWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteWorkloadNoContent, error)

	GetLocations(params *GetLocationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLocationsOK, error)

	GetWorkload(params *GetWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadOK, error)

	GetWorkloads(params *GetWorkloadsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadsOK, error)

	UpdateWorkload(params *UpdateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWorkloadOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new workloads API client.

type CreateWorkloadDefault

type CreateWorkloadDefault struct {
	Payload *workload_models.StackpathapiStatus
	// contains filtered or unexported fields
}
CreateWorkloadDefault describes a response with status code -1, with default header values.

Default error structure.

func NewCreateWorkloadDefault

func NewCreateWorkloadDefault(code int) *CreateWorkloadDefault

NewCreateWorkloadDefault creates a CreateWorkloadDefault with default headers values

func (*CreateWorkloadDefault) Code

func (o *CreateWorkloadDefault) Code() int

Code gets the status code for the create workload default response

func (*CreateWorkloadDefault) Error

func (o *CreateWorkloadDefault) Error() string

func (*CreateWorkloadDefault) GetPayload

type CreateWorkloadInternalServerError

type CreateWorkloadInternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}
CreateWorkloadInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewCreateWorkloadInternalServerError

func NewCreateWorkloadInternalServerError() *CreateWorkloadInternalServerError

NewCreateWorkloadInternalServerError creates a CreateWorkloadInternalServerError with default headers values

func (*CreateWorkloadInternalServerError) Error

func (*CreateWorkloadInternalServerError) GetPayload

type CreateWorkloadOK

type CreateWorkloadOK struct {
	Payload *workload_models.V1CreateWorkloadResponse
}
CreateWorkloadOK describes a response with status code 200, with default header values.

CreateWorkloadOK create workload o k

func NewCreateWorkloadOK

func NewCreateWorkloadOK() *CreateWorkloadOK

NewCreateWorkloadOK creates a CreateWorkloadOK with default headers values

func (*CreateWorkloadOK) Error

func (o *CreateWorkloadOK) Error() string

func (*CreateWorkloadOK) GetPayload

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

func (*CreateWorkloadUnauthorized) GetPayload

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

type DeleteWorkloadInternalServerError

type DeleteWorkloadInternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}
DeleteWorkloadInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewDeleteWorkloadInternalServerError

func NewDeleteWorkloadInternalServerError() *DeleteWorkloadInternalServerError

NewDeleteWorkloadInternalServerError creates a DeleteWorkloadInternalServerError with default headers values

func (*DeleteWorkloadInternalServerError) Error

func (*DeleteWorkloadInternalServerError) GetPayload

type DeleteWorkloadNoContent

type DeleteWorkloadNoContent struct {
}
DeleteWorkloadNoContent describes a response with status code 204, with default header values.

No content

func NewDeleteWorkloadNoContent

func NewDeleteWorkloadNoContent() *DeleteWorkloadNoContent

NewDeleteWorkloadNoContent creates a DeleteWorkloadNoContent with default headers values

func (*DeleteWorkloadNoContent) Error

func (o *DeleteWorkloadNoContent) Error() string

type DeleteWorkloadParams

type DeleteWorkloadParams struct {

	/* StackID.

	   The ID of the stack containing the workload to delete
	*/
	StackID string

	/* WorkloadID.

	   The ID of the workload to delete
	*/
	WorkloadID string

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

DeleteWorkloadParams contains all the parameters to send to the API endpoint

for the delete workload operation.

Typically these are written to a http.Request.

func NewDeleteWorkloadParams

func NewDeleteWorkloadParams() *DeleteWorkloadParams

NewDeleteWorkloadParams creates a new DeleteWorkloadParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteWorkloadParamsWithContext

func NewDeleteWorkloadParamsWithContext(ctx context.Context) *DeleteWorkloadParams

NewDeleteWorkloadParamsWithContext creates a new DeleteWorkloadParams object with the ability to set a context for a request.

func NewDeleteWorkloadParamsWithHTTPClient

func NewDeleteWorkloadParamsWithHTTPClient(client *http.Client) *DeleteWorkloadParams

NewDeleteWorkloadParamsWithHTTPClient creates a new DeleteWorkloadParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteWorkloadParamsWithTimeout

func NewDeleteWorkloadParamsWithTimeout(timeout time.Duration) *DeleteWorkloadParams

NewDeleteWorkloadParamsWithTimeout creates a new DeleteWorkloadParams object with the ability to set a timeout on a request.

func (*DeleteWorkloadParams) SetContext

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

SetContext adds the context to the delete workload params

func (*DeleteWorkloadParams) SetDefaults

func (o *DeleteWorkloadParams) SetDefaults()

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

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

func (*DeleteWorkloadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete workload params

func (*DeleteWorkloadParams) SetStackID

func (o *DeleteWorkloadParams) SetStackID(stackID string)

SetStackID adds the stackId to the delete workload params

func (*DeleteWorkloadParams) SetTimeout

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

SetTimeout adds the timeout to the delete workload params

func (*DeleteWorkloadParams) SetWorkloadID

func (o *DeleteWorkloadParams) SetWorkloadID(workloadID string)

SetWorkloadID adds the workloadId to the delete workload params

func (*DeleteWorkloadParams) WithContext

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

func (*DeleteWorkloadUnauthorized) GetPayload

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

type GetLocationsInternalServerError

type GetLocationsInternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}
GetLocationsInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewGetLocationsInternalServerError

func NewGetLocationsInternalServerError() *GetLocationsInternalServerError

NewGetLocationsInternalServerError creates a GetLocationsInternalServerError with default headers values

func (*GetLocationsInternalServerError) Error

func (*GetLocationsInternalServerError) GetPayload

type GetLocationsOK

type GetLocationsOK struct {
	Payload *workload_models.V1GetLocationsResponse
}
GetLocationsOK describes a response with status code 200, with default header values.

GetLocationsOK get locations o k

func NewGetLocationsOK

func NewGetLocationsOK() *GetLocationsOK

NewGetLocationsOK creates a GetLocationsOK with default headers values

func (*GetLocationsOK) Error

func (o *GetLocationsOK) Error() string

func (*GetLocationsOK) GetPayload

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

func (o *GetLocationsUnauthorized) Error() string

func (*GetLocationsUnauthorized) GetPayload

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

type GetWorkloadInternalServerError

type GetWorkloadInternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}
GetWorkloadInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewGetWorkloadInternalServerError

func NewGetWorkloadInternalServerError() *GetWorkloadInternalServerError

NewGetWorkloadInternalServerError creates a GetWorkloadInternalServerError with default headers values

func (*GetWorkloadInternalServerError) Error

func (*GetWorkloadInternalServerError) GetPayload

type GetWorkloadOK

type GetWorkloadOK struct {
	Payload *workload_models.V1GetWorkloadResponse
}
GetWorkloadOK describes a response with status code 200, with default header values.

GetWorkloadOK get workload o k

func NewGetWorkloadOK

func NewGetWorkloadOK() *GetWorkloadOK

NewGetWorkloadOK creates a GetWorkloadOK with default headers values

func (*GetWorkloadOK) Error

func (o *GetWorkloadOK) Error() string

func (*GetWorkloadOK) GetPayload

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

func (o *GetWorkloadUnauthorized) Error() string

func (*GetWorkloadUnauthorized) GetPayload

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

type GetWorkloadsInternalServerError

type GetWorkloadsInternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}
GetWorkloadsInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewGetWorkloadsInternalServerError

func NewGetWorkloadsInternalServerError() *GetWorkloadsInternalServerError

NewGetWorkloadsInternalServerError creates a GetWorkloadsInternalServerError with default headers values

func (*GetWorkloadsInternalServerError) Error

func (*GetWorkloadsInternalServerError) GetPayload

type GetWorkloadsOK

type GetWorkloadsOK struct {
	Payload *workload_models.V1GetWorkloadsResponse
}
GetWorkloadsOK describes a response with status code 200, with default header values.

GetWorkloadsOK get workloads o k

func NewGetWorkloadsOK

func NewGetWorkloadsOK() *GetWorkloadsOK

NewGetWorkloadsOK creates a GetWorkloadsOK with default headers values

func (*GetWorkloadsOK) Error

func (o *GetWorkloadsOK) Error() string

func (*GetWorkloadsOK) GetPayload

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

func (o *GetWorkloadsUnauthorized) Error() string

func (*GetWorkloadsUnauthorized) GetPayload

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

type UpdateWorkloadInternalServerError

type UpdateWorkloadInternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}
UpdateWorkloadInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewUpdateWorkloadInternalServerError

func NewUpdateWorkloadInternalServerError() *UpdateWorkloadInternalServerError

NewUpdateWorkloadInternalServerError creates a UpdateWorkloadInternalServerError with default headers values

func (*UpdateWorkloadInternalServerError) Error

func (*UpdateWorkloadInternalServerError) GetPayload

type UpdateWorkloadOK

type UpdateWorkloadOK struct {
	Payload *workload_models.V1UpdateWorkloadResponse
}
UpdateWorkloadOK describes a response with status code 200, with default header values.

UpdateWorkloadOK update workload o k

func NewUpdateWorkloadOK

func NewUpdateWorkloadOK() *UpdateWorkloadOK

NewUpdateWorkloadOK creates a UpdateWorkloadOK with default headers values

func (*UpdateWorkloadOK) Error

func (o *UpdateWorkloadOK) Error() string

func (*UpdateWorkloadOK) GetPayload

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

func (*UpdateWorkloadUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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