client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 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 Compute

type Compute interface {
	CreateWorkload(params *CreateWorkloadParams, authInfo runtime.ClientAuthInfoWriter) (*CreateWorkloadOK, error)
	DeleteWorkload(params *DeleteWorkloadParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteWorkloadNoContent, error)
	GetLocations(params *GetLocationsParams, authInfo runtime.ClientAuthInfoWriter) (*GetLocationsOK, error)
	GetWorkload(params *GetWorkloadParams, authInfo runtime.ClientAuthInfoWriter) (*GetWorkloadOK, error)
	GetWorkloads(params *GetWorkloadsParams, authInfo runtime.ClientAuthInfoWriter) (*GetWorkloadsOK, error)
	UpdateWorkload(params *UpdateWorkloadParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateWorkloadOK, error)
	GetWorkloadInstances(params *GetWorkloadInstancesParams, authInfo runtime.ClientAuthInfoWriter) (*GetWorkloadInstancesOK, error)
	SetTransport(transport runtime.ClientTransport)
}

Compute defines the client interface

func NewCompute

func NewCompute(transport runtime.ClientTransport, formats strfmt.Registry) Compute

New creates a new workload API client.

type CreateNetworkPolicyBadRequest

type CreateNetworkPolicyBadRequest struct {
	Payload *models.StackpathapiStatus
}

CreateNetworkPolicyBadRequest handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewCreateNetworkPolicyBadRequest

func NewCreateNetworkPolicyBadRequest() *CreateNetworkPolicyBadRequest

NewCreateNetworkPolicyBadRequest creates a CreateNetworkPolicyBadRequest with default headers values

func (*CreateNetworkPolicyBadRequest) Error

type CreateNetworkPolicyDefault

type CreateNetworkPolicyDefault struct {
	Payload *models.StackpathapiStatus
	// contains filtered or unexported fields
}

CreateNetworkPolicyDefault handles this case with default header values.

Default error structure.

func NewCreateNetworkPolicyDefault

func NewCreateNetworkPolicyDefault(code int) *CreateNetworkPolicyDefault

NewCreateNetworkPolicyDefault creates a CreateNetworkPolicyDefault with default headers values

func (*CreateNetworkPolicyDefault) Code

func (o *CreateNetworkPolicyDefault) Code() int

Code gets the status code for the create network policy default response

func (*CreateNetworkPolicyDefault) Error

type CreateNetworkPolicyInternalServerError

type CreateNetworkPolicyInternalServerError struct {
	Payload *models.StackpathapiStatus
}

CreateNetworkPolicyInternalServerError handles this case with default header values.

Internal server error.

func NewCreateNetworkPolicyInternalServerError

func NewCreateNetworkPolicyInternalServerError() *CreateNetworkPolicyInternalServerError

NewCreateNetworkPolicyInternalServerError creates a CreateNetworkPolicyInternalServerError with default headers values

func (*CreateNetworkPolicyInternalServerError) Error

type CreateNetworkPolicyOK

type CreateNetworkPolicyOK struct {
	Payload *models.V1CreateNetworkPolicyResponse
}

CreateNetworkPolicyOK handles this case with default header values.

CreateNetworkPolicyOK create network policy o k

func NewCreateNetworkPolicyOK

func NewCreateNetworkPolicyOK() *CreateNetworkPolicyOK

NewCreateNetworkPolicyOK creates a CreateNetworkPolicyOK with default headers values

func (*CreateNetworkPolicyOK) Error

func (o *CreateNetworkPolicyOK) Error() string

type CreateNetworkPolicyParams

type CreateNetworkPolicyParams struct {

	/*Body*/
	Body *models.V1CreateNetworkPolicyRequest
	/*NetworkPolicyStackID
	  The ID of the stack that a network policy belongs to

	*/
	NetworkPolicyStackID string

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

CreateNetworkPolicyParams contains all the parameters to send to the API endpoint for the create network policy operation typically these are written to a http.Request

func NewCreateNetworkPolicyParams

func NewCreateNetworkPolicyParams() *CreateNetworkPolicyParams

NewCreateNetworkPolicyParams creates a new CreateNetworkPolicyParams object with the default values initialized.

func NewCreateNetworkPolicyParamsWithContext

func NewCreateNetworkPolicyParamsWithContext(ctx context.Context) *CreateNetworkPolicyParams

NewCreateNetworkPolicyParamsWithContext creates a new CreateNetworkPolicyParams object with the default values initialized, and the ability to set a context for a request

func NewCreateNetworkPolicyParamsWithHTTPClient

func NewCreateNetworkPolicyParamsWithHTTPClient(client *http.Client) *CreateNetworkPolicyParams

NewCreateNetworkPolicyParamsWithHTTPClient creates a new CreateNetworkPolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateNetworkPolicyParamsWithTimeout

func NewCreateNetworkPolicyParamsWithTimeout(timeout time.Duration) *CreateNetworkPolicyParams

NewCreateNetworkPolicyParamsWithTimeout creates a new CreateNetworkPolicyParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateNetworkPolicyParams) SetBody

SetBody adds the body to the create network policy params

func (*CreateNetworkPolicyParams) SetContext

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

SetContext adds the context to the create network policy params

func (*CreateNetworkPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create network policy params

func (*CreateNetworkPolicyParams) SetNetworkPolicyStackID

func (o *CreateNetworkPolicyParams) SetNetworkPolicyStackID(networkPolicyStackID string)

SetNetworkPolicyStackID adds the networkPolicyStackId to the create network policy params

func (*CreateNetworkPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the create network policy params

func (*CreateNetworkPolicyParams) WithBody

WithBody adds the body to the create network policy params

func (*CreateNetworkPolicyParams) WithContext

WithContext adds the context to the create network policy params

func (*CreateNetworkPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create network policy params

func (*CreateNetworkPolicyParams) WithNetworkPolicyStackID

func (o *CreateNetworkPolicyParams) WithNetworkPolicyStackID(networkPolicyStackID string) *CreateNetworkPolicyParams

WithNetworkPolicyStackID adds the networkPolicyStackID to the create network policy params

func (*CreateNetworkPolicyParams) WithTimeout

WithTimeout adds the timeout to the create network policy params

func (*CreateNetworkPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateNetworkPolicyReader

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

CreateNetworkPolicyReader is a Reader for the CreateNetworkPolicy structure.

func (*CreateNetworkPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateNetworkPolicyUnauthorized

type CreateNetworkPolicyUnauthorized struct {
	Payload *models.StackpathapiStatus
}

CreateNetworkPolicyUnauthorized handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewCreateNetworkPolicyUnauthorized

func NewCreateNetworkPolicyUnauthorized() *CreateNetworkPolicyUnauthorized

NewCreateNetworkPolicyUnauthorized creates a CreateNetworkPolicyUnauthorized with default headers values

func (*CreateNetworkPolicyUnauthorized) Error

type CreateWorkloadBadRequest

type CreateWorkloadBadRequest struct {
	Payload *models.StackpathapiStatus
}

CreateWorkloadBadRequest handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewCreateWorkloadBadRequest

func NewCreateWorkloadBadRequest() *CreateWorkloadBadRequest

func (*CreateWorkloadBadRequest) Error

func (o *CreateWorkloadBadRequest) Error() string

type CreateWorkloadDefault

type CreateWorkloadDefault struct {
	Payload *models.StackpathapiStatus
	// contains filtered or unexported fields
}

CreateWorkloadDefault handles this case 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

type CreateWorkloadInternalServerError

type CreateWorkloadInternalServerError struct {
	Payload *models.StackpathapiStatus
}

CreateWorkloadInternalServerError handles this case with default header values.

Internal server error.

func NewCreateWorkloadInternalServerError

func NewCreateWorkloadInternalServerError() *CreateWorkloadInternalServerError

NewCreateWorkloadInternalServerError creates a CreateWorkloadInternalServerError with default headers values

func (*CreateWorkloadInternalServerError) Error

type CreateWorkloadOK

type CreateWorkloadOK struct {
	Payload *models.V1CreateWorkloadResponse
}

CreateWorkloadOK handles this case with default header values.

CreateWorkloadOK create workload Ok

func NewCreateWorkloadOK

func NewCreateWorkloadOK() *CreateWorkloadOK

NewCreateWorkloadOK creates a CreateWorkloadOK with default headers values

func (*CreateWorkloadOK) Error

func (o *CreateWorkloadOK) Error() string

type CreateWorkloadParams

type CreateWorkloadParams struct {

	/*Body*/
	Body *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 values initialized.

func NewCreateWorkloadParamsWithContext

func NewCreateWorkloadParamsWithContext(ctx context.Context) *CreateWorkloadParams

NewCreateWorkloadParamsWithContext creates a new CreateWorkloadParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*CreateWorkloadParams) SetBody

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) 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

WithBody adds the body to the create workload params

func (*CreateWorkloadParams) WithContext

WithContext adds the context to the create workload params

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 {
	Payload *models.StackpathapiStatus
}

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

type DeleteNetworkPolicyDefault

type DeleteNetworkPolicyDefault struct {
	Payload *models.StackpathapiStatus
	// contains filtered or unexported fields
}

DeleteNetworkPolicyDefault handles this case with default header values.

Default error structure.

func NewDeleteNetworkPolicyDefault

func NewDeleteNetworkPolicyDefault(code int) *DeleteNetworkPolicyDefault

NewDeleteNetworkPolicyDefault creates a DeleteNetworkPolicyDefault with default headers values

func (*DeleteNetworkPolicyDefault) Code

func (o *DeleteNetworkPolicyDefault) Code() int

Code gets the status code for the delete network policy default response

func (*DeleteNetworkPolicyDefault) Error

type DeleteNetworkPolicyInternalServerError

type DeleteNetworkPolicyInternalServerError struct {
	Payload *models.StackpathapiStatus
}

DeleteNetworkPolicyInternalServerError handles this case with default header values.

Internal server error.

func NewDeleteNetworkPolicyInternalServerError

func NewDeleteNetworkPolicyInternalServerError() *DeleteNetworkPolicyInternalServerError

NewDeleteNetworkPolicyInternalServerError creates a DeleteNetworkPolicyInternalServerError with default headers values

func (*DeleteNetworkPolicyInternalServerError) Error

type DeleteNetworkPolicyNoContent

type DeleteNetworkPolicyNoContent struct {
}

DeleteNetworkPolicyNoContent handles this case with default header values.

No content

func NewDeleteNetworkPolicyNoContent

func NewDeleteNetworkPolicyNoContent() *DeleteNetworkPolicyNoContent

NewDeleteNetworkPolicyNoContent creates a DeleteNetworkPolicyNoContent with default headers values

func (*DeleteNetworkPolicyNoContent) Error

type DeleteNetworkPolicyParams

type DeleteNetworkPolicyParams struct {

	/*NetworkPolicyID
	  The ID of the network policy to delete

	*/
	NetworkPolicyID string
	/*StackID
	  The ID of the stack containing the network policy to delete

	*/
	StackID string

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

DeleteNetworkPolicyParams contains all the parameters to send to the API endpoint for the delete network policy operation typically these are written to a http.Request

func NewDeleteNetworkPolicyParams

func NewDeleteNetworkPolicyParams() *DeleteNetworkPolicyParams

NewDeleteNetworkPolicyParams creates a new DeleteNetworkPolicyParams object with the default values initialized.

func NewDeleteNetworkPolicyParamsWithContext

func NewDeleteNetworkPolicyParamsWithContext(ctx context.Context) *DeleteNetworkPolicyParams

NewDeleteNetworkPolicyParamsWithContext creates a new DeleteNetworkPolicyParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteNetworkPolicyParamsWithHTTPClient

func NewDeleteNetworkPolicyParamsWithHTTPClient(client *http.Client) *DeleteNetworkPolicyParams

NewDeleteNetworkPolicyParamsWithHTTPClient creates a new DeleteNetworkPolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteNetworkPolicyParamsWithTimeout

func NewDeleteNetworkPolicyParamsWithTimeout(timeout time.Duration) *DeleteNetworkPolicyParams

NewDeleteNetworkPolicyParamsWithTimeout creates a new DeleteNetworkPolicyParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteNetworkPolicyParams) SetContext

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

SetContext adds the context to the delete network policy params

func (*DeleteNetworkPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete network policy params

func (*DeleteNetworkPolicyParams) SetNetworkPolicyID

func (o *DeleteNetworkPolicyParams) SetNetworkPolicyID(networkPolicyID string)

SetNetworkPolicyID adds the networkPolicyId to the delete network policy params

func (*DeleteNetworkPolicyParams) SetStackID

func (o *DeleteNetworkPolicyParams) SetStackID(stackID string)

SetStackID adds the stackId to the delete network policy params

func (*DeleteNetworkPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the delete network policy params

func (*DeleteNetworkPolicyParams) WithContext

WithContext adds the context to the delete network policy params

func (*DeleteNetworkPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete network policy params

func (*DeleteNetworkPolicyParams) WithNetworkPolicyID

func (o *DeleteNetworkPolicyParams) WithNetworkPolicyID(networkPolicyID string) *DeleteNetworkPolicyParams

WithNetworkPolicyID adds the networkPolicyID to the delete network policy params

func (*DeleteNetworkPolicyParams) WithStackID

WithStackID adds the stackID to the delete network policy params

func (*DeleteNetworkPolicyParams) WithTimeout

WithTimeout adds the timeout to the delete network policy params

func (*DeleteNetworkPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteNetworkPolicyReader

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

DeleteNetworkPolicyReader is a Reader for the DeleteNetworkPolicy structure.

func (*DeleteNetworkPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteNetworkPolicyUnauthorized

type DeleteNetworkPolicyUnauthorized struct {
	Payload *models.StackpathapiStatus
}

DeleteNetworkPolicyUnauthorized handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewDeleteNetworkPolicyUnauthorized

func NewDeleteNetworkPolicyUnauthorized() *DeleteNetworkPolicyUnauthorized

NewDeleteNetworkPolicyUnauthorized creates a DeleteNetworkPolicyUnauthorized with default headers values

func (*DeleteNetworkPolicyUnauthorized) Error

type DeleteWorkloadDefault

type DeleteWorkloadDefault struct {
	Payload *models.StackpathapiStatus
	// contains filtered or unexported fields
}

DeleteWorkloadDefault handles this case 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

type DeleteWorkloadInternalServerError

type DeleteWorkloadInternalServerError struct {
	Payload *models.StackpathapiStatus
}

DeleteWorkloadInternalServerError handles this case with default header values.

Internal server error.

func NewDeleteWorkloadInternalServerError

func NewDeleteWorkloadInternalServerError() *DeleteWorkloadInternalServerError

NewDeleteWorkloadInternalServerError creates a DeleteWorkloadInternalServerError with default headers values

func (*DeleteWorkloadInternalServerError) Error

type DeleteWorkloadNoContent

type DeleteWorkloadNoContent struct {
}

DeleteWorkloadNoContent handles this case with default header values.

No content

func NewDeleteWorkloadNoContent

func NewDeleteWorkloadNoContent() *DeleteWorkloadNoContent

NewDeleteWorkloadNoContent creates a DeleteWorkloadNoContent with default headers values

func (*DeleteWorkloadNoContent) Error

func (o *DeleteWorkloadNoContent) Error() 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 values initialized.

func NewDeleteWorkloadParamsWithContext

func NewDeleteWorkloadParamsWithContext(ctx context.Context) *DeleteWorkloadParams

NewDeleteWorkloadParamsWithContext creates a new DeleteWorkloadParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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

WithContext adds the context to the delete workload params

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 {
	Payload *models.StackpathapiStatus
}

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

type GetLocationsDefault

type GetLocationsDefault struct {
	Payload *models.StackpathapiStatus
	// contains filtered or unexported fields
}

GetLocationsDefault handles this case 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

type GetLocationsInternalServerError

type GetLocationsInternalServerError struct {
	Payload *models.StackpathapiStatus
}

GetLocationsInternalServerError handles this case with default header values.

Internal server error.

func NewGetLocationsInternalServerError

func NewGetLocationsInternalServerError() *GetLocationsInternalServerError

NewGetLocationsInternalServerError creates a GetLocationsInternalServerError with default headers values

func (*GetLocationsInternalServerError) Error

type GetLocationsOK

type GetLocationsOK struct {
	Payload *models.V1GetLocationsResponse
}

GetLocationsOK handles this case with default header values.

GetLocationsOK get locations Ok

func NewGetLocationsOK

func NewGetLocationsOK() *GetLocationsOK

NewGetLocationsOK creates a GetLocationsOK with default headers values

func (*GetLocationsOK) Error

func (o *GetLocationsOK) Error() 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 values initialized.

func NewGetLocationsParamsWithContext

func NewGetLocationsParamsWithContext(ctx context.Context) *GetLocationsParams

NewGetLocationsParamsWithContext creates a new GetLocationsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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

WithContext adds the context to the get locations params

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 {
	Payload *models.StackpathapiStatus
}

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

func (o *GetLocationsUnauthorized) Error() string

type GetNetworkPoliciesDefault

type GetNetworkPoliciesDefault struct {
	Payload *models.StackpathapiStatus
	// contains filtered or unexported fields
}

GetNetworkPoliciesDefault handles this case with default header values.

Default error structure.

func NewGetNetworkPoliciesDefault

func NewGetNetworkPoliciesDefault(code int) *GetNetworkPoliciesDefault

NewGetNetworkPoliciesDefault creates a GetNetworkPoliciesDefault with default headers values

func (*GetNetworkPoliciesDefault) Code

func (o *GetNetworkPoliciesDefault) Code() int

Code gets the status code for the get network policies default response

func (*GetNetworkPoliciesDefault) Error

func (o *GetNetworkPoliciesDefault) Error() string

type GetNetworkPoliciesInternalServerError

type GetNetworkPoliciesInternalServerError struct {
	Payload *models.StackpathapiStatus
}

GetNetworkPoliciesInternalServerError handles this case with default header values.

Internal server error.

func NewGetNetworkPoliciesInternalServerError

func NewGetNetworkPoliciesInternalServerError() *GetNetworkPoliciesInternalServerError

NewGetNetworkPoliciesInternalServerError creates a GetNetworkPoliciesInternalServerError with default headers values

func (*GetNetworkPoliciesInternalServerError) Error

type GetNetworkPoliciesOK

type GetNetworkPoliciesOK struct {
	Payload *models.V1GetNetworkPoliciesResponse
}

GetNetworkPoliciesOK handles this case with default header values.

GetNetworkPoliciesOK get network policies o k

func NewGetNetworkPoliciesOK

func NewGetNetworkPoliciesOK() *GetNetworkPoliciesOK

NewGetNetworkPoliciesOK creates a GetNetworkPoliciesOK with default headers values

func (*GetNetworkPoliciesOK) Error

func (o *GetNetworkPoliciesOK) Error() string

type GetNetworkPoliciesParams

type GetNetworkPoliciesParams 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 network policies from

	*/
	StackID string

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

GetNetworkPoliciesParams contains all the parameters to send to the API endpoint for the get network policies operation typically these are written to a http.Request

func NewGetNetworkPoliciesParams

func NewGetNetworkPoliciesParams() *GetNetworkPoliciesParams

NewGetNetworkPoliciesParams creates a new GetNetworkPoliciesParams object with the default values initialized.

func NewGetNetworkPoliciesParamsWithContext

func NewGetNetworkPoliciesParamsWithContext(ctx context.Context) *GetNetworkPoliciesParams

NewGetNetworkPoliciesParamsWithContext creates a new GetNetworkPoliciesParams object with the default values initialized, and the ability to set a context for a request

func NewGetNetworkPoliciesParamsWithHTTPClient

func NewGetNetworkPoliciesParamsWithHTTPClient(client *http.Client) *GetNetworkPoliciesParams

NewGetNetworkPoliciesParamsWithHTTPClient creates a new GetNetworkPoliciesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetNetworkPoliciesParamsWithTimeout

func NewGetNetworkPoliciesParamsWithTimeout(timeout time.Duration) *GetNetworkPoliciesParams

NewGetNetworkPoliciesParamsWithTimeout creates a new GetNetworkPoliciesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetNetworkPoliciesParams) SetContext

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

SetContext adds the context to the get network policies params

func (*GetNetworkPoliciesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get network policies params

func (*GetNetworkPoliciesParams) SetPageRequestAfter

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

SetPageRequestAfter adds the pageRequestAfter to the get network policies params

func (*GetNetworkPoliciesParams) SetPageRequestFilter

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

SetPageRequestFilter adds the pageRequestFilter to the get network policies params

func (*GetNetworkPoliciesParams) SetPageRequestFirst

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

SetPageRequestFirst adds the pageRequestFirst to the get network policies params

func (*GetNetworkPoliciesParams) SetPageRequestSortBy

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

SetPageRequestSortBy adds the pageRequestSortBy to the get network policies params

func (*GetNetworkPoliciesParams) SetStackID

func (o *GetNetworkPoliciesParams) SetStackID(stackID string)

SetStackID adds the stackId to the get network policies params

func (*GetNetworkPoliciesParams) SetTimeout

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

SetTimeout adds the timeout to the get network policies params

func (*GetNetworkPoliciesParams) WithContext

WithContext adds the context to the get network policies params

func (*GetNetworkPoliciesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get network policies params

func (*GetNetworkPoliciesParams) WithPageRequestAfter

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

WithPageRequestAfter adds the pageRequestAfter to the get network policies params

func (*GetNetworkPoliciesParams) WithPageRequestFilter

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

WithPageRequestFilter adds the pageRequestFilter to the get network policies params

func (*GetNetworkPoliciesParams) WithPageRequestFirst

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

WithPageRequestFirst adds the pageRequestFirst to the get network policies params

func (*GetNetworkPoliciesParams) WithPageRequestSortBy

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

WithPageRequestSortBy adds the pageRequestSortBy to the get network policies params

func (*GetNetworkPoliciesParams) WithStackID

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

WithStackID adds the stackID to the get network policies params

func (*GetNetworkPoliciesParams) WithTimeout

WithTimeout adds the timeout to the get network policies params

func (*GetNetworkPoliciesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNetworkPoliciesReader

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

GetNetworkPoliciesReader is a Reader for the GetNetworkPolicies structure.

func (*GetNetworkPoliciesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNetworkPoliciesUnauthorized

type GetNetworkPoliciesUnauthorized struct {
	Payload *models.StackpathapiStatus
}

GetNetworkPoliciesUnauthorized handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewGetNetworkPoliciesUnauthorized

func NewGetNetworkPoliciesUnauthorized() *GetNetworkPoliciesUnauthorized

NewGetNetworkPoliciesUnauthorized creates a GetNetworkPoliciesUnauthorized with default headers values

func (*GetNetworkPoliciesUnauthorized) Error

type GetNetworkPolicyDefault

type GetNetworkPolicyDefault struct {
	Payload *models.StackpathapiStatus
	// contains filtered or unexported fields
}

GetNetworkPolicyDefault handles this case with default header values.

Default error structure.

func NewGetNetworkPolicyDefault

func NewGetNetworkPolicyDefault(code int) *GetNetworkPolicyDefault

NewGetNetworkPolicyDefault creates a GetNetworkPolicyDefault with default headers values

func (*GetNetworkPolicyDefault) Code

func (o *GetNetworkPolicyDefault) Code() int

Code gets the status code for the get network policy default response

func (*GetNetworkPolicyDefault) Error

func (o *GetNetworkPolicyDefault) Error() string

type GetNetworkPolicyInternalServerError

type GetNetworkPolicyInternalServerError struct {
	Payload *models.StackpathapiStatus
}

GetNetworkPolicyInternalServerError handles this case with default header values.

Internal server error.

func NewGetNetworkPolicyInternalServerError

func NewGetNetworkPolicyInternalServerError() *GetNetworkPolicyInternalServerError

NewGetNetworkPolicyInternalServerError creates a GetNetworkPolicyInternalServerError with default headers values

func (*GetNetworkPolicyInternalServerError) Error

type GetNetworkPolicyOK

type GetNetworkPolicyOK struct {
	Payload *models.V1GetNetworkPolicyResponse
}

GetNetworkPolicyOK handles this case with default header values.

GetNetworkPolicyOK get network policy o k

func NewGetNetworkPolicyOK

func NewGetNetworkPolicyOK() *GetNetworkPolicyOK

NewGetNetworkPolicyOK creates a GetNetworkPolicyOK with default headers values

func (*GetNetworkPolicyOK) Error

func (o *GetNetworkPolicyOK) Error() string

type GetNetworkPolicyParams

type GetNetworkPolicyParams struct {

	/*NetworkPolicyID
	  The ID the network policy to retrieve

	*/
	NetworkPolicyID string
	/*StackID
	  The ID of the stack containing the network policy to retrieve

	*/
	StackID string

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

GetNetworkPolicyParams contains all the parameters to send to the API endpoint for the get network policy operation typically these are written to a http.Request

func NewGetNetworkPolicyParams

func NewGetNetworkPolicyParams() *GetNetworkPolicyParams

NewGetNetworkPolicyParams creates a new GetNetworkPolicyParams object with the default values initialized.

func NewGetNetworkPolicyParamsWithContext

func NewGetNetworkPolicyParamsWithContext(ctx context.Context) *GetNetworkPolicyParams

NewGetNetworkPolicyParamsWithContext creates a new GetNetworkPolicyParams object with the default values initialized, and the ability to set a context for a request

func NewGetNetworkPolicyParamsWithHTTPClient

func NewGetNetworkPolicyParamsWithHTTPClient(client *http.Client) *GetNetworkPolicyParams

NewGetNetworkPolicyParamsWithHTTPClient creates a new GetNetworkPolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetNetworkPolicyParamsWithTimeout

func NewGetNetworkPolicyParamsWithTimeout(timeout time.Duration) *GetNetworkPolicyParams

NewGetNetworkPolicyParamsWithTimeout creates a new GetNetworkPolicyParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetNetworkPolicyParams) SetContext

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

SetContext adds the context to the get network policy params

func (*GetNetworkPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get network policy params

func (*GetNetworkPolicyParams) SetNetworkPolicyID

func (o *GetNetworkPolicyParams) SetNetworkPolicyID(networkPolicyID string)

SetNetworkPolicyID adds the networkPolicyId to the get network policy params

func (*GetNetworkPolicyParams) SetStackID

func (o *GetNetworkPolicyParams) SetStackID(stackID string)

SetStackID adds the stackId to the get network policy params

func (*GetNetworkPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the get network policy params

func (*GetNetworkPolicyParams) WithContext

WithContext adds the context to the get network policy params

func (*GetNetworkPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get network policy params

func (*GetNetworkPolicyParams) WithNetworkPolicyID

func (o *GetNetworkPolicyParams) WithNetworkPolicyID(networkPolicyID string) *GetNetworkPolicyParams

WithNetworkPolicyID adds the networkPolicyID to the get network policy params

func (*GetNetworkPolicyParams) WithStackID

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

WithStackID adds the stackID to the get network policy params

func (*GetNetworkPolicyParams) WithTimeout

WithTimeout adds the timeout to the get network policy params

func (*GetNetworkPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNetworkPolicyReader

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

GetNetworkPolicyReader is a Reader for the GetNetworkPolicy structure.

func (*GetNetworkPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNetworkPolicyUnauthorized

type GetNetworkPolicyUnauthorized struct {
	Payload *models.StackpathapiStatus
}

GetNetworkPolicyUnauthorized handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewGetNetworkPolicyUnauthorized

func NewGetNetworkPolicyUnauthorized() *GetNetworkPolicyUnauthorized

NewGetNetworkPolicyUnauthorized creates a GetNetworkPolicyUnauthorized with default headers values

func (*GetNetworkPolicyUnauthorized) Error

type GetWorkloadDefault

type GetWorkloadDefault struct {
	Payload *models.StackpathapiStatus
	// contains filtered or unexported fields
}

GetWorkloadDefault handles this case 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

type GetWorkloadInstancesDefault

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

GetWorkloadInstancesDefault handles this case with default header values.

Default error structure.

func NewGetWorkloadInstancesDefault

func NewGetWorkloadInstancesDefault(code int) *GetWorkloadInstancesDefault

NewGetWorkloadInstancesDefault creates a GetWorkloadInstancesDefault with default headers values

func (*GetWorkloadInstancesDefault) Code

func (o *GetWorkloadInstancesDefault) Code() int

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

func (*GetWorkloadInstancesDefault) Error

type GetWorkloadInstancesInternalServerError

type GetWorkloadInstancesInternalServerError struct {
	Payload *models.StackpathapiStatus
}

GetWorkloadInstancesInternalServerError handles this case with default header values.

Internal server error.

func NewGetWorkloadInstancesInternalServerError

func NewGetWorkloadInstancesInternalServerError() *GetWorkloadInstancesInternalServerError

NewGetWorkloadInstancesInternalServerError creates a GetWorkloadInstancesInternalServerError with default headers values

func (*GetWorkloadInstancesInternalServerError) Error

type GetWorkloadInstancesOK

type GetWorkloadInstancesOK struct {
	Payload *models.V1GetWorkloadInstancesResponse
}

GetWorkloadInstancesOK handles this case with default header values.

GetWorkloadInstancesOK get workload instances Ok

func NewGetWorkloadInstancesOK

func NewGetWorkloadInstancesOK() *GetWorkloadInstancesOK

NewGetWorkloadInstancesOK creates a GetWorkloadInstancesOK with default headers values

func (*GetWorkloadInstancesOK) Error

func (o *GetWorkloadInstancesOK) Error() string

type GetWorkloadInstancesParams

type GetWorkloadInstancesParams struct {

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

	*/
	PageRequestAfter *string
	/*PageRequestFilter
	  SQL-style constraint filters.

	*/
	PageRequestFilter *string
	/*PageRequestFirst
	  The number of items desired.

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

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

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

	*/
	WorkloadID string

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

GetWorkloadInstancesParams contains all the parameters to send to the API endpoint for the get workload instances operation typically these are written to a http.Request

func NewGetWorkloadInstancesParams

func NewGetWorkloadInstancesParams() *GetWorkloadInstancesParams

NewGetWorkloadInstancesParams creates a new GetWorkloadInstancesParams object with the default values initialized.

func NewGetWorkloadInstancesParamsWithContext

func NewGetWorkloadInstancesParamsWithContext(ctx context.Context) *GetWorkloadInstancesParams

NewGetWorkloadInstancesParamsWithContext creates a new GetWorkloadInstancesParams object with the default values initialized, and the ability to set a context for a request

func NewGetWorkloadInstancesParamsWithHTTPClient

func NewGetWorkloadInstancesParamsWithHTTPClient(client *http.Client) *GetWorkloadInstancesParams

NewGetWorkloadInstancesParamsWithHTTPClient creates a new GetWorkloadInstancesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetWorkloadInstancesParamsWithTimeout

func NewGetWorkloadInstancesParamsWithTimeout(timeout time.Duration) *GetWorkloadInstancesParams

NewGetWorkloadInstancesParamsWithTimeout creates a new GetWorkloadInstancesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetWorkloadInstancesParams) SetContext

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

SetContext adds the context to the get workload instances params

func (*GetWorkloadInstancesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get workload instances params

func (*GetWorkloadInstancesParams) SetPageRequestAfter

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

SetPageRequestAfter adds the pageRequestAfter to the get workload instances params

func (*GetWorkloadInstancesParams) SetPageRequestFilter

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

SetPageRequestFilter adds the pageRequestFilter to the get workload instances params

func (*GetWorkloadInstancesParams) SetPageRequestFirst

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

SetPageRequestFirst adds the pageRequestFirst to the get workload instances params

func (*GetWorkloadInstancesParams) SetPageRequestSortBy

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

SetPageRequestSortBy adds the pageRequestSortBy to the get workload instances params

func (*GetWorkloadInstancesParams) SetStackID

func (o *GetWorkloadInstancesParams) SetStackID(stackID string)

SetStackID adds the stackId to the get workload instances params

func (*GetWorkloadInstancesParams) SetTimeout

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

SetTimeout adds the timeout to the get workload instances params

func (*GetWorkloadInstancesParams) SetWorkloadID

func (o *GetWorkloadInstancesParams) SetWorkloadID(workloadID string)

SetWorkloadID adds the workloadId to the get workload instances params

func (*GetWorkloadInstancesParams) WithContext

WithContext adds the context to the get workload instances params

func (*GetWorkloadInstancesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get workload instances params

func (*GetWorkloadInstancesParams) WithPageRequestAfter

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

WithPageRequestAfter adds the pageRequestAfter to the get workload instances params

func (*GetWorkloadInstancesParams) WithPageRequestFilter

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

WithPageRequestFilter adds the pageRequestFilter to the get workload instances params

func (*GetWorkloadInstancesParams) WithPageRequestFirst

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

WithPageRequestFirst adds the pageRequestFirst to the get workload instances params

func (*GetWorkloadInstancesParams) WithPageRequestSortBy

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

WithPageRequestSortBy adds the pageRequestSortBy to the get workload instances params

func (*GetWorkloadInstancesParams) WithStackID

WithStackID adds the stackID to the get workload instances params

func (*GetWorkloadInstancesParams) WithTimeout

WithTimeout adds the timeout to the get workload instances params

func (*GetWorkloadInstancesParams) WithWorkloadID

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

WithWorkloadID adds the workloadID to the get workload instances params

func (*GetWorkloadInstancesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetWorkloadInstancesReader

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

GetWorkloadInstancesReader is a Reader for the GetWorkloadInstances structure.

func (*GetWorkloadInstancesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetWorkloadInstancesUnauthorized

type GetWorkloadInstancesUnauthorized struct {
	Payload *models.StackpathapiStatus
}

GetWorkloadInstancesUnauthorized handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewGetWorkloadInstancesUnauthorized

func NewGetWorkloadInstancesUnauthorized() *GetWorkloadInstancesUnauthorized

NewGetWorkloadInstancesUnauthorized creates a GetWorkloadInstancesUnauthorized with default headers values

func (*GetWorkloadInstancesUnauthorized) Error

type GetWorkloadInternalServerError

type GetWorkloadInternalServerError struct {
	Payload *models.StackpathapiStatus
}

GetWorkloadInternalServerError handles this case with default header values.

Internal server error.

func NewGetWorkloadInternalServerError

func NewGetWorkloadInternalServerError() *GetWorkloadInternalServerError

NewGetWorkloadInternalServerError creates a GetWorkloadInternalServerError with default headers values

func (*GetWorkloadInternalServerError) Error

type GetWorkloadOK

type GetWorkloadOK struct {
	Payload *models.V1GetWorkloadResponse
}

GetWorkloadOK handles this case with default header values.

GetWorkloadOK get workload Ok

func NewGetWorkloadOK

func NewGetWorkloadOK() *GetWorkloadOK

NewGetWorkloadOK creates a GetWorkloadOK with default headers values

func (*GetWorkloadOK) Error

func (o *GetWorkloadOK) Error() 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 values initialized.

func NewGetWorkloadParamsWithContext

func NewGetWorkloadParamsWithContext(ctx context.Context) *GetWorkloadParams

NewGetWorkloadParamsWithContext creates a new GetWorkloadParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 {
	Payload *models.StackpathapiStatus
}

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

func (o *GetWorkloadUnauthorized) Error() string

type GetWorkloadsDefault

type GetWorkloadsDefault struct {
	Payload *models.StackpathapiStatus
	// contains filtered or unexported fields
}

GetWorkloadsDefault handles this case 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

type GetWorkloadsInternalServerError

type GetWorkloadsInternalServerError struct {
	Payload *models.StackpathapiStatus
}

GetWorkloadsInternalServerError handles this case with default header values.

Internal server error.

func NewGetWorkloadsInternalServerError

func NewGetWorkloadsInternalServerError() *GetWorkloadsInternalServerError

NewGetWorkloadsInternalServerError creates a GetWorkloadsInternalServerError with default headers values

func (*GetWorkloadsInternalServerError) Error

type GetWorkloadsOK

type GetWorkloadsOK struct {
	Payload *models.V1GetWorkloadsResponse
}

GetWorkloadsOK handles this case with default header values.

GetWorkloadsOK get workloads Ok

func NewGetWorkloadsOK

func NewGetWorkloadsOK() *GetWorkloadsOK

NewGetWorkloadsOK creates a GetWorkloadsOK with default headers values

func (*GetWorkloadsOK) Error

func (o *GetWorkloadsOK) Error() 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 values initialized.

func NewGetWorkloadsParamsWithContext

func NewGetWorkloadsParamsWithContext(ctx context.Context) *GetWorkloadsParams

NewGetWorkloadsParamsWithContext creates a new GetWorkloadsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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

WithContext adds the context to the get workloads params

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 {
	Payload *models.StackpathapiStatus
}

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

func (o *GetWorkloadsUnauthorized) Error() string

type UpdateNetworkPolicyDefault

type UpdateNetworkPolicyDefault struct {
	Payload *models.StackpathapiStatus
	// contains filtered or unexported fields
}

UpdateNetworkPolicyDefault handles this case with default header values.

Default error structure.

func NewUpdateNetworkPolicyDefault

func NewUpdateNetworkPolicyDefault(code int) *UpdateNetworkPolicyDefault

NewUpdateNetworkPolicyDefault creates a UpdateNetworkPolicyDefault with default headers values

func (*UpdateNetworkPolicyDefault) Code

func (o *UpdateNetworkPolicyDefault) Code() int

Code gets the status code for the update network policy default response

func (*UpdateNetworkPolicyDefault) Error

type UpdateNetworkPolicyInternalServerError

type UpdateNetworkPolicyInternalServerError struct {
	Payload *models.StackpathapiStatus
}

UpdateNetworkPolicyInternalServerError handles this case with default header values.

Internal server error.

func NewUpdateNetworkPolicyInternalServerError

func NewUpdateNetworkPolicyInternalServerError() *UpdateNetworkPolicyInternalServerError

NewUpdateNetworkPolicyInternalServerError creates a UpdateNetworkPolicyInternalServerError with default headers values

func (*UpdateNetworkPolicyInternalServerError) Error

type UpdateNetworkPolicyOK

type UpdateNetworkPolicyOK struct {
	Payload *models.V1UpdateNetworkPolicyResponse
}

UpdateNetworkPolicyOK handles this case with default header values.

UpdateNetworkPolicyOK update network policy o k

func NewUpdateNetworkPolicyOK

func NewUpdateNetworkPolicyOK() *UpdateNetworkPolicyOK

NewUpdateNetworkPolicyOK creates a UpdateNetworkPolicyOK with default headers values

func (*UpdateNetworkPolicyOK) Error

func (o *UpdateNetworkPolicyOK) Error() string

type UpdateNetworkPolicyParams

type UpdateNetworkPolicyParams struct {

	/*Body*/
	Body *models.V1UpdateNetworkPolicyRequest
	/*NetworkPolicyID
	  A network policy's unique identifier

	*/
	NetworkPolicyID string
	/*NetworkPolicyStackID
	  The ID of the stack that a network policy belongs to

	*/
	NetworkPolicyStackID string

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

UpdateNetworkPolicyParams contains all the parameters to send to the API endpoint for the update network policy operation typically these are written to a http.Request

func NewUpdateNetworkPolicyParams

func NewUpdateNetworkPolicyParams() *UpdateNetworkPolicyParams

NewUpdateNetworkPolicyParams creates a new UpdateNetworkPolicyParams object with the default values initialized.

func NewUpdateNetworkPolicyParamsWithContext

func NewUpdateNetworkPolicyParamsWithContext(ctx context.Context) *UpdateNetworkPolicyParams

NewUpdateNetworkPolicyParamsWithContext creates a new UpdateNetworkPolicyParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateNetworkPolicyParamsWithHTTPClient

func NewUpdateNetworkPolicyParamsWithHTTPClient(client *http.Client) *UpdateNetworkPolicyParams

NewUpdateNetworkPolicyParamsWithHTTPClient creates a new UpdateNetworkPolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateNetworkPolicyParamsWithTimeout

func NewUpdateNetworkPolicyParamsWithTimeout(timeout time.Duration) *UpdateNetworkPolicyParams

NewUpdateNetworkPolicyParamsWithTimeout creates a new UpdateNetworkPolicyParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateNetworkPolicyParams) SetBody

SetBody adds the body to the update network policy params

func (*UpdateNetworkPolicyParams) SetContext

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

SetContext adds the context to the update network policy params

func (*UpdateNetworkPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update network policy params

func (*UpdateNetworkPolicyParams) SetNetworkPolicyID

func (o *UpdateNetworkPolicyParams) SetNetworkPolicyID(networkPolicyID string)

SetNetworkPolicyID adds the networkPolicyId to the update network policy params

func (*UpdateNetworkPolicyParams) SetNetworkPolicyStackID

func (o *UpdateNetworkPolicyParams) SetNetworkPolicyStackID(networkPolicyStackID string)

SetNetworkPolicyStackID adds the networkPolicyStackId to the update network policy params

func (*UpdateNetworkPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the update network policy params

func (*UpdateNetworkPolicyParams) WithBody

WithBody adds the body to the update network policy params

func (*UpdateNetworkPolicyParams) WithContext

WithContext adds the context to the update network policy params

func (*UpdateNetworkPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update network policy params

func (*UpdateNetworkPolicyParams) WithNetworkPolicyID

func (o *UpdateNetworkPolicyParams) WithNetworkPolicyID(networkPolicyID string) *UpdateNetworkPolicyParams

WithNetworkPolicyID adds the networkPolicyID to the update network policy params

func (*UpdateNetworkPolicyParams) WithNetworkPolicyStackID

func (o *UpdateNetworkPolicyParams) WithNetworkPolicyStackID(networkPolicyStackID string) *UpdateNetworkPolicyParams

WithNetworkPolicyStackID adds the networkPolicyStackID to the update network policy params

func (*UpdateNetworkPolicyParams) WithTimeout

WithTimeout adds the timeout to the update network policy params

func (*UpdateNetworkPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateNetworkPolicyReader

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

UpdateNetworkPolicyReader is a Reader for the UpdateNetworkPolicy structure.

func (*UpdateNetworkPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateNetworkPolicyUnauthorized

type UpdateNetworkPolicyUnauthorized struct {
	Payload *models.StackpathapiStatus
}

UpdateNetworkPolicyUnauthorized handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewUpdateNetworkPolicyUnauthorized

func NewUpdateNetworkPolicyUnauthorized() *UpdateNetworkPolicyUnauthorized

NewUpdateNetworkPolicyUnauthorized creates a UpdateNetworkPolicyUnauthorized with default headers values

func (*UpdateNetworkPolicyUnauthorized) Error

type UpdateWorkloadBadRequest

type UpdateWorkloadBadRequest struct {
	Payload *models.StackpathapiStatus
}

UpdateWorkloadBadRequest handles this case with default header values.

Returned when a bad request is attempted.

func NewUpdateWorkloadBadRequest

func NewUpdateWorkloadBadRequest() *UpdateWorkloadBadRequest

NewUpdateWorkloadBadRequest creates a UpdateWorkloadUnauthorized with default headers values

func (*UpdateWorkloadBadRequest) Error

func (o *UpdateWorkloadBadRequest) Error() string

type UpdateWorkloadDefault

type UpdateWorkloadDefault struct {
	Payload *models.StackpathapiStatus
	// contains filtered or unexported fields
}

UpdateWorkloadDefault handles this case 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

type UpdateWorkloadInternalServerError

type UpdateWorkloadInternalServerError struct {
	Payload *models.StackpathapiStatus
}

UpdateWorkloadInternalServerError handles this case with default header values.

Internal server error.

func NewUpdateWorkloadInternalServerError

func NewUpdateWorkloadInternalServerError() *UpdateWorkloadInternalServerError

NewUpdateWorkloadInternalServerError creates a UpdateWorkloadInternalServerError with default headers values

func (*UpdateWorkloadInternalServerError) Error

type UpdateWorkloadOK

type UpdateWorkloadOK struct {
	Payload *models.V1UpdateWorkloadResponse
}

UpdateWorkloadOK handles this case with default header values.

UpdateWorkloadOK update workload Ok

func NewUpdateWorkloadOK

func NewUpdateWorkloadOK() *UpdateWorkloadOK

NewUpdateWorkloadOK creates a UpdateWorkloadOK with default headers values

func (*UpdateWorkloadOK) Error

func (o *UpdateWorkloadOK) Error() string

type UpdateWorkloadParams

type UpdateWorkloadParams struct {

	/*Body*/
	Body *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 values initialized.

func NewUpdateWorkloadParamsWithContext

func NewUpdateWorkloadParamsWithContext(ctx context.Context) *UpdateWorkloadParams

NewUpdateWorkloadParamsWithContext creates a new UpdateWorkloadParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*UpdateWorkloadParams) SetBody

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) 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

WithBody adds the body to the update workload params

func (*UpdateWorkloadParams) WithContext

WithContext adds the context to the update workload params

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 {
	Payload *models.StackpathapiStatus
}

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

Jump to

Keyboard shortcuts

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