Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetWorkloadInstancesDefault
- func (o *GetWorkloadInstancesDefault) Code() int
- func (o *GetWorkloadInstancesDefault) Error() string
- func (o *GetWorkloadInstancesDefault) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInstancesDefault) IsClientError() bool
- func (o *GetWorkloadInstancesDefault) IsCode(code int) bool
- func (o *GetWorkloadInstancesDefault) IsRedirect() bool
- func (o *GetWorkloadInstancesDefault) IsServerError() bool
- func (o *GetWorkloadInstancesDefault) IsSuccess() bool
- func (o *GetWorkloadInstancesDefault) String() string
- type GetWorkloadInstancesInternalServerError
- func (o *GetWorkloadInstancesInternalServerError) Code() int
- func (o *GetWorkloadInstancesInternalServerError) Error() string
- func (o *GetWorkloadInstancesInternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInstancesInternalServerError) IsClientError() bool
- func (o *GetWorkloadInstancesInternalServerError) IsCode(code int) bool
- func (o *GetWorkloadInstancesInternalServerError) IsRedirect() bool
- func (o *GetWorkloadInstancesInternalServerError) IsServerError() bool
- func (o *GetWorkloadInstancesInternalServerError) IsSuccess() bool
- func (o *GetWorkloadInstancesInternalServerError) String() string
- type GetWorkloadInstancesOK
- func (o *GetWorkloadInstancesOK) Code() int
- func (o *GetWorkloadInstancesOK) Error() string
- func (o *GetWorkloadInstancesOK) GetPayload() *workload_models.V1GetWorkloadInstancesResponse
- func (o *GetWorkloadInstancesOK) IsClientError() bool
- func (o *GetWorkloadInstancesOK) IsCode(code int) bool
- func (o *GetWorkloadInstancesOK) IsRedirect() bool
- func (o *GetWorkloadInstancesOK) IsServerError() bool
- func (o *GetWorkloadInstancesOK) IsSuccess() bool
- func (o *GetWorkloadInstancesOK) String() string
- type GetWorkloadInstancesParams
- func NewGetWorkloadInstancesParams() *GetWorkloadInstancesParams
- func NewGetWorkloadInstancesParamsWithContext(ctx context.Context) *GetWorkloadInstancesParams
- func NewGetWorkloadInstancesParamsWithHTTPClient(client *http.Client) *GetWorkloadInstancesParams
- func NewGetWorkloadInstancesParamsWithTimeout(timeout time.Duration) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) SetContext(ctx context.Context)
- func (o *GetWorkloadInstancesParams) SetDefaults()
- func (o *GetWorkloadInstancesParams) SetHTTPClient(client *http.Client)
- func (o *GetWorkloadInstancesParams) SetPageRequestAfter(pageRequestAfter *string)
- func (o *GetWorkloadInstancesParams) SetPageRequestFilter(pageRequestFilter *string)
- func (o *GetWorkloadInstancesParams) SetPageRequestFirst(pageRequestFirst *string)
- func (o *GetWorkloadInstancesParams) SetPageRequestSortBy(pageRequestSortBy *string)
- func (o *GetWorkloadInstancesParams) SetStackID(stackID string)
- func (o *GetWorkloadInstancesParams) SetTimeout(timeout time.Duration)
- func (o *GetWorkloadInstancesParams) SetWorkloadID(workloadID string)
- func (o *GetWorkloadInstancesParams) WithContext(ctx context.Context) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithDefaults() *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithHTTPClient(client *http.Client) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithPageRequestAfter(pageRequestAfter *string) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithPageRequestFilter(pageRequestFilter *string) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithPageRequestFirst(pageRequestFirst *string) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithStackID(stackID string) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithTimeout(timeout time.Duration) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WithWorkloadID(workloadID string) *GetWorkloadInstancesParams
- func (o *GetWorkloadInstancesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWorkloadInstancesReader
- type GetWorkloadInstancesUnauthorized
- func (o *GetWorkloadInstancesUnauthorized) Code() int
- func (o *GetWorkloadInstancesUnauthorized) Error() string
- func (o *GetWorkloadInstancesUnauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInstancesUnauthorized) IsClientError() bool
- func (o *GetWorkloadInstancesUnauthorized) IsCode(code int) bool
- func (o *GetWorkloadInstancesUnauthorized) IsRedirect() bool
- func (o *GetWorkloadInstancesUnauthorized) IsServerError() bool
- func (o *GetWorkloadInstancesUnauthorized) IsSuccess() bool
- func (o *GetWorkloadInstancesUnauthorized) String() string
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 (o *GetWorkloadInstancesDefault) Error() string
func (*GetWorkloadInstancesDefault) GetPayload ¶
func (o *GetWorkloadInstancesDefault) GetPayload() *workload_models.StackpathapiStatus
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 ¶
func (o *GetWorkloadInstancesInternalServerError) Code() int
Code gets the status code for the get workload instances internal server error response
func (*GetWorkloadInstancesInternalServerError) Error ¶
func (o *GetWorkloadInstancesInternalServerError) Error() string
func (*GetWorkloadInstancesInternalServerError) GetPayload ¶
func (o *GetWorkloadInstancesInternalServerError) GetPayload() *workload_models.StackpathapiStatus
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 ¶
func (o *GetWorkloadInstancesInternalServerError) IsCode(code int) bool
IsCode returns true when this get workload instances internal server error response a status code equal to that given
func (*GetWorkloadInstancesInternalServerError) IsRedirect ¶
func (o *GetWorkloadInstancesInternalServerError) IsRedirect() bool
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 ¶
func (o *GetWorkloadInstancesInternalServerError) IsSuccess() bool
IsSuccess returns true when this get workload instances internal server error response has a 2xx status code
func (*GetWorkloadInstancesInternalServerError) String ¶
func (o *GetWorkloadInstancesInternalServerError) String() 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 (o *GetWorkloadInstancesOK) GetPayload() *workload_models.V1GetWorkloadInstancesResponse
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 ¶
func (o *GetWorkloadInstancesParams) WithContext(ctx context.Context) *GetWorkloadInstancesParams
WithContext adds the context to the get workload instances params
func (*GetWorkloadInstancesParams) WithDefaults ¶
func (o *GetWorkloadInstancesParams) WithDefaults() *GetWorkloadInstancesParams
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 ¶
func (o *GetWorkloadInstancesParams) WithHTTPClient(client *http.Client) *GetWorkloadInstancesParams
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 ¶
func (o *GetWorkloadInstancesParams) WithStackID(stackID string) *GetWorkloadInstancesParams
WithStackID adds the stackID to the get workload instances params
func (*GetWorkloadInstancesParams) WithTimeout ¶
func (o *GetWorkloadInstancesParams) WithTimeout(timeout time.Duration) *GetWorkloadInstancesParams
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 ¶
func (o *GetWorkloadInstancesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *GetWorkloadInstancesUnauthorized) Code() int
Code gets the status code for the get workload instances unauthorized response
func (*GetWorkloadInstancesUnauthorized) Error ¶
func (o *GetWorkloadInstancesUnauthorized) Error() string
func (*GetWorkloadInstancesUnauthorized) GetPayload ¶
func (o *GetWorkloadInstancesUnauthorized) GetPayload() *workload_models.StackpathapiStatus
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 ¶
func (o *GetWorkloadInstancesUnauthorized) String() string