authz

package
v1.32.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: BSD-3-Clause Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPermissionsBadRequest

type AddPermissionsBadRequest struct {
	Payload *models.ErrorResponse
}

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

Malformed request.

func NewAddPermissionsBadRequest

func NewAddPermissionsBadRequest() *AddPermissionsBadRequest

NewAddPermissionsBadRequest creates a AddPermissionsBadRequest with default headers values

func (*AddPermissionsBadRequest) Code

func (o *AddPermissionsBadRequest) Code() int

Code gets the status code for the add permissions bad request response

func (*AddPermissionsBadRequest) Error

func (o *AddPermissionsBadRequest) Error() string

func (*AddPermissionsBadRequest) GetPayload

func (*AddPermissionsBadRequest) IsClientError

func (o *AddPermissionsBadRequest) IsClientError() bool

IsClientError returns true when this add permissions bad request response has a 4xx status code

func (*AddPermissionsBadRequest) IsCode

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

IsCode returns true when this add permissions bad request response a status code equal to that given

func (*AddPermissionsBadRequest) IsRedirect

func (o *AddPermissionsBadRequest) IsRedirect() bool

IsRedirect returns true when this add permissions bad request response has a 3xx status code

func (*AddPermissionsBadRequest) IsServerError

func (o *AddPermissionsBadRequest) IsServerError() bool

IsServerError returns true when this add permissions bad request response has a 5xx status code

func (*AddPermissionsBadRequest) IsSuccess

func (o *AddPermissionsBadRequest) IsSuccess() bool

IsSuccess returns true when this add permissions bad request response has a 2xx status code

func (*AddPermissionsBadRequest) String

func (o *AddPermissionsBadRequest) String() string

type AddPermissionsBody

type AddPermissionsBody struct {

	// permissions to be added to the role
	// Required: true
	Permissions []*models.Permission `json:"permissions"`
}

AddPermissionsBody add permissions body swagger:model AddPermissionsBody

func (*AddPermissionsBody) ContextValidate

func (o *AddPermissionsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this add permissions body based on the context it is used

func (*AddPermissionsBody) MarshalBinary

func (o *AddPermissionsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AddPermissionsBody) UnmarshalBinary

func (o *AddPermissionsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AddPermissionsBody) Validate

func (o *AddPermissionsBody) Validate(formats strfmt.Registry) error

Validate validates this add permissions body

type AddPermissionsForbidden

type AddPermissionsForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewAddPermissionsForbidden

func NewAddPermissionsForbidden() *AddPermissionsForbidden

NewAddPermissionsForbidden creates a AddPermissionsForbidden with default headers values

func (*AddPermissionsForbidden) Code

func (o *AddPermissionsForbidden) Code() int

Code gets the status code for the add permissions forbidden response

func (*AddPermissionsForbidden) Error

func (o *AddPermissionsForbidden) Error() string

func (*AddPermissionsForbidden) GetPayload

func (o *AddPermissionsForbidden) GetPayload() *models.ErrorResponse

func (*AddPermissionsForbidden) IsClientError

func (o *AddPermissionsForbidden) IsClientError() bool

IsClientError returns true when this add permissions forbidden response has a 4xx status code

func (*AddPermissionsForbidden) IsCode

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

IsCode returns true when this add permissions forbidden response a status code equal to that given

func (*AddPermissionsForbidden) IsRedirect

func (o *AddPermissionsForbidden) IsRedirect() bool

IsRedirect returns true when this add permissions forbidden response has a 3xx status code

func (*AddPermissionsForbidden) IsServerError

func (o *AddPermissionsForbidden) IsServerError() bool

IsServerError returns true when this add permissions forbidden response has a 5xx status code

func (*AddPermissionsForbidden) IsSuccess

func (o *AddPermissionsForbidden) IsSuccess() bool

IsSuccess returns true when this add permissions forbidden response has a 2xx status code

func (*AddPermissionsForbidden) String

func (o *AddPermissionsForbidden) String() string

type AddPermissionsInternalServerError

type AddPermissionsInternalServerError struct {
	Payload *models.ErrorResponse
}

AddPermissionsInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewAddPermissionsInternalServerError

func NewAddPermissionsInternalServerError() *AddPermissionsInternalServerError

NewAddPermissionsInternalServerError creates a AddPermissionsInternalServerError with default headers values

func (*AddPermissionsInternalServerError) Code

Code gets the status code for the add permissions internal server error response

func (*AddPermissionsInternalServerError) Error

func (*AddPermissionsInternalServerError) GetPayload

func (*AddPermissionsInternalServerError) IsClientError

func (o *AddPermissionsInternalServerError) IsClientError() bool

IsClientError returns true when this add permissions internal server error response has a 4xx status code

func (*AddPermissionsInternalServerError) IsCode

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

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

func (*AddPermissionsInternalServerError) IsRedirect

func (o *AddPermissionsInternalServerError) IsRedirect() bool

IsRedirect returns true when this add permissions internal server error response has a 3xx status code

func (*AddPermissionsInternalServerError) IsServerError

func (o *AddPermissionsInternalServerError) IsServerError() bool

IsServerError returns true when this add permissions internal server error response has a 5xx status code

func (*AddPermissionsInternalServerError) IsSuccess

func (o *AddPermissionsInternalServerError) IsSuccess() bool

IsSuccess returns true when this add permissions internal server error response has a 2xx status code

func (*AddPermissionsInternalServerError) String

type AddPermissionsNotFound

type AddPermissionsNotFound struct {
}

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

no role found

func NewAddPermissionsNotFound

func NewAddPermissionsNotFound() *AddPermissionsNotFound

NewAddPermissionsNotFound creates a AddPermissionsNotFound with default headers values

func (*AddPermissionsNotFound) Code

func (o *AddPermissionsNotFound) Code() int

Code gets the status code for the add permissions not found response

func (*AddPermissionsNotFound) Error

func (o *AddPermissionsNotFound) Error() string

func (*AddPermissionsNotFound) IsClientError

func (o *AddPermissionsNotFound) IsClientError() bool

IsClientError returns true when this add permissions not found response has a 4xx status code

func (*AddPermissionsNotFound) IsCode

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

IsCode returns true when this add permissions not found response a status code equal to that given

func (*AddPermissionsNotFound) IsRedirect

func (o *AddPermissionsNotFound) IsRedirect() bool

IsRedirect returns true when this add permissions not found response has a 3xx status code

func (*AddPermissionsNotFound) IsServerError

func (o *AddPermissionsNotFound) IsServerError() bool

IsServerError returns true when this add permissions not found response has a 5xx status code

func (*AddPermissionsNotFound) IsSuccess

func (o *AddPermissionsNotFound) IsSuccess() bool

IsSuccess returns true when this add permissions not found response has a 2xx status code

func (*AddPermissionsNotFound) String

func (o *AddPermissionsNotFound) String() string

type AddPermissionsOK

type AddPermissionsOK struct {
}

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

Permissions added successfully

func NewAddPermissionsOK

func NewAddPermissionsOK() *AddPermissionsOK

NewAddPermissionsOK creates a AddPermissionsOK with default headers values

func (*AddPermissionsOK) Code

func (o *AddPermissionsOK) Code() int

Code gets the status code for the add permissions o k response

func (*AddPermissionsOK) Error

func (o *AddPermissionsOK) Error() string

func (*AddPermissionsOK) IsClientError

func (o *AddPermissionsOK) IsClientError() bool

IsClientError returns true when this add permissions o k response has a 4xx status code

func (*AddPermissionsOK) IsCode

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

IsCode returns true when this add permissions o k response a status code equal to that given

func (*AddPermissionsOK) IsRedirect

func (o *AddPermissionsOK) IsRedirect() bool

IsRedirect returns true when this add permissions o k response has a 3xx status code

func (*AddPermissionsOK) IsServerError

func (o *AddPermissionsOK) IsServerError() bool

IsServerError returns true when this add permissions o k response has a 5xx status code

func (*AddPermissionsOK) IsSuccess

func (o *AddPermissionsOK) IsSuccess() bool

IsSuccess returns true when this add permissions o k response has a 2xx status code

func (*AddPermissionsOK) String

func (o *AddPermissionsOK) String() string

type AddPermissionsParams

type AddPermissionsParams struct {

	// Body.
	Body AddPermissionsBody

	/* ID.

	   role name
	*/
	ID string

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

AddPermissionsParams contains all the parameters to send to the API endpoint

for the add permissions operation.

Typically these are written to a http.Request.

func NewAddPermissionsParams

func NewAddPermissionsParams() *AddPermissionsParams

NewAddPermissionsParams creates a new AddPermissionsParams 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 NewAddPermissionsParamsWithContext

func NewAddPermissionsParamsWithContext(ctx context.Context) *AddPermissionsParams

NewAddPermissionsParamsWithContext creates a new AddPermissionsParams object with the ability to set a context for a request.

func NewAddPermissionsParamsWithHTTPClient

func NewAddPermissionsParamsWithHTTPClient(client *http.Client) *AddPermissionsParams

NewAddPermissionsParamsWithHTTPClient creates a new AddPermissionsParams object with the ability to set a custom HTTPClient for a request.

func NewAddPermissionsParamsWithTimeout

func NewAddPermissionsParamsWithTimeout(timeout time.Duration) *AddPermissionsParams

NewAddPermissionsParamsWithTimeout creates a new AddPermissionsParams object with the ability to set a timeout on a request.

func (*AddPermissionsParams) SetBody

func (o *AddPermissionsParams) SetBody(body AddPermissionsBody)

SetBody adds the body to the add permissions params

func (*AddPermissionsParams) SetContext

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

SetContext adds the context to the add permissions params

func (*AddPermissionsParams) SetDefaults

func (o *AddPermissionsParams) SetDefaults()

SetDefaults hydrates default values in the add permissions params (not the query body).

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

func (*AddPermissionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add permissions params

func (*AddPermissionsParams) SetID

func (o *AddPermissionsParams) SetID(id string)

SetID adds the id to the add permissions params

func (*AddPermissionsParams) SetTimeout

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

SetTimeout adds the timeout to the add permissions params

func (*AddPermissionsParams) WithBody

WithBody adds the body to the add permissions params

func (*AddPermissionsParams) WithContext

WithContext adds the context to the add permissions params

func (*AddPermissionsParams) WithDefaults

func (o *AddPermissionsParams) WithDefaults() *AddPermissionsParams

WithDefaults hydrates default values in the add permissions params (not the query body).

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

func (*AddPermissionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add permissions params

func (*AddPermissionsParams) WithID

WithID adds the id to the add permissions params

func (*AddPermissionsParams) WithTimeout

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

WithTimeout adds the timeout to the add permissions params

func (*AddPermissionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddPermissionsReader

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

AddPermissionsReader is a Reader for the AddPermissions structure.

func (*AddPermissionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddPermissionsUnauthorized

type AddPermissionsUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewAddPermissionsUnauthorized

func NewAddPermissionsUnauthorized() *AddPermissionsUnauthorized

NewAddPermissionsUnauthorized creates a AddPermissionsUnauthorized with default headers values

func (*AddPermissionsUnauthorized) Code

func (o *AddPermissionsUnauthorized) Code() int

Code gets the status code for the add permissions unauthorized response

func (*AddPermissionsUnauthorized) Error

func (*AddPermissionsUnauthorized) IsClientError

func (o *AddPermissionsUnauthorized) IsClientError() bool

IsClientError returns true when this add permissions unauthorized response has a 4xx status code

func (*AddPermissionsUnauthorized) IsCode

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

IsCode returns true when this add permissions unauthorized response a status code equal to that given

func (*AddPermissionsUnauthorized) IsRedirect

func (o *AddPermissionsUnauthorized) IsRedirect() bool

IsRedirect returns true when this add permissions unauthorized response has a 3xx status code

func (*AddPermissionsUnauthorized) IsServerError

func (o *AddPermissionsUnauthorized) IsServerError() bool

IsServerError returns true when this add permissions unauthorized response has a 5xx status code

func (*AddPermissionsUnauthorized) IsSuccess

func (o *AddPermissionsUnauthorized) IsSuccess() bool

IsSuccess returns true when this add permissions unauthorized response has a 2xx status code

func (*AddPermissionsUnauthorized) String

func (o *AddPermissionsUnauthorized) String() string

type AddPermissionsUnprocessableEntity

type AddPermissionsUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

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

Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?

func NewAddPermissionsUnprocessableEntity

func NewAddPermissionsUnprocessableEntity() *AddPermissionsUnprocessableEntity

NewAddPermissionsUnprocessableEntity creates a AddPermissionsUnprocessableEntity with default headers values

func (*AddPermissionsUnprocessableEntity) Code

Code gets the status code for the add permissions unprocessable entity response

func (*AddPermissionsUnprocessableEntity) Error

func (*AddPermissionsUnprocessableEntity) GetPayload

func (*AddPermissionsUnprocessableEntity) IsClientError

func (o *AddPermissionsUnprocessableEntity) IsClientError() bool

IsClientError returns true when this add permissions unprocessable entity response has a 4xx status code

func (*AddPermissionsUnprocessableEntity) IsCode

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

IsCode returns true when this add permissions unprocessable entity response a status code equal to that given

func (*AddPermissionsUnprocessableEntity) IsRedirect

func (o *AddPermissionsUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this add permissions unprocessable entity response has a 3xx status code

func (*AddPermissionsUnprocessableEntity) IsServerError

func (o *AddPermissionsUnprocessableEntity) IsServerError() bool

IsServerError returns true when this add permissions unprocessable entity response has a 5xx status code

func (*AddPermissionsUnprocessableEntity) IsSuccess

func (o *AddPermissionsUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this add permissions unprocessable entity response has a 2xx status code

func (*AddPermissionsUnprocessableEntity) String

type AssignRoleToGroupBadRequest added in v1.28.5

type AssignRoleToGroupBadRequest struct {
	Payload *models.ErrorResponse
}

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

Bad request

func NewAssignRoleToGroupBadRequest added in v1.28.5

func NewAssignRoleToGroupBadRequest() *AssignRoleToGroupBadRequest

NewAssignRoleToGroupBadRequest creates a AssignRoleToGroupBadRequest with default headers values

func (*AssignRoleToGroupBadRequest) Code added in v1.28.5

func (o *AssignRoleToGroupBadRequest) Code() int

Code gets the status code for the assign role to group bad request response

func (*AssignRoleToGroupBadRequest) Error added in v1.28.5

func (*AssignRoleToGroupBadRequest) GetPayload added in v1.28.5

func (*AssignRoleToGroupBadRequest) IsClientError added in v1.28.5

func (o *AssignRoleToGroupBadRequest) IsClientError() bool

IsClientError returns true when this assign role to group bad request response has a 4xx status code

func (*AssignRoleToGroupBadRequest) IsCode added in v1.28.5

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

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

func (*AssignRoleToGroupBadRequest) IsRedirect added in v1.28.5

func (o *AssignRoleToGroupBadRequest) IsRedirect() bool

IsRedirect returns true when this assign role to group bad request response has a 3xx status code

func (*AssignRoleToGroupBadRequest) IsServerError added in v1.28.5

func (o *AssignRoleToGroupBadRequest) IsServerError() bool

IsServerError returns true when this assign role to group bad request response has a 5xx status code

func (*AssignRoleToGroupBadRequest) IsSuccess added in v1.28.5

func (o *AssignRoleToGroupBadRequest) IsSuccess() bool

IsSuccess returns true when this assign role to group bad request response has a 2xx status code

func (*AssignRoleToGroupBadRequest) String added in v1.28.5

func (o *AssignRoleToGroupBadRequest) String() string

type AssignRoleToGroupBody added in v1.28.5

type AssignRoleToGroupBody struct {

	// the roles that assigned to group
	Roles []string `json:"roles"`
}

AssignRoleToGroupBody assign role to group body swagger:model AssignRoleToGroupBody

func (*AssignRoleToGroupBody) ContextValidate added in v1.28.5

func (o *AssignRoleToGroupBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this assign role to group body based on context it is used

func (*AssignRoleToGroupBody) MarshalBinary added in v1.28.5

func (o *AssignRoleToGroupBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AssignRoleToGroupBody) UnmarshalBinary added in v1.28.5

func (o *AssignRoleToGroupBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AssignRoleToGroupBody) Validate added in v1.28.5

func (o *AssignRoleToGroupBody) Validate(formats strfmt.Registry) error

Validate validates this assign role to group body

type AssignRoleToGroupForbidden added in v1.28.5

type AssignRoleToGroupForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewAssignRoleToGroupForbidden added in v1.28.5

func NewAssignRoleToGroupForbidden() *AssignRoleToGroupForbidden

NewAssignRoleToGroupForbidden creates a AssignRoleToGroupForbidden with default headers values

func (*AssignRoleToGroupForbidden) Code added in v1.28.5

func (o *AssignRoleToGroupForbidden) Code() int

Code gets the status code for the assign role to group forbidden response

func (*AssignRoleToGroupForbidden) Error added in v1.28.5

func (*AssignRoleToGroupForbidden) GetPayload added in v1.28.5

func (*AssignRoleToGroupForbidden) IsClientError added in v1.28.5

func (o *AssignRoleToGroupForbidden) IsClientError() bool

IsClientError returns true when this assign role to group forbidden response has a 4xx status code

func (*AssignRoleToGroupForbidden) IsCode added in v1.28.5

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

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

func (*AssignRoleToGroupForbidden) IsRedirect added in v1.28.5

func (o *AssignRoleToGroupForbidden) IsRedirect() bool

IsRedirect returns true when this assign role to group forbidden response has a 3xx status code

func (*AssignRoleToGroupForbidden) IsServerError added in v1.28.5

func (o *AssignRoleToGroupForbidden) IsServerError() bool

IsServerError returns true when this assign role to group forbidden response has a 5xx status code

func (*AssignRoleToGroupForbidden) IsSuccess added in v1.28.5

func (o *AssignRoleToGroupForbidden) IsSuccess() bool

IsSuccess returns true when this assign role to group forbidden response has a 2xx status code

func (*AssignRoleToGroupForbidden) String added in v1.28.5

func (o *AssignRoleToGroupForbidden) String() string

type AssignRoleToGroupInternalServerError added in v1.28.5

type AssignRoleToGroupInternalServerError struct {
	Payload *models.ErrorResponse
}

AssignRoleToGroupInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewAssignRoleToGroupInternalServerError added in v1.28.5

func NewAssignRoleToGroupInternalServerError() *AssignRoleToGroupInternalServerError

NewAssignRoleToGroupInternalServerError creates a AssignRoleToGroupInternalServerError with default headers values

func (*AssignRoleToGroupInternalServerError) Code added in v1.28.5

Code gets the status code for the assign role to group internal server error response

func (*AssignRoleToGroupInternalServerError) Error added in v1.28.5

func (*AssignRoleToGroupInternalServerError) GetPayload added in v1.28.5

func (*AssignRoleToGroupInternalServerError) IsClientError added in v1.28.5

func (o *AssignRoleToGroupInternalServerError) IsClientError() bool

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

func (*AssignRoleToGroupInternalServerError) IsCode added in v1.28.5

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

func (*AssignRoleToGroupInternalServerError) IsRedirect added in v1.28.5

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

func (*AssignRoleToGroupInternalServerError) IsServerError added in v1.28.5

func (o *AssignRoleToGroupInternalServerError) IsServerError() bool

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

func (*AssignRoleToGroupInternalServerError) IsSuccess added in v1.28.5

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

func (*AssignRoleToGroupInternalServerError) String added in v1.28.5

type AssignRoleToGroupNotFound added in v1.28.5

type AssignRoleToGroupNotFound struct {
}

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

role or group is not found.

func NewAssignRoleToGroupNotFound added in v1.28.5

func NewAssignRoleToGroupNotFound() *AssignRoleToGroupNotFound

NewAssignRoleToGroupNotFound creates a AssignRoleToGroupNotFound with default headers values

func (*AssignRoleToGroupNotFound) Code added in v1.28.5

func (o *AssignRoleToGroupNotFound) Code() int

Code gets the status code for the assign role to group not found response

func (*AssignRoleToGroupNotFound) Error added in v1.28.5

func (o *AssignRoleToGroupNotFound) Error() string

func (*AssignRoleToGroupNotFound) IsClientError added in v1.28.5

func (o *AssignRoleToGroupNotFound) IsClientError() bool

IsClientError returns true when this assign role to group not found response has a 4xx status code

func (*AssignRoleToGroupNotFound) IsCode added in v1.28.5

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

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

func (*AssignRoleToGroupNotFound) IsRedirect added in v1.28.5

func (o *AssignRoleToGroupNotFound) IsRedirect() bool

IsRedirect returns true when this assign role to group not found response has a 3xx status code

func (*AssignRoleToGroupNotFound) IsServerError added in v1.28.5

func (o *AssignRoleToGroupNotFound) IsServerError() bool

IsServerError returns true when this assign role to group not found response has a 5xx status code

func (*AssignRoleToGroupNotFound) IsSuccess added in v1.28.5

func (o *AssignRoleToGroupNotFound) IsSuccess() bool

IsSuccess returns true when this assign role to group not found response has a 2xx status code

func (*AssignRoleToGroupNotFound) String added in v1.28.5

func (o *AssignRoleToGroupNotFound) String() string

type AssignRoleToGroupOK added in v1.28.5

type AssignRoleToGroupOK struct {
}

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

Role assigned successfully

func NewAssignRoleToGroupOK added in v1.28.5

func NewAssignRoleToGroupOK() *AssignRoleToGroupOK

NewAssignRoleToGroupOK creates a AssignRoleToGroupOK with default headers values

func (*AssignRoleToGroupOK) Code added in v1.28.5

func (o *AssignRoleToGroupOK) Code() int

Code gets the status code for the assign role to group o k response

func (*AssignRoleToGroupOK) Error added in v1.28.5

func (o *AssignRoleToGroupOK) Error() string

func (*AssignRoleToGroupOK) IsClientError added in v1.28.5

func (o *AssignRoleToGroupOK) IsClientError() bool

IsClientError returns true when this assign role to group o k response has a 4xx status code

func (*AssignRoleToGroupOK) IsCode added in v1.28.5

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

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

func (*AssignRoleToGroupOK) IsRedirect added in v1.28.5

func (o *AssignRoleToGroupOK) IsRedirect() bool

IsRedirect returns true when this assign role to group o k response has a 3xx status code

func (*AssignRoleToGroupOK) IsServerError added in v1.28.5

func (o *AssignRoleToGroupOK) IsServerError() bool

IsServerError returns true when this assign role to group o k response has a 5xx status code

func (*AssignRoleToGroupOK) IsSuccess added in v1.28.5

func (o *AssignRoleToGroupOK) IsSuccess() bool

IsSuccess returns true when this assign role to group o k response has a 2xx status code

func (*AssignRoleToGroupOK) String added in v1.28.5

func (o *AssignRoleToGroupOK) String() string

type AssignRoleToGroupParams added in v1.28.5

type AssignRoleToGroupParams struct {

	// Body.
	Body AssignRoleToGroupBody

	/* ID.

	   group name
	*/
	ID string

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

AssignRoleToGroupParams contains all the parameters to send to the API endpoint

for the assign role to group operation.

Typically these are written to a http.Request.

func NewAssignRoleToGroupParams added in v1.28.5

func NewAssignRoleToGroupParams() *AssignRoleToGroupParams

NewAssignRoleToGroupParams creates a new AssignRoleToGroupParams 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 NewAssignRoleToGroupParamsWithContext added in v1.28.5

func NewAssignRoleToGroupParamsWithContext(ctx context.Context) *AssignRoleToGroupParams

NewAssignRoleToGroupParamsWithContext creates a new AssignRoleToGroupParams object with the ability to set a context for a request.

func NewAssignRoleToGroupParamsWithHTTPClient added in v1.28.5

func NewAssignRoleToGroupParamsWithHTTPClient(client *http.Client) *AssignRoleToGroupParams

NewAssignRoleToGroupParamsWithHTTPClient creates a new AssignRoleToGroupParams object with the ability to set a custom HTTPClient for a request.

func NewAssignRoleToGroupParamsWithTimeout added in v1.28.5

func NewAssignRoleToGroupParamsWithTimeout(timeout time.Duration) *AssignRoleToGroupParams

NewAssignRoleToGroupParamsWithTimeout creates a new AssignRoleToGroupParams object with the ability to set a timeout on a request.

func (*AssignRoleToGroupParams) SetBody added in v1.28.5

SetBody adds the body to the assign role to group params

func (*AssignRoleToGroupParams) SetContext added in v1.28.5

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

SetContext adds the context to the assign role to group params

func (*AssignRoleToGroupParams) SetDefaults added in v1.28.5

func (o *AssignRoleToGroupParams) SetDefaults()

SetDefaults hydrates default values in the assign role to group params (not the query body).

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

func (*AssignRoleToGroupParams) SetHTTPClient added in v1.28.5

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

SetHTTPClient adds the HTTPClient to the assign role to group params

func (*AssignRoleToGroupParams) SetID added in v1.28.5

func (o *AssignRoleToGroupParams) SetID(id string)

SetID adds the id to the assign role to group params

func (*AssignRoleToGroupParams) SetTimeout added in v1.28.5

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

SetTimeout adds the timeout to the assign role to group params

func (*AssignRoleToGroupParams) WithBody added in v1.28.5

WithBody adds the body to the assign role to group params

func (*AssignRoleToGroupParams) WithContext added in v1.28.5

WithContext adds the context to the assign role to group params

func (*AssignRoleToGroupParams) WithDefaults added in v1.28.5

WithDefaults hydrates default values in the assign role to group params (not the query body).

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

func (*AssignRoleToGroupParams) WithHTTPClient added in v1.28.5

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

WithHTTPClient adds the HTTPClient to the assign role to group params

func (*AssignRoleToGroupParams) WithID added in v1.28.5

WithID adds the id to the assign role to group params

func (*AssignRoleToGroupParams) WithTimeout added in v1.28.5

WithTimeout adds the timeout to the assign role to group params

func (*AssignRoleToGroupParams) WriteToRequest added in v1.28.5

WriteToRequest writes these params to a swagger request

type AssignRoleToGroupReader added in v1.28.5

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

AssignRoleToGroupReader is a Reader for the AssignRoleToGroup structure.

func (*AssignRoleToGroupReader) ReadResponse added in v1.28.5

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

ReadResponse reads a server response into the received o.

type AssignRoleToGroupUnauthorized added in v1.28.5

type AssignRoleToGroupUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewAssignRoleToGroupUnauthorized added in v1.28.5

func NewAssignRoleToGroupUnauthorized() *AssignRoleToGroupUnauthorized

NewAssignRoleToGroupUnauthorized creates a AssignRoleToGroupUnauthorized with default headers values

func (*AssignRoleToGroupUnauthorized) Code added in v1.28.5

Code gets the status code for the assign role to group unauthorized response

func (*AssignRoleToGroupUnauthorized) Error added in v1.28.5

func (*AssignRoleToGroupUnauthorized) IsClientError added in v1.28.5

func (o *AssignRoleToGroupUnauthorized) IsClientError() bool

IsClientError returns true when this assign role to group unauthorized response has a 4xx status code

func (*AssignRoleToGroupUnauthorized) IsCode added in v1.28.5

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

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

func (*AssignRoleToGroupUnauthorized) IsRedirect added in v1.28.5

func (o *AssignRoleToGroupUnauthorized) IsRedirect() bool

IsRedirect returns true when this assign role to group unauthorized response has a 3xx status code

func (*AssignRoleToGroupUnauthorized) IsServerError added in v1.28.5

func (o *AssignRoleToGroupUnauthorized) IsServerError() bool

IsServerError returns true when this assign role to group unauthorized response has a 5xx status code

func (*AssignRoleToGroupUnauthorized) IsSuccess added in v1.28.5

func (o *AssignRoleToGroupUnauthorized) IsSuccess() bool

IsSuccess returns true when this assign role to group unauthorized response has a 2xx status code

func (*AssignRoleToGroupUnauthorized) String added in v1.28.5

type AssignRoleToUserBadRequest added in v1.28.5

type AssignRoleToUserBadRequest struct {
	Payload *models.ErrorResponse
}

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

Bad request

func NewAssignRoleToUserBadRequest added in v1.28.5

func NewAssignRoleToUserBadRequest() *AssignRoleToUserBadRequest

NewAssignRoleToUserBadRequest creates a AssignRoleToUserBadRequest with default headers values

func (*AssignRoleToUserBadRequest) Code added in v1.28.5

func (o *AssignRoleToUserBadRequest) Code() int

Code gets the status code for the assign role to user bad request response

func (*AssignRoleToUserBadRequest) Error added in v1.28.5

func (*AssignRoleToUserBadRequest) GetPayload added in v1.28.5

func (*AssignRoleToUserBadRequest) IsClientError added in v1.28.5

func (o *AssignRoleToUserBadRequest) IsClientError() bool

IsClientError returns true when this assign role to user bad request response has a 4xx status code

func (*AssignRoleToUserBadRequest) IsCode added in v1.28.5

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

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

func (*AssignRoleToUserBadRequest) IsRedirect added in v1.28.5

func (o *AssignRoleToUserBadRequest) IsRedirect() bool

IsRedirect returns true when this assign role to user bad request response has a 3xx status code

func (*AssignRoleToUserBadRequest) IsServerError added in v1.28.5

func (o *AssignRoleToUserBadRequest) IsServerError() bool

IsServerError returns true when this assign role to user bad request response has a 5xx status code

func (*AssignRoleToUserBadRequest) IsSuccess added in v1.28.5

func (o *AssignRoleToUserBadRequest) IsSuccess() bool

IsSuccess returns true when this assign role to user bad request response has a 2xx status code

func (*AssignRoleToUserBadRequest) String added in v1.28.5

func (o *AssignRoleToUserBadRequest) String() string

type AssignRoleToUserBody added in v1.28.5

type AssignRoleToUserBody struct {

	// the roles that assigned to user
	Roles []string `json:"roles"`

	// user type
	UserType models.UserTypeInput `json:"userType,omitempty"`
}

AssignRoleToUserBody assign role to user body swagger:model AssignRoleToUserBody

func (*AssignRoleToUserBody) ContextValidate added in v1.28.5

func (o *AssignRoleToUserBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this assign role to user body based on the context it is used

func (*AssignRoleToUserBody) MarshalBinary added in v1.28.5

func (o *AssignRoleToUserBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AssignRoleToUserBody) UnmarshalBinary added in v1.28.5

func (o *AssignRoleToUserBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AssignRoleToUserBody) Validate added in v1.28.5

func (o *AssignRoleToUserBody) Validate(formats strfmt.Registry) error

Validate validates this assign role to user body

type AssignRoleToUserForbidden added in v1.28.5

type AssignRoleToUserForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewAssignRoleToUserForbidden added in v1.28.5

func NewAssignRoleToUserForbidden() *AssignRoleToUserForbidden

NewAssignRoleToUserForbidden creates a AssignRoleToUserForbidden with default headers values

func (*AssignRoleToUserForbidden) Code added in v1.28.5

func (o *AssignRoleToUserForbidden) Code() int

Code gets the status code for the assign role to user forbidden response

func (*AssignRoleToUserForbidden) Error added in v1.28.5

func (o *AssignRoleToUserForbidden) Error() string

func (*AssignRoleToUserForbidden) GetPayload added in v1.28.5

func (*AssignRoleToUserForbidden) IsClientError added in v1.28.5

func (o *AssignRoleToUserForbidden) IsClientError() bool

IsClientError returns true when this assign role to user forbidden response has a 4xx status code

func (*AssignRoleToUserForbidden) IsCode added in v1.28.5

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

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

func (*AssignRoleToUserForbidden) IsRedirect added in v1.28.5

func (o *AssignRoleToUserForbidden) IsRedirect() bool

IsRedirect returns true when this assign role to user forbidden response has a 3xx status code

func (*AssignRoleToUserForbidden) IsServerError added in v1.28.5

func (o *AssignRoleToUserForbidden) IsServerError() bool

IsServerError returns true when this assign role to user forbidden response has a 5xx status code

func (*AssignRoleToUserForbidden) IsSuccess added in v1.28.5

func (o *AssignRoleToUserForbidden) IsSuccess() bool

IsSuccess returns true when this assign role to user forbidden response has a 2xx status code

func (*AssignRoleToUserForbidden) String added in v1.28.5

func (o *AssignRoleToUserForbidden) String() string

type AssignRoleToUserInternalServerError added in v1.28.5

type AssignRoleToUserInternalServerError struct {
	Payload *models.ErrorResponse
}

AssignRoleToUserInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewAssignRoleToUserInternalServerError added in v1.28.5

func NewAssignRoleToUserInternalServerError() *AssignRoleToUserInternalServerError

NewAssignRoleToUserInternalServerError creates a AssignRoleToUserInternalServerError with default headers values

func (*AssignRoleToUserInternalServerError) Code added in v1.28.5

Code gets the status code for the assign role to user internal server error response

func (*AssignRoleToUserInternalServerError) Error added in v1.28.5

func (*AssignRoleToUserInternalServerError) GetPayload added in v1.28.5

func (*AssignRoleToUserInternalServerError) IsClientError added in v1.28.5

func (o *AssignRoleToUserInternalServerError) IsClientError() bool

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

func (*AssignRoleToUserInternalServerError) IsCode added in v1.28.5

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

func (*AssignRoleToUserInternalServerError) IsRedirect added in v1.28.5

func (o *AssignRoleToUserInternalServerError) IsRedirect() bool

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

func (*AssignRoleToUserInternalServerError) IsServerError added in v1.28.5

func (o *AssignRoleToUserInternalServerError) IsServerError() bool

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

func (*AssignRoleToUserInternalServerError) IsSuccess added in v1.28.5

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

func (*AssignRoleToUserInternalServerError) String added in v1.28.5

type AssignRoleToUserNotFound added in v1.28.5

type AssignRoleToUserNotFound struct {
	Payload *models.ErrorResponse
}

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

role or user is not found.

func NewAssignRoleToUserNotFound added in v1.28.5

func NewAssignRoleToUserNotFound() *AssignRoleToUserNotFound

NewAssignRoleToUserNotFound creates a AssignRoleToUserNotFound with default headers values

func (*AssignRoleToUserNotFound) Code added in v1.28.5

func (o *AssignRoleToUserNotFound) Code() int

Code gets the status code for the assign role to user not found response

func (*AssignRoleToUserNotFound) Error added in v1.28.5

func (o *AssignRoleToUserNotFound) Error() string

func (*AssignRoleToUserNotFound) GetPayload added in v1.28.5

func (*AssignRoleToUserNotFound) IsClientError added in v1.28.5

func (o *AssignRoleToUserNotFound) IsClientError() bool

IsClientError returns true when this assign role to user not found response has a 4xx status code

func (*AssignRoleToUserNotFound) IsCode added in v1.28.5

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

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

func (*AssignRoleToUserNotFound) IsRedirect added in v1.28.5

func (o *AssignRoleToUserNotFound) IsRedirect() bool

IsRedirect returns true when this assign role to user not found response has a 3xx status code

func (*AssignRoleToUserNotFound) IsServerError added in v1.28.5

func (o *AssignRoleToUserNotFound) IsServerError() bool

IsServerError returns true when this assign role to user not found response has a 5xx status code

func (*AssignRoleToUserNotFound) IsSuccess added in v1.28.5

func (o *AssignRoleToUserNotFound) IsSuccess() bool

IsSuccess returns true when this assign role to user not found response has a 2xx status code

func (*AssignRoleToUserNotFound) String added in v1.28.5

func (o *AssignRoleToUserNotFound) String() string

type AssignRoleToUserOK added in v1.28.5

type AssignRoleToUserOK struct {
}

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

Role assigned successfully

func NewAssignRoleToUserOK added in v1.28.5

func NewAssignRoleToUserOK() *AssignRoleToUserOK

NewAssignRoleToUserOK creates a AssignRoleToUserOK with default headers values

func (*AssignRoleToUserOK) Code added in v1.28.5

func (o *AssignRoleToUserOK) Code() int

Code gets the status code for the assign role to user o k response

func (*AssignRoleToUserOK) Error added in v1.28.5

func (o *AssignRoleToUserOK) Error() string

func (*AssignRoleToUserOK) IsClientError added in v1.28.5

func (o *AssignRoleToUserOK) IsClientError() bool

IsClientError returns true when this assign role to user o k response has a 4xx status code

func (*AssignRoleToUserOK) IsCode added in v1.28.5

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

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

func (*AssignRoleToUserOK) IsRedirect added in v1.28.5

func (o *AssignRoleToUserOK) IsRedirect() bool

IsRedirect returns true when this assign role to user o k response has a 3xx status code

func (*AssignRoleToUserOK) IsServerError added in v1.28.5

func (o *AssignRoleToUserOK) IsServerError() bool

IsServerError returns true when this assign role to user o k response has a 5xx status code

func (*AssignRoleToUserOK) IsSuccess added in v1.28.5

func (o *AssignRoleToUserOK) IsSuccess() bool

IsSuccess returns true when this assign role to user o k response has a 2xx status code

func (*AssignRoleToUserOK) String added in v1.28.5

func (o *AssignRoleToUserOK) String() string

type AssignRoleToUserParams added in v1.28.5

type AssignRoleToUserParams struct {

	// Body.
	Body AssignRoleToUserBody

	/* ID.

	   user name
	*/
	ID string

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

AssignRoleToUserParams contains all the parameters to send to the API endpoint

for the assign role to user operation.

Typically these are written to a http.Request.

func NewAssignRoleToUserParams added in v1.28.5

func NewAssignRoleToUserParams() *AssignRoleToUserParams

NewAssignRoleToUserParams creates a new AssignRoleToUserParams 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 NewAssignRoleToUserParamsWithContext added in v1.28.5

func NewAssignRoleToUserParamsWithContext(ctx context.Context) *AssignRoleToUserParams

NewAssignRoleToUserParamsWithContext creates a new AssignRoleToUserParams object with the ability to set a context for a request.

func NewAssignRoleToUserParamsWithHTTPClient added in v1.28.5

func NewAssignRoleToUserParamsWithHTTPClient(client *http.Client) *AssignRoleToUserParams

NewAssignRoleToUserParamsWithHTTPClient creates a new AssignRoleToUserParams object with the ability to set a custom HTTPClient for a request.

func NewAssignRoleToUserParamsWithTimeout added in v1.28.5

func NewAssignRoleToUserParamsWithTimeout(timeout time.Duration) *AssignRoleToUserParams

NewAssignRoleToUserParamsWithTimeout creates a new AssignRoleToUserParams object with the ability to set a timeout on a request.

func (*AssignRoleToUserParams) SetBody added in v1.28.5

SetBody adds the body to the assign role to user params

func (*AssignRoleToUserParams) SetContext added in v1.28.5

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

SetContext adds the context to the assign role to user params

func (*AssignRoleToUserParams) SetDefaults added in v1.28.5

func (o *AssignRoleToUserParams) SetDefaults()

SetDefaults hydrates default values in the assign role to user params (not the query body).

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

func (*AssignRoleToUserParams) SetHTTPClient added in v1.28.5

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

SetHTTPClient adds the HTTPClient to the assign role to user params

func (*AssignRoleToUserParams) SetID added in v1.28.5

func (o *AssignRoleToUserParams) SetID(id string)

SetID adds the id to the assign role to user params

func (*AssignRoleToUserParams) SetTimeout added in v1.28.5

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

SetTimeout adds the timeout to the assign role to user params

func (*AssignRoleToUserParams) WithBody added in v1.28.5

WithBody adds the body to the assign role to user params

func (*AssignRoleToUserParams) WithContext added in v1.28.5

WithContext adds the context to the assign role to user params

func (*AssignRoleToUserParams) WithDefaults added in v1.28.5

WithDefaults hydrates default values in the assign role to user params (not the query body).

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

func (*AssignRoleToUserParams) WithHTTPClient added in v1.28.5

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

WithHTTPClient adds the HTTPClient to the assign role to user params

func (*AssignRoleToUserParams) WithID added in v1.28.5

WithID adds the id to the assign role to user params

func (*AssignRoleToUserParams) WithTimeout added in v1.28.5

WithTimeout adds the timeout to the assign role to user params

func (*AssignRoleToUserParams) WriteToRequest added in v1.28.5

WriteToRequest writes these params to a swagger request

type AssignRoleToUserReader added in v1.28.5

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

AssignRoleToUserReader is a Reader for the AssignRoleToUser structure.

func (*AssignRoleToUserReader) ReadResponse added in v1.28.5

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

ReadResponse reads a server response into the received o.

type AssignRoleToUserUnauthorized added in v1.28.5

type AssignRoleToUserUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewAssignRoleToUserUnauthorized added in v1.28.5

func NewAssignRoleToUserUnauthorized() *AssignRoleToUserUnauthorized

NewAssignRoleToUserUnauthorized creates a AssignRoleToUserUnauthorized with default headers values

func (*AssignRoleToUserUnauthorized) Code added in v1.28.5

Code gets the status code for the assign role to user unauthorized response

func (*AssignRoleToUserUnauthorized) Error added in v1.28.5

func (*AssignRoleToUserUnauthorized) IsClientError added in v1.28.5

func (o *AssignRoleToUserUnauthorized) IsClientError() bool

IsClientError returns true when this assign role to user unauthorized response has a 4xx status code

func (*AssignRoleToUserUnauthorized) IsCode added in v1.28.5

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

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

func (*AssignRoleToUserUnauthorized) IsRedirect added in v1.28.5

func (o *AssignRoleToUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this assign role to user unauthorized response has a 3xx status code

func (*AssignRoleToUserUnauthorized) IsServerError added in v1.28.5

func (o *AssignRoleToUserUnauthorized) IsServerError() bool

IsServerError returns true when this assign role to user unauthorized response has a 5xx status code

func (*AssignRoleToUserUnauthorized) IsSuccess added in v1.28.5

func (o *AssignRoleToUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this assign role to user unauthorized response has a 2xx status code

func (*AssignRoleToUserUnauthorized) String added in v1.28.5

type Client

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

Client for authz API

func (*Client) AddPermissions

func (a *Client) AddPermissions(params *AddPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddPermissionsOK, error)

AddPermissions adds permission to a given role

func (*Client) AssignRoleToGroup added in v1.28.5

func (a *Client) AssignRoleToGroup(params *AssignRoleToGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssignRoleToGroupOK, error)

AssignRoleToGroup assigns a role to a group

func (*Client) AssignRoleToUser added in v1.28.5

func (a *Client) AssignRoleToUser(params *AssignRoleToUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssignRoleToUserOK, error)

AssignRoleToUser assigns a role to a user

func (*Client) CreateRole

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

CreateRole creates new role

func (*Client) DeleteRole

func (a *Client) DeleteRole(params *DeleteRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRoleNoContent, error)

DeleteRole deletes role

func (*Client) GetRole

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

GetRole gets a role

func (*Client) GetRoles

func (a *Client) GetRoles(params *GetRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesOK, error)

GetRoles gets all roles

func (*Client) GetRolesForUser

func (a *Client) GetRolesForUser(params *GetRolesForUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesForUserOK, error)

GetRolesForUser gets roles assigned to user

func (*Client) GetRolesForUserDeprecated added in v1.30.0

func (a *Client) GetRolesForUserDeprecated(params *GetRolesForUserDeprecatedParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesForUserDeprecatedOK, error)

GetRolesForUserDeprecated gets roles assigned to user d b o ID c deprecated will be removed when 1 29 is not supported anymore

func (*Client) GetUsersForRole

func (a *Client) GetUsersForRole(params *GetUsersForRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersForRoleOK, error)

GetUsersForRole gets users assigned to role

func (*Client) GetUsersForRoleDeprecated added in v1.30.0

func (a *Client) GetUsersForRoleDeprecated(params *GetUsersForRoleDeprecatedParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersForRoleDeprecatedOK, error)

GetUsersForRoleDeprecated gets users db o ID c assigned to role deprecated will be removed when 1 29 is not supported anymore

func (*Client) HasPermission

func (a *Client) HasPermission(params *HasPermissionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HasPermissionOK, error)

HasPermission checks whether role possesses this permission

func (*Client) RemovePermissions

func (a *Client) RemovePermissions(params *RemovePermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemovePermissionsOK, error)

RemovePermissions removes permissions from a role if this results in an empty role the role will be deleted

func (*Client) RevokeRoleFromGroup added in v1.28.5

func (a *Client) RevokeRoleFromGroup(params *RevokeRoleFromGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeRoleFromGroupOK, error)

RevokeRoleFromGroup revokes a role from a group

func (*Client) RevokeRoleFromUser added in v1.28.5

func (a *Client) RevokeRoleFromUser(params *RevokeRoleFromUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeRoleFromUserOK, error)

RevokeRoleFromUser revokes a role from a user

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AddPermissions(params *AddPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddPermissionsOK, error)

	AssignRoleToGroup(params *AssignRoleToGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssignRoleToGroupOK, error)

	AssignRoleToUser(params *AssignRoleToUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssignRoleToUserOK, error)

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

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

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

	GetRoles(params *GetRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesOK, error)

	GetRolesForUser(params *GetRolesForUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesForUserOK, error)

	GetRolesForUserDeprecated(params *GetRolesForUserDeprecatedParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesForUserDeprecatedOK, error)

	GetUsersForRole(params *GetUsersForRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersForRoleOK, error)

	GetUsersForRoleDeprecated(params *GetUsersForRoleDeprecatedParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersForRoleDeprecatedOK, error)

	HasPermission(params *HasPermissionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HasPermissionOK, error)

	RemovePermissions(params *RemovePermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemovePermissionsOK, error)

	RevokeRoleFromGroup(params *RevokeRoleFromGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeRoleFromGroupOK, error)

	RevokeRoleFromUser(params *RevokeRoleFromUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeRoleFromUserOK, 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 authz API client.

type CreateRoleBadRequest

type CreateRoleBadRequest struct {
	Payload *models.ErrorResponse
}

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

Malformed request.

func NewCreateRoleBadRequest

func NewCreateRoleBadRequest() *CreateRoleBadRequest

NewCreateRoleBadRequest creates a CreateRoleBadRequest with default headers values

func (*CreateRoleBadRequest) Code

func (o *CreateRoleBadRequest) Code() int

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

func (*CreateRoleBadRequest) Error

func (o *CreateRoleBadRequest) Error() string

func (*CreateRoleBadRequest) GetPayload

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

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 CreateRoleConflict

type CreateRoleConflict struct {
	Payload *models.ErrorResponse
}

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

Role already exists

func NewCreateRoleConflict

func NewCreateRoleConflict() *CreateRoleConflict

NewCreateRoleConflict creates a CreateRoleConflict with default headers values

func (*CreateRoleConflict) Code

func (o *CreateRoleConflict) Code() int

Code gets the status code for the create role conflict response

func (*CreateRoleConflict) Error

func (o *CreateRoleConflict) Error() string

func (*CreateRoleConflict) GetPayload

func (o *CreateRoleConflict) GetPayload() *models.ErrorResponse

func (*CreateRoleConflict) IsClientError

func (o *CreateRoleConflict) IsClientError() bool

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

func (*CreateRoleConflict) IsCode

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

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

func (*CreateRoleConflict) IsRedirect

func (o *CreateRoleConflict) IsRedirect() bool

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

func (*CreateRoleConflict) IsServerError

func (o *CreateRoleConflict) IsServerError() bool

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

func (*CreateRoleConflict) IsSuccess

func (o *CreateRoleConflict) IsSuccess() bool

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

func (*CreateRoleConflict) String

func (o *CreateRoleConflict) String() string

type CreateRoleCreated

type CreateRoleCreated struct {
}

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

Role created successfully

func NewCreateRoleCreated

func NewCreateRoleCreated() *CreateRoleCreated

NewCreateRoleCreated creates a CreateRoleCreated with default headers values

func (*CreateRoleCreated) Code

func (o *CreateRoleCreated) Code() int

Code gets the status code for the create role created response

func (*CreateRoleCreated) Error

func (o *CreateRoleCreated) Error() string

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

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

func (o *CreateRoleForbidden) Code() int

Code gets the status code for the create role forbidden response

func (*CreateRoleForbidden) Error

func (o *CreateRoleForbidden) Error() string

func (*CreateRoleForbidden) GetPayload

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

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

CreateRoleInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewCreateRoleInternalServerError

func NewCreateRoleInternalServerError() *CreateRoleInternalServerError

NewCreateRoleInternalServerError creates a CreateRoleInternalServerError with default headers values

func (*CreateRoleInternalServerError) Code

Code gets the status code for the create role internal server error response

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.Role

	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.Role)

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.Role) *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 {
}

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

Unauthorized or invalid credentials.

func NewCreateRoleUnauthorized

func NewCreateRoleUnauthorized() *CreateRoleUnauthorized

NewCreateRoleUnauthorized creates a CreateRoleUnauthorized with default headers values

func (*CreateRoleUnauthorized) Code

func (o *CreateRoleUnauthorized) Code() int

Code gets the status code for the create role unauthorized response

func (*CreateRoleUnauthorized) Error

func (o *CreateRoleUnauthorized) Error() string

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 CreateRoleUnprocessableEntity

type CreateRoleUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

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

Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?

func NewCreateRoleUnprocessableEntity

func NewCreateRoleUnprocessableEntity() *CreateRoleUnprocessableEntity

NewCreateRoleUnprocessableEntity creates a CreateRoleUnprocessableEntity with default headers values

func (*CreateRoleUnprocessableEntity) Code

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

func (*CreateRoleUnprocessableEntity) Error

func (*CreateRoleUnprocessableEntity) GetPayload

func (*CreateRoleUnprocessableEntity) IsClientError

func (o *CreateRoleUnprocessableEntity) IsClientError() bool

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

func (*CreateRoleUnprocessableEntity) IsCode

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

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

func (*CreateRoleUnprocessableEntity) IsRedirect

func (o *CreateRoleUnprocessableEntity) IsRedirect() bool

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

func (*CreateRoleUnprocessableEntity) IsServerError

func (o *CreateRoleUnprocessableEntity) IsServerError() bool

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

func (*CreateRoleUnprocessableEntity) IsSuccess

func (o *CreateRoleUnprocessableEntity) IsSuccess() bool

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

func (*CreateRoleUnprocessableEntity) String

type DeleteRoleBadRequest

type DeleteRoleBadRequest struct {
	Payload *models.ErrorResponse
}

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

func (o *DeleteRoleBadRequest) Code() int

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

func (*DeleteRoleBadRequest) Error

func (o *DeleteRoleBadRequest) Error() string

func (*DeleteRoleBadRequest) GetPayload

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

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

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

func (o *DeleteRoleForbidden) Code() int

Code gets the status code for the delete role forbidden response

func (*DeleteRoleForbidden) Error

func (o *DeleteRoleForbidden) Error() string

func (*DeleteRoleForbidden) GetPayload

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

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

DeleteRoleInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewDeleteRoleInternalServerError

func NewDeleteRoleInternalServerError() *DeleteRoleInternalServerError

NewDeleteRoleInternalServerError creates a DeleteRoleInternalServerError with default headers values

func (*DeleteRoleInternalServerError) Code

Code gets the status code for the delete role internal server error response

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.

Successfully deleted.

func NewDeleteRoleNoContent

func NewDeleteRoleNoContent() *DeleteRoleNoContent

NewDeleteRoleNoContent creates a DeleteRoleNoContent with default headers values

func (*DeleteRoleNoContent) Code

func (o *DeleteRoleNoContent) Code() int

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

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 DeleteRoleParams

type DeleteRoleParams struct {

	/* ID.

	   role name
	*/
	ID 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete role params

func (*DeleteRoleParams) SetID

func (o *DeleteRoleParams) SetID(id string)

SetID adds the id 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete role params

func (*DeleteRoleParams) WithID

func (o *DeleteRoleParams) WithID(id string) *DeleteRoleParams

WithID adds the id 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 {
}

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

Unauthorized or invalid credentials.

func NewDeleteRoleUnauthorized

func NewDeleteRoleUnauthorized() *DeleteRoleUnauthorized

NewDeleteRoleUnauthorized creates a DeleteRoleUnauthorized with default headers values

func (*DeleteRoleUnauthorized) Code

func (o *DeleteRoleUnauthorized) Code() int

Code gets the status code for the delete role unauthorized response

func (*DeleteRoleUnauthorized) Error

func (o *DeleteRoleUnauthorized) Error() string

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

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

Malformed request.

func NewGetRoleBadRequest

func NewGetRoleBadRequest() *GetRoleBadRequest

NewGetRoleBadRequest creates a GetRoleBadRequest with default headers values

func (*GetRoleBadRequest) Code

func (o *GetRoleBadRequest) Code() int

Code gets the status code for the get role bad request response

func (*GetRoleBadRequest) Error

func (o *GetRoleBadRequest) Error() string

func (*GetRoleBadRequest) GetPayload

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

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 GetRoleForbidden

type GetRoleForbidden struct {
	Payload *models.ErrorResponse
}

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

func (o *GetRoleForbidden) Code() int

Code gets the status code for the get role forbidden response

func (*GetRoleForbidden) Error

func (o *GetRoleForbidden) Error() string

func (*GetRoleForbidden) GetPayload

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

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

GetRoleInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewGetRoleInternalServerError

func NewGetRoleInternalServerError() *GetRoleInternalServerError

NewGetRoleInternalServerError creates a GetRoleInternalServerError with default headers values

func (*GetRoleInternalServerError) Code

func (o *GetRoleInternalServerError) Code() int

Code gets the status code for the get role internal server error response

func (*GetRoleInternalServerError) Error

func (*GetRoleInternalServerError) GetPayload

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 {
}

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

no role found

func NewGetRoleNotFound

func NewGetRoleNotFound() *GetRoleNotFound

NewGetRoleNotFound creates a GetRoleNotFound with default headers values

func (*GetRoleNotFound) Code

func (o *GetRoleNotFound) Code() int

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

func (*GetRoleNotFound) Error

func (o *GetRoleNotFound) Error() string

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.

Successful response.

func NewGetRoleOK

func NewGetRoleOK() *GetRoleOK

NewGetRoleOK creates a GetRoleOK with default headers values

func (*GetRoleOK) Code

func (o *GetRoleOK) Code() int

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

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 {

	/* ID.

	   role name
	*/
	ID 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) SetID

func (o *GetRoleParams) SetID(id string)

SetID adds the id 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) WithID

func (o *GetRoleParams) WithID(id string) *GetRoleParams

WithID adds the id 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 {
}

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

Unauthorized or invalid credentials.

func NewGetRoleUnauthorized

func NewGetRoleUnauthorized() *GetRoleUnauthorized

NewGetRoleUnauthorized creates a GetRoleUnauthorized with default headers values

func (*GetRoleUnauthorized) Code

func (o *GetRoleUnauthorized) Code() int

Code gets the status code for the get role unauthorized response

func (*GetRoleUnauthorized) Error

func (o *GetRoleUnauthorized) Error() string

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 GetRolesBadRequest

type GetRolesBadRequest struct {
	Payload *models.ErrorResponse
}

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

Malformed request.

func NewGetRolesBadRequest

func NewGetRolesBadRequest() *GetRolesBadRequest

NewGetRolesBadRequest creates a GetRolesBadRequest with default headers values

func (*GetRolesBadRequest) Code

func (o *GetRolesBadRequest) Code() int

Code gets the status code for the get roles bad request response

func (*GetRolesBadRequest) Error

func (o *GetRolesBadRequest) Error() string

func (*GetRolesBadRequest) GetPayload

func (o *GetRolesBadRequest) GetPayload() *models.ErrorResponse

func (*GetRolesBadRequest) IsClientError

func (o *GetRolesBadRequest) IsClientError() bool

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

func (*GetRolesBadRequest) IsCode

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

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

func (*GetRolesBadRequest) IsRedirect

func (o *GetRolesBadRequest) IsRedirect() bool

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

func (*GetRolesBadRequest) IsServerError

func (o *GetRolesBadRequest) IsServerError() bool

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

func (*GetRolesBadRequest) IsSuccess

func (o *GetRolesBadRequest) IsSuccess() bool

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

func (*GetRolesBadRequest) String

func (o *GetRolesBadRequest) String() string

type GetRolesForUserBadRequest

type GetRolesForUserBadRequest struct {
	Payload *models.ErrorResponse
}

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

Bad request

func NewGetRolesForUserBadRequest

func NewGetRolesForUserBadRequest() *GetRolesForUserBadRequest

NewGetRolesForUserBadRequest creates a GetRolesForUserBadRequest with default headers values

func (*GetRolesForUserBadRequest) Code

func (o *GetRolesForUserBadRequest) Code() int

Code gets the status code for the get roles for user bad request response

func (*GetRolesForUserBadRequest) Error

func (o *GetRolesForUserBadRequest) Error() string

func (*GetRolesForUserBadRequest) GetPayload

func (*GetRolesForUserBadRequest) IsClientError

func (o *GetRolesForUserBadRequest) IsClientError() bool

IsClientError returns true when this get roles for user bad request response has a 4xx status code

func (*GetRolesForUserBadRequest) IsCode

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

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

func (*GetRolesForUserBadRequest) IsRedirect

func (o *GetRolesForUserBadRequest) IsRedirect() bool

IsRedirect returns true when this get roles for user bad request response has a 3xx status code

func (*GetRolesForUserBadRequest) IsServerError

func (o *GetRolesForUserBadRequest) IsServerError() bool

IsServerError returns true when this get roles for user bad request response has a 5xx status code

func (*GetRolesForUserBadRequest) IsSuccess

func (o *GetRolesForUserBadRequest) IsSuccess() bool

IsSuccess returns true when this get roles for user bad request response has a 2xx status code

func (*GetRolesForUserBadRequest) String

func (o *GetRolesForUserBadRequest) String() string

type GetRolesForUserDeprecatedBadRequest added in v1.30.0

type GetRolesForUserDeprecatedBadRequest struct {
	Payload *models.ErrorResponse
}

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

Bad request

func NewGetRolesForUserDeprecatedBadRequest added in v1.30.0

func NewGetRolesForUserDeprecatedBadRequest() *GetRolesForUserDeprecatedBadRequest

NewGetRolesForUserDeprecatedBadRequest creates a GetRolesForUserDeprecatedBadRequest with default headers values

func (*GetRolesForUserDeprecatedBadRequest) Code added in v1.30.0

Code gets the status code for the get roles for user deprecated bad request response

func (*GetRolesForUserDeprecatedBadRequest) Error added in v1.30.0

func (*GetRolesForUserDeprecatedBadRequest) GetPayload added in v1.30.0

func (*GetRolesForUserDeprecatedBadRequest) IsClientError added in v1.30.0

func (o *GetRolesForUserDeprecatedBadRequest) IsClientError() bool

IsClientError returns true when this get roles for user deprecated bad request response has a 4xx status code

func (*GetRolesForUserDeprecatedBadRequest) IsCode added in v1.30.0

IsCode returns true when this get roles for user deprecated bad request response a status code equal to that given

func (*GetRolesForUserDeprecatedBadRequest) IsRedirect added in v1.30.0

func (o *GetRolesForUserDeprecatedBadRequest) IsRedirect() bool

IsRedirect returns true when this get roles for user deprecated bad request response has a 3xx status code

func (*GetRolesForUserDeprecatedBadRequest) IsServerError added in v1.30.0

func (o *GetRolesForUserDeprecatedBadRequest) IsServerError() bool

IsServerError returns true when this get roles for user deprecated bad request response has a 5xx status code

func (*GetRolesForUserDeprecatedBadRequest) IsSuccess added in v1.30.0

IsSuccess returns true when this get roles for user deprecated bad request response has a 2xx status code

func (*GetRolesForUserDeprecatedBadRequest) String added in v1.30.0

type GetRolesForUserDeprecatedForbidden added in v1.30.0

type GetRolesForUserDeprecatedForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewGetRolesForUserDeprecatedForbidden added in v1.30.0

func NewGetRolesForUserDeprecatedForbidden() *GetRolesForUserDeprecatedForbidden

NewGetRolesForUserDeprecatedForbidden creates a GetRolesForUserDeprecatedForbidden with default headers values

func (*GetRolesForUserDeprecatedForbidden) Code added in v1.30.0

Code gets the status code for the get roles for user deprecated forbidden response

func (*GetRolesForUserDeprecatedForbidden) Error added in v1.30.0

func (*GetRolesForUserDeprecatedForbidden) GetPayload added in v1.30.0

func (*GetRolesForUserDeprecatedForbidden) IsClientError added in v1.30.0

func (o *GetRolesForUserDeprecatedForbidden) IsClientError() bool

IsClientError returns true when this get roles for user deprecated forbidden response has a 4xx status code

func (*GetRolesForUserDeprecatedForbidden) IsCode added in v1.30.0

IsCode returns true when this get roles for user deprecated forbidden response a status code equal to that given

func (*GetRolesForUserDeprecatedForbidden) IsRedirect added in v1.30.0

func (o *GetRolesForUserDeprecatedForbidden) IsRedirect() bool

IsRedirect returns true when this get roles for user deprecated forbidden response has a 3xx status code

func (*GetRolesForUserDeprecatedForbidden) IsServerError added in v1.30.0

func (o *GetRolesForUserDeprecatedForbidden) IsServerError() bool

IsServerError returns true when this get roles for user deprecated forbidden response has a 5xx status code

func (*GetRolesForUserDeprecatedForbidden) IsSuccess added in v1.30.0

IsSuccess returns true when this get roles for user deprecated forbidden response has a 2xx status code

func (*GetRolesForUserDeprecatedForbidden) String added in v1.30.0

type GetRolesForUserDeprecatedInternalServerError added in v1.30.0

type GetRolesForUserDeprecatedInternalServerError struct {
	Payload *models.ErrorResponse
}

GetRolesForUserDeprecatedInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewGetRolesForUserDeprecatedInternalServerError added in v1.30.0

func NewGetRolesForUserDeprecatedInternalServerError() *GetRolesForUserDeprecatedInternalServerError

NewGetRolesForUserDeprecatedInternalServerError creates a GetRolesForUserDeprecatedInternalServerError with default headers values

func (*GetRolesForUserDeprecatedInternalServerError) Code added in v1.30.0

Code gets the status code for the get roles for user deprecated internal server error response

func (*GetRolesForUserDeprecatedInternalServerError) Error added in v1.30.0

func (*GetRolesForUserDeprecatedInternalServerError) GetPayload added in v1.30.0

func (*GetRolesForUserDeprecatedInternalServerError) IsClientError added in v1.30.0

IsClientError returns true when this get roles for user deprecated internal server error response has a 4xx status code

func (*GetRolesForUserDeprecatedInternalServerError) IsCode added in v1.30.0

IsCode returns true when this get roles for user deprecated internal server error response a status code equal to that given

func (*GetRolesForUserDeprecatedInternalServerError) IsRedirect added in v1.30.0

IsRedirect returns true when this get roles for user deprecated internal server error response has a 3xx status code

func (*GetRolesForUserDeprecatedInternalServerError) IsServerError added in v1.30.0

IsServerError returns true when this get roles for user deprecated internal server error response has a 5xx status code

func (*GetRolesForUserDeprecatedInternalServerError) IsSuccess added in v1.30.0

IsSuccess returns true when this get roles for user deprecated internal server error response has a 2xx status code

func (*GetRolesForUserDeprecatedInternalServerError) String added in v1.30.0

type GetRolesForUserDeprecatedNotFound added in v1.30.0

type GetRolesForUserDeprecatedNotFound struct {
}

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

no role found for user

func NewGetRolesForUserDeprecatedNotFound added in v1.30.0

func NewGetRolesForUserDeprecatedNotFound() *GetRolesForUserDeprecatedNotFound

NewGetRolesForUserDeprecatedNotFound creates a GetRolesForUserDeprecatedNotFound with default headers values

func (*GetRolesForUserDeprecatedNotFound) Code added in v1.30.0

Code gets the status code for the get roles for user deprecated not found response

func (*GetRolesForUserDeprecatedNotFound) Error added in v1.30.0

func (*GetRolesForUserDeprecatedNotFound) IsClientError added in v1.30.0

func (o *GetRolesForUserDeprecatedNotFound) IsClientError() bool

IsClientError returns true when this get roles for user deprecated not found response has a 4xx status code

func (*GetRolesForUserDeprecatedNotFound) IsCode added in v1.30.0

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

IsCode returns true when this get roles for user deprecated not found response a status code equal to that given

func (*GetRolesForUserDeprecatedNotFound) IsRedirect added in v1.30.0

func (o *GetRolesForUserDeprecatedNotFound) IsRedirect() bool

IsRedirect returns true when this get roles for user deprecated not found response has a 3xx status code

func (*GetRolesForUserDeprecatedNotFound) IsServerError added in v1.30.0

func (o *GetRolesForUserDeprecatedNotFound) IsServerError() bool

IsServerError returns true when this get roles for user deprecated not found response has a 5xx status code

func (*GetRolesForUserDeprecatedNotFound) IsSuccess added in v1.30.0

func (o *GetRolesForUserDeprecatedNotFound) IsSuccess() bool

IsSuccess returns true when this get roles for user deprecated not found response has a 2xx status code

func (*GetRolesForUserDeprecatedNotFound) String added in v1.30.0

type GetRolesForUserDeprecatedOK added in v1.30.0

type GetRolesForUserDeprecatedOK struct {
	Payload models.RolesListResponse
}

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

Role assigned users

func NewGetRolesForUserDeprecatedOK added in v1.30.0

func NewGetRolesForUserDeprecatedOK() *GetRolesForUserDeprecatedOK

NewGetRolesForUserDeprecatedOK creates a GetRolesForUserDeprecatedOK with default headers values

func (*GetRolesForUserDeprecatedOK) Code added in v1.30.0

func (o *GetRolesForUserDeprecatedOK) Code() int

Code gets the status code for the get roles for user deprecated o k response

func (*GetRolesForUserDeprecatedOK) Error added in v1.30.0

func (*GetRolesForUserDeprecatedOK) GetPayload added in v1.30.0

func (*GetRolesForUserDeprecatedOK) IsClientError added in v1.30.0

func (o *GetRolesForUserDeprecatedOK) IsClientError() bool

IsClientError returns true when this get roles for user deprecated o k response has a 4xx status code

func (*GetRolesForUserDeprecatedOK) IsCode added in v1.30.0

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

IsCode returns true when this get roles for user deprecated o k response a status code equal to that given

func (*GetRolesForUserDeprecatedOK) IsRedirect added in v1.30.0

func (o *GetRolesForUserDeprecatedOK) IsRedirect() bool

IsRedirect returns true when this get roles for user deprecated o k response has a 3xx status code

func (*GetRolesForUserDeprecatedOK) IsServerError added in v1.30.0

func (o *GetRolesForUserDeprecatedOK) IsServerError() bool

IsServerError returns true when this get roles for user deprecated o k response has a 5xx status code

func (*GetRolesForUserDeprecatedOK) IsSuccess added in v1.30.0

func (o *GetRolesForUserDeprecatedOK) IsSuccess() bool

IsSuccess returns true when this get roles for user deprecated o k response has a 2xx status code

func (*GetRolesForUserDeprecatedOK) String added in v1.30.0

func (o *GetRolesForUserDeprecatedOK) String() string

type GetRolesForUserDeprecatedParams added in v1.30.0

type GetRolesForUserDeprecatedParams struct {

	/* ID.

	   user name
	*/
	ID string

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

GetRolesForUserDeprecatedParams contains all the parameters to send to the API endpoint

for the get roles for user deprecated operation.

Typically these are written to a http.Request.

func NewGetRolesForUserDeprecatedParams added in v1.30.0

func NewGetRolesForUserDeprecatedParams() *GetRolesForUserDeprecatedParams

NewGetRolesForUserDeprecatedParams creates a new GetRolesForUserDeprecatedParams 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 NewGetRolesForUserDeprecatedParamsWithContext added in v1.30.0

func NewGetRolesForUserDeprecatedParamsWithContext(ctx context.Context) *GetRolesForUserDeprecatedParams

NewGetRolesForUserDeprecatedParamsWithContext creates a new GetRolesForUserDeprecatedParams object with the ability to set a context for a request.

func NewGetRolesForUserDeprecatedParamsWithHTTPClient added in v1.30.0

func NewGetRolesForUserDeprecatedParamsWithHTTPClient(client *http.Client) *GetRolesForUserDeprecatedParams

NewGetRolesForUserDeprecatedParamsWithHTTPClient creates a new GetRolesForUserDeprecatedParams object with the ability to set a custom HTTPClient for a request.

func NewGetRolesForUserDeprecatedParamsWithTimeout added in v1.30.0

func NewGetRolesForUserDeprecatedParamsWithTimeout(timeout time.Duration) *GetRolesForUserDeprecatedParams

NewGetRolesForUserDeprecatedParamsWithTimeout creates a new GetRolesForUserDeprecatedParams object with the ability to set a timeout on a request.

func (*GetRolesForUserDeprecatedParams) SetContext added in v1.30.0

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

SetContext adds the context to the get roles for user deprecated params

func (*GetRolesForUserDeprecatedParams) SetDefaults added in v1.30.0

func (o *GetRolesForUserDeprecatedParams) SetDefaults()

SetDefaults hydrates default values in the get roles for user deprecated params (not the query body).

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

func (*GetRolesForUserDeprecatedParams) SetHTTPClient added in v1.30.0

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

SetHTTPClient adds the HTTPClient to the get roles for user deprecated params

func (*GetRolesForUserDeprecatedParams) SetID added in v1.30.0

SetID adds the id to the get roles for user deprecated params

func (*GetRolesForUserDeprecatedParams) SetTimeout added in v1.30.0

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

SetTimeout adds the timeout to the get roles for user deprecated params

func (*GetRolesForUserDeprecatedParams) WithContext added in v1.30.0

WithContext adds the context to the get roles for user deprecated params

func (*GetRolesForUserDeprecatedParams) WithDefaults added in v1.30.0

WithDefaults hydrates default values in the get roles for user deprecated params (not the query body).

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

func (*GetRolesForUserDeprecatedParams) WithHTTPClient added in v1.30.0

WithHTTPClient adds the HTTPClient to the get roles for user deprecated params

func (*GetRolesForUserDeprecatedParams) WithID added in v1.30.0

WithID adds the id to the get roles for user deprecated params

func (*GetRolesForUserDeprecatedParams) WithTimeout added in v1.30.0

WithTimeout adds the timeout to the get roles for user deprecated params

func (*GetRolesForUserDeprecatedParams) WriteToRequest added in v1.30.0

WriteToRequest writes these params to a swagger request

type GetRolesForUserDeprecatedReader added in v1.30.0

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

GetRolesForUserDeprecatedReader is a Reader for the GetRolesForUserDeprecated structure.

func (*GetRolesForUserDeprecatedReader) ReadResponse added in v1.30.0

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

ReadResponse reads a server response into the received o.

type GetRolesForUserDeprecatedUnauthorized added in v1.30.0

type GetRolesForUserDeprecatedUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewGetRolesForUserDeprecatedUnauthorized added in v1.30.0

func NewGetRolesForUserDeprecatedUnauthorized() *GetRolesForUserDeprecatedUnauthorized

NewGetRolesForUserDeprecatedUnauthorized creates a GetRolesForUserDeprecatedUnauthorized with default headers values

func (*GetRolesForUserDeprecatedUnauthorized) Code added in v1.30.0

Code gets the status code for the get roles for user deprecated unauthorized response

func (*GetRolesForUserDeprecatedUnauthorized) Error added in v1.30.0

func (*GetRolesForUserDeprecatedUnauthorized) IsClientError added in v1.30.0

func (o *GetRolesForUserDeprecatedUnauthorized) IsClientError() bool

IsClientError returns true when this get roles for user deprecated unauthorized response has a 4xx status code

func (*GetRolesForUserDeprecatedUnauthorized) IsCode added in v1.30.0

IsCode returns true when this get roles for user deprecated unauthorized response a status code equal to that given

func (*GetRolesForUserDeprecatedUnauthorized) IsRedirect added in v1.30.0

IsRedirect returns true when this get roles for user deprecated unauthorized response has a 3xx status code

func (*GetRolesForUserDeprecatedUnauthorized) IsServerError added in v1.30.0

func (o *GetRolesForUserDeprecatedUnauthorized) IsServerError() bool

IsServerError returns true when this get roles for user deprecated unauthorized response has a 5xx status code

func (*GetRolesForUserDeprecatedUnauthorized) IsSuccess added in v1.30.0

IsSuccess returns true when this get roles for user deprecated unauthorized response has a 2xx status code

func (*GetRolesForUserDeprecatedUnauthorized) String added in v1.30.0

type GetRolesForUserDeprecatedUnprocessableEntity added in v1.30.0

type GetRolesForUserDeprecatedUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

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

Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?

func NewGetRolesForUserDeprecatedUnprocessableEntity added in v1.30.0

func NewGetRolesForUserDeprecatedUnprocessableEntity() *GetRolesForUserDeprecatedUnprocessableEntity

NewGetRolesForUserDeprecatedUnprocessableEntity creates a GetRolesForUserDeprecatedUnprocessableEntity with default headers values

func (*GetRolesForUserDeprecatedUnprocessableEntity) Code added in v1.30.0

Code gets the status code for the get roles for user deprecated unprocessable entity response

func (*GetRolesForUserDeprecatedUnprocessableEntity) Error added in v1.30.0

func (*GetRolesForUserDeprecatedUnprocessableEntity) GetPayload added in v1.30.0

func (*GetRolesForUserDeprecatedUnprocessableEntity) IsClientError added in v1.30.0

IsClientError returns true when this get roles for user deprecated unprocessable entity response has a 4xx status code

func (*GetRolesForUserDeprecatedUnprocessableEntity) IsCode added in v1.30.0

IsCode returns true when this get roles for user deprecated unprocessable entity response a status code equal to that given

func (*GetRolesForUserDeprecatedUnprocessableEntity) IsRedirect added in v1.30.0

IsRedirect returns true when this get roles for user deprecated unprocessable entity response has a 3xx status code

func (*GetRolesForUserDeprecatedUnprocessableEntity) IsServerError added in v1.30.0

IsServerError returns true when this get roles for user deprecated unprocessable entity response has a 5xx status code

func (*GetRolesForUserDeprecatedUnprocessableEntity) IsSuccess added in v1.30.0

IsSuccess returns true when this get roles for user deprecated unprocessable entity response has a 2xx status code

func (*GetRolesForUserDeprecatedUnprocessableEntity) String added in v1.30.0

type GetRolesForUserForbidden

type GetRolesForUserForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewGetRolesForUserForbidden

func NewGetRolesForUserForbidden() *GetRolesForUserForbidden

NewGetRolesForUserForbidden creates a GetRolesForUserForbidden with default headers values

func (*GetRolesForUserForbidden) Code

func (o *GetRolesForUserForbidden) Code() int

Code gets the status code for the get roles for user forbidden response

func (*GetRolesForUserForbidden) Error

func (o *GetRolesForUserForbidden) Error() string

func (*GetRolesForUserForbidden) GetPayload

func (*GetRolesForUserForbidden) IsClientError

func (o *GetRolesForUserForbidden) IsClientError() bool

IsClientError returns true when this get roles for user forbidden response has a 4xx status code

func (*GetRolesForUserForbidden) IsCode

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

IsCode returns true when this get roles for user forbidden response a status code equal to that given

func (*GetRolesForUserForbidden) IsRedirect

func (o *GetRolesForUserForbidden) IsRedirect() bool

IsRedirect returns true when this get roles for user forbidden response has a 3xx status code

func (*GetRolesForUserForbidden) IsServerError

func (o *GetRolesForUserForbidden) IsServerError() bool

IsServerError returns true when this get roles for user forbidden response has a 5xx status code

func (*GetRolesForUserForbidden) IsSuccess

func (o *GetRolesForUserForbidden) IsSuccess() bool

IsSuccess returns true when this get roles for user forbidden response has a 2xx status code

func (*GetRolesForUserForbidden) String

func (o *GetRolesForUserForbidden) String() string

type GetRolesForUserInternalServerError

type GetRolesForUserInternalServerError struct {
	Payload *models.ErrorResponse
}

GetRolesForUserInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewGetRolesForUserInternalServerError

func NewGetRolesForUserInternalServerError() *GetRolesForUserInternalServerError

NewGetRolesForUserInternalServerError creates a GetRolesForUserInternalServerError with default headers values

func (*GetRolesForUserInternalServerError) Code

Code gets the status code for the get roles for user internal server error response

func (*GetRolesForUserInternalServerError) Error

func (*GetRolesForUserInternalServerError) GetPayload

func (*GetRolesForUserInternalServerError) IsClientError

func (o *GetRolesForUserInternalServerError) IsClientError() bool

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

func (*GetRolesForUserInternalServerError) IsCode

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

func (*GetRolesForUserInternalServerError) IsRedirect

func (o *GetRolesForUserInternalServerError) IsRedirect() bool

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

func (*GetRolesForUserInternalServerError) IsServerError

func (o *GetRolesForUserInternalServerError) IsServerError() bool

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

func (*GetRolesForUserInternalServerError) IsSuccess

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

func (*GetRolesForUserInternalServerError) String

type GetRolesForUserNotFound

type GetRolesForUserNotFound struct {
}

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

no role found for user

func NewGetRolesForUserNotFound

func NewGetRolesForUserNotFound() *GetRolesForUserNotFound

NewGetRolesForUserNotFound creates a GetRolesForUserNotFound with default headers values

func (*GetRolesForUserNotFound) Code

func (o *GetRolesForUserNotFound) Code() int

Code gets the status code for the get roles for user not found response

func (*GetRolesForUserNotFound) Error

func (o *GetRolesForUserNotFound) Error() string

func (*GetRolesForUserNotFound) IsClientError

func (o *GetRolesForUserNotFound) IsClientError() bool

IsClientError returns true when this get roles for user not found response has a 4xx status code

func (*GetRolesForUserNotFound) IsCode

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

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

func (*GetRolesForUserNotFound) IsRedirect

func (o *GetRolesForUserNotFound) IsRedirect() bool

IsRedirect returns true when this get roles for user not found response has a 3xx status code

func (*GetRolesForUserNotFound) IsServerError

func (o *GetRolesForUserNotFound) IsServerError() bool

IsServerError returns true when this get roles for user not found response has a 5xx status code

func (*GetRolesForUserNotFound) IsSuccess

func (o *GetRolesForUserNotFound) IsSuccess() bool

IsSuccess returns true when this get roles for user not found response has a 2xx status code

func (*GetRolesForUserNotFound) String

func (o *GetRolesForUserNotFound) String() string

type GetRolesForUserOK

type GetRolesForUserOK struct {
	Payload models.RolesListResponse
}

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

Role assigned users

func NewGetRolesForUserOK

func NewGetRolesForUserOK() *GetRolesForUserOK

NewGetRolesForUserOK creates a GetRolesForUserOK with default headers values

func (*GetRolesForUserOK) Code

func (o *GetRolesForUserOK) Code() int

Code gets the status code for the get roles for user o k response

func (*GetRolesForUserOK) Error

func (o *GetRolesForUserOK) Error() string

func (*GetRolesForUserOK) GetPayload

func (o *GetRolesForUserOK) GetPayload() models.RolesListResponse

func (*GetRolesForUserOK) IsClientError

func (o *GetRolesForUserOK) IsClientError() bool

IsClientError returns true when this get roles for user o k response has a 4xx status code

func (*GetRolesForUserOK) IsCode

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

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

func (*GetRolesForUserOK) IsRedirect

func (o *GetRolesForUserOK) IsRedirect() bool

IsRedirect returns true when this get roles for user o k response has a 3xx status code

func (*GetRolesForUserOK) IsServerError

func (o *GetRolesForUserOK) IsServerError() bool

IsServerError returns true when this get roles for user o k response has a 5xx status code

func (*GetRolesForUserOK) IsSuccess

func (o *GetRolesForUserOK) IsSuccess() bool

IsSuccess returns true when this get roles for user o k response has a 2xx status code

func (*GetRolesForUserOK) String

func (o *GetRolesForUserOK) String() string

type GetRolesForUserParams

type GetRolesForUserParams struct {

	/* ID.

	   user name
	*/
	ID string

	/* IncludeFullRoles.

	   Whether to include detailed role information needed the roles permission
	*/
	IncludeFullRoles *bool

	/* UserType.

	   The type of user
	*/
	UserType string

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

GetRolesForUserParams contains all the parameters to send to the API endpoint

for the get roles for user operation.

Typically these are written to a http.Request.

func NewGetRolesForUserParams

func NewGetRolesForUserParams() *GetRolesForUserParams

NewGetRolesForUserParams creates a new GetRolesForUserParams 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 NewGetRolesForUserParamsWithContext

func NewGetRolesForUserParamsWithContext(ctx context.Context) *GetRolesForUserParams

NewGetRolesForUserParamsWithContext creates a new GetRolesForUserParams object with the ability to set a context for a request.

func NewGetRolesForUserParamsWithHTTPClient

func NewGetRolesForUserParamsWithHTTPClient(client *http.Client) *GetRolesForUserParams

NewGetRolesForUserParamsWithHTTPClient creates a new GetRolesForUserParams object with the ability to set a custom HTTPClient for a request.

func NewGetRolesForUserParamsWithTimeout

func NewGetRolesForUserParamsWithTimeout(timeout time.Duration) *GetRolesForUserParams

NewGetRolesForUserParamsWithTimeout creates a new GetRolesForUserParams object with the ability to set a timeout on a request.

func (*GetRolesForUserParams) SetContext

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

SetContext adds the context to the get roles for user params

func (*GetRolesForUserParams) SetDefaults

func (o *GetRolesForUserParams) SetDefaults()

SetDefaults hydrates default values in the get roles for user params (not the query body).

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

func (*GetRolesForUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get roles for user params

func (*GetRolesForUserParams) SetID

func (o *GetRolesForUserParams) SetID(id string)

SetID adds the id to the get roles for user params

func (*GetRolesForUserParams) SetIncludeFullRoles added in v1.30.0

func (o *GetRolesForUserParams) SetIncludeFullRoles(includeFullRoles *bool)

SetIncludeFullRoles adds the includeFullRoles to the get roles for user params

func (*GetRolesForUserParams) SetTimeout

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

SetTimeout adds the timeout to the get roles for user params

func (*GetRolesForUserParams) SetUserType added in v1.30.0

func (o *GetRolesForUserParams) SetUserType(userType string)

SetUserType adds the userType to the get roles for user params

func (*GetRolesForUserParams) WithContext

WithContext adds the context to the get roles for user params

func (*GetRolesForUserParams) WithDefaults

func (o *GetRolesForUserParams) WithDefaults() *GetRolesForUserParams

WithDefaults hydrates default values in the get roles for user params (not the query body).

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

func (*GetRolesForUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get roles for user params

func (*GetRolesForUserParams) WithID

WithID adds the id to the get roles for user params

func (*GetRolesForUserParams) WithIncludeFullRoles added in v1.30.0

func (o *GetRolesForUserParams) WithIncludeFullRoles(includeFullRoles *bool) *GetRolesForUserParams

WithIncludeFullRoles adds the includeFullRoles to the get roles for user params

func (*GetRolesForUserParams) WithTimeout

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

WithTimeout adds the timeout to the get roles for user params

func (*GetRolesForUserParams) WithUserType added in v1.30.0

func (o *GetRolesForUserParams) WithUserType(userType string) *GetRolesForUserParams

WithUserType adds the userType to the get roles for user params

func (*GetRolesForUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRolesForUserReader

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

GetRolesForUserReader is a Reader for the GetRolesForUser structure.

func (*GetRolesForUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRolesForUserUnauthorized

type GetRolesForUserUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewGetRolesForUserUnauthorized

func NewGetRolesForUserUnauthorized() *GetRolesForUserUnauthorized

NewGetRolesForUserUnauthorized creates a GetRolesForUserUnauthorized with default headers values

func (*GetRolesForUserUnauthorized) Code

func (o *GetRolesForUserUnauthorized) Code() int

Code gets the status code for the get roles for user unauthorized response

func (*GetRolesForUserUnauthorized) Error

func (*GetRolesForUserUnauthorized) IsClientError

func (o *GetRolesForUserUnauthorized) IsClientError() bool

IsClientError returns true when this get roles for user unauthorized response has a 4xx status code

func (*GetRolesForUserUnauthorized) IsCode

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

IsCode returns true when this get roles for user unauthorized response a status code equal to that given

func (*GetRolesForUserUnauthorized) IsRedirect

func (o *GetRolesForUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this get roles for user unauthorized response has a 3xx status code

func (*GetRolesForUserUnauthorized) IsServerError

func (o *GetRolesForUserUnauthorized) IsServerError() bool

IsServerError returns true when this get roles for user unauthorized response has a 5xx status code

func (*GetRolesForUserUnauthorized) IsSuccess

func (o *GetRolesForUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this get roles for user unauthorized response has a 2xx status code

func (*GetRolesForUserUnauthorized) String

func (o *GetRolesForUserUnauthorized) String() string

type GetRolesForUserUnprocessableEntity added in v1.30.0

type GetRolesForUserUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

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

Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?

func NewGetRolesForUserUnprocessableEntity added in v1.30.0

func NewGetRolesForUserUnprocessableEntity() *GetRolesForUserUnprocessableEntity

NewGetRolesForUserUnprocessableEntity creates a GetRolesForUserUnprocessableEntity with default headers values

func (*GetRolesForUserUnprocessableEntity) Code added in v1.30.0

Code gets the status code for the get roles for user unprocessable entity response

func (*GetRolesForUserUnprocessableEntity) Error added in v1.30.0

func (*GetRolesForUserUnprocessableEntity) GetPayload added in v1.30.0

func (*GetRolesForUserUnprocessableEntity) IsClientError added in v1.30.0

func (o *GetRolesForUserUnprocessableEntity) IsClientError() bool

IsClientError returns true when this get roles for user unprocessable entity response has a 4xx status code

func (*GetRolesForUserUnprocessableEntity) IsCode added in v1.30.0

IsCode returns true when this get roles for user unprocessable entity response a status code equal to that given

func (*GetRolesForUserUnprocessableEntity) IsRedirect added in v1.30.0

func (o *GetRolesForUserUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this get roles for user unprocessable entity response has a 3xx status code

func (*GetRolesForUserUnprocessableEntity) IsServerError added in v1.30.0

func (o *GetRolesForUserUnprocessableEntity) IsServerError() bool

IsServerError returns true when this get roles for user unprocessable entity response has a 5xx status code

func (*GetRolesForUserUnprocessableEntity) IsSuccess added in v1.30.0

IsSuccess returns true when this get roles for user unprocessable entity response has a 2xx status code

func (*GetRolesForUserUnprocessableEntity) String added in v1.30.0

type GetRolesForbidden

type GetRolesForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewGetRolesForbidden

func NewGetRolesForbidden() *GetRolesForbidden

NewGetRolesForbidden creates a GetRolesForbidden with default headers values

func (*GetRolesForbidden) Code

func (o *GetRolesForbidden) Code() int

Code gets the status code for the get roles forbidden response

func (*GetRolesForbidden) Error

func (o *GetRolesForbidden) Error() string

func (*GetRolesForbidden) GetPayload

func (o *GetRolesForbidden) GetPayload() *models.ErrorResponse

func (*GetRolesForbidden) IsClientError

func (o *GetRolesForbidden) IsClientError() bool

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

func (*GetRolesForbidden) IsCode

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

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

func (*GetRolesForbidden) IsRedirect

func (o *GetRolesForbidden) IsRedirect() bool

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

func (*GetRolesForbidden) IsServerError

func (o *GetRolesForbidden) IsServerError() bool

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

func (*GetRolesForbidden) IsSuccess

func (o *GetRolesForbidden) IsSuccess() bool

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

func (*GetRolesForbidden) String

func (o *GetRolesForbidden) String() string

type GetRolesInternalServerError

type GetRolesInternalServerError struct {
	Payload *models.ErrorResponse
}

GetRolesInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewGetRolesInternalServerError

func NewGetRolesInternalServerError() *GetRolesInternalServerError

NewGetRolesInternalServerError creates a GetRolesInternalServerError with default headers values

func (*GetRolesInternalServerError) Code

func (o *GetRolesInternalServerError) Code() int

Code gets the status code for the get roles internal server error response

func (*GetRolesInternalServerError) Error

func (*GetRolesInternalServerError) GetPayload

func (*GetRolesInternalServerError) IsClientError

func (o *GetRolesInternalServerError) IsClientError() bool

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

func (*GetRolesInternalServerError) IsCode

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

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

func (*GetRolesInternalServerError) IsRedirect

func (o *GetRolesInternalServerError) IsRedirect() bool

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

func (*GetRolesInternalServerError) IsServerError

func (o *GetRolesInternalServerError) IsServerError() bool

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

func (*GetRolesInternalServerError) IsSuccess

func (o *GetRolesInternalServerError) IsSuccess() bool

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

func (*GetRolesInternalServerError) String

func (o *GetRolesInternalServerError) String() string

type GetRolesOK

type GetRolesOK struct {
	Payload models.RolesListResponse
}

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

Successful response.

func NewGetRolesOK

func NewGetRolesOK() *GetRolesOK

NewGetRolesOK creates a GetRolesOK with default headers values

func (*GetRolesOK) Code

func (o *GetRolesOK) Code() int

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

func (*GetRolesOK) Error

func (o *GetRolesOK) Error() string

func (*GetRolesOK) GetPayload

func (o *GetRolesOK) GetPayload() models.RolesListResponse

func (*GetRolesOK) IsClientError

func (o *GetRolesOK) IsClientError() bool

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

func (*GetRolesOK) IsCode

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

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

func (*GetRolesOK) IsRedirect

func (o *GetRolesOK) IsRedirect() bool

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

func (*GetRolesOK) IsServerError

func (o *GetRolesOK) IsServerError() bool

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

func (*GetRolesOK) IsSuccess

func (o *GetRolesOK) IsSuccess() bool

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

func (*GetRolesOK) String

func (o *GetRolesOK) String() string

type GetRolesParams

type GetRolesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRolesParams contains all the parameters to send to the API endpoint

for the get roles operation.

Typically these are written to a http.Request.

func NewGetRolesParams

func NewGetRolesParams() *GetRolesParams

NewGetRolesParams creates a new GetRolesParams 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 NewGetRolesParamsWithContext

func NewGetRolesParamsWithContext(ctx context.Context) *GetRolesParams

NewGetRolesParamsWithContext creates a new GetRolesParams object with the ability to set a context for a request.

func NewGetRolesParamsWithHTTPClient

func NewGetRolesParamsWithHTTPClient(client *http.Client) *GetRolesParams

NewGetRolesParamsWithHTTPClient creates a new GetRolesParams object with the ability to set a custom HTTPClient for a request.

func NewGetRolesParamsWithTimeout

func NewGetRolesParamsWithTimeout(timeout time.Duration) *GetRolesParams

NewGetRolesParamsWithTimeout creates a new GetRolesParams object with the ability to set a timeout on a request.

func (*GetRolesParams) SetContext

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

SetContext adds the context to the get roles params

func (*GetRolesParams) SetDefaults

func (o *GetRolesParams) SetDefaults()

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

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

func (*GetRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get roles params

func (*GetRolesParams) SetTimeout

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

SetTimeout adds the timeout to the get roles params

func (*GetRolesParams) WithContext

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

WithContext adds the context to the get roles params

func (*GetRolesParams) WithDefaults

func (o *GetRolesParams) WithDefaults() *GetRolesParams

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

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

func (*GetRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get roles params

func (*GetRolesParams) WithTimeout

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

WithTimeout adds the timeout to the get roles params

func (*GetRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRolesReader

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

GetRolesReader is a Reader for the GetRoles structure.

func (*GetRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRolesUnauthorized

type GetRolesUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewGetRolesUnauthorized

func NewGetRolesUnauthorized() *GetRolesUnauthorized

NewGetRolesUnauthorized creates a GetRolesUnauthorized with default headers values

func (*GetRolesUnauthorized) Code

func (o *GetRolesUnauthorized) Code() int

Code gets the status code for the get roles unauthorized response

func (*GetRolesUnauthorized) Error

func (o *GetRolesUnauthorized) Error() string

func (*GetRolesUnauthorized) IsClientError

func (o *GetRolesUnauthorized) IsClientError() bool

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

func (*GetRolesUnauthorized) IsCode

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

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

func (*GetRolesUnauthorized) IsRedirect

func (o *GetRolesUnauthorized) IsRedirect() bool

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

func (*GetRolesUnauthorized) IsServerError

func (o *GetRolesUnauthorized) IsServerError() bool

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

func (*GetRolesUnauthorized) IsSuccess

func (o *GetRolesUnauthorized) IsSuccess() bool

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

func (*GetRolesUnauthorized) String

func (o *GetRolesUnauthorized) String() string

type GetUsersForRoleBadRequest

type GetUsersForRoleBadRequest struct {
	Payload *models.ErrorResponse
}

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

Bad request

func NewGetUsersForRoleBadRequest

func NewGetUsersForRoleBadRequest() *GetUsersForRoleBadRequest

NewGetUsersForRoleBadRequest creates a GetUsersForRoleBadRequest with default headers values

func (*GetUsersForRoleBadRequest) Code

func (o *GetUsersForRoleBadRequest) Code() int

Code gets the status code for the get users for role bad request response

func (*GetUsersForRoleBadRequest) Error

func (o *GetUsersForRoleBadRequest) Error() string

func (*GetUsersForRoleBadRequest) GetPayload

func (*GetUsersForRoleBadRequest) IsClientError

func (o *GetUsersForRoleBadRequest) IsClientError() bool

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

func (*GetUsersForRoleBadRequest) IsCode

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

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

func (*GetUsersForRoleBadRequest) IsRedirect

func (o *GetUsersForRoleBadRequest) IsRedirect() bool

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

func (*GetUsersForRoleBadRequest) IsServerError

func (o *GetUsersForRoleBadRequest) IsServerError() bool

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

func (*GetUsersForRoleBadRequest) IsSuccess

func (o *GetUsersForRoleBadRequest) IsSuccess() bool

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

func (*GetUsersForRoleBadRequest) String

func (o *GetUsersForRoleBadRequest) String() string

type GetUsersForRoleDeprecatedBadRequest added in v1.30.0

type GetUsersForRoleDeprecatedBadRequest struct {
	Payload *models.ErrorResponse
}

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

Bad request

func NewGetUsersForRoleDeprecatedBadRequest added in v1.30.0

func NewGetUsersForRoleDeprecatedBadRequest() *GetUsersForRoleDeprecatedBadRequest

NewGetUsersForRoleDeprecatedBadRequest creates a GetUsersForRoleDeprecatedBadRequest with default headers values

func (*GetUsersForRoleDeprecatedBadRequest) Code added in v1.30.0

Code gets the status code for the get users for role deprecated bad request response

func (*GetUsersForRoleDeprecatedBadRequest) Error added in v1.30.0

func (*GetUsersForRoleDeprecatedBadRequest) GetPayload added in v1.30.0

func (*GetUsersForRoleDeprecatedBadRequest) IsClientError added in v1.30.0

func (o *GetUsersForRoleDeprecatedBadRequest) IsClientError() bool

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

func (*GetUsersForRoleDeprecatedBadRequest) IsCode added in v1.30.0

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

func (*GetUsersForRoleDeprecatedBadRequest) IsRedirect added in v1.30.0

func (o *GetUsersForRoleDeprecatedBadRequest) IsRedirect() bool

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

func (*GetUsersForRoleDeprecatedBadRequest) IsServerError added in v1.30.0

func (o *GetUsersForRoleDeprecatedBadRequest) IsServerError() bool

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

func (*GetUsersForRoleDeprecatedBadRequest) IsSuccess added in v1.30.0

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

func (*GetUsersForRoleDeprecatedBadRequest) String added in v1.30.0

type GetUsersForRoleDeprecatedForbidden added in v1.30.0

type GetUsersForRoleDeprecatedForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewGetUsersForRoleDeprecatedForbidden added in v1.30.0

func NewGetUsersForRoleDeprecatedForbidden() *GetUsersForRoleDeprecatedForbidden

NewGetUsersForRoleDeprecatedForbidden creates a GetUsersForRoleDeprecatedForbidden with default headers values

func (*GetUsersForRoleDeprecatedForbidden) Code added in v1.30.0

Code gets the status code for the get users for role deprecated forbidden response

func (*GetUsersForRoleDeprecatedForbidden) Error added in v1.30.0

func (*GetUsersForRoleDeprecatedForbidden) GetPayload added in v1.30.0

func (*GetUsersForRoleDeprecatedForbidden) IsClientError added in v1.30.0

func (o *GetUsersForRoleDeprecatedForbidden) IsClientError() bool

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

func (*GetUsersForRoleDeprecatedForbidden) IsCode added in v1.30.0

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

func (*GetUsersForRoleDeprecatedForbidden) IsRedirect added in v1.30.0

func (o *GetUsersForRoleDeprecatedForbidden) IsRedirect() bool

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

func (*GetUsersForRoleDeprecatedForbidden) IsServerError added in v1.30.0

func (o *GetUsersForRoleDeprecatedForbidden) IsServerError() bool

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

func (*GetUsersForRoleDeprecatedForbidden) IsSuccess added in v1.30.0

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

func (*GetUsersForRoleDeprecatedForbidden) String added in v1.30.0

type GetUsersForRoleDeprecatedInternalServerError added in v1.30.0

type GetUsersForRoleDeprecatedInternalServerError struct {
	Payload *models.ErrorResponse
}

GetUsersForRoleDeprecatedInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewGetUsersForRoleDeprecatedInternalServerError added in v1.30.0

func NewGetUsersForRoleDeprecatedInternalServerError() *GetUsersForRoleDeprecatedInternalServerError

NewGetUsersForRoleDeprecatedInternalServerError creates a GetUsersForRoleDeprecatedInternalServerError with default headers values

func (*GetUsersForRoleDeprecatedInternalServerError) Code added in v1.30.0

Code gets the status code for the get users for role deprecated internal server error response

func (*GetUsersForRoleDeprecatedInternalServerError) Error added in v1.30.0

func (*GetUsersForRoleDeprecatedInternalServerError) GetPayload added in v1.30.0

func (*GetUsersForRoleDeprecatedInternalServerError) IsClientError added in v1.30.0

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

func (*GetUsersForRoleDeprecatedInternalServerError) IsCode added in v1.30.0

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

func (*GetUsersForRoleDeprecatedInternalServerError) IsRedirect added in v1.30.0

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

func (*GetUsersForRoleDeprecatedInternalServerError) IsServerError added in v1.30.0

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

func (*GetUsersForRoleDeprecatedInternalServerError) IsSuccess added in v1.30.0

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

func (*GetUsersForRoleDeprecatedInternalServerError) String added in v1.30.0

type GetUsersForRoleDeprecatedNotFound added in v1.30.0

type GetUsersForRoleDeprecatedNotFound struct {
}

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

no role found

func NewGetUsersForRoleDeprecatedNotFound added in v1.30.0

func NewGetUsersForRoleDeprecatedNotFound() *GetUsersForRoleDeprecatedNotFound

NewGetUsersForRoleDeprecatedNotFound creates a GetUsersForRoleDeprecatedNotFound with default headers values

func (*GetUsersForRoleDeprecatedNotFound) Code added in v1.30.0

Code gets the status code for the get users for role deprecated not found response

func (*GetUsersForRoleDeprecatedNotFound) Error added in v1.30.0

func (*GetUsersForRoleDeprecatedNotFound) IsClientError added in v1.30.0

func (o *GetUsersForRoleDeprecatedNotFound) IsClientError() bool

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

func (*GetUsersForRoleDeprecatedNotFound) IsCode added in v1.30.0

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

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

func (*GetUsersForRoleDeprecatedNotFound) IsRedirect added in v1.30.0

func (o *GetUsersForRoleDeprecatedNotFound) IsRedirect() bool

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

func (*GetUsersForRoleDeprecatedNotFound) IsServerError added in v1.30.0

func (o *GetUsersForRoleDeprecatedNotFound) IsServerError() bool

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

func (*GetUsersForRoleDeprecatedNotFound) IsSuccess added in v1.30.0

func (o *GetUsersForRoleDeprecatedNotFound) IsSuccess() bool

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

func (*GetUsersForRoleDeprecatedNotFound) String added in v1.30.0

type GetUsersForRoleDeprecatedOK added in v1.30.0

type GetUsersForRoleDeprecatedOK struct {
	Payload []string
}

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

Users assigned to this role

func NewGetUsersForRoleDeprecatedOK added in v1.30.0

func NewGetUsersForRoleDeprecatedOK() *GetUsersForRoleDeprecatedOK

NewGetUsersForRoleDeprecatedOK creates a GetUsersForRoleDeprecatedOK with default headers values

func (*GetUsersForRoleDeprecatedOK) Code added in v1.30.0

func (o *GetUsersForRoleDeprecatedOK) Code() int

Code gets the status code for the get users for role deprecated o k response

func (*GetUsersForRoleDeprecatedOK) Error added in v1.30.0

func (*GetUsersForRoleDeprecatedOK) GetPayload added in v1.30.0

func (o *GetUsersForRoleDeprecatedOK) GetPayload() []string

func (*GetUsersForRoleDeprecatedOK) IsClientError added in v1.30.0

func (o *GetUsersForRoleDeprecatedOK) IsClientError() bool

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

func (*GetUsersForRoleDeprecatedOK) IsCode added in v1.30.0

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

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

func (*GetUsersForRoleDeprecatedOK) IsRedirect added in v1.30.0

func (o *GetUsersForRoleDeprecatedOK) IsRedirect() bool

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

func (*GetUsersForRoleDeprecatedOK) IsServerError added in v1.30.0

func (o *GetUsersForRoleDeprecatedOK) IsServerError() bool

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

func (*GetUsersForRoleDeprecatedOK) IsSuccess added in v1.30.0

func (o *GetUsersForRoleDeprecatedOK) IsSuccess() bool

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

func (*GetUsersForRoleDeprecatedOK) String added in v1.30.0

func (o *GetUsersForRoleDeprecatedOK) String() string

type GetUsersForRoleDeprecatedParams added in v1.30.0

type GetUsersForRoleDeprecatedParams struct {

	/* ID.

	   role name
	*/
	ID string

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

GetUsersForRoleDeprecatedParams contains all the parameters to send to the API endpoint

for the get users for role deprecated operation.

Typically these are written to a http.Request.

func NewGetUsersForRoleDeprecatedParams added in v1.30.0

func NewGetUsersForRoleDeprecatedParams() *GetUsersForRoleDeprecatedParams

NewGetUsersForRoleDeprecatedParams creates a new GetUsersForRoleDeprecatedParams 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 NewGetUsersForRoleDeprecatedParamsWithContext added in v1.30.0

func NewGetUsersForRoleDeprecatedParamsWithContext(ctx context.Context) *GetUsersForRoleDeprecatedParams

NewGetUsersForRoleDeprecatedParamsWithContext creates a new GetUsersForRoleDeprecatedParams object with the ability to set a context for a request.

func NewGetUsersForRoleDeprecatedParamsWithHTTPClient added in v1.30.0

func NewGetUsersForRoleDeprecatedParamsWithHTTPClient(client *http.Client) *GetUsersForRoleDeprecatedParams

NewGetUsersForRoleDeprecatedParamsWithHTTPClient creates a new GetUsersForRoleDeprecatedParams object with the ability to set a custom HTTPClient for a request.

func NewGetUsersForRoleDeprecatedParamsWithTimeout added in v1.30.0

func NewGetUsersForRoleDeprecatedParamsWithTimeout(timeout time.Duration) *GetUsersForRoleDeprecatedParams

NewGetUsersForRoleDeprecatedParamsWithTimeout creates a new GetUsersForRoleDeprecatedParams object with the ability to set a timeout on a request.

func (*GetUsersForRoleDeprecatedParams) SetContext added in v1.30.0

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

SetContext adds the context to the get users for role deprecated params

func (*GetUsersForRoleDeprecatedParams) SetDefaults added in v1.30.0

func (o *GetUsersForRoleDeprecatedParams) SetDefaults()

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

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

func (*GetUsersForRoleDeprecatedParams) SetHTTPClient added in v1.30.0

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

SetHTTPClient adds the HTTPClient to the get users for role deprecated params

func (*GetUsersForRoleDeprecatedParams) SetID added in v1.30.0

SetID adds the id to the get users for role deprecated params

func (*GetUsersForRoleDeprecatedParams) SetTimeout added in v1.30.0

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

SetTimeout adds the timeout to the get users for role deprecated params

func (*GetUsersForRoleDeprecatedParams) WithContext added in v1.30.0

WithContext adds the context to the get users for role deprecated params

func (*GetUsersForRoleDeprecatedParams) WithDefaults added in v1.30.0

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

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

func (*GetUsersForRoleDeprecatedParams) WithHTTPClient added in v1.30.0

WithHTTPClient adds the HTTPClient to the get users for role deprecated params

func (*GetUsersForRoleDeprecatedParams) WithID added in v1.30.0

WithID adds the id to the get users for role deprecated params

func (*GetUsersForRoleDeprecatedParams) WithTimeout added in v1.30.0

WithTimeout adds the timeout to the get users for role deprecated params

func (*GetUsersForRoleDeprecatedParams) WriteToRequest added in v1.30.0

WriteToRequest writes these params to a swagger request

type GetUsersForRoleDeprecatedReader added in v1.30.0

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

GetUsersForRoleDeprecatedReader is a Reader for the GetUsersForRoleDeprecated structure.

func (*GetUsersForRoleDeprecatedReader) ReadResponse added in v1.30.0

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

ReadResponse reads a server response into the received o.

type GetUsersForRoleDeprecatedUnauthorized added in v1.30.0

type GetUsersForRoleDeprecatedUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewGetUsersForRoleDeprecatedUnauthorized added in v1.30.0

func NewGetUsersForRoleDeprecatedUnauthorized() *GetUsersForRoleDeprecatedUnauthorized

NewGetUsersForRoleDeprecatedUnauthorized creates a GetUsersForRoleDeprecatedUnauthorized with default headers values

func (*GetUsersForRoleDeprecatedUnauthorized) Code added in v1.30.0

Code gets the status code for the get users for role deprecated unauthorized response

func (*GetUsersForRoleDeprecatedUnauthorized) Error added in v1.30.0

func (*GetUsersForRoleDeprecatedUnauthorized) IsClientError added in v1.30.0

func (o *GetUsersForRoleDeprecatedUnauthorized) IsClientError() bool

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

func (*GetUsersForRoleDeprecatedUnauthorized) IsCode added in v1.30.0

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

func (*GetUsersForRoleDeprecatedUnauthorized) IsRedirect added in v1.30.0

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

func (*GetUsersForRoleDeprecatedUnauthorized) IsServerError added in v1.30.0

func (o *GetUsersForRoleDeprecatedUnauthorized) IsServerError() bool

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

func (*GetUsersForRoleDeprecatedUnauthorized) IsSuccess added in v1.30.0

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

func (*GetUsersForRoleDeprecatedUnauthorized) String added in v1.30.0

type GetUsersForRoleForbidden

type GetUsersForRoleForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewGetUsersForRoleForbidden

func NewGetUsersForRoleForbidden() *GetUsersForRoleForbidden

NewGetUsersForRoleForbidden creates a GetUsersForRoleForbidden with default headers values

func (*GetUsersForRoleForbidden) Code

func (o *GetUsersForRoleForbidden) Code() int

Code gets the status code for the get users for role forbidden response

func (*GetUsersForRoleForbidden) Error

func (o *GetUsersForRoleForbidden) Error() string

func (*GetUsersForRoleForbidden) GetPayload

func (*GetUsersForRoleForbidden) IsClientError

func (o *GetUsersForRoleForbidden) IsClientError() bool

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

func (*GetUsersForRoleForbidden) IsCode

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

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

func (*GetUsersForRoleForbidden) IsRedirect

func (o *GetUsersForRoleForbidden) IsRedirect() bool

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

func (*GetUsersForRoleForbidden) IsServerError

func (o *GetUsersForRoleForbidden) IsServerError() bool

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

func (*GetUsersForRoleForbidden) IsSuccess

func (o *GetUsersForRoleForbidden) IsSuccess() bool

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

func (*GetUsersForRoleForbidden) String

func (o *GetUsersForRoleForbidden) String() string

type GetUsersForRoleInternalServerError

type GetUsersForRoleInternalServerError struct {
	Payload *models.ErrorResponse
}

GetUsersForRoleInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewGetUsersForRoleInternalServerError

func NewGetUsersForRoleInternalServerError() *GetUsersForRoleInternalServerError

NewGetUsersForRoleInternalServerError creates a GetUsersForRoleInternalServerError with default headers values

func (*GetUsersForRoleInternalServerError) Code

Code gets the status code for the get users for role internal server error response

func (*GetUsersForRoleInternalServerError) Error

func (*GetUsersForRoleInternalServerError) GetPayload

func (*GetUsersForRoleInternalServerError) IsClientError

func (o *GetUsersForRoleInternalServerError) IsClientError() bool

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

func (*GetUsersForRoleInternalServerError) IsCode

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

func (*GetUsersForRoleInternalServerError) IsRedirect

func (o *GetUsersForRoleInternalServerError) IsRedirect() bool

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

func (*GetUsersForRoleInternalServerError) IsServerError

func (o *GetUsersForRoleInternalServerError) IsServerError() bool

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

func (*GetUsersForRoleInternalServerError) IsSuccess

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

func (*GetUsersForRoleInternalServerError) String

type GetUsersForRoleNotFound

type GetUsersForRoleNotFound struct {
}

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

no role found

func NewGetUsersForRoleNotFound

func NewGetUsersForRoleNotFound() *GetUsersForRoleNotFound

NewGetUsersForRoleNotFound creates a GetUsersForRoleNotFound with default headers values

func (*GetUsersForRoleNotFound) Code

func (o *GetUsersForRoleNotFound) Code() int

Code gets the status code for the get users for role not found response

func (*GetUsersForRoleNotFound) Error

func (o *GetUsersForRoleNotFound) Error() string

func (*GetUsersForRoleNotFound) IsClientError

func (o *GetUsersForRoleNotFound) IsClientError() bool

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

func (*GetUsersForRoleNotFound) IsCode

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

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

func (*GetUsersForRoleNotFound) IsRedirect

func (o *GetUsersForRoleNotFound) IsRedirect() bool

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

func (*GetUsersForRoleNotFound) IsServerError

func (o *GetUsersForRoleNotFound) IsServerError() bool

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

func (*GetUsersForRoleNotFound) IsSuccess

func (o *GetUsersForRoleNotFound) IsSuccess() bool

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

func (*GetUsersForRoleNotFound) String

func (o *GetUsersForRoleNotFound) String() string

type GetUsersForRoleOK

type GetUsersForRoleOK struct {
	Payload []*GetUsersForRoleOKBodyItems0
}

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

Users assigned to this role

func NewGetUsersForRoleOK

func NewGetUsersForRoleOK() *GetUsersForRoleOK

NewGetUsersForRoleOK creates a GetUsersForRoleOK with default headers values

func (*GetUsersForRoleOK) Code

func (o *GetUsersForRoleOK) Code() int

Code gets the status code for the get users for role o k response

func (*GetUsersForRoleOK) Error

func (o *GetUsersForRoleOK) Error() string

func (*GetUsersForRoleOK) GetPayload

func (*GetUsersForRoleOK) IsClientError

func (o *GetUsersForRoleOK) IsClientError() bool

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

func (*GetUsersForRoleOK) IsCode

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

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

func (*GetUsersForRoleOK) IsRedirect

func (o *GetUsersForRoleOK) IsRedirect() bool

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

func (*GetUsersForRoleOK) IsServerError

func (o *GetUsersForRoleOK) IsServerError() bool

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

func (*GetUsersForRoleOK) IsSuccess

func (o *GetUsersForRoleOK) IsSuccess() bool

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

func (*GetUsersForRoleOK) String

func (o *GetUsersForRoleOK) String() string

type GetUsersForRoleOKBodyItems0 added in v1.30.0

type GetUsersForRoleOKBodyItems0 struct {

	// user Id
	UserID string `json:"userId,omitempty"`

	// user type
	// Required: true
	UserType *models.UserTypeOutput `json:"userType"`
}

GetUsersForRoleOKBodyItems0 get users for role o k body items0 swagger:model GetUsersForRoleOKBodyItems0

func (*GetUsersForRoleOKBodyItems0) ContextValidate added in v1.30.0

func (o *GetUsersForRoleOKBodyItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get users for role o k body items0 based on the context it is used

func (*GetUsersForRoleOKBodyItems0) MarshalBinary added in v1.30.0

func (o *GetUsersForRoleOKBodyItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetUsersForRoleOKBodyItems0) UnmarshalBinary added in v1.30.0

func (o *GetUsersForRoleOKBodyItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetUsersForRoleOKBodyItems0) Validate added in v1.30.0

func (o *GetUsersForRoleOKBodyItems0) Validate(formats strfmt.Registry) error

Validate validates this get users for role o k body items0

type GetUsersForRoleParams

type GetUsersForRoleParams struct {

	/* ID.

	   role name
	*/
	ID string

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

GetUsersForRoleParams contains all the parameters to send to the API endpoint

for the get users for role operation.

Typically these are written to a http.Request.

func NewGetUsersForRoleParams

func NewGetUsersForRoleParams() *GetUsersForRoleParams

NewGetUsersForRoleParams creates a new GetUsersForRoleParams 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 NewGetUsersForRoleParamsWithContext

func NewGetUsersForRoleParamsWithContext(ctx context.Context) *GetUsersForRoleParams

NewGetUsersForRoleParamsWithContext creates a new GetUsersForRoleParams object with the ability to set a context for a request.

func NewGetUsersForRoleParamsWithHTTPClient

func NewGetUsersForRoleParamsWithHTTPClient(client *http.Client) *GetUsersForRoleParams

NewGetUsersForRoleParamsWithHTTPClient creates a new GetUsersForRoleParams object with the ability to set a custom HTTPClient for a request.

func NewGetUsersForRoleParamsWithTimeout

func NewGetUsersForRoleParamsWithTimeout(timeout time.Duration) *GetUsersForRoleParams

NewGetUsersForRoleParamsWithTimeout creates a new GetUsersForRoleParams object with the ability to set a timeout on a request.

func (*GetUsersForRoleParams) SetContext

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

SetContext adds the context to the get users for role params

func (*GetUsersForRoleParams) SetDefaults

func (o *GetUsersForRoleParams) SetDefaults()

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

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

func (*GetUsersForRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get users for role params

func (*GetUsersForRoleParams) SetID

func (o *GetUsersForRoleParams) SetID(id string)

SetID adds the id to the get users for role params

func (*GetUsersForRoleParams) SetTimeout

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

SetTimeout adds the timeout to the get users for role params

func (*GetUsersForRoleParams) WithContext

WithContext adds the context to the get users for role params

func (*GetUsersForRoleParams) WithDefaults

func (o *GetUsersForRoleParams) WithDefaults() *GetUsersForRoleParams

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

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

func (*GetUsersForRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get users for role params

func (*GetUsersForRoleParams) WithID

WithID adds the id to the get users for role params

func (*GetUsersForRoleParams) WithTimeout

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

WithTimeout adds the timeout to the get users for role params

func (*GetUsersForRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUsersForRoleReader

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

GetUsersForRoleReader is a Reader for the GetUsersForRole structure.

func (*GetUsersForRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUsersForRoleUnauthorized

type GetUsersForRoleUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewGetUsersForRoleUnauthorized

func NewGetUsersForRoleUnauthorized() *GetUsersForRoleUnauthorized

NewGetUsersForRoleUnauthorized creates a GetUsersForRoleUnauthorized with default headers values

func (*GetUsersForRoleUnauthorized) Code

func (o *GetUsersForRoleUnauthorized) Code() int

Code gets the status code for the get users for role unauthorized response

func (*GetUsersForRoleUnauthorized) Error

func (*GetUsersForRoleUnauthorized) IsClientError

func (o *GetUsersForRoleUnauthorized) IsClientError() bool

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

func (*GetUsersForRoleUnauthorized) IsCode

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

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

func (*GetUsersForRoleUnauthorized) IsRedirect

func (o *GetUsersForRoleUnauthorized) IsRedirect() bool

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

func (*GetUsersForRoleUnauthorized) IsServerError

func (o *GetUsersForRoleUnauthorized) IsServerError() bool

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

func (*GetUsersForRoleUnauthorized) IsSuccess

func (o *GetUsersForRoleUnauthorized) IsSuccess() bool

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

func (*GetUsersForRoleUnauthorized) String

func (o *GetUsersForRoleUnauthorized) String() string

type HasPermissionBadRequest

type HasPermissionBadRequest struct {
	Payload *models.ErrorResponse
}

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

Malformed request.

func NewHasPermissionBadRequest

func NewHasPermissionBadRequest() *HasPermissionBadRequest

NewHasPermissionBadRequest creates a HasPermissionBadRequest with default headers values

func (*HasPermissionBadRequest) Code

func (o *HasPermissionBadRequest) Code() int

Code gets the status code for the has permission bad request response

func (*HasPermissionBadRequest) Error

func (o *HasPermissionBadRequest) Error() string

func (*HasPermissionBadRequest) GetPayload

func (o *HasPermissionBadRequest) GetPayload() *models.ErrorResponse

func (*HasPermissionBadRequest) IsClientError

func (o *HasPermissionBadRequest) IsClientError() bool

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

func (*HasPermissionBadRequest) IsCode

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

IsCode returns true when this has permission bad request response a status code equal to that given

func (*HasPermissionBadRequest) IsRedirect

func (o *HasPermissionBadRequest) IsRedirect() bool

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

func (*HasPermissionBadRequest) IsServerError

func (o *HasPermissionBadRequest) IsServerError() bool

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

func (*HasPermissionBadRequest) IsSuccess

func (o *HasPermissionBadRequest) IsSuccess() bool

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

func (*HasPermissionBadRequest) String

func (o *HasPermissionBadRequest) String() string

type HasPermissionForbidden

type HasPermissionForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewHasPermissionForbidden

func NewHasPermissionForbidden() *HasPermissionForbidden

NewHasPermissionForbidden creates a HasPermissionForbidden with default headers values

func (*HasPermissionForbidden) Code

func (o *HasPermissionForbidden) Code() int

Code gets the status code for the has permission forbidden response

func (*HasPermissionForbidden) Error

func (o *HasPermissionForbidden) Error() string

func (*HasPermissionForbidden) GetPayload

func (o *HasPermissionForbidden) GetPayload() *models.ErrorResponse

func (*HasPermissionForbidden) IsClientError

func (o *HasPermissionForbidden) IsClientError() bool

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

func (*HasPermissionForbidden) IsCode

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

IsCode returns true when this has permission forbidden response a status code equal to that given

func (*HasPermissionForbidden) IsRedirect

func (o *HasPermissionForbidden) IsRedirect() bool

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

func (*HasPermissionForbidden) IsServerError

func (o *HasPermissionForbidden) IsServerError() bool

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

func (*HasPermissionForbidden) IsSuccess

func (o *HasPermissionForbidden) IsSuccess() bool

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

func (*HasPermissionForbidden) String

func (o *HasPermissionForbidden) String() string

type HasPermissionInternalServerError

type HasPermissionInternalServerError struct {
	Payload *models.ErrorResponse
}

HasPermissionInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewHasPermissionInternalServerError

func NewHasPermissionInternalServerError() *HasPermissionInternalServerError

NewHasPermissionInternalServerError creates a HasPermissionInternalServerError with default headers values

func (*HasPermissionInternalServerError) Code

Code gets the status code for the has permission internal server error response

func (*HasPermissionInternalServerError) Error

func (*HasPermissionInternalServerError) GetPayload

func (*HasPermissionInternalServerError) IsClientError

func (o *HasPermissionInternalServerError) IsClientError() bool

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

func (*HasPermissionInternalServerError) IsCode

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

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

func (*HasPermissionInternalServerError) IsRedirect

func (o *HasPermissionInternalServerError) IsRedirect() bool

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

func (*HasPermissionInternalServerError) IsServerError

func (o *HasPermissionInternalServerError) IsServerError() bool

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

func (*HasPermissionInternalServerError) IsSuccess

func (o *HasPermissionInternalServerError) IsSuccess() bool

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

func (*HasPermissionInternalServerError) String

type HasPermissionOK

type HasPermissionOK struct {
	Payload bool
}

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

Permission check was successful

func NewHasPermissionOK

func NewHasPermissionOK() *HasPermissionOK

NewHasPermissionOK creates a HasPermissionOK with default headers values

func (*HasPermissionOK) Code

func (o *HasPermissionOK) Code() int

Code gets the status code for the has permission o k response

func (*HasPermissionOK) Error

func (o *HasPermissionOK) Error() string

func (*HasPermissionOK) GetPayload

func (o *HasPermissionOK) GetPayload() bool

func (*HasPermissionOK) IsClientError

func (o *HasPermissionOK) IsClientError() bool

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

func (*HasPermissionOK) IsCode

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

IsCode returns true when this has permission o k response a status code equal to that given

func (*HasPermissionOK) IsRedirect

func (o *HasPermissionOK) IsRedirect() bool

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

func (*HasPermissionOK) IsServerError

func (o *HasPermissionOK) IsServerError() bool

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

func (*HasPermissionOK) IsSuccess

func (o *HasPermissionOK) IsSuccess() bool

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

func (*HasPermissionOK) String

func (o *HasPermissionOK) String() string

type HasPermissionParams

type HasPermissionParams struct {

	// Body.
	Body *models.Permission

	/* ID.

	   role name
	*/
	ID string

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

HasPermissionParams contains all the parameters to send to the API endpoint

for the has permission operation.

Typically these are written to a http.Request.

func NewHasPermissionParams

func NewHasPermissionParams() *HasPermissionParams

NewHasPermissionParams creates a new HasPermissionParams 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 NewHasPermissionParamsWithContext

func NewHasPermissionParamsWithContext(ctx context.Context) *HasPermissionParams

NewHasPermissionParamsWithContext creates a new HasPermissionParams object with the ability to set a context for a request.

func NewHasPermissionParamsWithHTTPClient

func NewHasPermissionParamsWithHTTPClient(client *http.Client) *HasPermissionParams

NewHasPermissionParamsWithHTTPClient creates a new HasPermissionParams object with the ability to set a custom HTTPClient for a request.

func NewHasPermissionParamsWithTimeout

func NewHasPermissionParamsWithTimeout(timeout time.Duration) *HasPermissionParams

NewHasPermissionParamsWithTimeout creates a new HasPermissionParams object with the ability to set a timeout on a request.

func (*HasPermissionParams) SetBody

func (o *HasPermissionParams) SetBody(body *models.Permission)

SetBody adds the body to the has permission params

func (*HasPermissionParams) SetContext

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

SetContext adds the context to the has permission params

func (*HasPermissionParams) SetDefaults

func (o *HasPermissionParams) SetDefaults()

SetDefaults hydrates default values in the has permission params (not the query body).

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

func (*HasPermissionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the has permission params

func (*HasPermissionParams) SetID

func (o *HasPermissionParams) SetID(id string)

SetID adds the id to the has permission params

func (*HasPermissionParams) SetTimeout

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

SetTimeout adds the timeout to the has permission params

func (*HasPermissionParams) WithBody

WithBody adds the body to the has permission params

func (*HasPermissionParams) WithContext

WithContext adds the context to the has permission params

func (*HasPermissionParams) WithDefaults

func (o *HasPermissionParams) WithDefaults() *HasPermissionParams

WithDefaults hydrates default values in the has permission params (not the query body).

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

func (*HasPermissionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the has permission params

func (*HasPermissionParams) WithID

WithID adds the id to the has permission params

func (*HasPermissionParams) WithTimeout

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

WithTimeout adds the timeout to the has permission params

func (*HasPermissionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type HasPermissionReader

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

HasPermissionReader is a Reader for the HasPermission structure.

func (*HasPermissionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type HasPermissionUnauthorized

type HasPermissionUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewHasPermissionUnauthorized

func NewHasPermissionUnauthorized() *HasPermissionUnauthorized

NewHasPermissionUnauthorized creates a HasPermissionUnauthorized with default headers values

func (*HasPermissionUnauthorized) Code

func (o *HasPermissionUnauthorized) Code() int

Code gets the status code for the has permission unauthorized response

func (*HasPermissionUnauthorized) Error

func (o *HasPermissionUnauthorized) Error() string

func (*HasPermissionUnauthorized) IsClientError

func (o *HasPermissionUnauthorized) IsClientError() bool

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

func (*HasPermissionUnauthorized) IsCode

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

IsCode returns true when this has permission unauthorized response a status code equal to that given

func (*HasPermissionUnauthorized) IsRedirect

func (o *HasPermissionUnauthorized) IsRedirect() bool

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

func (*HasPermissionUnauthorized) IsServerError

func (o *HasPermissionUnauthorized) IsServerError() bool

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

func (*HasPermissionUnauthorized) IsSuccess

func (o *HasPermissionUnauthorized) IsSuccess() bool

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

func (*HasPermissionUnauthorized) String

func (o *HasPermissionUnauthorized) String() string

type HasPermissionUnprocessableEntity

type HasPermissionUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

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

Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?

func NewHasPermissionUnprocessableEntity

func NewHasPermissionUnprocessableEntity() *HasPermissionUnprocessableEntity

NewHasPermissionUnprocessableEntity creates a HasPermissionUnprocessableEntity with default headers values

func (*HasPermissionUnprocessableEntity) Code

Code gets the status code for the has permission unprocessable entity response

func (*HasPermissionUnprocessableEntity) Error

func (*HasPermissionUnprocessableEntity) GetPayload

func (*HasPermissionUnprocessableEntity) IsClientError

func (o *HasPermissionUnprocessableEntity) IsClientError() bool

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

func (*HasPermissionUnprocessableEntity) IsCode

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

IsCode returns true when this has permission unprocessable entity response a status code equal to that given

func (*HasPermissionUnprocessableEntity) IsRedirect

func (o *HasPermissionUnprocessableEntity) IsRedirect() bool

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

func (*HasPermissionUnprocessableEntity) IsServerError

func (o *HasPermissionUnprocessableEntity) IsServerError() bool

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

func (*HasPermissionUnprocessableEntity) IsSuccess

func (o *HasPermissionUnprocessableEntity) IsSuccess() bool

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

func (*HasPermissionUnprocessableEntity) String

type RemovePermissionsBadRequest

type RemovePermissionsBadRequest struct {
	Payload *models.ErrorResponse
}

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

Malformed request.

func NewRemovePermissionsBadRequest

func NewRemovePermissionsBadRequest() *RemovePermissionsBadRequest

NewRemovePermissionsBadRequest creates a RemovePermissionsBadRequest with default headers values

func (*RemovePermissionsBadRequest) Code

func (o *RemovePermissionsBadRequest) Code() int

Code gets the status code for the remove permissions bad request response

func (*RemovePermissionsBadRequest) Error

func (*RemovePermissionsBadRequest) GetPayload

func (*RemovePermissionsBadRequest) IsClientError

func (o *RemovePermissionsBadRequest) IsClientError() bool

IsClientError returns true when this remove permissions bad request response has a 4xx status code

func (*RemovePermissionsBadRequest) IsCode

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

IsCode returns true when this remove permissions bad request response a status code equal to that given

func (*RemovePermissionsBadRequest) IsRedirect

func (o *RemovePermissionsBadRequest) IsRedirect() bool

IsRedirect returns true when this remove permissions bad request response has a 3xx status code

func (*RemovePermissionsBadRequest) IsServerError

func (o *RemovePermissionsBadRequest) IsServerError() bool

IsServerError returns true when this remove permissions bad request response has a 5xx status code

func (*RemovePermissionsBadRequest) IsSuccess

func (o *RemovePermissionsBadRequest) IsSuccess() bool

IsSuccess returns true when this remove permissions bad request response has a 2xx status code

func (*RemovePermissionsBadRequest) String

func (o *RemovePermissionsBadRequest) String() string

type RemovePermissionsBody

type RemovePermissionsBody struct {

	// permissions to remove from the role
	// Required: true
	Permissions []*models.Permission `json:"permissions"`
}

RemovePermissionsBody remove permissions body swagger:model RemovePermissionsBody

func (*RemovePermissionsBody) ContextValidate

func (o *RemovePermissionsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this remove permissions body based on the context it is used

func (*RemovePermissionsBody) MarshalBinary

func (o *RemovePermissionsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RemovePermissionsBody) UnmarshalBinary

func (o *RemovePermissionsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RemovePermissionsBody) Validate

func (o *RemovePermissionsBody) Validate(formats strfmt.Registry) error

Validate validates this remove permissions body

type RemovePermissionsForbidden

type RemovePermissionsForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewRemovePermissionsForbidden

func NewRemovePermissionsForbidden() *RemovePermissionsForbidden

NewRemovePermissionsForbidden creates a RemovePermissionsForbidden with default headers values

func (*RemovePermissionsForbidden) Code

func (o *RemovePermissionsForbidden) Code() int

Code gets the status code for the remove permissions forbidden response

func (*RemovePermissionsForbidden) Error

func (*RemovePermissionsForbidden) GetPayload

func (*RemovePermissionsForbidden) IsClientError

func (o *RemovePermissionsForbidden) IsClientError() bool

IsClientError returns true when this remove permissions forbidden response has a 4xx status code

func (*RemovePermissionsForbidden) IsCode

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

IsCode returns true when this remove permissions forbidden response a status code equal to that given

func (*RemovePermissionsForbidden) IsRedirect

func (o *RemovePermissionsForbidden) IsRedirect() bool

IsRedirect returns true when this remove permissions forbidden response has a 3xx status code

func (*RemovePermissionsForbidden) IsServerError

func (o *RemovePermissionsForbidden) IsServerError() bool

IsServerError returns true when this remove permissions forbidden response has a 5xx status code

func (*RemovePermissionsForbidden) IsSuccess

func (o *RemovePermissionsForbidden) IsSuccess() bool

IsSuccess returns true when this remove permissions forbidden response has a 2xx status code

func (*RemovePermissionsForbidden) String

func (o *RemovePermissionsForbidden) String() string

type RemovePermissionsInternalServerError

type RemovePermissionsInternalServerError struct {
	Payload *models.ErrorResponse
}

RemovePermissionsInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewRemovePermissionsInternalServerError

func NewRemovePermissionsInternalServerError() *RemovePermissionsInternalServerError

NewRemovePermissionsInternalServerError creates a RemovePermissionsInternalServerError with default headers values

func (*RemovePermissionsInternalServerError) Code

Code gets the status code for the remove permissions internal server error response

func (*RemovePermissionsInternalServerError) Error

func (*RemovePermissionsInternalServerError) GetPayload

func (*RemovePermissionsInternalServerError) IsClientError

func (o *RemovePermissionsInternalServerError) IsClientError() bool

IsClientError returns true when this remove permissions internal server error response has a 4xx status code

func (*RemovePermissionsInternalServerError) IsCode

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

func (*RemovePermissionsInternalServerError) IsRedirect

IsRedirect returns true when this remove permissions internal server error response has a 3xx status code

func (*RemovePermissionsInternalServerError) IsServerError

func (o *RemovePermissionsInternalServerError) IsServerError() bool

IsServerError returns true when this remove permissions internal server error response has a 5xx status code

func (*RemovePermissionsInternalServerError) IsSuccess

IsSuccess returns true when this remove permissions internal server error response has a 2xx status code

func (*RemovePermissionsInternalServerError) String

type RemovePermissionsNotFound

type RemovePermissionsNotFound struct {
}

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

no role found

func NewRemovePermissionsNotFound

func NewRemovePermissionsNotFound() *RemovePermissionsNotFound

NewRemovePermissionsNotFound creates a RemovePermissionsNotFound with default headers values

func (*RemovePermissionsNotFound) Code

func (o *RemovePermissionsNotFound) Code() int

Code gets the status code for the remove permissions not found response

func (*RemovePermissionsNotFound) Error

func (o *RemovePermissionsNotFound) Error() string

func (*RemovePermissionsNotFound) IsClientError

func (o *RemovePermissionsNotFound) IsClientError() bool

IsClientError returns true when this remove permissions not found response has a 4xx status code

func (*RemovePermissionsNotFound) IsCode

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

IsCode returns true when this remove permissions not found response a status code equal to that given

func (*RemovePermissionsNotFound) IsRedirect

func (o *RemovePermissionsNotFound) IsRedirect() bool

IsRedirect returns true when this remove permissions not found response has a 3xx status code

func (*RemovePermissionsNotFound) IsServerError

func (o *RemovePermissionsNotFound) IsServerError() bool

IsServerError returns true when this remove permissions not found response has a 5xx status code

func (*RemovePermissionsNotFound) IsSuccess

func (o *RemovePermissionsNotFound) IsSuccess() bool

IsSuccess returns true when this remove permissions not found response has a 2xx status code

func (*RemovePermissionsNotFound) String

func (o *RemovePermissionsNotFound) String() string

type RemovePermissionsOK

type RemovePermissionsOK struct {
}

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

Permissions removed successfully

func NewRemovePermissionsOK

func NewRemovePermissionsOK() *RemovePermissionsOK

NewRemovePermissionsOK creates a RemovePermissionsOK with default headers values

func (*RemovePermissionsOK) Code

func (o *RemovePermissionsOK) Code() int

Code gets the status code for the remove permissions o k response

func (*RemovePermissionsOK) Error

func (o *RemovePermissionsOK) Error() string

func (*RemovePermissionsOK) IsClientError

func (o *RemovePermissionsOK) IsClientError() bool

IsClientError returns true when this remove permissions o k response has a 4xx status code

func (*RemovePermissionsOK) IsCode

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

IsCode returns true when this remove permissions o k response a status code equal to that given

func (*RemovePermissionsOK) IsRedirect

func (o *RemovePermissionsOK) IsRedirect() bool

IsRedirect returns true when this remove permissions o k response has a 3xx status code

func (*RemovePermissionsOK) IsServerError

func (o *RemovePermissionsOK) IsServerError() bool

IsServerError returns true when this remove permissions o k response has a 5xx status code

func (*RemovePermissionsOK) IsSuccess

func (o *RemovePermissionsOK) IsSuccess() bool

IsSuccess returns true when this remove permissions o k response has a 2xx status code

func (*RemovePermissionsOK) String

func (o *RemovePermissionsOK) String() string

type RemovePermissionsParams

type RemovePermissionsParams struct {

	// Body.
	Body RemovePermissionsBody

	/* ID.

	   role name
	*/
	ID string

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

RemovePermissionsParams contains all the parameters to send to the API endpoint

for the remove permissions operation.

Typically these are written to a http.Request.

func NewRemovePermissionsParams

func NewRemovePermissionsParams() *RemovePermissionsParams

NewRemovePermissionsParams creates a new RemovePermissionsParams 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 NewRemovePermissionsParamsWithContext

func NewRemovePermissionsParamsWithContext(ctx context.Context) *RemovePermissionsParams

NewRemovePermissionsParamsWithContext creates a new RemovePermissionsParams object with the ability to set a context for a request.

func NewRemovePermissionsParamsWithHTTPClient

func NewRemovePermissionsParamsWithHTTPClient(client *http.Client) *RemovePermissionsParams

NewRemovePermissionsParamsWithHTTPClient creates a new RemovePermissionsParams object with the ability to set a custom HTTPClient for a request.

func NewRemovePermissionsParamsWithTimeout

func NewRemovePermissionsParamsWithTimeout(timeout time.Duration) *RemovePermissionsParams

NewRemovePermissionsParamsWithTimeout creates a new RemovePermissionsParams object with the ability to set a timeout on a request.

func (*RemovePermissionsParams) SetBody

SetBody adds the body to the remove permissions params

func (*RemovePermissionsParams) SetContext

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

SetContext adds the context to the remove permissions params

func (*RemovePermissionsParams) SetDefaults

func (o *RemovePermissionsParams) SetDefaults()

SetDefaults hydrates default values in the remove permissions params (not the query body).

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

func (*RemovePermissionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the remove permissions params

func (*RemovePermissionsParams) SetID

func (o *RemovePermissionsParams) SetID(id string)

SetID adds the id to the remove permissions params

func (*RemovePermissionsParams) SetTimeout

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

SetTimeout adds the timeout to the remove permissions params

func (*RemovePermissionsParams) WithBody

WithBody adds the body to the remove permissions params

func (*RemovePermissionsParams) WithContext

WithContext adds the context to the remove permissions params

func (*RemovePermissionsParams) WithDefaults

WithDefaults hydrates default values in the remove permissions params (not the query body).

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

func (*RemovePermissionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the remove permissions params

func (*RemovePermissionsParams) WithID

WithID adds the id to the remove permissions params

func (*RemovePermissionsParams) WithTimeout

WithTimeout adds the timeout to the remove permissions params

func (*RemovePermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RemovePermissionsReader

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

RemovePermissionsReader is a Reader for the RemovePermissions structure.

func (*RemovePermissionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RemovePermissionsUnauthorized

type RemovePermissionsUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewRemovePermissionsUnauthorized

func NewRemovePermissionsUnauthorized() *RemovePermissionsUnauthorized

NewRemovePermissionsUnauthorized creates a RemovePermissionsUnauthorized with default headers values

func (*RemovePermissionsUnauthorized) Code

Code gets the status code for the remove permissions unauthorized response

func (*RemovePermissionsUnauthorized) Error

func (*RemovePermissionsUnauthorized) IsClientError

func (o *RemovePermissionsUnauthorized) IsClientError() bool

IsClientError returns true when this remove permissions unauthorized response has a 4xx status code

func (*RemovePermissionsUnauthorized) IsCode

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

IsCode returns true when this remove permissions unauthorized response a status code equal to that given

func (*RemovePermissionsUnauthorized) IsRedirect

func (o *RemovePermissionsUnauthorized) IsRedirect() bool

IsRedirect returns true when this remove permissions unauthorized response has a 3xx status code

func (*RemovePermissionsUnauthorized) IsServerError

func (o *RemovePermissionsUnauthorized) IsServerError() bool

IsServerError returns true when this remove permissions unauthorized response has a 5xx status code

func (*RemovePermissionsUnauthorized) IsSuccess

func (o *RemovePermissionsUnauthorized) IsSuccess() bool

IsSuccess returns true when this remove permissions unauthorized response has a 2xx status code

func (*RemovePermissionsUnauthorized) String

type RemovePermissionsUnprocessableEntity

type RemovePermissionsUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

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

Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?

func NewRemovePermissionsUnprocessableEntity

func NewRemovePermissionsUnprocessableEntity() *RemovePermissionsUnprocessableEntity

NewRemovePermissionsUnprocessableEntity creates a RemovePermissionsUnprocessableEntity with default headers values

func (*RemovePermissionsUnprocessableEntity) Code

Code gets the status code for the remove permissions unprocessable entity response

func (*RemovePermissionsUnprocessableEntity) Error

func (*RemovePermissionsUnprocessableEntity) GetPayload

func (*RemovePermissionsUnprocessableEntity) IsClientError

func (o *RemovePermissionsUnprocessableEntity) IsClientError() bool

IsClientError returns true when this remove permissions unprocessable entity response has a 4xx status code

func (*RemovePermissionsUnprocessableEntity) IsCode

IsCode returns true when this remove permissions unprocessable entity response a status code equal to that given

func (*RemovePermissionsUnprocessableEntity) IsRedirect

IsRedirect returns true when this remove permissions unprocessable entity response has a 3xx status code

func (*RemovePermissionsUnprocessableEntity) IsServerError

func (o *RemovePermissionsUnprocessableEntity) IsServerError() bool

IsServerError returns true when this remove permissions unprocessable entity response has a 5xx status code

func (*RemovePermissionsUnprocessableEntity) IsSuccess

IsSuccess returns true when this remove permissions unprocessable entity response has a 2xx status code

func (*RemovePermissionsUnprocessableEntity) String

type RevokeRoleFromGroupBadRequest added in v1.28.5

type RevokeRoleFromGroupBadRequest struct {
	Payload *models.ErrorResponse
}

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

Bad request

func NewRevokeRoleFromGroupBadRequest added in v1.28.5

func NewRevokeRoleFromGroupBadRequest() *RevokeRoleFromGroupBadRequest

NewRevokeRoleFromGroupBadRequest creates a RevokeRoleFromGroupBadRequest with default headers values

func (*RevokeRoleFromGroupBadRequest) Code added in v1.28.5

Code gets the status code for the revoke role from group bad request response

func (*RevokeRoleFromGroupBadRequest) Error added in v1.28.5

func (*RevokeRoleFromGroupBadRequest) GetPayload added in v1.28.5

func (*RevokeRoleFromGroupBadRequest) IsClientError added in v1.28.5

func (o *RevokeRoleFromGroupBadRequest) IsClientError() bool

IsClientError returns true when this revoke role from group bad request response has a 4xx status code

func (*RevokeRoleFromGroupBadRequest) IsCode added in v1.28.5

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

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

func (*RevokeRoleFromGroupBadRequest) IsRedirect added in v1.28.5

func (o *RevokeRoleFromGroupBadRequest) IsRedirect() bool

IsRedirect returns true when this revoke role from group bad request response has a 3xx status code

func (*RevokeRoleFromGroupBadRequest) IsServerError added in v1.28.5

func (o *RevokeRoleFromGroupBadRequest) IsServerError() bool

IsServerError returns true when this revoke role from group bad request response has a 5xx status code

func (*RevokeRoleFromGroupBadRequest) IsSuccess added in v1.28.5

func (o *RevokeRoleFromGroupBadRequest) IsSuccess() bool

IsSuccess returns true when this revoke role from group bad request response has a 2xx status code

func (*RevokeRoleFromGroupBadRequest) String added in v1.28.5

type RevokeRoleFromGroupBody added in v1.28.5

type RevokeRoleFromGroupBody struct {

	// the roles that revoked from group
	Roles []string `json:"roles"`
}

RevokeRoleFromGroupBody revoke role from group body swagger:model RevokeRoleFromGroupBody

func (*RevokeRoleFromGroupBody) ContextValidate added in v1.28.5

func (o *RevokeRoleFromGroupBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this revoke role from group body based on context it is used

func (*RevokeRoleFromGroupBody) MarshalBinary added in v1.28.5

func (o *RevokeRoleFromGroupBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RevokeRoleFromGroupBody) UnmarshalBinary added in v1.28.5

func (o *RevokeRoleFromGroupBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RevokeRoleFromGroupBody) Validate added in v1.28.5

func (o *RevokeRoleFromGroupBody) Validate(formats strfmt.Registry) error

Validate validates this revoke role from group body

type RevokeRoleFromGroupForbidden added in v1.28.5

type RevokeRoleFromGroupForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewRevokeRoleFromGroupForbidden added in v1.28.5

func NewRevokeRoleFromGroupForbidden() *RevokeRoleFromGroupForbidden

NewRevokeRoleFromGroupForbidden creates a RevokeRoleFromGroupForbidden with default headers values

func (*RevokeRoleFromGroupForbidden) Code added in v1.28.5

Code gets the status code for the revoke role from group forbidden response

func (*RevokeRoleFromGroupForbidden) Error added in v1.28.5

func (*RevokeRoleFromGroupForbidden) GetPayload added in v1.28.5

func (*RevokeRoleFromGroupForbidden) IsClientError added in v1.28.5

func (o *RevokeRoleFromGroupForbidden) IsClientError() bool

IsClientError returns true when this revoke role from group forbidden response has a 4xx status code

func (*RevokeRoleFromGroupForbidden) IsCode added in v1.28.5

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

IsCode returns true when this revoke role from group forbidden response a status code equal to that given

func (*RevokeRoleFromGroupForbidden) IsRedirect added in v1.28.5

func (o *RevokeRoleFromGroupForbidden) IsRedirect() bool

IsRedirect returns true when this revoke role from group forbidden response has a 3xx status code

func (*RevokeRoleFromGroupForbidden) IsServerError added in v1.28.5

func (o *RevokeRoleFromGroupForbidden) IsServerError() bool

IsServerError returns true when this revoke role from group forbidden response has a 5xx status code

func (*RevokeRoleFromGroupForbidden) IsSuccess added in v1.28.5

func (o *RevokeRoleFromGroupForbidden) IsSuccess() bool

IsSuccess returns true when this revoke role from group forbidden response has a 2xx status code

func (*RevokeRoleFromGroupForbidden) String added in v1.28.5

type RevokeRoleFromGroupInternalServerError added in v1.28.5

type RevokeRoleFromGroupInternalServerError struct {
	Payload *models.ErrorResponse
}

RevokeRoleFromGroupInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewRevokeRoleFromGroupInternalServerError added in v1.28.5

func NewRevokeRoleFromGroupInternalServerError() *RevokeRoleFromGroupInternalServerError

NewRevokeRoleFromGroupInternalServerError creates a RevokeRoleFromGroupInternalServerError with default headers values

func (*RevokeRoleFromGroupInternalServerError) Code added in v1.28.5

Code gets the status code for the revoke role from group internal server error response

func (*RevokeRoleFromGroupInternalServerError) Error added in v1.28.5

func (*RevokeRoleFromGroupInternalServerError) GetPayload added in v1.28.5

func (*RevokeRoleFromGroupInternalServerError) IsClientError added in v1.28.5

func (o *RevokeRoleFromGroupInternalServerError) IsClientError() bool

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

func (*RevokeRoleFromGroupInternalServerError) IsCode added in v1.28.5

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

func (*RevokeRoleFromGroupInternalServerError) IsRedirect added in v1.28.5

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

func (*RevokeRoleFromGroupInternalServerError) IsServerError added in v1.28.5

func (o *RevokeRoleFromGroupInternalServerError) IsServerError() bool

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

func (*RevokeRoleFromGroupInternalServerError) IsSuccess added in v1.28.5

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

func (*RevokeRoleFromGroupInternalServerError) String added in v1.28.5

type RevokeRoleFromGroupNotFound added in v1.28.5

type RevokeRoleFromGroupNotFound struct {
}

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

role or group is not found.

func NewRevokeRoleFromGroupNotFound added in v1.28.5

func NewRevokeRoleFromGroupNotFound() *RevokeRoleFromGroupNotFound

NewRevokeRoleFromGroupNotFound creates a RevokeRoleFromGroupNotFound with default headers values

func (*RevokeRoleFromGroupNotFound) Code added in v1.28.5

func (o *RevokeRoleFromGroupNotFound) Code() int

Code gets the status code for the revoke role from group not found response

func (*RevokeRoleFromGroupNotFound) Error added in v1.28.5

func (*RevokeRoleFromGroupNotFound) IsClientError added in v1.28.5

func (o *RevokeRoleFromGroupNotFound) IsClientError() bool

IsClientError returns true when this revoke role from group not found response has a 4xx status code

func (*RevokeRoleFromGroupNotFound) IsCode added in v1.28.5

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

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

func (*RevokeRoleFromGroupNotFound) IsRedirect added in v1.28.5

func (o *RevokeRoleFromGroupNotFound) IsRedirect() bool

IsRedirect returns true when this revoke role from group not found response has a 3xx status code

func (*RevokeRoleFromGroupNotFound) IsServerError added in v1.28.5

func (o *RevokeRoleFromGroupNotFound) IsServerError() bool

IsServerError returns true when this revoke role from group not found response has a 5xx status code

func (*RevokeRoleFromGroupNotFound) IsSuccess added in v1.28.5

func (o *RevokeRoleFromGroupNotFound) IsSuccess() bool

IsSuccess returns true when this revoke role from group not found response has a 2xx status code

func (*RevokeRoleFromGroupNotFound) String added in v1.28.5

func (o *RevokeRoleFromGroupNotFound) String() string

type RevokeRoleFromGroupOK added in v1.28.5

type RevokeRoleFromGroupOK struct {
}

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

Role revoked successfully

func NewRevokeRoleFromGroupOK added in v1.28.5

func NewRevokeRoleFromGroupOK() *RevokeRoleFromGroupOK

NewRevokeRoleFromGroupOK creates a RevokeRoleFromGroupOK with default headers values

func (*RevokeRoleFromGroupOK) Code added in v1.28.5

func (o *RevokeRoleFromGroupOK) Code() int

Code gets the status code for the revoke role from group o k response

func (*RevokeRoleFromGroupOK) Error added in v1.28.5

func (o *RevokeRoleFromGroupOK) Error() string

func (*RevokeRoleFromGroupOK) IsClientError added in v1.28.5

func (o *RevokeRoleFromGroupOK) IsClientError() bool

IsClientError returns true when this revoke role from group o k response has a 4xx status code

func (*RevokeRoleFromGroupOK) IsCode added in v1.28.5

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

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

func (*RevokeRoleFromGroupOK) IsRedirect added in v1.28.5

func (o *RevokeRoleFromGroupOK) IsRedirect() bool

IsRedirect returns true when this revoke role from group o k response has a 3xx status code

func (*RevokeRoleFromGroupOK) IsServerError added in v1.28.5

func (o *RevokeRoleFromGroupOK) IsServerError() bool

IsServerError returns true when this revoke role from group o k response has a 5xx status code

func (*RevokeRoleFromGroupOK) IsSuccess added in v1.28.5

func (o *RevokeRoleFromGroupOK) IsSuccess() bool

IsSuccess returns true when this revoke role from group o k response has a 2xx status code

func (*RevokeRoleFromGroupOK) String added in v1.28.5

func (o *RevokeRoleFromGroupOK) String() string

type RevokeRoleFromGroupParams added in v1.28.5

type RevokeRoleFromGroupParams struct {

	// Body.
	Body RevokeRoleFromGroupBody

	/* ID.

	   group name
	*/
	ID string

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

RevokeRoleFromGroupParams contains all the parameters to send to the API endpoint

for the revoke role from group operation.

Typically these are written to a http.Request.

func NewRevokeRoleFromGroupParams added in v1.28.5

func NewRevokeRoleFromGroupParams() *RevokeRoleFromGroupParams

NewRevokeRoleFromGroupParams creates a new RevokeRoleFromGroupParams 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 NewRevokeRoleFromGroupParamsWithContext added in v1.28.5

func NewRevokeRoleFromGroupParamsWithContext(ctx context.Context) *RevokeRoleFromGroupParams

NewRevokeRoleFromGroupParamsWithContext creates a new RevokeRoleFromGroupParams object with the ability to set a context for a request.

func NewRevokeRoleFromGroupParamsWithHTTPClient added in v1.28.5

func NewRevokeRoleFromGroupParamsWithHTTPClient(client *http.Client) *RevokeRoleFromGroupParams

NewRevokeRoleFromGroupParamsWithHTTPClient creates a new RevokeRoleFromGroupParams object with the ability to set a custom HTTPClient for a request.

func NewRevokeRoleFromGroupParamsWithTimeout added in v1.28.5

func NewRevokeRoleFromGroupParamsWithTimeout(timeout time.Duration) *RevokeRoleFromGroupParams

NewRevokeRoleFromGroupParamsWithTimeout creates a new RevokeRoleFromGroupParams object with the ability to set a timeout on a request.

func (*RevokeRoleFromGroupParams) SetBody added in v1.28.5

SetBody adds the body to the revoke role from group params

func (*RevokeRoleFromGroupParams) SetContext added in v1.28.5

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

SetContext adds the context to the revoke role from group params

func (*RevokeRoleFromGroupParams) SetDefaults added in v1.28.5

func (o *RevokeRoleFromGroupParams) SetDefaults()

SetDefaults hydrates default values in the revoke role from group params (not the query body).

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

func (*RevokeRoleFromGroupParams) SetHTTPClient added in v1.28.5

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

SetHTTPClient adds the HTTPClient to the revoke role from group params

func (*RevokeRoleFromGroupParams) SetID added in v1.28.5

func (o *RevokeRoleFromGroupParams) SetID(id string)

SetID adds the id to the revoke role from group params

func (*RevokeRoleFromGroupParams) SetTimeout added in v1.28.5

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

SetTimeout adds the timeout to the revoke role from group params

func (*RevokeRoleFromGroupParams) WithBody added in v1.28.5

WithBody adds the body to the revoke role from group params

func (*RevokeRoleFromGroupParams) WithContext added in v1.28.5

WithContext adds the context to the revoke role from group params

func (*RevokeRoleFromGroupParams) WithDefaults added in v1.28.5

WithDefaults hydrates default values in the revoke role from group params (not the query body).

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

func (*RevokeRoleFromGroupParams) WithHTTPClient added in v1.28.5

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

WithHTTPClient adds the HTTPClient to the revoke role from group params

func (*RevokeRoleFromGroupParams) WithID added in v1.28.5

WithID adds the id to the revoke role from group params

func (*RevokeRoleFromGroupParams) WithTimeout added in v1.28.5

WithTimeout adds the timeout to the revoke role from group params

func (*RevokeRoleFromGroupParams) WriteToRequest added in v1.28.5

WriteToRequest writes these params to a swagger request

type RevokeRoleFromGroupReader added in v1.28.5

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

RevokeRoleFromGroupReader is a Reader for the RevokeRoleFromGroup structure.

func (*RevokeRoleFromGroupReader) ReadResponse added in v1.28.5

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

ReadResponse reads a server response into the received o.

type RevokeRoleFromGroupUnauthorized added in v1.28.5

type RevokeRoleFromGroupUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewRevokeRoleFromGroupUnauthorized added in v1.28.5

func NewRevokeRoleFromGroupUnauthorized() *RevokeRoleFromGroupUnauthorized

NewRevokeRoleFromGroupUnauthorized creates a RevokeRoleFromGroupUnauthorized with default headers values

func (*RevokeRoleFromGroupUnauthorized) Code added in v1.28.5

Code gets the status code for the revoke role from group unauthorized response

func (*RevokeRoleFromGroupUnauthorized) Error added in v1.28.5

func (*RevokeRoleFromGroupUnauthorized) IsClientError added in v1.28.5

func (o *RevokeRoleFromGroupUnauthorized) IsClientError() bool

IsClientError returns true when this revoke role from group unauthorized response has a 4xx status code

func (*RevokeRoleFromGroupUnauthorized) IsCode added in v1.28.5

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

IsCode returns true when this revoke role from group unauthorized response a status code equal to that given

func (*RevokeRoleFromGroupUnauthorized) IsRedirect added in v1.28.5

func (o *RevokeRoleFromGroupUnauthorized) IsRedirect() bool

IsRedirect returns true when this revoke role from group unauthorized response has a 3xx status code

func (*RevokeRoleFromGroupUnauthorized) IsServerError added in v1.28.5

func (o *RevokeRoleFromGroupUnauthorized) IsServerError() bool

IsServerError returns true when this revoke role from group unauthorized response has a 5xx status code

func (*RevokeRoleFromGroupUnauthorized) IsSuccess added in v1.28.5

func (o *RevokeRoleFromGroupUnauthorized) IsSuccess() bool

IsSuccess returns true when this revoke role from group unauthorized response has a 2xx status code

func (*RevokeRoleFromGroupUnauthorized) String added in v1.28.5

type RevokeRoleFromUserBadRequest added in v1.28.5

type RevokeRoleFromUserBadRequest struct {
	Payload *models.ErrorResponse
}

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

Bad request

func NewRevokeRoleFromUserBadRequest added in v1.28.5

func NewRevokeRoleFromUserBadRequest() *RevokeRoleFromUserBadRequest

NewRevokeRoleFromUserBadRequest creates a RevokeRoleFromUserBadRequest with default headers values

func (*RevokeRoleFromUserBadRequest) Code added in v1.28.5

Code gets the status code for the revoke role from user bad request response

func (*RevokeRoleFromUserBadRequest) Error added in v1.28.5

func (*RevokeRoleFromUserBadRequest) GetPayload added in v1.28.5

func (*RevokeRoleFromUserBadRequest) IsClientError added in v1.28.5

func (o *RevokeRoleFromUserBadRequest) IsClientError() bool

IsClientError returns true when this revoke role from user bad request response has a 4xx status code

func (*RevokeRoleFromUserBadRequest) IsCode added in v1.28.5

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

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

func (*RevokeRoleFromUserBadRequest) IsRedirect added in v1.28.5

func (o *RevokeRoleFromUserBadRequest) IsRedirect() bool

IsRedirect returns true when this revoke role from user bad request response has a 3xx status code

func (*RevokeRoleFromUserBadRequest) IsServerError added in v1.28.5

func (o *RevokeRoleFromUserBadRequest) IsServerError() bool

IsServerError returns true when this revoke role from user bad request response has a 5xx status code

func (*RevokeRoleFromUserBadRequest) IsSuccess added in v1.28.5

func (o *RevokeRoleFromUserBadRequest) IsSuccess() bool

IsSuccess returns true when this revoke role from user bad request response has a 2xx status code

func (*RevokeRoleFromUserBadRequest) String added in v1.28.5

type RevokeRoleFromUserBody added in v1.28.5

type RevokeRoleFromUserBody struct {

	// the roles that revoked from the key or user
	Roles []string `json:"roles"`

	// user type
	UserType models.UserTypeInput `json:"userType,omitempty"`
}

RevokeRoleFromUserBody revoke role from user body swagger:model RevokeRoleFromUserBody

func (*RevokeRoleFromUserBody) ContextValidate added in v1.28.5

func (o *RevokeRoleFromUserBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this revoke role from user body based on the context it is used

func (*RevokeRoleFromUserBody) MarshalBinary added in v1.28.5

func (o *RevokeRoleFromUserBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RevokeRoleFromUserBody) UnmarshalBinary added in v1.28.5

func (o *RevokeRoleFromUserBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RevokeRoleFromUserBody) Validate added in v1.28.5

func (o *RevokeRoleFromUserBody) Validate(formats strfmt.Registry) error

Validate validates this revoke role from user body

type RevokeRoleFromUserForbidden added in v1.28.5

type RevokeRoleFromUserForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewRevokeRoleFromUserForbidden added in v1.28.5

func NewRevokeRoleFromUserForbidden() *RevokeRoleFromUserForbidden

NewRevokeRoleFromUserForbidden creates a RevokeRoleFromUserForbidden with default headers values

func (*RevokeRoleFromUserForbidden) Code added in v1.28.5

func (o *RevokeRoleFromUserForbidden) Code() int

Code gets the status code for the revoke role from user forbidden response

func (*RevokeRoleFromUserForbidden) Error added in v1.28.5

func (*RevokeRoleFromUserForbidden) GetPayload added in v1.28.5

func (*RevokeRoleFromUserForbidden) IsClientError added in v1.28.5

func (o *RevokeRoleFromUserForbidden) IsClientError() bool

IsClientError returns true when this revoke role from user forbidden response has a 4xx status code

func (*RevokeRoleFromUserForbidden) IsCode added in v1.28.5

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

IsCode returns true when this revoke role from user forbidden response a status code equal to that given

func (*RevokeRoleFromUserForbidden) IsRedirect added in v1.28.5

func (o *RevokeRoleFromUserForbidden) IsRedirect() bool

IsRedirect returns true when this revoke role from user forbidden response has a 3xx status code

func (*RevokeRoleFromUserForbidden) IsServerError added in v1.28.5

func (o *RevokeRoleFromUserForbidden) IsServerError() bool

IsServerError returns true when this revoke role from user forbidden response has a 5xx status code

func (*RevokeRoleFromUserForbidden) IsSuccess added in v1.28.5

func (o *RevokeRoleFromUserForbidden) IsSuccess() bool

IsSuccess returns true when this revoke role from user forbidden response has a 2xx status code

func (*RevokeRoleFromUserForbidden) String added in v1.28.5

func (o *RevokeRoleFromUserForbidden) String() string

type RevokeRoleFromUserInternalServerError added in v1.28.5

type RevokeRoleFromUserInternalServerError struct {
	Payload *models.ErrorResponse
}

RevokeRoleFromUserInternalServerError describes a response with status code 500, with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewRevokeRoleFromUserInternalServerError added in v1.28.5

func NewRevokeRoleFromUserInternalServerError() *RevokeRoleFromUserInternalServerError

NewRevokeRoleFromUserInternalServerError creates a RevokeRoleFromUserInternalServerError with default headers values

func (*RevokeRoleFromUserInternalServerError) Code added in v1.28.5

Code gets the status code for the revoke role from user internal server error response

func (*RevokeRoleFromUserInternalServerError) Error added in v1.28.5

func (*RevokeRoleFromUserInternalServerError) GetPayload added in v1.28.5

func (*RevokeRoleFromUserInternalServerError) IsClientError added in v1.28.5

func (o *RevokeRoleFromUserInternalServerError) IsClientError() bool

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

func (*RevokeRoleFromUserInternalServerError) IsCode added in v1.28.5

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

func (*RevokeRoleFromUserInternalServerError) IsRedirect added in v1.28.5

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

func (*RevokeRoleFromUserInternalServerError) IsServerError added in v1.28.5

func (o *RevokeRoleFromUserInternalServerError) IsServerError() bool

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

func (*RevokeRoleFromUserInternalServerError) IsSuccess added in v1.28.5

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

func (*RevokeRoleFromUserInternalServerError) String added in v1.28.5

type RevokeRoleFromUserNotFound added in v1.28.5

type RevokeRoleFromUserNotFound struct {
	Payload *models.ErrorResponse
}

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

role or user is not found.

func NewRevokeRoleFromUserNotFound added in v1.28.5

func NewRevokeRoleFromUserNotFound() *RevokeRoleFromUserNotFound

NewRevokeRoleFromUserNotFound creates a RevokeRoleFromUserNotFound with default headers values

func (*RevokeRoleFromUserNotFound) Code added in v1.28.5

func (o *RevokeRoleFromUserNotFound) Code() int

Code gets the status code for the revoke role from user not found response

func (*RevokeRoleFromUserNotFound) Error added in v1.28.5

func (*RevokeRoleFromUserNotFound) GetPayload added in v1.28.5

func (*RevokeRoleFromUserNotFound) IsClientError added in v1.28.5

func (o *RevokeRoleFromUserNotFound) IsClientError() bool

IsClientError returns true when this revoke role from user not found response has a 4xx status code

func (*RevokeRoleFromUserNotFound) IsCode added in v1.28.5

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

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

func (*RevokeRoleFromUserNotFound) IsRedirect added in v1.28.5

func (o *RevokeRoleFromUserNotFound) IsRedirect() bool

IsRedirect returns true when this revoke role from user not found response has a 3xx status code

func (*RevokeRoleFromUserNotFound) IsServerError added in v1.28.5

func (o *RevokeRoleFromUserNotFound) IsServerError() bool

IsServerError returns true when this revoke role from user not found response has a 5xx status code

func (*RevokeRoleFromUserNotFound) IsSuccess added in v1.28.5

func (o *RevokeRoleFromUserNotFound) IsSuccess() bool

IsSuccess returns true when this revoke role from user not found response has a 2xx status code

func (*RevokeRoleFromUserNotFound) String added in v1.28.5

func (o *RevokeRoleFromUserNotFound) String() string

type RevokeRoleFromUserOK added in v1.28.5

type RevokeRoleFromUserOK struct {
}

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

Role revoked successfully

func NewRevokeRoleFromUserOK added in v1.28.5

func NewRevokeRoleFromUserOK() *RevokeRoleFromUserOK

NewRevokeRoleFromUserOK creates a RevokeRoleFromUserOK with default headers values

func (*RevokeRoleFromUserOK) Code added in v1.28.5

func (o *RevokeRoleFromUserOK) Code() int

Code gets the status code for the revoke role from user o k response

func (*RevokeRoleFromUserOK) Error added in v1.28.5

func (o *RevokeRoleFromUserOK) Error() string

func (*RevokeRoleFromUserOK) IsClientError added in v1.28.5

func (o *RevokeRoleFromUserOK) IsClientError() bool

IsClientError returns true when this revoke role from user o k response has a 4xx status code

func (*RevokeRoleFromUserOK) IsCode added in v1.28.5

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

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

func (*RevokeRoleFromUserOK) IsRedirect added in v1.28.5

func (o *RevokeRoleFromUserOK) IsRedirect() bool

IsRedirect returns true when this revoke role from user o k response has a 3xx status code

func (*RevokeRoleFromUserOK) IsServerError added in v1.28.5

func (o *RevokeRoleFromUserOK) IsServerError() bool

IsServerError returns true when this revoke role from user o k response has a 5xx status code

func (*RevokeRoleFromUserOK) IsSuccess added in v1.28.5

func (o *RevokeRoleFromUserOK) IsSuccess() bool

IsSuccess returns true when this revoke role from user o k response has a 2xx status code

func (*RevokeRoleFromUserOK) String added in v1.28.5

func (o *RevokeRoleFromUserOK) String() string

type RevokeRoleFromUserParams added in v1.28.5

type RevokeRoleFromUserParams struct {

	// Body.
	Body RevokeRoleFromUserBody

	/* ID.

	   user name
	*/
	ID string

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

RevokeRoleFromUserParams contains all the parameters to send to the API endpoint

for the revoke role from user operation.

Typically these are written to a http.Request.

func NewRevokeRoleFromUserParams added in v1.28.5

func NewRevokeRoleFromUserParams() *RevokeRoleFromUserParams

NewRevokeRoleFromUserParams creates a new RevokeRoleFromUserParams 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 NewRevokeRoleFromUserParamsWithContext added in v1.28.5

func NewRevokeRoleFromUserParamsWithContext(ctx context.Context) *RevokeRoleFromUserParams

NewRevokeRoleFromUserParamsWithContext creates a new RevokeRoleFromUserParams object with the ability to set a context for a request.

func NewRevokeRoleFromUserParamsWithHTTPClient added in v1.28.5

func NewRevokeRoleFromUserParamsWithHTTPClient(client *http.Client) *RevokeRoleFromUserParams

NewRevokeRoleFromUserParamsWithHTTPClient creates a new RevokeRoleFromUserParams object with the ability to set a custom HTTPClient for a request.

func NewRevokeRoleFromUserParamsWithTimeout added in v1.28.5

func NewRevokeRoleFromUserParamsWithTimeout(timeout time.Duration) *RevokeRoleFromUserParams

NewRevokeRoleFromUserParamsWithTimeout creates a new RevokeRoleFromUserParams object with the ability to set a timeout on a request.

func (*RevokeRoleFromUserParams) SetBody added in v1.28.5

SetBody adds the body to the revoke role from user params

func (*RevokeRoleFromUserParams) SetContext added in v1.28.5

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

SetContext adds the context to the revoke role from user params

func (*RevokeRoleFromUserParams) SetDefaults added in v1.28.5

func (o *RevokeRoleFromUserParams) SetDefaults()

SetDefaults hydrates default values in the revoke role from user params (not the query body).

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

func (*RevokeRoleFromUserParams) SetHTTPClient added in v1.28.5

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

SetHTTPClient adds the HTTPClient to the revoke role from user params

func (*RevokeRoleFromUserParams) SetID added in v1.28.5

func (o *RevokeRoleFromUserParams) SetID(id string)

SetID adds the id to the revoke role from user params

func (*RevokeRoleFromUserParams) SetTimeout added in v1.28.5

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

SetTimeout adds the timeout to the revoke role from user params

func (*RevokeRoleFromUserParams) WithBody added in v1.28.5

WithBody adds the body to the revoke role from user params

func (*RevokeRoleFromUserParams) WithContext added in v1.28.5

WithContext adds the context to the revoke role from user params

func (*RevokeRoleFromUserParams) WithDefaults added in v1.28.5

WithDefaults hydrates default values in the revoke role from user params (not the query body).

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

func (*RevokeRoleFromUserParams) WithHTTPClient added in v1.28.5

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

WithHTTPClient adds the HTTPClient to the revoke role from user params

func (*RevokeRoleFromUserParams) WithID added in v1.28.5

WithID adds the id to the revoke role from user params

func (*RevokeRoleFromUserParams) WithTimeout added in v1.28.5

WithTimeout adds the timeout to the revoke role from user params

func (*RevokeRoleFromUserParams) WriteToRequest added in v1.28.5

WriteToRequest writes these params to a swagger request

type RevokeRoleFromUserReader added in v1.28.5

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

RevokeRoleFromUserReader is a Reader for the RevokeRoleFromUser structure.

func (*RevokeRoleFromUserReader) ReadResponse added in v1.28.5

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

ReadResponse reads a server response into the received o.

type RevokeRoleFromUserUnauthorized added in v1.28.5

type RevokeRoleFromUserUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewRevokeRoleFromUserUnauthorized added in v1.28.5

func NewRevokeRoleFromUserUnauthorized() *RevokeRoleFromUserUnauthorized

NewRevokeRoleFromUserUnauthorized creates a RevokeRoleFromUserUnauthorized with default headers values

func (*RevokeRoleFromUserUnauthorized) Code added in v1.28.5

Code gets the status code for the revoke role from user unauthorized response

func (*RevokeRoleFromUserUnauthorized) Error added in v1.28.5

func (*RevokeRoleFromUserUnauthorized) IsClientError added in v1.28.5

func (o *RevokeRoleFromUserUnauthorized) IsClientError() bool

IsClientError returns true when this revoke role from user unauthorized response has a 4xx status code

func (*RevokeRoleFromUserUnauthorized) IsCode added in v1.28.5

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

IsCode returns true when this revoke role from user unauthorized response a status code equal to that given

func (*RevokeRoleFromUserUnauthorized) IsRedirect added in v1.28.5

func (o *RevokeRoleFromUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this revoke role from user unauthorized response has a 3xx status code

func (*RevokeRoleFromUserUnauthorized) IsServerError added in v1.28.5

func (o *RevokeRoleFromUserUnauthorized) IsServerError() bool

IsServerError returns true when this revoke role from user unauthorized response has a 5xx status code

func (*RevokeRoleFromUserUnauthorized) IsSuccess added in v1.28.5

func (o *RevokeRoleFromUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this revoke role from user unauthorized response has a 2xx status code

func (*RevokeRoleFromUserUnauthorized) String added in v1.28.5

Jump to

Keyboard shortcuts

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