policies

package
v0.0.0-...-cfedc03 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 11 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 policies API

func (*Client) CreatePolicy

func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePolicyCreated, error)

CreatePolicy creates policy

Creates new policy with permission document.

func (*Client) DeletePolicy

DeletePolicy deletes policy

Remove an existing policy by path.

func (*Client) GetPolicy

func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, error)

GetPolicy gets policy

Retrieve policy by path.

func (*Client) GetPolicyByVersion

func (a *Client) GetPolicyByVersion(params *GetPolicyByVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyByVersionOK, error)

GetPolicyByVersion gets a list of policies by version

Get a full policies by path and version in the query.Returns a list of zero up to n versions of an item.

func (*Client) RestorePolicy

func (a *Client) RestorePolicy(params *RestorePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestorePolicyNoContent, error)

RestorePolicy restores policy

Restore an existing policy by path.

func (*Client) RollbackPolicy

func (a *Client) RollbackPolicy(params *RollbackPolicyParams, opts ...ClientOption) (*RollbackPolicyOK, error)

RollbackPolicy rollbacks policy

Overwrites an existing policy with its previous version.

func (*Client) SearchFilter

func (a *Client) SearchFilter(params *SearchFilterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchFilterOK, error)

SearchFilter searches policies

Search permission policies by path.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdatePolicy

func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyOK, error)

UpdatePolicy updates policy

Overwrites an existing policy with an updated permissions document.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePolicyCreated, error)

	DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyOK, *DeletePolicyNoContent, error)

	GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, error)

	GetPolicyByVersion(params *GetPolicyByVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyByVersionOK, error)

	RestorePolicy(params *RestorePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestorePolicyNoContent, error)

	RollbackPolicy(params *RollbackPolicyParams, opts ...ClientOption) (*RollbackPolicyOK, error)

	SearchFilter(params *SearchFilterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchFilterOK, error)

	UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyOK, 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 policies API client.

type CreatePolicyBadRequest

type CreatePolicyBadRequest struct {
	Payload *models.HTTPError
}
CreatePolicyBadRequest describes a response with status code 400, with default header values.

bad request

func NewCreatePolicyBadRequest

func NewCreatePolicyBadRequest() *CreatePolicyBadRequest

NewCreatePolicyBadRequest creates a CreatePolicyBadRequest with default headers values

func (*CreatePolicyBadRequest) Error

func (o *CreatePolicyBadRequest) Error() string

func (*CreatePolicyBadRequest) GetPayload

func (o *CreatePolicyBadRequest) GetPayload() *models.HTTPError

func (*CreatePolicyBadRequest) IsClientError

func (o *CreatePolicyBadRequest) IsClientError() bool

IsClientError returns true when this create policy bad request response has a 4xx status code

func (*CreatePolicyBadRequest) IsCode

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

IsCode returns true when this create policy bad request response a status code equal to that given

func (*CreatePolicyBadRequest) IsRedirect

func (o *CreatePolicyBadRequest) IsRedirect() bool

IsRedirect returns true when this create policy bad request response has a 3xx status code

func (*CreatePolicyBadRequest) IsServerError

func (o *CreatePolicyBadRequest) IsServerError() bool

IsServerError returns true when this create policy bad request response has a 5xx status code

func (*CreatePolicyBadRequest) IsSuccess

func (o *CreatePolicyBadRequest) IsSuccess() bool

IsSuccess returns true when this create policy bad request response has a 2xx status code

func (*CreatePolicyBadRequest) String

func (o *CreatePolicyBadRequest) String() string

type CreatePolicyCreated

type CreatePolicyCreated struct {
	Payload *models.Policy
}
CreatePolicyCreated describes a response with status code 201, with default header values.

no error

func NewCreatePolicyCreated

func NewCreatePolicyCreated() *CreatePolicyCreated

NewCreatePolicyCreated creates a CreatePolicyCreated with default headers values

func (*CreatePolicyCreated) Error

func (o *CreatePolicyCreated) Error() string

func (*CreatePolicyCreated) GetPayload

func (o *CreatePolicyCreated) GetPayload() *models.Policy

func (*CreatePolicyCreated) IsClientError

func (o *CreatePolicyCreated) IsClientError() bool

IsClientError returns true when this create policy created response has a 4xx status code

func (*CreatePolicyCreated) IsCode

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

IsCode returns true when this create policy created response a status code equal to that given

func (*CreatePolicyCreated) IsRedirect

func (o *CreatePolicyCreated) IsRedirect() bool

IsRedirect returns true when this create policy created response has a 3xx status code

func (*CreatePolicyCreated) IsServerError

func (o *CreatePolicyCreated) IsServerError() bool

IsServerError returns true when this create policy created response has a 5xx status code

func (*CreatePolicyCreated) IsSuccess

func (o *CreatePolicyCreated) IsSuccess() bool

IsSuccess returns true when this create policy created response has a 2xx status code

func (*CreatePolicyCreated) String

func (o *CreatePolicyCreated) String() string

type CreatePolicyForbidden

type CreatePolicyForbidden struct {
	Payload *models.HTTPError
}
CreatePolicyForbidden describes a response with status code 403, with default header values.

forbidden

func NewCreatePolicyForbidden

func NewCreatePolicyForbidden() *CreatePolicyForbidden

NewCreatePolicyForbidden creates a CreatePolicyForbidden with default headers values

func (*CreatePolicyForbidden) Error

func (o *CreatePolicyForbidden) Error() string

func (*CreatePolicyForbidden) GetPayload

func (o *CreatePolicyForbidden) GetPayload() *models.HTTPError

func (*CreatePolicyForbidden) IsClientError

func (o *CreatePolicyForbidden) IsClientError() bool

IsClientError returns true when this create policy forbidden response has a 4xx status code

func (*CreatePolicyForbidden) IsCode

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

IsCode returns true when this create policy forbidden response a status code equal to that given

func (*CreatePolicyForbidden) IsRedirect

func (o *CreatePolicyForbidden) IsRedirect() bool

IsRedirect returns true when this create policy forbidden response has a 3xx status code

func (*CreatePolicyForbidden) IsServerError

func (o *CreatePolicyForbidden) IsServerError() bool

IsServerError returns true when this create policy forbidden response has a 5xx status code

func (*CreatePolicyForbidden) IsSuccess

func (o *CreatePolicyForbidden) IsSuccess() bool

IsSuccess returns true when this create policy forbidden response has a 2xx status code

func (*CreatePolicyForbidden) String

func (o *CreatePolicyForbidden) String() string

type CreatePolicyInternalServerError

type CreatePolicyInternalServerError struct {
	Payload *models.HTTPError
}
CreatePolicyInternalServerError describes a response with status code 500, with default header values.

server error

func NewCreatePolicyInternalServerError

func NewCreatePolicyInternalServerError() *CreatePolicyInternalServerError

NewCreatePolicyInternalServerError creates a CreatePolicyInternalServerError with default headers values

func (*CreatePolicyInternalServerError) Error

func (*CreatePolicyInternalServerError) GetPayload

func (*CreatePolicyInternalServerError) IsClientError

func (o *CreatePolicyInternalServerError) IsClientError() bool

IsClientError returns true when this create policy internal server error response has a 4xx status code

func (*CreatePolicyInternalServerError) IsCode

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

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

func (*CreatePolicyInternalServerError) IsRedirect

func (o *CreatePolicyInternalServerError) IsRedirect() bool

IsRedirect returns true when this create policy internal server error response has a 3xx status code

func (*CreatePolicyInternalServerError) IsServerError

func (o *CreatePolicyInternalServerError) IsServerError() bool

IsServerError returns true when this create policy internal server error response has a 5xx status code

func (*CreatePolicyInternalServerError) IsSuccess

func (o *CreatePolicyInternalServerError) IsSuccess() bool

IsSuccess returns true when this create policy internal server error response has a 2xx status code

func (*CreatePolicyInternalServerError) String

type CreatePolicyParams

type CreatePolicyParams struct {

	// Body.
	Body *models.PolicyCreate

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

CreatePolicyParams contains all the parameters to send to the API endpoint

for the create policy operation.

Typically these are written to a http.Request.

func NewCreatePolicyParams

func NewCreatePolicyParams() *CreatePolicyParams

NewCreatePolicyParams creates a new CreatePolicyParams 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 NewCreatePolicyParamsWithContext

func NewCreatePolicyParamsWithContext(ctx context.Context) *CreatePolicyParams

NewCreatePolicyParamsWithContext creates a new CreatePolicyParams object with the ability to set a context for a request.

func NewCreatePolicyParamsWithHTTPClient

func NewCreatePolicyParamsWithHTTPClient(client *http.Client) *CreatePolicyParams

NewCreatePolicyParamsWithHTTPClient creates a new CreatePolicyParams object with the ability to set a custom HTTPClient for a request.

func NewCreatePolicyParamsWithTimeout

func NewCreatePolicyParamsWithTimeout(timeout time.Duration) *CreatePolicyParams

NewCreatePolicyParamsWithTimeout creates a new CreatePolicyParams object with the ability to set a timeout on a request.

func (*CreatePolicyParams) SetBody

func (o *CreatePolicyParams) SetBody(body *models.PolicyCreate)

SetBody adds the body to the create policy params

func (*CreatePolicyParams) SetContext

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

SetContext adds the context to the create policy params

func (*CreatePolicyParams) SetDefaults

func (o *CreatePolicyParams) SetDefaults()

SetDefaults hydrates default values in the create policy params (not the query body).

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

func (*CreatePolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create policy params

func (*CreatePolicyParams) SetTimeout

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

SetTimeout adds the timeout to the create policy params

func (*CreatePolicyParams) WithBody

WithBody adds the body to the create policy params

func (*CreatePolicyParams) WithContext

WithContext adds the context to the create policy params

func (*CreatePolicyParams) WithDefaults

func (o *CreatePolicyParams) WithDefaults() *CreatePolicyParams

WithDefaults hydrates default values in the create policy params (not the query body).

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

func (*CreatePolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create policy params

func (*CreatePolicyParams) WithTimeout

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

WithTimeout adds the timeout to the create policy params

func (*CreatePolicyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreatePolicyReader

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

CreatePolicyReader is a Reader for the CreatePolicy structure.

func (*CreatePolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreatePolicyUnauthorized

type CreatePolicyUnauthorized struct {
	Payload *models.HTTPError
}
CreatePolicyUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewCreatePolicyUnauthorized

func NewCreatePolicyUnauthorized() *CreatePolicyUnauthorized

NewCreatePolicyUnauthorized creates a CreatePolicyUnauthorized with default headers values

func (*CreatePolicyUnauthorized) Error

func (o *CreatePolicyUnauthorized) Error() string

func (*CreatePolicyUnauthorized) GetPayload

func (o *CreatePolicyUnauthorized) GetPayload() *models.HTTPError

func (*CreatePolicyUnauthorized) IsClientError

func (o *CreatePolicyUnauthorized) IsClientError() bool

IsClientError returns true when this create policy unauthorized response has a 4xx status code

func (*CreatePolicyUnauthorized) IsCode

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

IsCode returns true when this create policy unauthorized response a status code equal to that given

func (*CreatePolicyUnauthorized) IsRedirect

func (o *CreatePolicyUnauthorized) IsRedirect() bool

IsRedirect returns true when this create policy unauthorized response has a 3xx status code

func (*CreatePolicyUnauthorized) IsServerError

func (o *CreatePolicyUnauthorized) IsServerError() bool

IsServerError returns true when this create policy unauthorized response has a 5xx status code

func (*CreatePolicyUnauthorized) IsSuccess

func (o *CreatePolicyUnauthorized) IsSuccess() bool

IsSuccess returns true when this create policy unauthorized response has a 2xx status code

func (*CreatePolicyUnauthorized) String

func (o *CreatePolicyUnauthorized) String() string

type DeletePolicyBadRequest

type DeletePolicyBadRequest struct {
	Payload *models.HTTPError
}
DeletePolicyBadRequest describes a response with status code 400, with default header values.

bad request

func NewDeletePolicyBadRequest

func NewDeletePolicyBadRequest() *DeletePolicyBadRequest

NewDeletePolicyBadRequest creates a DeletePolicyBadRequest with default headers values

func (*DeletePolicyBadRequest) Error

func (o *DeletePolicyBadRequest) Error() string

func (*DeletePolicyBadRequest) GetPayload

func (o *DeletePolicyBadRequest) GetPayload() *models.HTTPError

func (*DeletePolicyBadRequest) IsClientError

func (o *DeletePolicyBadRequest) IsClientError() bool

IsClientError returns true when this delete policy bad request response has a 4xx status code

func (*DeletePolicyBadRequest) IsCode

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

IsCode returns true when this delete policy bad request response a status code equal to that given

func (*DeletePolicyBadRequest) IsRedirect

func (o *DeletePolicyBadRequest) IsRedirect() bool

IsRedirect returns true when this delete policy bad request response has a 3xx status code

func (*DeletePolicyBadRequest) IsServerError

func (o *DeletePolicyBadRequest) IsServerError() bool

IsServerError returns true when this delete policy bad request response has a 5xx status code

func (*DeletePolicyBadRequest) IsSuccess

func (o *DeletePolicyBadRequest) IsSuccess() bool

IsSuccess returns true when this delete policy bad request response has a 2xx status code

func (*DeletePolicyBadRequest) String

func (o *DeletePolicyBadRequest) String() string

type DeletePolicyForbidden

type DeletePolicyForbidden struct {
	Payload *models.HTTPError
}
DeletePolicyForbidden describes a response with status code 403, with default header values.

forbidden

func NewDeletePolicyForbidden

func NewDeletePolicyForbidden() *DeletePolicyForbidden

NewDeletePolicyForbidden creates a DeletePolicyForbidden with default headers values

func (*DeletePolicyForbidden) Error

func (o *DeletePolicyForbidden) Error() string

func (*DeletePolicyForbidden) GetPayload

func (o *DeletePolicyForbidden) GetPayload() *models.HTTPError

func (*DeletePolicyForbidden) IsClientError

func (o *DeletePolicyForbidden) IsClientError() bool

IsClientError returns true when this delete policy forbidden response has a 4xx status code

func (*DeletePolicyForbidden) IsCode

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

IsCode returns true when this delete policy forbidden response a status code equal to that given

func (*DeletePolicyForbidden) IsRedirect

func (o *DeletePolicyForbidden) IsRedirect() bool

IsRedirect returns true when this delete policy forbidden response has a 3xx status code

func (*DeletePolicyForbidden) IsServerError

func (o *DeletePolicyForbidden) IsServerError() bool

IsServerError returns true when this delete policy forbidden response has a 5xx status code

func (*DeletePolicyForbidden) IsSuccess

func (o *DeletePolicyForbidden) IsSuccess() bool

IsSuccess returns true when this delete policy forbidden response has a 2xx status code

func (*DeletePolicyForbidden) String

func (o *DeletePolicyForbidden) String() string

type DeletePolicyInternalServerError

type DeletePolicyInternalServerError struct {
	Payload *models.HTTPError
}
DeletePolicyInternalServerError describes a response with status code 500, with default header values.

server error

func NewDeletePolicyInternalServerError

func NewDeletePolicyInternalServerError() *DeletePolicyInternalServerError

NewDeletePolicyInternalServerError creates a DeletePolicyInternalServerError with default headers values

func (*DeletePolicyInternalServerError) Error

func (*DeletePolicyInternalServerError) GetPayload

func (*DeletePolicyInternalServerError) IsClientError

func (o *DeletePolicyInternalServerError) IsClientError() bool

IsClientError returns true when this delete policy internal server error response has a 4xx status code

func (*DeletePolicyInternalServerError) IsCode

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

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

func (*DeletePolicyInternalServerError) IsRedirect

func (o *DeletePolicyInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete policy internal server error response has a 3xx status code

func (*DeletePolicyInternalServerError) IsServerError

func (o *DeletePolicyInternalServerError) IsServerError() bool

IsServerError returns true when this delete policy internal server error response has a 5xx status code

func (*DeletePolicyInternalServerError) IsSuccess

func (o *DeletePolicyInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete policy internal server error response has a 2xx status code

func (*DeletePolicyInternalServerError) String

type DeletePolicyNoContent

type DeletePolicyNoContent struct {
}
DeletePolicyNoContent describes a response with status code 204, with default header values.

no error

func NewDeletePolicyNoContent

func NewDeletePolicyNoContent() *DeletePolicyNoContent

NewDeletePolicyNoContent creates a DeletePolicyNoContent with default headers values

func (*DeletePolicyNoContent) Error

func (o *DeletePolicyNoContent) Error() string

func (*DeletePolicyNoContent) IsClientError

func (o *DeletePolicyNoContent) IsClientError() bool

IsClientError returns true when this delete policy no content response has a 4xx status code

func (*DeletePolicyNoContent) IsCode

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

IsCode returns true when this delete policy no content response a status code equal to that given

func (*DeletePolicyNoContent) IsRedirect

func (o *DeletePolicyNoContent) IsRedirect() bool

IsRedirect returns true when this delete policy no content response has a 3xx status code

func (*DeletePolicyNoContent) IsServerError

func (o *DeletePolicyNoContent) IsServerError() bool

IsServerError returns true when this delete policy no content response has a 5xx status code

func (*DeletePolicyNoContent) IsSuccess

func (o *DeletePolicyNoContent) IsSuccess() bool

IsSuccess returns true when this delete policy no content response has a 2xx status code

func (*DeletePolicyNoContent) String

func (o *DeletePolicyNoContent) String() string

type DeletePolicyNotFound

type DeletePolicyNotFound struct {
	Payload *models.HTTPError
}
DeletePolicyNotFound describes a response with status code 404, with default header values.

not found

func NewDeletePolicyNotFound

func NewDeletePolicyNotFound() *DeletePolicyNotFound

NewDeletePolicyNotFound creates a DeletePolicyNotFound with default headers values

func (*DeletePolicyNotFound) Error

func (o *DeletePolicyNotFound) Error() string

func (*DeletePolicyNotFound) GetPayload

func (o *DeletePolicyNotFound) GetPayload() *models.HTTPError

func (*DeletePolicyNotFound) IsClientError

func (o *DeletePolicyNotFound) IsClientError() bool

IsClientError returns true when this delete policy not found response has a 4xx status code

func (*DeletePolicyNotFound) IsCode

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

IsCode returns true when this delete policy not found response a status code equal to that given

func (*DeletePolicyNotFound) IsRedirect

func (o *DeletePolicyNotFound) IsRedirect() bool

IsRedirect returns true when this delete policy not found response has a 3xx status code

func (*DeletePolicyNotFound) IsServerError

func (o *DeletePolicyNotFound) IsServerError() bool

IsServerError returns true when this delete policy not found response has a 5xx status code

func (*DeletePolicyNotFound) IsSuccess

func (o *DeletePolicyNotFound) IsSuccess() bool

IsSuccess returns true when this delete policy not found response has a 2xx status code

func (*DeletePolicyNotFound) String

func (o *DeletePolicyNotFound) String() string

type DeletePolicyOK

type DeletePolicyOK struct {
	Payload *models.MessageResponse
}
DeletePolicyOK describes a response with status code 200, with default header values.

no error

func NewDeletePolicyOK

func NewDeletePolicyOK() *DeletePolicyOK

NewDeletePolicyOK creates a DeletePolicyOK with default headers values

func (*DeletePolicyOK) Error

func (o *DeletePolicyOK) Error() string

func (*DeletePolicyOK) GetPayload

func (o *DeletePolicyOK) GetPayload() *models.MessageResponse

func (*DeletePolicyOK) IsClientError

func (o *DeletePolicyOK) IsClientError() bool

IsClientError returns true when this delete policy o k response has a 4xx status code

func (*DeletePolicyOK) IsCode

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

IsCode returns true when this delete policy o k response a status code equal to that given

func (*DeletePolicyOK) IsRedirect

func (o *DeletePolicyOK) IsRedirect() bool

IsRedirect returns true when this delete policy o k response has a 3xx status code

func (*DeletePolicyOK) IsServerError

func (o *DeletePolicyOK) IsServerError() bool

IsServerError returns true when this delete policy o k response has a 5xx status code

func (*DeletePolicyOK) IsSuccess

func (o *DeletePolicyOK) IsSuccess() bool

IsSuccess returns true when this delete policy o k response has a 2xx status code

func (*DeletePolicyOK) String

func (o *DeletePolicyOK) String() string

type DeletePolicyParams

type DeletePolicyParams struct {

	/* Force.

	   Delete immediately
	*/
	Force *bool

	/* Path.

	   Full path to lookup policy
	*/
	Path string

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

DeletePolicyParams contains all the parameters to send to the API endpoint

for the delete policy operation.

Typically these are written to a http.Request.

func NewDeletePolicyParams

func NewDeletePolicyParams() *DeletePolicyParams

NewDeletePolicyParams creates a new DeletePolicyParams 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 NewDeletePolicyParamsWithContext

func NewDeletePolicyParamsWithContext(ctx context.Context) *DeletePolicyParams

NewDeletePolicyParamsWithContext creates a new DeletePolicyParams object with the ability to set a context for a request.

func NewDeletePolicyParamsWithHTTPClient

func NewDeletePolicyParamsWithHTTPClient(client *http.Client) *DeletePolicyParams

NewDeletePolicyParamsWithHTTPClient creates a new DeletePolicyParams object with the ability to set a custom HTTPClient for a request.

func NewDeletePolicyParamsWithTimeout

func NewDeletePolicyParamsWithTimeout(timeout time.Duration) *DeletePolicyParams

NewDeletePolicyParamsWithTimeout creates a new DeletePolicyParams object with the ability to set a timeout on a request.

func (*DeletePolicyParams) SetContext

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

SetContext adds the context to the delete policy params

func (*DeletePolicyParams) SetDefaults

func (o *DeletePolicyParams) SetDefaults()

SetDefaults hydrates default values in the delete policy params (not the query body).

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

func (*DeletePolicyParams) SetForce

func (o *DeletePolicyParams) SetForce(force *bool)

SetForce adds the force to the delete policy params

func (*DeletePolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete policy params

func (*DeletePolicyParams) SetPath

func (o *DeletePolicyParams) SetPath(path string)

SetPath adds the path to the delete policy params

func (*DeletePolicyParams) SetTimeout

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

SetTimeout adds the timeout to the delete policy params

func (*DeletePolicyParams) WithContext

WithContext adds the context to the delete policy params

func (*DeletePolicyParams) WithDefaults

func (o *DeletePolicyParams) WithDefaults() *DeletePolicyParams

WithDefaults hydrates default values in the delete policy params (not the query body).

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

func (*DeletePolicyParams) WithForce

func (o *DeletePolicyParams) WithForce(force *bool) *DeletePolicyParams

WithForce adds the force to the delete policy params

func (*DeletePolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete policy params

func (*DeletePolicyParams) WithPath

func (o *DeletePolicyParams) WithPath(path string) *DeletePolicyParams

WithPath adds the path to the delete policy params

func (*DeletePolicyParams) WithTimeout

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

WithTimeout adds the timeout to the delete policy params

func (*DeletePolicyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeletePolicyReader

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

DeletePolicyReader is a Reader for the DeletePolicy structure.

func (*DeletePolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePolicyUnauthorized

type DeletePolicyUnauthorized struct {
	Payload *models.HTTPError
}
DeletePolicyUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewDeletePolicyUnauthorized

func NewDeletePolicyUnauthorized() *DeletePolicyUnauthorized

NewDeletePolicyUnauthorized creates a DeletePolicyUnauthorized with default headers values

func (*DeletePolicyUnauthorized) Error

func (o *DeletePolicyUnauthorized) Error() string

func (*DeletePolicyUnauthorized) GetPayload

func (o *DeletePolicyUnauthorized) GetPayload() *models.HTTPError

func (*DeletePolicyUnauthorized) IsClientError

func (o *DeletePolicyUnauthorized) IsClientError() bool

IsClientError returns true when this delete policy unauthorized response has a 4xx status code

func (*DeletePolicyUnauthorized) IsCode

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

IsCode returns true when this delete policy unauthorized response a status code equal to that given

func (*DeletePolicyUnauthorized) IsRedirect

func (o *DeletePolicyUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete policy unauthorized response has a 3xx status code

func (*DeletePolicyUnauthorized) IsServerError

func (o *DeletePolicyUnauthorized) IsServerError() bool

IsServerError returns true when this delete policy unauthorized response has a 5xx status code

func (*DeletePolicyUnauthorized) IsSuccess

func (o *DeletePolicyUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete policy unauthorized response has a 2xx status code

func (*DeletePolicyUnauthorized) String

func (o *DeletePolicyUnauthorized) String() string

type GetPolicyBadRequest

type GetPolicyBadRequest struct {
	Payload *models.HTTPError
}
GetPolicyBadRequest describes a response with status code 400, with default header values.

bad request

func NewGetPolicyBadRequest

func NewGetPolicyBadRequest() *GetPolicyBadRequest

NewGetPolicyBadRequest creates a GetPolicyBadRequest with default headers values

func (*GetPolicyBadRequest) Error

func (o *GetPolicyBadRequest) Error() string

func (*GetPolicyBadRequest) GetPayload

func (o *GetPolicyBadRequest) GetPayload() *models.HTTPError

func (*GetPolicyBadRequest) IsClientError

func (o *GetPolicyBadRequest) IsClientError() bool

IsClientError returns true when this get policy bad request response has a 4xx status code

func (*GetPolicyBadRequest) IsCode

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

IsCode returns true when this get policy bad request response a status code equal to that given

func (*GetPolicyBadRequest) IsRedirect

func (o *GetPolicyBadRequest) IsRedirect() bool

IsRedirect returns true when this get policy bad request response has a 3xx status code

func (*GetPolicyBadRequest) IsServerError

func (o *GetPolicyBadRequest) IsServerError() bool

IsServerError returns true when this get policy bad request response has a 5xx status code

func (*GetPolicyBadRequest) IsSuccess

func (o *GetPolicyBadRequest) IsSuccess() bool

IsSuccess returns true when this get policy bad request response has a 2xx status code

func (*GetPolicyBadRequest) String

func (o *GetPolicyBadRequest) String() string

type GetPolicyByVersionBadRequest

type GetPolicyByVersionBadRequest struct {
	Payload *models.HTTPError
}
GetPolicyByVersionBadRequest describes a response with status code 400, with default header values.

bad request

func NewGetPolicyByVersionBadRequest

func NewGetPolicyByVersionBadRequest() *GetPolicyByVersionBadRequest

NewGetPolicyByVersionBadRequest creates a GetPolicyByVersionBadRequest with default headers values

func (*GetPolicyByVersionBadRequest) Error

func (*GetPolicyByVersionBadRequest) GetPayload

func (*GetPolicyByVersionBadRequest) IsClientError

func (o *GetPolicyByVersionBadRequest) IsClientError() bool

IsClientError returns true when this get policy by version bad request response has a 4xx status code

func (*GetPolicyByVersionBadRequest) IsCode

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

IsCode returns true when this get policy by version bad request response a status code equal to that given

func (*GetPolicyByVersionBadRequest) IsRedirect

func (o *GetPolicyByVersionBadRequest) IsRedirect() bool

IsRedirect returns true when this get policy by version bad request response has a 3xx status code

func (*GetPolicyByVersionBadRequest) IsServerError

func (o *GetPolicyByVersionBadRequest) IsServerError() bool

IsServerError returns true when this get policy by version bad request response has a 5xx status code

func (*GetPolicyByVersionBadRequest) IsSuccess

func (o *GetPolicyByVersionBadRequest) IsSuccess() bool

IsSuccess returns true when this get policy by version bad request response has a 2xx status code

func (*GetPolicyByVersionBadRequest) String

type GetPolicyByVersionForbidden

type GetPolicyByVersionForbidden struct {
	Payload *models.HTTPError
}
GetPolicyByVersionForbidden describes a response with status code 403, with default header values.

forbidden

func NewGetPolicyByVersionForbidden

func NewGetPolicyByVersionForbidden() *GetPolicyByVersionForbidden

NewGetPolicyByVersionForbidden creates a GetPolicyByVersionForbidden with default headers values

func (*GetPolicyByVersionForbidden) Error

func (*GetPolicyByVersionForbidden) GetPayload

func (o *GetPolicyByVersionForbidden) GetPayload() *models.HTTPError

func (*GetPolicyByVersionForbidden) IsClientError

func (o *GetPolicyByVersionForbidden) IsClientError() bool

IsClientError returns true when this get policy by version forbidden response has a 4xx status code

func (*GetPolicyByVersionForbidden) IsCode

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

IsCode returns true when this get policy by version forbidden response a status code equal to that given

func (*GetPolicyByVersionForbidden) IsRedirect

func (o *GetPolicyByVersionForbidden) IsRedirect() bool

IsRedirect returns true when this get policy by version forbidden response has a 3xx status code

func (*GetPolicyByVersionForbidden) IsServerError

func (o *GetPolicyByVersionForbidden) IsServerError() bool

IsServerError returns true when this get policy by version forbidden response has a 5xx status code

func (*GetPolicyByVersionForbidden) IsSuccess

func (o *GetPolicyByVersionForbidden) IsSuccess() bool

IsSuccess returns true when this get policy by version forbidden response has a 2xx status code

func (*GetPolicyByVersionForbidden) String

func (o *GetPolicyByVersionForbidden) String() string

type GetPolicyByVersionInternalServerError

type GetPolicyByVersionInternalServerError struct {
	Payload *models.HTTPError
}
GetPolicyByVersionInternalServerError describes a response with status code 500, with default header values.

server error

func NewGetPolicyByVersionInternalServerError

func NewGetPolicyByVersionInternalServerError() *GetPolicyByVersionInternalServerError

NewGetPolicyByVersionInternalServerError creates a GetPolicyByVersionInternalServerError with default headers values

func (*GetPolicyByVersionInternalServerError) Error

func (*GetPolicyByVersionInternalServerError) GetPayload

func (*GetPolicyByVersionInternalServerError) IsClientError

func (o *GetPolicyByVersionInternalServerError) IsClientError() bool

IsClientError returns true when this get policy by version internal server error response has a 4xx status code

func (*GetPolicyByVersionInternalServerError) IsCode

IsCode returns true when this get policy by version internal server error response a status code equal to that given

func (*GetPolicyByVersionInternalServerError) IsRedirect

IsRedirect returns true when this get policy by version internal server error response has a 3xx status code

func (*GetPolicyByVersionInternalServerError) IsServerError

func (o *GetPolicyByVersionInternalServerError) IsServerError() bool

IsServerError returns true when this get policy by version internal server error response has a 5xx status code

func (*GetPolicyByVersionInternalServerError) IsSuccess

IsSuccess returns true when this get policy by version internal server error response has a 2xx status code

func (*GetPolicyByVersionInternalServerError) String

type GetPolicyByVersionNotFound

type GetPolicyByVersionNotFound struct {
	Payload *models.HTTPError
}
GetPolicyByVersionNotFound describes a response with status code 404, with default header values.

not found

func NewGetPolicyByVersionNotFound

func NewGetPolicyByVersionNotFound() *GetPolicyByVersionNotFound

NewGetPolicyByVersionNotFound creates a GetPolicyByVersionNotFound with default headers values

func (*GetPolicyByVersionNotFound) Error

func (*GetPolicyByVersionNotFound) GetPayload

func (o *GetPolicyByVersionNotFound) GetPayload() *models.HTTPError

func (*GetPolicyByVersionNotFound) IsClientError

func (o *GetPolicyByVersionNotFound) IsClientError() bool

IsClientError returns true when this get policy by version not found response has a 4xx status code

func (*GetPolicyByVersionNotFound) IsCode

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

IsCode returns true when this get policy by version not found response a status code equal to that given

func (*GetPolicyByVersionNotFound) IsRedirect

func (o *GetPolicyByVersionNotFound) IsRedirect() bool

IsRedirect returns true when this get policy by version not found response has a 3xx status code

func (*GetPolicyByVersionNotFound) IsServerError

func (o *GetPolicyByVersionNotFound) IsServerError() bool

IsServerError returns true when this get policy by version not found response has a 5xx status code

func (*GetPolicyByVersionNotFound) IsSuccess

func (o *GetPolicyByVersionNotFound) IsSuccess() bool

IsSuccess returns true when this get policy by version not found response has a 2xx status code

func (*GetPolicyByVersionNotFound) String

func (o *GetPolicyByVersionNotFound) String() string

type GetPolicyByVersionOK

type GetPolicyByVersionOK struct {
	Payload *models.PolicyVersionResponse
}
GetPolicyByVersionOK describes a response with status code 200, with default header values.

no error

func NewGetPolicyByVersionOK

func NewGetPolicyByVersionOK() *GetPolicyByVersionOK

NewGetPolicyByVersionOK creates a GetPolicyByVersionOK with default headers values

func (*GetPolicyByVersionOK) Error

func (o *GetPolicyByVersionOK) Error() string

func (*GetPolicyByVersionOK) GetPayload

func (*GetPolicyByVersionOK) IsClientError

func (o *GetPolicyByVersionOK) IsClientError() bool

IsClientError returns true when this get policy by version o k response has a 4xx status code

func (*GetPolicyByVersionOK) IsCode

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

IsCode returns true when this get policy by version o k response a status code equal to that given

func (*GetPolicyByVersionOK) IsRedirect

func (o *GetPolicyByVersionOK) IsRedirect() bool

IsRedirect returns true when this get policy by version o k response has a 3xx status code

func (*GetPolicyByVersionOK) IsServerError

func (o *GetPolicyByVersionOK) IsServerError() bool

IsServerError returns true when this get policy by version o k response has a 5xx status code

func (*GetPolicyByVersionOK) IsSuccess

func (o *GetPolicyByVersionOK) IsSuccess() bool

IsSuccess returns true when this get policy by version o k response has a 2xx status code

func (*GetPolicyByVersionOK) String

func (o *GetPolicyByVersionOK) String() string

type GetPolicyByVersionParams

type GetPolicyByVersionParams struct {

	/* Path.

	   Full path to lookup policy
	*/
	Path string

	/* Version.

	   Versions to return

	   Format: int64
	*/
	Version int64

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

GetPolicyByVersionParams contains all the parameters to send to the API endpoint

for the get policy by version operation.

Typically these are written to a http.Request.

func NewGetPolicyByVersionParams

func NewGetPolicyByVersionParams() *GetPolicyByVersionParams

NewGetPolicyByVersionParams creates a new GetPolicyByVersionParams 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 NewGetPolicyByVersionParamsWithContext

func NewGetPolicyByVersionParamsWithContext(ctx context.Context) *GetPolicyByVersionParams

NewGetPolicyByVersionParamsWithContext creates a new GetPolicyByVersionParams object with the ability to set a context for a request.

func NewGetPolicyByVersionParamsWithHTTPClient

func NewGetPolicyByVersionParamsWithHTTPClient(client *http.Client) *GetPolicyByVersionParams

NewGetPolicyByVersionParamsWithHTTPClient creates a new GetPolicyByVersionParams object with the ability to set a custom HTTPClient for a request.

func NewGetPolicyByVersionParamsWithTimeout

func NewGetPolicyByVersionParamsWithTimeout(timeout time.Duration) *GetPolicyByVersionParams

NewGetPolicyByVersionParamsWithTimeout creates a new GetPolicyByVersionParams object with the ability to set a timeout on a request.

func (*GetPolicyByVersionParams) SetContext

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

SetContext adds the context to the get policy by version params

func (*GetPolicyByVersionParams) SetDefaults

func (o *GetPolicyByVersionParams) SetDefaults()

SetDefaults hydrates default values in the get policy by version params (not the query body).

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

func (*GetPolicyByVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get policy by version params

func (*GetPolicyByVersionParams) SetPath

func (o *GetPolicyByVersionParams) SetPath(path string)

SetPath adds the path to the get policy by version params

func (*GetPolicyByVersionParams) SetTimeout

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

SetTimeout adds the timeout to the get policy by version params

func (*GetPolicyByVersionParams) SetVersion

func (o *GetPolicyByVersionParams) SetVersion(version int64)

SetVersion adds the version to the get policy by version params

func (*GetPolicyByVersionParams) WithContext

WithContext adds the context to the get policy by version params

func (*GetPolicyByVersionParams) WithDefaults

WithDefaults hydrates default values in the get policy by version params (not the query body).

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

func (*GetPolicyByVersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get policy by version params

func (*GetPolicyByVersionParams) WithPath

WithPath adds the path to the get policy by version params

func (*GetPolicyByVersionParams) WithTimeout

WithTimeout adds the timeout to the get policy by version params

func (*GetPolicyByVersionParams) WithVersion

func (o *GetPolicyByVersionParams) WithVersion(version int64) *GetPolicyByVersionParams

WithVersion adds the version to the get policy by version params

func (*GetPolicyByVersionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPolicyByVersionReader

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

GetPolicyByVersionReader is a Reader for the GetPolicyByVersion structure.

func (*GetPolicyByVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPolicyByVersionUnauthorized

type GetPolicyByVersionUnauthorized struct {
	Payload *models.HTTPError
}
GetPolicyByVersionUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewGetPolicyByVersionUnauthorized

func NewGetPolicyByVersionUnauthorized() *GetPolicyByVersionUnauthorized

NewGetPolicyByVersionUnauthorized creates a GetPolicyByVersionUnauthorized with default headers values

func (*GetPolicyByVersionUnauthorized) Error

func (*GetPolicyByVersionUnauthorized) GetPayload

func (*GetPolicyByVersionUnauthorized) IsClientError

func (o *GetPolicyByVersionUnauthorized) IsClientError() bool

IsClientError returns true when this get policy by version unauthorized response has a 4xx status code

func (*GetPolicyByVersionUnauthorized) IsCode

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

IsCode returns true when this get policy by version unauthorized response a status code equal to that given

func (*GetPolicyByVersionUnauthorized) IsRedirect

func (o *GetPolicyByVersionUnauthorized) IsRedirect() bool

IsRedirect returns true when this get policy by version unauthorized response has a 3xx status code

func (*GetPolicyByVersionUnauthorized) IsServerError

func (o *GetPolicyByVersionUnauthorized) IsServerError() bool

IsServerError returns true when this get policy by version unauthorized response has a 5xx status code

func (*GetPolicyByVersionUnauthorized) IsSuccess

func (o *GetPolicyByVersionUnauthorized) IsSuccess() bool

IsSuccess returns true when this get policy by version unauthorized response has a 2xx status code

func (*GetPolicyByVersionUnauthorized) String

type GetPolicyForbidden

type GetPolicyForbidden struct {
	Payload *models.HTTPError
}
GetPolicyForbidden describes a response with status code 403, with default header values.

forbidden

func NewGetPolicyForbidden

func NewGetPolicyForbidden() *GetPolicyForbidden

NewGetPolicyForbidden creates a GetPolicyForbidden with default headers values

func (*GetPolicyForbidden) Error

func (o *GetPolicyForbidden) Error() string

func (*GetPolicyForbidden) GetPayload

func (o *GetPolicyForbidden) GetPayload() *models.HTTPError

func (*GetPolicyForbidden) IsClientError

func (o *GetPolicyForbidden) IsClientError() bool

IsClientError returns true when this get policy forbidden response has a 4xx status code

func (*GetPolicyForbidden) IsCode

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

IsCode returns true when this get policy forbidden response a status code equal to that given

func (*GetPolicyForbidden) IsRedirect

func (o *GetPolicyForbidden) IsRedirect() bool

IsRedirect returns true when this get policy forbidden response has a 3xx status code

func (*GetPolicyForbidden) IsServerError

func (o *GetPolicyForbidden) IsServerError() bool

IsServerError returns true when this get policy forbidden response has a 5xx status code

func (*GetPolicyForbidden) IsSuccess

func (o *GetPolicyForbidden) IsSuccess() bool

IsSuccess returns true when this get policy forbidden response has a 2xx status code

func (*GetPolicyForbidden) String

func (o *GetPolicyForbidden) String() string

type GetPolicyInternalServerError

type GetPolicyInternalServerError struct {
	Payload *models.HTTPError
}
GetPolicyInternalServerError describes a response with status code 500, with default header values.

server error

func NewGetPolicyInternalServerError

func NewGetPolicyInternalServerError() *GetPolicyInternalServerError

NewGetPolicyInternalServerError creates a GetPolicyInternalServerError with default headers values

func (*GetPolicyInternalServerError) Error

func (*GetPolicyInternalServerError) GetPayload

func (*GetPolicyInternalServerError) IsClientError

func (o *GetPolicyInternalServerError) IsClientError() bool

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

func (*GetPolicyInternalServerError) IsCode

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

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

func (*GetPolicyInternalServerError) IsRedirect

func (o *GetPolicyInternalServerError) IsRedirect() bool

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

func (*GetPolicyInternalServerError) IsServerError

func (o *GetPolicyInternalServerError) IsServerError() bool

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

func (*GetPolicyInternalServerError) IsSuccess

func (o *GetPolicyInternalServerError) IsSuccess() bool

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

func (*GetPolicyInternalServerError) String

type GetPolicyNotFound

type GetPolicyNotFound struct {
	Payload *models.HTTPError
}
GetPolicyNotFound describes a response with status code 404, with default header values.

not found

func NewGetPolicyNotFound

func NewGetPolicyNotFound() *GetPolicyNotFound

NewGetPolicyNotFound creates a GetPolicyNotFound with default headers values

func (*GetPolicyNotFound) Error

func (o *GetPolicyNotFound) Error() string

func (*GetPolicyNotFound) GetPayload

func (o *GetPolicyNotFound) GetPayload() *models.HTTPError

func (*GetPolicyNotFound) IsClientError

func (o *GetPolicyNotFound) IsClientError() bool

IsClientError returns true when this get policy not found response has a 4xx status code

func (*GetPolicyNotFound) IsCode

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

IsCode returns true when this get policy not found response a status code equal to that given

func (*GetPolicyNotFound) IsRedirect

func (o *GetPolicyNotFound) IsRedirect() bool

IsRedirect returns true when this get policy not found response has a 3xx status code

func (*GetPolicyNotFound) IsServerError

func (o *GetPolicyNotFound) IsServerError() bool

IsServerError returns true when this get policy not found response has a 5xx status code

func (*GetPolicyNotFound) IsSuccess

func (o *GetPolicyNotFound) IsSuccess() bool

IsSuccess returns true when this get policy not found response has a 2xx status code

func (*GetPolicyNotFound) String

func (o *GetPolicyNotFound) String() string

type GetPolicyOK

type GetPolicyOK struct {
	Payload *models.Policy
}
GetPolicyOK describes a response with status code 200, with default header values.

no error

func NewGetPolicyOK

func NewGetPolicyOK() *GetPolicyOK

NewGetPolicyOK creates a GetPolicyOK with default headers values

func (*GetPolicyOK) Error

func (o *GetPolicyOK) Error() string

func (*GetPolicyOK) GetPayload

func (o *GetPolicyOK) GetPayload() *models.Policy

func (*GetPolicyOK) IsClientError

func (o *GetPolicyOK) IsClientError() bool

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

func (*GetPolicyOK) IsCode

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

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

func (*GetPolicyOK) IsRedirect

func (o *GetPolicyOK) IsRedirect() bool

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

func (*GetPolicyOK) IsServerError

func (o *GetPolicyOK) IsServerError() bool

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

func (*GetPolicyOK) IsSuccess

func (o *GetPolicyOK) IsSuccess() bool

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

func (*GetPolicyOK) String

func (o *GetPolicyOK) String() string

type GetPolicyParams

type GetPolicyParams struct {

	/* Path.

	   Full path to lookup policy
	*/
	Path string

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

GetPolicyParams contains all the parameters to send to the API endpoint

for the get policy operation.

Typically these are written to a http.Request.

func NewGetPolicyParams

func NewGetPolicyParams() *GetPolicyParams

NewGetPolicyParams creates a new GetPolicyParams 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 NewGetPolicyParamsWithContext

func NewGetPolicyParamsWithContext(ctx context.Context) *GetPolicyParams

NewGetPolicyParamsWithContext creates a new GetPolicyParams object with the ability to set a context for a request.

func NewGetPolicyParamsWithHTTPClient

func NewGetPolicyParamsWithHTTPClient(client *http.Client) *GetPolicyParams

NewGetPolicyParamsWithHTTPClient creates a new GetPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewGetPolicyParamsWithTimeout

func NewGetPolicyParamsWithTimeout(timeout time.Duration) *GetPolicyParams

NewGetPolicyParamsWithTimeout creates a new GetPolicyParams object with the ability to set a timeout on a request.

func (*GetPolicyParams) SetContext

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

SetContext adds the context to the get policy params

func (*GetPolicyParams) SetDefaults

func (o *GetPolicyParams) SetDefaults()

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

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

func (*GetPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get policy params

func (*GetPolicyParams) SetPath

func (o *GetPolicyParams) SetPath(path string)

SetPath adds the path to the get policy params

func (*GetPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the get policy params

func (*GetPolicyParams) WithContext

func (o *GetPolicyParams) WithContext(ctx context.Context) *GetPolicyParams

WithContext adds the context to the get policy params

func (*GetPolicyParams) WithDefaults

func (o *GetPolicyParams) WithDefaults() *GetPolicyParams

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

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

func (*GetPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get policy params

func (*GetPolicyParams) WithPath

func (o *GetPolicyParams) WithPath(path string) *GetPolicyParams

WithPath adds the path to the get policy params

func (*GetPolicyParams) WithTimeout

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

WithTimeout adds the timeout to the get policy params

func (*GetPolicyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPolicyReader

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

GetPolicyReader is a Reader for the GetPolicy structure.

func (*GetPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPolicyUnauthorized

type GetPolicyUnauthorized struct {
	Payload *models.HTTPError
}
GetPolicyUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewGetPolicyUnauthorized

func NewGetPolicyUnauthorized() *GetPolicyUnauthorized

NewGetPolicyUnauthorized creates a GetPolicyUnauthorized with default headers values

func (*GetPolicyUnauthorized) Error

func (o *GetPolicyUnauthorized) Error() string

func (*GetPolicyUnauthorized) GetPayload

func (o *GetPolicyUnauthorized) GetPayload() *models.HTTPError

func (*GetPolicyUnauthorized) IsClientError

func (o *GetPolicyUnauthorized) IsClientError() bool

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

func (*GetPolicyUnauthorized) IsCode

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

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

func (*GetPolicyUnauthorized) IsRedirect

func (o *GetPolicyUnauthorized) IsRedirect() bool

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

func (*GetPolicyUnauthorized) IsServerError

func (o *GetPolicyUnauthorized) IsServerError() bool

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

func (*GetPolicyUnauthorized) IsSuccess

func (o *GetPolicyUnauthorized) IsSuccess() bool

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

func (*GetPolicyUnauthorized) String

func (o *GetPolicyUnauthorized) String() string

type RestorePolicyBadRequest

type RestorePolicyBadRequest struct {
	Payload *models.HTTPError
}
RestorePolicyBadRequest describes a response with status code 400, with default header values.

bad request

func NewRestorePolicyBadRequest

func NewRestorePolicyBadRequest() *RestorePolicyBadRequest

NewRestorePolicyBadRequest creates a RestorePolicyBadRequest with default headers values

func (*RestorePolicyBadRequest) Error

func (o *RestorePolicyBadRequest) Error() string

func (*RestorePolicyBadRequest) GetPayload

func (o *RestorePolicyBadRequest) GetPayload() *models.HTTPError

func (*RestorePolicyBadRequest) IsClientError

func (o *RestorePolicyBadRequest) IsClientError() bool

IsClientError returns true when this restore policy bad request response has a 4xx status code

func (*RestorePolicyBadRequest) IsCode

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

IsCode returns true when this restore policy bad request response a status code equal to that given

func (*RestorePolicyBadRequest) IsRedirect

func (o *RestorePolicyBadRequest) IsRedirect() bool

IsRedirect returns true when this restore policy bad request response has a 3xx status code

func (*RestorePolicyBadRequest) IsServerError

func (o *RestorePolicyBadRequest) IsServerError() bool

IsServerError returns true when this restore policy bad request response has a 5xx status code

func (*RestorePolicyBadRequest) IsSuccess

func (o *RestorePolicyBadRequest) IsSuccess() bool

IsSuccess returns true when this restore policy bad request response has a 2xx status code

func (*RestorePolicyBadRequest) String

func (o *RestorePolicyBadRequest) String() string

type RestorePolicyForbidden

type RestorePolicyForbidden struct {
	Payload *models.HTTPError
}
RestorePolicyForbidden describes a response with status code 403, with default header values.

forbidden

func NewRestorePolicyForbidden

func NewRestorePolicyForbidden() *RestorePolicyForbidden

NewRestorePolicyForbidden creates a RestorePolicyForbidden with default headers values

func (*RestorePolicyForbidden) Error

func (o *RestorePolicyForbidden) Error() string

func (*RestorePolicyForbidden) GetPayload

func (o *RestorePolicyForbidden) GetPayload() *models.HTTPError

func (*RestorePolicyForbidden) IsClientError

func (o *RestorePolicyForbidden) IsClientError() bool

IsClientError returns true when this restore policy forbidden response has a 4xx status code

func (*RestorePolicyForbidden) IsCode

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

IsCode returns true when this restore policy forbidden response a status code equal to that given

func (*RestorePolicyForbidden) IsRedirect

func (o *RestorePolicyForbidden) IsRedirect() bool

IsRedirect returns true when this restore policy forbidden response has a 3xx status code

func (*RestorePolicyForbidden) IsServerError

func (o *RestorePolicyForbidden) IsServerError() bool

IsServerError returns true when this restore policy forbidden response has a 5xx status code

func (*RestorePolicyForbidden) IsSuccess

func (o *RestorePolicyForbidden) IsSuccess() bool

IsSuccess returns true when this restore policy forbidden response has a 2xx status code

func (*RestorePolicyForbidden) String

func (o *RestorePolicyForbidden) String() string

type RestorePolicyInternalServerError

type RestorePolicyInternalServerError struct {
	Payload *models.HTTPError
}
RestorePolicyInternalServerError describes a response with status code 500, with default header values.

server error

func NewRestorePolicyInternalServerError

func NewRestorePolicyInternalServerError() *RestorePolicyInternalServerError

NewRestorePolicyInternalServerError creates a RestorePolicyInternalServerError with default headers values

func (*RestorePolicyInternalServerError) Error

func (*RestorePolicyInternalServerError) GetPayload

func (*RestorePolicyInternalServerError) IsClientError

func (o *RestorePolicyInternalServerError) IsClientError() bool

IsClientError returns true when this restore policy internal server error response has a 4xx status code

func (*RestorePolicyInternalServerError) IsCode

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

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

func (*RestorePolicyInternalServerError) IsRedirect

func (o *RestorePolicyInternalServerError) IsRedirect() bool

IsRedirect returns true when this restore policy internal server error response has a 3xx status code

func (*RestorePolicyInternalServerError) IsServerError

func (o *RestorePolicyInternalServerError) IsServerError() bool

IsServerError returns true when this restore policy internal server error response has a 5xx status code

func (*RestorePolicyInternalServerError) IsSuccess

func (o *RestorePolicyInternalServerError) IsSuccess() bool

IsSuccess returns true when this restore policy internal server error response has a 2xx status code

func (*RestorePolicyInternalServerError) String

type RestorePolicyNoContent

type RestorePolicyNoContent struct {
}
RestorePolicyNoContent describes a response with status code 204, with default header values.

no error

func NewRestorePolicyNoContent

func NewRestorePolicyNoContent() *RestorePolicyNoContent

NewRestorePolicyNoContent creates a RestorePolicyNoContent with default headers values

func (*RestorePolicyNoContent) Error

func (o *RestorePolicyNoContent) Error() string

func (*RestorePolicyNoContent) IsClientError

func (o *RestorePolicyNoContent) IsClientError() bool

IsClientError returns true when this restore policy no content response has a 4xx status code

func (*RestorePolicyNoContent) IsCode

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

IsCode returns true when this restore policy no content response a status code equal to that given

func (*RestorePolicyNoContent) IsRedirect

func (o *RestorePolicyNoContent) IsRedirect() bool

IsRedirect returns true when this restore policy no content response has a 3xx status code

func (*RestorePolicyNoContent) IsServerError

func (o *RestorePolicyNoContent) IsServerError() bool

IsServerError returns true when this restore policy no content response has a 5xx status code

func (*RestorePolicyNoContent) IsSuccess

func (o *RestorePolicyNoContent) IsSuccess() bool

IsSuccess returns true when this restore policy no content response has a 2xx status code

func (*RestorePolicyNoContent) String

func (o *RestorePolicyNoContent) String() string

type RestorePolicyNotFound

type RestorePolicyNotFound struct {
	Payload *models.HTTPError
}
RestorePolicyNotFound describes a response with status code 404, with default header values.

not found

func NewRestorePolicyNotFound

func NewRestorePolicyNotFound() *RestorePolicyNotFound

NewRestorePolicyNotFound creates a RestorePolicyNotFound with default headers values

func (*RestorePolicyNotFound) Error

func (o *RestorePolicyNotFound) Error() string

func (*RestorePolicyNotFound) GetPayload

func (o *RestorePolicyNotFound) GetPayload() *models.HTTPError

func (*RestorePolicyNotFound) IsClientError

func (o *RestorePolicyNotFound) IsClientError() bool

IsClientError returns true when this restore policy not found response has a 4xx status code

func (*RestorePolicyNotFound) IsCode

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

IsCode returns true when this restore policy not found response a status code equal to that given

func (*RestorePolicyNotFound) IsRedirect

func (o *RestorePolicyNotFound) IsRedirect() bool

IsRedirect returns true when this restore policy not found response has a 3xx status code

func (*RestorePolicyNotFound) IsServerError

func (o *RestorePolicyNotFound) IsServerError() bool

IsServerError returns true when this restore policy not found response has a 5xx status code

func (*RestorePolicyNotFound) IsSuccess

func (o *RestorePolicyNotFound) IsSuccess() bool

IsSuccess returns true when this restore policy not found response has a 2xx status code

func (*RestorePolicyNotFound) String

func (o *RestorePolicyNotFound) String() string

type RestorePolicyParams

type RestorePolicyParams struct {

	/* Path.

	   Full path to lookup policy
	*/
	Path string

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

RestorePolicyParams contains all the parameters to send to the API endpoint

for the restore policy operation.

Typically these are written to a http.Request.

func NewRestorePolicyParams

func NewRestorePolicyParams() *RestorePolicyParams

NewRestorePolicyParams creates a new RestorePolicyParams 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 NewRestorePolicyParamsWithContext

func NewRestorePolicyParamsWithContext(ctx context.Context) *RestorePolicyParams

NewRestorePolicyParamsWithContext creates a new RestorePolicyParams object with the ability to set a context for a request.

func NewRestorePolicyParamsWithHTTPClient

func NewRestorePolicyParamsWithHTTPClient(client *http.Client) *RestorePolicyParams

NewRestorePolicyParamsWithHTTPClient creates a new RestorePolicyParams object with the ability to set a custom HTTPClient for a request.

func NewRestorePolicyParamsWithTimeout

func NewRestorePolicyParamsWithTimeout(timeout time.Duration) *RestorePolicyParams

NewRestorePolicyParamsWithTimeout creates a new RestorePolicyParams object with the ability to set a timeout on a request.

func (*RestorePolicyParams) SetContext

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

SetContext adds the context to the restore policy params

func (*RestorePolicyParams) SetDefaults

func (o *RestorePolicyParams) SetDefaults()

SetDefaults hydrates default values in the restore policy params (not the query body).

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

func (*RestorePolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the restore policy params

func (*RestorePolicyParams) SetPath

func (o *RestorePolicyParams) SetPath(path string)

SetPath adds the path to the restore policy params

func (*RestorePolicyParams) SetTimeout

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

SetTimeout adds the timeout to the restore policy params

func (*RestorePolicyParams) WithContext

WithContext adds the context to the restore policy params

func (*RestorePolicyParams) WithDefaults

func (o *RestorePolicyParams) WithDefaults() *RestorePolicyParams

WithDefaults hydrates default values in the restore policy params (not the query body).

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

func (*RestorePolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the restore policy params

func (*RestorePolicyParams) WithPath

func (o *RestorePolicyParams) WithPath(path string) *RestorePolicyParams

WithPath adds the path to the restore policy params

func (*RestorePolicyParams) WithTimeout

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

WithTimeout adds the timeout to the restore policy params

func (*RestorePolicyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RestorePolicyReader

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

RestorePolicyReader is a Reader for the RestorePolicy structure.

func (*RestorePolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestorePolicyUnauthorized

type RestorePolicyUnauthorized struct {
	Payload *models.HTTPError
}
RestorePolicyUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewRestorePolicyUnauthorized

func NewRestorePolicyUnauthorized() *RestorePolicyUnauthorized

NewRestorePolicyUnauthorized creates a RestorePolicyUnauthorized with default headers values

func (*RestorePolicyUnauthorized) Error

func (o *RestorePolicyUnauthorized) Error() string

func (*RestorePolicyUnauthorized) GetPayload

func (o *RestorePolicyUnauthorized) GetPayload() *models.HTTPError

func (*RestorePolicyUnauthorized) IsClientError

func (o *RestorePolicyUnauthorized) IsClientError() bool

IsClientError returns true when this restore policy unauthorized response has a 4xx status code

func (*RestorePolicyUnauthorized) IsCode

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

IsCode returns true when this restore policy unauthorized response a status code equal to that given

func (*RestorePolicyUnauthorized) IsRedirect

func (o *RestorePolicyUnauthorized) IsRedirect() bool

IsRedirect returns true when this restore policy unauthorized response has a 3xx status code

func (*RestorePolicyUnauthorized) IsServerError

func (o *RestorePolicyUnauthorized) IsServerError() bool

IsServerError returns true when this restore policy unauthorized response has a 5xx status code

func (*RestorePolicyUnauthorized) IsSuccess

func (o *RestorePolicyUnauthorized) IsSuccess() bool

IsSuccess returns true when this restore policy unauthorized response has a 2xx status code

func (*RestorePolicyUnauthorized) String

func (o *RestorePolicyUnauthorized) String() string

type RollbackPolicyBadRequest

type RollbackPolicyBadRequest struct {
	Payload *models.HTTPError
}
RollbackPolicyBadRequest describes a response with status code 400, with default header values.

bad request

func NewRollbackPolicyBadRequest

func NewRollbackPolicyBadRequest() *RollbackPolicyBadRequest

NewRollbackPolicyBadRequest creates a RollbackPolicyBadRequest with default headers values

func (*RollbackPolicyBadRequest) Error

func (o *RollbackPolicyBadRequest) Error() string

func (*RollbackPolicyBadRequest) GetPayload

func (o *RollbackPolicyBadRequest) GetPayload() *models.HTTPError

func (*RollbackPolicyBadRequest) IsClientError

func (o *RollbackPolicyBadRequest) IsClientError() bool

IsClientError returns true when this rollback policy bad request response has a 4xx status code

func (*RollbackPolicyBadRequest) IsCode

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

IsCode returns true when this rollback policy bad request response a status code equal to that given

func (*RollbackPolicyBadRequest) IsRedirect

func (o *RollbackPolicyBadRequest) IsRedirect() bool

IsRedirect returns true when this rollback policy bad request response has a 3xx status code

func (*RollbackPolicyBadRequest) IsServerError

func (o *RollbackPolicyBadRequest) IsServerError() bool

IsServerError returns true when this rollback policy bad request response has a 5xx status code

func (*RollbackPolicyBadRequest) IsSuccess

func (o *RollbackPolicyBadRequest) IsSuccess() bool

IsSuccess returns true when this rollback policy bad request response has a 2xx status code

func (*RollbackPolicyBadRequest) String

func (o *RollbackPolicyBadRequest) String() string

type RollbackPolicyForbidden

type RollbackPolicyForbidden struct {
	Payload *models.HTTPError
}
RollbackPolicyForbidden describes a response with status code 403, with default header values.

forbidden

func NewRollbackPolicyForbidden

func NewRollbackPolicyForbidden() *RollbackPolicyForbidden

NewRollbackPolicyForbidden creates a RollbackPolicyForbidden with default headers values

func (*RollbackPolicyForbidden) Error

func (o *RollbackPolicyForbidden) Error() string

func (*RollbackPolicyForbidden) GetPayload

func (o *RollbackPolicyForbidden) GetPayload() *models.HTTPError

func (*RollbackPolicyForbidden) IsClientError

func (o *RollbackPolicyForbidden) IsClientError() bool

IsClientError returns true when this rollback policy forbidden response has a 4xx status code

func (*RollbackPolicyForbidden) IsCode

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

IsCode returns true when this rollback policy forbidden response a status code equal to that given

func (*RollbackPolicyForbidden) IsRedirect

func (o *RollbackPolicyForbidden) IsRedirect() bool

IsRedirect returns true when this rollback policy forbidden response has a 3xx status code

func (*RollbackPolicyForbidden) IsServerError

func (o *RollbackPolicyForbidden) IsServerError() bool

IsServerError returns true when this rollback policy forbidden response has a 5xx status code

func (*RollbackPolicyForbidden) IsSuccess

func (o *RollbackPolicyForbidden) IsSuccess() bool

IsSuccess returns true when this rollback policy forbidden response has a 2xx status code

func (*RollbackPolicyForbidden) String

func (o *RollbackPolicyForbidden) String() string

type RollbackPolicyInternalServerError

type RollbackPolicyInternalServerError struct {
	Payload *models.HTTPError
}
RollbackPolicyInternalServerError describes a response with status code 500, with default header values.

server error

func NewRollbackPolicyInternalServerError

func NewRollbackPolicyInternalServerError() *RollbackPolicyInternalServerError

NewRollbackPolicyInternalServerError creates a RollbackPolicyInternalServerError with default headers values

func (*RollbackPolicyInternalServerError) Error

func (*RollbackPolicyInternalServerError) GetPayload

func (*RollbackPolicyInternalServerError) IsClientError

func (o *RollbackPolicyInternalServerError) IsClientError() bool

IsClientError returns true when this rollback policy internal server error response has a 4xx status code

func (*RollbackPolicyInternalServerError) IsCode

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

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

func (*RollbackPolicyInternalServerError) IsRedirect

func (o *RollbackPolicyInternalServerError) IsRedirect() bool

IsRedirect returns true when this rollback policy internal server error response has a 3xx status code

func (*RollbackPolicyInternalServerError) IsServerError

func (o *RollbackPolicyInternalServerError) IsServerError() bool

IsServerError returns true when this rollback policy internal server error response has a 5xx status code

func (*RollbackPolicyInternalServerError) IsSuccess

func (o *RollbackPolicyInternalServerError) IsSuccess() bool

IsSuccess returns true when this rollback policy internal server error response has a 2xx status code

func (*RollbackPolicyInternalServerError) String

type RollbackPolicyOK

type RollbackPolicyOK struct {
	Payload *models.Policy
}
RollbackPolicyOK describes a response with status code 200, with default header values.

no error

func NewRollbackPolicyOK

func NewRollbackPolicyOK() *RollbackPolicyOK

NewRollbackPolicyOK creates a RollbackPolicyOK with default headers values

func (*RollbackPolicyOK) Error

func (o *RollbackPolicyOK) Error() string

func (*RollbackPolicyOK) GetPayload

func (o *RollbackPolicyOK) GetPayload() *models.Policy

func (*RollbackPolicyOK) IsClientError

func (o *RollbackPolicyOK) IsClientError() bool

IsClientError returns true when this rollback policy o k response has a 4xx status code

func (*RollbackPolicyOK) IsCode

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

IsCode returns true when this rollback policy o k response a status code equal to that given

func (*RollbackPolicyOK) IsRedirect

func (o *RollbackPolicyOK) IsRedirect() bool

IsRedirect returns true when this rollback policy o k response has a 3xx status code

func (*RollbackPolicyOK) IsServerError

func (o *RollbackPolicyOK) IsServerError() bool

IsServerError returns true when this rollback policy o k response has a 5xx status code

func (*RollbackPolicyOK) IsSuccess

func (o *RollbackPolicyOK) IsSuccess() bool

IsSuccess returns true when this rollback policy o k response has a 2xx status code

func (*RollbackPolicyOK) String

func (o *RollbackPolicyOK) String() string

type RollbackPolicyParams

type RollbackPolicyParams struct {

	/* Path.

	   Full path to lookup policy
	*/
	Path string

	/* Version.

	   Versions to return

	   Format: int64
	*/
	Version int64

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

RollbackPolicyParams contains all the parameters to send to the API endpoint

for the rollback policy operation.

Typically these are written to a http.Request.

func NewRollbackPolicyParams

func NewRollbackPolicyParams() *RollbackPolicyParams

NewRollbackPolicyParams creates a new RollbackPolicyParams 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 NewRollbackPolicyParamsWithContext

func NewRollbackPolicyParamsWithContext(ctx context.Context) *RollbackPolicyParams

NewRollbackPolicyParamsWithContext creates a new RollbackPolicyParams object with the ability to set a context for a request.

func NewRollbackPolicyParamsWithHTTPClient

func NewRollbackPolicyParamsWithHTTPClient(client *http.Client) *RollbackPolicyParams

NewRollbackPolicyParamsWithHTTPClient creates a new RollbackPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewRollbackPolicyParamsWithTimeout

func NewRollbackPolicyParamsWithTimeout(timeout time.Duration) *RollbackPolicyParams

NewRollbackPolicyParamsWithTimeout creates a new RollbackPolicyParams object with the ability to set a timeout on a request.

func (*RollbackPolicyParams) SetContext

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

SetContext adds the context to the rollback policy params

func (*RollbackPolicyParams) SetDefaults

func (o *RollbackPolicyParams) SetDefaults()

SetDefaults hydrates default values in the rollback policy params (not the query body).

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

func (*RollbackPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the rollback policy params

func (*RollbackPolicyParams) SetPath

func (o *RollbackPolicyParams) SetPath(path string)

SetPath adds the path to the rollback policy params

func (*RollbackPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the rollback policy params

func (*RollbackPolicyParams) SetVersion

func (o *RollbackPolicyParams) SetVersion(version int64)

SetVersion adds the version to the rollback policy params

func (*RollbackPolicyParams) WithContext

WithContext adds the context to the rollback policy params

func (*RollbackPolicyParams) WithDefaults

func (o *RollbackPolicyParams) WithDefaults() *RollbackPolicyParams

WithDefaults hydrates default values in the rollback policy params (not the query body).

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

func (*RollbackPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the rollback policy params

func (*RollbackPolicyParams) WithPath

WithPath adds the path to the rollback policy params

func (*RollbackPolicyParams) WithTimeout

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

WithTimeout adds the timeout to the rollback policy params

func (*RollbackPolicyParams) WithVersion

func (o *RollbackPolicyParams) WithVersion(version int64) *RollbackPolicyParams

WithVersion adds the version to the rollback policy params

func (*RollbackPolicyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RollbackPolicyReader

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

RollbackPolicyReader is a Reader for the RollbackPolicy structure.

func (*RollbackPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RollbackPolicyUnauthorized

type RollbackPolicyUnauthorized struct {
	Payload *models.HTTPError
}
RollbackPolicyUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewRollbackPolicyUnauthorized

func NewRollbackPolicyUnauthorized() *RollbackPolicyUnauthorized

NewRollbackPolicyUnauthorized creates a RollbackPolicyUnauthorized with default headers values

func (*RollbackPolicyUnauthorized) Error

func (*RollbackPolicyUnauthorized) GetPayload

func (o *RollbackPolicyUnauthorized) GetPayload() *models.HTTPError

func (*RollbackPolicyUnauthorized) IsClientError

func (o *RollbackPolicyUnauthorized) IsClientError() bool

IsClientError returns true when this rollback policy unauthorized response has a 4xx status code

func (*RollbackPolicyUnauthorized) IsCode

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

IsCode returns true when this rollback policy unauthorized response a status code equal to that given

func (*RollbackPolicyUnauthorized) IsRedirect

func (o *RollbackPolicyUnauthorized) IsRedirect() bool

IsRedirect returns true when this rollback policy unauthorized response has a 3xx status code

func (*RollbackPolicyUnauthorized) IsServerError

func (o *RollbackPolicyUnauthorized) IsServerError() bool

IsServerError returns true when this rollback policy unauthorized response has a 5xx status code

func (*RollbackPolicyUnauthorized) IsSuccess

func (o *RollbackPolicyUnauthorized) IsSuccess() bool

IsSuccess returns true when this rollback policy unauthorized response has a 2xx status code

func (*RollbackPolicyUnauthorized) String

func (o *RollbackPolicyUnauthorized) String() string

type SearchFilterBadRequest

type SearchFilterBadRequest struct {
	Payload *models.HTTPError
}
SearchFilterBadRequest describes a response with status code 400, with default header values.

bad request

func NewSearchFilterBadRequest

func NewSearchFilterBadRequest() *SearchFilterBadRequest

NewSearchFilterBadRequest creates a SearchFilterBadRequest with default headers values

func (*SearchFilterBadRequest) Error

func (o *SearchFilterBadRequest) Error() string

func (*SearchFilterBadRequest) GetPayload

func (o *SearchFilterBadRequest) GetPayload() *models.HTTPError

func (*SearchFilterBadRequest) IsClientError

func (o *SearchFilterBadRequest) IsClientError() bool

IsClientError returns true when this search filter bad request response has a 4xx status code

func (*SearchFilterBadRequest) IsCode

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

IsCode returns true when this search filter bad request response a status code equal to that given

func (*SearchFilterBadRequest) IsRedirect

func (o *SearchFilterBadRequest) IsRedirect() bool

IsRedirect returns true when this search filter bad request response has a 3xx status code

func (*SearchFilterBadRequest) IsServerError

func (o *SearchFilterBadRequest) IsServerError() bool

IsServerError returns true when this search filter bad request response has a 5xx status code

func (*SearchFilterBadRequest) IsSuccess

func (o *SearchFilterBadRequest) IsSuccess() bool

IsSuccess returns true when this search filter bad request response has a 2xx status code

func (*SearchFilterBadRequest) String

func (o *SearchFilterBadRequest) String() string

type SearchFilterForbidden

type SearchFilterForbidden struct {
	Payload *models.HTTPError
}
SearchFilterForbidden describes a response with status code 403, with default header values.

forbidden

func NewSearchFilterForbidden

func NewSearchFilterForbidden() *SearchFilterForbidden

NewSearchFilterForbidden creates a SearchFilterForbidden with default headers values

func (*SearchFilterForbidden) Error

func (o *SearchFilterForbidden) Error() string

func (*SearchFilterForbidden) GetPayload

func (o *SearchFilterForbidden) GetPayload() *models.HTTPError

func (*SearchFilterForbidden) IsClientError

func (o *SearchFilterForbidden) IsClientError() bool

IsClientError returns true when this search filter forbidden response has a 4xx status code

func (*SearchFilterForbidden) IsCode

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

IsCode returns true when this search filter forbidden response a status code equal to that given

func (*SearchFilterForbidden) IsRedirect

func (o *SearchFilterForbidden) IsRedirect() bool

IsRedirect returns true when this search filter forbidden response has a 3xx status code

func (*SearchFilterForbidden) IsServerError

func (o *SearchFilterForbidden) IsServerError() bool

IsServerError returns true when this search filter forbidden response has a 5xx status code

func (*SearchFilterForbidden) IsSuccess

func (o *SearchFilterForbidden) IsSuccess() bool

IsSuccess returns true when this search filter forbidden response has a 2xx status code

func (*SearchFilterForbidden) String

func (o *SearchFilterForbidden) String() string

type SearchFilterInternalServerError

type SearchFilterInternalServerError struct {
	Payload *models.HTTPError
}
SearchFilterInternalServerError describes a response with status code 500, with default header values.

server error

func NewSearchFilterInternalServerError

func NewSearchFilterInternalServerError() *SearchFilterInternalServerError

NewSearchFilterInternalServerError creates a SearchFilterInternalServerError with default headers values

func (*SearchFilterInternalServerError) Error

func (*SearchFilterInternalServerError) GetPayload

func (*SearchFilterInternalServerError) IsClientError

func (o *SearchFilterInternalServerError) IsClientError() bool

IsClientError returns true when this search filter internal server error response has a 4xx status code

func (*SearchFilterInternalServerError) IsCode

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

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

func (*SearchFilterInternalServerError) IsRedirect

func (o *SearchFilterInternalServerError) IsRedirect() bool

IsRedirect returns true when this search filter internal server error response has a 3xx status code

func (*SearchFilterInternalServerError) IsServerError

func (o *SearchFilterInternalServerError) IsServerError() bool

IsServerError returns true when this search filter internal server error response has a 5xx status code

func (*SearchFilterInternalServerError) IsSuccess

func (o *SearchFilterInternalServerError) IsSuccess() bool

IsSuccess returns true when this search filter internal server error response has a 2xx status code

func (*SearchFilterInternalServerError) String

type SearchFilterNotFound

type SearchFilterNotFound struct {
	Payload *models.HTTPError
}
SearchFilterNotFound describes a response with status code 404, with default header values.

not found

func NewSearchFilterNotFound

func NewSearchFilterNotFound() *SearchFilterNotFound

NewSearchFilterNotFound creates a SearchFilterNotFound with default headers values

func (*SearchFilterNotFound) Error

func (o *SearchFilterNotFound) Error() string

func (*SearchFilterNotFound) GetPayload

func (o *SearchFilterNotFound) GetPayload() *models.HTTPError

func (*SearchFilterNotFound) IsClientError

func (o *SearchFilterNotFound) IsClientError() bool

IsClientError returns true when this search filter not found response has a 4xx status code

func (*SearchFilterNotFound) IsCode

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

IsCode returns true when this search filter not found response a status code equal to that given

func (*SearchFilterNotFound) IsRedirect

func (o *SearchFilterNotFound) IsRedirect() bool

IsRedirect returns true when this search filter not found response has a 3xx status code

func (*SearchFilterNotFound) IsServerError

func (o *SearchFilterNotFound) IsServerError() bool

IsServerError returns true when this search filter not found response has a 5xx status code

func (*SearchFilterNotFound) IsSuccess

func (o *SearchFilterNotFound) IsSuccess() bool

IsSuccess returns true when this search filter not found response has a 2xx status code

func (*SearchFilterNotFound) String

func (o *SearchFilterNotFound) String() string

type SearchFilterOK

type SearchFilterOK struct {
	Payload *models.PolicySearchResponse
}
SearchFilterOK describes a response with status code 200, with default header values.

no error

func NewSearchFilterOK

func NewSearchFilterOK() *SearchFilterOK

NewSearchFilterOK creates a SearchFilterOK with default headers values

func (*SearchFilterOK) Error

func (o *SearchFilterOK) Error() string

func (*SearchFilterOK) GetPayload

func (o *SearchFilterOK) GetPayload() *models.PolicySearchResponse

func (*SearchFilterOK) IsClientError

func (o *SearchFilterOK) IsClientError() bool

IsClientError returns true when this search filter o k response has a 4xx status code

func (*SearchFilterOK) IsCode

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

IsCode returns true when this search filter o k response a status code equal to that given

func (*SearchFilterOK) IsRedirect

func (o *SearchFilterOK) IsRedirect() bool

IsRedirect returns true when this search filter o k response has a 3xx status code

func (*SearchFilterOK) IsServerError

func (o *SearchFilterOK) IsServerError() bool

IsServerError returns true when this search filter o k response has a 5xx status code

func (*SearchFilterOK) IsSuccess

func (o *SearchFilterOK) IsSuccess() bool

IsSuccess returns true when this search filter o k response has a 2xx status code

func (*SearchFilterOK) String

func (o *SearchFilterOK) String() string

type SearchFilterParams

type SearchFilterParams struct {

	/* Cursor.

	   Cursor to next batch of results
	*/
	Cursor *string

	/* Limit.

	   The maximum number of results per cursor

	   Format: int64
	*/
	Limit *int64

	/* SearchTerm.

	   Search term
	*/
	SearchTerm *string

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

SearchFilterParams contains all the parameters to send to the API endpoint

for the search filter operation.

Typically these are written to a http.Request.

func NewSearchFilterParams

func NewSearchFilterParams() *SearchFilterParams

NewSearchFilterParams creates a new SearchFilterParams 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 NewSearchFilterParamsWithContext

func NewSearchFilterParamsWithContext(ctx context.Context) *SearchFilterParams

NewSearchFilterParamsWithContext creates a new SearchFilterParams object with the ability to set a context for a request.

func NewSearchFilterParamsWithHTTPClient

func NewSearchFilterParamsWithHTTPClient(client *http.Client) *SearchFilterParams

NewSearchFilterParamsWithHTTPClient creates a new SearchFilterParams object with the ability to set a custom HTTPClient for a request.

func NewSearchFilterParamsWithTimeout

func NewSearchFilterParamsWithTimeout(timeout time.Duration) *SearchFilterParams

NewSearchFilterParamsWithTimeout creates a new SearchFilterParams object with the ability to set a timeout on a request.

func (*SearchFilterParams) SetContext

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

SetContext adds the context to the search filter params

func (*SearchFilterParams) SetCursor

func (o *SearchFilterParams) SetCursor(cursor *string)

SetCursor adds the cursor to the search filter params

func (*SearchFilterParams) SetDefaults

func (o *SearchFilterParams) SetDefaults()

SetDefaults hydrates default values in the search filter params (not the query body).

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

func (*SearchFilterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search filter params

func (*SearchFilterParams) SetLimit

func (o *SearchFilterParams) SetLimit(limit *int64)

SetLimit adds the limit to the search filter params

func (*SearchFilterParams) SetSearchTerm

func (o *SearchFilterParams) SetSearchTerm(searchTerm *string)

SetSearchTerm adds the searchTerm to the search filter params

func (*SearchFilterParams) SetTimeout

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

SetTimeout adds the timeout to the search filter params

func (*SearchFilterParams) WithContext

WithContext adds the context to the search filter params

func (*SearchFilterParams) WithCursor

func (o *SearchFilterParams) WithCursor(cursor *string) *SearchFilterParams

WithCursor adds the cursor to the search filter params

func (*SearchFilterParams) WithDefaults

func (o *SearchFilterParams) WithDefaults() *SearchFilterParams

WithDefaults hydrates default values in the search filter params (not the query body).

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

func (*SearchFilterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search filter params

func (*SearchFilterParams) WithLimit

func (o *SearchFilterParams) WithLimit(limit *int64) *SearchFilterParams

WithLimit adds the limit to the search filter params

func (*SearchFilterParams) WithSearchTerm

func (o *SearchFilterParams) WithSearchTerm(searchTerm *string) *SearchFilterParams

WithSearchTerm adds the searchTerm to the search filter params

func (*SearchFilterParams) WithTimeout

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

WithTimeout adds the timeout to the search filter params

func (*SearchFilterParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchFilterReader

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

SearchFilterReader is a Reader for the SearchFilter structure.

func (*SearchFilterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchFilterUnauthorized

type SearchFilterUnauthorized struct {
	Payload *models.HTTPError
}
SearchFilterUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewSearchFilterUnauthorized

func NewSearchFilterUnauthorized() *SearchFilterUnauthorized

NewSearchFilterUnauthorized creates a SearchFilterUnauthorized with default headers values

func (*SearchFilterUnauthorized) Error

func (o *SearchFilterUnauthorized) Error() string

func (*SearchFilterUnauthorized) GetPayload

func (o *SearchFilterUnauthorized) GetPayload() *models.HTTPError

func (*SearchFilterUnauthorized) IsClientError

func (o *SearchFilterUnauthorized) IsClientError() bool

IsClientError returns true when this search filter unauthorized response has a 4xx status code

func (*SearchFilterUnauthorized) IsCode

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

IsCode returns true when this search filter unauthorized response a status code equal to that given

func (*SearchFilterUnauthorized) IsRedirect

func (o *SearchFilterUnauthorized) IsRedirect() bool

IsRedirect returns true when this search filter unauthorized response has a 3xx status code

func (*SearchFilterUnauthorized) IsServerError

func (o *SearchFilterUnauthorized) IsServerError() bool

IsServerError returns true when this search filter unauthorized response has a 5xx status code

func (*SearchFilterUnauthorized) IsSuccess

func (o *SearchFilterUnauthorized) IsSuccess() bool

IsSuccess returns true when this search filter unauthorized response has a 2xx status code

func (*SearchFilterUnauthorized) String

func (o *SearchFilterUnauthorized) String() string

type UpdatePolicyBadRequest

type UpdatePolicyBadRequest struct {
	Payload *models.HTTPError
}
UpdatePolicyBadRequest describes a response with status code 400, with default header values.

bad request

func NewUpdatePolicyBadRequest

func NewUpdatePolicyBadRequest() *UpdatePolicyBadRequest

NewUpdatePolicyBadRequest creates a UpdatePolicyBadRequest with default headers values

func (*UpdatePolicyBadRequest) Error

func (o *UpdatePolicyBadRequest) Error() string

func (*UpdatePolicyBadRequest) GetPayload

func (o *UpdatePolicyBadRequest) GetPayload() *models.HTTPError

func (*UpdatePolicyBadRequest) IsClientError

func (o *UpdatePolicyBadRequest) IsClientError() bool

IsClientError returns true when this update policy bad request response has a 4xx status code

func (*UpdatePolicyBadRequest) IsCode

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

IsCode returns true when this update policy bad request response a status code equal to that given

func (*UpdatePolicyBadRequest) IsRedirect

func (o *UpdatePolicyBadRequest) IsRedirect() bool

IsRedirect returns true when this update policy bad request response has a 3xx status code

func (*UpdatePolicyBadRequest) IsServerError

func (o *UpdatePolicyBadRequest) IsServerError() bool

IsServerError returns true when this update policy bad request response has a 5xx status code

func (*UpdatePolicyBadRequest) IsSuccess

func (o *UpdatePolicyBadRequest) IsSuccess() bool

IsSuccess returns true when this update policy bad request response has a 2xx status code

func (*UpdatePolicyBadRequest) String

func (o *UpdatePolicyBadRequest) String() string

type UpdatePolicyForbidden

type UpdatePolicyForbidden struct {
	Payload *models.HTTPError
}
UpdatePolicyForbidden describes a response with status code 403, with default header values.

forbidden

func NewUpdatePolicyForbidden

func NewUpdatePolicyForbidden() *UpdatePolicyForbidden

NewUpdatePolicyForbidden creates a UpdatePolicyForbidden with default headers values

func (*UpdatePolicyForbidden) Error

func (o *UpdatePolicyForbidden) Error() string

func (*UpdatePolicyForbidden) GetPayload

func (o *UpdatePolicyForbidden) GetPayload() *models.HTTPError

func (*UpdatePolicyForbidden) IsClientError

func (o *UpdatePolicyForbidden) IsClientError() bool

IsClientError returns true when this update policy forbidden response has a 4xx status code

func (*UpdatePolicyForbidden) IsCode

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

IsCode returns true when this update policy forbidden response a status code equal to that given

func (*UpdatePolicyForbidden) IsRedirect

func (o *UpdatePolicyForbidden) IsRedirect() bool

IsRedirect returns true when this update policy forbidden response has a 3xx status code

func (*UpdatePolicyForbidden) IsServerError

func (o *UpdatePolicyForbidden) IsServerError() bool

IsServerError returns true when this update policy forbidden response has a 5xx status code

func (*UpdatePolicyForbidden) IsSuccess

func (o *UpdatePolicyForbidden) IsSuccess() bool

IsSuccess returns true when this update policy forbidden response has a 2xx status code

func (*UpdatePolicyForbidden) String

func (o *UpdatePolicyForbidden) String() string

type UpdatePolicyInternalServerError

type UpdatePolicyInternalServerError struct {
	Payload *models.HTTPError
}
UpdatePolicyInternalServerError describes a response with status code 500, with default header values.

server error

func NewUpdatePolicyInternalServerError

func NewUpdatePolicyInternalServerError() *UpdatePolicyInternalServerError

NewUpdatePolicyInternalServerError creates a UpdatePolicyInternalServerError with default headers values

func (*UpdatePolicyInternalServerError) Error

func (*UpdatePolicyInternalServerError) GetPayload

func (*UpdatePolicyInternalServerError) IsClientError

func (o *UpdatePolicyInternalServerError) IsClientError() bool

IsClientError returns true when this update policy internal server error response has a 4xx status code

func (*UpdatePolicyInternalServerError) IsCode

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

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

func (*UpdatePolicyInternalServerError) IsRedirect

func (o *UpdatePolicyInternalServerError) IsRedirect() bool

IsRedirect returns true when this update policy internal server error response has a 3xx status code

func (*UpdatePolicyInternalServerError) IsServerError

func (o *UpdatePolicyInternalServerError) IsServerError() bool

IsServerError returns true when this update policy internal server error response has a 5xx status code

func (*UpdatePolicyInternalServerError) IsSuccess

func (o *UpdatePolicyInternalServerError) IsSuccess() bool

IsSuccess returns true when this update policy internal server error response has a 2xx status code

func (*UpdatePolicyInternalServerError) String

type UpdatePolicyOK

type UpdatePolicyOK struct {
	Payload *models.Policy
}
UpdatePolicyOK describes a response with status code 200, with default header values.

no error

func NewUpdatePolicyOK

func NewUpdatePolicyOK() *UpdatePolicyOK

NewUpdatePolicyOK creates a UpdatePolicyOK with default headers values

func (*UpdatePolicyOK) Error

func (o *UpdatePolicyOK) Error() string

func (*UpdatePolicyOK) GetPayload

func (o *UpdatePolicyOK) GetPayload() *models.Policy

func (*UpdatePolicyOK) IsClientError

func (o *UpdatePolicyOK) IsClientError() bool

IsClientError returns true when this update policy o k response has a 4xx status code

func (*UpdatePolicyOK) IsCode

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

IsCode returns true when this update policy o k response a status code equal to that given

func (*UpdatePolicyOK) IsRedirect

func (o *UpdatePolicyOK) IsRedirect() bool

IsRedirect returns true when this update policy o k response has a 3xx status code

func (*UpdatePolicyOK) IsServerError

func (o *UpdatePolicyOK) IsServerError() bool

IsServerError returns true when this update policy o k response has a 5xx status code

func (*UpdatePolicyOK) IsSuccess

func (o *UpdatePolicyOK) IsSuccess() bool

IsSuccess returns true when this update policy o k response has a 2xx status code

func (*UpdatePolicyOK) String

func (o *UpdatePolicyOK) String() string

type UpdatePolicyParams

type UpdatePolicyParams struct {

	// Body.
	Body *models.PolicyUpdate

	/* Path.

	   Full path for policy
	*/
	Path string

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

UpdatePolicyParams contains all the parameters to send to the API endpoint

for the update policy operation.

Typically these are written to a http.Request.

func NewUpdatePolicyParams

func NewUpdatePolicyParams() *UpdatePolicyParams

NewUpdatePolicyParams creates a new UpdatePolicyParams 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 NewUpdatePolicyParamsWithContext

func NewUpdatePolicyParamsWithContext(ctx context.Context) *UpdatePolicyParams

NewUpdatePolicyParamsWithContext creates a new UpdatePolicyParams object with the ability to set a context for a request.

func NewUpdatePolicyParamsWithHTTPClient

func NewUpdatePolicyParamsWithHTTPClient(client *http.Client) *UpdatePolicyParams

NewUpdatePolicyParamsWithHTTPClient creates a new UpdatePolicyParams object with the ability to set a custom HTTPClient for a request.

func NewUpdatePolicyParamsWithTimeout

func NewUpdatePolicyParamsWithTimeout(timeout time.Duration) *UpdatePolicyParams

NewUpdatePolicyParamsWithTimeout creates a new UpdatePolicyParams object with the ability to set a timeout on a request.

func (*UpdatePolicyParams) SetBody

func (o *UpdatePolicyParams) SetBody(body *models.PolicyUpdate)

SetBody adds the body to the update policy params

func (*UpdatePolicyParams) SetContext

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

SetContext adds the context to the update policy params

func (*UpdatePolicyParams) SetDefaults

func (o *UpdatePolicyParams) SetDefaults()

SetDefaults hydrates default values in the update policy params (not the query body).

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

func (*UpdatePolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update policy params

func (*UpdatePolicyParams) SetPath

func (o *UpdatePolicyParams) SetPath(path string)

SetPath adds the path to the update policy params

func (*UpdatePolicyParams) SetTimeout

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

SetTimeout adds the timeout to the update policy params

func (*UpdatePolicyParams) WithBody

WithBody adds the body to the update policy params

func (*UpdatePolicyParams) WithContext

WithContext adds the context to the update policy params

func (*UpdatePolicyParams) WithDefaults

func (o *UpdatePolicyParams) WithDefaults() *UpdatePolicyParams

WithDefaults hydrates default values in the update policy params (not the query body).

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

func (*UpdatePolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update policy params

func (*UpdatePolicyParams) WithPath

func (o *UpdatePolicyParams) WithPath(path string) *UpdatePolicyParams

WithPath adds the path to the update policy params

func (*UpdatePolicyParams) WithTimeout

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

WithTimeout adds the timeout to the update policy params

func (*UpdatePolicyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdatePolicyReader

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

UpdatePolicyReader is a Reader for the UpdatePolicy structure.

func (*UpdatePolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdatePolicyUnauthorized

type UpdatePolicyUnauthorized struct {
	Payload *models.HTTPError
}
UpdatePolicyUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewUpdatePolicyUnauthorized

func NewUpdatePolicyUnauthorized() *UpdatePolicyUnauthorized

NewUpdatePolicyUnauthorized creates a UpdatePolicyUnauthorized with default headers values

func (*UpdatePolicyUnauthorized) Error

func (o *UpdatePolicyUnauthorized) Error() string

func (*UpdatePolicyUnauthorized) GetPayload

func (o *UpdatePolicyUnauthorized) GetPayload() *models.HTTPError

func (*UpdatePolicyUnauthorized) IsClientError

func (o *UpdatePolicyUnauthorized) IsClientError() bool

IsClientError returns true when this update policy unauthorized response has a 4xx status code

func (*UpdatePolicyUnauthorized) IsCode

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

IsCode returns true when this update policy unauthorized response a status code equal to that given

func (*UpdatePolicyUnauthorized) IsRedirect

func (o *UpdatePolicyUnauthorized) IsRedirect() bool

IsRedirect returns true when this update policy unauthorized response has a 3xx status code

func (*UpdatePolicyUnauthorized) IsServerError

func (o *UpdatePolicyUnauthorized) IsServerError() bool

IsServerError returns true when this update policy unauthorized response has a 5xx status code

func (*UpdatePolicyUnauthorized) IsSuccess

func (o *UpdatePolicyUnauthorized) IsSuccess() bool

IsSuccess returns true when this update policy unauthorized response has a 2xx status code

func (*UpdatePolicyUnauthorized) String

func (o *UpdatePolicyUnauthorized) String() string

Jump to

Keyboard shortcuts

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