roles

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for roles API

func (*Client) CreateRole

func (a *Client) CreateRole(params *CreateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRoleCreated, error)

CreateRole creates a role

Creates a new role.

func (*Client) DeleteRole

DeleteRole deletes a role

Delete a role by the role name. For roles linked to 3rd party providers, such as AWS or Azure, the role name

must be prefixed with the provider name from configuration in the format of <providername>:<rolename> i.e. aws-dev:db

func (*Client) GetRole

func (a *Client) GetRole(params *GetRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoleOK, error)
GetRole gets a role

Retrieve an existing role by role name. For roles linked to 3rd party providers, such as AWS or Azure, the role name

must be prefixed with the provider name from configuration in the format of <providername>:<rolename> i.e. aws-dev:db

func (*Client) GetRoleByVersion

func (a *Client) GetRoleByVersion(params *GetRoleByVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoleByVersionOK, error)
GetRoleByVersion gets a role by version

Retrieve an existing role by role name and versions. For roles linked to 3rd party providers, such as AWS or Azure, the role name

must be prefixed with the provider name from configuration in the format of <providername>:<rolename> i.e. aws-dev:db

func (*Client) RestoreRole

func (a *Client) RestoreRole(params *RestoreRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestoreRoleOK, error)

RestoreRole restores a role

Restore a role by path.

func (*Client) SearchRoles

func (a *Client) SearchRoles(params *SearchRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchRolesOK, error)

SearchRoles searches for roles

Search for one or more roles by role name.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateRole

func (a *Client) UpdateRole(params *UpdateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRoleOK, error)

UpdateRole updates a role

Update an existing role.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateRole(params *CreateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRoleCreated, error)

	DeleteRole(params *DeleteRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRoleOK, *DeleteRoleNoContent, error)

	GetRole(params *GetRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoleOK, error)

	GetRoleByVersion(params *GetRoleByVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoleByVersionOK, error)

	RestoreRole(params *RestoreRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestoreRoleOK, error)

	SearchRoles(params *SearchRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchRolesOK, error)

	UpdateRole(params *UpdateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRoleOK, 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 roles API client.

type CreateRoleBadRequest

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

bad request

func NewCreateRoleBadRequest

func NewCreateRoleBadRequest() *CreateRoleBadRequest

NewCreateRoleBadRequest creates a CreateRoleBadRequest with default headers values

func (*CreateRoleBadRequest) Error

func (o *CreateRoleBadRequest) Error() string

func (*CreateRoleBadRequest) GetPayload

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

func (*CreateRoleBadRequest) IsClientError

func (o *CreateRoleBadRequest) IsClientError() bool

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

func (*CreateRoleBadRequest) IsCode

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

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

func (*CreateRoleBadRequest) IsRedirect

func (o *CreateRoleBadRequest) IsRedirect() bool

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

func (*CreateRoleBadRequest) IsServerError

func (o *CreateRoleBadRequest) IsServerError() bool

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

func (*CreateRoleBadRequest) IsSuccess

func (o *CreateRoleBadRequest) IsSuccess() bool

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

func (*CreateRoleBadRequest) String

func (o *CreateRoleBadRequest) String() string

type CreateRoleCreated

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

no error

func NewCreateRoleCreated

func NewCreateRoleCreated() *CreateRoleCreated

NewCreateRoleCreated creates a CreateRoleCreated with default headers values

func (*CreateRoleCreated) Error

func (o *CreateRoleCreated) Error() string

func (*CreateRoleCreated) GetPayload

func (o *CreateRoleCreated) GetPayload() *models.Role

func (*CreateRoleCreated) IsClientError

func (o *CreateRoleCreated) IsClientError() bool

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

func (*CreateRoleCreated) IsCode

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

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

func (*CreateRoleCreated) IsRedirect

func (o *CreateRoleCreated) IsRedirect() bool

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

func (*CreateRoleCreated) IsServerError

func (o *CreateRoleCreated) IsServerError() bool

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

func (*CreateRoleCreated) IsSuccess

func (o *CreateRoleCreated) IsSuccess() bool

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

func (*CreateRoleCreated) String

func (o *CreateRoleCreated) String() string

type CreateRoleForbidden

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

forbidden

func NewCreateRoleForbidden

func NewCreateRoleForbidden() *CreateRoleForbidden

NewCreateRoleForbidden creates a CreateRoleForbidden with default headers values

func (*CreateRoleForbidden) Error

func (o *CreateRoleForbidden) Error() string

func (*CreateRoleForbidden) GetPayload

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

func (*CreateRoleForbidden) IsClientError

func (o *CreateRoleForbidden) IsClientError() bool

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

func (*CreateRoleForbidden) IsCode

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

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

func (*CreateRoleForbidden) IsRedirect

func (o *CreateRoleForbidden) IsRedirect() bool

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

func (*CreateRoleForbidden) IsServerError

func (o *CreateRoleForbidden) IsServerError() bool

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

func (*CreateRoleForbidden) IsSuccess

func (o *CreateRoleForbidden) IsSuccess() bool

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

func (*CreateRoleForbidden) String

func (o *CreateRoleForbidden) String() string

type CreateRoleInternalServerError

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

server error

func NewCreateRoleInternalServerError

func NewCreateRoleInternalServerError() *CreateRoleInternalServerError

NewCreateRoleInternalServerError creates a CreateRoleInternalServerError with default headers values

func (*CreateRoleInternalServerError) Error

func (*CreateRoleInternalServerError) GetPayload

func (*CreateRoleInternalServerError) IsClientError

func (o *CreateRoleInternalServerError) IsClientError() bool

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

func (*CreateRoleInternalServerError) IsCode

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

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

func (*CreateRoleInternalServerError) IsRedirect

func (o *CreateRoleInternalServerError) IsRedirect() bool

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

func (*CreateRoleInternalServerError) IsServerError

func (o *CreateRoleInternalServerError) IsServerError() bool

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

func (*CreateRoleInternalServerError) IsSuccess

func (o *CreateRoleInternalServerError) IsSuccess() bool

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

func (*CreateRoleInternalServerError) String

type CreateRoleParams

type CreateRoleParams struct {

	// Body.
	Body *models.RoleCreate

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

CreateRoleParams contains all the parameters to send to the API endpoint

for the create role operation.

Typically these are written to a http.Request.

func NewCreateRoleParams

func NewCreateRoleParams() *CreateRoleParams

NewCreateRoleParams creates a new CreateRoleParams 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 NewCreateRoleParamsWithContext

func NewCreateRoleParamsWithContext(ctx context.Context) *CreateRoleParams

NewCreateRoleParamsWithContext creates a new CreateRoleParams object with the ability to set a context for a request.

func NewCreateRoleParamsWithHTTPClient

func NewCreateRoleParamsWithHTTPClient(client *http.Client) *CreateRoleParams

NewCreateRoleParamsWithHTTPClient creates a new CreateRoleParams object with the ability to set a custom HTTPClient for a request.

func NewCreateRoleParamsWithTimeout

func NewCreateRoleParamsWithTimeout(timeout time.Duration) *CreateRoleParams

NewCreateRoleParamsWithTimeout creates a new CreateRoleParams object with the ability to set a timeout on a request.

func (*CreateRoleParams) SetBody

func (o *CreateRoleParams) SetBody(body *models.RoleCreate)

SetBody adds the body to the create role params

func (*CreateRoleParams) SetContext

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

SetContext adds the context to the create role params

func (*CreateRoleParams) SetDefaults

func (o *CreateRoleParams) SetDefaults()

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

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

func (*CreateRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create role params

func (*CreateRoleParams) SetTimeout

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

SetTimeout adds the timeout to the create role params

func (*CreateRoleParams) WithBody

func (o *CreateRoleParams) WithBody(body *models.RoleCreate) *CreateRoleParams

WithBody adds the body to the create role params

func (*CreateRoleParams) WithContext

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

WithContext adds the context to the create role params

func (*CreateRoleParams) WithDefaults

func (o *CreateRoleParams) WithDefaults() *CreateRoleParams

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

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

func (*CreateRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create role params

func (*CreateRoleParams) WithTimeout

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

WithTimeout adds the timeout to the create role params

func (*CreateRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateRoleReader

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

CreateRoleReader is a Reader for the CreateRole structure.

func (*CreateRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateRoleUnauthorized

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

unauthorized

func NewCreateRoleUnauthorized

func NewCreateRoleUnauthorized() *CreateRoleUnauthorized

NewCreateRoleUnauthorized creates a CreateRoleUnauthorized with default headers values

func (*CreateRoleUnauthorized) Error

func (o *CreateRoleUnauthorized) Error() string

func (*CreateRoleUnauthorized) GetPayload

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

func (*CreateRoleUnauthorized) IsClientError

func (o *CreateRoleUnauthorized) IsClientError() bool

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

func (*CreateRoleUnauthorized) IsCode

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

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

func (*CreateRoleUnauthorized) IsRedirect

func (o *CreateRoleUnauthorized) IsRedirect() bool

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

func (*CreateRoleUnauthorized) IsServerError

func (o *CreateRoleUnauthorized) IsServerError() bool

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

func (*CreateRoleUnauthorized) IsSuccess

func (o *CreateRoleUnauthorized) IsSuccess() bool

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

func (*CreateRoleUnauthorized) String

func (o *CreateRoleUnauthorized) String() string

type DeleteRoleBadRequest

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

bad request

func NewDeleteRoleBadRequest

func NewDeleteRoleBadRequest() *DeleteRoleBadRequest

NewDeleteRoleBadRequest creates a DeleteRoleBadRequest with default headers values

func (*DeleteRoleBadRequest) Error

func (o *DeleteRoleBadRequest) Error() string

func (*DeleteRoleBadRequest) GetPayload

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

func (*DeleteRoleBadRequest) IsClientError

func (o *DeleteRoleBadRequest) IsClientError() bool

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

func (*DeleteRoleBadRequest) IsCode

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

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

func (*DeleteRoleBadRequest) IsRedirect

func (o *DeleteRoleBadRequest) IsRedirect() bool

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

func (*DeleteRoleBadRequest) IsServerError

func (o *DeleteRoleBadRequest) IsServerError() bool

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

func (*DeleteRoleBadRequest) IsSuccess

func (o *DeleteRoleBadRequest) IsSuccess() bool

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

func (*DeleteRoleBadRequest) String

func (o *DeleteRoleBadRequest) String() string

type DeleteRoleForbidden

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

forbidden

func NewDeleteRoleForbidden

func NewDeleteRoleForbidden() *DeleteRoleForbidden

NewDeleteRoleForbidden creates a DeleteRoleForbidden with default headers values

func (*DeleteRoleForbidden) Error

func (o *DeleteRoleForbidden) Error() string

func (*DeleteRoleForbidden) GetPayload

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

func (*DeleteRoleForbidden) IsClientError

func (o *DeleteRoleForbidden) IsClientError() bool

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

func (*DeleteRoleForbidden) IsCode

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

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

func (*DeleteRoleForbidden) IsRedirect

func (o *DeleteRoleForbidden) IsRedirect() bool

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

func (*DeleteRoleForbidden) IsServerError

func (o *DeleteRoleForbidden) IsServerError() bool

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

func (*DeleteRoleForbidden) IsSuccess

func (o *DeleteRoleForbidden) IsSuccess() bool

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

func (*DeleteRoleForbidden) String

func (o *DeleteRoleForbidden) String() string

type DeleteRoleInternalServerError

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

server error

func NewDeleteRoleInternalServerError

func NewDeleteRoleInternalServerError() *DeleteRoleInternalServerError

NewDeleteRoleInternalServerError creates a DeleteRoleInternalServerError with default headers values

func (*DeleteRoleInternalServerError) Error

func (*DeleteRoleInternalServerError) GetPayload

func (*DeleteRoleInternalServerError) IsClientError

func (o *DeleteRoleInternalServerError) IsClientError() bool

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

func (*DeleteRoleInternalServerError) IsCode

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

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

func (*DeleteRoleInternalServerError) IsRedirect

func (o *DeleteRoleInternalServerError) IsRedirect() bool

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

func (*DeleteRoleInternalServerError) IsServerError

func (o *DeleteRoleInternalServerError) IsServerError() bool

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

func (*DeleteRoleInternalServerError) IsSuccess

func (o *DeleteRoleInternalServerError) IsSuccess() bool

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

func (*DeleteRoleInternalServerError) String

type DeleteRoleNoContent

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

no error

func NewDeleteRoleNoContent

func NewDeleteRoleNoContent() *DeleteRoleNoContent

NewDeleteRoleNoContent creates a DeleteRoleNoContent with default headers values

func (*DeleteRoleNoContent) Error

func (o *DeleteRoleNoContent) Error() string

func (*DeleteRoleNoContent) IsClientError

func (o *DeleteRoleNoContent) IsClientError() bool

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

func (*DeleteRoleNoContent) IsCode

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

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

func (*DeleteRoleNoContent) IsRedirect

func (o *DeleteRoleNoContent) IsRedirect() bool

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

func (*DeleteRoleNoContent) IsServerError

func (o *DeleteRoleNoContent) IsServerError() bool

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

func (*DeleteRoleNoContent) IsSuccess

func (o *DeleteRoleNoContent) IsSuccess() bool

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

func (*DeleteRoleNoContent) String

func (o *DeleteRoleNoContent) String() string

type DeleteRoleNotFound

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

not found

func NewDeleteRoleNotFound

func NewDeleteRoleNotFound() *DeleteRoleNotFound

NewDeleteRoleNotFound creates a DeleteRoleNotFound with default headers values

func (*DeleteRoleNotFound) Error

func (o *DeleteRoleNotFound) Error() string

func (*DeleteRoleNotFound) GetPayload

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

func (*DeleteRoleNotFound) IsClientError

func (o *DeleteRoleNotFound) IsClientError() bool

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

func (*DeleteRoleNotFound) IsCode

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

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

func (*DeleteRoleNotFound) IsRedirect

func (o *DeleteRoleNotFound) IsRedirect() bool

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

func (*DeleteRoleNotFound) IsServerError

func (o *DeleteRoleNotFound) IsServerError() bool

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

func (*DeleteRoleNotFound) IsSuccess

func (o *DeleteRoleNotFound) IsSuccess() bool

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

func (*DeleteRoleNotFound) String

func (o *DeleteRoleNotFound) String() string

type DeleteRoleOK

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

no error

func NewDeleteRoleOK

func NewDeleteRoleOK() *DeleteRoleOK

NewDeleteRoleOK creates a DeleteRoleOK with default headers values

func (*DeleteRoleOK) Error

func (o *DeleteRoleOK) Error() string

func (*DeleteRoleOK) GetPayload

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

func (*DeleteRoleOK) IsClientError

func (o *DeleteRoleOK) IsClientError() bool

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

func (*DeleteRoleOK) IsCode

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

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

func (*DeleteRoleOK) IsRedirect

func (o *DeleteRoleOK) IsRedirect() bool

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

func (*DeleteRoleOK) IsServerError

func (o *DeleteRoleOK) IsServerError() bool

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

func (*DeleteRoleOK) IsSuccess

func (o *DeleteRoleOK) IsSuccess() bool

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

func (*DeleteRoleOK) String

func (o *DeleteRoleOK) String() string

type DeleteRoleParams

type DeleteRoleParams struct {

	/* Force.

	   Delete immediately
	*/
	Force *bool

	/* Name.

	   Full role name to lookup role by
	*/
	Name string

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

DeleteRoleParams contains all the parameters to send to the API endpoint

for the delete role operation.

Typically these are written to a http.Request.

func NewDeleteRoleParams

func NewDeleteRoleParams() *DeleteRoleParams

NewDeleteRoleParams creates a new DeleteRoleParams 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 NewDeleteRoleParamsWithContext

func NewDeleteRoleParamsWithContext(ctx context.Context) *DeleteRoleParams

NewDeleteRoleParamsWithContext creates a new DeleteRoleParams object with the ability to set a context for a request.

func NewDeleteRoleParamsWithHTTPClient

func NewDeleteRoleParamsWithHTTPClient(client *http.Client) *DeleteRoleParams

NewDeleteRoleParamsWithHTTPClient creates a new DeleteRoleParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteRoleParamsWithTimeout

func NewDeleteRoleParamsWithTimeout(timeout time.Duration) *DeleteRoleParams

NewDeleteRoleParamsWithTimeout creates a new DeleteRoleParams object with the ability to set a timeout on a request.

func (*DeleteRoleParams) SetContext

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

SetContext adds the context to the delete role params

func (*DeleteRoleParams) SetDefaults

func (o *DeleteRoleParams) SetDefaults()

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

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

func (*DeleteRoleParams) SetForce

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

SetForce adds the force to the delete role params

func (*DeleteRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete role params

func (*DeleteRoleParams) SetName

func (o *DeleteRoleParams) SetName(name string)

SetName adds the name to the delete role params

func (*DeleteRoleParams) SetTimeout

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

SetTimeout adds the timeout to the delete role params

func (*DeleteRoleParams) WithContext

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

WithContext adds the context to the delete role params

func (*DeleteRoleParams) WithDefaults

func (o *DeleteRoleParams) WithDefaults() *DeleteRoleParams

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

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

func (*DeleteRoleParams) WithForce

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

WithForce adds the force to the delete role params

func (*DeleteRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete role params

func (*DeleteRoleParams) WithName

func (o *DeleteRoleParams) WithName(name string) *DeleteRoleParams

WithName adds the name to the delete role params

func (*DeleteRoleParams) WithTimeout

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

WithTimeout adds the timeout to the delete role params

func (*DeleteRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRoleReader

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

DeleteRoleReader is a Reader for the DeleteRole structure.

func (*DeleteRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRoleUnauthorized

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

unauthorized

func NewDeleteRoleUnauthorized

func NewDeleteRoleUnauthorized() *DeleteRoleUnauthorized

NewDeleteRoleUnauthorized creates a DeleteRoleUnauthorized with default headers values

func (*DeleteRoleUnauthorized) Error

func (o *DeleteRoleUnauthorized) Error() string

func (*DeleteRoleUnauthorized) GetPayload

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

func (*DeleteRoleUnauthorized) IsClientError

func (o *DeleteRoleUnauthorized) IsClientError() bool

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

func (*DeleteRoleUnauthorized) IsCode

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

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

func (*DeleteRoleUnauthorized) IsRedirect

func (o *DeleteRoleUnauthorized) IsRedirect() bool

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

func (*DeleteRoleUnauthorized) IsServerError

func (o *DeleteRoleUnauthorized) IsServerError() bool

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

func (*DeleteRoleUnauthorized) IsSuccess

func (o *DeleteRoleUnauthorized) IsSuccess() bool

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

func (*DeleteRoleUnauthorized) String

func (o *DeleteRoleUnauthorized) String() string

type GetRoleBadRequest

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

bad request

func NewGetRoleBadRequest

func NewGetRoleBadRequest() *GetRoleBadRequest

NewGetRoleBadRequest creates a GetRoleBadRequest with default headers values

func (*GetRoleBadRequest) Error

func (o *GetRoleBadRequest) Error() string

func (*GetRoleBadRequest) GetPayload

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

func (*GetRoleBadRequest) IsClientError

func (o *GetRoleBadRequest) IsClientError() bool

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

func (*GetRoleBadRequest) IsCode

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

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

func (*GetRoleBadRequest) IsRedirect

func (o *GetRoleBadRequest) IsRedirect() bool

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

func (*GetRoleBadRequest) IsServerError

func (o *GetRoleBadRequest) IsServerError() bool

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

func (*GetRoleBadRequest) IsSuccess

func (o *GetRoleBadRequest) IsSuccess() bool

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

func (*GetRoleBadRequest) String

func (o *GetRoleBadRequest) String() string

type GetRoleByVersionBadRequest

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

bad request

func NewGetRoleByVersionBadRequest

func NewGetRoleByVersionBadRequest() *GetRoleByVersionBadRequest

NewGetRoleByVersionBadRequest creates a GetRoleByVersionBadRequest with default headers values

func (*GetRoleByVersionBadRequest) Error

func (*GetRoleByVersionBadRequest) GetPayload

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

func (*GetRoleByVersionBadRequest) IsClientError

func (o *GetRoleByVersionBadRequest) IsClientError() bool

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

func (*GetRoleByVersionBadRequest) IsCode

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

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

func (*GetRoleByVersionBadRequest) IsRedirect

func (o *GetRoleByVersionBadRequest) IsRedirect() bool

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

func (*GetRoleByVersionBadRequest) IsServerError

func (o *GetRoleByVersionBadRequest) IsServerError() bool

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

func (*GetRoleByVersionBadRequest) IsSuccess

func (o *GetRoleByVersionBadRequest) IsSuccess() bool

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

func (*GetRoleByVersionBadRequest) String

func (o *GetRoleByVersionBadRequest) String() string

type GetRoleByVersionForbidden

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

forbidden

func NewGetRoleByVersionForbidden

func NewGetRoleByVersionForbidden() *GetRoleByVersionForbidden

NewGetRoleByVersionForbidden creates a GetRoleByVersionForbidden with default headers values

func (*GetRoleByVersionForbidden) Error

func (o *GetRoleByVersionForbidden) Error() string

func (*GetRoleByVersionForbidden) GetPayload

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

func (*GetRoleByVersionForbidden) IsClientError

func (o *GetRoleByVersionForbidden) IsClientError() bool

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

func (*GetRoleByVersionForbidden) IsCode

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

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

func (*GetRoleByVersionForbidden) IsRedirect

func (o *GetRoleByVersionForbidden) IsRedirect() bool

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

func (*GetRoleByVersionForbidden) IsServerError

func (o *GetRoleByVersionForbidden) IsServerError() bool

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

func (*GetRoleByVersionForbidden) IsSuccess

func (o *GetRoleByVersionForbidden) IsSuccess() bool

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

func (*GetRoleByVersionForbidden) String

func (o *GetRoleByVersionForbidden) String() string

type GetRoleByVersionInternalServerError

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

server error

func NewGetRoleByVersionInternalServerError

func NewGetRoleByVersionInternalServerError() *GetRoleByVersionInternalServerError

NewGetRoleByVersionInternalServerError creates a GetRoleByVersionInternalServerError with default headers values

func (*GetRoleByVersionInternalServerError) Error

func (*GetRoleByVersionInternalServerError) GetPayload

func (*GetRoleByVersionInternalServerError) IsClientError

func (o *GetRoleByVersionInternalServerError) IsClientError() bool

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

func (*GetRoleByVersionInternalServerError) IsCode

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

func (*GetRoleByVersionInternalServerError) IsRedirect

func (o *GetRoleByVersionInternalServerError) IsRedirect() bool

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

func (*GetRoleByVersionInternalServerError) IsServerError

func (o *GetRoleByVersionInternalServerError) IsServerError() bool

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

func (*GetRoleByVersionInternalServerError) IsSuccess

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

func (*GetRoleByVersionInternalServerError) String

type GetRoleByVersionNotFound

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

not found

func NewGetRoleByVersionNotFound

func NewGetRoleByVersionNotFound() *GetRoleByVersionNotFound

NewGetRoleByVersionNotFound creates a GetRoleByVersionNotFound with default headers values

func (*GetRoleByVersionNotFound) Error

func (o *GetRoleByVersionNotFound) Error() string

func (*GetRoleByVersionNotFound) GetPayload

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

func (*GetRoleByVersionNotFound) IsClientError

func (o *GetRoleByVersionNotFound) IsClientError() bool

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

func (*GetRoleByVersionNotFound) IsCode

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

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

func (*GetRoleByVersionNotFound) IsRedirect

func (o *GetRoleByVersionNotFound) IsRedirect() bool

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

func (*GetRoleByVersionNotFound) IsServerError

func (o *GetRoleByVersionNotFound) IsServerError() bool

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

func (*GetRoleByVersionNotFound) IsSuccess

func (o *GetRoleByVersionNotFound) IsSuccess() bool

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

func (*GetRoleByVersionNotFound) String

func (o *GetRoleByVersionNotFound) String() string

type GetRoleByVersionOK

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

no error

func NewGetRoleByVersionOK

func NewGetRoleByVersionOK() *GetRoleByVersionOK

NewGetRoleByVersionOK creates a GetRoleByVersionOK with default headers values

func (*GetRoleByVersionOK) Error

func (o *GetRoleByVersionOK) Error() string

func (*GetRoleByVersionOK) GetPayload

func (*GetRoleByVersionOK) IsClientError

func (o *GetRoleByVersionOK) IsClientError() bool

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

func (*GetRoleByVersionOK) IsCode

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

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

func (*GetRoleByVersionOK) IsRedirect

func (o *GetRoleByVersionOK) IsRedirect() bool

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

func (*GetRoleByVersionOK) IsServerError

func (o *GetRoleByVersionOK) IsServerError() bool

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

func (*GetRoleByVersionOK) IsSuccess

func (o *GetRoleByVersionOK) IsSuccess() bool

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

func (*GetRoleByVersionOK) String

func (o *GetRoleByVersionOK) String() string

type GetRoleByVersionParams

type GetRoleByVersionParams struct {

	/* Name.

	   Full name to lookup role by
	*/
	Name string

	/* Version.

	   Versions to return

	   Format: int64
	*/
	Version int64

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

GetRoleByVersionParams contains all the parameters to send to the API endpoint

for the get role by version operation.

Typically these are written to a http.Request.

func NewGetRoleByVersionParams

func NewGetRoleByVersionParams() *GetRoleByVersionParams

NewGetRoleByVersionParams creates a new GetRoleByVersionParams 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 NewGetRoleByVersionParamsWithContext

func NewGetRoleByVersionParamsWithContext(ctx context.Context) *GetRoleByVersionParams

NewGetRoleByVersionParamsWithContext creates a new GetRoleByVersionParams object with the ability to set a context for a request.

func NewGetRoleByVersionParamsWithHTTPClient

func NewGetRoleByVersionParamsWithHTTPClient(client *http.Client) *GetRoleByVersionParams

NewGetRoleByVersionParamsWithHTTPClient creates a new GetRoleByVersionParams object with the ability to set a custom HTTPClient for a request.

func NewGetRoleByVersionParamsWithTimeout

func NewGetRoleByVersionParamsWithTimeout(timeout time.Duration) *GetRoleByVersionParams

NewGetRoleByVersionParamsWithTimeout creates a new GetRoleByVersionParams object with the ability to set a timeout on a request.

func (*GetRoleByVersionParams) SetContext

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

SetContext adds the context to the get role by version params

func (*GetRoleByVersionParams) SetDefaults

func (o *GetRoleByVersionParams) SetDefaults()

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

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

func (*GetRoleByVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get role by version params

func (*GetRoleByVersionParams) SetName

func (o *GetRoleByVersionParams) SetName(name string)

SetName adds the name to the get role by version params

func (*GetRoleByVersionParams) SetTimeout

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

SetTimeout adds the timeout to the get role by version params

func (*GetRoleByVersionParams) SetVersion

func (o *GetRoleByVersionParams) SetVersion(version int64)

SetVersion adds the version to the get role by version params

func (*GetRoleByVersionParams) WithContext

WithContext adds the context to the get role by version params

func (*GetRoleByVersionParams) WithDefaults

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

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

func (*GetRoleByVersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get role by version params

func (*GetRoleByVersionParams) WithName

WithName adds the name to the get role by version params

func (*GetRoleByVersionParams) WithTimeout

WithTimeout adds the timeout to the get role by version params

func (*GetRoleByVersionParams) WithVersion

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

WithVersion adds the version to the get role by version params

func (*GetRoleByVersionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRoleByVersionReader

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

GetRoleByVersionReader is a Reader for the GetRoleByVersion structure.

func (*GetRoleByVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRoleByVersionUnauthorized

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

unauthorized

func NewGetRoleByVersionUnauthorized

func NewGetRoleByVersionUnauthorized() *GetRoleByVersionUnauthorized

NewGetRoleByVersionUnauthorized creates a GetRoleByVersionUnauthorized with default headers values

func (*GetRoleByVersionUnauthorized) Error

func (*GetRoleByVersionUnauthorized) GetPayload

func (*GetRoleByVersionUnauthorized) IsClientError

func (o *GetRoleByVersionUnauthorized) IsClientError() bool

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

func (*GetRoleByVersionUnauthorized) IsCode

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

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

func (*GetRoleByVersionUnauthorized) IsRedirect

func (o *GetRoleByVersionUnauthorized) IsRedirect() bool

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

func (*GetRoleByVersionUnauthorized) IsServerError

func (o *GetRoleByVersionUnauthorized) IsServerError() bool

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

func (*GetRoleByVersionUnauthorized) IsSuccess

func (o *GetRoleByVersionUnauthorized) IsSuccess() bool

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

func (*GetRoleByVersionUnauthorized) String

type GetRoleForbidden

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

forbidden

func NewGetRoleForbidden

func NewGetRoleForbidden() *GetRoleForbidden

NewGetRoleForbidden creates a GetRoleForbidden with default headers values

func (*GetRoleForbidden) Error

func (o *GetRoleForbidden) Error() string

func (*GetRoleForbidden) GetPayload

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

func (*GetRoleForbidden) IsClientError

func (o *GetRoleForbidden) IsClientError() bool

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

func (*GetRoleForbidden) IsCode

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

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

func (*GetRoleForbidden) IsRedirect

func (o *GetRoleForbidden) IsRedirect() bool

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

func (*GetRoleForbidden) IsServerError

func (o *GetRoleForbidden) IsServerError() bool

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

func (*GetRoleForbidden) IsSuccess

func (o *GetRoleForbidden) IsSuccess() bool

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

func (*GetRoleForbidden) String

func (o *GetRoleForbidden) String() string

type GetRoleInternalServerError

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

server error

func NewGetRoleInternalServerError

func NewGetRoleInternalServerError() *GetRoleInternalServerError

NewGetRoleInternalServerError creates a GetRoleInternalServerError with default headers values

func (*GetRoleInternalServerError) Error

func (*GetRoleInternalServerError) GetPayload

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

func (*GetRoleInternalServerError) IsClientError

func (o *GetRoleInternalServerError) IsClientError() bool

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

func (*GetRoleInternalServerError) IsCode

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

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

func (*GetRoleInternalServerError) IsRedirect

func (o *GetRoleInternalServerError) IsRedirect() bool

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

func (*GetRoleInternalServerError) IsServerError

func (o *GetRoleInternalServerError) IsServerError() bool

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

func (*GetRoleInternalServerError) IsSuccess

func (o *GetRoleInternalServerError) IsSuccess() bool

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

func (*GetRoleInternalServerError) String

func (o *GetRoleInternalServerError) String() string

type GetRoleNotFound

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

not found

func NewGetRoleNotFound

func NewGetRoleNotFound() *GetRoleNotFound

NewGetRoleNotFound creates a GetRoleNotFound with default headers values

func (*GetRoleNotFound) Error

func (o *GetRoleNotFound) Error() string

func (*GetRoleNotFound) GetPayload

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

func (*GetRoleNotFound) IsClientError

func (o *GetRoleNotFound) IsClientError() bool

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

func (*GetRoleNotFound) IsCode

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

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

func (*GetRoleNotFound) IsRedirect

func (o *GetRoleNotFound) IsRedirect() bool

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

func (*GetRoleNotFound) IsServerError

func (o *GetRoleNotFound) IsServerError() bool

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

func (*GetRoleNotFound) IsSuccess

func (o *GetRoleNotFound) IsSuccess() bool

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

func (*GetRoleNotFound) String

func (o *GetRoleNotFound) String() string

type GetRoleOK

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

no error

func NewGetRoleOK

func NewGetRoleOK() *GetRoleOK

NewGetRoleOK creates a GetRoleOK with default headers values

func (*GetRoleOK) Error

func (o *GetRoleOK) Error() string

func (*GetRoleOK) GetPayload

func (o *GetRoleOK) GetPayload() *models.Role

func (*GetRoleOK) IsClientError

func (o *GetRoleOK) IsClientError() bool

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

func (*GetRoleOK) IsCode

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

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

func (*GetRoleOK) IsRedirect

func (o *GetRoleOK) IsRedirect() bool

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

func (*GetRoleOK) IsServerError

func (o *GetRoleOK) IsServerError() bool

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

func (*GetRoleOK) IsSuccess

func (o *GetRoleOK) IsSuccess() bool

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

func (*GetRoleOK) String

func (o *GetRoleOK) String() string

type GetRoleParams

type GetRoleParams struct {

	/* Name.

	   Full role name to lookup role by
	*/
	Name string

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

GetRoleParams contains all the parameters to send to the API endpoint

for the get role operation.

Typically these are written to a http.Request.

func NewGetRoleParams

func NewGetRoleParams() *GetRoleParams

NewGetRoleParams creates a new GetRoleParams 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 NewGetRoleParamsWithContext

func NewGetRoleParamsWithContext(ctx context.Context) *GetRoleParams

NewGetRoleParamsWithContext creates a new GetRoleParams object with the ability to set a context for a request.

func NewGetRoleParamsWithHTTPClient

func NewGetRoleParamsWithHTTPClient(client *http.Client) *GetRoleParams

NewGetRoleParamsWithHTTPClient creates a new GetRoleParams object with the ability to set a custom HTTPClient for a request.

func NewGetRoleParamsWithTimeout

func NewGetRoleParamsWithTimeout(timeout time.Duration) *GetRoleParams

NewGetRoleParamsWithTimeout creates a new GetRoleParams object with the ability to set a timeout on a request.

func (*GetRoleParams) SetContext

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

SetContext adds the context to the get role params

func (*GetRoleParams) SetDefaults

func (o *GetRoleParams) SetDefaults()

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

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

func (*GetRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get role params

func (*GetRoleParams) SetName

func (o *GetRoleParams) SetName(name string)

SetName adds the name to the get role params

func (*GetRoleParams) SetTimeout

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

SetTimeout adds the timeout to the get role params

func (*GetRoleParams) WithContext

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

WithContext adds the context to the get role params

func (*GetRoleParams) WithDefaults

func (o *GetRoleParams) WithDefaults() *GetRoleParams

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

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

func (*GetRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get role params

func (*GetRoleParams) WithName

func (o *GetRoleParams) WithName(name string) *GetRoleParams

WithName adds the name to the get role params

func (*GetRoleParams) WithTimeout

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

WithTimeout adds the timeout to the get role params

func (*GetRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRoleReader

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

GetRoleReader is a Reader for the GetRole structure.

func (*GetRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRoleUnauthorized

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

unauthorized

func NewGetRoleUnauthorized

func NewGetRoleUnauthorized() *GetRoleUnauthorized

NewGetRoleUnauthorized creates a GetRoleUnauthorized with default headers values

func (*GetRoleUnauthorized) Error

func (o *GetRoleUnauthorized) Error() string

func (*GetRoleUnauthorized) GetPayload

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

func (*GetRoleUnauthorized) IsClientError

func (o *GetRoleUnauthorized) IsClientError() bool

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

func (*GetRoleUnauthorized) IsCode

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

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

func (*GetRoleUnauthorized) IsRedirect

func (o *GetRoleUnauthorized) IsRedirect() bool

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

func (*GetRoleUnauthorized) IsServerError

func (o *GetRoleUnauthorized) IsServerError() bool

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

func (*GetRoleUnauthorized) IsSuccess

func (o *GetRoleUnauthorized) IsSuccess() bool

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

func (*GetRoleUnauthorized) String

func (o *GetRoleUnauthorized) String() string

type RestoreRoleBadRequest

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

bad request

func NewRestoreRoleBadRequest

func NewRestoreRoleBadRequest() *RestoreRoleBadRequest

NewRestoreRoleBadRequest creates a RestoreRoleBadRequest with default headers values

func (*RestoreRoleBadRequest) Error

func (o *RestoreRoleBadRequest) Error() string

func (*RestoreRoleBadRequest) GetPayload

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

func (*RestoreRoleBadRequest) IsClientError

func (o *RestoreRoleBadRequest) IsClientError() bool

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

func (*RestoreRoleBadRequest) IsCode

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

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

func (*RestoreRoleBadRequest) IsRedirect

func (o *RestoreRoleBadRequest) IsRedirect() bool

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

func (*RestoreRoleBadRequest) IsServerError

func (o *RestoreRoleBadRequest) IsServerError() bool

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

func (*RestoreRoleBadRequest) IsSuccess

func (o *RestoreRoleBadRequest) IsSuccess() bool

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

func (*RestoreRoleBadRequest) String

func (o *RestoreRoleBadRequest) String() string

type RestoreRoleForbidden

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

forbidden

func NewRestoreRoleForbidden

func NewRestoreRoleForbidden() *RestoreRoleForbidden

NewRestoreRoleForbidden creates a RestoreRoleForbidden with default headers values

func (*RestoreRoleForbidden) Error

func (o *RestoreRoleForbidden) Error() string

func (*RestoreRoleForbidden) GetPayload

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

func (*RestoreRoleForbidden) IsClientError

func (o *RestoreRoleForbidden) IsClientError() bool

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

func (*RestoreRoleForbidden) IsCode

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

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

func (*RestoreRoleForbidden) IsRedirect

func (o *RestoreRoleForbidden) IsRedirect() bool

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

func (*RestoreRoleForbidden) IsServerError

func (o *RestoreRoleForbidden) IsServerError() bool

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

func (*RestoreRoleForbidden) IsSuccess

func (o *RestoreRoleForbidden) IsSuccess() bool

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

func (*RestoreRoleForbidden) String

func (o *RestoreRoleForbidden) String() string

type RestoreRoleInternalServerError

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

server error

func NewRestoreRoleInternalServerError

func NewRestoreRoleInternalServerError() *RestoreRoleInternalServerError

NewRestoreRoleInternalServerError creates a RestoreRoleInternalServerError with default headers values

func (*RestoreRoleInternalServerError) Error

func (*RestoreRoleInternalServerError) GetPayload

func (*RestoreRoleInternalServerError) IsClientError

func (o *RestoreRoleInternalServerError) IsClientError() bool

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

func (*RestoreRoleInternalServerError) IsCode

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

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

func (*RestoreRoleInternalServerError) IsRedirect

func (o *RestoreRoleInternalServerError) IsRedirect() bool

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

func (*RestoreRoleInternalServerError) IsServerError

func (o *RestoreRoleInternalServerError) IsServerError() bool

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

func (*RestoreRoleInternalServerError) IsSuccess

func (o *RestoreRoleInternalServerError) IsSuccess() bool

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

func (*RestoreRoleInternalServerError) String

type RestoreRoleNotFound

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

not found

func NewRestoreRoleNotFound

func NewRestoreRoleNotFound() *RestoreRoleNotFound

NewRestoreRoleNotFound creates a RestoreRoleNotFound with default headers values

func (*RestoreRoleNotFound) Error

func (o *RestoreRoleNotFound) Error() string

func (*RestoreRoleNotFound) GetPayload

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

func (*RestoreRoleNotFound) IsClientError

func (o *RestoreRoleNotFound) IsClientError() bool

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

func (*RestoreRoleNotFound) IsCode

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

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

func (*RestoreRoleNotFound) IsRedirect

func (o *RestoreRoleNotFound) IsRedirect() bool

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

func (*RestoreRoleNotFound) IsServerError

func (o *RestoreRoleNotFound) IsServerError() bool

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

func (*RestoreRoleNotFound) IsSuccess

func (o *RestoreRoleNotFound) IsSuccess() bool

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

func (*RestoreRoleNotFound) String

func (o *RestoreRoleNotFound) String() string

type RestoreRoleOK

type RestoreRoleOK struct {
}
RestoreRoleOK describes a response with status code 200, with default header values.

no error

func NewRestoreRoleOK

func NewRestoreRoleOK() *RestoreRoleOK

NewRestoreRoleOK creates a RestoreRoleOK with default headers values

func (*RestoreRoleOK) Error

func (o *RestoreRoleOK) Error() string

func (*RestoreRoleOK) IsClientError

func (o *RestoreRoleOK) IsClientError() bool

IsClientError returns true when this restore role o k response has a 4xx status code

func (*RestoreRoleOK) IsCode

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

IsCode returns true when this restore role o k response a status code equal to that given

func (*RestoreRoleOK) IsRedirect

func (o *RestoreRoleOK) IsRedirect() bool

IsRedirect returns true when this restore role o k response has a 3xx status code

func (*RestoreRoleOK) IsServerError

func (o *RestoreRoleOK) IsServerError() bool

IsServerError returns true when this restore role o k response has a 5xx status code

func (*RestoreRoleOK) IsSuccess

func (o *RestoreRoleOK) IsSuccess() bool

IsSuccess returns true when this restore role o k response has a 2xx status code

func (*RestoreRoleOK) String

func (o *RestoreRoleOK) String() string

type RestoreRoleParams

type RestoreRoleParams struct {

	/* Name.

	   Full role name to lookup role by
	*/
	Name string

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

RestoreRoleParams contains all the parameters to send to the API endpoint

for the restore role operation.

Typically these are written to a http.Request.

func NewRestoreRoleParams

func NewRestoreRoleParams() *RestoreRoleParams

NewRestoreRoleParams creates a new RestoreRoleParams 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 NewRestoreRoleParamsWithContext

func NewRestoreRoleParamsWithContext(ctx context.Context) *RestoreRoleParams

NewRestoreRoleParamsWithContext creates a new RestoreRoleParams object with the ability to set a context for a request.

func NewRestoreRoleParamsWithHTTPClient

func NewRestoreRoleParamsWithHTTPClient(client *http.Client) *RestoreRoleParams

NewRestoreRoleParamsWithHTTPClient creates a new RestoreRoleParams object with the ability to set a custom HTTPClient for a request.

func NewRestoreRoleParamsWithTimeout

func NewRestoreRoleParamsWithTimeout(timeout time.Duration) *RestoreRoleParams

NewRestoreRoleParamsWithTimeout creates a new RestoreRoleParams object with the ability to set a timeout on a request.

func (*RestoreRoleParams) SetContext

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

SetContext adds the context to the restore role params

func (*RestoreRoleParams) SetDefaults

func (o *RestoreRoleParams) SetDefaults()

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

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

func (*RestoreRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the restore role params

func (*RestoreRoleParams) SetName

func (o *RestoreRoleParams) SetName(name string)

SetName adds the name to the restore role params

func (*RestoreRoleParams) SetTimeout

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

SetTimeout adds the timeout to the restore role params

func (*RestoreRoleParams) WithContext

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

WithContext adds the context to the restore role params

func (*RestoreRoleParams) WithDefaults

func (o *RestoreRoleParams) WithDefaults() *RestoreRoleParams

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

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

func (*RestoreRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the restore role params

func (*RestoreRoleParams) WithName

func (o *RestoreRoleParams) WithName(name string) *RestoreRoleParams

WithName adds the name to the restore role params

func (*RestoreRoleParams) WithTimeout

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

WithTimeout adds the timeout to the restore role params

func (*RestoreRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RestoreRoleReader

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

RestoreRoleReader is a Reader for the RestoreRole structure.

func (*RestoreRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestoreRoleUnauthorized

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

unauthorized

func NewRestoreRoleUnauthorized

func NewRestoreRoleUnauthorized() *RestoreRoleUnauthorized

NewRestoreRoleUnauthorized creates a RestoreRoleUnauthorized with default headers values

func (*RestoreRoleUnauthorized) Error

func (o *RestoreRoleUnauthorized) Error() string

func (*RestoreRoleUnauthorized) GetPayload

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

func (*RestoreRoleUnauthorized) IsClientError

func (o *RestoreRoleUnauthorized) IsClientError() bool

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

func (*RestoreRoleUnauthorized) IsCode

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

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

func (*RestoreRoleUnauthorized) IsRedirect

func (o *RestoreRoleUnauthorized) IsRedirect() bool

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

func (*RestoreRoleUnauthorized) IsServerError

func (o *RestoreRoleUnauthorized) IsServerError() bool

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

func (*RestoreRoleUnauthorized) IsSuccess

func (o *RestoreRoleUnauthorized) IsSuccess() bool

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

func (*RestoreRoleUnauthorized) String

func (o *RestoreRoleUnauthorized) String() string

type SearchRolesBadRequest

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

bad request

func NewSearchRolesBadRequest

func NewSearchRolesBadRequest() *SearchRolesBadRequest

NewSearchRolesBadRequest creates a SearchRolesBadRequest with default headers values

func (*SearchRolesBadRequest) Error

func (o *SearchRolesBadRequest) Error() string

func (*SearchRolesBadRequest) GetPayload

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

func (*SearchRolesBadRequest) IsClientError

func (o *SearchRolesBadRequest) IsClientError() bool

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

func (*SearchRolesBadRequest) IsCode

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

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

func (*SearchRolesBadRequest) IsRedirect

func (o *SearchRolesBadRequest) IsRedirect() bool

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

func (*SearchRolesBadRequest) IsServerError

func (o *SearchRolesBadRequest) IsServerError() bool

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

func (*SearchRolesBadRequest) IsSuccess

func (o *SearchRolesBadRequest) IsSuccess() bool

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

func (*SearchRolesBadRequest) String

func (o *SearchRolesBadRequest) String() string

type SearchRolesInternalServerError

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

server error

func NewSearchRolesInternalServerError

func NewSearchRolesInternalServerError() *SearchRolesInternalServerError

NewSearchRolesInternalServerError creates a SearchRolesInternalServerError with default headers values

func (*SearchRolesInternalServerError) Error

func (*SearchRolesInternalServerError) GetPayload

func (*SearchRolesInternalServerError) IsClientError

func (o *SearchRolesInternalServerError) IsClientError() bool

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

func (*SearchRolesInternalServerError) IsCode

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

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

func (*SearchRolesInternalServerError) IsRedirect

func (o *SearchRolesInternalServerError) IsRedirect() bool

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

func (*SearchRolesInternalServerError) IsServerError

func (o *SearchRolesInternalServerError) IsServerError() bool

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

func (*SearchRolesInternalServerError) IsSuccess

func (o *SearchRolesInternalServerError) IsSuccess() bool

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

func (*SearchRolesInternalServerError) String

type SearchRolesOK

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

no error

func NewSearchRolesOK

func NewSearchRolesOK() *SearchRolesOK

NewSearchRolesOK creates a SearchRolesOK with default headers values

func (*SearchRolesOK) Error

func (o *SearchRolesOK) Error() string

func (*SearchRolesOK) GetPayload

func (o *SearchRolesOK) GetPayload() *models.ResponseModelSearch

func (*SearchRolesOK) IsClientError

func (o *SearchRolesOK) IsClientError() bool

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

func (*SearchRolesOK) IsCode

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

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

func (*SearchRolesOK) IsRedirect

func (o *SearchRolesOK) IsRedirect() bool

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

func (*SearchRolesOK) IsServerError

func (o *SearchRolesOK) IsServerError() bool

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

func (*SearchRolesOK) IsSuccess

func (o *SearchRolesOK) IsSuccess() bool

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

func (*SearchRolesOK) String

func (o *SearchRolesOK) String() string

type SearchRolesParams

type SearchRolesParams struct {

	/* Cursor.

	   C ursor to next batch of results
	*/
	Cursor *string

	/* Limit.

	   The maximum number of results per cursor

	   Format: int64
	*/
	Limit *int64

	/* SearchTerm.

	   Search pattern for names of roles to look up
	*/
	SearchTerm *string

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

SearchRolesParams contains all the parameters to send to the API endpoint

for the search roles operation.

Typically these are written to a http.Request.

func NewSearchRolesParams

func NewSearchRolesParams() *SearchRolesParams

NewSearchRolesParams creates a new SearchRolesParams 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 NewSearchRolesParamsWithContext

func NewSearchRolesParamsWithContext(ctx context.Context) *SearchRolesParams

NewSearchRolesParamsWithContext creates a new SearchRolesParams object with the ability to set a context for a request.

func NewSearchRolesParamsWithHTTPClient

func NewSearchRolesParamsWithHTTPClient(client *http.Client) *SearchRolesParams

NewSearchRolesParamsWithHTTPClient creates a new SearchRolesParams object with the ability to set a custom HTTPClient for a request.

func NewSearchRolesParamsWithTimeout

func NewSearchRolesParamsWithTimeout(timeout time.Duration) *SearchRolesParams

NewSearchRolesParamsWithTimeout creates a new SearchRolesParams object with the ability to set a timeout on a request.

func (*SearchRolesParams) SetContext

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

SetContext adds the context to the search roles params

func (*SearchRolesParams) SetCursor

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

SetCursor adds the cursor to the search roles params

func (*SearchRolesParams) SetDefaults

func (o *SearchRolesParams) SetDefaults()

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

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

func (*SearchRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search roles params

func (*SearchRolesParams) SetLimit

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

SetLimit adds the limit to the search roles params

func (*SearchRolesParams) SetSearchTerm

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

SetSearchTerm adds the searchTerm to the search roles params

func (*SearchRolesParams) SetTimeout

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

SetTimeout adds the timeout to the search roles params

func (*SearchRolesParams) WithContext

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

WithContext adds the context to the search roles params

func (*SearchRolesParams) WithCursor

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

WithCursor adds the cursor to the search roles params

func (*SearchRolesParams) WithDefaults

func (o *SearchRolesParams) WithDefaults() *SearchRolesParams

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

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

func (*SearchRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search roles params

func (*SearchRolesParams) WithLimit

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

WithLimit adds the limit to the search roles params

func (*SearchRolesParams) WithSearchTerm

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

WithSearchTerm adds the searchTerm to the search roles params

func (*SearchRolesParams) WithTimeout

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

WithTimeout adds the timeout to the search roles params

func (*SearchRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchRolesReader

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

SearchRolesReader is a Reader for the SearchRoles structure.

func (*SearchRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchRolesUnauthorized

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

unauthorized

func NewSearchRolesUnauthorized

func NewSearchRolesUnauthorized() *SearchRolesUnauthorized

NewSearchRolesUnauthorized creates a SearchRolesUnauthorized with default headers values

func (*SearchRolesUnauthorized) Error

func (o *SearchRolesUnauthorized) Error() string

func (*SearchRolesUnauthorized) GetPayload

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

func (*SearchRolesUnauthorized) IsClientError

func (o *SearchRolesUnauthorized) IsClientError() bool

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

func (*SearchRolesUnauthorized) IsCode

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

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

func (*SearchRolesUnauthorized) IsRedirect

func (o *SearchRolesUnauthorized) IsRedirect() bool

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

func (*SearchRolesUnauthorized) IsServerError

func (o *SearchRolesUnauthorized) IsServerError() bool

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

func (*SearchRolesUnauthorized) IsSuccess

func (o *SearchRolesUnauthorized) IsSuccess() bool

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

func (*SearchRolesUnauthorized) String

func (o *SearchRolesUnauthorized) String() string

type UpdateRoleBadRequest

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

bad request

func NewUpdateRoleBadRequest

func NewUpdateRoleBadRequest() *UpdateRoleBadRequest

NewUpdateRoleBadRequest creates a UpdateRoleBadRequest with default headers values

func (*UpdateRoleBadRequest) Error

func (o *UpdateRoleBadRequest) Error() string

func (*UpdateRoleBadRequest) GetPayload

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

func (*UpdateRoleBadRequest) IsClientError

func (o *UpdateRoleBadRequest) IsClientError() bool

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

func (*UpdateRoleBadRequest) IsCode

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

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

func (*UpdateRoleBadRequest) IsRedirect

func (o *UpdateRoleBadRequest) IsRedirect() bool

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

func (*UpdateRoleBadRequest) IsServerError

func (o *UpdateRoleBadRequest) IsServerError() bool

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

func (*UpdateRoleBadRequest) IsSuccess

func (o *UpdateRoleBadRequest) IsSuccess() bool

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

func (*UpdateRoleBadRequest) String

func (o *UpdateRoleBadRequest) String() string

type UpdateRoleForbidden

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

forbidden

func NewUpdateRoleForbidden

func NewUpdateRoleForbidden() *UpdateRoleForbidden

NewUpdateRoleForbidden creates a UpdateRoleForbidden with default headers values

func (*UpdateRoleForbidden) Error

func (o *UpdateRoleForbidden) Error() string

func (*UpdateRoleForbidden) GetPayload

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

func (*UpdateRoleForbidden) IsClientError

func (o *UpdateRoleForbidden) IsClientError() bool

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

func (*UpdateRoleForbidden) IsCode

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

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

func (*UpdateRoleForbidden) IsRedirect

func (o *UpdateRoleForbidden) IsRedirect() bool

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

func (*UpdateRoleForbidden) IsServerError

func (o *UpdateRoleForbidden) IsServerError() bool

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

func (*UpdateRoleForbidden) IsSuccess

func (o *UpdateRoleForbidden) IsSuccess() bool

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

func (*UpdateRoleForbidden) String

func (o *UpdateRoleForbidden) String() string

type UpdateRoleInternalServerError

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

server error

func NewUpdateRoleInternalServerError

func NewUpdateRoleInternalServerError() *UpdateRoleInternalServerError

NewUpdateRoleInternalServerError creates a UpdateRoleInternalServerError with default headers values

func (*UpdateRoleInternalServerError) Error

func (*UpdateRoleInternalServerError) GetPayload

func (*UpdateRoleInternalServerError) IsClientError

func (o *UpdateRoleInternalServerError) IsClientError() bool

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

func (*UpdateRoleInternalServerError) IsCode

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

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

func (*UpdateRoleInternalServerError) IsRedirect

func (o *UpdateRoleInternalServerError) IsRedirect() bool

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

func (*UpdateRoleInternalServerError) IsServerError

func (o *UpdateRoleInternalServerError) IsServerError() bool

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

func (*UpdateRoleInternalServerError) IsSuccess

func (o *UpdateRoleInternalServerError) IsSuccess() bool

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

func (*UpdateRoleInternalServerError) String

type UpdateRoleOK

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

no error

func NewUpdateRoleOK

func NewUpdateRoleOK() *UpdateRoleOK

NewUpdateRoleOK creates a UpdateRoleOK with default headers values

func (*UpdateRoleOK) Error

func (o *UpdateRoleOK) Error() string

func (*UpdateRoleOK) GetPayload

func (o *UpdateRoleOK) GetPayload() *models.Role

func (*UpdateRoleOK) IsClientError

func (o *UpdateRoleOK) IsClientError() bool

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

func (*UpdateRoleOK) IsCode

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

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

func (*UpdateRoleOK) IsRedirect

func (o *UpdateRoleOK) IsRedirect() bool

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

func (*UpdateRoleOK) IsServerError

func (o *UpdateRoleOK) IsServerError() bool

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

func (*UpdateRoleOK) IsSuccess

func (o *UpdateRoleOK) IsSuccess() bool

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

func (*UpdateRoleOK) String

func (o *UpdateRoleOK) String() string

type UpdateRoleParams

type UpdateRoleParams struct {

	/* Name.

	   Full role name to lookup role by
	*/
	Name string

	// Role.
	Body *models.RoleDetails

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

UpdateRoleParams contains all the parameters to send to the API endpoint

for the update role operation.

Typically these are written to a http.Request.

func NewUpdateRoleParams

func NewUpdateRoleParams() *UpdateRoleParams

NewUpdateRoleParams creates a new UpdateRoleParams 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 NewUpdateRoleParamsWithContext

func NewUpdateRoleParamsWithContext(ctx context.Context) *UpdateRoleParams

NewUpdateRoleParamsWithContext creates a new UpdateRoleParams object with the ability to set a context for a request.

func NewUpdateRoleParamsWithHTTPClient

func NewUpdateRoleParamsWithHTTPClient(client *http.Client) *UpdateRoleParams

NewUpdateRoleParamsWithHTTPClient creates a new UpdateRoleParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateRoleParamsWithTimeout

func NewUpdateRoleParamsWithTimeout(timeout time.Duration) *UpdateRoleParams

NewUpdateRoleParamsWithTimeout creates a new UpdateRoleParams object with the ability to set a timeout on a request.

func (*UpdateRoleParams) SetBody

func (o *UpdateRoleParams) SetBody(role *models.RoleDetails)

SetBody adds the role to the update role params

func (*UpdateRoleParams) SetContext

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

SetContext adds the context to the update role params

func (*UpdateRoleParams) SetDefaults

func (o *UpdateRoleParams) SetDefaults()

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

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

func (*UpdateRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update role params

func (*UpdateRoleParams) SetName

func (o *UpdateRoleParams) SetName(name string)

SetName adds the name to the update role params

func (*UpdateRoleParams) SetTimeout

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

SetTimeout adds the timeout to the update role params

func (*UpdateRoleParams) WithBody

WithBody adds the role to the update role params

func (*UpdateRoleParams) WithContext

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

WithContext adds the context to the update role params

func (*UpdateRoleParams) WithDefaults

func (o *UpdateRoleParams) WithDefaults() *UpdateRoleParams

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

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

func (*UpdateRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update role params

func (*UpdateRoleParams) WithName

func (o *UpdateRoleParams) WithName(name string) *UpdateRoleParams

WithName adds the name to the update role params

func (*UpdateRoleParams) WithTimeout

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

WithTimeout adds the timeout to the update role params

func (*UpdateRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateRoleReader

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

UpdateRoleReader is a Reader for the UpdateRole structure.

func (*UpdateRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRoleUnauthorized

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

unauthorized

func NewUpdateRoleUnauthorized

func NewUpdateRoleUnauthorized() *UpdateRoleUnauthorized

NewUpdateRoleUnauthorized creates a UpdateRoleUnauthorized with default headers values

func (*UpdateRoleUnauthorized) Error

func (o *UpdateRoleUnauthorized) Error() string

func (*UpdateRoleUnauthorized) GetPayload

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

func (*UpdateRoleUnauthorized) IsClientError

func (o *UpdateRoleUnauthorized) IsClientError() bool

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

func (*UpdateRoleUnauthorized) IsCode

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

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

func (*UpdateRoleUnauthorized) IsRedirect

func (o *UpdateRoleUnauthorized) IsRedirect() bool

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

func (*UpdateRoleUnauthorized) IsServerError

func (o *UpdateRoleUnauthorized) IsServerError() bool

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

func (*UpdateRoleUnauthorized) IsSuccess

func (o *UpdateRoleUnauthorized) IsSuccess() bool

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

func (*UpdateRoleUnauthorized) String

func (o *UpdateRoleUnauthorized) String() string

Jump to

Keyboard shortcuts

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