auth_policy

package
v0.25.19 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

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 auth policy API

func (*Client) CreateAuthPolicy

func (a *Client) CreateAuthPolicy(params *CreateAuthPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAuthPolicyCreated, error)

CreateAuthPolicy creates an auth policy

Creates an Auth Policy. Requires admin access.

func (*Client) DeleteAuthPolicy

func (a *Client) DeleteAuthPolicy(params *DeleteAuthPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAuthPolicyOK, error)

DeleteAuthPolicy deletes an auth policy

Delete an Auth Policy by id. Requires admin access.

func (*Client) DetailAuthPolicy

func (a *Client) DetailAuthPolicy(params *DetailAuthPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailAuthPolicyOK, error)

DetailAuthPolicy retrieves a single auth policy

Retrieves a single Auth Policy by id. Requires admin access.

func (*Client) ListAuthPolicies

func (a *Client) ListAuthPolicies(params *ListAuthPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAuthPoliciesOK, error)

ListAuthPolicies lists auth policies

Retrieves a list of Auth Policies

func (*Client) PatchAuthPolicy

func (a *Client) PatchAuthPolicy(params *PatchAuthPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAuthPolicyOK, error)

PatchAuthPolicy updates the supplied fields on an auth policy

Update only the supplied fields on an Auth Policy by id. Requires admin access.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateAuthPolicy

func (a *Client) UpdateAuthPolicy(params *UpdateAuthPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAuthPolicyOK, error)

UpdateAuthPolicy updates all fields on an auth policy

Update all fields on an Auth Policy by id. Requires admin access.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateAuthPolicy(params *CreateAuthPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAuthPolicyCreated, error)

	DeleteAuthPolicy(params *DeleteAuthPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAuthPolicyOK, error)

	DetailAuthPolicy(params *DetailAuthPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailAuthPolicyOK, error)

	ListAuthPolicies(params *ListAuthPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAuthPoliciesOK, error)

	PatchAuthPolicy(params *PatchAuthPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAuthPolicyOK, error)

	UpdateAuthPolicy(params *UpdateAuthPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAuthPolicyOK, 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 auth policy API client.

type CreateAuthPolicyBadRequest

type CreateAuthPolicyBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
CreateAuthPolicyBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewCreateAuthPolicyBadRequest

func NewCreateAuthPolicyBadRequest() *CreateAuthPolicyBadRequest

NewCreateAuthPolicyBadRequest creates a CreateAuthPolicyBadRequest with default headers values

func (*CreateAuthPolicyBadRequest) Error

func (*CreateAuthPolicyBadRequest) GetPayload

type CreateAuthPolicyCreated

type CreateAuthPolicyCreated struct {
	Payload *rest_model.CreateEnvelope
}
CreateAuthPolicyCreated describes a response with status code 201, with default header values.

The create request was successful and the resource has been added at the following location

func NewCreateAuthPolicyCreated

func NewCreateAuthPolicyCreated() *CreateAuthPolicyCreated

NewCreateAuthPolicyCreated creates a CreateAuthPolicyCreated with default headers values

func (*CreateAuthPolicyCreated) Error

func (o *CreateAuthPolicyCreated) Error() string

func (*CreateAuthPolicyCreated) GetPayload

type CreateAuthPolicyParams

type CreateAuthPolicyParams struct {

	/* AuthPolicy.

	   An Auth Policy to create
	*/
	AuthPolicy *rest_model.AuthPolicyCreate

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

CreateAuthPolicyParams contains all the parameters to send to the API endpoint

for the create auth policy operation.

Typically these are written to a http.Request.

func NewCreateAuthPolicyParams

func NewCreateAuthPolicyParams() *CreateAuthPolicyParams

NewCreateAuthPolicyParams creates a new CreateAuthPolicyParams 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 NewCreateAuthPolicyParamsWithContext

func NewCreateAuthPolicyParamsWithContext(ctx context.Context) *CreateAuthPolicyParams

NewCreateAuthPolicyParamsWithContext creates a new CreateAuthPolicyParams object with the ability to set a context for a request.

func NewCreateAuthPolicyParamsWithHTTPClient

func NewCreateAuthPolicyParamsWithHTTPClient(client *http.Client) *CreateAuthPolicyParams

NewCreateAuthPolicyParamsWithHTTPClient creates a new CreateAuthPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewCreateAuthPolicyParamsWithTimeout

func NewCreateAuthPolicyParamsWithTimeout(timeout time.Duration) *CreateAuthPolicyParams

NewCreateAuthPolicyParamsWithTimeout creates a new CreateAuthPolicyParams object with the ability to set a timeout on a request.

func (*CreateAuthPolicyParams) SetAuthPolicy

func (o *CreateAuthPolicyParams) SetAuthPolicy(authPolicy *rest_model.AuthPolicyCreate)

SetAuthPolicy adds the authPolicy to the create auth policy params

func (*CreateAuthPolicyParams) SetContext

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

SetContext adds the context to the create auth policy params

func (*CreateAuthPolicyParams) SetDefaults

func (o *CreateAuthPolicyParams) SetDefaults()

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

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

func (*CreateAuthPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create auth policy params

func (*CreateAuthPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the create auth policy params

func (*CreateAuthPolicyParams) WithAuthPolicy

WithAuthPolicy adds the authPolicy to the create auth policy params

func (*CreateAuthPolicyParams) WithContext

WithContext adds the context to the create auth policy params

func (*CreateAuthPolicyParams) WithDefaults

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

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

func (*CreateAuthPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create auth policy params

func (*CreateAuthPolicyParams) WithTimeout

WithTimeout adds the timeout to the create auth policy params

func (*CreateAuthPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateAuthPolicyReader

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

CreateAuthPolicyReader is a Reader for the CreateAuthPolicy structure.

func (*CreateAuthPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateAuthPolicyUnauthorized

type CreateAuthPolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
CreateAuthPolicyUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewCreateAuthPolicyUnauthorized

func NewCreateAuthPolicyUnauthorized() *CreateAuthPolicyUnauthorized

NewCreateAuthPolicyUnauthorized creates a CreateAuthPolicyUnauthorized with default headers values

func (*CreateAuthPolicyUnauthorized) Error

func (*CreateAuthPolicyUnauthorized) GetPayload

type DeleteAuthPolicyBadRequest

type DeleteAuthPolicyBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
DeleteAuthPolicyBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewDeleteAuthPolicyBadRequest

func NewDeleteAuthPolicyBadRequest() *DeleteAuthPolicyBadRequest

NewDeleteAuthPolicyBadRequest creates a DeleteAuthPolicyBadRequest with default headers values

func (*DeleteAuthPolicyBadRequest) Error

func (*DeleteAuthPolicyBadRequest) GetPayload

type DeleteAuthPolicyOK

type DeleteAuthPolicyOK struct {
	Payload *rest_model.Empty
}
DeleteAuthPolicyOK describes a response with status code 200, with default header values.

The delete request was successful and the resource has been removed

func NewDeleteAuthPolicyOK

func NewDeleteAuthPolicyOK() *DeleteAuthPolicyOK

NewDeleteAuthPolicyOK creates a DeleteAuthPolicyOK with default headers values

func (*DeleteAuthPolicyOK) Error

func (o *DeleteAuthPolicyOK) Error() string

func (*DeleteAuthPolicyOK) GetPayload

func (o *DeleteAuthPolicyOK) GetPayload() *rest_model.Empty

type DeleteAuthPolicyParams

type DeleteAuthPolicyParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

DeleteAuthPolicyParams contains all the parameters to send to the API endpoint

for the delete auth policy operation.

Typically these are written to a http.Request.

func NewDeleteAuthPolicyParams

func NewDeleteAuthPolicyParams() *DeleteAuthPolicyParams

NewDeleteAuthPolicyParams creates a new DeleteAuthPolicyParams 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 NewDeleteAuthPolicyParamsWithContext

func NewDeleteAuthPolicyParamsWithContext(ctx context.Context) *DeleteAuthPolicyParams

NewDeleteAuthPolicyParamsWithContext creates a new DeleteAuthPolicyParams object with the ability to set a context for a request.

func NewDeleteAuthPolicyParamsWithHTTPClient

func NewDeleteAuthPolicyParamsWithHTTPClient(client *http.Client) *DeleteAuthPolicyParams

NewDeleteAuthPolicyParamsWithHTTPClient creates a new DeleteAuthPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAuthPolicyParamsWithTimeout

func NewDeleteAuthPolicyParamsWithTimeout(timeout time.Duration) *DeleteAuthPolicyParams

NewDeleteAuthPolicyParamsWithTimeout creates a new DeleteAuthPolicyParams object with the ability to set a timeout on a request.

func (*DeleteAuthPolicyParams) SetContext

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

SetContext adds the context to the delete auth policy params

func (*DeleteAuthPolicyParams) SetDefaults

func (o *DeleteAuthPolicyParams) SetDefaults()

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

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

func (*DeleteAuthPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete auth policy params

func (*DeleteAuthPolicyParams) SetID

func (o *DeleteAuthPolicyParams) SetID(id string)

SetID adds the id to the delete auth policy params

func (*DeleteAuthPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the delete auth policy params

func (*DeleteAuthPolicyParams) WithContext

WithContext adds the context to the delete auth policy params

func (*DeleteAuthPolicyParams) WithDefaults

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

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

func (*DeleteAuthPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete auth policy params

func (*DeleteAuthPolicyParams) WithID

WithID adds the id to the delete auth policy params

func (*DeleteAuthPolicyParams) WithTimeout

WithTimeout adds the timeout to the delete auth policy params

func (*DeleteAuthPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAuthPolicyReader

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

DeleteAuthPolicyReader is a Reader for the DeleteAuthPolicy structure.

func (*DeleteAuthPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAuthPolicyUnauthorized

type DeleteAuthPolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
DeleteAuthPolicyUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDeleteAuthPolicyUnauthorized

func NewDeleteAuthPolicyUnauthorized() *DeleteAuthPolicyUnauthorized

NewDeleteAuthPolicyUnauthorized creates a DeleteAuthPolicyUnauthorized with default headers values

func (*DeleteAuthPolicyUnauthorized) Error

func (*DeleteAuthPolicyUnauthorized) GetPayload

type DetailAuthPolicyNotFound

type DetailAuthPolicyNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
DetailAuthPolicyNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewDetailAuthPolicyNotFound

func NewDetailAuthPolicyNotFound() *DetailAuthPolicyNotFound

NewDetailAuthPolicyNotFound creates a DetailAuthPolicyNotFound with default headers values

func (*DetailAuthPolicyNotFound) Error

func (o *DetailAuthPolicyNotFound) Error() string

func (*DetailAuthPolicyNotFound) GetPayload

type DetailAuthPolicyOK

type DetailAuthPolicyOK struct {
	Payload *rest_model.DetailAuthPolicyEnvelope
}
DetailAuthPolicyOK describes a response with status code 200, with default header values.

A singular Auth Policy resource

func NewDetailAuthPolicyOK

func NewDetailAuthPolicyOK() *DetailAuthPolicyOK

NewDetailAuthPolicyOK creates a DetailAuthPolicyOK with default headers values

func (*DetailAuthPolicyOK) Error

func (o *DetailAuthPolicyOK) Error() string

func (*DetailAuthPolicyOK) GetPayload

type DetailAuthPolicyParams

type DetailAuthPolicyParams struct {

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

DetailAuthPolicyParams contains all the parameters to send to the API endpoint

for the detail auth policy operation.

Typically these are written to a http.Request.

func NewDetailAuthPolicyParams

func NewDetailAuthPolicyParams() *DetailAuthPolicyParams

NewDetailAuthPolicyParams creates a new DetailAuthPolicyParams 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 NewDetailAuthPolicyParamsWithContext

func NewDetailAuthPolicyParamsWithContext(ctx context.Context) *DetailAuthPolicyParams

NewDetailAuthPolicyParamsWithContext creates a new DetailAuthPolicyParams object with the ability to set a context for a request.

func NewDetailAuthPolicyParamsWithHTTPClient

func NewDetailAuthPolicyParamsWithHTTPClient(client *http.Client) *DetailAuthPolicyParams

NewDetailAuthPolicyParamsWithHTTPClient creates a new DetailAuthPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewDetailAuthPolicyParamsWithTimeout

func NewDetailAuthPolicyParamsWithTimeout(timeout time.Duration) *DetailAuthPolicyParams

NewDetailAuthPolicyParamsWithTimeout creates a new DetailAuthPolicyParams object with the ability to set a timeout on a request.

func (*DetailAuthPolicyParams) SetContext

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

SetContext adds the context to the detail auth policy params

func (*DetailAuthPolicyParams) SetDefaults

func (o *DetailAuthPolicyParams) SetDefaults()

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

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

func (*DetailAuthPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the detail auth policy params

func (*DetailAuthPolicyParams) SetID

func (o *DetailAuthPolicyParams) SetID(id string)

SetID adds the id to the detail auth policy params

func (*DetailAuthPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the detail auth policy params

func (*DetailAuthPolicyParams) WithContext

WithContext adds the context to the detail auth policy params

func (*DetailAuthPolicyParams) WithDefaults

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

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

func (*DetailAuthPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the detail auth policy params

func (*DetailAuthPolicyParams) WithID

WithID adds the id to the detail auth policy params

func (*DetailAuthPolicyParams) WithTimeout

WithTimeout adds the timeout to the detail auth policy params

func (*DetailAuthPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DetailAuthPolicyReader

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

DetailAuthPolicyReader is a Reader for the DetailAuthPolicy structure.

func (*DetailAuthPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DetailAuthPolicyUnauthorized

type DetailAuthPolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
DetailAuthPolicyUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDetailAuthPolicyUnauthorized

func NewDetailAuthPolicyUnauthorized() *DetailAuthPolicyUnauthorized

NewDetailAuthPolicyUnauthorized creates a DetailAuthPolicyUnauthorized with default headers values

func (*DetailAuthPolicyUnauthorized) Error

func (*DetailAuthPolicyUnauthorized) GetPayload

type ListAuthPoliciesBadRequest

type ListAuthPoliciesBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
ListAuthPoliciesBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewListAuthPoliciesBadRequest

func NewListAuthPoliciesBadRequest() *ListAuthPoliciesBadRequest

NewListAuthPoliciesBadRequest creates a ListAuthPoliciesBadRequest with default headers values

func (*ListAuthPoliciesBadRequest) Error

func (*ListAuthPoliciesBadRequest) GetPayload

type ListAuthPoliciesOK

type ListAuthPoliciesOK struct {
	Payload *rest_model.ListAuthPoliciesEnvelope
}
ListAuthPoliciesOK describes a response with status code 200, with default header values.

A list of Auth Policies

func NewListAuthPoliciesOK

func NewListAuthPoliciesOK() *ListAuthPoliciesOK

NewListAuthPoliciesOK creates a ListAuthPoliciesOK with default headers values

func (*ListAuthPoliciesOK) Error

func (o *ListAuthPoliciesOK) Error() string

func (*ListAuthPoliciesOK) GetPayload

type ListAuthPoliciesParams

type ListAuthPoliciesParams struct {

	// Filter.
	Filter *string

	// Limit.
	Limit *int64

	// Offset.
	Offset *int64

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

ListAuthPoliciesParams contains all the parameters to send to the API endpoint

for the list auth policies operation.

Typically these are written to a http.Request.

func NewListAuthPoliciesParams

func NewListAuthPoliciesParams() *ListAuthPoliciesParams

NewListAuthPoliciesParams creates a new ListAuthPoliciesParams 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 NewListAuthPoliciesParamsWithContext

func NewListAuthPoliciesParamsWithContext(ctx context.Context) *ListAuthPoliciesParams

NewListAuthPoliciesParamsWithContext creates a new ListAuthPoliciesParams object with the ability to set a context for a request.

func NewListAuthPoliciesParamsWithHTTPClient

func NewListAuthPoliciesParamsWithHTTPClient(client *http.Client) *ListAuthPoliciesParams

NewListAuthPoliciesParamsWithHTTPClient creates a new ListAuthPoliciesParams object with the ability to set a custom HTTPClient for a request.

func NewListAuthPoliciesParamsWithTimeout

func NewListAuthPoliciesParamsWithTimeout(timeout time.Duration) *ListAuthPoliciesParams

NewListAuthPoliciesParamsWithTimeout creates a new ListAuthPoliciesParams object with the ability to set a timeout on a request.

func (*ListAuthPoliciesParams) SetContext

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

SetContext adds the context to the list auth policies params

func (*ListAuthPoliciesParams) SetDefaults

func (o *ListAuthPoliciesParams) SetDefaults()

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

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

func (*ListAuthPoliciesParams) SetFilter

func (o *ListAuthPoliciesParams) SetFilter(filter *string)

SetFilter adds the filter to the list auth policies params

func (*ListAuthPoliciesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list auth policies params

func (*ListAuthPoliciesParams) SetLimit

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

SetLimit adds the limit to the list auth policies params

func (*ListAuthPoliciesParams) SetOffset

func (o *ListAuthPoliciesParams) SetOffset(offset *int64)

SetOffset adds the offset to the list auth policies params

func (*ListAuthPoliciesParams) SetTimeout

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

SetTimeout adds the timeout to the list auth policies params

func (*ListAuthPoliciesParams) WithContext

WithContext adds the context to the list auth policies params

func (*ListAuthPoliciesParams) WithDefaults

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

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

func (*ListAuthPoliciesParams) WithFilter

func (o *ListAuthPoliciesParams) WithFilter(filter *string) *ListAuthPoliciesParams

WithFilter adds the filter to the list auth policies params

func (*ListAuthPoliciesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list auth policies params

func (*ListAuthPoliciesParams) WithLimit

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

WithLimit adds the limit to the list auth policies params

func (*ListAuthPoliciesParams) WithOffset

func (o *ListAuthPoliciesParams) WithOffset(offset *int64) *ListAuthPoliciesParams

WithOffset adds the offset to the list auth policies params

func (*ListAuthPoliciesParams) WithTimeout

WithTimeout adds the timeout to the list auth policies params

func (*ListAuthPoliciesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListAuthPoliciesReader

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

ListAuthPoliciesReader is a Reader for the ListAuthPolicies structure.

func (*ListAuthPoliciesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListAuthPoliciesUnauthorized

type ListAuthPoliciesUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
ListAuthPoliciesUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewListAuthPoliciesUnauthorized

func NewListAuthPoliciesUnauthorized() *ListAuthPoliciesUnauthorized

NewListAuthPoliciesUnauthorized creates a ListAuthPoliciesUnauthorized with default headers values

func (*ListAuthPoliciesUnauthorized) Error

func (*ListAuthPoliciesUnauthorized) GetPayload

type PatchAuthPolicyBadRequest

type PatchAuthPolicyBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
PatchAuthPolicyBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewPatchAuthPolicyBadRequest

func NewPatchAuthPolicyBadRequest() *PatchAuthPolicyBadRequest

NewPatchAuthPolicyBadRequest creates a PatchAuthPolicyBadRequest with default headers values

func (*PatchAuthPolicyBadRequest) Error

func (o *PatchAuthPolicyBadRequest) Error() string

func (*PatchAuthPolicyBadRequest) GetPayload

type PatchAuthPolicyNotFound

type PatchAuthPolicyNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
PatchAuthPolicyNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewPatchAuthPolicyNotFound

func NewPatchAuthPolicyNotFound() *PatchAuthPolicyNotFound

NewPatchAuthPolicyNotFound creates a PatchAuthPolicyNotFound with default headers values

func (*PatchAuthPolicyNotFound) Error

func (o *PatchAuthPolicyNotFound) Error() string

func (*PatchAuthPolicyNotFound) GetPayload

type PatchAuthPolicyOK

type PatchAuthPolicyOK struct {
	Payload *rest_model.Empty
}
PatchAuthPolicyOK describes a response with status code 200, with default header values.

The patch request was successful and the resource has been altered

func NewPatchAuthPolicyOK

func NewPatchAuthPolicyOK() *PatchAuthPolicyOK

NewPatchAuthPolicyOK creates a PatchAuthPolicyOK with default headers values

func (*PatchAuthPolicyOK) Error

func (o *PatchAuthPolicyOK) Error() string

func (*PatchAuthPolicyOK) GetPayload

func (o *PatchAuthPolicyOK) GetPayload() *rest_model.Empty

type PatchAuthPolicyParams

type PatchAuthPolicyParams struct {

	/* AuthPolicy.

	   An Auth Policy patch object
	*/
	AuthPolicy *rest_model.AuthPolicyPatch

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

PatchAuthPolicyParams contains all the parameters to send to the API endpoint

for the patch auth policy operation.

Typically these are written to a http.Request.

func NewPatchAuthPolicyParams

func NewPatchAuthPolicyParams() *PatchAuthPolicyParams

NewPatchAuthPolicyParams creates a new PatchAuthPolicyParams 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 NewPatchAuthPolicyParamsWithContext

func NewPatchAuthPolicyParamsWithContext(ctx context.Context) *PatchAuthPolicyParams

NewPatchAuthPolicyParamsWithContext creates a new PatchAuthPolicyParams object with the ability to set a context for a request.

func NewPatchAuthPolicyParamsWithHTTPClient

func NewPatchAuthPolicyParamsWithHTTPClient(client *http.Client) *PatchAuthPolicyParams

NewPatchAuthPolicyParamsWithHTTPClient creates a new PatchAuthPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAuthPolicyParamsWithTimeout

func NewPatchAuthPolicyParamsWithTimeout(timeout time.Duration) *PatchAuthPolicyParams

NewPatchAuthPolicyParamsWithTimeout creates a new PatchAuthPolicyParams object with the ability to set a timeout on a request.

func (*PatchAuthPolicyParams) SetAuthPolicy

func (o *PatchAuthPolicyParams) SetAuthPolicy(authPolicy *rest_model.AuthPolicyPatch)

SetAuthPolicy adds the authPolicy to the patch auth policy params

func (*PatchAuthPolicyParams) SetContext

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

SetContext adds the context to the patch auth policy params

func (*PatchAuthPolicyParams) SetDefaults

func (o *PatchAuthPolicyParams) SetDefaults()

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

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

func (*PatchAuthPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch auth policy params

func (*PatchAuthPolicyParams) SetID

func (o *PatchAuthPolicyParams) SetID(id string)

SetID adds the id to the patch auth policy params

func (*PatchAuthPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the patch auth policy params

func (*PatchAuthPolicyParams) WithAuthPolicy

WithAuthPolicy adds the authPolicy to the patch auth policy params

func (*PatchAuthPolicyParams) WithContext

WithContext adds the context to the patch auth policy params

func (*PatchAuthPolicyParams) WithDefaults

func (o *PatchAuthPolicyParams) WithDefaults() *PatchAuthPolicyParams

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

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

func (*PatchAuthPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch auth policy params

func (*PatchAuthPolicyParams) WithID

WithID adds the id to the patch auth policy params

func (*PatchAuthPolicyParams) WithTimeout

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

WithTimeout adds the timeout to the patch auth policy params

func (*PatchAuthPolicyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PatchAuthPolicyReader

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

PatchAuthPolicyReader is a Reader for the PatchAuthPolicy structure.

func (*PatchAuthPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAuthPolicyUnauthorized

type PatchAuthPolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
PatchAuthPolicyUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewPatchAuthPolicyUnauthorized

func NewPatchAuthPolicyUnauthorized() *PatchAuthPolicyUnauthorized

NewPatchAuthPolicyUnauthorized creates a PatchAuthPolicyUnauthorized with default headers values

func (*PatchAuthPolicyUnauthorized) Error

func (*PatchAuthPolicyUnauthorized) GetPayload

type UpdateAuthPolicyBadRequest

type UpdateAuthPolicyBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
UpdateAuthPolicyBadRequest describes a response with status code 400, with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewUpdateAuthPolicyBadRequest

func NewUpdateAuthPolicyBadRequest() *UpdateAuthPolicyBadRequest

NewUpdateAuthPolicyBadRequest creates a UpdateAuthPolicyBadRequest with default headers values

func (*UpdateAuthPolicyBadRequest) Error

func (*UpdateAuthPolicyBadRequest) GetPayload

type UpdateAuthPolicyNotFound

type UpdateAuthPolicyNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}
UpdateAuthPolicyNotFound describes a response with status code 404, with default header values.

The requested resource does not exist

func NewUpdateAuthPolicyNotFound

func NewUpdateAuthPolicyNotFound() *UpdateAuthPolicyNotFound

NewUpdateAuthPolicyNotFound creates a UpdateAuthPolicyNotFound with default headers values

func (*UpdateAuthPolicyNotFound) Error

func (o *UpdateAuthPolicyNotFound) Error() string

func (*UpdateAuthPolicyNotFound) GetPayload

type UpdateAuthPolicyOK

type UpdateAuthPolicyOK struct {
	Payload *rest_model.Empty
}
UpdateAuthPolicyOK describes a response with status code 200, with default header values.

The update request was successful and the resource has been altered

func NewUpdateAuthPolicyOK

func NewUpdateAuthPolicyOK() *UpdateAuthPolicyOK

NewUpdateAuthPolicyOK creates a UpdateAuthPolicyOK with default headers values

func (*UpdateAuthPolicyOK) Error

func (o *UpdateAuthPolicyOK) Error() string

func (*UpdateAuthPolicyOK) GetPayload

func (o *UpdateAuthPolicyOK) GetPayload() *rest_model.Empty

type UpdateAuthPolicyParams

type UpdateAuthPolicyParams struct {

	/* AuthPolicy.

	   An Auth Policy update object
	*/
	AuthPolicy *rest_model.AuthPolicyUpdate

	/* ID.

	   The id of the requested resource
	*/
	ID string

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

UpdateAuthPolicyParams contains all the parameters to send to the API endpoint

for the update auth policy operation.

Typically these are written to a http.Request.

func NewUpdateAuthPolicyParams

func NewUpdateAuthPolicyParams() *UpdateAuthPolicyParams

NewUpdateAuthPolicyParams creates a new UpdateAuthPolicyParams 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 NewUpdateAuthPolicyParamsWithContext

func NewUpdateAuthPolicyParamsWithContext(ctx context.Context) *UpdateAuthPolicyParams

NewUpdateAuthPolicyParamsWithContext creates a new UpdateAuthPolicyParams object with the ability to set a context for a request.

func NewUpdateAuthPolicyParamsWithHTTPClient

func NewUpdateAuthPolicyParamsWithHTTPClient(client *http.Client) *UpdateAuthPolicyParams

NewUpdateAuthPolicyParamsWithHTTPClient creates a new UpdateAuthPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateAuthPolicyParamsWithTimeout

func NewUpdateAuthPolicyParamsWithTimeout(timeout time.Duration) *UpdateAuthPolicyParams

NewUpdateAuthPolicyParamsWithTimeout creates a new UpdateAuthPolicyParams object with the ability to set a timeout on a request.

func (*UpdateAuthPolicyParams) SetAuthPolicy

func (o *UpdateAuthPolicyParams) SetAuthPolicy(authPolicy *rest_model.AuthPolicyUpdate)

SetAuthPolicy adds the authPolicy to the update auth policy params

func (*UpdateAuthPolicyParams) SetContext

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

SetContext adds the context to the update auth policy params

func (*UpdateAuthPolicyParams) SetDefaults

func (o *UpdateAuthPolicyParams) SetDefaults()

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

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

func (*UpdateAuthPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update auth policy params

func (*UpdateAuthPolicyParams) SetID

func (o *UpdateAuthPolicyParams) SetID(id string)

SetID adds the id to the update auth policy params

func (*UpdateAuthPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the update auth policy params

func (*UpdateAuthPolicyParams) WithAuthPolicy

WithAuthPolicy adds the authPolicy to the update auth policy params

func (*UpdateAuthPolicyParams) WithContext

WithContext adds the context to the update auth policy params

func (*UpdateAuthPolicyParams) WithDefaults

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

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

func (*UpdateAuthPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update auth policy params

func (*UpdateAuthPolicyParams) WithID

WithID adds the id to the update auth policy params

func (*UpdateAuthPolicyParams) WithTimeout

WithTimeout adds the timeout to the update auth policy params

func (*UpdateAuthPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateAuthPolicyReader

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

UpdateAuthPolicyReader is a Reader for the UpdateAuthPolicy structure.

func (*UpdateAuthPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAuthPolicyUnauthorized

type UpdateAuthPolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
UpdateAuthPolicyUnauthorized describes a response with status code 401, with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewUpdateAuthPolicyUnauthorized

func NewUpdateAuthPolicyUnauthorized() *UpdateAuthPolicyUnauthorized

NewUpdateAuthPolicyUnauthorized creates a UpdateAuthPolicyUnauthorized with default headers values

func (*UpdateAuthPolicyUnauthorized) Error

func (*UpdateAuthPolicyUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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