instances

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 instances API

func (*Client) GetWorkloadInstances

func (a *Client) GetWorkloadInstances(params *GetWorkloadInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadInstancesOK, error)

GetWorkloadInstances retrieves a workload s instances

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetWorkloadInstances(params *GetWorkloadInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadInstancesOK, 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 instances API client.

type GetWorkloadInstancesDefault

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

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

Default error structure.

func NewGetWorkloadInstancesDefault

func NewGetWorkloadInstancesDefault(code int) *GetWorkloadInstancesDefault

NewGetWorkloadInstancesDefault creates a GetWorkloadInstancesDefault with default headers values

func (*GetWorkloadInstancesDefault) Code

func (o *GetWorkloadInstancesDefault) Code() int

Code gets the status code for the get workload instances default response

func (*GetWorkloadInstancesDefault) Error

func (*GetWorkloadInstancesDefault) GetPayload

func (*GetWorkloadInstancesDefault) IsClientError

func (o *GetWorkloadInstancesDefault) IsClientError() bool

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

func (*GetWorkloadInstancesDefault) IsCode

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

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

func (*GetWorkloadInstancesDefault) IsRedirect

func (o *GetWorkloadInstancesDefault) IsRedirect() bool

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

func (*GetWorkloadInstancesDefault) IsServerError

func (o *GetWorkloadInstancesDefault) IsServerError() bool

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

func (*GetWorkloadInstancesDefault) IsSuccess

func (o *GetWorkloadInstancesDefault) IsSuccess() bool

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

func (*GetWorkloadInstancesDefault) String

func (o *GetWorkloadInstancesDefault) String() string

type GetWorkloadInstancesInternalServerError

type GetWorkloadInstancesInternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}

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

Internal server error.

func NewGetWorkloadInstancesInternalServerError

func NewGetWorkloadInstancesInternalServerError() *GetWorkloadInstancesInternalServerError

NewGetWorkloadInstancesInternalServerError creates a GetWorkloadInstancesInternalServerError with default headers values

func (*GetWorkloadInstancesInternalServerError) Code

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

func (*GetWorkloadInstancesInternalServerError) Error

func (*GetWorkloadInstancesInternalServerError) GetPayload

func (*GetWorkloadInstancesInternalServerError) IsClientError

func (o *GetWorkloadInstancesInternalServerError) IsClientError() bool

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

func (*GetWorkloadInstancesInternalServerError) IsCode

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

func (*GetWorkloadInstancesInternalServerError) IsRedirect

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

func (*GetWorkloadInstancesInternalServerError) IsServerError

func (o *GetWorkloadInstancesInternalServerError) IsServerError() bool

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

func (*GetWorkloadInstancesInternalServerError) IsSuccess

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

func (*GetWorkloadInstancesInternalServerError) String

type GetWorkloadInstancesOK

type GetWorkloadInstancesOK struct {
	Payload *workload_models.V1GetWorkloadInstancesResponse
}

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

GetWorkloadInstancesOK get workload instances o k

func NewGetWorkloadInstancesOK

func NewGetWorkloadInstancesOK() *GetWorkloadInstancesOK

NewGetWorkloadInstancesOK creates a GetWorkloadInstancesOK with default headers values

func (*GetWorkloadInstancesOK) Code

func (o *GetWorkloadInstancesOK) Code() int

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

func (*GetWorkloadInstancesOK) Error

func (o *GetWorkloadInstancesOK) Error() string

func (*GetWorkloadInstancesOK) GetPayload

func (*GetWorkloadInstancesOK) IsClientError

func (o *GetWorkloadInstancesOK) IsClientError() bool

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

func (*GetWorkloadInstancesOK) IsCode

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

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

func (*GetWorkloadInstancesOK) IsRedirect

func (o *GetWorkloadInstancesOK) IsRedirect() bool

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

func (*GetWorkloadInstancesOK) IsServerError

func (o *GetWorkloadInstancesOK) IsServerError() bool

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

func (*GetWorkloadInstancesOK) IsSuccess

func (o *GetWorkloadInstancesOK) IsSuccess() bool

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

func (*GetWorkloadInstancesOK) String

func (o *GetWorkloadInstancesOK) String() string

type GetWorkloadInstancesParams

type GetWorkloadInstancesParams struct {

	/* PageRequestAfter.

	   The cursor value after which data will be returned.
	*/
	PageRequestAfter *string

	/* PageRequestFilter.

	   SQL-style constraint filters.
	*/
	PageRequestFilter *string

	/* PageRequestFirst.

	   The number of items desired.
	*/
	PageRequestFirst *string

	/* PageRequestSortBy.

	   Sort the response by the given field.
	*/
	PageRequestSortBy *string

	/* StackID.

	   The ID of the stack containing the workload whose instances to retrieve
	*/
	StackID string

	/* WorkloadID.

	   The ID the workload whose instances to retrieve
	*/
	WorkloadID string

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

GetWorkloadInstancesParams contains all the parameters to send to the API endpoint

for the get workload instances operation.

Typically these are written to a http.Request.

func NewGetWorkloadInstancesParams

func NewGetWorkloadInstancesParams() *GetWorkloadInstancesParams

NewGetWorkloadInstancesParams creates a new GetWorkloadInstancesParams object, with the default timeout for this client.

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

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

func NewGetWorkloadInstancesParamsWithContext

func NewGetWorkloadInstancesParamsWithContext(ctx context.Context) *GetWorkloadInstancesParams

NewGetWorkloadInstancesParamsWithContext creates a new GetWorkloadInstancesParams object with the ability to set a context for a request.

func NewGetWorkloadInstancesParamsWithHTTPClient

func NewGetWorkloadInstancesParamsWithHTTPClient(client *http.Client) *GetWorkloadInstancesParams

NewGetWorkloadInstancesParamsWithHTTPClient creates a new GetWorkloadInstancesParams object with the ability to set a custom HTTPClient for a request.

func NewGetWorkloadInstancesParamsWithTimeout

func NewGetWorkloadInstancesParamsWithTimeout(timeout time.Duration) *GetWorkloadInstancesParams

NewGetWorkloadInstancesParamsWithTimeout creates a new GetWorkloadInstancesParams object with the ability to set a timeout on a request.

func (*GetWorkloadInstancesParams) SetContext

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

SetContext adds the context to the get workload instances params

func (*GetWorkloadInstancesParams) SetDefaults

func (o *GetWorkloadInstancesParams) SetDefaults()

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

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

func (*GetWorkloadInstancesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get workload instances params

func (*GetWorkloadInstancesParams) SetPageRequestAfter

func (o *GetWorkloadInstancesParams) SetPageRequestAfter(pageRequestAfter *string)

SetPageRequestAfter adds the pageRequestAfter to the get workload instances params

func (*GetWorkloadInstancesParams) SetPageRequestFilter

func (o *GetWorkloadInstancesParams) SetPageRequestFilter(pageRequestFilter *string)

SetPageRequestFilter adds the pageRequestFilter to the get workload instances params

func (*GetWorkloadInstancesParams) SetPageRequestFirst

func (o *GetWorkloadInstancesParams) SetPageRequestFirst(pageRequestFirst *string)

SetPageRequestFirst adds the pageRequestFirst to the get workload instances params

func (*GetWorkloadInstancesParams) SetPageRequestSortBy

func (o *GetWorkloadInstancesParams) SetPageRequestSortBy(pageRequestSortBy *string)

SetPageRequestSortBy adds the pageRequestSortBy to the get workload instances params

func (*GetWorkloadInstancesParams) SetStackID

func (o *GetWorkloadInstancesParams) SetStackID(stackID string)

SetStackID adds the stackId to the get workload instances params

func (*GetWorkloadInstancesParams) SetTimeout

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

SetTimeout adds the timeout to the get workload instances params

func (*GetWorkloadInstancesParams) SetWorkloadID

func (o *GetWorkloadInstancesParams) SetWorkloadID(workloadID string)

SetWorkloadID adds the workloadId to the get workload instances params

func (*GetWorkloadInstancesParams) WithContext

WithContext adds the context to the get workload instances params

func (*GetWorkloadInstancesParams) WithDefaults

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

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

func (*GetWorkloadInstancesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get workload instances params

func (*GetWorkloadInstancesParams) WithPageRequestAfter

func (o *GetWorkloadInstancesParams) WithPageRequestAfter(pageRequestAfter *string) *GetWorkloadInstancesParams

WithPageRequestAfter adds the pageRequestAfter to the get workload instances params

func (*GetWorkloadInstancesParams) WithPageRequestFilter

func (o *GetWorkloadInstancesParams) WithPageRequestFilter(pageRequestFilter *string) *GetWorkloadInstancesParams

WithPageRequestFilter adds the pageRequestFilter to the get workload instances params

func (*GetWorkloadInstancesParams) WithPageRequestFirst

func (o *GetWorkloadInstancesParams) WithPageRequestFirst(pageRequestFirst *string) *GetWorkloadInstancesParams

WithPageRequestFirst adds the pageRequestFirst to the get workload instances params

func (*GetWorkloadInstancesParams) WithPageRequestSortBy

func (o *GetWorkloadInstancesParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetWorkloadInstancesParams

WithPageRequestSortBy adds the pageRequestSortBy to the get workload instances params

func (*GetWorkloadInstancesParams) WithStackID

WithStackID adds the stackID to the get workload instances params

func (*GetWorkloadInstancesParams) WithTimeout

WithTimeout adds the timeout to the get workload instances params

func (*GetWorkloadInstancesParams) WithWorkloadID

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

WithWorkloadID adds the workloadID to the get workload instances params

func (*GetWorkloadInstancesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWorkloadInstancesReader

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

GetWorkloadInstancesReader is a Reader for the GetWorkloadInstances structure.

func (*GetWorkloadInstancesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetWorkloadInstancesUnauthorized

type GetWorkloadInstancesUnauthorized struct {
	Payload *workload_models.StackpathapiStatus
}

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

Returned when an unauthorized request is attempted.

func NewGetWorkloadInstancesUnauthorized

func NewGetWorkloadInstancesUnauthorized() *GetWorkloadInstancesUnauthorized

NewGetWorkloadInstancesUnauthorized creates a GetWorkloadInstancesUnauthorized with default headers values

func (*GetWorkloadInstancesUnauthorized) Code

Code gets the status code for the get workload instances unauthorized response

func (*GetWorkloadInstancesUnauthorized) Error

func (*GetWorkloadInstancesUnauthorized) GetPayload

func (*GetWorkloadInstancesUnauthorized) IsClientError

func (o *GetWorkloadInstancesUnauthorized) IsClientError() bool

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

func (*GetWorkloadInstancesUnauthorized) IsCode

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

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

func (*GetWorkloadInstancesUnauthorized) IsRedirect

func (o *GetWorkloadInstancesUnauthorized) IsRedirect() bool

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

func (*GetWorkloadInstancesUnauthorized) IsServerError

func (o *GetWorkloadInstancesUnauthorized) IsServerError() bool

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

func (*GetWorkloadInstancesUnauthorized) IsSuccess

func (o *GetWorkloadInstancesUnauthorized) IsSuccess() bool

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

func (*GetWorkloadInstancesUnauthorized) String

Jump to

Keyboard shortcuts

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