policies

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 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

ACP supports creating Cloudentity policies (using a visual editor or defined using JSON or

YAML) and policies defined using REGO (language used by Open Policy Agent (OPA)).

In ACP, policies are created per tenant. It means that is not possible to create policies with the same ID in two different workspaces within the same tenant. Additionally, when a policy is created, a workspace prefix is added to your policy name on the UI side. It is not possible to reuse policies between different authorization servers.

Sample validators which can be used to build policies: identity-context, consent, header, true, false.

func (*Client) DeletePolicy

func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyNoContent, error)

DeletePolicy deletes policy

It is not possible to delete policies that are currently in use.

func (*Client) GetPolicy

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

GetPolicy gets policy

Returns a policy and it's definition.

func (*Client) ListPolicies

func (a *Client) ListPolicies(params *ListPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPoliciesOK, error)

ListPolicies lists policies

Lists authorization servers' (workspace) policies by type.

func (*Client) ListPolicyExecutionPoints

func (a *Client) ListPolicyExecutionPoints(params *ListPolicyExecutionPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPolicyExecutionPointsOK, error)

ListPolicyExecutionPoints lists policy execution points

Returns a list of policy execution points for a given workspace.

func (*Client) SetPolicyExecutionPoints

func (a *Client) SetPolicyExecutionPoints(params *SetPolicyExecutionPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetPolicyExecutionPointsOK, error)
SetPolicyExecutionPoints sets policy execution points

Available execution points: `scope_client_assignment`, `scope_user_grant`,

`server_client_assignment`, `server_user_token`, `client_user_token`, `api`

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TestPolicy

func (a *Client) TestPolicy(params *TestPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TestPolicyOK, error)
TestPolicy tests policy

You can test a policy and check if it works correctly using this endpoint. Provide your mock input and

pass it as the value of the `input` parameter. Define your policy. Then, fire a request to the test policy endpoint. By doing so, you can test if a policy would fail or pass for a given request.

func (*Client) UpdatePolicy

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

UpdatePolicy updates policy

Update existing authorization policies.

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) (*DeletePolicyNoContent, error)

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

	ListPolicies(params *ListPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPoliciesOK, error)

	ListPolicyExecutionPoints(params *ListPolicyExecutionPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPolicyExecutionPointsOK, error)

	SetPolicyExecutionPoints(params *SetPolicyExecutionPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetPolicyExecutionPointsOK, error)

	TestPolicy(params *TestPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TestPolicyOK, error)

	UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyCreated, 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.Error
}

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

func (o *CreatePolicyBadRequest) Code() int

Code gets the status code for the create policy bad request response

func (*CreatePolicyBadRequest) Error

func (o *CreatePolicyBadRequest) Error() string

func (*CreatePolicyBadRequest) GetPayload

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

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 CreatePolicyConflict

type CreatePolicyConflict struct {
	Payload *models.Error
}

CreatePolicyConflict describes a response with status code 409, with default header values.

Conflict

func NewCreatePolicyConflict

func NewCreatePolicyConflict() *CreatePolicyConflict

NewCreatePolicyConflict creates a CreatePolicyConflict with default headers values

func (*CreatePolicyConflict) Code

func (o *CreatePolicyConflict) Code() int

Code gets the status code for the create policy conflict response

func (*CreatePolicyConflict) Error

func (o *CreatePolicyConflict) Error() string

func (*CreatePolicyConflict) GetPayload

func (o *CreatePolicyConflict) GetPayload() *models.Error

func (*CreatePolicyConflict) IsClientError

func (o *CreatePolicyConflict) IsClientError() bool

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

func (*CreatePolicyConflict) IsCode

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

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

func (*CreatePolicyConflict) IsRedirect

func (o *CreatePolicyConflict) IsRedirect() bool

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

func (*CreatePolicyConflict) IsServerError

func (o *CreatePolicyConflict) IsServerError() bool

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

func (*CreatePolicyConflict) IsSuccess

func (o *CreatePolicyConflict) IsSuccess() bool

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

func (*CreatePolicyConflict) String

func (o *CreatePolicyConflict) String() string

type CreatePolicyCreated

type CreatePolicyCreated struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.Policy
}

CreatePolicyCreated describes a response with status code 201, with default header values.

Policy

func NewCreatePolicyCreated

func NewCreatePolicyCreated() *CreatePolicyCreated

NewCreatePolicyCreated creates a CreatePolicyCreated with default headers values

func (*CreatePolicyCreated) Code

func (o *CreatePolicyCreated) Code() int

Code gets the status code for the create policy created response

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.Error
}

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

func (o *CreatePolicyForbidden) Code() int

Code gets the status code for the create policy forbidden response

func (*CreatePolicyForbidden) Error

func (o *CreatePolicyForbidden) Error() string

func (*CreatePolicyForbidden) GetPayload

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

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 CreatePolicyNotFound

type CreatePolicyNotFound struct {
	Payload *models.Error
}

CreatePolicyNotFound describes a response with status code 404, with default header values.

Not found

func NewCreatePolicyNotFound

func NewCreatePolicyNotFound() *CreatePolicyNotFound

NewCreatePolicyNotFound creates a CreatePolicyNotFound with default headers values

func (*CreatePolicyNotFound) Code

func (o *CreatePolicyNotFound) Code() int

Code gets the status code for the create policy not found response

func (*CreatePolicyNotFound) Error

func (o *CreatePolicyNotFound) Error() string

func (*CreatePolicyNotFound) GetPayload

func (o *CreatePolicyNotFound) GetPayload() *models.Error

func (*CreatePolicyNotFound) IsClientError

func (o *CreatePolicyNotFound) IsClientError() bool

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

func (*CreatePolicyNotFound) IsCode

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

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

func (*CreatePolicyNotFound) IsRedirect

func (o *CreatePolicyNotFound) IsRedirect() bool

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

func (*CreatePolicyNotFound) IsServerError

func (o *CreatePolicyNotFound) IsServerError() bool

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

func (*CreatePolicyNotFound) IsSuccess

func (o *CreatePolicyNotFound) IsSuccess() bool

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

func (*CreatePolicyNotFound) String

func (o *CreatePolicyNotFound) String() string

type CreatePolicyParams

type CreatePolicyParams struct {

	// Policy.
	Policy *models.Policy

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

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

func (o *CreatePolicyParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the create policy params

func (*CreatePolicyParams) SetPolicy

func (o *CreatePolicyParams) SetPolicy(policy *models.Policy)

SetPolicy adds the policy 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) 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) WithIfMatch

func (o *CreatePolicyParams) WithIfMatch(ifMatch *string) *CreatePolicyParams

WithIfMatch adds the ifMatch to the create policy params

func (*CreatePolicyParams) WithPolicy

func (o *CreatePolicyParams) WithPolicy(policy *models.Policy) *CreatePolicyParams

WithPolicy adds the policy 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 CreatePolicyTooManyRequests

type CreatePolicyTooManyRequests struct {
	Payload *models.Error
}

CreatePolicyTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewCreatePolicyTooManyRequests

func NewCreatePolicyTooManyRequests() *CreatePolicyTooManyRequests

NewCreatePolicyTooManyRequests creates a CreatePolicyTooManyRequests with default headers values

func (*CreatePolicyTooManyRequests) Code

func (o *CreatePolicyTooManyRequests) Code() int

Code gets the status code for the create policy too many requests response

func (*CreatePolicyTooManyRequests) Error

func (*CreatePolicyTooManyRequests) GetPayload

func (o *CreatePolicyTooManyRequests) GetPayload() *models.Error

func (*CreatePolicyTooManyRequests) IsClientError

func (o *CreatePolicyTooManyRequests) IsClientError() bool

IsClientError returns true when this create policy too many requests response has a 4xx status code

func (*CreatePolicyTooManyRequests) IsCode

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

IsCode returns true when this create policy too many requests response a status code equal to that given

func (*CreatePolicyTooManyRequests) IsRedirect

func (o *CreatePolicyTooManyRequests) IsRedirect() bool

IsRedirect returns true when this create policy too many requests response has a 3xx status code

func (*CreatePolicyTooManyRequests) IsServerError

func (o *CreatePolicyTooManyRequests) IsServerError() bool

IsServerError returns true when this create policy too many requests response has a 5xx status code

func (*CreatePolicyTooManyRequests) IsSuccess

func (o *CreatePolicyTooManyRequests) IsSuccess() bool

IsSuccess returns true when this create policy too many requests response has a 2xx status code

func (*CreatePolicyTooManyRequests) String

func (o *CreatePolicyTooManyRequests) String() string

type CreatePolicyUnauthorized

type CreatePolicyUnauthorized struct {
	Payload *models.Error
}

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

func (o *CreatePolicyUnauthorized) Code() int

Code gets the status code for the create policy unauthorized response

func (*CreatePolicyUnauthorized) Error

func (o *CreatePolicyUnauthorized) Error() string

func (*CreatePolicyUnauthorized) GetPayload

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

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 CreatePolicyUnprocessableEntity

type CreatePolicyUnprocessableEntity struct {
	Payload *models.Error
}

CreatePolicyUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewCreatePolicyUnprocessableEntity

func NewCreatePolicyUnprocessableEntity() *CreatePolicyUnprocessableEntity

NewCreatePolicyUnprocessableEntity creates a CreatePolicyUnprocessableEntity with default headers values

func (*CreatePolicyUnprocessableEntity) Code

Code gets the status code for the create policy unprocessable entity response

func (*CreatePolicyUnprocessableEntity) Error

func (*CreatePolicyUnprocessableEntity) GetPayload

func (o *CreatePolicyUnprocessableEntity) GetPayload() *models.Error

func (*CreatePolicyUnprocessableEntity) IsClientError

func (o *CreatePolicyUnprocessableEntity) IsClientError() bool

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

func (*CreatePolicyUnprocessableEntity) IsCode

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

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

func (*CreatePolicyUnprocessableEntity) IsRedirect

func (o *CreatePolicyUnprocessableEntity) IsRedirect() bool

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

func (*CreatePolicyUnprocessableEntity) IsServerError

func (o *CreatePolicyUnprocessableEntity) IsServerError() bool

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

func (*CreatePolicyUnprocessableEntity) IsSuccess

func (o *CreatePolicyUnprocessableEntity) IsSuccess() bool

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

func (*CreatePolicyUnprocessableEntity) String

type DeletePolicyBadRequest

type DeletePolicyBadRequest struct {
	Payload *models.Error
}

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

func (o *DeletePolicyBadRequest) Code() int

Code gets the status code for the delete policy bad request response

func (*DeletePolicyBadRequest) Error

func (o *DeletePolicyBadRequest) Error() string

func (*DeletePolicyBadRequest) GetPayload

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

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.Error
}

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

func (o *DeletePolicyForbidden) Code() int

Code gets the status code for the delete policy forbidden response

func (*DeletePolicyForbidden) Error

func (o *DeletePolicyForbidden) Error() string

func (*DeletePolicyForbidden) GetPayload

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

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 DeletePolicyNoContent

type DeletePolicyNoContent struct {
}

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

Policy has been deleted

func NewDeletePolicyNoContent

func NewDeletePolicyNoContent() *DeletePolicyNoContent

NewDeletePolicyNoContent creates a DeletePolicyNoContent with default headers values

func (*DeletePolicyNoContent) Code

func (o *DeletePolicyNoContent) Code() int

Code gets the status code for the delete policy no content response

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.Error
}

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

func (o *DeletePolicyNotFound) Code() int

Code gets the status code for the delete policy not found response

func (*DeletePolicyNotFound) Error

func (o *DeletePolicyNotFound) Error() string

func (*DeletePolicyNotFound) GetPayload

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

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 DeletePolicyParams

type DeletePolicyParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	// Pid.
	Pid 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete policy params

func (*DeletePolicyParams) SetIfMatch

func (o *DeletePolicyParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the delete policy params

func (*DeletePolicyParams) SetPid

func (o *DeletePolicyParams) SetPid(pid string)

SetPid adds the pid 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete policy params

func (*DeletePolicyParams) WithIfMatch

func (o *DeletePolicyParams) WithIfMatch(ifMatch *string) *DeletePolicyParams

WithIfMatch adds the ifMatch to the delete policy params

func (*DeletePolicyParams) WithPid

func (o *DeletePolicyParams) WithPid(pid string) *DeletePolicyParams

WithPid adds the pid 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 DeletePolicyTooManyRequests

type DeletePolicyTooManyRequests struct {
	Payload *models.Error
}

DeletePolicyTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewDeletePolicyTooManyRequests

func NewDeletePolicyTooManyRequests() *DeletePolicyTooManyRequests

NewDeletePolicyTooManyRequests creates a DeletePolicyTooManyRequests with default headers values

func (*DeletePolicyTooManyRequests) Code

func (o *DeletePolicyTooManyRequests) Code() int

Code gets the status code for the delete policy too many requests response

func (*DeletePolicyTooManyRequests) Error

func (*DeletePolicyTooManyRequests) GetPayload

func (o *DeletePolicyTooManyRequests) GetPayload() *models.Error

func (*DeletePolicyTooManyRequests) IsClientError

func (o *DeletePolicyTooManyRequests) IsClientError() bool

IsClientError returns true when this delete policy too many requests response has a 4xx status code

func (*DeletePolicyTooManyRequests) IsCode

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

IsCode returns true when this delete policy too many requests response a status code equal to that given

func (*DeletePolicyTooManyRequests) IsRedirect

func (o *DeletePolicyTooManyRequests) IsRedirect() bool

IsRedirect returns true when this delete policy too many requests response has a 3xx status code

func (*DeletePolicyTooManyRequests) IsServerError

func (o *DeletePolicyTooManyRequests) IsServerError() bool

IsServerError returns true when this delete policy too many requests response has a 5xx status code

func (*DeletePolicyTooManyRequests) IsSuccess

func (o *DeletePolicyTooManyRequests) IsSuccess() bool

IsSuccess returns true when this delete policy too many requests response has a 2xx status code

func (*DeletePolicyTooManyRequests) String

func (o *DeletePolicyTooManyRequests) String() string

type DeletePolicyUnauthorized

type DeletePolicyUnauthorized struct {
	Payload *models.Error
}

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

func (o *DeletePolicyUnauthorized) Code() int

Code gets the status code for the delete policy unauthorized response

func (*DeletePolicyUnauthorized) Error

func (o *DeletePolicyUnauthorized) Error() string

func (*DeletePolicyUnauthorized) GetPayload

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

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 GetPolicyForbidden

type GetPolicyForbidden struct {
	Payload *models.Error
}

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

func (o *GetPolicyForbidden) Code() int

Code gets the status code for the get policy forbidden response

func (*GetPolicyForbidden) Error

func (o *GetPolicyForbidden) Error() string

func (*GetPolicyForbidden) GetPayload

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

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 GetPolicyNotFound

type GetPolicyNotFound struct {
	Payload *models.Error
}

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

func (o *GetPolicyNotFound) Code() int

Code gets the status code for the get policy not found response

func (*GetPolicyNotFound) Error

func (o *GetPolicyNotFound) Error() string

func (*GetPolicyNotFound) GetPayload

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

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 {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.Policy
}

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

Policy

func NewGetPolicyOK

func NewGetPolicyOK() *GetPolicyOK

NewGetPolicyOK creates a GetPolicyOK with default headers values

func (*GetPolicyOK) Code

func (o *GetPolicyOK) Code() int

Code gets the status code for the get policy o k response

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 {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Pid.

	   ID of your policy
	*/
	Pid 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) SetIfMatch

func (o *GetPolicyParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the get policy params

func (*GetPolicyParams) SetPid

func (o *GetPolicyParams) SetPid(pid string)

SetPid adds the pid 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) WithIfMatch

func (o *GetPolicyParams) WithIfMatch(ifMatch *string) *GetPolicyParams

WithIfMatch adds the ifMatch to the get policy params

func (*GetPolicyParams) WithPid

func (o *GetPolicyParams) WithPid(pid string) *GetPolicyParams

WithPid adds the pid 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 GetPolicyTooManyRequests

type GetPolicyTooManyRequests struct {
	Payload *models.Error
}

GetPolicyTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetPolicyTooManyRequests

func NewGetPolicyTooManyRequests() *GetPolicyTooManyRequests

NewGetPolicyTooManyRequests creates a GetPolicyTooManyRequests with default headers values

func (*GetPolicyTooManyRequests) Code

func (o *GetPolicyTooManyRequests) Code() int

Code gets the status code for the get policy too many requests response

func (*GetPolicyTooManyRequests) Error

func (o *GetPolicyTooManyRequests) Error() string

func (*GetPolicyTooManyRequests) GetPayload

func (o *GetPolicyTooManyRequests) GetPayload() *models.Error

func (*GetPolicyTooManyRequests) IsClientError

func (o *GetPolicyTooManyRequests) IsClientError() bool

IsClientError returns true when this get policy too many requests response has a 4xx status code

func (*GetPolicyTooManyRequests) IsCode

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

IsCode returns true when this get policy too many requests response a status code equal to that given

func (*GetPolicyTooManyRequests) IsRedirect

func (o *GetPolicyTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get policy too many requests response has a 3xx status code

func (*GetPolicyTooManyRequests) IsServerError

func (o *GetPolicyTooManyRequests) IsServerError() bool

IsServerError returns true when this get policy too many requests response has a 5xx status code

func (*GetPolicyTooManyRequests) IsSuccess

func (o *GetPolicyTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get policy too many requests response has a 2xx status code

func (*GetPolicyTooManyRequests) String

func (o *GetPolicyTooManyRequests) String() string

type GetPolicyUnauthorized

type GetPolicyUnauthorized struct {
	Payload *models.Error
}

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

func (o *GetPolicyUnauthorized) Code() int

Code gets the status code for the get policy unauthorized response

func (*GetPolicyUnauthorized) Error

func (o *GetPolicyUnauthorized) Error() string

func (*GetPolicyUnauthorized) GetPayload

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

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 ListPoliciesBadRequest

type ListPoliciesBadRequest struct {
	Payload *models.Error
}

ListPoliciesBadRequest describes a response with status code 400, with default header values.

Bad request

func NewListPoliciesBadRequest

func NewListPoliciesBadRequest() *ListPoliciesBadRequest

NewListPoliciesBadRequest creates a ListPoliciesBadRequest with default headers values

func (*ListPoliciesBadRequest) Code

func (o *ListPoliciesBadRequest) Code() int

Code gets the status code for the list policies bad request response

func (*ListPoliciesBadRequest) Error

func (o *ListPoliciesBadRequest) Error() string

func (*ListPoliciesBadRequest) GetPayload

func (o *ListPoliciesBadRequest) GetPayload() *models.Error

func (*ListPoliciesBadRequest) IsClientError

func (o *ListPoliciesBadRequest) IsClientError() bool

IsClientError returns true when this list policies bad request response has a 4xx status code

func (*ListPoliciesBadRequest) IsCode

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

IsCode returns true when this list policies bad request response a status code equal to that given

func (*ListPoliciesBadRequest) IsRedirect

func (o *ListPoliciesBadRequest) IsRedirect() bool

IsRedirect returns true when this list policies bad request response has a 3xx status code

func (*ListPoliciesBadRequest) IsServerError

func (o *ListPoliciesBadRequest) IsServerError() bool

IsServerError returns true when this list policies bad request response has a 5xx status code

func (*ListPoliciesBadRequest) IsSuccess

func (o *ListPoliciesBadRequest) IsSuccess() bool

IsSuccess returns true when this list policies bad request response has a 2xx status code

func (*ListPoliciesBadRequest) String

func (o *ListPoliciesBadRequest) String() string

type ListPoliciesForbidden

type ListPoliciesForbidden struct {
	Payload *models.Error
}

ListPoliciesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewListPoliciesForbidden

func NewListPoliciesForbidden() *ListPoliciesForbidden

NewListPoliciesForbidden creates a ListPoliciesForbidden with default headers values

func (*ListPoliciesForbidden) Code

func (o *ListPoliciesForbidden) Code() int

Code gets the status code for the list policies forbidden response

func (*ListPoliciesForbidden) Error

func (o *ListPoliciesForbidden) Error() string

func (*ListPoliciesForbidden) GetPayload

func (o *ListPoliciesForbidden) GetPayload() *models.Error

func (*ListPoliciesForbidden) IsClientError

func (o *ListPoliciesForbidden) IsClientError() bool

IsClientError returns true when this list policies forbidden response has a 4xx status code

func (*ListPoliciesForbidden) IsCode

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

IsCode returns true when this list policies forbidden response a status code equal to that given

func (*ListPoliciesForbidden) IsRedirect

func (o *ListPoliciesForbidden) IsRedirect() bool

IsRedirect returns true when this list policies forbidden response has a 3xx status code

func (*ListPoliciesForbidden) IsServerError

func (o *ListPoliciesForbidden) IsServerError() bool

IsServerError returns true when this list policies forbidden response has a 5xx status code

func (*ListPoliciesForbidden) IsSuccess

func (o *ListPoliciesForbidden) IsSuccess() bool

IsSuccess returns true when this list policies forbidden response has a 2xx status code

func (*ListPoliciesForbidden) String

func (o *ListPoliciesForbidden) String() string

type ListPoliciesOK

type ListPoliciesOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.Policies
}

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

Policies

func NewListPoliciesOK

func NewListPoliciesOK() *ListPoliciesOK

NewListPoliciesOK creates a ListPoliciesOK with default headers values

func (*ListPoliciesOK) Code

func (o *ListPoliciesOK) Code() int

Code gets the status code for the list policies o k response

func (*ListPoliciesOK) Error

func (o *ListPoliciesOK) Error() string

func (*ListPoliciesOK) GetPayload

func (o *ListPoliciesOK) GetPayload() *models.Policies

func (*ListPoliciesOK) IsClientError

func (o *ListPoliciesOK) IsClientError() bool

IsClientError returns true when this list policies o k response has a 4xx status code

func (*ListPoliciesOK) IsCode

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

IsCode returns true when this list policies o k response a status code equal to that given

func (*ListPoliciesOK) IsRedirect

func (o *ListPoliciesOK) IsRedirect() bool

IsRedirect returns true when this list policies o k response has a 3xx status code

func (*ListPoliciesOK) IsServerError

func (o *ListPoliciesOK) IsServerError() bool

IsServerError returns true when this list policies o k response has a 5xx status code

func (*ListPoliciesOK) IsSuccess

func (o *ListPoliciesOK) IsSuccess() bool

IsSuccess returns true when this list policies o k response has a 2xx status code

func (*ListPoliciesOK) String

func (o *ListPoliciesOK) String() string

type ListPoliciesParams

type ListPoliciesParams struct {

	/* AfterPolicyID.

	     String represented policy ID

	The `AfterPolicyID` parameter defines the ID of the last displayed policy on a page.
	For example, if there are 20 policies and only 10 are displayed per page, in
	order to jump to the next page, you need to provide the ID of the last policy on that page as
	the value of the `AfterPolicyID` parameter.
	AfterPolicyID
	*/
	AfterPolicyID *string

	/* BeforePolicyID.

	     String represented policy ID

	The `BeforePolicyID` parameter defines the ID of the last displayed policy on a page.
	For example, if there are 20 policies and only 10 are displayed per page, in
	order to jump to the previous page, you need to provide the ID of the first policy on that page as
	the value of the `Before PolicyID` parameter.
	BeforePolicyID
	*/
	BeforePolicyID *string

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Limit.

	     A limit of displayed results per page for listed policies
	Limit

	     Format: int64
	     Default: 20
	*/
	Limit *int64

	/* Order.

	     An ascending or descending order of sorting the policies
	Order
	*/
	Order *string

	/* PolicyTypes.

	   An array of policy types that are to be filtered out

	   Default: "api"
	*/
	PolicyTypes *string

	/* SearchPhrase.

	     An optional and case insensitive search phrase that contains either a policy ID or a policy
	name substring
	SearchPhrase
	*/
	SearchPhrase *string

	/* Sort.

	     Defines the method of sorting the results by a given field
	Sort
	*/
	Sort *string

	/* Wid.

	   Id of your authorization server (workspace)

	   Default: "default"
	*/
	Wid string

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

ListPoliciesParams contains all the parameters to send to the API endpoint

for the list policies operation.

Typically these are written to a http.Request.

func NewListPoliciesParams

func NewListPoliciesParams() *ListPoliciesParams

NewListPoliciesParams creates a new ListPoliciesParams 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 NewListPoliciesParamsWithContext

func NewListPoliciesParamsWithContext(ctx context.Context) *ListPoliciesParams

NewListPoliciesParamsWithContext creates a new ListPoliciesParams object with the ability to set a context for a request.

func NewListPoliciesParamsWithHTTPClient

func NewListPoliciesParamsWithHTTPClient(client *http.Client) *ListPoliciesParams

NewListPoliciesParamsWithHTTPClient creates a new ListPoliciesParams object with the ability to set a custom HTTPClient for a request.

func NewListPoliciesParamsWithTimeout

func NewListPoliciesParamsWithTimeout(timeout time.Duration) *ListPoliciesParams

NewListPoliciesParamsWithTimeout creates a new ListPoliciesParams object with the ability to set a timeout on a request.

func (*ListPoliciesParams) SetAfterPolicyID

func (o *ListPoliciesParams) SetAfterPolicyID(afterPolicyID *string)

SetAfterPolicyID adds the afterPolicyId to the list policies params

func (*ListPoliciesParams) SetBeforePolicyID

func (o *ListPoliciesParams) SetBeforePolicyID(beforePolicyID *string)

SetBeforePolicyID adds the beforePolicyId to the list policies params

func (*ListPoliciesParams) SetContext

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

SetContext adds the context to the list policies params

func (*ListPoliciesParams) SetDefaults

func (o *ListPoliciesParams) SetDefaults()

SetDefaults hydrates default values in the list policies params (not the query body).

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

func (*ListPoliciesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list policies params

func (*ListPoliciesParams) SetIfMatch

func (o *ListPoliciesParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the list policies params

func (*ListPoliciesParams) SetLimit

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

SetLimit adds the limit to the list policies params

func (*ListPoliciesParams) SetOrder

func (o *ListPoliciesParams) SetOrder(order *string)

SetOrder adds the order to the list policies params

func (*ListPoliciesParams) SetPolicyTypes

func (o *ListPoliciesParams) SetPolicyTypes(policyTypes *string)

SetPolicyTypes adds the policyTypes to the list policies params

func (*ListPoliciesParams) SetSearchPhrase

func (o *ListPoliciesParams) SetSearchPhrase(searchPhrase *string)

SetSearchPhrase adds the searchPhrase to the list policies params

func (*ListPoliciesParams) SetSort

func (o *ListPoliciesParams) SetSort(sort *string)

SetSort adds the sort to the list policies params

func (*ListPoliciesParams) SetTimeout

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

SetTimeout adds the timeout to the list policies params

func (*ListPoliciesParams) SetWid

func (o *ListPoliciesParams) SetWid(wid string)

SetWid adds the wid to the list policies params

func (*ListPoliciesParams) WithAfterPolicyID

func (o *ListPoliciesParams) WithAfterPolicyID(afterPolicyID *string) *ListPoliciesParams

WithAfterPolicyID adds the afterPolicyID to the list policies params

func (*ListPoliciesParams) WithBeforePolicyID

func (o *ListPoliciesParams) WithBeforePolicyID(beforePolicyID *string) *ListPoliciesParams

WithBeforePolicyID adds the beforePolicyID to the list policies params

func (*ListPoliciesParams) WithContext

WithContext adds the context to the list policies params

func (*ListPoliciesParams) WithDefaults

func (o *ListPoliciesParams) WithDefaults() *ListPoliciesParams

WithDefaults hydrates default values in the list policies params (not the query body).

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

func (*ListPoliciesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list policies params

func (*ListPoliciesParams) WithIfMatch

func (o *ListPoliciesParams) WithIfMatch(ifMatch *string) *ListPoliciesParams

WithIfMatch adds the ifMatch to the list policies params

func (*ListPoliciesParams) WithLimit

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

WithLimit adds the limit to the list policies params

func (*ListPoliciesParams) WithOrder

func (o *ListPoliciesParams) WithOrder(order *string) *ListPoliciesParams

WithOrder adds the order to the list policies params

func (*ListPoliciesParams) WithPolicyTypes

func (o *ListPoliciesParams) WithPolicyTypes(policyTypes *string) *ListPoliciesParams

WithPolicyTypes adds the policyTypes to the list policies params

func (*ListPoliciesParams) WithSearchPhrase

func (o *ListPoliciesParams) WithSearchPhrase(searchPhrase *string) *ListPoliciesParams

WithSearchPhrase adds the searchPhrase to the list policies params

func (*ListPoliciesParams) WithSort

func (o *ListPoliciesParams) WithSort(sort *string) *ListPoliciesParams

WithSort adds the sort to the list policies params

func (*ListPoliciesParams) WithTimeout

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

WithTimeout adds the timeout to the list policies params

func (*ListPoliciesParams) WithWid

func (o *ListPoliciesParams) WithWid(wid string) *ListPoliciesParams

WithWid adds the wid to the list policies params

func (*ListPoliciesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListPoliciesReader

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

ListPoliciesReader is a Reader for the ListPolicies structure.

func (*ListPoliciesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListPoliciesTooManyRequests

type ListPoliciesTooManyRequests struct {
	Payload *models.Error
}

ListPoliciesTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewListPoliciesTooManyRequests

func NewListPoliciesTooManyRequests() *ListPoliciesTooManyRequests

NewListPoliciesTooManyRequests creates a ListPoliciesTooManyRequests with default headers values

func (*ListPoliciesTooManyRequests) Code

func (o *ListPoliciesTooManyRequests) Code() int

Code gets the status code for the list policies too many requests response

func (*ListPoliciesTooManyRequests) Error

func (*ListPoliciesTooManyRequests) GetPayload

func (o *ListPoliciesTooManyRequests) GetPayload() *models.Error

func (*ListPoliciesTooManyRequests) IsClientError

func (o *ListPoliciesTooManyRequests) IsClientError() bool

IsClientError returns true when this list policies too many requests response has a 4xx status code

func (*ListPoliciesTooManyRequests) IsCode

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

IsCode returns true when this list policies too many requests response a status code equal to that given

func (*ListPoliciesTooManyRequests) IsRedirect

func (o *ListPoliciesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list policies too many requests response has a 3xx status code

func (*ListPoliciesTooManyRequests) IsServerError

func (o *ListPoliciesTooManyRequests) IsServerError() bool

IsServerError returns true when this list policies too many requests response has a 5xx status code

func (*ListPoliciesTooManyRequests) IsSuccess

func (o *ListPoliciesTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list policies too many requests response has a 2xx status code

func (*ListPoliciesTooManyRequests) String

func (o *ListPoliciesTooManyRequests) String() string

type ListPoliciesUnauthorized

type ListPoliciesUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewListPoliciesUnauthorized

func NewListPoliciesUnauthorized() *ListPoliciesUnauthorized

NewListPoliciesUnauthorized creates a ListPoliciesUnauthorized with default headers values

func (*ListPoliciesUnauthorized) Code

func (o *ListPoliciesUnauthorized) Code() int

Code gets the status code for the list policies unauthorized response

func (*ListPoliciesUnauthorized) Error

func (o *ListPoliciesUnauthorized) Error() string

func (*ListPoliciesUnauthorized) GetPayload

func (o *ListPoliciesUnauthorized) GetPayload() *models.Error

func (*ListPoliciesUnauthorized) IsClientError

func (o *ListPoliciesUnauthorized) IsClientError() bool

IsClientError returns true when this list policies unauthorized response has a 4xx status code

func (*ListPoliciesUnauthorized) IsCode

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

IsCode returns true when this list policies unauthorized response a status code equal to that given

func (*ListPoliciesUnauthorized) IsRedirect

func (o *ListPoliciesUnauthorized) IsRedirect() bool

IsRedirect returns true when this list policies unauthorized response has a 3xx status code

func (*ListPoliciesUnauthorized) IsServerError

func (o *ListPoliciesUnauthorized) IsServerError() bool

IsServerError returns true when this list policies unauthorized response has a 5xx status code

func (*ListPoliciesUnauthorized) IsSuccess

func (o *ListPoliciesUnauthorized) IsSuccess() bool

IsSuccess returns true when this list policies unauthorized response has a 2xx status code

func (*ListPoliciesUnauthorized) String

func (o *ListPoliciesUnauthorized) String() string

type ListPolicyExecutionPointsForbidden

type ListPolicyExecutionPointsForbidden struct {
	Payload *models.Error
}

ListPolicyExecutionPointsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewListPolicyExecutionPointsForbidden

func NewListPolicyExecutionPointsForbidden() *ListPolicyExecutionPointsForbidden

NewListPolicyExecutionPointsForbidden creates a ListPolicyExecutionPointsForbidden with default headers values

func (*ListPolicyExecutionPointsForbidden) Code

Code gets the status code for the list policy execution points forbidden response

func (*ListPolicyExecutionPointsForbidden) Error

func (*ListPolicyExecutionPointsForbidden) GetPayload

func (*ListPolicyExecutionPointsForbidden) IsClientError

func (o *ListPolicyExecutionPointsForbidden) IsClientError() bool

IsClientError returns true when this list policy execution points forbidden response has a 4xx status code

func (*ListPolicyExecutionPointsForbidden) IsCode

IsCode returns true when this list policy execution points forbidden response a status code equal to that given

func (*ListPolicyExecutionPointsForbidden) IsRedirect

func (o *ListPolicyExecutionPointsForbidden) IsRedirect() bool

IsRedirect returns true when this list policy execution points forbidden response has a 3xx status code

func (*ListPolicyExecutionPointsForbidden) IsServerError

func (o *ListPolicyExecutionPointsForbidden) IsServerError() bool

IsServerError returns true when this list policy execution points forbidden response has a 5xx status code

func (*ListPolicyExecutionPointsForbidden) IsSuccess

IsSuccess returns true when this list policy execution points forbidden response has a 2xx status code

func (*ListPolicyExecutionPointsForbidden) String

type ListPolicyExecutionPointsOK

type ListPolicyExecutionPointsOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.PolicyExecutionPoints
}

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

Policy execution points

func NewListPolicyExecutionPointsOK

func NewListPolicyExecutionPointsOK() *ListPolicyExecutionPointsOK

NewListPolicyExecutionPointsOK creates a ListPolicyExecutionPointsOK with default headers values

func (*ListPolicyExecutionPointsOK) Code

func (o *ListPolicyExecutionPointsOK) Code() int

Code gets the status code for the list policy execution points o k response

func (*ListPolicyExecutionPointsOK) Error

func (*ListPolicyExecutionPointsOK) GetPayload

func (*ListPolicyExecutionPointsOK) IsClientError

func (o *ListPolicyExecutionPointsOK) IsClientError() bool

IsClientError returns true when this list policy execution points o k response has a 4xx status code

func (*ListPolicyExecutionPointsOK) IsCode

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

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

func (*ListPolicyExecutionPointsOK) IsRedirect

func (o *ListPolicyExecutionPointsOK) IsRedirect() bool

IsRedirect returns true when this list policy execution points o k response has a 3xx status code

func (*ListPolicyExecutionPointsOK) IsServerError

func (o *ListPolicyExecutionPointsOK) IsServerError() bool

IsServerError returns true when this list policy execution points o k response has a 5xx status code

func (*ListPolicyExecutionPointsOK) IsSuccess

func (o *ListPolicyExecutionPointsOK) IsSuccess() bool

IsSuccess returns true when this list policy execution points o k response has a 2xx status code

func (*ListPolicyExecutionPointsOK) String

func (o *ListPolicyExecutionPointsOK) String() string

type ListPolicyExecutionPointsParams

type ListPolicyExecutionPointsParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Wid.

	   Authorization server id

	   Default: "default"
	*/
	Wid string

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

ListPolicyExecutionPointsParams contains all the parameters to send to the API endpoint

for the list policy execution points operation.

Typically these are written to a http.Request.

func NewListPolicyExecutionPointsParams

func NewListPolicyExecutionPointsParams() *ListPolicyExecutionPointsParams

NewListPolicyExecutionPointsParams creates a new ListPolicyExecutionPointsParams 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 NewListPolicyExecutionPointsParamsWithContext

func NewListPolicyExecutionPointsParamsWithContext(ctx context.Context) *ListPolicyExecutionPointsParams

NewListPolicyExecutionPointsParamsWithContext creates a new ListPolicyExecutionPointsParams object with the ability to set a context for a request.

func NewListPolicyExecutionPointsParamsWithHTTPClient

func NewListPolicyExecutionPointsParamsWithHTTPClient(client *http.Client) *ListPolicyExecutionPointsParams

NewListPolicyExecutionPointsParamsWithHTTPClient creates a new ListPolicyExecutionPointsParams object with the ability to set a custom HTTPClient for a request.

func NewListPolicyExecutionPointsParamsWithTimeout

func NewListPolicyExecutionPointsParamsWithTimeout(timeout time.Duration) *ListPolicyExecutionPointsParams

NewListPolicyExecutionPointsParamsWithTimeout creates a new ListPolicyExecutionPointsParams object with the ability to set a timeout on a request.

func (*ListPolicyExecutionPointsParams) SetContext

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

SetContext adds the context to the list policy execution points params

func (*ListPolicyExecutionPointsParams) SetDefaults

func (o *ListPolicyExecutionPointsParams) SetDefaults()

SetDefaults hydrates default values in the list policy execution points params (not the query body).

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

func (*ListPolicyExecutionPointsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list policy execution points params

func (*ListPolicyExecutionPointsParams) SetIfMatch

func (o *ListPolicyExecutionPointsParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the list policy execution points params

func (*ListPolicyExecutionPointsParams) SetTimeout

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

SetTimeout adds the timeout to the list policy execution points params

func (*ListPolicyExecutionPointsParams) SetWid

func (o *ListPolicyExecutionPointsParams) SetWid(wid string)

SetWid adds the wid to the list policy execution points params

func (*ListPolicyExecutionPointsParams) WithContext

WithContext adds the context to the list policy execution points params

func (*ListPolicyExecutionPointsParams) WithDefaults

WithDefaults hydrates default values in the list policy execution points params (not the query body).

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

func (*ListPolicyExecutionPointsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list policy execution points params

func (*ListPolicyExecutionPointsParams) WithIfMatch

WithIfMatch adds the ifMatch to the list policy execution points params

func (*ListPolicyExecutionPointsParams) WithTimeout

WithTimeout adds the timeout to the list policy execution points params

func (*ListPolicyExecutionPointsParams) WithWid

WithWid adds the wid to the list policy execution points params

func (*ListPolicyExecutionPointsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListPolicyExecutionPointsReader

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

ListPolicyExecutionPointsReader is a Reader for the ListPolicyExecutionPoints structure.

func (*ListPolicyExecutionPointsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListPolicyExecutionPointsTooManyRequests

type ListPolicyExecutionPointsTooManyRequests struct {
	Payload *models.Error
}

ListPolicyExecutionPointsTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewListPolicyExecutionPointsTooManyRequests

func NewListPolicyExecutionPointsTooManyRequests() *ListPolicyExecutionPointsTooManyRequests

NewListPolicyExecutionPointsTooManyRequests creates a ListPolicyExecutionPointsTooManyRequests with default headers values

func (*ListPolicyExecutionPointsTooManyRequests) Code

Code gets the status code for the list policy execution points too many requests response

func (*ListPolicyExecutionPointsTooManyRequests) Error

func (*ListPolicyExecutionPointsTooManyRequests) GetPayload

func (*ListPolicyExecutionPointsTooManyRequests) IsClientError

IsClientError returns true when this list policy execution points too many requests response has a 4xx status code

func (*ListPolicyExecutionPointsTooManyRequests) IsCode

IsCode returns true when this list policy execution points too many requests response a status code equal to that given

func (*ListPolicyExecutionPointsTooManyRequests) IsRedirect

IsRedirect returns true when this list policy execution points too many requests response has a 3xx status code

func (*ListPolicyExecutionPointsTooManyRequests) IsServerError

IsServerError returns true when this list policy execution points too many requests response has a 5xx status code

func (*ListPolicyExecutionPointsTooManyRequests) IsSuccess

IsSuccess returns true when this list policy execution points too many requests response has a 2xx status code

func (*ListPolicyExecutionPointsTooManyRequests) String

type ListPolicyExecutionPointsUnauthorized

type ListPolicyExecutionPointsUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewListPolicyExecutionPointsUnauthorized

func NewListPolicyExecutionPointsUnauthorized() *ListPolicyExecutionPointsUnauthorized

NewListPolicyExecutionPointsUnauthorized creates a ListPolicyExecutionPointsUnauthorized with default headers values

func (*ListPolicyExecutionPointsUnauthorized) Code

Code gets the status code for the list policy execution points unauthorized response

func (*ListPolicyExecutionPointsUnauthorized) Error

func (*ListPolicyExecutionPointsUnauthorized) GetPayload

func (*ListPolicyExecutionPointsUnauthorized) IsClientError

func (o *ListPolicyExecutionPointsUnauthorized) IsClientError() bool

IsClientError returns true when this list policy execution points unauthorized response has a 4xx status code

func (*ListPolicyExecutionPointsUnauthorized) IsCode

IsCode returns true when this list policy execution points unauthorized response a status code equal to that given

func (*ListPolicyExecutionPointsUnauthorized) IsRedirect

IsRedirect returns true when this list policy execution points unauthorized response has a 3xx status code

func (*ListPolicyExecutionPointsUnauthorized) IsServerError

func (o *ListPolicyExecutionPointsUnauthorized) IsServerError() bool

IsServerError returns true when this list policy execution points unauthorized response has a 5xx status code

func (*ListPolicyExecutionPointsUnauthorized) IsSuccess

IsSuccess returns true when this list policy execution points unauthorized response has a 2xx status code

func (*ListPolicyExecutionPointsUnauthorized) String

type SetPolicyExecutionPointsBadRequest

type SetPolicyExecutionPointsBadRequest struct {
	Payload *models.Error
}

SetPolicyExecutionPointsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewSetPolicyExecutionPointsBadRequest

func NewSetPolicyExecutionPointsBadRequest() *SetPolicyExecutionPointsBadRequest

NewSetPolicyExecutionPointsBadRequest creates a SetPolicyExecutionPointsBadRequest with default headers values

func (*SetPolicyExecutionPointsBadRequest) Code

Code gets the status code for the set policy execution points bad request response

func (*SetPolicyExecutionPointsBadRequest) Error

func (*SetPolicyExecutionPointsBadRequest) GetPayload

func (*SetPolicyExecutionPointsBadRequest) IsClientError

func (o *SetPolicyExecutionPointsBadRequest) IsClientError() bool

IsClientError returns true when this set policy execution points bad request response has a 4xx status code

func (*SetPolicyExecutionPointsBadRequest) IsCode

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

func (*SetPolicyExecutionPointsBadRequest) IsRedirect

func (o *SetPolicyExecutionPointsBadRequest) IsRedirect() bool

IsRedirect returns true when this set policy execution points bad request response has a 3xx status code

func (*SetPolicyExecutionPointsBadRequest) IsServerError

func (o *SetPolicyExecutionPointsBadRequest) IsServerError() bool

IsServerError returns true when this set policy execution points bad request response has a 5xx status code

func (*SetPolicyExecutionPointsBadRequest) IsSuccess

IsSuccess returns true when this set policy execution points bad request response has a 2xx status code

func (*SetPolicyExecutionPointsBadRequest) String

type SetPolicyExecutionPointsConflict

type SetPolicyExecutionPointsConflict struct {
	Payload *models.Error
}

SetPolicyExecutionPointsConflict describes a response with status code 409, with default header values.

Conflict

func NewSetPolicyExecutionPointsConflict

func NewSetPolicyExecutionPointsConflict() *SetPolicyExecutionPointsConflict

NewSetPolicyExecutionPointsConflict creates a SetPolicyExecutionPointsConflict with default headers values

func (*SetPolicyExecutionPointsConflict) Code

Code gets the status code for the set policy execution points conflict response

func (*SetPolicyExecutionPointsConflict) Error

func (*SetPolicyExecutionPointsConflict) GetPayload

func (*SetPolicyExecutionPointsConflict) IsClientError

func (o *SetPolicyExecutionPointsConflict) IsClientError() bool

IsClientError returns true when this set policy execution points conflict response has a 4xx status code

func (*SetPolicyExecutionPointsConflict) IsCode

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

IsCode returns true when this set policy execution points conflict response a status code equal to that given

func (*SetPolicyExecutionPointsConflict) IsRedirect

func (o *SetPolicyExecutionPointsConflict) IsRedirect() bool

IsRedirect returns true when this set policy execution points conflict response has a 3xx status code

func (*SetPolicyExecutionPointsConflict) IsServerError

func (o *SetPolicyExecutionPointsConflict) IsServerError() bool

IsServerError returns true when this set policy execution points conflict response has a 5xx status code

func (*SetPolicyExecutionPointsConflict) IsSuccess

func (o *SetPolicyExecutionPointsConflict) IsSuccess() bool

IsSuccess returns true when this set policy execution points conflict response has a 2xx status code

func (*SetPolicyExecutionPointsConflict) String

type SetPolicyExecutionPointsForbidden

type SetPolicyExecutionPointsForbidden struct {
	Payload *models.Error
}

SetPolicyExecutionPointsForbidden describes a response with status code 403, with default header values.

Forbidden

func NewSetPolicyExecutionPointsForbidden

func NewSetPolicyExecutionPointsForbidden() *SetPolicyExecutionPointsForbidden

NewSetPolicyExecutionPointsForbidden creates a SetPolicyExecutionPointsForbidden with default headers values

func (*SetPolicyExecutionPointsForbidden) Code

Code gets the status code for the set policy execution points forbidden response

func (*SetPolicyExecutionPointsForbidden) Error

func (*SetPolicyExecutionPointsForbidden) GetPayload

func (*SetPolicyExecutionPointsForbidden) IsClientError

func (o *SetPolicyExecutionPointsForbidden) IsClientError() bool

IsClientError returns true when this set policy execution points forbidden response has a 4xx status code

func (*SetPolicyExecutionPointsForbidden) IsCode

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

IsCode returns true when this set policy execution points forbidden response a status code equal to that given

func (*SetPolicyExecutionPointsForbidden) IsRedirect

func (o *SetPolicyExecutionPointsForbidden) IsRedirect() bool

IsRedirect returns true when this set policy execution points forbidden response has a 3xx status code

func (*SetPolicyExecutionPointsForbidden) IsServerError

func (o *SetPolicyExecutionPointsForbidden) IsServerError() bool

IsServerError returns true when this set policy execution points forbidden response has a 5xx status code

func (*SetPolicyExecutionPointsForbidden) IsSuccess

func (o *SetPolicyExecutionPointsForbidden) IsSuccess() bool

IsSuccess returns true when this set policy execution points forbidden response has a 2xx status code

func (*SetPolicyExecutionPointsForbidden) String

type SetPolicyExecutionPointsNotFound

type SetPolicyExecutionPointsNotFound struct {
	Payload *models.Error
}

SetPolicyExecutionPointsNotFound describes a response with status code 404, with default header values.

Not found

func NewSetPolicyExecutionPointsNotFound

func NewSetPolicyExecutionPointsNotFound() *SetPolicyExecutionPointsNotFound

NewSetPolicyExecutionPointsNotFound creates a SetPolicyExecutionPointsNotFound with default headers values

func (*SetPolicyExecutionPointsNotFound) Code

Code gets the status code for the set policy execution points not found response

func (*SetPolicyExecutionPointsNotFound) Error

func (*SetPolicyExecutionPointsNotFound) GetPayload

func (*SetPolicyExecutionPointsNotFound) IsClientError

func (o *SetPolicyExecutionPointsNotFound) IsClientError() bool

IsClientError returns true when this set policy execution points not found response has a 4xx status code

func (*SetPolicyExecutionPointsNotFound) IsCode

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

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

func (*SetPolicyExecutionPointsNotFound) IsRedirect

func (o *SetPolicyExecutionPointsNotFound) IsRedirect() bool

IsRedirect returns true when this set policy execution points not found response has a 3xx status code

func (*SetPolicyExecutionPointsNotFound) IsServerError

func (o *SetPolicyExecutionPointsNotFound) IsServerError() bool

IsServerError returns true when this set policy execution points not found response has a 5xx status code

func (*SetPolicyExecutionPointsNotFound) IsSuccess

func (o *SetPolicyExecutionPointsNotFound) IsSuccess() bool

IsSuccess returns true when this set policy execution points not found response has a 2xx status code

func (*SetPolicyExecutionPointsNotFound) String

type SetPolicyExecutionPointsOK

type SetPolicyExecutionPointsOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.PolicyExecutionPoints
}

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

Policy execution points

func NewSetPolicyExecutionPointsOK

func NewSetPolicyExecutionPointsOK() *SetPolicyExecutionPointsOK

NewSetPolicyExecutionPointsOK creates a SetPolicyExecutionPointsOK with default headers values

func (*SetPolicyExecutionPointsOK) Code

func (o *SetPolicyExecutionPointsOK) Code() int

Code gets the status code for the set policy execution points o k response

func (*SetPolicyExecutionPointsOK) Error

func (*SetPolicyExecutionPointsOK) GetPayload

func (*SetPolicyExecutionPointsOK) IsClientError

func (o *SetPolicyExecutionPointsOK) IsClientError() bool

IsClientError returns true when this set policy execution points o k response has a 4xx status code

func (*SetPolicyExecutionPointsOK) IsCode

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

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

func (*SetPolicyExecutionPointsOK) IsRedirect

func (o *SetPolicyExecutionPointsOK) IsRedirect() bool

IsRedirect returns true when this set policy execution points o k response has a 3xx status code

func (*SetPolicyExecutionPointsOK) IsServerError

func (o *SetPolicyExecutionPointsOK) IsServerError() bool

IsServerError returns true when this set policy execution points o k response has a 5xx status code

func (*SetPolicyExecutionPointsOK) IsSuccess

func (o *SetPolicyExecutionPointsOK) IsSuccess() bool

IsSuccess returns true when this set policy execution points o k response has a 2xx status code

func (*SetPolicyExecutionPointsOK) String

func (o *SetPolicyExecutionPointsOK) String() string

type SetPolicyExecutionPointsParams

type SetPolicyExecutionPointsParams struct {

	// Executions.
	Executions *models.PolicyExecutionPoints

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Wid.

	   Authorization server id

	   Default: "default"
	*/
	Wid string

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

SetPolicyExecutionPointsParams contains all the parameters to send to the API endpoint

for the set policy execution points operation.

Typically these are written to a http.Request.

func NewSetPolicyExecutionPointsParams

func NewSetPolicyExecutionPointsParams() *SetPolicyExecutionPointsParams

NewSetPolicyExecutionPointsParams creates a new SetPolicyExecutionPointsParams 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 NewSetPolicyExecutionPointsParamsWithContext

func NewSetPolicyExecutionPointsParamsWithContext(ctx context.Context) *SetPolicyExecutionPointsParams

NewSetPolicyExecutionPointsParamsWithContext creates a new SetPolicyExecutionPointsParams object with the ability to set a context for a request.

func NewSetPolicyExecutionPointsParamsWithHTTPClient

func NewSetPolicyExecutionPointsParamsWithHTTPClient(client *http.Client) *SetPolicyExecutionPointsParams

NewSetPolicyExecutionPointsParamsWithHTTPClient creates a new SetPolicyExecutionPointsParams object with the ability to set a custom HTTPClient for a request.

func NewSetPolicyExecutionPointsParamsWithTimeout

func NewSetPolicyExecutionPointsParamsWithTimeout(timeout time.Duration) *SetPolicyExecutionPointsParams

NewSetPolicyExecutionPointsParamsWithTimeout creates a new SetPolicyExecutionPointsParams object with the ability to set a timeout on a request.

func (*SetPolicyExecutionPointsParams) SetContext

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

SetContext adds the context to the set policy execution points params

func (*SetPolicyExecutionPointsParams) SetDefaults

func (o *SetPolicyExecutionPointsParams) SetDefaults()

SetDefaults hydrates default values in the set policy execution points params (not the query body).

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

func (*SetPolicyExecutionPointsParams) SetExecutions

func (o *SetPolicyExecutionPointsParams) SetExecutions(executions *models.PolicyExecutionPoints)

SetExecutions adds the executions to the set policy execution points params

func (*SetPolicyExecutionPointsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set policy execution points params

func (*SetPolicyExecutionPointsParams) SetIfMatch

func (o *SetPolicyExecutionPointsParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the set policy execution points params

func (*SetPolicyExecutionPointsParams) SetTimeout

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

SetTimeout adds the timeout to the set policy execution points params

func (*SetPolicyExecutionPointsParams) SetWid

func (o *SetPolicyExecutionPointsParams) SetWid(wid string)

SetWid adds the wid to the set policy execution points params

func (*SetPolicyExecutionPointsParams) WithContext

WithContext adds the context to the set policy execution points params

func (*SetPolicyExecutionPointsParams) WithDefaults

WithDefaults hydrates default values in the set policy execution points params (not the query body).

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

func (*SetPolicyExecutionPointsParams) WithExecutions

WithExecutions adds the executions to the set policy execution points params

func (*SetPolicyExecutionPointsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set policy execution points params

func (*SetPolicyExecutionPointsParams) WithIfMatch

WithIfMatch adds the ifMatch to the set policy execution points params

func (*SetPolicyExecutionPointsParams) WithTimeout

WithTimeout adds the timeout to the set policy execution points params

func (*SetPolicyExecutionPointsParams) WithWid

WithWid adds the wid to the set policy execution points params

func (*SetPolicyExecutionPointsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetPolicyExecutionPointsReader

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

SetPolicyExecutionPointsReader is a Reader for the SetPolicyExecutionPoints structure.

func (*SetPolicyExecutionPointsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetPolicyExecutionPointsTooManyRequests

type SetPolicyExecutionPointsTooManyRequests struct {
	Payload *models.Error
}

SetPolicyExecutionPointsTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewSetPolicyExecutionPointsTooManyRequests

func NewSetPolicyExecutionPointsTooManyRequests() *SetPolicyExecutionPointsTooManyRequests

NewSetPolicyExecutionPointsTooManyRequests creates a SetPolicyExecutionPointsTooManyRequests with default headers values

func (*SetPolicyExecutionPointsTooManyRequests) Code

Code gets the status code for the set policy execution points too many requests response

func (*SetPolicyExecutionPointsTooManyRequests) Error

func (*SetPolicyExecutionPointsTooManyRequests) GetPayload

func (*SetPolicyExecutionPointsTooManyRequests) IsClientError

func (o *SetPolicyExecutionPointsTooManyRequests) IsClientError() bool

IsClientError returns true when this set policy execution points too many requests response has a 4xx status code

func (*SetPolicyExecutionPointsTooManyRequests) IsCode

IsCode returns true when this set policy execution points too many requests response a status code equal to that given

func (*SetPolicyExecutionPointsTooManyRequests) IsRedirect

IsRedirect returns true when this set policy execution points too many requests response has a 3xx status code

func (*SetPolicyExecutionPointsTooManyRequests) IsServerError

func (o *SetPolicyExecutionPointsTooManyRequests) IsServerError() bool

IsServerError returns true when this set policy execution points too many requests response has a 5xx status code

func (*SetPolicyExecutionPointsTooManyRequests) IsSuccess

IsSuccess returns true when this set policy execution points too many requests response has a 2xx status code

func (*SetPolicyExecutionPointsTooManyRequests) String

type SetPolicyExecutionPointsUnauthorized

type SetPolicyExecutionPointsUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewSetPolicyExecutionPointsUnauthorized

func NewSetPolicyExecutionPointsUnauthorized() *SetPolicyExecutionPointsUnauthorized

NewSetPolicyExecutionPointsUnauthorized creates a SetPolicyExecutionPointsUnauthorized with default headers values

func (*SetPolicyExecutionPointsUnauthorized) Code

Code gets the status code for the set policy execution points unauthorized response

func (*SetPolicyExecutionPointsUnauthorized) Error

func (*SetPolicyExecutionPointsUnauthorized) GetPayload

func (*SetPolicyExecutionPointsUnauthorized) IsClientError

func (o *SetPolicyExecutionPointsUnauthorized) IsClientError() bool

IsClientError returns true when this set policy execution points unauthorized response has a 4xx status code

func (*SetPolicyExecutionPointsUnauthorized) IsCode

IsCode returns true when this set policy execution points unauthorized response a status code equal to that given

func (*SetPolicyExecutionPointsUnauthorized) IsRedirect

IsRedirect returns true when this set policy execution points unauthorized response has a 3xx status code

func (*SetPolicyExecutionPointsUnauthorized) IsServerError

func (o *SetPolicyExecutionPointsUnauthorized) IsServerError() bool

IsServerError returns true when this set policy execution points unauthorized response has a 5xx status code

func (*SetPolicyExecutionPointsUnauthorized) IsSuccess

IsSuccess returns true when this set policy execution points unauthorized response has a 2xx status code

func (*SetPolicyExecutionPointsUnauthorized) String

type SetPolicyExecutionPointsUnprocessableEntity

type SetPolicyExecutionPointsUnprocessableEntity struct {
	Payload *models.Error
}

SetPolicyExecutionPointsUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewSetPolicyExecutionPointsUnprocessableEntity

func NewSetPolicyExecutionPointsUnprocessableEntity() *SetPolicyExecutionPointsUnprocessableEntity

NewSetPolicyExecutionPointsUnprocessableEntity creates a SetPolicyExecutionPointsUnprocessableEntity with default headers values

func (*SetPolicyExecutionPointsUnprocessableEntity) Code

Code gets the status code for the set policy execution points unprocessable entity response

func (*SetPolicyExecutionPointsUnprocessableEntity) Error

func (*SetPolicyExecutionPointsUnprocessableEntity) GetPayload

func (*SetPolicyExecutionPointsUnprocessableEntity) IsClientError

IsClientError returns true when this set policy execution points unprocessable entity response has a 4xx status code

func (*SetPolicyExecutionPointsUnprocessableEntity) IsCode

IsCode returns true when this set policy execution points unprocessable entity response a status code equal to that given

func (*SetPolicyExecutionPointsUnprocessableEntity) IsRedirect

IsRedirect returns true when this set policy execution points unprocessable entity response has a 3xx status code

func (*SetPolicyExecutionPointsUnprocessableEntity) IsServerError

IsServerError returns true when this set policy execution points unprocessable entity response has a 5xx status code

func (*SetPolicyExecutionPointsUnprocessableEntity) IsSuccess

IsSuccess returns true when this set policy execution points unprocessable entity response has a 2xx status code

func (*SetPolicyExecutionPointsUnprocessableEntity) String

type TestPolicyBadRequest

type TestPolicyBadRequest struct {
	Payload *models.Error
}

TestPolicyBadRequest describes a response with status code 400, with default header values.

Bad request

func NewTestPolicyBadRequest

func NewTestPolicyBadRequest() *TestPolicyBadRequest

NewTestPolicyBadRequest creates a TestPolicyBadRequest with default headers values

func (*TestPolicyBadRequest) Code

func (o *TestPolicyBadRequest) Code() int

Code gets the status code for the test policy bad request response

func (*TestPolicyBadRequest) Error

func (o *TestPolicyBadRequest) Error() string

func (*TestPolicyBadRequest) GetPayload

func (o *TestPolicyBadRequest) GetPayload() *models.Error

func (*TestPolicyBadRequest) IsClientError

func (o *TestPolicyBadRequest) IsClientError() bool

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

func (*TestPolicyBadRequest) IsCode

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

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

func (*TestPolicyBadRequest) IsRedirect

func (o *TestPolicyBadRequest) IsRedirect() bool

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

func (*TestPolicyBadRequest) IsServerError

func (o *TestPolicyBadRequest) IsServerError() bool

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

func (*TestPolicyBadRequest) IsSuccess

func (o *TestPolicyBadRequest) IsSuccess() bool

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

func (*TestPolicyBadRequest) String

func (o *TestPolicyBadRequest) String() string

type TestPolicyConflict

type TestPolicyConflict struct {
	Payload *models.Error
}

TestPolicyConflict describes a response with status code 409, with default header values.

Conflict

func NewTestPolicyConflict

func NewTestPolicyConflict() *TestPolicyConflict

NewTestPolicyConflict creates a TestPolicyConflict with default headers values

func (*TestPolicyConflict) Code

func (o *TestPolicyConflict) Code() int

Code gets the status code for the test policy conflict response

func (*TestPolicyConflict) Error

func (o *TestPolicyConflict) Error() string

func (*TestPolicyConflict) GetPayload

func (o *TestPolicyConflict) GetPayload() *models.Error

func (*TestPolicyConflict) IsClientError

func (o *TestPolicyConflict) IsClientError() bool

IsClientError returns true when this test policy conflict response has a 4xx status code

func (*TestPolicyConflict) IsCode

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

IsCode returns true when this test policy conflict response a status code equal to that given

func (*TestPolicyConflict) IsRedirect

func (o *TestPolicyConflict) IsRedirect() bool

IsRedirect returns true when this test policy conflict response has a 3xx status code

func (*TestPolicyConflict) IsServerError

func (o *TestPolicyConflict) IsServerError() bool

IsServerError returns true when this test policy conflict response has a 5xx status code

func (*TestPolicyConflict) IsSuccess

func (o *TestPolicyConflict) IsSuccess() bool

IsSuccess returns true when this test policy conflict response has a 2xx status code

func (*TestPolicyConflict) String

func (o *TestPolicyConflict) String() string

type TestPolicyForbidden

type TestPolicyForbidden struct {
	Payload *models.Error
}

TestPolicyForbidden describes a response with status code 403, with default header values.

Forbidden

func NewTestPolicyForbidden

func NewTestPolicyForbidden() *TestPolicyForbidden

NewTestPolicyForbidden creates a TestPolicyForbidden with default headers values

func (*TestPolicyForbidden) Code

func (o *TestPolicyForbidden) Code() int

Code gets the status code for the test policy forbidden response

func (*TestPolicyForbidden) Error

func (o *TestPolicyForbidden) Error() string

func (*TestPolicyForbidden) GetPayload

func (o *TestPolicyForbidden) GetPayload() *models.Error

func (*TestPolicyForbidden) IsClientError

func (o *TestPolicyForbidden) IsClientError() bool

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

func (*TestPolicyForbidden) IsCode

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

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

func (*TestPolicyForbidden) IsRedirect

func (o *TestPolicyForbidden) IsRedirect() bool

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

func (*TestPolicyForbidden) IsServerError

func (o *TestPolicyForbidden) IsServerError() bool

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

func (*TestPolicyForbidden) IsSuccess

func (o *TestPolicyForbidden) IsSuccess() bool

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

func (*TestPolicyForbidden) String

func (o *TestPolicyForbidden) String() string

type TestPolicyNotFound

type TestPolicyNotFound struct {
	Payload *models.Error
}

TestPolicyNotFound describes a response with status code 404, with default header values.

Not found

func NewTestPolicyNotFound

func NewTestPolicyNotFound() *TestPolicyNotFound

NewTestPolicyNotFound creates a TestPolicyNotFound with default headers values

func (*TestPolicyNotFound) Code

func (o *TestPolicyNotFound) Code() int

Code gets the status code for the test policy not found response

func (*TestPolicyNotFound) Error

func (o *TestPolicyNotFound) Error() string

func (*TestPolicyNotFound) GetPayload

func (o *TestPolicyNotFound) GetPayload() *models.Error

func (*TestPolicyNotFound) IsClientError

func (o *TestPolicyNotFound) IsClientError() bool

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

func (*TestPolicyNotFound) IsCode

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

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

func (*TestPolicyNotFound) IsRedirect

func (o *TestPolicyNotFound) IsRedirect() bool

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

func (*TestPolicyNotFound) IsServerError

func (o *TestPolicyNotFound) IsServerError() bool

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

func (*TestPolicyNotFound) IsSuccess

func (o *TestPolicyNotFound) IsSuccess() bool

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

func (*TestPolicyNotFound) String

func (o *TestPolicyNotFound) String() string

type TestPolicyOK

type TestPolicyOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.TestPolicyResponse
}

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

Test policy result

func NewTestPolicyOK

func NewTestPolicyOK() *TestPolicyOK

NewTestPolicyOK creates a TestPolicyOK with default headers values

func (*TestPolicyOK) Code

func (o *TestPolicyOK) Code() int

Code gets the status code for the test policy o k response

func (*TestPolicyOK) Error

func (o *TestPolicyOK) Error() string

func (*TestPolicyOK) GetPayload

func (o *TestPolicyOK) GetPayload() *models.TestPolicyResponse

func (*TestPolicyOK) IsClientError

func (o *TestPolicyOK) IsClientError() bool

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

func (*TestPolicyOK) IsCode

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

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

func (*TestPolicyOK) IsRedirect

func (o *TestPolicyOK) IsRedirect() bool

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

func (*TestPolicyOK) IsServerError

func (o *TestPolicyOK) IsServerError() bool

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

func (*TestPolicyOK) IsSuccess

func (o *TestPolicyOK) IsSuccess() bool

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

func (*TestPolicyOK) String

func (o *TestPolicyOK) String() string

type TestPolicyParams

type TestPolicyParams struct {

	// TestPolicyRequest.
	TestPolicyRequest *models.TestPolicyRequest

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

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

TestPolicyParams contains all the parameters to send to the API endpoint

for the test policy operation.

Typically these are written to a http.Request.

func NewTestPolicyParams

func NewTestPolicyParams() *TestPolicyParams

NewTestPolicyParams creates a new TestPolicyParams 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 NewTestPolicyParamsWithContext

func NewTestPolicyParamsWithContext(ctx context.Context) *TestPolicyParams

NewTestPolicyParamsWithContext creates a new TestPolicyParams object with the ability to set a context for a request.

func NewTestPolicyParamsWithHTTPClient

func NewTestPolicyParamsWithHTTPClient(client *http.Client) *TestPolicyParams

NewTestPolicyParamsWithHTTPClient creates a new TestPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewTestPolicyParamsWithTimeout

func NewTestPolicyParamsWithTimeout(timeout time.Duration) *TestPolicyParams

NewTestPolicyParamsWithTimeout creates a new TestPolicyParams object with the ability to set a timeout on a request.

func (*TestPolicyParams) SetContext

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

SetContext adds the context to the test policy params

func (*TestPolicyParams) SetDefaults

func (o *TestPolicyParams) SetDefaults()

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

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

func (*TestPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the test policy params

func (*TestPolicyParams) SetIfMatch

func (o *TestPolicyParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the test policy params

func (*TestPolicyParams) SetTestPolicyRequest

func (o *TestPolicyParams) SetTestPolicyRequest(testPolicyRequest *models.TestPolicyRequest)

SetTestPolicyRequest adds the testPolicyRequest to the test policy params

func (*TestPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the test policy params

func (*TestPolicyParams) WithContext

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

WithContext adds the context to the test policy params

func (*TestPolicyParams) WithDefaults

func (o *TestPolicyParams) WithDefaults() *TestPolicyParams

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

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

func (*TestPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the test policy params

func (*TestPolicyParams) WithIfMatch

func (o *TestPolicyParams) WithIfMatch(ifMatch *string) *TestPolicyParams

WithIfMatch adds the ifMatch to the test policy params

func (*TestPolicyParams) WithTestPolicyRequest

func (o *TestPolicyParams) WithTestPolicyRequest(testPolicyRequest *models.TestPolicyRequest) *TestPolicyParams

WithTestPolicyRequest adds the testPolicyRequest to the test policy params

func (*TestPolicyParams) WithTimeout

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

WithTimeout adds the timeout to the test policy params

func (*TestPolicyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TestPolicyReader

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

TestPolicyReader is a Reader for the TestPolicy structure.

func (*TestPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TestPolicyTooManyRequests

type TestPolicyTooManyRequests struct {
	Payload *models.Error
}

TestPolicyTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewTestPolicyTooManyRequests

func NewTestPolicyTooManyRequests() *TestPolicyTooManyRequests

NewTestPolicyTooManyRequests creates a TestPolicyTooManyRequests with default headers values

func (*TestPolicyTooManyRequests) Code

func (o *TestPolicyTooManyRequests) Code() int

Code gets the status code for the test policy too many requests response

func (*TestPolicyTooManyRequests) Error

func (o *TestPolicyTooManyRequests) Error() string

func (*TestPolicyTooManyRequests) GetPayload

func (o *TestPolicyTooManyRequests) GetPayload() *models.Error

func (*TestPolicyTooManyRequests) IsClientError

func (o *TestPolicyTooManyRequests) IsClientError() bool

IsClientError returns true when this test policy too many requests response has a 4xx status code

func (*TestPolicyTooManyRequests) IsCode

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

IsCode returns true when this test policy too many requests response a status code equal to that given

func (*TestPolicyTooManyRequests) IsRedirect

func (o *TestPolicyTooManyRequests) IsRedirect() bool

IsRedirect returns true when this test policy too many requests response has a 3xx status code

func (*TestPolicyTooManyRequests) IsServerError

func (o *TestPolicyTooManyRequests) IsServerError() bool

IsServerError returns true when this test policy too many requests response has a 5xx status code

func (*TestPolicyTooManyRequests) IsSuccess

func (o *TestPolicyTooManyRequests) IsSuccess() bool

IsSuccess returns true when this test policy too many requests response has a 2xx status code

func (*TestPolicyTooManyRequests) String

func (o *TestPolicyTooManyRequests) String() string

type TestPolicyUnauthorized

type TestPolicyUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewTestPolicyUnauthorized

func NewTestPolicyUnauthorized() *TestPolicyUnauthorized

NewTestPolicyUnauthorized creates a TestPolicyUnauthorized with default headers values

func (*TestPolicyUnauthorized) Code

func (o *TestPolicyUnauthorized) Code() int

Code gets the status code for the test policy unauthorized response

func (*TestPolicyUnauthorized) Error

func (o *TestPolicyUnauthorized) Error() string

func (*TestPolicyUnauthorized) GetPayload

func (o *TestPolicyUnauthorized) GetPayload() *models.Error

func (*TestPolicyUnauthorized) IsClientError

func (o *TestPolicyUnauthorized) IsClientError() bool

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

func (*TestPolicyUnauthorized) IsCode

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

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

func (*TestPolicyUnauthorized) IsRedirect

func (o *TestPolicyUnauthorized) IsRedirect() bool

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

func (*TestPolicyUnauthorized) IsServerError

func (o *TestPolicyUnauthorized) IsServerError() bool

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

func (*TestPolicyUnauthorized) IsSuccess

func (o *TestPolicyUnauthorized) IsSuccess() bool

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

func (*TestPolicyUnauthorized) String

func (o *TestPolicyUnauthorized) String() string

type TestPolicyUnprocessableEntity

type TestPolicyUnprocessableEntity struct {
	Payload *models.Error
}

TestPolicyUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewTestPolicyUnprocessableEntity

func NewTestPolicyUnprocessableEntity() *TestPolicyUnprocessableEntity

NewTestPolicyUnprocessableEntity creates a TestPolicyUnprocessableEntity with default headers values

func (*TestPolicyUnprocessableEntity) Code

Code gets the status code for the test policy unprocessable entity response

func (*TestPolicyUnprocessableEntity) Error

func (*TestPolicyUnprocessableEntity) GetPayload

func (o *TestPolicyUnprocessableEntity) GetPayload() *models.Error

func (*TestPolicyUnprocessableEntity) IsClientError

func (o *TestPolicyUnprocessableEntity) IsClientError() bool

IsClientError returns true when this test policy unprocessable entity response has a 4xx status code

func (*TestPolicyUnprocessableEntity) IsCode

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

IsCode returns true when this test policy unprocessable entity response a status code equal to that given

func (*TestPolicyUnprocessableEntity) IsRedirect

func (o *TestPolicyUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this test policy unprocessable entity response has a 3xx status code

func (*TestPolicyUnprocessableEntity) IsServerError

func (o *TestPolicyUnprocessableEntity) IsServerError() bool

IsServerError returns true when this test policy unprocessable entity response has a 5xx status code

func (*TestPolicyUnprocessableEntity) IsSuccess

func (o *TestPolicyUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this test policy unprocessable entity response has a 2xx status code

func (*TestPolicyUnprocessableEntity) String

type UpdatePolicyBadRequest

type UpdatePolicyBadRequest struct {
	Payload *models.Error
}

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

func (o *UpdatePolicyBadRequest) Code() int

Code gets the status code for the update policy bad request response

func (*UpdatePolicyBadRequest) Error

func (o *UpdatePolicyBadRequest) Error() string

func (*UpdatePolicyBadRequest) GetPayload

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

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 UpdatePolicyConflict

type UpdatePolicyConflict struct {
	Payload *models.Error
}

UpdatePolicyConflict describes a response with status code 409, with default header values.

Conflict

func NewUpdatePolicyConflict

func NewUpdatePolicyConflict() *UpdatePolicyConflict

NewUpdatePolicyConflict creates a UpdatePolicyConflict with default headers values

func (*UpdatePolicyConflict) Code

func (o *UpdatePolicyConflict) Code() int

Code gets the status code for the update policy conflict response

func (*UpdatePolicyConflict) Error

func (o *UpdatePolicyConflict) Error() string

func (*UpdatePolicyConflict) GetPayload

func (o *UpdatePolicyConflict) GetPayload() *models.Error

func (*UpdatePolicyConflict) IsClientError

func (o *UpdatePolicyConflict) IsClientError() bool

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

func (*UpdatePolicyConflict) IsCode

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

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

func (*UpdatePolicyConflict) IsRedirect

func (o *UpdatePolicyConflict) IsRedirect() bool

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

func (*UpdatePolicyConflict) IsServerError

func (o *UpdatePolicyConflict) IsServerError() bool

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

func (*UpdatePolicyConflict) IsSuccess

func (o *UpdatePolicyConflict) IsSuccess() bool

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

func (*UpdatePolicyConflict) String

func (o *UpdatePolicyConflict) String() string

type UpdatePolicyCreated

type UpdatePolicyCreated struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.Policy
}

UpdatePolicyCreated describes a response with status code 201, with default header values.

Policy

func NewUpdatePolicyCreated

func NewUpdatePolicyCreated() *UpdatePolicyCreated

NewUpdatePolicyCreated creates a UpdatePolicyCreated with default headers values

func (*UpdatePolicyCreated) Code

func (o *UpdatePolicyCreated) Code() int

Code gets the status code for the update policy created response

func (*UpdatePolicyCreated) Error

func (o *UpdatePolicyCreated) Error() string

func (*UpdatePolicyCreated) GetPayload

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

func (*UpdatePolicyCreated) IsClientError

func (o *UpdatePolicyCreated) IsClientError() bool

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

func (*UpdatePolicyCreated) IsCode

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

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

func (*UpdatePolicyCreated) IsRedirect

func (o *UpdatePolicyCreated) IsRedirect() bool

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

func (*UpdatePolicyCreated) IsServerError

func (o *UpdatePolicyCreated) IsServerError() bool

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

func (*UpdatePolicyCreated) IsSuccess

func (o *UpdatePolicyCreated) IsSuccess() bool

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

func (*UpdatePolicyCreated) String

func (o *UpdatePolicyCreated) String() string

type UpdatePolicyForbidden

type UpdatePolicyForbidden struct {
	Payload *models.Error
}

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

func (o *UpdatePolicyForbidden) Code() int

Code gets the status code for the update policy forbidden response

func (*UpdatePolicyForbidden) Error

func (o *UpdatePolicyForbidden) Error() string

func (*UpdatePolicyForbidden) GetPayload

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

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 UpdatePolicyNotFound

type UpdatePolicyNotFound struct {
	Payload *models.Error
}

UpdatePolicyNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdatePolicyNotFound

func NewUpdatePolicyNotFound() *UpdatePolicyNotFound

NewUpdatePolicyNotFound creates a UpdatePolicyNotFound with default headers values

func (*UpdatePolicyNotFound) Code

func (o *UpdatePolicyNotFound) Code() int

Code gets the status code for the update policy not found response

func (*UpdatePolicyNotFound) Error

func (o *UpdatePolicyNotFound) Error() string

func (*UpdatePolicyNotFound) GetPayload

func (o *UpdatePolicyNotFound) GetPayload() *models.Error

func (*UpdatePolicyNotFound) IsClientError

func (o *UpdatePolicyNotFound) IsClientError() bool

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

func (*UpdatePolicyNotFound) IsCode

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

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

func (*UpdatePolicyNotFound) IsRedirect

func (o *UpdatePolicyNotFound) IsRedirect() bool

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

func (*UpdatePolicyNotFound) IsServerError

func (o *UpdatePolicyNotFound) IsServerError() bool

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

func (*UpdatePolicyNotFound) IsSuccess

func (o *UpdatePolicyNotFound) IsSuccess() bool

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

func (*UpdatePolicyNotFound) String

func (o *UpdatePolicyNotFound) String() string

type UpdatePolicyParams

type UpdatePolicyParams struct {

	// PolicyBody.
	PolicyBody *models.Policy

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Pid.

	   ID of the policy to be updated
	*/
	Pid 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) 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) SetIfMatch

func (o *UpdatePolicyParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the update policy params

func (*UpdatePolicyParams) SetPid

func (o *UpdatePolicyParams) SetPid(pid string)

SetPid adds the pid to the update policy params

func (*UpdatePolicyParams) SetPolicyBody

func (o *UpdatePolicyParams) SetPolicyBody(policyBody *models.Policy)

SetPolicyBody adds the policyBody 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) 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) WithIfMatch

func (o *UpdatePolicyParams) WithIfMatch(ifMatch *string) *UpdatePolicyParams

WithIfMatch adds the ifMatch to the update policy params

func (*UpdatePolicyParams) WithPid

func (o *UpdatePolicyParams) WithPid(pid string) *UpdatePolicyParams

WithPid adds the pid to the update policy params

func (*UpdatePolicyParams) WithPolicyBody

func (o *UpdatePolicyParams) WithPolicyBody(policyBody *models.Policy) *UpdatePolicyParams

WithPolicyBody adds the policyBody 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 UpdatePolicyTooManyRequests

type UpdatePolicyTooManyRequests struct {
	Payload *models.Error
}

UpdatePolicyTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewUpdatePolicyTooManyRequests

func NewUpdatePolicyTooManyRequests() *UpdatePolicyTooManyRequests

NewUpdatePolicyTooManyRequests creates a UpdatePolicyTooManyRequests with default headers values

func (*UpdatePolicyTooManyRequests) Code

func (o *UpdatePolicyTooManyRequests) Code() int

Code gets the status code for the update policy too many requests response

func (*UpdatePolicyTooManyRequests) Error

func (*UpdatePolicyTooManyRequests) GetPayload

func (o *UpdatePolicyTooManyRequests) GetPayload() *models.Error

func (*UpdatePolicyTooManyRequests) IsClientError

func (o *UpdatePolicyTooManyRequests) IsClientError() bool

IsClientError returns true when this update policy too many requests response has a 4xx status code

func (*UpdatePolicyTooManyRequests) IsCode

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

IsCode returns true when this update policy too many requests response a status code equal to that given

func (*UpdatePolicyTooManyRequests) IsRedirect

func (o *UpdatePolicyTooManyRequests) IsRedirect() bool

IsRedirect returns true when this update policy too many requests response has a 3xx status code

func (*UpdatePolicyTooManyRequests) IsServerError

func (o *UpdatePolicyTooManyRequests) IsServerError() bool

IsServerError returns true when this update policy too many requests response has a 5xx status code

func (*UpdatePolicyTooManyRequests) IsSuccess

func (o *UpdatePolicyTooManyRequests) IsSuccess() bool

IsSuccess returns true when this update policy too many requests response has a 2xx status code

func (*UpdatePolicyTooManyRequests) String

func (o *UpdatePolicyTooManyRequests) String() string

type UpdatePolicyUnauthorized

type UpdatePolicyUnauthorized struct {
	Payload *models.Error
}

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

func (o *UpdatePolicyUnauthorized) Code() int

Code gets the status code for the update policy unauthorized response

func (*UpdatePolicyUnauthorized) Error

func (o *UpdatePolicyUnauthorized) Error() string

func (*UpdatePolicyUnauthorized) GetPayload

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

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

type UpdatePolicyUnprocessableEntity

type UpdatePolicyUnprocessableEntity struct {
	Payload *models.Error
}

UpdatePolicyUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewUpdatePolicyUnprocessableEntity

func NewUpdatePolicyUnprocessableEntity() *UpdatePolicyUnprocessableEntity

NewUpdatePolicyUnprocessableEntity creates a UpdatePolicyUnprocessableEntity with default headers values

func (*UpdatePolicyUnprocessableEntity) Code

Code gets the status code for the update policy unprocessable entity response

func (*UpdatePolicyUnprocessableEntity) Error

func (*UpdatePolicyUnprocessableEntity) GetPayload

func (o *UpdatePolicyUnprocessableEntity) GetPayload() *models.Error

func (*UpdatePolicyUnprocessableEntity) IsClientError

func (o *UpdatePolicyUnprocessableEntity) IsClientError() bool

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

func (*UpdatePolicyUnprocessableEntity) IsCode

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

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

func (*UpdatePolicyUnprocessableEntity) IsRedirect

func (o *UpdatePolicyUnprocessableEntity) IsRedirect() bool

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

func (*UpdatePolicyUnprocessableEntity) IsServerError

func (o *UpdatePolicyUnprocessableEntity) IsServerError() bool

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

func (*UpdatePolicyUnprocessableEntity) IsSuccess

func (o *UpdatePolicyUnprocessableEntity) IsSuccess() bool

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

func (*UpdatePolicyUnprocessableEntity) String

Jump to

Keyboard shortcuts

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