policies

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for policies API

func (*Client) DeletePolicyUsingDELETE5 added in v0.4.0

func (a *Client) DeletePolicyUsingDELETE5(params *DeletePolicyUsingDELETE5Params, opts ...ClientOption) (*DeletePolicyUsingDELETE5NoContent, error)

DeletePolicyUsingDELETE5 deletes a policy

Delete a specified policy corresponding to its unique id.

func (*Client) DryRunPolicyUsingPOST2 added in v0.4.0

DryRunPolicyUsingPOST2 triggers a policy dry run

Dry-run an existing policy to rehearse actual policy effect on application.

func (*Client) GetPoliciesUsingGET5 added in v0.4.0

func (a *Client) GetPoliciesUsingGET5(params *GetPoliciesUsingGET5Params, opts ...ClientOption) (*GetPoliciesUsingGET5OK, error)

GetPoliciesUsingGET5 returns a paginated list of policies

Find all the policies associated with current org.

func (*Client) GetPolicyUsingGET5 added in v0.4.0

func (a *Client) GetPolicyUsingGET5(params *GetPolicyUsingGET5Params, opts ...ClientOption) (*GetPolicyUsingGET5OK, error)

GetPolicyUsingGET5 returns a specified policy

Find a specific policy based on the input policy id.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

type ClientService interface {
	DeletePolicyUsingDELETE5(params *DeletePolicyUsingDELETE5Params, opts ...ClientOption) (*DeletePolicyUsingDELETE5NoContent, error)

	DryRunPolicyUsingPOST2(params *DryRunPolicyUsingPOST2Params, opts ...ClientOption) (*DryRunPolicyUsingPOST2OK, *DryRunPolicyUsingPOST2Accepted, error)

	GetPoliciesUsingGET5(params *GetPoliciesUsingGET5Params, opts ...ClientOption) (*GetPoliciesUsingGET5OK, error)

	GetPolicyUsingGET5(params *GetPolicyUsingGET5Params, opts ...ClientOption) (*GetPolicyUsingGET5OK, 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 DeletePolicyUsingDELETE5Forbidden added in v0.5.0

type DeletePolicyUsingDELETE5Forbidden struct {
}

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

Forbidden

func NewDeletePolicyUsingDELETE5Forbidden added in v0.5.0

func NewDeletePolicyUsingDELETE5Forbidden() *DeletePolicyUsingDELETE5Forbidden

NewDeletePolicyUsingDELETE5Forbidden creates a DeletePolicyUsingDELETE5Forbidden with default headers values

func (*DeletePolicyUsingDELETE5Forbidden) Error added in v0.5.0

func (*DeletePolicyUsingDELETE5Forbidden) IsClientError added in v0.5.0

func (o *DeletePolicyUsingDELETE5Forbidden) IsClientError() bool

IsClientError returns true when this delete policy using d e l e t e5 forbidden response has a 4xx status code

func (*DeletePolicyUsingDELETE5Forbidden) IsCode added in v0.5.0

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

IsCode returns true when this delete policy using d e l e t e5 forbidden response a status code equal to that given

func (*DeletePolicyUsingDELETE5Forbidden) IsRedirect added in v0.5.0

func (o *DeletePolicyUsingDELETE5Forbidden) IsRedirect() bool

IsRedirect returns true when this delete policy using d e l e t e5 forbidden response has a 3xx status code

func (*DeletePolicyUsingDELETE5Forbidden) IsServerError added in v0.5.0

func (o *DeletePolicyUsingDELETE5Forbidden) IsServerError() bool

IsServerError returns true when this delete policy using d e l e t e5 forbidden response has a 5xx status code

func (*DeletePolicyUsingDELETE5Forbidden) IsSuccess added in v0.5.0

func (o *DeletePolicyUsingDELETE5Forbidden) IsSuccess() bool

IsSuccess returns true when this delete policy using d e l e t e5 forbidden response has a 2xx status code

func (*DeletePolicyUsingDELETE5Forbidden) String added in v0.5.0

type DeletePolicyUsingDELETE5NoContent added in v0.4.0

type DeletePolicyUsingDELETE5NoContent struct {
}

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

No Content

func NewDeletePolicyUsingDELETE5NoContent added in v0.4.0

func NewDeletePolicyUsingDELETE5NoContent() *DeletePolicyUsingDELETE5NoContent

NewDeletePolicyUsingDELETE5NoContent creates a DeletePolicyUsingDELETE5NoContent with default headers values

func (*DeletePolicyUsingDELETE5NoContent) Error added in v0.4.0

func (*DeletePolicyUsingDELETE5NoContent) IsClientError added in v0.5.0

func (o *DeletePolicyUsingDELETE5NoContent) IsClientError() bool

IsClientError returns true when this delete policy using d e l e t e5 no content response has a 4xx status code

func (*DeletePolicyUsingDELETE5NoContent) IsCode added in v0.5.0

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

IsCode returns true when this delete policy using d e l e t e5 no content response a status code equal to that given

func (*DeletePolicyUsingDELETE5NoContent) IsRedirect added in v0.5.0

func (o *DeletePolicyUsingDELETE5NoContent) IsRedirect() bool

IsRedirect returns true when this delete policy using d e l e t e5 no content response has a 3xx status code

func (*DeletePolicyUsingDELETE5NoContent) IsServerError added in v0.5.0

func (o *DeletePolicyUsingDELETE5NoContent) IsServerError() bool

IsServerError returns true when this delete policy using d e l e t e5 no content response has a 5xx status code

func (*DeletePolicyUsingDELETE5NoContent) IsSuccess added in v0.5.0

func (o *DeletePolicyUsingDELETE5NoContent) IsSuccess() bool

IsSuccess returns true when this delete policy using d e l e t e5 no content response has a 2xx status code

func (*DeletePolicyUsingDELETE5NoContent) String added in v0.5.0

type DeletePolicyUsingDELETE5Params added in v0.4.0

type DeletePolicyUsingDELETE5Params struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* ID.

	   Policy ID

	   Format: uuid
	*/
	ID strfmt.UUID

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

DeletePolicyUsingDELETE5Params contains all the parameters to send to the API endpoint

for the delete policy using d e l e t e 5 operation.

Typically these are written to a http.Request.

func NewDeletePolicyUsingDELETE5Params added in v0.4.0

func NewDeletePolicyUsingDELETE5Params() *DeletePolicyUsingDELETE5Params

NewDeletePolicyUsingDELETE5Params creates a new DeletePolicyUsingDELETE5Params 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 NewDeletePolicyUsingDELETE5ParamsWithContext added in v0.4.0

func NewDeletePolicyUsingDELETE5ParamsWithContext(ctx context.Context) *DeletePolicyUsingDELETE5Params

NewDeletePolicyUsingDELETE5ParamsWithContext creates a new DeletePolicyUsingDELETE5Params object with the ability to set a context for a request.

func NewDeletePolicyUsingDELETE5ParamsWithHTTPClient added in v0.4.0

func NewDeletePolicyUsingDELETE5ParamsWithHTTPClient(client *http.Client) *DeletePolicyUsingDELETE5Params

NewDeletePolicyUsingDELETE5ParamsWithHTTPClient creates a new DeletePolicyUsingDELETE5Params object with the ability to set a custom HTTPClient for a request.

func NewDeletePolicyUsingDELETE5ParamsWithTimeout added in v0.4.0

func NewDeletePolicyUsingDELETE5ParamsWithTimeout(timeout time.Duration) *DeletePolicyUsingDELETE5Params

NewDeletePolicyUsingDELETE5ParamsWithTimeout creates a new DeletePolicyUsingDELETE5Params object with the ability to set a timeout on a request.

func (*DeletePolicyUsingDELETE5Params) SetAPIVersion added in v0.4.0

func (o *DeletePolicyUsingDELETE5Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete policy using d e l e t e 5 params

func (*DeletePolicyUsingDELETE5Params) SetContext added in v0.4.0

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

SetContext adds the context to the delete policy using d e l e t e 5 params

func (*DeletePolicyUsingDELETE5Params) SetDefaults added in v0.4.0

func (o *DeletePolicyUsingDELETE5Params) SetDefaults()

SetDefaults hydrates default values in the delete policy using d e l e t e 5 params (not the query body).

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

func (*DeletePolicyUsingDELETE5Params) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the delete policy using d e l e t e 5 params

func (*DeletePolicyUsingDELETE5Params) SetID added in v0.4.0

SetID adds the id to the delete policy using d e l e t e 5 params

func (*DeletePolicyUsingDELETE5Params) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the delete policy using d e l e t e 5 params

func (*DeletePolicyUsingDELETE5Params) WithAPIVersion added in v0.4.0

WithAPIVersion adds the aPIVersion to the delete policy using d e l e t e 5 params

func (*DeletePolicyUsingDELETE5Params) WithContext added in v0.4.0

WithContext adds the context to the delete policy using d e l e t e 5 params

func (*DeletePolicyUsingDELETE5Params) WithDefaults added in v0.4.0

WithDefaults hydrates default values in the delete policy using d e l e t e 5 params (not the query body).

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

func (*DeletePolicyUsingDELETE5Params) WithHTTPClient added in v0.4.0

WithHTTPClient adds the HTTPClient to the delete policy using d e l e t e 5 params

func (*DeletePolicyUsingDELETE5Params) WithID added in v0.4.0

WithID adds the id to the delete policy using d e l e t e 5 params

func (*DeletePolicyUsingDELETE5Params) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the delete policy using d e l e t e 5 params

func (*DeletePolicyUsingDELETE5Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type DeletePolicyUsingDELETE5Reader added in v0.4.0

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

DeletePolicyUsingDELETE5Reader is a Reader for the DeletePolicyUsingDELETE5 structure.

func (*DeletePolicyUsingDELETE5Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type DeletePolicyUsingDELETE5Unauthorized added in v0.5.0

type DeletePolicyUsingDELETE5Unauthorized struct {
}

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

Unauthorized

func NewDeletePolicyUsingDELETE5Unauthorized added in v0.5.0

func NewDeletePolicyUsingDELETE5Unauthorized() *DeletePolicyUsingDELETE5Unauthorized

NewDeletePolicyUsingDELETE5Unauthorized creates a DeletePolicyUsingDELETE5Unauthorized with default headers values

func (*DeletePolicyUsingDELETE5Unauthorized) Error added in v0.5.0

func (*DeletePolicyUsingDELETE5Unauthorized) IsClientError added in v0.5.0

func (o *DeletePolicyUsingDELETE5Unauthorized) IsClientError() bool

IsClientError returns true when this delete policy using d e l e t e5 unauthorized response has a 4xx status code

func (*DeletePolicyUsingDELETE5Unauthorized) IsCode added in v0.5.0

IsCode returns true when this delete policy using d e l e t e5 unauthorized response a status code equal to that given

func (*DeletePolicyUsingDELETE5Unauthorized) IsRedirect added in v0.5.0

IsRedirect returns true when this delete policy using d e l e t e5 unauthorized response has a 3xx status code

func (*DeletePolicyUsingDELETE5Unauthorized) IsServerError added in v0.5.0

func (o *DeletePolicyUsingDELETE5Unauthorized) IsServerError() bool

IsServerError returns true when this delete policy using d e l e t e5 unauthorized response has a 5xx status code

func (*DeletePolicyUsingDELETE5Unauthorized) IsSuccess added in v0.5.0

IsSuccess returns true when this delete policy using d e l e t e5 unauthorized response has a 2xx status code

func (*DeletePolicyUsingDELETE5Unauthorized) String added in v0.5.0

type DryRunPolicyUsingPOST2Accepted added in v0.6.0

type DryRunPolicyUsingPOST2Accepted struct {
}

DryRunPolicyUsingPOST2Accepted describes a response with status code 202, with default header values.

Accepted

func NewDryRunPolicyUsingPOST2Accepted added in v0.6.0

func NewDryRunPolicyUsingPOST2Accepted() *DryRunPolicyUsingPOST2Accepted

NewDryRunPolicyUsingPOST2Accepted creates a DryRunPolicyUsingPOST2Accepted with default headers values

func (*DryRunPolicyUsingPOST2Accepted) Error added in v0.6.0

func (*DryRunPolicyUsingPOST2Accepted) IsClientError added in v0.6.0

func (o *DryRunPolicyUsingPOST2Accepted) IsClientError() bool

IsClientError returns true when this dry run policy using p o s t2 accepted response has a 4xx status code

func (*DryRunPolicyUsingPOST2Accepted) IsCode added in v0.6.0

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

IsCode returns true when this dry run policy using p o s t2 accepted response a status code equal to that given

func (*DryRunPolicyUsingPOST2Accepted) IsRedirect added in v0.6.0

func (o *DryRunPolicyUsingPOST2Accepted) IsRedirect() bool

IsRedirect returns true when this dry run policy using p o s t2 accepted response has a 3xx status code

func (*DryRunPolicyUsingPOST2Accepted) IsServerError added in v0.6.0

func (o *DryRunPolicyUsingPOST2Accepted) IsServerError() bool

IsServerError returns true when this dry run policy using p o s t2 accepted response has a 5xx status code

func (*DryRunPolicyUsingPOST2Accepted) IsSuccess added in v0.6.0

func (o *DryRunPolicyUsingPOST2Accepted) IsSuccess() bool

IsSuccess returns true when this dry run policy using p o s t2 accepted response has a 2xx status code

func (*DryRunPolicyUsingPOST2Accepted) String added in v0.6.0

type DryRunPolicyUsingPOST2BadRequest added in v0.6.0

type DryRunPolicyUsingPOST2BadRequest struct {
	Payload *models.Error
}

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

Bad Request

func NewDryRunPolicyUsingPOST2BadRequest added in v0.6.0

func NewDryRunPolicyUsingPOST2BadRequest() *DryRunPolicyUsingPOST2BadRequest

NewDryRunPolicyUsingPOST2BadRequest creates a DryRunPolicyUsingPOST2BadRequest with default headers values

func (*DryRunPolicyUsingPOST2BadRequest) Error added in v0.6.0

func (*DryRunPolicyUsingPOST2BadRequest) GetPayload added in v0.6.0

func (*DryRunPolicyUsingPOST2BadRequest) IsClientError added in v0.6.0

func (o *DryRunPolicyUsingPOST2BadRequest) IsClientError() bool

IsClientError returns true when this dry run policy using p o s t2 bad request response has a 4xx status code

func (*DryRunPolicyUsingPOST2BadRequest) IsCode added in v0.6.0

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

IsCode returns true when this dry run policy using p o s t2 bad request response a status code equal to that given

func (*DryRunPolicyUsingPOST2BadRequest) IsRedirect added in v0.6.0

func (o *DryRunPolicyUsingPOST2BadRequest) IsRedirect() bool

IsRedirect returns true when this dry run policy using p o s t2 bad request response has a 3xx status code

func (*DryRunPolicyUsingPOST2BadRequest) IsServerError added in v0.6.0

func (o *DryRunPolicyUsingPOST2BadRequest) IsServerError() bool

IsServerError returns true when this dry run policy using p o s t2 bad request response has a 5xx status code

func (*DryRunPolicyUsingPOST2BadRequest) IsSuccess added in v0.6.0

func (o *DryRunPolicyUsingPOST2BadRequest) IsSuccess() bool

IsSuccess returns true when this dry run policy using p o s t2 bad request response has a 2xx status code

func (*DryRunPolicyUsingPOST2BadRequest) String added in v0.6.0

type DryRunPolicyUsingPOST2Forbidden added in v0.6.0

type DryRunPolicyUsingPOST2Forbidden struct {
}

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

Forbidden

func NewDryRunPolicyUsingPOST2Forbidden added in v0.6.0

func NewDryRunPolicyUsingPOST2Forbidden() *DryRunPolicyUsingPOST2Forbidden

NewDryRunPolicyUsingPOST2Forbidden creates a DryRunPolicyUsingPOST2Forbidden with default headers values

func (*DryRunPolicyUsingPOST2Forbidden) Error added in v0.6.0

func (*DryRunPolicyUsingPOST2Forbidden) IsClientError added in v0.6.0

func (o *DryRunPolicyUsingPOST2Forbidden) IsClientError() bool

IsClientError returns true when this dry run policy using p o s t2 forbidden response has a 4xx status code

func (*DryRunPolicyUsingPOST2Forbidden) IsCode added in v0.6.0

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

IsCode returns true when this dry run policy using p o s t2 forbidden response a status code equal to that given

func (*DryRunPolicyUsingPOST2Forbidden) IsRedirect added in v0.6.0

func (o *DryRunPolicyUsingPOST2Forbidden) IsRedirect() bool

IsRedirect returns true when this dry run policy using p o s t2 forbidden response has a 3xx status code

func (*DryRunPolicyUsingPOST2Forbidden) IsServerError added in v0.6.0

func (o *DryRunPolicyUsingPOST2Forbidden) IsServerError() bool

IsServerError returns true when this dry run policy using p o s t2 forbidden response has a 5xx status code

func (*DryRunPolicyUsingPOST2Forbidden) IsSuccess added in v0.6.0

func (o *DryRunPolicyUsingPOST2Forbidden) IsSuccess() bool

IsSuccess returns true when this dry run policy using p o s t2 forbidden response has a 2xx status code

func (*DryRunPolicyUsingPOST2Forbidden) String added in v0.6.0

type DryRunPolicyUsingPOST2OK added in v0.4.0

type DryRunPolicyUsingPOST2OK struct {
}

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

OK

func NewDryRunPolicyUsingPOST2OK added in v0.4.0

func NewDryRunPolicyUsingPOST2OK() *DryRunPolicyUsingPOST2OK

NewDryRunPolicyUsingPOST2OK creates a DryRunPolicyUsingPOST2OK with default headers values

func (*DryRunPolicyUsingPOST2OK) Error added in v0.4.0

func (o *DryRunPolicyUsingPOST2OK) Error() string

func (*DryRunPolicyUsingPOST2OK) IsClientError added in v0.6.0

func (o *DryRunPolicyUsingPOST2OK) IsClientError() bool

IsClientError returns true when this dry run policy using p o s t2 o k response has a 4xx status code

func (*DryRunPolicyUsingPOST2OK) IsCode added in v0.6.0

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

IsCode returns true when this dry run policy using p o s t2 o k response a status code equal to that given

func (*DryRunPolicyUsingPOST2OK) IsRedirect added in v0.6.0

func (o *DryRunPolicyUsingPOST2OK) IsRedirect() bool

IsRedirect returns true when this dry run policy using p o s t2 o k response has a 3xx status code

func (*DryRunPolicyUsingPOST2OK) IsServerError added in v0.6.0

func (o *DryRunPolicyUsingPOST2OK) IsServerError() bool

IsServerError returns true when this dry run policy using p o s t2 o k response has a 5xx status code

func (*DryRunPolicyUsingPOST2OK) IsSuccess added in v0.6.0

func (o *DryRunPolicyUsingPOST2OK) IsSuccess() bool

IsSuccess returns true when this dry run policy using p o s t2 o k response has a 2xx status code

func (*DryRunPolicyUsingPOST2OK) String added in v0.6.0

func (o *DryRunPolicyUsingPOST2OK) String() string

type DryRunPolicyUsingPOST2Params added in v0.4.0

type DryRunPolicyUsingPOST2Params struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	// DryRun.
	DryRun string

	/* Policy.

	   The policy to be created
	*/
	Policy *models.Policy

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

DryRunPolicyUsingPOST2Params contains all the parameters to send to the API endpoint

for the dry run policy using p o s t 2 operation.

Typically these are written to a http.Request.

func NewDryRunPolicyUsingPOST2Params added in v0.4.0

func NewDryRunPolicyUsingPOST2Params() *DryRunPolicyUsingPOST2Params

NewDryRunPolicyUsingPOST2Params creates a new DryRunPolicyUsingPOST2Params 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 NewDryRunPolicyUsingPOST2ParamsWithContext added in v0.4.0

func NewDryRunPolicyUsingPOST2ParamsWithContext(ctx context.Context) *DryRunPolicyUsingPOST2Params

NewDryRunPolicyUsingPOST2ParamsWithContext creates a new DryRunPolicyUsingPOST2Params object with the ability to set a context for a request.

func NewDryRunPolicyUsingPOST2ParamsWithHTTPClient added in v0.4.0

func NewDryRunPolicyUsingPOST2ParamsWithHTTPClient(client *http.Client) *DryRunPolicyUsingPOST2Params

NewDryRunPolicyUsingPOST2ParamsWithHTTPClient creates a new DryRunPolicyUsingPOST2Params object with the ability to set a custom HTTPClient for a request.

func NewDryRunPolicyUsingPOST2ParamsWithTimeout added in v0.4.0

func NewDryRunPolicyUsingPOST2ParamsWithTimeout(timeout time.Duration) *DryRunPolicyUsingPOST2Params

NewDryRunPolicyUsingPOST2ParamsWithTimeout creates a new DryRunPolicyUsingPOST2Params object with the ability to set a timeout on a request.

func (*DryRunPolicyUsingPOST2Params) SetAPIVersion added in v0.4.0

func (o *DryRunPolicyUsingPOST2Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the dry run policy using p o s t 2 params

func (*DryRunPolicyUsingPOST2Params) SetContext added in v0.4.0

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

SetContext adds the context to the dry run policy using p o s t 2 params

func (*DryRunPolicyUsingPOST2Params) SetDefaults added in v0.4.0

func (o *DryRunPolicyUsingPOST2Params) SetDefaults()

SetDefaults hydrates default values in the dry run policy using p o s t 2 params (not the query body).

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

func (*DryRunPolicyUsingPOST2Params) SetDryRun added in v0.4.0

func (o *DryRunPolicyUsingPOST2Params) SetDryRun(dryRun string)

SetDryRun adds the dryRun to the dry run policy using p o s t 2 params

func (*DryRunPolicyUsingPOST2Params) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the dry run policy using p o s t 2 params

func (*DryRunPolicyUsingPOST2Params) SetPolicy added in v0.4.0

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

SetPolicy adds the policy to the dry run policy using p o s t 2 params

func (*DryRunPolicyUsingPOST2Params) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the dry run policy using p o s t 2 params

func (*DryRunPolicyUsingPOST2Params) WithAPIVersion added in v0.4.0

func (o *DryRunPolicyUsingPOST2Params) WithAPIVersion(aPIVersion *string) *DryRunPolicyUsingPOST2Params

WithAPIVersion adds the aPIVersion to the dry run policy using p o s t 2 params

func (*DryRunPolicyUsingPOST2Params) WithContext added in v0.4.0

WithContext adds the context to the dry run policy using p o s t 2 params

func (*DryRunPolicyUsingPOST2Params) WithDefaults added in v0.4.0

WithDefaults hydrates default values in the dry run policy using p o s t 2 params (not the query body).

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

func (*DryRunPolicyUsingPOST2Params) WithDryRun added in v0.4.0

WithDryRun adds the dryRun to the dry run policy using p o s t 2 params

func (*DryRunPolicyUsingPOST2Params) WithHTTPClient added in v0.4.0

WithHTTPClient adds the HTTPClient to the dry run policy using p o s t 2 params

func (*DryRunPolicyUsingPOST2Params) WithPolicy added in v0.4.0

WithPolicy adds the policy to the dry run policy using p o s t 2 params

func (*DryRunPolicyUsingPOST2Params) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the dry run policy using p o s t 2 params

func (*DryRunPolicyUsingPOST2Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type DryRunPolicyUsingPOST2Reader added in v0.4.0

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

DryRunPolicyUsingPOST2Reader is a Reader for the DryRunPolicyUsingPOST2 structure.

func (*DryRunPolicyUsingPOST2Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type DryRunPolicyUsingPOST2Unauthorized added in v0.6.0

type DryRunPolicyUsingPOST2Unauthorized struct {
}

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

Unauthorized

func NewDryRunPolicyUsingPOST2Unauthorized added in v0.6.0

func NewDryRunPolicyUsingPOST2Unauthorized() *DryRunPolicyUsingPOST2Unauthorized

NewDryRunPolicyUsingPOST2Unauthorized creates a DryRunPolicyUsingPOST2Unauthorized with default headers values

func (*DryRunPolicyUsingPOST2Unauthorized) Error added in v0.6.0

func (*DryRunPolicyUsingPOST2Unauthorized) IsClientError added in v0.6.0

func (o *DryRunPolicyUsingPOST2Unauthorized) IsClientError() bool

IsClientError returns true when this dry run policy using p o s t2 unauthorized response has a 4xx status code

func (*DryRunPolicyUsingPOST2Unauthorized) IsCode added in v0.6.0

IsCode returns true when this dry run policy using p o s t2 unauthorized response a status code equal to that given

func (*DryRunPolicyUsingPOST2Unauthorized) IsRedirect added in v0.6.0

func (o *DryRunPolicyUsingPOST2Unauthorized) IsRedirect() bool

IsRedirect returns true when this dry run policy using p o s t2 unauthorized response has a 3xx status code

func (*DryRunPolicyUsingPOST2Unauthorized) IsServerError added in v0.6.0

func (o *DryRunPolicyUsingPOST2Unauthorized) IsServerError() bool

IsServerError returns true when this dry run policy using p o s t2 unauthorized response has a 5xx status code

func (*DryRunPolicyUsingPOST2Unauthorized) IsSuccess added in v0.6.0

IsSuccess returns true when this dry run policy using p o s t2 unauthorized response has a 2xx status code

func (*DryRunPolicyUsingPOST2Unauthorized) String added in v0.6.0

type GetPoliciesUsingGET5Forbidden added in v0.5.0

type GetPoliciesUsingGET5Forbidden struct {
}

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

Forbidden

func NewGetPoliciesUsingGET5Forbidden added in v0.5.0

func NewGetPoliciesUsingGET5Forbidden() *GetPoliciesUsingGET5Forbidden

NewGetPoliciesUsingGET5Forbidden creates a GetPoliciesUsingGET5Forbidden with default headers values

func (*GetPoliciesUsingGET5Forbidden) Error added in v0.5.0

func (*GetPoliciesUsingGET5Forbidden) IsClientError added in v0.5.0

func (o *GetPoliciesUsingGET5Forbidden) IsClientError() bool

IsClientError returns true when this get policies using g e t5 forbidden response has a 4xx status code

func (*GetPoliciesUsingGET5Forbidden) IsCode added in v0.5.0

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

IsCode returns true when this get policies using g e t5 forbidden response a status code equal to that given

func (*GetPoliciesUsingGET5Forbidden) IsRedirect added in v0.5.0

func (o *GetPoliciesUsingGET5Forbidden) IsRedirect() bool

IsRedirect returns true when this get policies using g e t5 forbidden response has a 3xx status code

func (*GetPoliciesUsingGET5Forbidden) IsServerError added in v0.5.0

func (o *GetPoliciesUsingGET5Forbidden) IsServerError() bool

IsServerError returns true when this get policies using g e t5 forbidden response has a 5xx status code

func (*GetPoliciesUsingGET5Forbidden) IsSuccess added in v0.5.0

func (o *GetPoliciesUsingGET5Forbidden) IsSuccess() bool

IsSuccess returns true when this get policies using g e t5 forbidden response has a 2xx status code

func (*GetPoliciesUsingGET5Forbidden) String added in v0.5.0

type GetPoliciesUsingGET5OK added in v0.4.0

type GetPoliciesUsingGET5OK struct {
	Payload *models.PageOfPolicy
}

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

OK

func NewGetPoliciesUsingGET5OK added in v0.4.0

func NewGetPoliciesUsingGET5OK() *GetPoliciesUsingGET5OK

NewGetPoliciesUsingGET5OK creates a GetPoliciesUsingGET5OK with default headers values

func (*GetPoliciesUsingGET5OK) Error added in v0.4.0

func (o *GetPoliciesUsingGET5OK) Error() string

func (*GetPoliciesUsingGET5OK) GetPayload added in v0.4.0

func (o *GetPoliciesUsingGET5OK) GetPayload() *models.PageOfPolicy

func (*GetPoliciesUsingGET5OK) IsClientError added in v0.5.0

func (o *GetPoliciesUsingGET5OK) IsClientError() bool

IsClientError returns true when this get policies using g e t5 o k response has a 4xx status code

func (*GetPoliciesUsingGET5OK) IsCode added in v0.5.0

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

IsCode returns true when this get policies using g e t5 o k response a status code equal to that given

func (*GetPoliciesUsingGET5OK) IsRedirect added in v0.5.0

func (o *GetPoliciesUsingGET5OK) IsRedirect() bool

IsRedirect returns true when this get policies using g e t5 o k response has a 3xx status code

func (*GetPoliciesUsingGET5OK) IsServerError added in v0.5.0

func (o *GetPoliciesUsingGET5OK) IsServerError() bool

IsServerError returns true when this get policies using g e t5 o k response has a 5xx status code

func (*GetPoliciesUsingGET5OK) IsSuccess added in v0.5.0

func (o *GetPoliciesUsingGET5OK) IsSuccess() bool

IsSuccess returns true when this get policies using g e t5 o k response has a 2xx status code

func (*GetPoliciesUsingGET5OK) String added in v0.5.0

func (o *GetPoliciesUsingGET5OK) String() string

type GetPoliciesUsingGET5Params added in v0.4.0

type GetPoliciesUsingGET5Params struct {

	/* DollarOrderby.

	   Sorting criteria in the format: property (asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
	*/
	DollarOrderby []string

	/* DollarSkip.

	   Number of records you want to skip

	   Format: int32
	*/
	DollarSkip *int32

	/* DollarTop.

	   Number of records you want

	   Format: int32
	*/
	DollarTop *int32

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* ComputeStats.

	   computeStats
	*/
	ComputeStats *bool

	/* ExpandDefinition.

	   Retrieves policy definition information for each returned policy.
	*/
	ExpandDefinition *bool

	/* Search.

	   Matches will start with this string in their name or have this string somewhere in their description.
	*/
	Search *string

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

GetPoliciesUsingGET5Params contains all the parameters to send to the API endpoint

for the get policies using g e t 5 operation.

Typically these are written to a http.Request.

func NewGetPoliciesUsingGET5Params added in v0.4.0

func NewGetPoliciesUsingGET5Params() *GetPoliciesUsingGET5Params

NewGetPoliciesUsingGET5Params creates a new GetPoliciesUsingGET5Params 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 NewGetPoliciesUsingGET5ParamsWithContext added in v0.4.0

func NewGetPoliciesUsingGET5ParamsWithContext(ctx context.Context) *GetPoliciesUsingGET5Params

NewGetPoliciesUsingGET5ParamsWithContext creates a new GetPoliciesUsingGET5Params object with the ability to set a context for a request.

func NewGetPoliciesUsingGET5ParamsWithHTTPClient added in v0.4.0

func NewGetPoliciesUsingGET5ParamsWithHTTPClient(client *http.Client) *GetPoliciesUsingGET5Params

NewGetPoliciesUsingGET5ParamsWithHTTPClient creates a new GetPoliciesUsingGET5Params object with the ability to set a custom HTTPClient for a request.

func NewGetPoliciesUsingGET5ParamsWithTimeout added in v0.4.0

func NewGetPoliciesUsingGET5ParamsWithTimeout(timeout time.Duration) *GetPoliciesUsingGET5Params

NewGetPoliciesUsingGET5ParamsWithTimeout creates a new GetPoliciesUsingGET5Params object with the ability to set a timeout on a request.

func (*GetPoliciesUsingGET5Params) SetAPIVersion added in v0.4.0

func (o *GetPoliciesUsingGET5Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) SetComputeStats added in v0.4.0

func (o *GetPoliciesUsingGET5Params) SetComputeStats(computeStats *bool)

SetComputeStats adds the computeStats to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) SetContext added in v0.4.0

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

SetContext adds the context to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) SetDefaults added in v0.4.0

func (o *GetPoliciesUsingGET5Params) SetDefaults()

SetDefaults hydrates default values in the get policies using g e t 5 params (not the query body).

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

func (*GetPoliciesUsingGET5Params) SetDollarOrderby added in v0.4.0

func (o *GetPoliciesUsingGET5Params) SetDollarOrderby(dollarOrderby []string)

SetDollarOrderby adds the dollarOrderby to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) SetDollarSkip added in v0.4.0

func (o *GetPoliciesUsingGET5Params) SetDollarSkip(dollarSkip *int32)

SetDollarSkip adds the dollarSkip to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) SetDollarTop added in v0.4.0

func (o *GetPoliciesUsingGET5Params) SetDollarTop(dollarTop *int32)

SetDollarTop adds the dollarTop to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) SetExpandDefinition added in v0.4.0

func (o *GetPoliciesUsingGET5Params) SetExpandDefinition(expandDefinition *bool)

SetExpandDefinition adds the expandDefinition to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) SetSearch added in v0.4.0

func (o *GetPoliciesUsingGET5Params) SetSearch(search *string)

SetSearch adds the search to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) WithAPIVersion added in v0.4.0

func (o *GetPoliciesUsingGET5Params) WithAPIVersion(aPIVersion *string) *GetPoliciesUsingGET5Params

WithAPIVersion adds the aPIVersion to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) WithComputeStats added in v0.4.0

func (o *GetPoliciesUsingGET5Params) WithComputeStats(computeStats *bool) *GetPoliciesUsingGET5Params

WithComputeStats adds the computeStats to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) WithContext added in v0.4.0

WithContext adds the context to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) WithDefaults added in v0.4.0

WithDefaults hydrates default values in the get policies using g e t 5 params (not the query body).

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

func (*GetPoliciesUsingGET5Params) WithDollarOrderby added in v0.4.0

func (o *GetPoliciesUsingGET5Params) WithDollarOrderby(dollarOrderby []string) *GetPoliciesUsingGET5Params

WithDollarOrderby adds the dollarOrderby to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) WithDollarSkip added in v0.4.0

func (o *GetPoliciesUsingGET5Params) WithDollarSkip(dollarSkip *int32) *GetPoliciesUsingGET5Params

WithDollarSkip adds the dollarSkip to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) WithDollarTop added in v0.4.0

func (o *GetPoliciesUsingGET5Params) WithDollarTop(dollarTop *int32) *GetPoliciesUsingGET5Params

WithDollarTop adds the dollarTop to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) WithExpandDefinition added in v0.4.0

func (o *GetPoliciesUsingGET5Params) WithExpandDefinition(expandDefinition *bool) *GetPoliciesUsingGET5Params

WithExpandDefinition adds the expandDefinition to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) WithHTTPClient added in v0.4.0

WithHTTPClient adds the HTTPClient to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) WithSearch added in v0.4.0

WithSearch adds the search to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the get policies using g e t 5 params

func (*GetPoliciesUsingGET5Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type GetPoliciesUsingGET5Reader added in v0.4.0

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

GetPoliciesUsingGET5Reader is a Reader for the GetPoliciesUsingGET5 structure.

func (*GetPoliciesUsingGET5Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type GetPoliciesUsingGET5Unauthorized added in v0.5.0

type GetPoliciesUsingGET5Unauthorized struct {
}

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

Unauthorized

func NewGetPoliciesUsingGET5Unauthorized added in v0.5.0

func NewGetPoliciesUsingGET5Unauthorized() *GetPoliciesUsingGET5Unauthorized

NewGetPoliciesUsingGET5Unauthorized creates a GetPoliciesUsingGET5Unauthorized with default headers values

func (*GetPoliciesUsingGET5Unauthorized) Error added in v0.5.0

func (*GetPoliciesUsingGET5Unauthorized) IsClientError added in v0.5.0

func (o *GetPoliciesUsingGET5Unauthorized) IsClientError() bool

IsClientError returns true when this get policies using g e t5 unauthorized response has a 4xx status code

func (*GetPoliciesUsingGET5Unauthorized) IsCode added in v0.5.0

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

IsCode returns true when this get policies using g e t5 unauthorized response a status code equal to that given

func (*GetPoliciesUsingGET5Unauthorized) IsRedirect added in v0.5.0

func (o *GetPoliciesUsingGET5Unauthorized) IsRedirect() bool

IsRedirect returns true when this get policies using g e t5 unauthorized response has a 3xx status code

func (*GetPoliciesUsingGET5Unauthorized) IsServerError added in v0.5.0

func (o *GetPoliciesUsingGET5Unauthorized) IsServerError() bool

IsServerError returns true when this get policies using g e t5 unauthorized response has a 5xx status code

func (*GetPoliciesUsingGET5Unauthorized) IsSuccess added in v0.5.0

func (o *GetPoliciesUsingGET5Unauthorized) IsSuccess() bool

IsSuccess returns true when this get policies using g e t5 unauthorized response has a 2xx status code

func (*GetPoliciesUsingGET5Unauthorized) String added in v0.5.0

type GetPolicyUsingGET5Forbidden added in v0.5.0

type GetPolicyUsingGET5Forbidden struct {
}

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

Forbidden

func NewGetPolicyUsingGET5Forbidden added in v0.5.0

func NewGetPolicyUsingGET5Forbidden() *GetPolicyUsingGET5Forbidden

NewGetPolicyUsingGET5Forbidden creates a GetPolicyUsingGET5Forbidden with default headers values

func (*GetPolicyUsingGET5Forbidden) Error added in v0.5.0

func (*GetPolicyUsingGET5Forbidden) IsClientError added in v0.5.0

func (o *GetPolicyUsingGET5Forbidden) IsClientError() bool

IsClientError returns true when this get policy using g e t5 forbidden response has a 4xx status code

func (*GetPolicyUsingGET5Forbidden) IsCode added in v0.5.0

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

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

func (*GetPolicyUsingGET5Forbidden) IsRedirect added in v0.5.0

func (o *GetPolicyUsingGET5Forbidden) IsRedirect() bool

IsRedirect returns true when this get policy using g e t5 forbidden response has a 3xx status code

func (*GetPolicyUsingGET5Forbidden) IsServerError added in v0.5.0

func (o *GetPolicyUsingGET5Forbidden) IsServerError() bool

IsServerError returns true when this get policy using g e t5 forbidden response has a 5xx status code

func (*GetPolicyUsingGET5Forbidden) IsSuccess added in v0.5.0

func (o *GetPolicyUsingGET5Forbidden) IsSuccess() bool

IsSuccess returns true when this get policy using g e t5 forbidden response has a 2xx status code

func (*GetPolicyUsingGET5Forbidden) String added in v0.5.0

func (o *GetPolicyUsingGET5Forbidden) String() string

type GetPolicyUsingGET5NotFound added in v0.5.0

type GetPolicyUsingGET5NotFound struct {
	Payload *models.Error
}

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

Not Found

func NewGetPolicyUsingGET5NotFound added in v0.5.0

func NewGetPolicyUsingGET5NotFound() *GetPolicyUsingGET5NotFound

NewGetPolicyUsingGET5NotFound creates a GetPolicyUsingGET5NotFound with default headers values

func (*GetPolicyUsingGET5NotFound) Error added in v0.5.0

func (*GetPolicyUsingGET5NotFound) GetPayload added in v0.5.0

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

func (*GetPolicyUsingGET5NotFound) IsClientError added in v0.5.0

func (o *GetPolicyUsingGET5NotFound) IsClientError() bool

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

func (*GetPolicyUsingGET5NotFound) IsCode added in v0.5.0

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

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

func (*GetPolicyUsingGET5NotFound) IsRedirect added in v0.5.0

func (o *GetPolicyUsingGET5NotFound) IsRedirect() bool

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

func (*GetPolicyUsingGET5NotFound) IsServerError added in v0.5.0

func (o *GetPolicyUsingGET5NotFound) IsServerError() bool

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

func (*GetPolicyUsingGET5NotFound) IsSuccess added in v0.5.0

func (o *GetPolicyUsingGET5NotFound) IsSuccess() bool

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

func (*GetPolicyUsingGET5NotFound) String added in v0.5.0

func (o *GetPolicyUsingGET5NotFound) String() string

type GetPolicyUsingGET5OK added in v0.4.0

type GetPolicyUsingGET5OK struct {
	Payload *models.Policy
}

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

OK

func NewGetPolicyUsingGET5OK added in v0.4.0

func NewGetPolicyUsingGET5OK() *GetPolicyUsingGET5OK

NewGetPolicyUsingGET5OK creates a GetPolicyUsingGET5OK with default headers values

func (*GetPolicyUsingGET5OK) Error added in v0.4.0

func (o *GetPolicyUsingGET5OK) Error() string

func (*GetPolicyUsingGET5OK) GetPayload added in v0.4.0

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

func (*GetPolicyUsingGET5OK) IsClientError added in v0.5.0

func (o *GetPolicyUsingGET5OK) IsClientError() bool

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

func (*GetPolicyUsingGET5OK) IsCode added in v0.5.0

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

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

func (*GetPolicyUsingGET5OK) IsRedirect added in v0.5.0

func (o *GetPolicyUsingGET5OK) IsRedirect() bool

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

func (*GetPolicyUsingGET5OK) IsServerError added in v0.5.0

func (o *GetPolicyUsingGET5OK) IsServerError() bool

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

func (*GetPolicyUsingGET5OK) IsSuccess added in v0.5.0

func (o *GetPolicyUsingGET5OK) IsSuccess() bool

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

func (*GetPolicyUsingGET5OK) String added in v0.5.0

func (o *GetPolicyUsingGET5OK) String() string

type GetPolicyUsingGET5Params added in v0.4.0

type GetPolicyUsingGET5Params struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* ComputeStats.

	   computeStats
	*/
	ComputeStats *bool

	/* ID.

	   Policy ID

	   Format: uuid
	*/
	ID strfmt.UUID

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

GetPolicyUsingGET5Params contains all the parameters to send to the API endpoint

for the get policy using g e t 5 operation.

Typically these are written to a http.Request.

func NewGetPolicyUsingGET5Params added in v0.4.0

func NewGetPolicyUsingGET5Params() *GetPolicyUsingGET5Params

NewGetPolicyUsingGET5Params creates a new GetPolicyUsingGET5Params 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 NewGetPolicyUsingGET5ParamsWithContext added in v0.4.0

func NewGetPolicyUsingGET5ParamsWithContext(ctx context.Context) *GetPolicyUsingGET5Params

NewGetPolicyUsingGET5ParamsWithContext creates a new GetPolicyUsingGET5Params object with the ability to set a context for a request.

func NewGetPolicyUsingGET5ParamsWithHTTPClient added in v0.4.0

func NewGetPolicyUsingGET5ParamsWithHTTPClient(client *http.Client) *GetPolicyUsingGET5Params

NewGetPolicyUsingGET5ParamsWithHTTPClient creates a new GetPolicyUsingGET5Params object with the ability to set a custom HTTPClient for a request.

func NewGetPolicyUsingGET5ParamsWithTimeout added in v0.4.0

func NewGetPolicyUsingGET5ParamsWithTimeout(timeout time.Duration) *GetPolicyUsingGET5Params

NewGetPolicyUsingGET5ParamsWithTimeout creates a new GetPolicyUsingGET5Params object with the ability to set a timeout on a request.

func (*GetPolicyUsingGET5Params) SetAPIVersion added in v0.4.0

func (o *GetPolicyUsingGET5Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get policy using g e t 5 params

func (*GetPolicyUsingGET5Params) SetComputeStats added in v0.4.0

func (o *GetPolicyUsingGET5Params) SetComputeStats(computeStats *bool)

SetComputeStats adds the computeStats to the get policy using g e t 5 params

func (*GetPolicyUsingGET5Params) SetContext added in v0.4.0

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

SetContext adds the context to the get policy using g e t 5 params

func (*GetPolicyUsingGET5Params) SetDefaults added in v0.4.0

func (o *GetPolicyUsingGET5Params) SetDefaults()

SetDefaults hydrates default values in the get policy using g e t 5 params (not the query body).

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

func (*GetPolicyUsingGET5Params) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the get policy using g e t 5 params

func (*GetPolicyUsingGET5Params) SetID added in v0.4.0

func (o *GetPolicyUsingGET5Params) SetID(id strfmt.UUID)

SetID adds the id to the get policy using g e t 5 params

func (*GetPolicyUsingGET5Params) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the get policy using g e t 5 params

func (*GetPolicyUsingGET5Params) WithAPIVersion added in v0.4.0

func (o *GetPolicyUsingGET5Params) WithAPIVersion(aPIVersion *string) *GetPolicyUsingGET5Params

WithAPIVersion adds the aPIVersion to the get policy using g e t 5 params

func (*GetPolicyUsingGET5Params) WithComputeStats added in v0.4.0

func (o *GetPolicyUsingGET5Params) WithComputeStats(computeStats *bool) *GetPolicyUsingGET5Params

WithComputeStats adds the computeStats to the get policy using g e t 5 params

func (*GetPolicyUsingGET5Params) WithContext added in v0.4.0

WithContext adds the context to the get policy using g e t 5 params

func (*GetPolicyUsingGET5Params) WithDefaults added in v0.4.0

WithDefaults hydrates default values in the get policy using g e t 5 params (not the query body).

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

func (*GetPolicyUsingGET5Params) WithHTTPClient added in v0.4.0

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

WithHTTPClient adds the HTTPClient to the get policy using g e t 5 params

func (*GetPolicyUsingGET5Params) WithID added in v0.4.0

WithID adds the id to the get policy using g e t 5 params

func (*GetPolicyUsingGET5Params) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the get policy using g e t 5 params

func (*GetPolicyUsingGET5Params) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type GetPolicyUsingGET5Reader added in v0.4.0

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

GetPolicyUsingGET5Reader is a Reader for the GetPolicyUsingGET5 structure.

func (*GetPolicyUsingGET5Reader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type GetPolicyUsingGET5Unauthorized added in v0.5.0

type GetPolicyUsingGET5Unauthorized struct {
}

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

Unauthorized

func NewGetPolicyUsingGET5Unauthorized added in v0.5.0

func NewGetPolicyUsingGET5Unauthorized() *GetPolicyUsingGET5Unauthorized

NewGetPolicyUsingGET5Unauthorized creates a GetPolicyUsingGET5Unauthorized with default headers values

func (*GetPolicyUsingGET5Unauthorized) Error added in v0.5.0

func (*GetPolicyUsingGET5Unauthorized) IsClientError added in v0.5.0

func (o *GetPolicyUsingGET5Unauthorized) IsClientError() bool

IsClientError returns true when this get policy using g e t5 unauthorized response has a 4xx status code

func (*GetPolicyUsingGET5Unauthorized) IsCode added in v0.5.0

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

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

func (*GetPolicyUsingGET5Unauthorized) IsRedirect added in v0.5.0

func (o *GetPolicyUsingGET5Unauthorized) IsRedirect() bool

IsRedirect returns true when this get policy using g e t5 unauthorized response has a 3xx status code

func (*GetPolicyUsingGET5Unauthorized) IsServerError added in v0.5.0

func (o *GetPolicyUsingGET5Unauthorized) IsServerError() bool

IsServerError returns true when this get policy using g e t5 unauthorized response has a 5xx status code

func (*GetPolicyUsingGET5Unauthorized) IsSuccess added in v0.5.0

func (o *GetPolicyUsingGET5Unauthorized) IsSuccess() bool

IsSuccess returns true when this get policy using g e t5 unauthorized response has a 2xx status code

func (*GetPolicyUsingGET5Unauthorized) String added in v0.5.0

Jump to

Keyboard shortcuts

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