Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateWorkload(params *CreateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateWorkloadOK, error)
- func (a *Client) DeleteWorkload(params *DeleteWorkloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteWorkloadNoContent, error)
- func (a *Client) GetLocations(params *GetLocationsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetLocationsOK, error)
- func (a *Client) GetWorkload(params *GetWorkloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetWorkloadOK, error)
- func (a *Client) GetWorkloads(params *GetWorkloadsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetWorkloadsOK, error)
- func (a *Client) PutWorkload(params *PutWorkloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PutWorkloadOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateWorkload(params *UpdateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateWorkloadOK, error)
- type ClientOption
- type ClientService
- type CreateWorkloadDefault
- func (o *CreateWorkloadDefault) Code() int
- func (o *CreateWorkloadDefault) Error() string
- func (o *CreateWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
- func (o *CreateWorkloadDefault) IsClientError() bool
- func (o *CreateWorkloadDefault) IsCode(code int) bool
- func (o *CreateWorkloadDefault) IsRedirect() bool
- func (o *CreateWorkloadDefault) IsServerError() bool
- func (o *CreateWorkloadDefault) IsSuccess() bool
- func (o *CreateWorkloadDefault) String() string
- type CreateWorkloadInternalServerError
- func (o *CreateWorkloadInternalServerError) Code() int
- func (o *CreateWorkloadInternalServerError) Error() string
- func (o *CreateWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *CreateWorkloadInternalServerError) IsClientError() bool
- func (o *CreateWorkloadInternalServerError) IsCode(code int) bool
- func (o *CreateWorkloadInternalServerError) IsRedirect() bool
- func (o *CreateWorkloadInternalServerError) IsServerError() bool
- func (o *CreateWorkloadInternalServerError) IsSuccess() bool
- func (o *CreateWorkloadInternalServerError) String() string
- type CreateWorkloadOK
- func (o *CreateWorkloadOK) Code() int
- func (o *CreateWorkloadOK) Error() string
- func (o *CreateWorkloadOK) GetPayload() *workload_models.V1CreateWorkloadResponse
- func (o *CreateWorkloadOK) IsClientError() bool
- func (o *CreateWorkloadOK) IsCode(code int) bool
- func (o *CreateWorkloadOK) IsRedirect() bool
- func (o *CreateWorkloadOK) IsServerError() bool
- func (o *CreateWorkloadOK) IsSuccess() bool
- func (o *CreateWorkloadOK) String() string
- type CreateWorkloadParams
- func NewCreateWorkloadParams() *CreateWorkloadParams
- func NewCreateWorkloadParamsWithContext(ctx context.Context) *CreateWorkloadParams
- func NewCreateWorkloadParamsWithHTTPClient(client *http.Client) *CreateWorkloadParams
- func NewCreateWorkloadParamsWithTimeout(timeout time.Duration) *CreateWorkloadParams
- func (o *CreateWorkloadParams) SetBody(body *workload_models.V1CreateWorkloadRequest)
- func (o *CreateWorkloadParams) SetContext(ctx context.Context)
- func (o *CreateWorkloadParams) SetDefaults()
- func (o *CreateWorkloadParams) SetHTTPClient(client *http.Client)
- func (o *CreateWorkloadParams) SetStackID(stackID string)
- func (o *CreateWorkloadParams) SetTimeout(timeout time.Duration)
- func (o *CreateWorkloadParams) WithBody(body *workload_models.V1CreateWorkloadRequest) *CreateWorkloadParams
- func (o *CreateWorkloadParams) WithContext(ctx context.Context) *CreateWorkloadParams
- func (o *CreateWorkloadParams) WithDefaults() *CreateWorkloadParams
- func (o *CreateWorkloadParams) WithHTTPClient(client *http.Client) *CreateWorkloadParams
- func (o *CreateWorkloadParams) WithStackID(stackID string) *CreateWorkloadParams
- func (o *CreateWorkloadParams) WithTimeout(timeout time.Duration) *CreateWorkloadParams
- func (o *CreateWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateWorkloadReader
- type CreateWorkloadUnauthorized
- func (o *CreateWorkloadUnauthorized) Code() int
- func (o *CreateWorkloadUnauthorized) Error() string
- func (o *CreateWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *CreateWorkloadUnauthorized) IsClientError() bool
- func (o *CreateWorkloadUnauthorized) IsCode(code int) bool
- func (o *CreateWorkloadUnauthorized) IsRedirect() bool
- func (o *CreateWorkloadUnauthorized) IsServerError() bool
- func (o *CreateWorkloadUnauthorized) IsSuccess() bool
- func (o *CreateWorkloadUnauthorized) String() string
- type DeleteWorkloadDefault
- func (o *DeleteWorkloadDefault) Code() int
- func (o *DeleteWorkloadDefault) Error() string
- func (o *DeleteWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
- func (o *DeleteWorkloadDefault) IsClientError() bool
- func (o *DeleteWorkloadDefault) IsCode(code int) bool
- func (o *DeleteWorkloadDefault) IsRedirect() bool
- func (o *DeleteWorkloadDefault) IsServerError() bool
- func (o *DeleteWorkloadDefault) IsSuccess() bool
- func (o *DeleteWorkloadDefault) String() string
- type DeleteWorkloadInternalServerError
- func (o *DeleteWorkloadInternalServerError) Code() int
- func (o *DeleteWorkloadInternalServerError) Error() string
- func (o *DeleteWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *DeleteWorkloadInternalServerError) IsClientError() bool
- func (o *DeleteWorkloadInternalServerError) IsCode(code int) bool
- func (o *DeleteWorkloadInternalServerError) IsRedirect() bool
- func (o *DeleteWorkloadInternalServerError) IsServerError() bool
- func (o *DeleteWorkloadInternalServerError) IsSuccess() bool
- func (o *DeleteWorkloadInternalServerError) String() string
- type DeleteWorkloadNoContent
- func (o *DeleteWorkloadNoContent) Code() int
- func (o *DeleteWorkloadNoContent) Error() string
- func (o *DeleteWorkloadNoContent) IsClientError() bool
- func (o *DeleteWorkloadNoContent) IsCode(code int) bool
- func (o *DeleteWorkloadNoContent) IsRedirect() bool
- func (o *DeleteWorkloadNoContent) IsServerError() bool
- func (o *DeleteWorkloadNoContent) IsSuccess() bool
- func (o *DeleteWorkloadNoContent) String() string
- type DeleteWorkloadParams
- func NewDeleteWorkloadParams() *DeleteWorkloadParams
- func NewDeleteWorkloadParamsWithContext(ctx context.Context) *DeleteWorkloadParams
- func NewDeleteWorkloadParamsWithHTTPClient(client *http.Client) *DeleteWorkloadParams
- func NewDeleteWorkloadParamsWithTimeout(timeout time.Duration) *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) SetContext(ctx context.Context)
- func (o *DeleteWorkloadParams) SetDefaults()
- func (o *DeleteWorkloadParams) SetHTTPClient(client *http.Client)
- func (o *DeleteWorkloadParams) SetStackID(stackID string)
- func (o *DeleteWorkloadParams) SetTimeout(timeout time.Duration)
- func (o *DeleteWorkloadParams) SetWorkloadID(workloadID string)
- func (o *DeleteWorkloadParams) WithContext(ctx context.Context) *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) WithDefaults() *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) WithHTTPClient(client *http.Client) *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) WithStackID(stackID string) *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) WithTimeout(timeout time.Duration) *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) WithWorkloadID(workloadID string) *DeleteWorkloadParams
- func (o *DeleteWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteWorkloadReader
- type DeleteWorkloadUnauthorized
- func (o *DeleteWorkloadUnauthorized) Code() int
- func (o *DeleteWorkloadUnauthorized) Error() string
- func (o *DeleteWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *DeleteWorkloadUnauthorized) IsClientError() bool
- func (o *DeleteWorkloadUnauthorized) IsCode(code int) bool
- func (o *DeleteWorkloadUnauthorized) IsRedirect() bool
- func (o *DeleteWorkloadUnauthorized) IsServerError() bool
- func (o *DeleteWorkloadUnauthorized) IsSuccess() bool
- func (o *DeleteWorkloadUnauthorized) String() string
- type GetLocationsDefault
- func (o *GetLocationsDefault) Code() int
- func (o *GetLocationsDefault) Error() string
- func (o *GetLocationsDefault) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetLocationsDefault) IsClientError() bool
- func (o *GetLocationsDefault) IsCode(code int) bool
- func (o *GetLocationsDefault) IsRedirect() bool
- func (o *GetLocationsDefault) IsServerError() bool
- func (o *GetLocationsDefault) IsSuccess() bool
- func (o *GetLocationsDefault) String() string
- type GetLocationsInternalServerError
- func (o *GetLocationsInternalServerError) Code() int
- func (o *GetLocationsInternalServerError) Error() string
- func (o *GetLocationsInternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetLocationsInternalServerError) IsClientError() bool
- func (o *GetLocationsInternalServerError) IsCode(code int) bool
- func (o *GetLocationsInternalServerError) IsRedirect() bool
- func (o *GetLocationsInternalServerError) IsServerError() bool
- func (o *GetLocationsInternalServerError) IsSuccess() bool
- func (o *GetLocationsInternalServerError) String() string
- type GetLocationsOK
- func (o *GetLocationsOK) Code() int
- func (o *GetLocationsOK) Error() string
- func (o *GetLocationsOK) GetPayload() *workload_models.V1GetLocationsResponse
- func (o *GetLocationsOK) IsClientError() bool
- func (o *GetLocationsOK) IsCode(code int) bool
- func (o *GetLocationsOK) IsRedirect() bool
- func (o *GetLocationsOK) IsServerError() bool
- func (o *GetLocationsOK) IsSuccess() bool
- func (o *GetLocationsOK) String() string
- type GetLocationsParams
- func (o *GetLocationsParams) SetContext(ctx context.Context)
- func (o *GetLocationsParams) SetDefaults()
- func (o *GetLocationsParams) SetHTTPClient(client *http.Client)
- func (o *GetLocationsParams) SetPageRequestAfter(pageRequestAfter *string)
- func (o *GetLocationsParams) SetPageRequestFilter(pageRequestFilter *string)
- func (o *GetLocationsParams) SetPageRequestFirst(pageRequestFirst *string)
- func (o *GetLocationsParams) SetPageRequestSortBy(pageRequestSortBy *string)
- func (o *GetLocationsParams) SetTimeout(timeout time.Duration)
- func (o *GetLocationsParams) WithContext(ctx context.Context) *GetLocationsParams
- func (o *GetLocationsParams) WithDefaults() *GetLocationsParams
- func (o *GetLocationsParams) WithHTTPClient(client *http.Client) *GetLocationsParams
- func (o *GetLocationsParams) WithPageRequestAfter(pageRequestAfter *string) *GetLocationsParams
- func (o *GetLocationsParams) WithPageRequestFilter(pageRequestFilter *string) *GetLocationsParams
- func (o *GetLocationsParams) WithPageRequestFirst(pageRequestFirst *string) *GetLocationsParams
- func (o *GetLocationsParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetLocationsParams
- func (o *GetLocationsParams) WithTimeout(timeout time.Duration) *GetLocationsParams
- func (o *GetLocationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLocationsReader
- type GetLocationsUnauthorized
- func (o *GetLocationsUnauthorized) Code() int
- func (o *GetLocationsUnauthorized) Error() string
- func (o *GetLocationsUnauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetLocationsUnauthorized) IsClientError() bool
- func (o *GetLocationsUnauthorized) IsCode(code int) bool
- func (o *GetLocationsUnauthorized) IsRedirect() bool
- func (o *GetLocationsUnauthorized) IsServerError() bool
- func (o *GetLocationsUnauthorized) IsSuccess() bool
- func (o *GetLocationsUnauthorized) String() string
- type GetWorkloadDefault
- func (o *GetWorkloadDefault) Code() int
- func (o *GetWorkloadDefault) Error() string
- func (o *GetWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadDefault) IsClientError() bool
- func (o *GetWorkloadDefault) IsCode(code int) bool
- func (o *GetWorkloadDefault) IsRedirect() bool
- func (o *GetWorkloadDefault) IsServerError() bool
- func (o *GetWorkloadDefault) IsSuccess() bool
- func (o *GetWorkloadDefault) String() string
- type GetWorkloadInternalServerError
- func (o *GetWorkloadInternalServerError) Code() int
- func (o *GetWorkloadInternalServerError) Error() string
- func (o *GetWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadInternalServerError) IsClientError() bool
- func (o *GetWorkloadInternalServerError) IsCode(code int) bool
- func (o *GetWorkloadInternalServerError) IsRedirect() bool
- func (o *GetWorkloadInternalServerError) IsServerError() bool
- func (o *GetWorkloadInternalServerError) IsSuccess() bool
- func (o *GetWorkloadInternalServerError) String() string
- type GetWorkloadOK
- func (o *GetWorkloadOK) Code() int
- func (o *GetWorkloadOK) Error() string
- func (o *GetWorkloadOK) GetPayload() *workload_models.V1GetWorkloadResponse
- func (o *GetWorkloadOK) IsClientError() bool
- func (o *GetWorkloadOK) IsCode(code int) bool
- func (o *GetWorkloadOK) IsRedirect() bool
- func (o *GetWorkloadOK) IsServerError() bool
- func (o *GetWorkloadOK) IsSuccess() bool
- func (o *GetWorkloadOK) String() string
- type GetWorkloadParams
- func (o *GetWorkloadParams) SetContext(ctx context.Context)
- func (o *GetWorkloadParams) SetDefaults()
- func (o *GetWorkloadParams) SetHTTPClient(client *http.Client)
- func (o *GetWorkloadParams) SetStackID(stackID string)
- func (o *GetWorkloadParams) SetTimeout(timeout time.Duration)
- func (o *GetWorkloadParams) SetWorkloadID(workloadID string)
- func (o *GetWorkloadParams) WithContext(ctx context.Context) *GetWorkloadParams
- func (o *GetWorkloadParams) WithDefaults() *GetWorkloadParams
- func (o *GetWorkloadParams) WithHTTPClient(client *http.Client) *GetWorkloadParams
- func (o *GetWorkloadParams) WithStackID(stackID string) *GetWorkloadParams
- func (o *GetWorkloadParams) WithTimeout(timeout time.Duration) *GetWorkloadParams
- func (o *GetWorkloadParams) WithWorkloadID(workloadID string) *GetWorkloadParams
- func (o *GetWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWorkloadReader
- type GetWorkloadUnauthorized
- func (o *GetWorkloadUnauthorized) Code() int
- func (o *GetWorkloadUnauthorized) Error() string
- func (o *GetWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadUnauthorized) IsClientError() bool
- func (o *GetWorkloadUnauthorized) IsCode(code int) bool
- func (o *GetWorkloadUnauthorized) IsRedirect() bool
- func (o *GetWorkloadUnauthorized) IsServerError() bool
- func (o *GetWorkloadUnauthorized) IsSuccess() bool
- func (o *GetWorkloadUnauthorized) String() string
- type GetWorkloadsDefault
- func (o *GetWorkloadsDefault) Code() int
- func (o *GetWorkloadsDefault) Error() string
- func (o *GetWorkloadsDefault) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadsDefault) IsClientError() bool
- func (o *GetWorkloadsDefault) IsCode(code int) bool
- func (o *GetWorkloadsDefault) IsRedirect() bool
- func (o *GetWorkloadsDefault) IsServerError() bool
- func (o *GetWorkloadsDefault) IsSuccess() bool
- func (o *GetWorkloadsDefault) String() string
- type GetWorkloadsInternalServerError
- func (o *GetWorkloadsInternalServerError) Code() int
- func (o *GetWorkloadsInternalServerError) Error() string
- func (o *GetWorkloadsInternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadsInternalServerError) IsClientError() bool
- func (o *GetWorkloadsInternalServerError) IsCode(code int) bool
- func (o *GetWorkloadsInternalServerError) IsRedirect() bool
- func (o *GetWorkloadsInternalServerError) IsServerError() bool
- func (o *GetWorkloadsInternalServerError) IsSuccess() bool
- func (o *GetWorkloadsInternalServerError) String() string
- type GetWorkloadsOK
- func (o *GetWorkloadsOK) Code() int
- func (o *GetWorkloadsOK) Error() string
- func (o *GetWorkloadsOK) GetPayload() *workload_models.V1GetWorkloadsResponse
- func (o *GetWorkloadsOK) IsClientError() bool
- func (o *GetWorkloadsOK) IsCode(code int) bool
- func (o *GetWorkloadsOK) IsRedirect() bool
- func (o *GetWorkloadsOK) IsServerError() bool
- func (o *GetWorkloadsOK) IsSuccess() bool
- func (o *GetWorkloadsOK) String() string
- type GetWorkloadsParams
- func (o *GetWorkloadsParams) SetContext(ctx context.Context)
- func (o *GetWorkloadsParams) SetDefaults()
- func (o *GetWorkloadsParams) SetHTTPClient(client *http.Client)
- func (o *GetWorkloadsParams) SetPageRequestAfter(pageRequestAfter *string)
- func (o *GetWorkloadsParams) SetPageRequestFilter(pageRequestFilter *string)
- func (o *GetWorkloadsParams) SetPageRequestFirst(pageRequestFirst *string)
- func (o *GetWorkloadsParams) SetPageRequestSortBy(pageRequestSortBy *string)
- func (o *GetWorkloadsParams) SetStackID(stackID string)
- func (o *GetWorkloadsParams) SetTimeout(timeout time.Duration)
- func (o *GetWorkloadsParams) WithContext(ctx context.Context) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithDefaults() *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithHTTPClient(client *http.Client) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithPageRequestAfter(pageRequestAfter *string) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithPageRequestFilter(pageRequestFilter *string) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithPageRequestFirst(pageRequestFirst *string) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithStackID(stackID string) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WithTimeout(timeout time.Duration) *GetWorkloadsParams
- func (o *GetWorkloadsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWorkloadsReader
- type GetWorkloadsUnauthorized
- func (o *GetWorkloadsUnauthorized) Code() int
- func (o *GetWorkloadsUnauthorized) Error() string
- func (o *GetWorkloadsUnauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *GetWorkloadsUnauthorized) IsClientError() bool
- func (o *GetWorkloadsUnauthorized) IsCode(code int) bool
- func (o *GetWorkloadsUnauthorized) IsRedirect() bool
- func (o *GetWorkloadsUnauthorized) IsServerError() bool
- func (o *GetWorkloadsUnauthorized) IsSuccess() bool
- func (o *GetWorkloadsUnauthorized) String() string
- type PutWorkloadDefault
- func (o *PutWorkloadDefault) Code() int
- func (o *PutWorkloadDefault) Error() string
- func (o *PutWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
- func (o *PutWorkloadDefault) IsClientError() bool
- func (o *PutWorkloadDefault) IsCode(code int) bool
- func (o *PutWorkloadDefault) IsRedirect() bool
- func (o *PutWorkloadDefault) IsServerError() bool
- func (o *PutWorkloadDefault) IsSuccess() bool
- func (o *PutWorkloadDefault) String() string
- type PutWorkloadInternalServerError
- func (o *PutWorkloadInternalServerError) Code() int
- func (o *PutWorkloadInternalServerError) Error() string
- func (o *PutWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *PutWorkloadInternalServerError) IsClientError() bool
- func (o *PutWorkloadInternalServerError) IsCode(code int) bool
- func (o *PutWorkloadInternalServerError) IsRedirect() bool
- func (o *PutWorkloadInternalServerError) IsServerError() bool
- func (o *PutWorkloadInternalServerError) IsSuccess() bool
- func (o *PutWorkloadInternalServerError) String() string
- type PutWorkloadOK
- func (o *PutWorkloadOK) Code() int
- func (o *PutWorkloadOK) Error() string
- func (o *PutWorkloadOK) GetPayload() *workload_models.V1PutWorkloadResponse
- func (o *PutWorkloadOK) IsClientError() bool
- func (o *PutWorkloadOK) IsCode(code int) bool
- func (o *PutWorkloadOK) IsRedirect() bool
- func (o *PutWorkloadOK) IsServerError() bool
- func (o *PutWorkloadOK) IsSuccess() bool
- func (o *PutWorkloadOK) String() string
- type PutWorkloadParams
- func (o *PutWorkloadParams) SetBody(body *workload_models.V1PutWorkloadRequest)
- func (o *PutWorkloadParams) SetContext(ctx context.Context)
- func (o *PutWorkloadParams) SetDefaults()
- func (o *PutWorkloadParams) SetHTTPClient(client *http.Client)
- func (o *PutWorkloadParams) SetTimeout(timeout time.Duration)
- func (o *PutWorkloadParams) SetWorkloadID(workloadID string)
- func (o *PutWorkloadParams) SetWorkloadStackID(workloadStackID string)
- func (o *PutWorkloadParams) WithBody(body *workload_models.V1PutWorkloadRequest) *PutWorkloadParams
- func (o *PutWorkloadParams) WithContext(ctx context.Context) *PutWorkloadParams
- func (o *PutWorkloadParams) WithDefaults() *PutWorkloadParams
- func (o *PutWorkloadParams) WithHTTPClient(client *http.Client) *PutWorkloadParams
- func (o *PutWorkloadParams) WithTimeout(timeout time.Duration) *PutWorkloadParams
- func (o *PutWorkloadParams) WithWorkloadID(workloadID string) *PutWorkloadParams
- func (o *PutWorkloadParams) WithWorkloadStackID(workloadStackID string) *PutWorkloadParams
- func (o *PutWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutWorkloadReader
- type PutWorkloadUnauthorized
- func (o *PutWorkloadUnauthorized) Code() int
- func (o *PutWorkloadUnauthorized) Error() string
- func (o *PutWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *PutWorkloadUnauthorized) IsClientError() bool
- func (o *PutWorkloadUnauthorized) IsCode(code int) bool
- func (o *PutWorkloadUnauthorized) IsRedirect() bool
- func (o *PutWorkloadUnauthorized) IsServerError() bool
- func (o *PutWorkloadUnauthorized) IsSuccess() bool
- func (o *PutWorkloadUnauthorized) String() string
- type UpdateWorkloadDefault
- func (o *UpdateWorkloadDefault) Code() int
- func (o *UpdateWorkloadDefault) Error() string
- func (o *UpdateWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
- func (o *UpdateWorkloadDefault) IsClientError() bool
- func (o *UpdateWorkloadDefault) IsCode(code int) bool
- func (o *UpdateWorkloadDefault) IsRedirect() bool
- func (o *UpdateWorkloadDefault) IsServerError() bool
- func (o *UpdateWorkloadDefault) IsSuccess() bool
- func (o *UpdateWorkloadDefault) String() string
- type UpdateWorkloadInternalServerError
- func (o *UpdateWorkloadInternalServerError) Code() int
- func (o *UpdateWorkloadInternalServerError) Error() string
- func (o *UpdateWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *UpdateWorkloadInternalServerError) IsClientError() bool
- func (o *UpdateWorkloadInternalServerError) IsCode(code int) bool
- func (o *UpdateWorkloadInternalServerError) IsRedirect() bool
- func (o *UpdateWorkloadInternalServerError) IsServerError() bool
- func (o *UpdateWorkloadInternalServerError) IsSuccess() bool
- func (o *UpdateWorkloadInternalServerError) String() string
- type UpdateWorkloadOK
- func (o *UpdateWorkloadOK) Code() int
- func (o *UpdateWorkloadOK) Error() string
- func (o *UpdateWorkloadOK) GetPayload() *workload_models.V1UpdateWorkloadResponse
- func (o *UpdateWorkloadOK) IsClientError() bool
- func (o *UpdateWorkloadOK) IsCode(code int) bool
- func (o *UpdateWorkloadOK) IsRedirect() bool
- func (o *UpdateWorkloadOK) IsServerError() bool
- func (o *UpdateWorkloadOK) IsSuccess() bool
- func (o *UpdateWorkloadOK) String() string
- type UpdateWorkloadParams
- func NewUpdateWorkloadParams() *UpdateWorkloadParams
- func NewUpdateWorkloadParamsWithContext(ctx context.Context) *UpdateWorkloadParams
- func NewUpdateWorkloadParamsWithHTTPClient(client *http.Client) *UpdateWorkloadParams
- func NewUpdateWorkloadParamsWithTimeout(timeout time.Duration) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) SetBody(body *workload_models.V1UpdateWorkloadRequest)
- func (o *UpdateWorkloadParams) SetContext(ctx context.Context)
- func (o *UpdateWorkloadParams) SetDefaults()
- func (o *UpdateWorkloadParams) SetHTTPClient(client *http.Client)
- func (o *UpdateWorkloadParams) SetStackID(stackID string)
- func (o *UpdateWorkloadParams) SetTimeout(timeout time.Duration)
- func (o *UpdateWorkloadParams) SetWorkloadID(workloadID string)
- func (o *UpdateWorkloadParams) WithBody(body *workload_models.V1UpdateWorkloadRequest) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WithContext(ctx context.Context) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WithDefaults() *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WithHTTPClient(client *http.Client) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WithStackID(stackID string) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WithTimeout(timeout time.Duration) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WithWorkloadID(workloadID string) *UpdateWorkloadParams
- func (o *UpdateWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateWorkloadReader
- type UpdateWorkloadUnauthorized
- func (o *UpdateWorkloadUnauthorized) Code() int
- func (o *UpdateWorkloadUnauthorized) Error() string
- func (o *UpdateWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *UpdateWorkloadUnauthorized) IsClientError() bool
- func (o *UpdateWorkloadUnauthorized) IsCode(code int) bool
- func (o *UpdateWorkloadUnauthorized) IsRedirect() bool
- func (o *UpdateWorkloadUnauthorized) IsServerError() bool
- func (o *UpdateWorkloadUnauthorized) IsSuccess() bool
- func (o *UpdateWorkloadUnauthorized) String() string
- type WatchNetworks2Default
- func (o *WatchNetworks2Default) Code() int
- func (o *WatchNetworks2Default) Error() string
- func (o *WatchNetworks2Default) GetPayload() *workload_models.StackpathapiStatus
- func (o *WatchNetworks2Default) IsClientError() bool
- func (o *WatchNetworks2Default) IsCode(code int) bool
- func (o *WatchNetworks2Default) IsRedirect() bool
- func (o *WatchNetworks2Default) IsServerError() bool
- func (o *WatchNetworks2Default) IsSuccess() bool
- func (o *WatchNetworks2Default) String() string
- type WatchNetworks2InternalServerError
- func (o *WatchNetworks2InternalServerError) Code() int
- func (o *WatchNetworks2InternalServerError) Error() string
- func (o *WatchNetworks2InternalServerError) GetPayload() *workload_models.StackpathapiStatus
- func (o *WatchNetworks2InternalServerError) IsClientError() bool
- func (o *WatchNetworks2InternalServerError) IsCode(code int) bool
- func (o *WatchNetworks2InternalServerError) IsRedirect() bool
- func (o *WatchNetworks2InternalServerError) IsServerError() bool
- func (o *WatchNetworks2InternalServerError) IsSuccess() bool
- func (o *WatchNetworks2InternalServerError) String() string
- type WatchNetworks2OK
- func (o *WatchNetworks2OK) Code() int
- func (o *WatchNetworks2OK) Error() string
- func (o *WatchNetworks2OK) GetPayload() *workload_models.V1WatchNetworksResponse
- func (o *WatchNetworks2OK) IsClientError() bool
- func (o *WatchNetworks2OK) IsCode(code int) bool
- func (o *WatchNetworks2OK) IsRedirect() bool
- func (o *WatchNetworks2OK) IsServerError() bool
- func (o *WatchNetworks2OK) IsSuccess() bool
- func (o *WatchNetworks2OK) String() string
- type WatchNetworks2Params
- func NewWatchNetworks2Params() *WatchNetworks2Params
- func NewWatchNetworks2ParamsWithContext(ctx context.Context) *WatchNetworks2Params
- func NewWatchNetworks2ParamsWithHTTPClient(client *http.Client) *WatchNetworks2Params
- func NewWatchNetworks2ParamsWithTimeout(timeout time.Duration) *WatchNetworks2Params
- func (o *WatchNetworks2Params) SetContext(ctx context.Context)
- func (o *WatchNetworks2Params) SetDefaults()
- func (o *WatchNetworks2Params) SetHTTPClient(client *http.Client)
- func (o *WatchNetworks2Params) SetStackID(stackID string)
- func (o *WatchNetworks2Params) SetTimeout(timeout time.Duration)
- func (o *WatchNetworks2Params) SetVersion(version *string)
- func (o *WatchNetworks2Params) WithContext(ctx context.Context) *WatchNetworks2Params
- func (o *WatchNetworks2Params) WithDefaults() *WatchNetworks2Params
- func (o *WatchNetworks2Params) WithHTTPClient(client *http.Client) *WatchNetworks2Params
- func (o *WatchNetworks2Params) WithStackID(stackID string) *WatchNetworks2Params
- func (o *WatchNetworks2Params) WithTimeout(timeout time.Duration) *WatchNetworks2Params
- func (o *WatchNetworks2Params) WithVersion(version *string) *WatchNetworks2Params
- func (o *WatchNetworks2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type WatchNetworks2Reader
- type WatchNetworks2Unauthorized
- func (o *WatchNetworks2Unauthorized) Code() int
- func (o *WatchNetworks2Unauthorized) Error() string
- func (o *WatchNetworks2Unauthorized) GetPayload() *workload_models.StackpathapiStatus
- func (o *WatchNetworks2Unauthorized) IsClientError() bool
- func (o *WatchNetworks2Unauthorized) IsCode(code int) bool
- func (o *WatchNetworks2Unauthorized) IsRedirect() bool
- func (o *WatchNetworks2Unauthorized) IsServerError() bool
- func (o *WatchNetworks2Unauthorized) IsSuccess() bool
- func (o *WatchNetworks2Unauthorized) 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 workload API
func (*Client) CreateWorkload ¶
func (a *Client) CreateWorkload(params *CreateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateWorkloadOK, error)
CreateWorkload creates a new workload
func (*Client) DeleteWorkload ¶
func (a *Client) DeleteWorkload(params *DeleteWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteWorkloadNoContent, error)
DeleteWorkload deletes a workload
func (*Client) GetLocations ¶
func (a *Client) GetLocations(params *GetLocationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLocationsOK, error)
GetLocations retrieves the locations a workload may be created in
func (*Client) GetWorkload ¶
func (a *Client) GetWorkload(params *GetWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadOK, error)
GetWorkload retrieves an individual workload
func (*Client) GetWorkloads ¶
func (a *Client) GetWorkloads(params *GetWorkloadsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadsOK, error)
GetWorkloads retrieves a stack s workloads
func (*Client) PutWorkload ¶
func (a *Client) PutWorkload(params *PutWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutWorkloadOK, error)
PutWorkload replaces an existing workload
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateWorkload ¶
func (a *Client) UpdateWorkload(params *UpdateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWorkloadOK, error)
UpdateWorkload updates a workload
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateWorkload(params *CreateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateWorkloadOK, error) DeleteWorkload(params *DeleteWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteWorkloadNoContent, error) GetLocations(params *GetLocationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLocationsOK, error) GetWorkload(params *GetWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadOK, error) GetWorkloads(params *GetWorkloadsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadsOK, error) PutWorkload(params *PutWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutWorkloadOK, error) UpdateWorkload(params *UpdateWorkloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWorkloadOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new workload API client.
type CreateWorkloadDefault ¶
type CreateWorkloadDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
CreateWorkloadDefault describes a response with status code -1, with default header values.
Default error structure.
func NewCreateWorkloadDefault ¶
func NewCreateWorkloadDefault(code int) *CreateWorkloadDefault
NewCreateWorkloadDefault creates a CreateWorkloadDefault with default headers values
func (*CreateWorkloadDefault) Code ¶
func (o *CreateWorkloadDefault) Code() int
Code gets the status code for the create workload default response
func (*CreateWorkloadDefault) Error ¶
func (o *CreateWorkloadDefault) Error() string
func (*CreateWorkloadDefault) GetPayload ¶
func (o *CreateWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
func (*CreateWorkloadDefault) IsClientError ¶
func (o *CreateWorkloadDefault) IsClientError() bool
IsClientError returns true when this create workload default response has a 4xx status code
func (*CreateWorkloadDefault) IsCode ¶
func (o *CreateWorkloadDefault) IsCode(code int) bool
IsCode returns true when this create workload default response a status code equal to that given
func (*CreateWorkloadDefault) IsRedirect ¶
func (o *CreateWorkloadDefault) IsRedirect() bool
IsRedirect returns true when this create workload default response has a 3xx status code
func (*CreateWorkloadDefault) IsServerError ¶
func (o *CreateWorkloadDefault) IsServerError() bool
IsServerError returns true when this create workload default response has a 5xx status code
func (*CreateWorkloadDefault) IsSuccess ¶
func (o *CreateWorkloadDefault) IsSuccess() bool
IsSuccess returns true when this create workload default response has a 2xx status code
func (*CreateWorkloadDefault) String ¶
func (o *CreateWorkloadDefault) String() string
type CreateWorkloadInternalServerError ¶
type CreateWorkloadInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
CreateWorkloadInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewCreateWorkloadInternalServerError ¶
func NewCreateWorkloadInternalServerError() *CreateWorkloadInternalServerError
NewCreateWorkloadInternalServerError creates a CreateWorkloadInternalServerError with default headers values
func (*CreateWorkloadInternalServerError) Code ¶
func (o *CreateWorkloadInternalServerError) Code() int
Code gets the status code for the create workload internal server error response
func (*CreateWorkloadInternalServerError) Error ¶
func (o *CreateWorkloadInternalServerError) Error() string
func (*CreateWorkloadInternalServerError) GetPayload ¶
func (o *CreateWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
func (*CreateWorkloadInternalServerError) IsClientError ¶
func (o *CreateWorkloadInternalServerError) IsClientError() bool
IsClientError returns true when this create workload internal server error response has a 4xx status code
func (*CreateWorkloadInternalServerError) IsCode ¶
func (o *CreateWorkloadInternalServerError) IsCode(code int) bool
IsCode returns true when this create workload internal server error response a status code equal to that given
func (*CreateWorkloadInternalServerError) IsRedirect ¶
func (o *CreateWorkloadInternalServerError) IsRedirect() bool
IsRedirect returns true when this create workload internal server error response has a 3xx status code
func (*CreateWorkloadInternalServerError) IsServerError ¶
func (o *CreateWorkloadInternalServerError) IsServerError() bool
IsServerError returns true when this create workload internal server error response has a 5xx status code
func (*CreateWorkloadInternalServerError) IsSuccess ¶
func (o *CreateWorkloadInternalServerError) IsSuccess() bool
IsSuccess returns true when this create workload internal server error response has a 2xx status code
func (*CreateWorkloadInternalServerError) String ¶
func (o *CreateWorkloadInternalServerError) String() string
type CreateWorkloadOK ¶
type CreateWorkloadOK struct {
Payload *workload_models.V1CreateWorkloadResponse
}
CreateWorkloadOK describes a response with status code 200, with default header values.
CreateWorkloadOK create workload o k
func NewCreateWorkloadOK ¶
func NewCreateWorkloadOK() *CreateWorkloadOK
NewCreateWorkloadOK creates a CreateWorkloadOK with default headers values
func (*CreateWorkloadOK) Code ¶
func (o *CreateWorkloadOK) Code() int
Code gets the status code for the create workload o k response
func (*CreateWorkloadOK) Error ¶
func (o *CreateWorkloadOK) Error() string
func (*CreateWorkloadOK) GetPayload ¶
func (o *CreateWorkloadOK) GetPayload() *workload_models.V1CreateWorkloadResponse
func (*CreateWorkloadOK) IsClientError ¶
func (o *CreateWorkloadOK) IsClientError() bool
IsClientError returns true when this create workload o k response has a 4xx status code
func (*CreateWorkloadOK) IsCode ¶
func (o *CreateWorkloadOK) IsCode(code int) bool
IsCode returns true when this create workload o k response a status code equal to that given
func (*CreateWorkloadOK) IsRedirect ¶
func (o *CreateWorkloadOK) IsRedirect() bool
IsRedirect returns true when this create workload o k response has a 3xx status code
func (*CreateWorkloadOK) IsServerError ¶
func (o *CreateWorkloadOK) IsServerError() bool
IsServerError returns true when this create workload o k response has a 5xx status code
func (*CreateWorkloadOK) IsSuccess ¶
func (o *CreateWorkloadOK) IsSuccess() bool
IsSuccess returns true when this create workload o k response has a 2xx status code
func (*CreateWorkloadOK) String ¶
func (o *CreateWorkloadOK) String() string
type CreateWorkloadParams ¶
type CreateWorkloadParams struct { // Body. Body *workload_models.V1CreateWorkloadRequest /* StackID. The ID of the stack to create the workload in */ StackID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateWorkloadParams contains all the parameters to send to the API endpoint
for the create workload operation. Typically these are written to a http.Request.
func NewCreateWorkloadParams ¶
func NewCreateWorkloadParams() *CreateWorkloadParams
NewCreateWorkloadParams creates a new CreateWorkloadParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateWorkloadParamsWithContext ¶
func NewCreateWorkloadParamsWithContext(ctx context.Context) *CreateWorkloadParams
NewCreateWorkloadParamsWithContext creates a new CreateWorkloadParams object with the ability to set a context for a request.
func NewCreateWorkloadParamsWithHTTPClient ¶
func NewCreateWorkloadParamsWithHTTPClient(client *http.Client) *CreateWorkloadParams
NewCreateWorkloadParamsWithHTTPClient creates a new CreateWorkloadParams object with the ability to set a custom HTTPClient for a request.
func NewCreateWorkloadParamsWithTimeout ¶
func NewCreateWorkloadParamsWithTimeout(timeout time.Duration) *CreateWorkloadParams
NewCreateWorkloadParamsWithTimeout creates a new CreateWorkloadParams object with the ability to set a timeout on a request.
func (*CreateWorkloadParams) SetBody ¶
func (o *CreateWorkloadParams) SetBody(body *workload_models.V1CreateWorkloadRequest)
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 ¶
func (o *CreateWorkloadParams) WithBody(body *workload_models.V1CreateWorkloadRequest) *CreateWorkloadParams
WithBody adds the body to the create workload params
func (*CreateWorkloadParams) WithContext ¶
func (o *CreateWorkloadParams) WithContext(ctx context.Context) *CreateWorkloadParams
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 {
}CreateWorkloadUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewCreateWorkloadUnauthorized ¶
func NewCreateWorkloadUnauthorized() *CreateWorkloadUnauthorized
NewCreateWorkloadUnauthorized creates a CreateWorkloadUnauthorized with default headers values
func (*CreateWorkloadUnauthorized) Code ¶
func (o *CreateWorkloadUnauthorized) Code() int
Code gets the status code for the create workload unauthorized response
func (*CreateWorkloadUnauthorized) Error ¶
func (o *CreateWorkloadUnauthorized) Error() string
func (*CreateWorkloadUnauthorized) GetPayload ¶
func (o *CreateWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
func (*CreateWorkloadUnauthorized) IsClientError ¶
func (o *CreateWorkloadUnauthorized) IsClientError() bool
IsClientError returns true when this create workload unauthorized response has a 4xx status code
func (*CreateWorkloadUnauthorized) IsCode ¶
func (o *CreateWorkloadUnauthorized) IsCode(code int) bool
IsCode returns true when this create workload unauthorized response a status code equal to that given
func (*CreateWorkloadUnauthorized) IsRedirect ¶
func (o *CreateWorkloadUnauthorized) IsRedirect() bool
IsRedirect returns true when this create workload unauthorized response has a 3xx status code
func (*CreateWorkloadUnauthorized) IsServerError ¶
func (o *CreateWorkloadUnauthorized) IsServerError() bool
IsServerError returns true when this create workload unauthorized response has a 5xx status code
func (*CreateWorkloadUnauthorized) IsSuccess ¶
func (o *CreateWorkloadUnauthorized) IsSuccess() bool
IsSuccess returns true when this create workload unauthorized response has a 2xx status code
func (*CreateWorkloadUnauthorized) String ¶
func (o *CreateWorkloadUnauthorized) String() string
type DeleteWorkloadDefault ¶
type DeleteWorkloadDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
DeleteWorkloadDefault describes a response with status code -1, with default header values.
Default error structure.
func NewDeleteWorkloadDefault ¶
func NewDeleteWorkloadDefault(code int) *DeleteWorkloadDefault
NewDeleteWorkloadDefault creates a DeleteWorkloadDefault with default headers values
func (*DeleteWorkloadDefault) Code ¶
func (o *DeleteWorkloadDefault) Code() int
Code gets the status code for the delete workload default response
func (*DeleteWorkloadDefault) Error ¶
func (o *DeleteWorkloadDefault) Error() string
func (*DeleteWorkloadDefault) GetPayload ¶
func (o *DeleteWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
func (*DeleteWorkloadDefault) IsClientError ¶
func (o *DeleteWorkloadDefault) IsClientError() bool
IsClientError returns true when this delete workload default response has a 4xx status code
func (*DeleteWorkloadDefault) IsCode ¶
func (o *DeleteWorkloadDefault) IsCode(code int) bool
IsCode returns true when this delete workload default response a status code equal to that given
func (*DeleteWorkloadDefault) IsRedirect ¶
func (o *DeleteWorkloadDefault) IsRedirect() bool
IsRedirect returns true when this delete workload default response has a 3xx status code
func (*DeleteWorkloadDefault) IsServerError ¶
func (o *DeleteWorkloadDefault) IsServerError() bool
IsServerError returns true when this delete workload default response has a 5xx status code
func (*DeleteWorkloadDefault) IsSuccess ¶
func (o *DeleteWorkloadDefault) IsSuccess() bool
IsSuccess returns true when this delete workload default response has a 2xx status code
func (*DeleteWorkloadDefault) String ¶
func (o *DeleteWorkloadDefault) String() string
type DeleteWorkloadInternalServerError ¶
type DeleteWorkloadInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
DeleteWorkloadInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewDeleteWorkloadInternalServerError ¶
func NewDeleteWorkloadInternalServerError() *DeleteWorkloadInternalServerError
NewDeleteWorkloadInternalServerError creates a DeleteWorkloadInternalServerError with default headers values
func (*DeleteWorkloadInternalServerError) Code ¶
func (o *DeleteWorkloadInternalServerError) Code() int
Code gets the status code for the delete workload internal server error response
func (*DeleteWorkloadInternalServerError) Error ¶
func (o *DeleteWorkloadInternalServerError) Error() string
func (*DeleteWorkloadInternalServerError) GetPayload ¶
func (o *DeleteWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
func (*DeleteWorkloadInternalServerError) IsClientError ¶
func (o *DeleteWorkloadInternalServerError) IsClientError() bool
IsClientError returns true when this delete workload internal server error response has a 4xx status code
func (*DeleteWorkloadInternalServerError) IsCode ¶
func (o *DeleteWorkloadInternalServerError) IsCode(code int) bool
IsCode returns true when this delete workload internal server error response a status code equal to that given
func (*DeleteWorkloadInternalServerError) IsRedirect ¶
func (o *DeleteWorkloadInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete workload internal server error response has a 3xx status code
func (*DeleteWorkloadInternalServerError) IsServerError ¶
func (o *DeleteWorkloadInternalServerError) IsServerError() bool
IsServerError returns true when this delete workload internal server error response has a 5xx status code
func (*DeleteWorkloadInternalServerError) IsSuccess ¶
func (o *DeleteWorkloadInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete workload internal server error response has a 2xx status code
func (*DeleteWorkloadInternalServerError) String ¶
func (o *DeleteWorkloadInternalServerError) String() string
type DeleteWorkloadNoContent ¶
type DeleteWorkloadNoContent struct { }
DeleteWorkloadNoContent describes a response with status code 204, with default header values.
No content
func NewDeleteWorkloadNoContent ¶
func NewDeleteWorkloadNoContent() *DeleteWorkloadNoContent
NewDeleteWorkloadNoContent creates a DeleteWorkloadNoContent with default headers values
func (*DeleteWorkloadNoContent) Code ¶
func (o *DeleteWorkloadNoContent) Code() int
Code gets the status code for the delete workload no content response
func (*DeleteWorkloadNoContent) Error ¶
func (o *DeleteWorkloadNoContent) Error() string
func (*DeleteWorkloadNoContent) IsClientError ¶
func (o *DeleteWorkloadNoContent) IsClientError() bool
IsClientError returns true when this delete workload no content response has a 4xx status code
func (*DeleteWorkloadNoContent) IsCode ¶
func (o *DeleteWorkloadNoContent) IsCode(code int) bool
IsCode returns true when this delete workload no content response a status code equal to that given
func (*DeleteWorkloadNoContent) IsRedirect ¶
func (o *DeleteWorkloadNoContent) IsRedirect() bool
IsRedirect returns true when this delete workload no content response has a 3xx status code
func (*DeleteWorkloadNoContent) IsServerError ¶
func (o *DeleteWorkloadNoContent) IsServerError() bool
IsServerError returns true when this delete workload no content response has a 5xx status code
func (*DeleteWorkloadNoContent) IsSuccess ¶
func (o *DeleteWorkloadNoContent) IsSuccess() bool
IsSuccess returns true when this delete workload no content response has a 2xx status code
func (*DeleteWorkloadNoContent) String ¶
func (o *DeleteWorkloadNoContent) String() string
type DeleteWorkloadParams ¶
type DeleteWorkloadParams struct { /* StackID. The ID of the stack containing the workload to delete */ StackID string /* WorkloadID. The ID of the workload to delete */ WorkloadID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteWorkloadParams contains all the parameters to send to the API endpoint
for the delete workload operation. Typically these are written to a http.Request.
func NewDeleteWorkloadParams ¶
func NewDeleteWorkloadParams() *DeleteWorkloadParams
NewDeleteWorkloadParams creates a new DeleteWorkloadParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeleteWorkloadParamsWithContext ¶
func NewDeleteWorkloadParamsWithContext(ctx context.Context) *DeleteWorkloadParams
NewDeleteWorkloadParamsWithContext creates a new DeleteWorkloadParams object with the ability to set a context for a request.
func NewDeleteWorkloadParamsWithHTTPClient ¶
func NewDeleteWorkloadParamsWithHTTPClient(client *http.Client) *DeleteWorkloadParams
NewDeleteWorkloadParamsWithHTTPClient creates a new DeleteWorkloadParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteWorkloadParamsWithTimeout ¶
func NewDeleteWorkloadParamsWithTimeout(timeout time.Duration) *DeleteWorkloadParams
NewDeleteWorkloadParamsWithTimeout creates a new DeleteWorkloadParams object with the ability to set a timeout on a request.
func (*DeleteWorkloadParams) SetContext ¶
func (o *DeleteWorkloadParams) SetContext(ctx context.Context)
SetContext adds the context to the delete workload params
func (*DeleteWorkloadParams) SetDefaults ¶
func (o *DeleteWorkloadParams) SetDefaults()
SetDefaults hydrates default values in the delete workload params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteWorkloadParams) SetHTTPClient ¶
func (o *DeleteWorkloadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete workload params
func (*DeleteWorkloadParams) SetStackID ¶
func (o *DeleteWorkloadParams) SetStackID(stackID string)
SetStackID adds the stackId to the delete workload params
func (*DeleteWorkloadParams) SetTimeout ¶
func (o *DeleteWorkloadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete workload params
func (*DeleteWorkloadParams) SetWorkloadID ¶
func (o *DeleteWorkloadParams) SetWorkloadID(workloadID string)
SetWorkloadID adds the workloadId to the delete workload params
func (*DeleteWorkloadParams) WithContext ¶
func (o *DeleteWorkloadParams) WithContext(ctx context.Context) *DeleteWorkloadParams
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 {
}DeleteWorkloadUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewDeleteWorkloadUnauthorized ¶
func NewDeleteWorkloadUnauthorized() *DeleteWorkloadUnauthorized
NewDeleteWorkloadUnauthorized creates a DeleteWorkloadUnauthorized with default headers values
func (*DeleteWorkloadUnauthorized) Code ¶
func (o *DeleteWorkloadUnauthorized) Code() int
Code gets the status code for the delete workload unauthorized response
func (*DeleteWorkloadUnauthorized) Error ¶
func (o *DeleteWorkloadUnauthorized) Error() string
func (*DeleteWorkloadUnauthorized) GetPayload ¶
func (o *DeleteWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
func (*DeleteWorkloadUnauthorized) IsClientError ¶
func (o *DeleteWorkloadUnauthorized) IsClientError() bool
IsClientError returns true when this delete workload unauthorized response has a 4xx status code
func (*DeleteWorkloadUnauthorized) IsCode ¶
func (o *DeleteWorkloadUnauthorized) IsCode(code int) bool
IsCode returns true when this delete workload unauthorized response a status code equal to that given
func (*DeleteWorkloadUnauthorized) IsRedirect ¶
func (o *DeleteWorkloadUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete workload unauthorized response has a 3xx status code
func (*DeleteWorkloadUnauthorized) IsServerError ¶
func (o *DeleteWorkloadUnauthorized) IsServerError() bool
IsServerError returns true when this delete workload unauthorized response has a 5xx status code
func (*DeleteWorkloadUnauthorized) IsSuccess ¶
func (o *DeleteWorkloadUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete workload unauthorized response has a 2xx status code
func (*DeleteWorkloadUnauthorized) String ¶
func (o *DeleteWorkloadUnauthorized) String() string
type GetLocationsDefault ¶
type GetLocationsDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
GetLocationsDefault describes a response with status code -1, with default header values.
Default error structure.
func NewGetLocationsDefault ¶
func NewGetLocationsDefault(code int) *GetLocationsDefault
NewGetLocationsDefault creates a GetLocationsDefault with default headers values
func (*GetLocationsDefault) Code ¶
func (o *GetLocationsDefault) Code() int
Code gets the status code for the get locations default response
func (*GetLocationsDefault) Error ¶
func (o *GetLocationsDefault) Error() string
func (*GetLocationsDefault) GetPayload ¶
func (o *GetLocationsDefault) GetPayload() *workload_models.StackpathapiStatus
func (*GetLocationsDefault) IsClientError ¶
func (o *GetLocationsDefault) IsClientError() bool
IsClientError returns true when this get locations default response has a 4xx status code
func (*GetLocationsDefault) IsCode ¶
func (o *GetLocationsDefault) IsCode(code int) bool
IsCode returns true when this get locations default response a status code equal to that given
func (*GetLocationsDefault) IsRedirect ¶
func (o *GetLocationsDefault) IsRedirect() bool
IsRedirect returns true when this get locations default response has a 3xx status code
func (*GetLocationsDefault) IsServerError ¶
func (o *GetLocationsDefault) IsServerError() bool
IsServerError returns true when this get locations default response has a 5xx status code
func (*GetLocationsDefault) IsSuccess ¶
func (o *GetLocationsDefault) IsSuccess() bool
IsSuccess returns true when this get locations default response has a 2xx status code
func (*GetLocationsDefault) String ¶
func (o *GetLocationsDefault) String() string
type GetLocationsInternalServerError ¶
type GetLocationsInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
GetLocationsInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewGetLocationsInternalServerError ¶
func NewGetLocationsInternalServerError() *GetLocationsInternalServerError
NewGetLocationsInternalServerError creates a GetLocationsInternalServerError with default headers values
func (*GetLocationsInternalServerError) Code ¶
func (o *GetLocationsInternalServerError) Code() int
Code gets the status code for the get locations internal server error response
func (*GetLocationsInternalServerError) Error ¶
func (o *GetLocationsInternalServerError) Error() string
func (*GetLocationsInternalServerError) GetPayload ¶
func (o *GetLocationsInternalServerError) GetPayload() *workload_models.StackpathapiStatus
func (*GetLocationsInternalServerError) IsClientError ¶
func (o *GetLocationsInternalServerError) IsClientError() bool
IsClientError returns true when this get locations internal server error response has a 4xx status code
func (*GetLocationsInternalServerError) IsCode ¶
func (o *GetLocationsInternalServerError) IsCode(code int) bool
IsCode returns true when this get locations internal server error response a status code equal to that given
func (*GetLocationsInternalServerError) IsRedirect ¶
func (o *GetLocationsInternalServerError) IsRedirect() bool
IsRedirect returns true when this get locations internal server error response has a 3xx status code
func (*GetLocationsInternalServerError) IsServerError ¶
func (o *GetLocationsInternalServerError) IsServerError() bool
IsServerError returns true when this get locations internal server error response has a 5xx status code
func (*GetLocationsInternalServerError) IsSuccess ¶
func (o *GetLocationsInternalServerError) IsSuccess() bool
IsSuccess returns true when this get locations internal server error response has a 2xx status code
func (*GetLocationsInternalServerError) String ¶
func (o *GetLocationsInternalServerError) String() string
type GetLocationsOK ¶
type GetLocationsOK struct {
Payload *workload_models.V1GetLocationsResponse
}
GetLocationsOK describes a response with status code 200, with default header values.
GetLocationsOK get locations o k
func NewGetLocationsOK ¶
func NewGetLocationsOK() *GetLocationsOK
NewGetLocationsOK creates a GetLocationsOK with default headers values
func (*GetLocationsOK) Code ¶
func (o *GetLocationsOK) Code() int
Code gets the status code for the get locations o k response
func (*GetLocationsOK) Error ¶
func (o *GetLocationsOK) Error() string
func (*GetLocationsOK) GetPayload ¶
func (o *GetLocationsOK) GetPayload() *workload_models.V1GetLocationsResponse
func (*GetLocationsOK) IsClientError ¶
func (o *GetLocationsOK) IsClientError() bool
IsClientError returns true when this get locations o k response has a 4xx status code
func (*GetLocationsOK) IsCode ¶
func (o *GetLocationsOK) IsCode(code int) bool
IsCode returns true when this get locations o k response a status code equal to that given
func (*GetLocationsOK) IsRedirect ¶
func (o *GetLocationsOK) IsRedirect() bool
IsRedirect returns true when this get locations o k response has a 3xx status code
func (*GetLocationsOK) IsServerError ¶
func (o *GetLocationsOK) IsServerError() bool
IsServerError returns true when this get locations o k response has a 5xx status code
func (*GetLocationsOK) IsSuccess ¶
func (o *GetLocationsOK) IsSuccess() bool
IsSuccess returns true when this get locations o k response has a 2xx status code
func (*GetLocationsOK) String ¶
func (o *GetLocationsOK) String() string
type GetLocationsParams ¶
type GetLocationsParams struct { /* PageRequestAfter. The cursor value after which data will be returned. */ PageRequestAfter *string /* PageRequestFilter. SQL-style constraint filters. */ PageRequestFilter *string /* PageRequestFirst. The number of items desired. */ PageRequestFirst *string /* PageRequestSortBy. Sort the response by the given field. */ PageRequestSortBy *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetLocationsParams contains all the parameters to send to the API endpoint
for the get locations operation. Typically these are written to a http.Request.
func NewGetLocationsParams ¶
func NewGetLocationsParams() *GetLocationsParams
NewGetLocationsParams creates a new GetLocationsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetLocationsParamsWithContext ¶
func NewGetLocationsParamsWithContext(ctx context.Context) *GetLocationsParams
NewGetLocationsParamsWithContext creates a new GetLocationsParams object with the ability to set a context for a request.
func NewGetLocationsParamsWithHTTPClient ¶
func NewGetLocationsParamsWithHTTPClient(client *http.Client) *GetLocationsParams
NewGetLocationsParamsWithHTTPClient creates a new GetLocationsParams object with the ability to set a custom HTTPClient for a request.
func NewGetLocationsParamsWithTimeout ¶
func NewGetLocationsParamsWithTimeout(timeout time.Duration) *GetLocationsParams
NewGetLocationsParamsWithTimeout creates a new GetLocationsParams object with the ability to set a timeout on a request.
func (*GetLocationsParams) SetContext ¶
func (o *GetLocationsParams) SetContext(ctx context.Context)
SetContext adds the context to the get locations params
func (*GetLocationsParams) SetDefaults ¶
func (o *GetLocationsParams) SetDefaults()
SetDefaults hydrates default values in the get locations params (not the query body).
All values with no default are reset to their zero value.
func (*GetLocationsParams) SetHTTPClient ¶
func (o *GetLocationsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get locations params
func (*GetLocationsParams) SetPageRequestAfter ¶
func (o *GetLocationsParams) SetPageRequestAfter(pageRequestAfter *string)
SetPageRequestAfter adds the pageRequestAfter to the get locations params
func (*GetLocationsParams) SetPageRequestFilter ¶
func (o *GetLocationsParams) SetPageRequestFilter(pageRequestFilter *string)
SetPageRequestFilter adds the pageRequestFilter to the get locations params
func (*GetLocationsParams) SetPageRequestFirst ¶
func (o *GetLocationsParams) SetPageRequestFirst(pageRequestFirst *string)
SetPageRequestFirst adds the pageRequestFirst to the get locations params
func (*GetLocationsParams) SetPageRequestSortBy ¶
func (o *GetLocationsParams) SetPageRequestSortBy(pageRequestSortBy *string)
SetPageRequestSortBy adds the pageRequestSortBy to the get locations params
func (*GetLocationsParams) SetTimeout ¶
func (o *GetLocationsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get locations params
func (*GetLocationsParams) WithContext ¶
func (o *GetLocationsParams) WithContext(ctx context.Context) *GetLocationsParams
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 {
}GetLocationsUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewGetLocationsUnauthorized ¶
func NewGetLocationsUnauthorized() *GetLocationsUnauthorized
NewGetLocationsUnauthorized creates a GetLocationsUnauthorized with default headers values
func (*GetLocationsUnauthorized) Code ¶
func (o *GetLocationsUnauthorized) Code() int
Code gets the status code for the get locations unauthorized response
func (*GetLocationsUnauthorized) Error ¶
func (o *GetLocationsUnauthorized) Error() string
func (*GetLocationsUnauthorized) GetPayload ¶
func (o *GetLocationsUnauthorized) GetPayload() *workload_models.StackpathapiStatus
func (*GetLocationsUnauthorized) IsClientError ¶
func (o *GetLocationsUnauthorized) IsClientError() bool
IsClientError returns true when this get locations unauthorized response has a 4xx status code
func (*GetLocationsUnauthorized) IsCode ¶
func (o *GetLocationsUnauthorized) IsCode(code int) bool
IsCode returns true when this get locations unauthorized response a status code equal to that given
func (*GetLocationsUnauthorized) IsRedirect ¶
func (o *GetLocationsUnauthorized) IsRedirect() bool
IsRedirect returns true when this get locations unauthorized response has a 3xx status code
func (*GetLocationsUnauthorized) IsServerError ¶
func (o *GetLocationsUnauthorized) IsServerError() bool
IsServerError returns true when this get locations unauthorized response has a 5xx status code
func (*GetLocationsUnauthorized) IsSuccess ¶
func (o *GetLocationsUnauthorized) IsSuccess() bool
IsSuccess returns true when this get locations unauthorized response has a 2xx status code
func (*GetLocationsUnauthorized) String ¶
func (o *GetLocationsUnauthorized) String() string
type GetWorkloadDefault ¶
type GetWorkloadDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
GetWorkloadDefault describes a response with status code -1, with default header values.
Default error structure.
func NewGetWorkloadDefault ¶
func NewGetWorkloadDefault(code int) *GetWorkloadDefault
NewGetWorkloadDefault creates a GetWorkloadDefault with default headers values
func (*GetWorkloadDefault) Code ¶
func (o *GetWorkloadDefault) Code() int
Code gets the status code for the get workload default response
func (*GetWorkloadDefault) Error ¶
func (o *GetWorkloadDefault) Error() string
func (*GetWorkloadDefault) GetPayload ¶
func (o *GetWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadDefault) IsClientError ¶
func (o *GetWorkloadDefault) IsClientError() bool
IsClientError returns true when this get workload default response has a 4xx status code
func (*GetWorkloadDefault) IsCode ¶
func (o *GetWorkloadDefault) IsCode(code int) bool
IsCode returns true when this get workload default response a status code equal to that given
func (*GetWorkloadDefault) IsRedirect ¶
func (o *GetWorkloadDefault) IsRedirect() bool
IsRedirect returns true when this get workload default response has a 3xx status code
func (*GetWorkloadDefault) IsServerError ¶
func (o *GetWorkloadDefault) IsServerError() bool
IsServerError returns true when this get workload default response has a 5xx status code
func (*GetWorkloadDefault) IsSuccess ¶
func (o *GetWorkloadDefault) IsSuccess() bool
IsSuccess returns true when this get workload default response has a 2xx status code
func (*GetWorkloadDefault) String ¶
func (o *GetWorkloadDefault) String() string
type GetWorkloadInternalServerError ¶
type GetWorkloadInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
GetWorkloadInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewGetWorkloadInternalServerError ¶
func NewGetWorkloadInternalServerError() *GetWorkloadInternalServerError
NewGetWorkloadInternalServerError creates a GetWorkloadInternalServerError with default headers values
func (*GetWorkloadInternalServerError) Code ¶
func (o *GetWorkloadInternalServerError) Code() int
Code gets the status code for the get workload internal server error response
func (*GetWorkloadInternalServerError) Error ¶
func (o *GetWorkloadInternalServerError) Error() string
func (*GetWorkloadInternalServerError) GetPayload ¶
func (o *GetWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadInternalServerError) IsClientError ¶
func (o *GetWorkloadInternalServerError) IsClientError() bool
IsClientError returns true when this get workload internal server error response has a 4xx status code
func (*GetWorkloadInternalServerError) IsCode ¶
func (o *GetWorkloadInternalServerError) IsCode(code int) bool
IsCode returns true when this get workload internal server error response a status code equal to that given
func (*GetWorkloadInternalServerError) IsRedirect ¶
func (o *GetWorkloadInternalServerError) IsRedirect() bool
IsRedirect returns true when this get workload internal server error response has a 3xx status code
func (*GetWorkloadInternalServerError) IsServerError ¶
func (o *GetWorkloadInternalServerError) IsServerError() bool
IsServerError returns true when this get workload internal server error response has a 5xx status code
func (*GetWorkloadInternalServerError) IsSuccess ¶
func (o *GetWorkloadInternalServerError) IsSuccess() bool
IsSuccess returns true when this get workload internal server error response has a 2xx status code
func (*GetWorkloadInternalServerError) String ¶
func (o *GetWorkloadInternalServerError) String() string
type GetWorkloadOK ¶
type GetWorkloadOK struct {
Payload *workload_models.V1GetWorkloadResponse
}
GetWorkloadOK describes a response with status code 200, with default header values.
GetWorkloadOK get workload o k
func NewGetWorkloadOK ¶
func NewGetWorkloadOK() *GetWorkloadOK
NewGetWorkloadOK creates a GetWorkloadOK with default headers values
func (*GetWorkloadOK) Code ¶
func (o *GetWorkloadOK) Code() int
Code gets the status code for the get workload o k response
func (*GetWorkloadOK) Error ¶
func (o *GetWorkloadOK) Error() string
func (*GetWorkloadOK) GetPayload ¶
func (o *GetWorkloadOK) GetPayload() *workload_models.V1GetWorkloadResponse
func (*GetWorkloadOK) IsClientError ¶
func (o *GetWorkloadOK) IsClientError() bool
IsClientError returns true when this get workload o k response has a 4xx status code
func (*GetWorkloadOK) IsCode ¶
func (o *GetWorkloadOK) IsCode(code int) bool
IsCode returns true when this get workload o k response a status code equal to that given
func (*GetWorkloadOK) IsRedirect ¶
func (o *GetWorkloadOK) IsRedirect() bool
IsRedirect returns true when this get workload o k response has a 3xx status code
func (*GetWorkloadOK) IsServerError ¶
func (o *GetWorkloadOK) IsServerError() bool
IsServerError returns true when this get workload o k response has a 5xx status code
func (*GetWorkloadOK) IsSuccess ¶
func (o *GetWorkloadOK) IsSuccess() bool
IsSuccess returns true when this get workload o k response has a 2xx status code
func (*GetWorkloadOK) String ¶
func (o *GetWorkloadOK) String() string
type GetWorkloadParams ¶
type GetWorkloadParams struct { /* StackID. The ID of the stack containing the workload to retrieve */ StackID string /* WorkloadID. The ID the workload to retrieve */ WorkloadID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWorkloadParams contains all the parameters to send to the API endpoint
for the get workload operation. Typically these are written to a http.Request.
func NewGetWorkloadParams ¶
func NewGetWorkloadParams() *GetWorkloadParams
NewGetWorkloadParams creates a new GetWorkloadParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetWorkloadParamsWithContext ¶
func NewGetWorkloadParamsWithContext(ctx context.Context) *GetWorkloadParams
NewGetWorkloadParamsWithContext creates a new GetWorkloadParams object with the ability to set a context for a request.
func NewGetWorkloadParamsWithHTTPClient ¶
func NewGetWorkloadParamsWithHTTPClient(client *http.Client) *GetWorkloadParams
NewGetWorkloadParamsWithHTTPClient creates a new GetWorkloadParams object with the ability to set a custom HTTPClient for a request.
func NewGetWorkloadParamsWithTimeout ¶
func NewGetWorkloadParamsWithTimeout(timeout time.Duration) *GetWorkloadParams
NewGetWorkloadParamsWithTimeout creates a new GetWorkloadParams object with the ability to set a timeout on a request.
func (*GetWorkloadParams) SetContext ¶
func (o *GetWorkloadParams) SetContext(ctx context.Context)
SetContext adds the context to the get workload params
func (*GetWorkloadParams) SetDefaults ¶
func (o *GetWorkloadParams) SetDefaults()
SetDefaults hydrates default values in the get workload params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadParams) SetHTTPClient ¶
func (o *GetWorkloadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get workload params
func (*GetWorkloadParams) SetStackID ¶
func (o *GetWorkloadParams) SetStackID(stackID string)
SetStackID adds the stackId to the get workload params
func (*GetWorkloadParams) SetTimeout ¶
func (o *GetWorkloadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get workload params
func (*GetWorkloadParams) SetWorkloadID ¶
func (o *GetWorkloadParams) SetWorkloadID(workloadID string)
SetWorkloadID adds the workloadId to the get workload params
func (*GetWorkloadParams) WithContext ¶
func (o *GetWorkloadParams) WithContext(ctx context.Context) *GetWorkloadParams
WithContext adds the context to the get workload params
func (*GetWorkloadParams) WithDefaults ¶
func (o *GetWorkloadParams) WithDefaults() *GetWorkloadParams
WithDefaults hydrates default values in the get workload params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadParams) WithHTTPClient ¶
func (o *GetWorkloadParams) WithHTTPClient(client *http.Client) *GetWorkloadParams
WithHTTPClient adds the HTTPClient to the get workload params
func (*GetWorkloadParams) WithStackID ¶
func (o *GetWorkloadParams) WithStackID(stackID string) *GetWorkloadParams
WithStackID adds the stackID to the get workload params
func (*GetWorkloadParams) WithTimeout ¶
func (o *GetWorkloadParams) WithTimeout(timeout time.Duration) *GetWorkloadParams
WithTimeout adds the timeout to the get workload params
func (*GetWorkloadParams) WithWorkloadID ¶
func (o *GetWorkloadParams) WithWorkloadID(workloadID string) *GetWorkloadParams
WithWorkloadID adds the workloadID to the get workload params
func (*GetWorkloadParams) WriteToRequest ¶
func (o *GetWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWorkloadReader ¶
type GetWorkloadReader struct {
// contains filtered or unexported fields
}
GetWorkloadReader is a Reader for the GetWorkload structure.
func (*GetWorkloadReader) ReadResponse ¶
func (o *GetWorkloadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWorkloadUnauthorized ¶
type GetWorkloadUnauthorized struct {
}GetWorkloadUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewGetWorkloadUnauthorized ¶
func NewGetWorkloadUnauthorized() *GetWorkloadUnauthorized
NewGetWorkloadUnauthorized creates a GetWorkloadUnauthorized with default headers values
func (*GetWorkloadUnauthorized) Code ¶
func (o *GetWorkloadUnauthorized) Code() int
Code gets the status code for the get workload unauthorized response
func (*GetWorkloadUnauthorized) Error ¶
func (o *GetWorkloadUnauthorized) Error() string
func (*GetWorkloadUnauthorized) GetPayload ¶
func (o *GetWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadUnauthorized) IsClientError ¶
func (o *GetWorkloadUnauthorized) IsClientError() bool
IsClientError returns true when this get workload unauthorized response has a 4xx status code
func (*GetWorkloadUnauthorized) IsCode ¶
func (o *GetWorkloadUnauthorized) IsCode(code int) bool
IsCode returns true when this get workload unauthorized response a status code equal to that given
func (*GetWorkloadUnauthorized) IsRedirect ¶
func (o *GetWorkloadUnauthorized) IsRedirect() bool
IsRedirect returns true when this get workload unauthorized response has a 3xx status code
func (*GetWorkloadUnauthorized) IsServerError ¶
func (o *GetWorkloadUnauthorized) IsServerError() bool
IsServerError returns true when this get workload unauthorized response has a 5xx status code
func (*GetWorkloadUnauthorized) IsSuccess ¶
func (o *GetWorkloadUnauthorized) IsSuccess() bool
IsSuccess returns true when this get workload unauthorized response has a 2xx status code
func (*GetWorkloadUnauthorized) String ¶
func (o *GetWorkloadUnauthorized) String() string
type GetWorkloadsDefault ¶
type GetWorkloadsDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
GetWorkloadsDefault describes a response with status code -1, with default header values.
Default error structure.
func NewGetWorkloadsDefault ¶
func NewGetWorkloadsDefault(code int) *GetWorkloadsDefault
NewGetWorkloadsDefault creates a GetWorkloadsDefault with default headers values
func (*GetWorkloadsDefault) Code ¶
func (o *GetWorkloadsDefault) Code() int
Code gets the status code for the get workloads default response
func (*GetWorkloadsDefault) Error ¶
func (o *GetWorkloadsDefault) Error() string
func (*GetWorkloadsDefault) GetPayload ¶
func (o *GetWorkloadsDefault) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadsDefault) IsClientError ¶
func (o *GetWorkloadsDefault) IsClientError() bool
IsClientError returns true when this get workloads default response has a 4xx status code
func (*GetWorkloadsDefault) IsCode ¶
func (o *GetWorkloadsDefault) IsCode(code int) bool
IsCode returns true when this get workloads default response a status code equal to that given
func (*GetWorkloadsDefault) IsRedirect ¶
func (o *GetWorkloadsDefault) IsRedirect() bool
IsRedirect returns true when this get workloads default response has a 3xx status code
func (*GetWorkloadsDefault) IsServerError ¶
func (o *GetWorkloadsDefault) IsServerError() bool
IsServerError returns true when this get workloads default response has a 5xx status code
func (*GetWorkloadsDefault) IsSuccess ¶
func (o *GetWorkloadsDefault) IsSuccess() bool
IsSuccess returns true when this get workloads default response has a 2xx status code
func (*GetWorkloadsDefault) String ¶
func (o *GetWorkloadsDefault) String() string
type GetWorkloadsInternalServerError ¶
type GetWorkloadsInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
GetWorkloadsInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewGetWorkloadsInternalServerError ¶
func NewGetWorkloadsInternalServerError() *GetWorkloadsInternalServerError
NewGetWorkloadsInternalServerError creates a GetWorkloadsInternalServerError with default headers values
func (*GetWorkloadsInternalServerError) Code ¶
func (o *GetWorkloadsInternalServerError) Code() int
Code gets the status code for the get workloads internal server error response
func (*GetWorkloadsInternalServerError) Error ¶
func (o *GetWorkloadsInternalServerError) Error() string
func (*GetWorkloadsInternalServerError) GetPayload ¶
func (o *GetWorkloadsInternalServerError) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadsInternalServerError) IsClientError ¶
func (o *GetWorkloadsInternalServerError) IsClientError() bool
IsClientError returns true when this get workloads internal server error response has a 4xx status code
func (*GetWorkloadsInternalServerError) IsCode ¶
func (o *GetWorkloadsInternalServerError) IsCode(code int) bool
IsCode returns true when this get workloads internal server error response a status code equal to that given
func (*GetWorkloadsInternalServerError) IsRedirect ¶
func (o *GetWorkloadsInternalServerError) IsRedirect() bool
IsRedirect returns true when this get workloads internal server error response has a 3xx status code
func (*GetWorkloadsInternalServerError) IsServerError ¶
func (o *GetWorkloadsInternalServerError) IsServerError() bool
IsServerError returns true when this get workloads internal server error response has a 5xx status code
func (*GetWorkloadsInternalServerError) IsSuccess ¶
func (o *GetWorkloadsInternalServerError) IsSuccess() bool
IsSuccess returns true when this get workloads internal server error response has a 2xx status code
func (*GetWorkloadsInternalServerError) String ¶
func (o *GetWorkloadsInternalServerError) String() string
type GetWorkloadsOK ¶
type GetWorkloadsOK struct {
Payload *workload_models.V1GetWorkloadsResponse
}
GetWorkloadsOK describes a response with status code 200, with default header values.
GetWorkloadsOK get workloads o k
func NewGetWorkloadsOK ¶
func NewGetWorkloadsOK() *GetWorkloadsOK
NewGetWorkloadsOK creates a GetWorkloadsOK with default headers values
func (*GetWorkloadsOK) Code ¶
func (o *GetWorkloadsOK) Code() int
Code gets the status code for the get workloads o k response
func (*GetWorkloadsOK) Error ¶
func (o *GetWorkloadsOK) Error() string
func (*GetWorkloadsOK) GetPayload ¶
func (o *GetWorkloadsOK) GetPayload() *workload_models.V1GetWorkloadsResponse
func (*GetWorkloadsOK) IsClientError ¶
func (o *GetWorkloadsOK) IsClientError() bool
IsClientError returns true when this get workloads o k response has a 4xx status code
func (*GetWorkloadsOK) IsCode ¶
func (o *GetWorkloadsOK) IsCode(code int) bool
IsCode returns true when this get workloads o k response a status code equal to that given
func (*GetWorkloadsOK) IsRedirect ¶
func (o *GetWorkloadsOK) IsRedirect() bool
IsRedirect returns true when this get workloads o k response has a 3xx status code
func (*GetWorkloadsOK) IsServerError ¶
func (o *GetWorkloadsOK) IsServerError() bool
IsServerError returns true when this get workloads o k response has a 5xx status code
func (*GetWorkloadsOK) IsSuccess ¶
func (o *GetWorkloadsOK) IsSuccess() bool
IsSuccess returns true when this get workloads o k response has a 2xx status code
func (*GetWorkloadsOK) String ¶
func (o *GetWorkloadsOK) String() string
type GetWorkloadsParams ¶
type GetWorkloadsParams struct { /* PageRequestAfter. The cursor value after which data will be returned. */ PageRequestAfter *string /* PageRequestFilter. SQL-style constraint filters. */ PageRequestFilter *string /* PageRequestFirst. The number of items desired. */ PageRequestFirst *string /* PageRequestSortBy. Sort the response by the given field. */ PageRequestSortBy *string /* StackID. The ID of the stack to retrieve workloads from */ StackID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWorkloadsParams contains all the parameters to send to the API endpoint
for the get workloads operation. Typically these are written to a http.Request.
func NewGetWorkloadsParams ¶
func NewGetWorkloadsParams() *GetWorkloadsParams
NewGetWorkloadsParams creates a new GetWorkloadsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetWorkloadsParamsWithContext ¶
func NewGetWorkloadsParamsWithContext(ctx context.Context) *GetWorkloadsParams
NewGetWorkloadsParamsWithContext creates a new GetWorkloadsParams object with the ability to set a context for a request.
func NewGetWorkloadsParamsWithHTTPClient ¶
func NewGetWorkloadsParamsWithHTTPClient(client *http.Client) *GetWorkloadsParams
NewGetWorkloadsParamsWithHTTPClient creates a new GetWorkloadsParams object with the ability to set a custom HTTPClient for a request.
func NewGetWorkloadsParamsWithTimeout ¶
func NewGetWorkloadsParamsWithTimeout(timeout time.Duration) *GetWorkloadsParams
NewGetWorkloadsParamsWithTimeout creates a new GetWorkloadsParams object with the ability to set a timeout on a request.
func (*GetWorkloadsParams) SetContext ¶
func (o *GetWorkloadsParams) SetContext(ctx context.Context)
SetContext adds the context to the get workloads params
func (*GetWorkloadsParams) SetDefaults ¶
func (o *GetWorkloadsParams) SetDefaults()
SetDefaults hydrates default values in the get workloads params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkloadsParams) SetHTTPClient ¶
func (o *GetWorkloadsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get workloads params
func (*GetWorkloadsParams) SetPageRequestAfter ¶
func (o *GetWorkloadsParams) SetPageRequestAfter(pageRequestAfter *string)
SetPageRequestAfter adds the pageRequestAfter to the get workloads params
func (*GetWorkloadsParams) SetPageRequestFilter ¶
func (o *GetWorkloadsParams) SetPageRequestFilter(pageRequestFilter *string)
SetPageRequestFilter adds the pageRequestFilter to the get workloads params
func (*GetWorkloadsParams) SetPageRequestFirst ¶
func (o *GetWorkloadsParams) SetPageRequestFirst(pageRequestFirst *string)
SetPageRequestFirst adds the pageRequestFirst to the get workloads params
func (*GetWorkloadsParams) SetPageRequestSortBy ¶
func (o *GetWorkloadsParams) SetPageRequestSortBy(pageRequestSortBy *string)
SetPageRequestSortBy adds the pageRequestSortBy to the get workloads params
func (*GetWorkloadsParams) SetStackID ¶
func (o *GetWorkloadsParams) SetStackID(stackID string)
SetStackID adds the stackId to the get workloads params
func (*GetWorkloadsParams) SetTimeout ¶
func (o *GetWorkloadsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get workloads params
func (*GetWorkloadsParams) WithContext ¶
func (o *GetWorkloadsParams) WithContext(ctx context.Context) *GetWorkloadsParams
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 {
}GetWorkloadsUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewGetWorkloadsUnauthorized ¶
func NewGetWorkloadsUnauthorized() *GetWorkloadsUnauthorized
NewGetWorkloadsUnauthorized creates a GetWorkloadsUnauthorized with default headers values
func (*GetWorkloadsUnauthorized) Code ¶
func (o *GetWorkloadsUnauthorized) Code() int
Code gets the status code for the get workloads unauthorized response
func (*GetWorkloadsUnauthorized) Error ¶
func (o *GetWorkloadsUnauthorized) Error() string
func (*GetWorkloadsUnauthorized) GetPayload ¶
func (o *GetWorkloadsUnauthorized) GetPayload() *workload_models.StackpathapiStatus
func (*GetWorkloadsUnauthorized) IsClientError ¶
func (o *GetWorkloadsUnauthorized) IsClientError() bool
IsClientError returns true when this get workloads unauthorized response has a 4xx status code
func (*GetWorkloadsUnauthorized) IsCode ¶
func (o *GetWorkloadsUnauthorized) IsCode(code int) bool
IsCode returns true when this get workloads unauthorized response a status code equal to that given
func (*GetWorkloadsUnauthorized) IsRedirect ¶
func (o *GetWorkloadsUnauthorized) IsRedirect() bool
IsRedirect returns true when this get workloads unauthorized response has a 3xx status code
func (*GetWorkloadsUnauthorized) IsServerError ¶
func (o *GetWorkloadsUnauthorized) IsServerError() bool
IsServerError returns true when this get workloads unauthorized response has a 5xx status code
func (*GetWorkloadsUnauthorized) IsSuccess ¶
func (o *GetWorkloadsUnauthorized) IsSuccess() bool
IsSuccess returns true when this get workloads unauthorized response has a 2xx status code
func (*GetWorkloadsUnauthorized) String ¶
func (o *GetWorkloadsUnauthorized) String() string
type PutWorkloadDefault ¶
type PutWorkloadDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
PutWorkloadDefault describes a response with status code -1, with default header values.
Default error structure.
func NewPutWorkloadDefault ¶
func NewPutWorkloadDefault(code int) *PutWorkloadDefault
NewPutWorkloadDefault creates a PutWorkloadDefault with default headers values
func (*PutWorkloadDefault) Code ¶
func (o *PutWorkloadDefault) Code() int
Code gets the status code for the put workload default response
func (*PutWorkloadDefault) Error ¶
func (o *PutWorkloadDefault) Error() string
func (*PutWorkloadDefault) GetPayload ¶
func (o *PutWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
func (*PutWorkloadDefault) IsClientError ¶
func (o *PutWorkloadDefault) IsClientError() bool
IsClientError returns true when this put workload default response has a 4xx status code
func (*PutWorkloadDefault) IsCode ¶
func (o *PutWorkloadDefault) IsCode(code int) bool
IsCode returns true when this put workload default response a status code equal to that given
func (*PutWorkloadDefault) IsRedirect ¶
func (o *PutWorkloadDefault) IsRedirect() bool
IsRedirect returns true when this put workload default response has a 3xx status code
func (*PutWorkloadDefault) IsServerError ¶
func (o *PutWorkloadDefault) IsServerError() bool
IsServerError returns true when this put workload default response has a 5xx status code
func (*PutWorkloadDefault) IsSuccess ¶
func (o *PutWorkloadDefault) IsSuccess() bool
IsSuccess returns true when this put workload default response has a 2xx status code
func (*PutWorkloadDefault) String ¶
func (o *PutWorkloadDefault) String() string
type PutWorkloadInternalServerError ¶
type PutWorkloadInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
PutWorkloadInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewPutWorkloadInternalServerError ¶
func NewPutWorkloadInternalServerError() *PutWorkloadInternalServerError
NewPutWorkloadInternalServerError creates a PutWorkloadInternalServerError with default headers values
func (*PutWorkloadInternalServerError) Code ¶
func (o *PutWorkloadInternalServerError) Code() int
Code gets the status code for the put workload internal server error response
func (*PutWorkloadInternalServerError) Error ¶
func (o *PutWorkloadInternalServerError) Error() string
func (*PutWorkloadInternalServerError) GetPayload ¶
func (o *PutWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
func (*PutWorkloadInternalServerError) IsClientError ¶
func (o *PutWorkloadInternalServerError) IsClientError() bool
IsClientError returns true when this put workload internal server error response has a 4xx status code
func (*PutWorkloadInternalServerError) IsCode ¶
func (o *PutWorkloadInternalServerError) IsCode(code int) bool
IsCode returns true when this put workload internal server error response a status code equal to that given
func (*PutWorkloadInternalServerError) IsRedirect ¶
func (o *PutWorkloadInternalServerError) IsRedirect() bool
IsRedirect returns true when this put workload internal server error response has a 3xx status code
func (*PutWorkloadInternalServerError) IsServerError ¶
func (o *PutWorkloadInternalServerError) IsServerError() bool
IsServerError returns true when this put workload internal server error response has a 5xx status code
func (*PutWorkloadInternalServerError) IsSuccess ¶
func (o *PutWorkloadInternalServerError) IsSuccess() bool
IsSuccess returns true when this put workload internal server error response has a 2xx status code
func (*PutWorkloadInternalServerError) String ¶
func (o *PutWorkloadInternalServerError) String() string
type PutWorkloadOK ¶
type PutWorkloadOK struct {
Payload *workload_models.V1PutWorkloadResponse
}
PutWorkloadOK describes a response with status code 200, with default header values.
PutWorkloadOK put workload o k
func NewPutWorkloadOK ¶
func NewPutWorkloadOK() *PutWorkloadOK
NewPutWorkloadOK creates a PutWorkloadOK with default headers values
func (*PutWorkloadOK) Code ¶
func (o *PutWorkloadOK) Code() int
Code gets the status code for the put workload o k response
func (*PutWorkloadOK) Error ¶
func (o *PutWorkloadOK) Error() string
func (*PutWorkloadOK) GetPayload ¶
func (o *PutWorkloadOK) GetPayload() *workload_models.V1PutWorkloadResponse
func (*PutWorkloadOK) IsClientError ¶
func (o *PutWorkloadOK) IsClientError() bool
IsClientError returns true when this put workload o k response has a 4xx status code
func (*PutWorkloadOK) IsCode ¶
func (o *PutWorkloadOK) IsCode(code int) bool
IsCode returns true when this put workload o k response a status code equal to that given
func (*PutWorkloadOK) IsRedirect ¶
func (o *PutWorkloadOK) IsRedirect() bool
IsRedirect returns true when this put workload o k response has a 3xx status code
func (*PutWorkloadOK) IsServerError ¶
func (o *PutWorkloadOK) IsServerError() bool
IsServerError returns true when this put workload o k response has a 5xx status code
func (*PutWorkloadOK) IsSuccess ¶
func (o *PutWorkloadOK) IsSuccess() bool
IsSuccess returns true when this put workload o k response has a 2xx status code
func (*PutWorkloadOK) String ¶
func (o *PutWorkloadOK) String() string
type PutWorkloadParams ¶
type PutWorkloadParams struct { // Body. Body *workload_models.V1PutWorkloadRequest /* WorkloadID. A workload's unique identifier */ WorkloadID string /* WorkloadStackID. The ID of the stack that a workload belongs to */ WorkloadStackID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PutWorkloadParams contains all the parameters to send to the API endpoint
for the put workload operation. Typically these are written to a http.Request.
func NewPutWorkloadParams ¶
func NewPutWorkloadParams() *PutWorkloadParams
NewPutWorkloadParams creates a new PutWorkloadParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPutWorkloadParamsWithContext ¶
func NewPutWorkloadParamsWithContext(ctx context.Context) *PutWorkloadParams
NewPutWorkloadParamsWithContext creates a new PutWorkloadParams object with the ability to set a context for a request.
func NewPutWorkloadParamsWithHTTPClient ¶
func NewPutWorkloadParamsWithHTTPClient(client *http.Client) *PutWorkloadParams
NewPutWorkloadParamsWithHTTPClient creates a new PutWorkloadParams object with the ability to set a custom HTTPClient for a request.
func NewPutWorkloadParamsWithTimeout ¶
func NewPutWorkloadParamsWithTimeout(timeout time.Duration) *PutWorkloadParams
NewPutWorkloadParamsWithTimeout creates a new PutWorkloadParams object with the ability to set a timeout on a request.
func (*PutWorkloadParams) SetBody ¶
func (o *PutWorkloadParams) SetBody(body *workload_models.V1PutWorkloadRequest)
SetBody adds the body to the put workload params
func (*PutWorkloadParams) SetContext ¶
func (o *PutWorkloadParams) SetContext(ctx context.Context)
SetContext adds the context to the put workload params
func (*PutWorkloadParams) SetDefaults ¶
func (o *PutWorkloadParams) SetDefaults()
SetDefaults hydrates default values in the put workload params (not the query body).
All values with no default are reset to their zero value.
func (*PutWorkloadParams) SetHTTPClient ¶
func (o *PutWorkloadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put workload params
func (*PutWorkloadParams) SetTimeout ¶
func (o *PutWorkloadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put workload params
func (*PutWorkloadParams) SetWorkloadID ¶
func (o *PutWorkloadParams) SetWorkloadID(workloadID string)
SetWorkloadID adds the workloadId to the put workload params
func (*PutWorkloadParams) SetWorkloadStackID ¶
func (o *PutWorkloadParams) SetWorkloadStackID(workloadStackID string)
SetWorkloadStackID adds the workloadStackId to the put workload params
func (*PutWorkloadParams) WithBody ¶
func (o *PutWorkloadParams) WithBody(body *workload_models.V1PutWorkloadRequest) *PutWorkloadParams
WithBody adds the body to the put workload params
func (*PutWorkloadParams) WithContext ¶
func (o *PutWorkloadParams) WithContext(ctx context.Context) *PutWorkloadParams
WithContext adds the context to the put workload params
func (*PutWorkloadParams) WithDefaults ¶
func (o *PutWorkloadParams) WithDefaults() *PutWorkloadParams
WithDefaults hydrates default values in the put workload params (not the query body).
All values with no default are reset to their zero value.
func (*PutWorkloadParams) WithHTTPClient ¶
func (o *PutWorkloadParams) WithHTTPClient(client *http.Client) *PutWorkloadParams
WithHTTPClient adds the HTTPClient to the put workload params
func (*PutWorkloadParams) WithTimeout ¶
func (o *PutWorkloadParams) WithTimeout(timeout time.Duration) *PutWorkloadParams
WithTimeout adds the timeout to the put workload params
func (*PutWorkloadParams) WithWorkloadID ¶
func (o *PutWorkloadParams) WithWorkloadID(workloadID string) *PutWorkloadParams
WithWorkloadID adds the workloadID to the put workload params
func (*PutWorkloadParams) WithWorkloadStackID ¶
func (o *PutWorkloadParams) WithWorkloadStackID(workloadStackID string) *PutWorkloadParams
WithWorkloadStackID adds the workloadStackID to the put workload params
func (*PutWorkloadParams) WriteToRequest ¶
func (o *PutWorkloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutWorkloadReader ¶
type PutWorkloadReader struct {
// contains filtered or unexported fields
}
PutWorkloadReader is a Reader for the PutWorkload structure.
func (*PutWorkloadReader) ReadResponse ¶
func (o *PutWorkloadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutWorkloadUnauthorized ¶
type PutWorkloadUnauthorized struct {
}PutWorkloadUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewPutWorkloadUnauthorized ¶
func NewPutWorkloadUnauthorized() *PutWorkloadUnauthorized
NewPutWorkloadUnauthorized creates a PutWorkloadUnauthorized with default headers values
func (*PutWorkloadUnauthorized) Code ¶
func (o *PutWorkloadUnauthorized) Code() int
Code gets the status code for the put workload unauthorized response
func (*PutWorkloadUnauthorized) Error ¶
func (o *PutWorkloadUnauthorized) Error() string
func (*PutWorkloadUnauthorized) GetPayload ¶
func (o *PutWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
func (*PutWorkloadUnauthorized) IsClientError ¶
func (o *PutWorkloadUnauthorized) IsClientError() bool
IsClientError returns true when this put workload unauthorized response has a 4xx status code
func (*PutWorkloadUnauthorized) IsCode ¶
func (o *PutWorkloadUnauthorized) IsCode(code int) bool
IsCode returns true when this put workload unauthorized response a status code equal to that given
func (*PutWorkloadUnauthorized) IsRedirect ¶
func (o *PutWorkloadUnauthorized) IsRedirect() bool
IsRedirect returns true when this put workload unauthorized response has a 3xx status code
func (*PutWorkloadUnauthorized) IsServerError ¶
func (o *PutWorkloadUnauthorized) IsServerError() bool
IsServerError returns true when this put workload unauthorized response has a 5xx status code
func (*PutWorkloadUnauthorized) IsSuccess ¶
func (o *PutWorkloadUnauthorized) IsSuccess() bool
IsSuccess returns true when this put workload unauthorized response has a 2xx status code
func (*PutWorkloadUnauthorized) String ¶
func (o *PutWorkloadUnauthorized) String() string
type UpdateWorkloadDefault ¶
type UpdateWorkloadDefault struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
UpdateWorkloadDefault describes a response with status code -1, with default header values.
Default error structure.
func NewUpdateWorkloadDefault ¶
func NewUpdateWorkloadDefault(code int) *UpdateWorkloadDefault
NewUpdateWorkloadDefault creates a UpdateWorkloadDefault with default headers values
func (*UpdateWorkloadDefault) Code ¶
func (o *UpdateWorkloadDefault) Code() int
Code gets the status code for the update workload default response
func (*UpdateWorkloadDefault) Error ¶
func (o *UpdateWorkloadDefault) Error() string
func (*UpdateWorkloadDefault) GetPayload ¶
func (o *UpdateWorkloadDefault) GetPayload() *workload_models.StackpathapiStatus
func (*UpdateWorkloadDefault) IsClientError ¶
func (o *UpdateWorkloadDefault) IsClientError() bool
IsClientError returns true when this update workload default response has a 4xx status code
func (*UpdateWorkloadDefault) IsCode ¶
func (o *UpdateWorkloadDefault) IsCode(code int) bool
IsCode returns true when this update workload default response a status code equal to that given
func (*UpdateWorkloadDefault) IsRedirect ¶
func (o *UpdateWorkloadDefault) IsRedirect() bool
IsRedirect returns true when this update workload default response has a 3xx status code
func (*UpdateWorkloadDefault) IsServerError ¶
func (o *UpdateWorkloadDefault) IsServerError() bool
IsServerError returns true when this update workload default response has a 5xx status code
func (*UpdateWorkloadDefault) IsSuccess ¶
func (o *UpdateWorkloadDefault) IsSuccess() bool
IsSuccess returns true when this update workload default response has a 2xx status code
func (*UpdateWorkloadDefault) String ¶
func (o *UpdateWorkloadDefault) String() string
type UpdateWorkloadInternalServerError ¶
type UpdateWorkloadInternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
UpdateWorkloadInternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewUpdateWorkloadInternalServerError ¶
func NewUpdateWorkloadInternalServerError() *UpdateWorkloadInternalServerError
NewUpdateWorkloadInternalServerError creates a UpdateWorkloadInternalServerError with default headers values
func (*UpdateWorkloadInternalServerError) Code ¶
func (o *UpdateWorkloadInternalServerError) Code() int
Code gets the status code for the update workload internal server error response
func (*UpdateWorkloadInternalServerError) Error ¶
func (o *UpdateWorkloadInternalServerError) Error() string
func (*UpdateWorkloadInternalServerError) GetPayload ¶
func (o *UpdateWorkloadInternalServerError) GetPayload() *workload_models.StackpathapiStatus
func (*UpdateWorkloadInternalServerError) IsClientError ¶
func (o *UpdateWorkloadInternalServerError) IsClientError() bool
IsClientError returns true when this update workload internal server error response has a 4xx status code
func (*UpdateWorkloadInternalServerError) IsCode ¶
func (o *UpdateWorkloadInternalServerError) IsCode(code int) bool
IsCode returns true when this update workload internal server error response a status code equal to that given
func (*UpdateWorkloadInternalServerError) IsRedirect ¶
func (o *UpdateWorkloadInternalServerError) IsRedirect() bool
IsRedirect returns true when this update workload internal server error response has a 3xx status code
func (*UpdateWorkloadInternalServerError) IsServerError ¶
func (o *UpdateWorkloadInternalServerError) IsServerError() bool
IsServerError returns true when this update workload internal server error response has a 5xx status code
func (*UpdateWorkloadInternalServerError) IsSuccess ¶
func (o *UpdateWorkloadInternalServerError) IsSuccess() bool
IsSuccess returns true when this update workload internal server error response has a 2xx status code
func (*UpdateWorkloadInternalServerError) String ¶
func (o *UpdateWorkloadInternalServerError) String() string
type UpdateWorkloadOK ¶
type UpdateWorkloadOK struct {
Payload *workload_models.V1UpdateWorkloadResponse
}
UpdateWorkloadOK describes a response with status code 200, with default header values.
UpdateWorkloadOK update workload o k
func NewUpdateWorkloadOK ¶
func NewUpdateWorkloadOK() *UpdateWorkloadOK
NewUpdateWorkloadOK creates a UpdateWorkloadOK with default headers values
func (*UpdateWorkloadOK) Code ¶
func (o *UpdateWorkloadOK) Code() int
Code gets the status code for the update workload o k response
func (*UpdateWorkloadOK) Error ¶
func (o *UpdateWorkloadOK) Error() string
func (*UpdateWorkloadOK) GetPayload ¶
func (o *UpdateWorkloadOK) GetPayload() *workload_models.V1UpdateWorkloadResponse
func (*UpdateWorkloadOK) IsClientError ¶
func (o *UpdateWorkloadOK) IsClientError() bool
IsClientError returns true when this update workload o k response has a 4xx status code
func (*UpdateWorkloadOK) IsCode ¶
func (o *UpdateWorkloadOK) IsCode(code int) bool
IsCode returns true when this update workload o k response a status code equal to that given
func (*UpdateWorkloadOK) IsRedirect ¶
func (o *UpdateWorkloadOK) IsRedirect() bool
IsRedirect returns true when this update workload o k response has a 3xx status code
func (*UpdateWorkloadOK) IsServerError ¶
func (o *UpdateWorkloadOK) IsServerError() bool
IsServerError returns true when this update workload o k response has a 5xx status code
func (*UpdateWorkloadOK) IsSuccess ¶
func (o *UpdateWorkloadOK) IsSuccess() bool
IsSuccess returns true when this update workload o k response has a 2xx status code
func (*UpdateWorkloadOK) String ¶
func (o *UpdateWorkloadOK) String() string
type UpdateWorkloadParams ¶
type UpdateWorkloadParams struct { // Body. Body *workload_models.V1UpdateWorkloadRequest /* StackID. The ID of the stack containing the workload to update */ StackID string /* WorkloadID. The ID of the workload to update */ WorkloadID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateWorkloadParams contains all the parameters to send to the API endpoint
for the update workload operation. Typically these are written to a http.Request.
func NewUpdateWorkloadParams ¶
func NewUpdateWorkloadParams() *UpdateWorkloadParams
NewUpdateWorkloadParams creates a new UpdateWorkloadParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdateWorkloadParamsWithContext ¶
func NewUpdateWorkloadParamsWithContext(ctx context.Context) *UpdateWorkloadParams
NewUpdateWorkloadParamsWithContext creates a new UpdateWorkloadParams object with the ability to set a context for a request.
func NewUpdateWorkloadParamsWithHTTPClient ¶
func NewUpdateWorkloadParamsWithHTTPClient(client *http.Client) *UpdateWorkloadParams
NewUpdateWorkloadParamsWithHTTPClient creates a new UpdateWorkloadParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateWorkloadParamsWithTimeout ¶
func NewUpdateWorkloadParamsWithTimeout(timeout time.Duration) *UpdateWorkloadParams
NewUpdateWorkloadParamsWithTimeout creates a new UpdateWorkloadParams object with the ability to set a timeout on a request.
func (*UpdateWorkloadParams) SetBody ¶
func (o *UpdateWorkloadParams) SetBody(body *workload_models.V1UpdateWorkloadRequest)
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 ¶
func (o *UpdateWorkloadParams) WithBody(body *workload_models.V1UpdateWorkloadRequest) *UpdateWorkloadParams
WithBody adds the body to the update workload params
func (*UpdateWorkloadParams) WithContext ¶
func (o *UpdateWorkloadParams) WithContext(ctx context.Context) *UpdateWorkloadParams
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 {
}UpdateWorkloadUnauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewUpdateWorkloadUnauthorized ¶
func NewUpdateWorkloadUnauthorized() *UpdateWorkloadUnauthorized
NewUpdateWorkloadUnauthorized creates a UpdateWorkloadUnauthorized with default headers values
func (*UpdateWorkloadUnauthorized) Code ¶
func (o *UpdateWorkloadUnauthorized) Code() int
Code gets the status code for the update workload unauthorized response
func (*UpdateWorkloadUnauthorized) Error ¶
func (o *UpdateWorkloadUnauthorized) Error() string
func (*UpdateWorkloadUnauthorized) GetPayload ¶
func (o *UpdateWorkloadUnauthorized) GetPayload() *workload_models.StackpathapiStatus
func (*UpdateWorkloadUnauthorized) IsClientError ¶
func (o *UpdateWorkloadUnauthorized) IsClientError() bool
IsClientError returns true when this update workload unauthorized response has a 4xx status code
func (*UpdateWorkloadUnauthorized) IsCode ¶
func (o *UpdateWorkloadUnauthorized) IsCode(code int) bool
IsCode returns true when this update workload unauthorized response a status code equal to that given
func (*UpdateWorkloadUnauthorized) IsRedirect ¶
func (o *UpdateWorkloadUnauthorized) IsRedirect() bool
IsRedirect returns true when this update workload unauthorized response has a 3xx status code
func (*UpdateWorkloadUnauthorized) IsServerError ¶
func (o *UpdateWorkloadUnauthorized) IsServerError() bool
IsServerError returns true when this update workload unauthorized response has a 5xx status code
func (*UpdateWorkloadUnauthorized) IsSuccess ¶
func (o *UpdateWorkloadUnauthorized) IsSuccess() bool
IsSuccess returns true when this update workload unauthorized response has a 2xx status code
func (*UpdateWorkloadUnauthorized) String ¶
func (o *UpdateWorkloadUnauthorized) String() string
type WatchNetworks2Default ¶
type WatchNetworks2Default struct { Payload *workload_models.StackpathapiStatus // contains filtered or unexported fields }
WatchNetworks2Default describes a response with status code -1, with default header values.
Default error structure.
func NewWatchNetworks2Default ¶
func NewWatchNetworks2Default(code int) *WatchNetworks2Default
NewWatchNetworks2Default creates a WatchNetworks2Default with default headers values
func (*WatchNetworks2Default) Code ¶
func (o *WatchNetworks2Default) Code() int
Code gets the status code for the watch networks2 default response
func (*WatchNetworks2Default) Error ¶
func (o *WatchNetworks2Default) Error() string
func (*WatchNetworks2Default) GetPayload ¶
func (o *WatchNetworks2Default) GetPayload() *workload_models.StackpathapiStatus
func (*WatchNetworks2Default) IsClientError ¶
func (o *WatchNetworks2Default) IsClientError() bool
IsClientError returns true when this watch networks2 default response has a 4xx status code
func (*WatchNetworks2Default) IsCode ¶
func (o *WatchNetworks2Default) IsCode(code int) bool
IsCode returns true when this watch networks2 default response a status code equal to that given
func (*WatchNetworks2Default) IsRedirect ¶
func (o *WatchNetworks2Default) IsRedirect() bool
IsRedirect returns true when this watch networks2 default response has a 3xx status code
func (*WatchNetworks2Default) IsServerError ¶
func (o *WatchNetworks2Default) IsServerError() bool
IsServerError returns true when this watch networks2 default response has a 5xx status code
func (*WatchNetworks2Default) IsSuccess ¶
func (o *WatchNetworks2Default) IsSuccess() bool
IsSuccess returns true when this watch networks2 default response has a 2xx status code
func (*WatchNetworks2Default) String ¶
func (o *WatchNetworks2Default) String() string
type WatchNetworks2InternalServerError ¶
type WatchNetworks2InternalServerError struct {
Payload *workload_models.StackpathapiStatus
}
WatchNetworks2InternalServerError describes a response with status code 500, with default header values.
Internal server error.
func NewWatchNetworks2InternalServerError ¶
func NewWatchNetworks2InternalServerError() *WatchNetworks2InternalServerError
NewWatchNetworks2InternalServerError creates a WatchNetworks2InternalServerError with default headers values
func (*WatchNetworks2InternalServerError) Code ¶
func (o *WatchNetworks2InternalServerError) Code() int
Code gets the status code for the watch networks2 internal server error response
func (*WatchNetworks2InternalServerError) Error ¶
func (o *WatchNetworks2InternalServerError) Error() string
func (*WatchNetworks2InternalServerError) GetPayload ¶
func (o *WatchNetworks2InternalServerError) GetPayload() *workload_models.StackpathapiStatus
func (*WatchNetworks2InternalServerError) IsClientError ¶
func (o *WatchNetworks2InternalServerError) IsClientError() bool
IsClientError returns true when this watch networks2 internal server error response has a 4xx status code
func (*WatchNetworks2InternalServerError) IsCode ¶
func (o *WatchNetworks2InternalServerError) IsCode(code int) bool
IsCode returns true when this watch networks2 internal server error response a status code equal to that given
func (*WatchNetworks2InternalServerError) IsRedirect ¶
func (o *WatchNetworks2InternalServerError) IsRedirect() bool
IsRedirect returns true when this watch networks2 internal server error response has a 3xx status code
func (*WatchNetworks2InternalServerError) IsServerError ¶
func (o *WatchNetworks2InternalServerError) IsServerError() bool
IsServerError returns true when this watch networks2 internal server error response has a 5xx status code
func (*WatchNetworks2InternalServerError) IsSuccess ¶
func (o *WatchNetworks2InternalServerError) IsSuccess() bool
IsSuccess returns true when this watch networks2 internal server error response has a 2xx status code
func (*WatchNetworks2InternalServerError) String ¶
func (o *WatchNetworks2InternalServerError) String() string
type WatchNetworks2OK ¶
type WatchNetworks2OK struct {
Payload *workload_models.V1WatchNetworksResponse
}
WatchNetworks2OK describes a response with status code 200, with default header values.
(streaming responses)
func NewWatchNetworks2OK ¶
func NewWatchNetworks2OK() *WatchNetworks2OK
NewWatchNetworks2OK creates a WatchNetworks2OK with default headers values
func (*WatchNetworks2OK) Code ¶
func (o *WatchNetworks2OK) Code() int
Code gets the status code for the watch networks2 o k response
func (*WatchNetworks2OK) Error ¶
func (o *WatchNetworks2OK) Error() string
func (*WatchNetworks2OK) GetPayload ¶
func (o *WatchNetworks2OK) GetPayload() *workload_models.V1WatchNetworksResponse
func (*WatchNetworks2OK) IsClientError ¶
func (o *WatchNetworks2OK) IsClientError() bool
IsClientError returns true when this watch networks2 o k response has a 4xx status code
func (*WatchNetworks2OK) IsCode ¶
func (o *WatchNetworks2OK) IsCode(code int) bool
IsCode returns true when this watch networks2 o k response a status code equal to that given
func (*WatchNetworks2OK) IsRedirect ¶
func (o *WatchNetworks2OK) IsRedirect() bool
IsRedirect returns true when this watch networks2 o k response has a 3xx status code
func (*WatchNetworks2OK) IsServerError ¶
func (o *WatchNetworks2OK) IsServerError() bool
IsServerError returns true when this watch networks2 o k response has a 5xx status code
func (*WatchNetworks2OK) IsSuccess ¶
func (o *WatchNetworks2OK) IsSuccess() bool
IsSuccess returns true when this watch networks2 o k response has a 2xx status code
func (*WatchNetworks2OK) String ¶
func (o *WatchNetworks2OK) String() string
type WatchNetworks2Params ¶
type WatchNetworks2Params struct { // StackID. StackID string // Version. Version *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
WatchNetworks2Params contains all the parameters to send to the API endpoint
for the watch networks2 operation. Typically these are written to a http.Request.
func NewWatchNetworks2Params ¶
func NewWatchNetworks2Params() *WatchNetworks2Params
NewWatchNetworks2Params creates a new WatchNetworks2Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewWatchNetworks2ParamsWithContext ¶
func NewWatchNetworks2ParamsWithContext(ctx context.Context) *WatchNetworks2Params
NewWatchNetworks2ParamsWithContext creates a new WatchNetworks2Params object with the ability to set a context for a request.
func NewWatchNetworks2ParamsWithHTTPClient ¶
func NewWatchNetworks2ParamsWithHTTPClient(client *http.Client) *WatchNetworks2Params
NewWatchNetworks2ParamsWithHTTPClient creates a new WatchNetworks2Params object with the ability to set a custom HTTPClient for a request.
func NewWatchNetworks2ParamsWithTimeout ¶
func NewWatchNetworks2ParamsWithTimeout(timeout time.Duration) *WatchNetworks2Params
NewWatchNetworks2ParamsWithTimeout creates a new WatchNetworks2Params object with the ability to set a timeout on a request.
func (*WatchNetworks2Params) SetContext ¶
func (o *WatchNetworks2Params) SetContext(ctx context.Context)
SetContext adds the context to the watch networks2 params
func (*WatchNetworks2Params) SetDefaults ¶
func (o *WatchNetworks2Params) SetDefaults()
SetDefaults hydrates default values in the watch networks2 params (not the query body).
All values with no default are reset to their zero value.
func (*WatchNetworks2Params) SetHTTPClient ¶
func (o *WatchNetworks2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the watch networks2 params
func (*WatchNetworks2Params) SetStackID ¶
func (o *WatchNetworks2Params) SetStackID(stackID string)
SetStackID adds the stackId to the watch networks2 params
func (*WatchNetworks2Params) SetTimeout ¶
func (o *WatchNetworks2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the watch networks2 params
func (*WatchNetworks2Params) SetVersion ¶
func (o *WatchNetworks2Params) SetVersion(version *string)
SetVersion adds the version to the watch networks2 params
func (*WatchNetworks2Params) WithContext ¶
func (o *WatchNetworks2Params) WithContext(ctx context.Context) *WatchNetworks2Params
WithContext adds the context to the watch networks2 params
func (*WatchNetworks2Params) WithDefaults ¶
func (o *WatchNetworks2Params) WithDefaults() *WatchNetworks2Params
WithDefaults hydrates default values in the watch networks2 params (not the query body).
All values with no default are reset to their zero value.
func (*WatchNetworks2Params) WithHTTPClient ¶
func (o *WatchNetworks2Params) WithHTTPClient(client *http.Client) *WatchNetworks2Params
WithHTTPClient adds the HTTPClient to the watch networks2 params
func (*WatchNetworks2Params) WithStackID ¶
func (o *WatchNetworks2Params) WithStackID(stackID string) *WatchNetworks2Params
WithStackID adds the stackID to the watch networks2 params
func (*WatchNetworks2Params) WithTimeout ¶
func (o *WatchNetworks2Params) WithTimeout(timeout time.Duration) *WatchNetworks2Params
WithTimeout adds the timeout to the watch networks2 params
func (*WatchNetworks2Params) WithVersion ¶
func (o *WatchNetworks2Params) WithVersion(version *string) *WatchNetworks2Params
WithVersion adds the version to the watch networks2 params
func (*WatchNetworks2Params) WriteToRequest ¶
func (o *WatchNetworks2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type WatchNetworks2Reader ¶
type WatchNetworks2Reader struct {
// contains filtered or unexported fields
}
WatchNetworks2Reader is a Reader for the WatchNetworks2 structure.
func (*WatchNetworks2Reader) ReadResponse ¶
func (o *WatchNetworks2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type WatchNetworks2Unauthorized ¶
type WatchNetworks2Unauthorized struct {
}WatchNetworks2Unauthorized describes a response with status code 401, with default header values.
Returned when an unauthorized request is attempted.
func NewWatchNetworks2Unauthorized ¶
func NewWatchNetworks2Unauthorized() *WatchNetworks2Unauthorized
NewWatchNetworks2Unauthorized creates a WatchNetworks2Unauthorized with default headers values
func (*WatchNetworks2Unauthorized) Code ¶
func (o *WatchNetworks2Unauthorized) Code() int
Code gets the status code for the watch networks2 unauthorized response
func (*WatchNetworks2Unauthorized) Error ¶
func (o *WatchNetworks2Unauthorized) Error() string
func (*WatchNetworks2Unauthorized) GetPayload ¶
func (o *WatchNetworks2Unauthorized) GetPayload() *workload_models.StackpathapiStatus
func (*WatchNetworks2Unauthorized) IsClientError ¶
func (o *WatchNetworks2Unauthorized) IsClientError() bool
IsClientError returns true when this watch networks2 unauthorized response has a 4xx status code
func (*WatchNetworks2Unauthorized) IsCode ¶
func (o *WatchNetworks2Unauthorized) IsCode(code int) bool
IsCode returns true when this watch networks2 unauthorized response a status code equal to that given
func (*WatchNetworks2Unauthorized) IsRedirect ¶
func (o *WatchNetworks2Unauthorized) IsRedirect() bool
IsRedirect returns true when this watch networks2 unauthorized response has a 3xx status code
func (*WatchNetworks2Unauthorized) IsServerError ¶
func (o *WatchNetworks2Unauthorized) IsServerError() bool
IsServerError returns true when this watch networks2 unauthorized response has a 5xx status code
func (*WatchNetworks2Unauthorized) IsSuccess ¶
func (o *WatchNetworks2Unauthorized) IsSuccess() bool
IsSuccess returns true when this watch networks2 unauthorized response has a 2xx status code
func (*WatchNetworks2Unauthorized) String ¶
func (o *WatchNetworks2Unauthorized) String() string
Source Files
¶
- create_workload_parameters.go
- create_workload_responses.go
- delete_workload_parameters.go
- delete_workload_responses.go
- get_locations_parameters.go
- get_locations_responses.go
- get_workload_parameters.go
- get_workload_responses.go
- get_workloads_parameters.go
- get_workloads_responses.go
- put_workload_parameters.go
- put_workload_responses.go
- update_workload_parameters.go
- update_workload_responses.go
- watch_networks2_parameters.go
- watch_networks2_responses.go
- workload_client.go