instances

package
v2.0.1-0...-670b387 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for instances API

func (*Client) GetWorkloadInstance

func (a *Client) GetWorkloadInstance(params *GetWorkloadInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadInstanceOK, error)

GetWorkloadInstance gets a workload instance

func (*Client) GetWorkloadInstances

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

GetWorkloadInstances gets all workload instances

func (*Client) RestartInstance

func (a *Client) RestartInstance(params *RestartInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestartInstanceNoContent, error)

RestartInstance restarts a workload instance

The action is performed asynchronously and a successful response does not mean the instance has restarted yet.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetWorkloadInstance(params *GetWorkloadInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkloadInstanceOK, error)

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

	RestartInstance(params *RestartInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestartInstanceNoContent, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new instances API client.

type GetWorkloadInstanceDefault

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

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

Default error structure.

func NewGetWorkloadInstanceDefault

func NewGetWorkloadInstanceDefault(code int) *GetWorkloadInstanceDefault

NewGetWorkloadInstanceDefault creates a GetWorkloadInstanceDefault with default headers values

func (*GetWorkloadInstanceDefault) Code

func (o *GetWorkloadInstanceDefault) Code() int

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

func (*GetWorkloadInstanceDefault) Error

func (*GetWorkloadInstanceDefault) GetPayload

func (*GetWorkloadInstanceDefault) IsClientError

func (o *GetWorkloadInstanceDefault) IsClientError() bool

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

func (*GetWorkloadInstanceDefault) IsCode

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

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

func (*GetWorkloadInstanceDefault) IsRedirect

func (o *GetWorkloadInstanceDefault) IsRedirect() bool

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

func (*GetWorkloadInstanceDefault) IsServerError

func (o *GetWorkloadInstanceDefault) IsServerError() bool

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

func (*GetWorkloadInstanceDefault) IsSuccess

func (o *GetWorkloadInstanceDefault) IsSuccess() bool

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

func (*GetWorkloadInstanceDefault) String

func (o *GetWorkloadInstanceDefault) String() string

type GetWorkloadInstanceInternalServerError

type GetWorkloadInstanceInternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}

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

Internal server error.

func NewGetWorkloadInstanceInternalServerError

func NewGetWorkloadInstanceInternalServerError() *GetWorkloadInstanceInternalServerError

NewGetWorkloadInstanceInternalServerError creates a GetWorkloadInstanceInternalServerError with default headers values

func (*GetWorkloadInstanceInternalServerError) Code

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

func (*GetWorkloadInstanceInternalServerError) Error

func (*GetWorkloadInstanceInternalServerError) GetPayload

func (*GetWorkloadInstanceInternalServerError) IsClientError

func (o *GetWorkloadInstanceInternalServerError) IsClientError() bool

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

func (*GetWorkloadInstanceInternalServerError) IsCode

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

func (*GetWorkloadInstanceInternalServerError) IsRedirect

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

func (*GetWorkloadInstanceInternalServerError) IsServerError

func (o *GetWorkloadInstanceInternalServerError) IsServerError() bool

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

func (*GetWorkloadInstanceInternalServerError) IsSuccess

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

func (*GetWorkloadInstanceInternalServerError) String

type GetWorkloadInstanceOK

type GetWorkloadInstanceOK struct {
	Payload *workload_models.V1GetWorkloadInstanceResponse
}

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

GetWorkloadInstanceOK get workload instance o k

func NewGetWorkloadInstanceOK

func NewGetWorkloadInstanceOK() *GetWorkloadInstanceOK

NewGetWorkloadInstanceOK creates a GetWorkloadInstanceOK with default headers values

func (*GetWorkloadInstanceOK) Code

func (o *GetWorkloadInstanceOK) Code() int

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

func (*GetWorkloadInstanceOK) Error

func (o *GetWorkloadInstanceOK) Error() string

func (*GetWorkloadInstanceOK) GetPayload

func (*GetWorkloadInstanceOK) IsClientError

func (o *GetWorkloadInstanceOK) IsClientError() bool

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

func (*GetWorkloadInstanceOK) IsCode

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

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

func (*GetWorkloadInstanceOK) IsRedirect

func (o *GetWorkloadInstanceOK) IsRedirect() bool

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

func (*GetWorkloadInstanceOK) IsServerError

func (o *GetWorkloadInstanceOK) IsServerError() bool

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

func (*GetWorkloadInstanceOK) IsSuccess

func (o *GetWorkloadInstanceOK) IsSuccess() bool

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

func (*GetWorkloadInstanceOK) String

func (o *GetWorkloadInstanceOK) String() string

type GetWorkloadInstanceParams

type GetWorkloadInstanceParams struct {

	/* InstanceName.

	   An EdgeCompute workload instance name
	*/
	InstanceName string

	/* StackID.

	   A stack ID or slug
	*/
	StackID string

	/* WorkloadID.

	   An EdgeCompute workload ID
	*/
	WorkloadID string

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

GetWorkloadInstanceParams contains all the parameters to send to the API endpoint

for the get workload instance operation.

Typically these are written to a http.Request.

func NewGetWorkloadInstanceParams

func NewGetWorkloadInstanceParams() *GetWorkloadInstanceParams

NewGetWorkloadInstanceParams creates a new GetWorkloadInstanceParams 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 NewGetWorkloadInstanceParamsWithContext

func NewGetWorkloadInstanceParamsWithContext(ctx context.Context) *GetWorkloadInstanceParams

NewGetWorkloadInstanceParamsWithContext creates a new GetWorkloadInstanceParams object with the ability to set a context for a request.

func NewGetWorkloadInstanceParamsWithHTTPClient

func NewGetWorkloadInstanceParamsWithHTTPClient(client *http.Client) *GetWorkloadInstanceParams

NewGetWorkloadInstanceParamsWithHTTPClient creates a new GetWorkloadInstanceParams object with the ability to set a custom HTTPClient for a request.

func NewGetWorkloadInstanceParamsWithTimeout

func NewGetWorkloadInstanceParamsWithTimeout(timeout time.Duration) *GetWorkloadInstanceParams

NewGetWorkloadInstanceParamsWithTimeout creates a new GetWorkloadInstanceParams object with the ability to set a timeout on a request.

func (*GetWorkloadInstanceParams) SetContext

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

SetContext adds the context to the get workload instance params

func (*GetWorkloadInstanceParams) SetDefaults

func (o *GetWorkloadInstanceParams) SetDefaults()

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

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

func (*GetWorkloadInstanceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get workload instance params

func (*GetWorkloadInstanceParams) SetInstanceName

func (o *GetWorkloadInstanceParams) SetInstanceName(instanceName string)

SetInstanceName adds the instanceName to the get workload instance params

func (*GetWorkloadInstanceParams) SetStackID

func (o *GetWorkloadInstanceParams) SetStackID(stackID string)

SetStackID adds the stackId to the get workload instance params

func (*GetWorkloadInstanceParams) SetTimeout

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

SetTimeout adds the timeout to the get workload instance params

func (*GetWorkloadInstanceParams) SetWorkloadID

func (o *GetWorkloadInstanceParams) SetWorkloadID(workloadID string)

SetWorkloadID adds the workloadId to the get workload instance params

func (*GetWorkloadInstanceParams) WithContext

WithContext adds the context to the get workload instance params

func (*GetWorkloadInstanceParams) WithDefaults

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

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

func (*GetWorkloadInstanceParams) WithHTTPClient

func (o *GetWorkloadInstanceParams) WithHTTPClient(client *http.Client) *GetWorkloadInstanceParams

WithHTTPClient adds the HTTPClient to the get workload instance params

func (*GetWorkloadInstanceParams) WithInstanceName

func (o *GetWorkloadInstanceParams) WithInstanceName(instanceName string) *GetWorkloadInstanceParams

WithInstanceName adds the instanceName to the get workload instance params

func (*GetWorkloadInstanceParams) WithStackID

WithStackID adds the stackID to the get workload instance params

func (*GetWorkloadInstanceParams) WithTimeout

WithTimeout adds the timeout to the get workload instance params

func (*GetWorkloadInstanceParams) WithWorkloadID

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

WithWorkloadID adds the workloadID to the get workload instance params

func (*GetWorkloadInstanceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWorkloadInstanceReader

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

GetWorkloadInstanceReader is a Reader for the GetWorkloadInstance structure.

func (*GetWorkloadInstanceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetWorkloadInstanceUnauthorized

type GetWorkloadInstanceUnauthorized struct {
	Payload *workload_models.StackpathapiStatus
}

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

Returned when an unauthorized request is attempted.

func NewGetWorkloadInstanceUnauthorized

func NewGetWorkloadInstanceUnauthorized() *GetWorkloadInstanceUnauthorized

NewGetWorkloadInstanceUnauthorized creates a GetWorkloadInstanceUnauthorized with default headers values

func (*GetWorkloadInstanceUnauthorized) Code

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

func (*GetWorkloadInstanceUnauthorized) Error

func (*GetWorkloadInstanceUnauthorized) GetPayload

func (*GetWorkloadInstanceUnauthorized) IsClientError

func (o *GetWorkloadInstanceUnauthorized) IsClientError() bool

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

func (*GetWorkloadInstanceUnauthorized) IsCode

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

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

func (*GetWorkloadInstanceUnauthorized) IsRedirect

func (o *GetWorkloadInstanceUnauthorized) IsRedirect() bool

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

func (*GetWorkloadInstanceUnauthorized) IsServerError

func (o *GetWorkloadInstanceUnauthorized) IsServerError() bool

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

func (*GetWorkloadInstanceUnauthorized) IsSuccess

func (o *GetWorkloadInstanceUnauthorized) IsSuccess() bool

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

func (*GetWorkloadInstanceUnauthorized) String

type GetWorkloadInstancesDefault

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

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

Default error structure.

func NewGetWorkloadInstancesDefault

func NewGetWorkloadInstancesDefault(code int) *GetWorkloadInstancesDefault

NewGetWorkloadInstancesDefault creates a GetWorkloadInstancesDefault with default headers values

func (*GetWorkloadInstancesDefault) Code

func (o *GetWorkloadInstancesDefault) Code() int

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

func (*GetWorkloadInstancesDefault) Error

func (*GetWorkloadInstancesDefault) GetPayload

func (*GetWorkloadInstancesDefault) IsClientError

func (o *GetWorkloadInstancesDefault) IsClientError() bool

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

func (*GetWorkloadInstancesDefault) IsCode

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

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

func (*GetWorkloadInstancesDefault) IsRedirect

func (o *GetWorkloadInstancesDefault) IsRedirect() bool

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

func (*GetWorkloadInstancesDefault) IsServerError

func (o *GetWorkloadInstancesDefault) IsServerError() bool

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

func (*GetWorkloadInstancesDefault) IsSuccess

func (o *GetWorkloadInstancesDefault) IsSuccess() bool

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

func (*GetWorkloadInstancesDefault) String

func (o *GetWorkloadInstancesDefault) String() string

type GetWorkloadInstancesInternalServerError

type GetWorkloadInstancesInternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}

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

Internal server error.

func NewGetWorkloadInstancesInternalServerError

func NewGetWorkloadInstancesInternalServerError() *GetWorkloadInstancesInternalServerError

NewGetWorkloadInstancesInternalServerError creates a GetWorkloadInstancesInternalServerError with default headers values

func (*GetWorkloadInstancesInternalServerError) Code

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

func (*GetWorkloadInstancesInternalServerError) Error

func (*GetWorkloadInstancesInternalServerError) GetPayload

func (*GetWorkloadInstancesInternalServerError) IsClientError

func (o *GetWorkloadInstancesInternalServerError) IsClientError() bool

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

func (*GetWorkloadInstancesInternalServerError) IsCode

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

func (*GetWorkloadInstancesInternalServerError) IsRedirect

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

func (*GetWorkloadInstancesInternalServerError) IsServerError

func (o *GetWorkloadInstancesInternalServerError) IsServerError() bool

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

func (*GetWorkloadInstancesInternalServerError) IsSuccess

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

func (*GetWorkloadInstancesInternalServerError) String

type GetWorkloadInstancesOK

type GetWorkloadInstancesOK struct {
	Payload *workload_models.V1GetWorkloadInstancesResponse
}

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

GetWorkloadInstancesOK get workload instances o k

func NewGetWorkloadInstancesOK

func NewGetWorkloadInstancesOK() *GetWorkloadInstancesOK

NewGetWorkloadInstancesOK creates a GetWorkloadInstancesOK with default headers values

func (*GetWorkloadInstancesOK) Code

func (o *GetWorkloadInstancesOK) Code() int

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

func (*GetWorkloadInstancesOK) Error

func (o *GetWorkloadInstancesOK) Error() string

func (*GetWorkloadInstancesOK) GetPayload

func (*GetWorkloadInstancesOK) IsClientError

func (o *GetWorkloadInstancesOK) IsClientError() bool

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

func (*GetWorkloadInstancesOK) IsCode

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

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

func (*GetWorkloadInstancesOK) IsRedirect

func (o *GetWorkloadInstancesOK) IsRedirect() bool

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

func (*GetWorkloadInstancesOK) IsServerError

func (o *GetWorkloadInstancesOK) IsServerError() bool

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

func (*GetWorkloadInstancesOK) IsSuccess

func (o *GetWorkloadInstancesOK) IsSuccess() bool

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

func (*GetWorkloadInstancesOK) String

func (o *GetWorkloadInstancesOK) String() string

type GetWorkloadInstancesParams

type GetWorkloadInstancesParams struct {

	/* PageRequestAfter.

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

	/* PageRequestFilter.

	   SQL-style constraint filters.
	*/
	PageRequestFilter *string

	/* PageRequestFirst.

	   The number of items desired.
	*/
	PageRequestFirst *string

	/* PageRequestSortBy.

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

	/* StackID.

	   A stack ID or slug
	*/
	StackID string

	/* WorkloadID.

	   An EdgeCompute workload ID
	*/
	WorkloadID string

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

GetWorkloadInstancesParams contains all the parameters to send to the API endpoint

for the get workload instances operation.

Typically these are written to a http.Request.

func NewGetWorkloadInstancesParams

func NewGetWorkloadInstancesParams() *GetWorkloadInstancesParams

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

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

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

func NewGetWorkloadInstancesParamsWithContext

func NewGetWorkloadInstancesParamsWithContext(ctx context.Context) *GetWorkloadInstancesParams

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

func NewGetWorkloadInstancesParamsWithHTTPClient

func NewGetWorkloadInstancesParamsWithHTTPClient(client *http.Client) *GetWorkloadInstancesParams

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

func NewGetWorkloadInstancesParamsWithTimeout

func NewGetWorkloadInstancesParamsWithTimeout(timeout time.Duration) *GetWorkloadInstancesParams

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

func (*GetWorkloadInstancesParams) SetContext

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

SetContext adds the context to the get workload instances params

func (*GetWorkloadInstancesParams) SetDefaults

func (o *GetWorkloadInstancesParams) SetDefaults()

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

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

func (*GetWorkloadInstancesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get workload instances params

func (*GetWorkloadInstancesParams) SetPageRequestAfter

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

SetPageRequestAfter adds the pageRequestAfter to the get workload instances params

func (*GetWorkloadInstancesParams) SetPageRequestFilter

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

SetPageRequestFilter adds the pageRequestFilter to the get workload instances params

func (*GetWorkloadInstancesParams) SetPageRequestFirst

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

SetPageRequestFirst adds the pageRequestFirst to the get workload instances params

func (*GetWorkloadInstancesParams) SetPageRequestSortBy

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

SetPageRequestSortBy adds the pageRequestSortBy to the get workload instances params

func (*GetWorkloadInstancesParams) SetStackID

func (o *GetWorkloadInstancesParams) SetStackID(stackID string)

SetStackID adds the stackId to the get workload instances params

func (*GetWorkloadInstancesParams) SetTimeout

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

SetTimeout adds the timeout to the get workload instances params

func (*GetWorkloadInstancesParams) SetWorkloadID

func (o *GetWorkloadInstancesParams) SetWorkloadID(workloadID string)

SetWorkloadID adds the workloadId to the get workload instances params

func (*GetWorkloadInstancesParams) WithContext

WithContext adds the context to the get workload instances params

func (*GetWorkloadInstancesParams) WithDefaults

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

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

func (*GetWorkloadInstancesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get workload instances params

func (*GetWorkloadInstancesParams) WithPageRequestAfter

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

WithPageRequestAfter adds the pageRequestAfter to the get workload instances params

func (*GetWorkloadInstancesParams) WithPageRequestFilter

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

WithPageRequestFilter adds the pageRequestFilter to the get workload instances params

func (*GetWorkloadInstancesParams) WithPageRequestFirst

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

WithPageRequestFirst adds the pageRequestFirst to the get workload instances params

func (*GetWorkloadInstancesParams) WithPageRequestSortBy

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

WithPageRequestSortBy adds the pageRequestSortBy to the get workload instances params

func (*GetWorkloadInstancesParams) WithStackID

WithStackID adds the stackID to the get workload instances params

func (*GetWorkloadInstancesParams) WithTimeout

WithTimeout adds the timeout to the get workload instances params

func (*GetWorkloadInstancesParams) WithWorkloadID

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

WithWorkloadID adds the workloadID to the get workload instances params

func (*GetWorkloadInstancesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWorkloadInstancesReader

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

GetWorkloadInstancesReader is a Reader for the GetWorkloadInstances structure.

func (*GetWorkloadInstancesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetWorkloadInstancesUnauthorized

type GetWorkloadInstancesUnauthorized struct {
	Payload *workload_models.StackpathapiStatus
}

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

Returned when an unauthorized request is attempted.

func NewGetWorkloadInstancesUnauthorized

func NewGetWorkloadInstancesUnauthorized() *GetWorkloadInstancesUnauthorized

NewGetWorkloadInstancesUnauthorized creates a GetWorkloadInstancesUnauthorized with default headers values

func (*GetWorkloadInstancesUnauthorized) Code

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

func (*GetWorkloadInstancesUnauthorized) Error

func (*GetWorkloadInstancesUnauthorized) GetPayload

func (*GetWorkloadInstancesUnauthorized) IsClientError

func (o *GetWorkloadInstancesUnauthorized) IsClientError() bool

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

func (*GetWorkloadInstancesUnauthorized) IsCode

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

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

func (*GetWorkloadInstancesUnauthorized) IsRedirect

func (o *GetWorkloadInstancesUnauthorized) IsRedirect() bool

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

func (*GetWorkloadInstancesUnauthorized) IsServerError

func (o *GetWorkloadInstancesUnauthorized) IsServerError() bool

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

func (*GetWorkloadInstancesUnauthorized) IsSuccess

func (o *GetWorkloadInstancesUnauthorized) IsSuccess() bool

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

func (*GetWorkloadInstancesUnauthorized) String

type RestartInstanceDefault

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

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

Default error structure.

func NewRestartInstanceDefault

func NewRestartInstanceDefault(code int) *RestartInstanceDefault

NewRestartInstanceDefault creates a RestartInstanceDefault with default headers values

func (*RestartInstanceDefault) Code

func (o *RestartInstanceDefault) Code() int

Code gets the status code for the restart instance default response

func (*RestartInstanceDefault) Error

func (o *RestartInstanceDefault) Error() string

func (*RestartInstanceDefault) GetPayload

func (*RestartInstanceDefault) IsClientError

func (o *RestartInstanceDefault) IsClientError() bool

IsClientError returns true when this restart instance default response has a 4xx status code

func (*RestartInstanceDefault) IsCode

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

IsCode returns true when this restart instance default response a status code equal to that given

func (*RestartInstanceDefault) IsRedirect

func (o *RestartInstanceDefault) IsRedirect() bool

IsRedirect returns true when this restart instance default response has a 3xx status code

func (*RestartInstanceDefault) IsServerError

func (o *RestartInstanceDefault) IsServerError() bool

IsServerError returns true when this restart instance default response has a 5xx status code

func (*RestartInstanceDefault) IsSuccess

func (o *RestartInstanceDefault) IsSuccess() bool

IsSuccess returns true when this restart instance default response has a 2xx status code

func (*RestartInstanceDefault) String

func (o *RestartInstanceDefault) String() string

type RestartInstanceInternalServerError

type RestartInstanceInternalServerError struct {
	Payload *workload_models.StackpathapiStatus
}

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

Internal server error.

func NewRestartInstanceInternalServerError

func NewRestartInstanceInternalServerError() *RestartInstanceInternalServerError

NewRestartInstanceInternalServerError creates a RestartInstanceInternalServerError with default headers values

func (*RestartInstanceInternalServerError) Code

Code gets the status code for the restart instance internal server error response

func (*RestartInstanceInternalServerError) Error

func (*RestartInstanceInternalServerError) GetPayload

func (*RestartInstanceInternalServerError) IsClientError

func (o *RestartInstanceInternalServerError) IsClientError() bool

IsClientError returns true when this restart instance internal server error response has a 4xx status code

func (*RestartInstanceInternalServerError) IsCode

IsCode returns true when this restart instance internal server error response a status code equal to that given

func (*RestartInstanceInternalServerError) IsRedirect

func (o *RestartInstanceInternalServerError) IsRedirect() bool

IsRedirect returns true when this restart instance internal server error response has a 3xx status code

func (*RestartInstanceInternalServerError) IsServerError

func (o *RestartInstanceInternalServerError) IsServerError() bool

IsServerError returns true when this restart instance internal server error response has a 5xx status code

func (*RestartInstanceInternalServerError) IsSuccess

IsSuccess returns true when this restart instance internal server error response has a 2xx status code

func (*RestartInstanceInternalServerError) String

type RestartInstanceNoContent

type RestartInstanceNoContent struct {
}

RestartInstanceNoContent describes a response with status code 204, with default header values.

No content

func NewRestartInstanceNoContent

func NewRestartInstanceNoContent() *RestartInstanceNoContent

NewRestartInstanceNoContent creates a RestartInstanceNoContent with default headers values

func (*RestartInstanceNoContent) Code

func (o *RestartInstanceNoContent) Code() int

Code gets the status code for the restart instance no content response

func (*RestartInstanceNoContent) Error

func (o *RestartInstanceNoContent) Error() string

func (*RestartInstanceNoContent) IsClientError

func (o *RestartInstanceNoContent) IsClientError() bool

IsClientError returns true when this restart instance no content response has a 4xx status code

func (*RestartInstanceNoContent) IsCode

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

IsCode returns true when this restart instance no content response a status code equal to that given

func (*RestartInstanceNoContent) IsRedirect

func (o *RestartInstanceNoContent) IsRedirect() bool

IsRedirect returns true when this restart instance no content response has a 3xx status code

func (*RestartInstanceNoContent) IsServerError

func (o *RestartInstanceNoContent) IsServerError() bool

IsServerError returns true when this restart instance no content response has a 5xx status code

func (*RestartInstanceNoContent) IsSuccess

func (o *RestartInstanceNoContent) IsSuccess() bool

IsSuccess returns true when this restart instance no content response has a 2xx status code

func (*RestartInstanceNoContent) String

func (o *RestartInstanceNoContent) String() string

type RestartInstanceParams

type RestartInstanceParams struct {

	/* InstanceName.

	   An EdgeCompute workload instance name
	*/
	InstanceName string

	/* StackID.

	   A stack ID or slug
	*/
	StackID string

	/* WorkloadID.

	   An EdgeCompute workload ID
	*/
	WorkloadID string

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

RestartInstanceParams contains all the parameters to send to the API endpoint

for the restart instance operation.

Typically these are written to a http.Request.

func NewRestartInstanceParams

func NewRestartInstanceParams() *RestartInstanceParams

NewRestartInstanceParams creates a new RestartInstanceParams 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 NewRestartInstanceParamsWithContext

func NewRestartInstanceParamsWithContext(ctx context.Context) *RestartInstanceParams

NewRestartInstanceParamsWithContext creates a new RestartInstanceParams object with the ability to set a context for a request.

func NewRestartInstanceParamsWithHTTPClient

func NewRestartInstanceParamsWithHTTPClient(client *http.Client) *RestartInstanceParams

NewRestartInstanceParamsWithHTTPClient creates a new RestartInstanceParams object with the ability to set a custom HTTPClient for a request.

func NewRestartInstanceParamsWithTimeout

func NewRestartInstanceParamsWithTimeout(timeout time.Duration) *RestartInstanceParams

NewRestartInstanceParamsWithTimeout creates a new RestartInstanceParams object with the ability to set a timeout on a request.

func (*RestartInstanceParams) SetContext

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

SetContext adds the context to the restart instance params

func (*RestartInstanceParams) SetDefaults

func (o *RestartInstanceParams) SetDefaults()

SetDefaults hydrates default values in the restart instance params (not the query body).

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

func (*RestartInstanceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the restart instance params

func (*RestartInstanceParams) SetInstanceName

func (o *RestartInstanceParams) SetInstanceName(instanceName string)

SetInstanceName adds the instanceName to the restart instance params

func (*RestartInstanceParams) SetStackID

func (o *RestartInstanceParams) SetStackID(stackID string)

SetStackID adds the stackId to the restart instance params

func (*RestartInstanceParams) SetTimeout

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

SetTimeout adds the timeout to the restart instance params

func (*RestartInstanceParams) SetWorkloadID

func (o *RestartInstanceParams) SetWorkloadID(workloadID string)

SetWorkloadID adds the workloadId to the restart instance params

func (*RestartInstanceParams) WithContext

WithContext adds the context to the restart instance params

func (*RestartInstanceParams) WithDefaults

func (o *RestartInstanceParams) WithDefaults() *RestartInstanceParams

WithDefaults hydrates default values in the restart instance params (not the query body).

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

func (*RestartInstanceParams) WithHTTPClient

func (o *RestartInstanceParams) WithHTTPClient(client *http.Client) *RestartInstanceParams

WithHTTPClient adds the HTTPClient to the restart instance params

func (*RestartInstanceParams) WithInstanceName

func (o *RestartInstanceParams) WithInstanceName(instanceName string) *RestartInstanceParams

WithInstanceName adds the instanceName to the restart instance params

func (*RestartInstanceParams) WithStackID

func (o *RestartInstanceParams) WithStackID(stackID string) *RestartInstanceParams

WithStackID adds the stackID to the restart instance params

func (*RestartInstanceParams) WithTimeout

func (o *RestartInstanceParams) WithTimeout(timeout time.Duration) *RestartInstanceParams

WithTimeout adds the timeout to the restart instance params

func (*RestartInstanceParams) WithWorkloadID

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

WithWorkloadID adds the workloadID to the restart instance params

func (*RestartInstanceParams) WriteToRequest

func (o *RestartInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RestartInstanceReader

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

RestartInstanceReader is a Reader for the RestartInstance structure.

func (*RestartInstanceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestartInstanceUnauthorized

type RestartInstanceUnauthorized struct {
	Payload *workload_models.StackpathapiStatus
}

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

Returned when an unauthorized request is attempted.

func NewRestartInstanceUnauthorized

func NewRestartInstanceUnauthorized() *RestartInstanceUnauthorized

NewRestartInstanceUnauthorized creates a RestartInstanceUnauthorized with default headers values

func (*RestartInstanceUnauthorized) Code

func (o *RestartInstanceUnauthorized) Code() int

Code gets the status code for the restart instance unauthorized response

func (*RestartInstanceUnauthorized) Error

func (*RestartInstanceUnauthorized) GetPayload

func (*RestartInstanceUnauthorized) IsClientError

func (o *RestartInstanceUnauthorized) IsClientError() bool

IsClientError returns true when this restart instance unauthorized response has a 4xx status code

func (*RestartInstanceUnauthorized) IsCode

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

IsCode returns true when this restart instance unauthorized response a status code equal to that given

func (*RestartInstanceUnauthorized) IsRedirect

func (o *RestartInstanceUnauthorized) IsRedirect() bool

IsRedirect returns true when this restart instance unauthorized response has a 3xx status code

func (*RestartInstanceUnauthorized) IsServerError

func (o *RestartInstanceUnauthorized) IsServerError() bool

IsServerError returns true when this restart instance unauthorized response has a 5xx status code

func (*RestartInstanceUnauthorized) IsSuccess

func (o *RestartInstanceUnauthorized) IsSuccess() bool

IsSuccess returns true when this restart instance unauthorized response has a 2xx status code

func (*RestartInstanceUnauthorized) String

func (o *RestartInstanceUnauthorized) String() string

Jump to

Keyboard shortcuts

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