instances

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 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) (*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 ClientService

type ClientService interface {
	GetWorkloadInstances(params *GetWorkloadInstancesParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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

type GetWorkloadInstancesInternalServerError

type GetWorkloadInstancesInternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}

GetWorkloadInstancesInternalServerError handles this case with default header values.

Internal server error.

func NewGetWorkloadInstancesInternalServerError

func NewGetWorkloadInstancesInternalServerError() *GetWorkloadInstancesInternalServerError

NewGetWorkloadInstancesInternalServerError creates a GetWorkloadInstancesInternalServerError with default headers values

func (*GetWorkloadInstancesInternalServerError) Error

func (*GetWorkloadInstancesInternalServerError) GetPayload

type GetWorkloadInstancesOK

type GetWorkloadInstancesOK struct {
	Payload *workload_models.V1GetWorkloadInstancesResponse
}

GetWorkloadInstancesOK handles this case 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) Error

func (o *GetWorkloadInstancesOK) Error() string

func (*GetWorkloadInstancesOK) GetPayload

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 values initialized.

func NewGetWorkloadInstancesParamsWithContext

func NewGetWorkloadInstancesParamsWithContext(ctx context.Context) *GetWorkloadInstancesParams

NewGetWorkloadInstancesParamsWithContext creates a new GetWorkloadInstancesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

func (*GetWorkloadInstancesUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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