authz

package
v1.28.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

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 AssignRoleBadRequest

type AssignRoleBadRequest struct {
	Payload *models.ErrorResponse
}

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

Bad request

func NewAssignRoleBadRequest

func NewAssignRoleBadRequest() *AssignRoleBadRequest

NewAssignRoleBadRequest creates a AssignRoleBadRequest with default headers values

func (*AssignRoleBadRequest) Code

func (o *AssignRoleBadRequest) Code() int

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

func (*AssignRoleBadRequest) Error

func (o *AssignRoleBadRequest) Error() string

func (*AssignRoleBadRequest) GetPayload

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

func (*AssignRoleBadRequest) IsClientError

func (o *AssignRoleBadRequest) IsClientError() bool

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

func (*AssignRoleBadRequest) IsCode

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

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

func (*AssignRoleBadRequest) IsRedirect

func (o *AssignRoleBadRequest) IsRedirect() bool

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

func (*AssignRoleBadRequest) IsServerError

func (o *AssignRoleBadRequest) IsServerError() bool

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

func (*AssignRoleBadRequest) IsSuccess

func (o *AssignRoleBadRequest) IsSuccess() bool

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

func (*AssignRoleBadRequest) String

func (o *AssignRoleBadRequest) String() string

type AssignRoleBody

type AssignRoleBody struct {

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

AssignRoleBody assign role body swagger:model AssignRoleBody

func (*AssignRoleBody) ContextValidate

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

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

func (*AssignRoleBody) MarshalBinary

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

MarshalBinary interface implementation

func (*AssignRoleBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AssignRoleBody) Validate

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

Validate validates this assign role body

type AssignRoleForbidden

type AssignRoleForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewAssignRoleForbidden

func NewAssignRoleForbidden() *AssignRoleForbidden

NewAssignRoleForbidden creates a AssignRoleForbidden with default headers values

func (*AssignRoleForbidden) Code

func (o *AssignRoleForbidden) Code() int

Code gets the status code for the assign role forbidden response

func (*AssignRoleForbidden) Error

func (o *AssignRoleForbidden) Error() string

func (*AssignRoleForbidden) GetPayload

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

func (*AssignRoleForbidden) IsClientError

func (o *AssignRoleForbidden) IsClientError() bool

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

func (*AssignRoleForbidden) IsCode

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

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

func (*AssignRoleForbidden) IsRedirect

func (o *AssignRoleForbidden) IsRedirect() bool

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

func (*AssignRoleForbidden) IsServerError

func (o *AssignRoleForbidden) IsServerError() bool

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

func (*AssignRoleForbidden) IsSuccess

func (o *AssignRoleForbidden) IsSuccess() bool

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

func (*AssignRoleForbidden) String

func (o *AssignRoleForbidden) String() string

type AssignRoleInternalServerError

type AssignRoleInternalServerError struct {
	Payload *models.ErrorResponse
}

AssignRoleInternalServerError 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 NewAssignRoleInternalServerError

func NewAssignRoleInternalServerError() *AssignRoleInternalServerError

NewAssignRoleInternalServerError creates a AssignRoleInternalServerError with default headers values

func (*AssignRoleInternalServerError) Code

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

func (*AssignRoleInternalServerError) Error

func (*AssignRoleInternalServerError) GetPayload

func (*AssignRoleInternalServerError) IsClientError

func (o *AssignRoleInternalServerError) IsClientError() bool

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

func (*AssignRoleInternalServerError) IsCode

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

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

func (*AssignRoleInternalServerError) IsRedirect

func (o *AssignRoleInternalServerError) IsRedirect() bool

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

func (*AssignRoleInternalServerError) IsServerError

func (o *AssignRoleInternalServerError) IsServerError() bool

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

func (*AssignRoleInternalServerError) IsSuccess

func (o *AssignRoleInternalServerError) IsSuccess() bool

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

func (*AssignRoleInternalServerError) String

type AssignRoleNotFound

type AssignRoleNotFound struct {
}

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

role or user is not found.

func NewAssignRoleNotFound

func NewAssignRoleNotFound() *AssignRoleNotFound

NewAssignRoleNotFound creates a AssignRoleNotFound with default headers values

func (*AssignRoleNotFound) Code

func (o *AssignRoleNotFound) Code() int

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

func (*AssignRoleNotFound) Error

func (o *AssignRoleNotFound) Error() string

func (*AssignRoleNotFound) IsClientError

func (o *AssignRoleNotFound) IsClientError() bool

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

func (*AssignRoleNotFound) IsCode

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

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

func (*AssignRoleNotFound) IsRedirect

func (o *AssignRoleNotFound) IsRedirect() bool

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

func (*AssignRoleNotFound) IsServerError

func (o *AssignRoleNotFound) IsServerError() bool

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

func (*AssignRoleNotFound) IsSuccess

func (o *AssignRoleNotFound) IsSuccess() bool

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

func (*AssignRoleNotFound) String

func (o *AssignRoleNotFound) String() string

type AssignRoleOK

type AssignRoleOK struct {
}

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

Role assigned successfully

func NewAssignRoleOK

func NewAssignRoleOK() *AssignRoleOK

NewAssignRoleOK creates a AssignRoleOK with default headers values

func (*AssignRoleOK) Code

func (o *AssignRoleOK) Code() int

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

func (*AssignRoleOK) Error

func (o *AssignRoleOK) Error() string

func (*AssignRoleOK) IsClientError

func (o *AssignRoleOK) IsClientError() bool

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

func (*AssignRoleOK) IsCode

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

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

func (*AssignRoleOK) IsRedirect

func (o *AssignRoleOK) IsRedirect() bool

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

func (*AssignRoleOK) IsServerError

func (o *AssignRoleOK) IsServerError() bool

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

func (*AssignRoleOK) IsSuccess

func (o *AssignRoleOK) IsSuccess() bool

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

func (*AssignRoleOK) String

func (o *AssignRoleOK) String() string

type AssignRoleParams

type AssignRoleParams struct {

	// Body.
	Body AssignRoleBody

	/* ID.

	   user name
	*/
	ID string

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

AssignRoleParams contains all the parameters to send to the API endpoint

for the assign role operation.

Typically these are written to a http.Request.

func NewAssignRoleParams

func NewAssignRoleParams() *AssignRoleParams

NewAssignRoleParams creates a new AssignRoleParams 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 NewAssignRoleParamsWithContext

func NewAssignRoleParamsWithContext(ctx context.Context) *AssignRoleParams

NewAssignRoleParamsWithContext creates a new AssignRoleParams object with the ability to set a context for a request.

func NewAssignRoleParamsWithHTTPClient

func NewAssignRoleParamsWithHTTPClient(client *http.Client) *AssignRoleParams

NewAssignRoleParamsWithHTTPClient creates a new AssignRoleParams object with the ability to set a custom HTTPClient for a request.

func NewAssignRoleParamsWithTimeout

func NewAssignRoleParamsWithTimeout(timeout time.Duration) *AssignRoleParams

NewAssignRoleParamsWithTimeout creates a new AssignRoleParams object with the ability to set a timeout on a request.

func (*AssignRoleParams) SetBody

func (o *AssignRoleParams) SetBody(body AssignRoleBody)

SetBody adds the body to the assign role params

func (*AssignRoleParams) SetContext

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

SetContext adds the context to the assign role params

func (*AssignRoleParams) SetDefaults

func (o *AssignRoleParams) SetDefaults()

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

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

func (*AssignRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the assign role params

func (*AssignRoleParams) SetID

func (o *AssignRoleParams) SetID(id string)

SetID adds the id to the assign role params

func (*AssignRoleParams) SetTimeout

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

SetTimeout adds the timeout to the assign role params

func (*AssignRoleParams) WithBody

WithBody adds the body to the assign role params

func (*AssignRoleParams) WithContext

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

WithContext adds the context to the assign role params

func (*AssignRoleParams) WithDefaults

func (o *AssignRoleParams) WithDefaults() *AssignRoleParams

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

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

func (*AssignRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the assign role params

func (*AssignRoleParams) WithID

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

WithID adds the id to the assign role params

func (*AssignRoleParams) WithTimeout

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

WithTimeout adds the timeout to the assign role params

func (*AssignRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AssignRoleReader

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

AssignRoleReader is a Reader for the AssignRole structure.

func (*AssignRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AssignRoleUnauthorized

type AssignRoleUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewAssignRoleUnauthorized

func NewAssignRoleUnauthorized() *AssignRoleUnauthorized

NewAssignRoleUnauthorized creates a AssignRoleUnauthorized with default headers values

func (*AssignRoleUnauthorized) Code

func (o *AssignRoleUnauthorized) Code() int

Code gets the status code for the assign role unauthorized response

func (*AssignRoleUnauthorized) Error

func (o *AssignRoleUnauthorized) Error() string

func (*AssignRoleUnauthorized) IsClientError

func (o *AssignRoleUnauthorized) IsClientError() bool

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

func (*AssignRoleUnauthorized) IsCode

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

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

func (*AssignRoleUnauthorized) IsRedirect

func (o *AssignRoleUnauthorized) IsRedirect() bool

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

func (*AssignRoleUnauthorized) IsServerError

func (o *AssignRoleUnauthorized) IsServerError() bool

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

func (*AssignRoleUnauthorized) IsSuccess

func (o *AssignRoleUnauthorized) IsSuccess() bool

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

func (*AssignRoleUnauthorized) String

func (o *AssignRoleUnauthorized) String() string

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

func (a *Client) AssignRole(params *AssignRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssignRoleOK, error)

AssignRole 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) GetRolesForOwnUser

func (a *Client) GetRolesForOwnUser(params *GetRolesForOwnUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesForOwnUserOK, error)

GetRolesForOwnUser gets roles assigned to own user

func (*Client) GetRolesForUser

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

GetRolesForUser gets roles assigned to user

func (*Client) GetUsersForRole

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

GetUsersForRole gets users or a keys assigned to role

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

func (a *Client) RevokeRole(params *RevokeRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeRoleOK, error)

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

	AssignRole(params *AssignRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssignRoleOK, 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)

	GetRolesForOwnUser(params *GetRolesForOwnUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesForOwnUserOK, error)

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

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

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

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

	RevokeRole(params *RevokeRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeRoleOK, 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 GetRolesForOwnUserInternalServerError

type GetRolesForOwnUserInternalServerError struct {
	Payload *models.ErrorResponse
}

GetRolesForOwnUserInternalServerError 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 NewGetRolesForOwnUserInternalServerError

func NewGetRolesForOwnUserInternalServerError() *GetRolesForOwnUserInternalServerError

NewGetRolesForOwnUserInternalServerError creates a GetRolesForOwnUserInternalServerError with default headers values

func (*GetRolesForOwnUserInternalServerError) Code

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

func (*GetRolesForOwnUserInternalServerError) Error

func (*GetRolesForOwnUserInternalServerError) GetPayload

func (*GetRolesForOwnUserInternalServerError) IsClientError

func (o *GetRolesForOwnUserInternalServerError) IsClientError() bool

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

func (*GetRolesForOwnUserInternalServerError) IsCode

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

func (*GetRolesForOwnUserInternalServerError) IsRedirect

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

func (*GetRolesForOwnUserInternalServerError) IsServerError

func (o *GetRolesForOwnUserInternalServerError) IsServerError() bool

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

func (*GetRolesForOwnUserInternalServerError) IsSuccess

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

func (*GetRolesForOwnUserInternalServerError) String

type GetRolesForOwnUserOK

type GetRolesForOwnUserOK struct {
	Payload models.RolesListResponse
}

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

Role assigned to own users

func NewGetRolesForOwnUserOK

func NewGetRolesForOwnUserOK() *GetRolesForOwnUserOK

NewGetRolesForOwnUserOK creates a GetRolesForOwnUserOK with default headers values

func (*GetRolesForOwnUserOK) Code

func (o *GetRolesForOwnUserOK) Code() int

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

func (*GetRolesForOwnUserOK) Error

func (o *GetRolesForOwnUserOK) Error() string

func (*GetRolesForOwnUserOK) GetPayload

func (*GetRolesForOwnUserOK) IsClientError

func (o *GetRolesForOwnUserOK) IsClientError() bool

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

func (*GetRolesForOwnUserOK) IsCode

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

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

func (*GetRolesForOwnUserOK) IsRedirect

func (o *GetRolesForOwnUserOK) IsRedirect() bool

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

func (*GetRolesForOwnUserOK) IsServerError

func (o *GetRolesForOwnUserOK) IsServerError() bool

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

func (*GetRolesForOwnUserOK) IsSuccess

func (o *GetRolesForOwnUserOK) IsSuccess() bool

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

func (*GetRolesForOwnUserOK) String

func (o *GetRolesForOwnUserOK) String() string

type GetRolesForOwnUserParams

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

GetRolesForOwnUserParams contains all the parameters to send to the API endpoint

for the get roles for own user operation.

Typically these are written to a http.Request.

func NewGetRolesForOwnUserParams

func NewGetRolesForOwnUserParams() *GetRolesForOwnUserParams

NewGetRolesForOwnUserParams creates a new GetRolesForOwnUserParams 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 NewGetRolesForOwnUserParamsWithContext

func NewGetRolesForOwnUserParamsWithContext(ctx context.Context) *GetRolesForOwnUserParams

NewGetRolesForOwnUserParamsWithContext creates a new GetRolesForOwnUserParams object with the ability to set a context for a request.

func NewGetRolesForOwnUserParamsWithHTTPClient

func NewGetRolesForOwnUserParamsWithHTTPClient(client *http.Client) *GetRolesForOwnUserParams

NewGetRolesForOwnUserParamsWithHTTPClient creates a new GetRolesForOwnUserParams object with the ability to set a custom HTTPClient for a request.

func NewGetRolesForOwnUserParamsWithTimeout

func NewGetRolesForOwnUserParamsWithTimeout(timeout time.Duration) *GetRolesForOwnUserParams

NewGetRolesForOwnUserParamsWithTimeout creates a new GetRolesForOwnUserParams object with the ability to set a timeout on a request.

func (*GetRolesForOwnUserParams) SetContext

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

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

func (*GetRolesForOwnUserParams) SetDefaults

func (o *GetRolesForOwnUserParams) SetDefaults()

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

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

func (*GetRolesForOwnUserParams) SetHTTPClient

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

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

func (*GetRolesForOwnUserParams) SetTimeout

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

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

func (*GetRolesForOwnUserParams) WithContext

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

func (*GetRolesForOwnUserParams) WithDefaults

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

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

func (*GetRolesForOwnUserParams) WithHTTPClient

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

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

func (*GetRolesForOwnUserParams) WithTimeout

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

func (*GetRolesForOwnUserParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRolesForOwnUserReader

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

GetRolesForOwnUserReader is a Reader for the GetRolesForOwnUser structure.

func (*GetRolesForOwnUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRolesForOwnUserUnauthorized

type GetRolesForOwnUserUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewGetRolesForOwnUserUnauthorized

func NewGetRolesForOwnUserUnauthorized() *GetRolesForOwnUserUnauthorized

NewGetRolesForOwnUserUnauthorized creates a GetRolesForOwnUserUnauthorized with default headers values

func (*GetRolesForOwnUserUnauthorized) Code

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

func (*GetRolesForOwnUserUnauthorized) Error

func (*GetRolesForOwnUserUnauthorized) IsClientError

func (o *GetRolesForOwnUserUnauthorized) IsClientError() bool

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

func (*GetRolesForOwnUserUnauthorized) IsCode

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

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

func (*GetRolesForOwnUserUnauthorized) IsRedirect

func (o *GetRolesForOwnUserUnauthorized) IsRedirect() bool

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

func (*GetRolesForOwnUserUnauthorized) IsServerError

func (o *GetRolesForOwnUserUnauthorized) IsServerError() bool

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

func (*GetRolesForOwnUserUnauthorized) IsSuccess

func (o *GetRolesForOwnUserUnauthorized) IsSuccess() bool

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

func (*GetRolesForOwnUserUnauthorized) 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 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

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

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

SetTimeout adds the timeout 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) WithTimeout

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

WithTimeout adds the timeout 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 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 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 []string
}

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 (o *GetUsersForRoleOK) GetPayload() []string

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 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 RevokeRoleBadRequest

type RevokeRoleBadRequest struct {
	Payload *models.ErrorResponse
}

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

Bad request

func NewRevokeRoleBadRequest

func NewRevokeRoleBadRequest() *RevokeRoleBadRequest

NewRevokeRoleBadRequest creates a RevokeRoleBadRequest with default headers values

func (*RevokeRoleBadRequest) Code

func (o *RevokeRoleBadRequest) Code() int

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

func (*RevokeRoleBadRequest) Error

func (o *RevokeRoleBadRequest) Error() string

func (*RevokeRoleBadRequest) GetPayload

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

func (*RevokeRoleBadRequest) IsClientError

func (o *RevokeRoleBadRequest) IsClientError() bool

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

func (*RevokeRoleBadRequest) IsCode

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

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

func (*RevokeRoleBadRequest) IsRedirect

func (o *RevokeRoleBadRequest) IsRedirect() bool

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

func (*RevokeRoleBadRequest) IsServerError

func (o *RevokeRoleBadRequest) IsServerError() bool

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

func (*RevokeRoleBadRequest) IsSuccess

func (o *RevokeRoleBadRequest) IsSuccess() bool

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

func (*RevokeRoleBadRequest) String

func (o *RevokeRoleBadRequest) String() string

type RevokeRoleBody

type RevokeRoleBody struct {

	// the roles that revoked from the key or user
	Roles []string `json:"roles"`
}

RevokeRoleBody revoke role body swagger:model RevokeRoleBody

func (*RevokeRoleBody) ContextValidate

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

ContextValidate validates this revoke role body based on context it is used

func (*RevokeRoleBody) MarshalBinary

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

MarshalBinary interface implementation

func (*RevokeRoleBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RevokeRoleBody) Validate

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

Validate validates this revoke role body

type RevokeRoleForbidden

type RevokeRoleForbidden struct {
	Payload *models.ErrorResponse
}

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

Forbidden

func NewRevokeRoleForbidden

func NewRevokeRoleForbidden() *RevokeRoleForbidden

NewRevokeRoleForbidden creates a RevokeRoleForbidden with default headers values

func (*RevokeRoleForbidden) Code

func (o *RevokeRoleForbidden) Code() int

Code gets the status code for the revoke role forbidden response

func (*RevokeRoleForbidden) Error

func (o *RevokeRoleForbidden) Error() string

func (*RevokeRoleForbidden) GetPayload

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

func (*RevokeRoleForbidden) IsClientError

func (o *RevokeRoleForbidden) IsClientError() bool

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

func (*RevokeRoleForbidden) IsCode

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

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

func (*RevokeRoleForbidden) IsRedirect

func (o *RevokeRoleForbidden) IsRedirect() bool

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

func (*RevokeRoleForbidden) IsServerError

func (o *RevokeRoleForbidden) IsServerError() bool

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

func (*RevokeRoleForbidden) IsSuccess

func (o *RevokeRoleForbidden) IsSuccess() bool

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

func (*RevokeRoleForbidden) String

func (o *RevokeRoleForbidden) String() string

type RevokeRoleInternalServerError

type RevokeRoleInternalServerError struct {
	Payload *models.ErrorResponse
}

RevokeRoleInternalServerError 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 NewRevokeRoleInternalServerError

func NewRevokeRoleInternalServerError() *RevokeRoleInternalServerError

NewRevokeRoleInternalServerError creates a RevokeRoleInternalServerError with default headers values

func (*RevokeRoleInternalServerError) Code

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

func (*RevokeRoleInternalServerError) Error

func (*RevokeRoleInternalServerError) GetPayload

func (*RevokeRoleInternalServerError) IsClientError

func (o *RevokeRoleInternalServerError) IsClientError() bool

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

func (*RevokeRoleInternalServerError) IsCode

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

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

func (*RevokeRoleInternalServerError) IsRedirect

func (o *RevokeRoleInternalServerError) IsRedirect() bool

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

func (*RevokeRoleInternalServerError) IsServerError

func (o *RevokeRoleInternalServerError) IsServerError() bool

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

func (*RevokeRoleInternalServerError) IsSuccess

func (o *RevokeRoleInternalServerError) IsSuccess() bool

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

func (*RevokeRoleInternalServerError) String

type RevokeRoleNotFound

type RevokeRoleNotFound struct {
}

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

role or user is not found.

func NewRevokeRoleNotFound

func NewRevokeRoleNotFound() *RevokeRoleNotFound

NewRevokeRoleNotFound creates a RevokeRoleNotFound with default headers values

func (*RevokeRoleNotFound) Code

func (o *RevokeRoleNotFound) Code() int

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

func (*RevokeRoleNotFound) Error

func (o *RevokeRoleNotFound) Error() string

func (*RevokeRoleNotFound) IsClientError

func (o *RevokeRoleNotFound) IsClientError() bool

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

func (*RevokeRoleNotFound) IsCode

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

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

func (*RevokeRoleNotFound) IsRedirect

func (o *RevokeRoleNotFound) IsRedirect() bool

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

func (*RevokeRoleNotFound) IsServerError

func (o *RevokeRoleNotFound) IsServerError() bool

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

func (*RevokeRoleNotFound) IsSuccess

func (o *RevokeRoleNotFound) IsSuccess() bool

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

func (*RevokeRoleNotFound) String

func (o *RevokeRoleNotFound) String() string

type RevokeRoleOK

type RevokeRoleOK struct {
}

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

Role revoked successfully

func NewRevokeRoleOK

func NewRevokeRoleOK() *RevokeRoleOK

NewRevokeRoleOK creates a RevokeRoleOK with default headers values

func (*RevokeRoleOK) Code

func (o *RevokeRoleOK) Code() int

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

func (*RevokeRoleOK) Error

func (o *RevokeRoleOK) Error() string

func (*RevokeRoleOK) IsClientError

func (o *RevokeRoleOK) IsClientError() bool

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

func (*RevokeRoleOK) IsCode

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

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

func (*RevokeRoleOK) IsRedirect

func (o *RevokeRoleOK) IsRedirect() bool

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

func (*RevokeRoleOK) IsServerError

func (o *RevokeRoleOK) IsServerError() bool

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

func (*RevokeRoleOK) IsSuccess

func (o *RevokeRoleOK) IsSuccess() bool

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

func (*RevokeRoleOK) String

func (o *RevokeRoleOK) String() string

type RevokeRoleParams

type RevokeRoleParams struct {

	// Body.
	Body RevokeRoleBody

	/* ID.

	   user name
	*/
	ID string

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

RevokeRoleParams contains all the parameters to send to the API endpoint

for the revoke role operation.

Typically these are written to a http.Request.

func NewRevokeRoleParams

func NewRevokeRoleParams() *RevokeRoleParams

NewRevokeRoleParams creates a new RevokeRoleParams 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 NewRevokeRoleParamsWithContext

func NewRevokeRoleParamsWithContext(ctx context.Context) *RevokeRoleParams

NewRevokeRoleParamsWithContext creates a new RevokeRoleParams object with the ability to set a context for a request.

func NewRevokeRoleParamsWithHTTPClient

func NewRevokeRoleParamsWithHTTPClient(client *http.Client) *RevokeRoleParams

NewRevokeRoleParamsWithHTTPClient creates a new RevokeRoleParams object with the ability to set a custom HTTPClient for a request.

func NewRevokeRoleParamsWithTimeout

func NewRevokeRoleParamsWithTimeout(timeout time.Duration) *RevokeRoleParams

NewRevokeRoleParamsWithTimeout creates a new RevokeRoleParams object with the ability to set a timeout on a request.

func (*RevokeRoleParams) SetBody

func (o *RevokeRoleParams) SetBody(body RevokeRoleBody)

SetBody adds the body to the revoke role params

func (*RevokeRoleParams) SetContext

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

SetContext adds the context to the revoke role params

func (*RevokeRoleParams) SetDefaults

func (o *RevokeRoleParams) SetDefaults()

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

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

func (*RevokeRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the revoke role params

func (*RevokeRoleParams) SetID

func (o *RevokeRoleParams) SetID(id string)

SetID adds the id to the revoke role params

func (*RevokeRoleParams) SetTimeout

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

SetTimeout adds the timeout to the revoke role params

func (*RevokeRoleParams) WithBody

WithBody adds the body to the revoke role params

func (*RevokeRoleParams) WithContext

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

WithContext adds the context to the revoke role params

func (*RevokeRoleParams) WithDefaults

func (o *RevokeRoleParams) WithDefaults() *RevokeRoleParams

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

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

func (*RevokeRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the revoke role params

func (*RevokeRoleParams) WithID

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

WithID adds the id to the revoke role params

func (*RevokeRoleParams) WithTimeout

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

WithTimeout adds the timeout to the revoke role params

func (*RevokeRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RevokeRoleReader

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

RevokeRoleReader is a Reader for the RevokeRole structure.

func (*RevokeRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RevokeRoleUnauthorized

type RevokeRoleUnauthorized struct {
}

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

Unauthorized or invalid credentials.

func NewRevokeRoleUnauthorized

func NewRevokeRoleUnauthorized() *RevokeRoleUnauthorized

NewRevokeRoleUnauthorized creates a RevokeRoleUnauthorized with default headers values

func (*RevokeRoleUnauthorized) Code

func (o *RevokeRoleUnauthorized) Code() int

Code gets the status code for the revoke role unauthorized response

func (*RevokeRoleUnauthorized) Error

func (o *RevokeRoleUnauthorized) Error() string

func (*RevokeRoleUnauthorized) IsClientError

func (o *RevokeRoleUnauthorized) IsClientError() bool

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

func (*RevokeRoleUnauthorized) IsCode

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

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

func (*RevokeRoleUnauthorized) IsRedirect

func (o *RevokeRoleUnauthorized) IsRedirect() bool

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

func (*RevokeRoleUnauthorized) IsServerError

func (o *RevokeRoleUnauthorized) IsServerError() bool

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

func (*RevokeRoleUnauthorized) IsSuccess

func (o *RevokeRoleUnauthorized) IsSuccess() bool

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

func (*RevokeRoleUnauthorized) String

func (o *RevokeRoleUnauthorized) String() string

Jump to

Keyboard shortcuts

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