authz

package
v1.28.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AddPermissionsBadRequestCode int = 400

AddPermissionsBadRequestCode is the HTTP code returned for type AddPermissionsBadRequest

View Source
const AddPermissionsForbiddenCode int = 403

AddPermissionsForbiddenCode is the HTTP code returned for type AddPermissionsForbidden

View Source
const AddPermissionsInternalServerErrorCode int = 500

AddPermissionsInternalServerErrorCode is the HTTP code returned for type AddPermissionsInternalServerError

View Source
const AddPermissionsOKCode int = 200

AddPermissionsOKCode is the HTTP code returned for type AddPermissionsOK

View Source
const AddPermissionsUnauthorizedCode int = 401

AddPermissionsUnauthorizedCode is the HTTP code returned for type AddPermissionsUnauthorized

View Source
const AddPermissionsUnprocessableEntityCode int = 422

AddPermissionsUnprocessableEntityCode is the HTTP code returned for type AddPermissionsUnprocessableEntity

View Source
const AssignRoleBadRequestCode int = 400

AssignRoleBadRequestCode is the HTTP code returned for type AssignRoleBadRequest

View Source
const AssignRoleForbiddenCode int = 403

AssignRoleForbiddenCode is the HTTP code returned for type AssignRoleForbidden

View Source
const AssignRoleInternalServerErrorCode int = 500

AssignRoleInternalServerErrorCode is the HTTP code returned for type AssignRoleInternalServerError

View Source
const AssignRoleNotFoundCode int = 404

AssignRoleNotFoundCode is the HTTP code returned for type AssignRoleNotFound

View Source
const AssignRoleOKCode int = 200

AssignRoleOKCode is the HTTP code returned for type AssignRoleOK

View Source
const AssignRoleUnauthorizedCode int = 401

AssignRoleUnauthorizedCode is the HTTP code returned for type AssignRoleUnauthorized

View Source
const CreateRoleBadRequestCode int = 400

CreateRoleBadRequestCode is the HTTP code returned for type CreateRoleBadRequest

View Source
const CreateRoleConflictCode int = 409

CreateRoleConflictCode is the HTTP code returned for type CreateRoleConflict

View Source
const CreateRoleCreatedCode int = 201

CreateRoleCreatedCode is the HTTP code returned for type CreateRoleCreated

View Source
const CreateRoleForbiddenCode int = 403

CreateRoleForbiddenCode is the HTTP code returned for type CreateRoleForbidden

View Source
const CreateRoleInternalServerErrorCode int = 500

CreateRoleInternalServerErrorCode is the HTTP code returned for type CreateRoleInternalServerError

View Source
const CreateRoleUnauthorizedCode int = 401

CreateRoleUnauthorizedCode is the HTTP code returned for type CreateRoleUnauthorized

View Source
const CreateRoleUnprocessableEntityCode int = 422

CreateRoleUnprocessableEntityCode is the HTTP code returned for type CreateRoleUnprocessableEntity

View Source
const DeleteRoleBadRequestCode int = 400

DeleteRoleBadRequestCode is the HTTP code returned for type DeleteRoleBadRequest

View Source
const DeleteRoleForbiddenCode int = 403

DeleteRoleForbiddenCode is the HTTP code returned for type DeleteRoleForbidden

View Source
const DeleteRoleInternalServerErrorCode int = 500

DeleteRoleInternalServerErrorCode is the HTTP code returned for type DeleteRoleInternalServerError

View Source
const DeleteRoleNoContentCode int = 204

DeleteRoleNoContentCode is the HTTP code returned for type DeleteRoleNoContent

View Source
const DeleteRoleUnauthorizedCode int = 401

DeleteRoleUnauthorizedCode is the HTTP code returned for type DeleteRoleUnauthorized

View Source
const GetRoleBadRequestCode int = 400

GetRoleBadRequestCode is the HTTP code returned for type GetRoleBadRequest

View Source
const GetRoleForbiddenCode int = 403

GetRoleForbiddenCode is the HTTP code returned for type GetRoleForbidden

View Source
const GetRoleInternalServerErrorCode int = 500

GetRoleInternalServerErrorCode is the HTTP code returned for type GetRoleInternalServerError

View Source
const GetRoleNotFoundCode int = 404

GetRoleNotFoundCode is the HTTP code returned for type GetRoleNotFound

View Source
const GetRoleOKCode int = 200

GetRoleOKCode is the HTTP code returned for type GetRoleOK

View Source
const GetRoleUnauthorizedCode int = 401

GetRoleUnauthorizedCode is the HTTP code returned for type GetRoleUnauthorized

View Source
const GetRolesBadRequestCode int = 400

GetRolesBadRequestCode is the HTTP code returned for type GetRolesBadRequest

View Source
const GetRolesForOwnUserInternalServerErrorCode int = 500

GetRolesForOwnUserInternalServerErrorCode is the HTTP code returned for type GetRolesForOwnUserInternalServerError

View Source
const GetRolesForOwnUserOKCode int = 200

GetRolesForOwnUserOKCode is the HTTP code returned for type GetRolesForOwnUserOK

View Source
const GetRolesForOwnUserUnauthorizedCode int = 401

GetRolesForOwnUserUnauthorizedCode is the HTTP code returned for type GetRolesForOwnUserUnauthorized

View Source
const GetRolesForUserBadRequestCode int = 400

GetRolesForUserBadRequestCode is the HTTP code returned for type GetRolesForUserBadRequest

View Source
const GetRolesForUserForbiddenCode int = 403

GetRolesForUserForbiddenCode is the HTTP code returned for type GetRolesForUserForbidden

View Source
const GetRolesForUserInternalServerErrorCode int = 500

GetRolesForUserInternalServerErrorCode is the HTTP code returned for type GetRolesForUserInternalServerError

View Source
const GetRolesForUserNotFoundCode int = 404

GetRolesForUserNotFoundCode is the HTTP code returned for type GetRolesForUserNotFound

View Source
const GetRolesForUserOKCode int = 200

GetRolesForUserOKCode is the HTTP code returned for type GetRolesForUserOK

View Source
const GetRolesForUserUnauthorizedCode int = 401

GetRolesForUserUnauthorizedCode is the HTTP code returned for type GetRolesForUserUnauthorized

View Source
const GetRolesForbiddenCode int = 403

GetRolesForbiddenCode is the HTTP code returned for type GetRolesForbidden

View Source
const GetRolesInternalServerErrorCode int = 500

GetRolesInternalServerErrorCode is the HTTP code returned for type GetRolesInternalServerError

View Source
const GetRolesOKCode int = 200

GetRolesOKCode is the HTTP code returned for type GetRolesOK

View Source
const GetRolesUnauthorizedCode int = 401

GetRolesUnauthorizedCode is the HTTP code returned for type GetRolesUnauthorized

View Source
const GetUsersForRoleBadRequestCode int = 400

GetUsersForRoleBadRequestCode is the HTTP code returned for type GetUsersForRoleBadRequest

View Source
const GetUsersForRoleForbiddenCode int = 403

GetUsersForRoleForbiddenCode is the HTTP code returned for type GetUsersForRoleForbidden

View Source
const GetUsersForRoleInternalServerErrorCode int = 500

GetUsersForRoleInternalServerErrorCode is the HTTP code returned for type GetUsersForRoleInternalServerError

View Source
const GetUsersForRoleNotFoundCode int = 404

GetUsersForRoleNotFoundCode is the HTTP code returned for type GetUsersForRoleNotFound

View Source
const GetUsersForRoleOKCode int = 200

GetUsersForRoleOKCode is the HTTP code returned for type GetUsersForRoleOK

View Source
const GetUsersForRoleUnauthorizedCode int = 401

GetUsersForRoleUnauthorizedCode is the HTTP code returned for type GetUsersForRoleUnauthorized

View Source
const RemovePermissionsBadRequestCode int = 400

RemovePermissionsBadRequestCode is the HTTP code returned for type RemovePermissionsBadRequest

View Source
const RemovePermissionsForbiddenCode int = 403

RemovePermissionsForbiddenCode is the HTTP code returned for type RemovePermissionsForbidden

View Source
const RemovePermissionsInternalServerErrorCode int = 500

RemovePermissionsInternalServerErrorCode is the HTTP code returned for type RemovePermissionsInternalServerError

View Source
const RemovePermissionsOKCode int = 200

RemovePermissionsOKCode is the HTTP code returned for type RemovePermissionsOK

View Source
const RemovePermissionsUnauthorizedCode int = 401

RemovePermissionsUnauthorizedCode is the HTTP code returned for type RemovePermissionsUnauthorized

View Source
const RemovePermissionsUnprocessableEntityCode int = 422

RemovePermissionsUnprocessableEntityCode is the HTTP code returned for type RemovePermissionsUnprocessableEntity

View Source
const RevokeRoleBadRequestCode int = 400

RevokeRoleBadRequestCode is the HTTP code returned for type RevokeRoleBadRequest

View Source
const RevokeRoleForbiddenCode int = 403

RevokeRoleForbiddenCode is the HTTP code returned for type RevokeRoleForbidden

View Source
const RevokeRoleInternalServerErrorCode int = 500

RevokeRoleInternalServerErrorCode is the HTTP code returned for type RevokeRoleInternalServerError

View Source
const RevokeRoleNotFoundCode int = 404

RevokeRoleNotFoundCode is the HTTP code returned for type RevokeRoleNotFound

View Source
const RevokeRoleOKCode int = 200

RevokeRoleOKCode is the HTTP code returned for type RevokeRoleOK

View Source
const RevokeRoleUnauthorizedCode int = 401

RevokeRoleUnauthorizedCode is the HTTP code returned for type RevokeRoleUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPermissions

type AddPermissions struct {
	Context *middleware.Context
	Handler AddPermissionsHandler
}
AddPermissions swagger:route POST /authz/roles/add-permissions authz addPermissions

Add permission to a role as an upsert. If the role doesn't exist then it will be created.

func NewAddPermissions

func NewAddPermissions(ctx *middleware.Context, handler AddPermissionsHandler) *AddPermissions

NewAddPermissions creates a new http.Handler for the add permissions operation

func (*AddPermissions) ServeHTTP

func (o *AddPermissions) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type AddPermissionsBadRequest

type AddPermissionsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

AddPermissionsBadRequest Malformed request.

swagger:response addPermissionsBadRequest

func NewAddPermissionsBadRequest

func NewAddPermissionsBadRequest() *AddPermissionsBadRequest

NewAddPermissionsBadRequest creates AddPermissionsBadRequest with default headers values

func (*AddPermissionsBadRequest) SetPayload

func (o *AddPermissionsBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the add permissions bad request response

func (*AddPermissionsBadRequest) WithPayload

WithPayload adds the payload to the add permissions bad request response

func (*AddPermissionsBadRequest) WriteResponse

func (o *AddPermissionsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddPermissionsBody

type AddPermissionsBody struct {

	// role name
	// Required: true
	Name *string `json:"name" yaml:"name"`

	// permissions to be added to the role
	// Required: true
	Permissions []*models.Permission `json:"permissions" yaml:"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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

AddPermissionsForbidden Forbidden

swagger:response addPermissionsForbidden

func NewAddPermissionsForbidden

func NewAddPermissionsForbidden() *AddPermissionsForbidden

NewAddPermissionsForbidden creates AddPermissionsForbidden with default headers values

func (*AddPermissionsForbidden) SetPayload

func (o *AddPermissionsForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the add permissions forbidden response

func (*AddPermissionsForbidden) WithPayload

WithPayload adds the payload to the add permissions forbidden response

func (*AddPermissionsForbidden) WriteResponse

func (o *AddPermissionsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddPermissionsHandler

type AddPermissionsHandler interface {
	Handle(AddPermissionsParams, *models.Principal) middleware.Responder
}

AddPermissionsHandler interface for that can handle valid add permissions params

type AddPermissionsHandlerFunc

type AddPermissionsHandlerFunc func(AddPermissionsParams, *models.Principal) middleware.Responder

AddPermissionsHandlerFunc turns a function with the right signature into a add permissions handler

func (AddPermissionsHandlerFunc) Handle

Handle executing the request and returning a response

type AddPermissionsInternalServerError

type AddPermissionsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response addPermissionsInternalServerError

func NewAddPermissionsInternalServerError

func NewAddPermissionsInternalServerError() *AddPermissionsInternalServerError

NewAddPermissionsInternalServerError creates AddPermissionsInternalServerError with default headers values

func (*AddPermissionsInternalServerError) SetPayload

func (o *AddPermissionsInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the add permissions internal server error response

func (*AddPermissionsInternalServerError) WithPayload

WithPayload adds the payload to the add permissions internal server error response

func (*AddPermissionsInternalServerError) WriteResponse

func (o *AddPermissionsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddPermissionsOK

type AddPermissionsOK struct {
}

AddPermissionsOK Permissions added successfully

swagger:response addPermissionsOK

func NewAddPermissionsOK

func NewAddPermissionsOK() *AddPermissionsOK

NewAddPermissionsOK creates AddPermissionsOK with default headers values

func (*AddPermissionsOK) WriteResponse

func (o *AddPermissionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddPermissionsParams

type AddPermissionsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body AddPermissionsBody
}

AddPermissionsParams contains all the bound params for the add permissions operation typically these are obtained from a http.Request

swagger:parameters addPermissions

func NewAddPermissionsParams

func NewAddPermissionsParams() AddPermissionsParams

NewAddPermissionsParams creates a new AddPermissionsParams object

There are no default values defined in the spec.

func (*AddPermissionsParams) BindRequest

func (o *AddPermissionsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewAddPermissionsParams() beforehand.

type AddPermissionsURL

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

AddPermissionsURL generates an URL for the add permissions operation

func (*AddPermissionsURL) Build

func (o *AddPermissionsURL) Build() (*url.URL, error)

Build a url path and query string

func (*AddPermissionsURL) BuildFull

func (o *AddPermissionsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AddPermissionsURL) Must

func (o *AddPermissionsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*AddPermissionsURL) SetBasePath

func (o *AddPermissionsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*AddPermissionsURL) String

func (o *AddPermissionsURL) String() string

String returns the string representation of the path with query string

func (*AddPermissionsURL) StringFull

func (o *AddPermissionsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AddPermissionsURL) WithBasePath

func (o *AddPermissionsURL) WithBasePath(bp string) *AddPermissionsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type AddPermissionsUnauthorized

type AddPermissionsUnauthorized struct {
}

AddPermissionsUnauthorized Unauthorized or invalid credentials.

swagger:response addPermissionsUnauthorized

func NewAddPermissionsUnauthorized

func NewAddPermissionsUnauthorized() *AddPermissionsUnauthorized

NewAddPermissionsUnauthorized creates AddPermissionsUnauthorized with default headers values

func (*AddPermissionsUnauthorized) WriteResponse

func (o *AddPermissionsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddPermissionsUnprocessableEntity

type AddPermissionsUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response addPermissionsUnprocessableEntity

func NewAddPermissionsUnprocessableEntity

func NewAddPermissionsUnprocessableEntity() *AddPermissionsUnprocessableEntity

NewAddPermissionsUnprocessableEntity creates AddPermissionsUnprocessableEntity with default headers values

func (*AddPermissionsUnprocessableEntity) SetPayload

func (o *AddPermissionsUnprocessableEntity) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the add permissions unprocessable entity response

func (*AddPermissionsUnprocessableEntity) WithPayload

WithPayload adds the payload to the add permissions unprocessable entity response

func (*AddPermissionsUnprocessableEntity) WriteResponse

func (o *AddPermissionsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AssignRole

type AssignRole struct {
	Context *middleware.Context
	Handler AssignRoleHandler
}
AssignRole swagger:route POST /authz/users/{id}/assign authz assignRole

Assign a role to a user

func NewAssignRole

func NewAssignRole(ctx *middleware.Context, handler AssignRoleHandler) *AssignRole

NewAssignRole creates a new http.Handler for the assign role operation

func (*AssignRole) ServeHTTP

func (o *AssignRole) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type AssignRoleBadRequest

type AssignRoleBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

AssignRoleBadRequest Bad request

swagger:response assignRoleBadRequest

func NewAssignRoleBadRequest

func NewAssignRoleBadRequest() *AssignRoleBadRequest

NewAssignRoleBadRequest creates AssignRoleBadRequest with default headers values

func (*AssignRoleBadRequest) SetPayload

func (o *AssignRoleBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the assign role bad request response

func (*AssignRoleBadRequest) WithPayload

WithPayload adds the payload to the assign role bad request response

func (*AssignRoleBadRequest) WriteResponse

func (o *AssignRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AssignRoleBody

type AssignRoleBody struct {

	// the roles that assigned to user
	Roles []string `json:"roles" yaml:"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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

AssignRoleForbidden Forbidden

swagger:response assignRoleForbidden

func NewAssignRoleForbidden

func NewAssignRoleForbidden() *AssignRoleForbidden

NewAssignRoleForbidden creates AssignRoleForbidden with default headers values

func (*AssignRoleForbidden) SetPayload

func (o *AssignRoleForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the assign role forbidden response

func (*AssignRoleForbidden) WithPayload

func (o *AssignRoleForbidden) WithPayload(payload *models.ErrorResponse) *AssignRoleForbidden

WithPayload adds the payload to the assign role forbidden response

func (*AssignRoleForbidden) WriteResponse

func (o *AssignRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AssignRoleHandler

type AssignRoleHandler interface {
	Handle(AssignRoleParams, *models.Principal) middleware.Responder
}

AssignRoleHandler interface for that can handle valid assign role params

type AssignRoleHandlerFunc

type AssignRoleHandlerFunc func(AssignRoleParams, *models.Principal) middleware.Responder

AssignRoleHandlerFunc turns a function with the right signature into a assign role handler

func (AssignRoleHandlerFunc) Handle

Handle executing the request and returning a response

type AssignRoleInternalServerError

type AssignRoleInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response assignRoleInternalServerError

func NewAssignRoleInternalServerError

func NewAssignRoleInternalServerError() *AssignRoleInternalServerError

NewAssignRoleInternalServerError creates AssignRoleInternalServerError with default headers values

func (*AssignRoleInternalServerError) SetPayload

func (o *AssignRoleInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the assign role internal server error response

func (*AssignRoleInternalServerError) WithPayload

WithPayload adds the payload to the assign role internal server error response

func (*AssignRoleInternalServerError) WriteResponse

func (o *AssignRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AssignRoleNotFound

type AssignRoleNotFound struct {
}

AssignRoleNotFound role or user is not found.

swagger:response assignRoleNotFound

func NewAssignRoleNotFound

func NewAssignRoleNotFound() *AssignRoleNotFound

NewAssignRoleNotFound creates AssignRoleNotFound with default headers values

func (*AssignRoleNotFound) WriteResponse

func (o *AssignRoleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AssignRoleOK

type AssignRoleOK struct {
}

AssignRoleOK Role assigned successfully

swagger:response assignRoleOK

func NewAssignRoleOK

func NewAssignRoleOK() *AssignRoleOK

NewAssignRoleOK creates AssignRoleOK with default headers values

func (*AssignRoleOK) WriteResponse

func (o *AssignRoleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AssignRoleParams

type AssignRoleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body AssignRoleBody
	/*user name
	  Required: true
	  In: path
	*/
	ID string
}

AssignRoleParams contains all the bound params for the assign role operation typically these are obtained from a http.Request

swagger:parameters assignRole

func NewAssignRoleParams

func NewAssignRoleParams() AssignRoleParams

NewAssignRoleParams creates a new AssignRoleParams object

There are no default values defined in the spec.

func (*AssignRoleParams) BindRequest

func (o *AssignRoleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewAssignRoleParams() beforehand.

type AssignRoleURL

type AssignRoleURL struct {
	ID string
	// contains filtered or unexported fields
}

AssignRoleURL generates an URL for the assign role operation

func (*AssignRoleURL) Build

func (o *AssignRoleURL) Build() (*url.URL, error)

Build a url path and query string

func (*AssignRoleURL) BuildFull

func (o *AssignRoleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AssignRoleURL) Must

func (o *AssignRoleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*AssignRoleURL) SetBasePath

func (o *AssignRoleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*AssignRoleURL) String

func (o *AssignRoleURL) String() string

String returns the string representation of the path with query string

func (*AssignRoleURL) StringFull

func (o *AssignRoleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AssignRoleURL) WithBasePath

func (o *AssignRoleURL) WithBasePath(bp string) *AssignRoleURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type AssignRoleUnauthorized

type AssignRoleUnauthorized struct {
}

AssignRoleUnauthorized Unauthorized or invalid credentials.

swagger:response assignRoleUnauthorized

func NewAssignRoleUnauthorized

func NewAssignRoleUnauthorized() *AssignRoleUnauthorized

NewAssignRoleUnauthorized creates AssignRoleUnauthorized with default headers values

func (*AssignRoleUnauthorized) WriteResponse

func (o *AssignRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateRole

type CreateRole struct {
	Context *middleware.Context
	Handler CreateRoleHandler
}
CreateRole swagger:route POST /authz/roles authz createRole

create new role

func NewCreateRole

func NewCreateRole(ctx *middleware.Context, handler CreateRoleHandler) *CreateRole

NewCreateRole creates a new http.Handler for the create role operation

func (*CreateRole) ServeHTTP

func (o *CreateRole) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateRoleBadRequest

type CreateRoleBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

CreateRoleBadRequest Malformed request.

swagger:response createRoleBadRequest

func NewCreateRoleBadRequest

func NewCreateRoleBadRequest() *CreateRoleBadRequest

NewCreateRoleBadRequest creates CreateRoleBadRequest with default headers values

func (*CreateRoleBadRequest) SetPayload

func (o *CreateRoleBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the create role bad request response

func (*CreateRoleBadRequest) WithPayload

WithPayload adds the payload to the create role bad request response

func (*CreateRoleBadRequest) WriteResponse

func (o *CreateRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateRoleConflict

type CreateRoleConflict struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

CreateRoleConflict Role already exists

swagger:response createRoleConflict

func NewCreateRoleConflict

func NewCreateRoleConflict() *CreateRoleConflict

NewCreateRoleConflict creates CreateRoleConflict with default headers values

func (*CreateRoleConflict) SetPayload

func (o *CreateRoleConflict) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the create role conflict response

func (*CreateRoleConflict) WithPayload

func (o *CreateRoleConflict) WithPayload(payload *models.ErrorResponse) *CreateRoleConflict

WithPayload adds the payload to the create role conflict response

func (*CreateRoleConflict) WriteResponse

func (o *CreateRoleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateRoleCreated

type CreateRoleCreated struct {
}

CreateRoleCreated Role created successfully

swagger:response createRoleCreated

func NewCreateRoleCreated

func NewCreateRoleCreated() *CreateRoleCreated

NewCreateRoleCreated creates CreateRoleCreated with default headers values

func (*CreateRoleCreated) WriteResponse

func (o *CreateRoleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateRoleForbidden

type CreateRoleForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

CreateRoleForbidden Forbidden

swagger:response createRoleForbidden

func NewCreateRoleForbidden

func NewCreateRoleForbidden() *CreateRoleForbidden

NewCreateRoleForbidden creates CreateRoleForbidden with default headers values

func (*CreateRoleForbidden) SetPayload

func (o *CreateRoleForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the create role forbidden response

func (*CreateRoleForbidden) WithPayload

func (o *CreateRoleForbidden) WithPayload(payload *models.ErrorResponse) *CreateRoleForbidden

WithPayload adds the payload to the create role forbidden response

func (*CreateRoleForbidden) WriteResponse

func (o *CreateRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateRoleHandler

type CreateRoleHandler interface {
	Handle(CreateRoleParams, *models.Principal) middleware.Responder
}

CreateRoleHandler interface for that can handle valid create role params

type CreateRoleHandlerFunc

type CreateRoleHandlerFunc func(CreateRoleParams, *models.Principal) middleware.Responder

CreateRoleHandlerFunc turns a function with the right signature into a create role handler

func (CreateRoleHandlerFunc) Handle

Handle executing the request and returning a response

type CreateRoleInternalServerError

type CreateRoleInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response createRoleInternalServerError

func NewCreateRoleInternalServerError

func NewCreateRoleInternalServerError() *CreateRoleInternalServerError

NewCreateRoleInternalServerError creates CreateRoleInternalServerError with default headers values

func (*CreateRoleInternalServerError) SetPayload

func (o *CreateRoleInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the create role internal server error response

func (*CreateRoleInternalServerError) WithPayload

WithPayload adds the payload to the create role internal server error response

func (*CreateRoleInternalServerError) WriteResponse

func (o *CreateRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateRoleParams

type CreateRoleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *models.Role
}

CreateRoleParams contains all the bound params for the create role operation typically these are obtained from a http.Request

swagger:parameters createRole

func NewCreateRoleParams

func NewCreateRoleParams() CreateRoleParams

NewCreateRoleParams creates a new CreateRoleParams object

There are no default values defined in the spec.

func (*CreateRoleParams) BindRequest

func (o *CreateRoleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateRoleParams() beforehand.

type CreateRoleURL

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

CreateRoleURL generates an URL for the create role operation

func (*CreateRoleURL) Build

func (o *CreateRoleURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateRoleURL) BuildFull

func (o *CreateRoleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateRoleURL) Must

func (o *CreateRoleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateRoleURL) SetBasePath

func (o *CreateRoleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateRoleURL) String

func (o *CreateRoleURL) String() string

String returns the string representation of the path with query string

func (*CreateRoleURL) StringFull

func (o *CreateRoleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateRoleURL) WithBasePath

func (o *CreateRoleURL) WithBasePath(bp string) *CreateRoleURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreateRoleUnauthorized

type CreateRoleUnauthorized struct {
}

CreateRoleUnauthorized Unauthorized or invalid credentials.

swagger:response createRoleUnauthorized

func NewCreateRoleUnauthorized

func NewCreateRoleUnauthorized() *CreateRoleUnauthorized

NewCreateRoleUnauthorized creates CreateRoleUnauthorized with default headers values

func (*CreateRoleUnauthorized) WriteResponse

func (o *CreateRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateRoleUnprocessableEntity

type CreateRoleUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response createRoleUnprocessableEntity

func NewCreateRoleUnprocessableEntity

func NewCreateRoleUnprocessableEntity() *CreateRoleUnprocessableEntity

NewCreateRoleUnprocessableEntity creates CreateRoleUnprocessableEntity with default headers values

func (*CreateRoleUnprocessableEntity) SetPayload

func (o *CreateRoleUnprocessableEntity) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the create role unprocessable entity response

func (*CreateRoleUnprocessableEntity) WithPayload

WithPayload adds the payload to the create role unprocessable entity response

func (*CreateRoleUnprocessableEntity) WriteResponse

func (o *CreateRoleUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteRole

type DeleteRole struct {
	Context *middleware.Context
	Handler DeleteRoleHandler
}
DeleteRole swagger:route DELETE /authz/roles/{id} authz deleteRole

Delete role

func NewDeleteRole

func NewDeleteRole(ctx *middleware.Context, handler DeleteRoleHandler) *DeleteRole

NewDeleteRole creates a new http.Handler for the delete role operation

func (*DeleteRole) ServeHTTP

func (o *DeleteRole) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteRoleBadRequest

type DeleteRoleBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

DeleteRoleBadRequest Bad request

swagger:response deleteRoleBadRequest

func NewDeleteRoleBadRequest

func NewDeleteRoleBadRequest() *DeleteRoleBadRequest

NewDeleteRoleBadRequest creates DeleteRoleBadRequest with default headers values

func (*DeleteRoleBadRequest) SetPayload

func (o *DeleteRoleBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the delete role bad request response

func (*DeleteRoleBadRequest) WithPayload

WithPayload adds the payload to the delete role bad request response

func (*DeleteRoleBadRequest) WriteResponse

func (o *DeleteRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteRoleForbidden

type DeleteRoleForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

DeleteRoleForbidden Forbidden

swagger:response deleteRoleForbidden

func NewDeleteRoleForbidden

func NewDeleteRoleForbidden() *DeleteRoleForbidden

NewDeleteRoleForbidden creates DeleteRoleForbidden with default headers values

func (*DeleteRoleForbidden) SetPayload

func (o *DeleteRoleForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the delete role forbidden response

func (*DeleteRoleForbidden) WithPayload

func (o *DeleteRoleForbidden) WithPayload(payload *models.ErrorResponse) *DeleteRoleForbidden

WithPayload adds the payload to the delete role forbidden response

func (*DeleteRoleForbidden) WriteResponse

func (o *DeleteRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteRoleHandler

type DeleteRoleHandler interface {
	Handle(DeleteRoleParams, *models.Principal) middleware.Responder
}

DeleteRoleHandler interface for that can handle valid delete role params

type DeleteRoleHandlerFunc

type DeleteRoleHandlerFunc func(DeleteRoleParams, *models.Principal) middleware.Responder

DeleteRoleHandlerFunc turns a function with the right signature into a delete role handler

func (DeleteRoleHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteRoleInternalServerError

type DeleteRoleInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response deleteRoleInternalServerError

func NewDeleteRoleInternalServerError

func NewDeleteRoleInternalServerError() *DeleteRoleInternalServerError

NewDeleteRoleInternalServerError creates DeleteRoleInternalServerError with default headers values

func (*DeleteRoleInternalServerError) SetPayload

func (o *DeleteRoleInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the delete role internal server error response

func (*DeleteRoleInternalServerError) WithPayload

WithPayload adds the payload to the delete role internal server error response

func (*DeleteRoleInternalServerError) WriteResponse

func (o *DeleteRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteRoleNoContent

type DeleteRoleNoContent struct {
}

DeleteRoleNoContent Successfully deleted.

swagger:response deleteRoleNoContent

func NewDeleteRoleNoContent

func NewDeleteRoleNoContent() *DeleteRoleNoContent

NewDeleteRoleNoContent creates DeleteRoleNoContent with default headers values

func (*DeleteRoleNoContent) WriteResponse

func (o *DeleteRoleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteRoleParams

type DeleteRoleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*role ID
	  Required: true
	  In: path
	*/
	ID string
}

DeleteRoleParams contains all the bound params for the delete role operation typically these are obtained from a http.Request

swagger:parameters deleteRole

func NewDeleteRoleParams

func NewDeleteRoleParams() DeleteRoleParams

NewDeleteRoleParams creates a new DeleteRoleParams object

There are no default values defined in the spec.

func (*DeleteRoleParams) BindRequest

func (o *DeleteRoleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeleteRoleParams() beforehand.

type DeleteRoleURL

type DeleteRoleURL struct {
	ID string
	// contains filtered or unexported fields
}

DeleteRoleURL generates an URL for the delete role operation

func (*DeleteRoleURL) Build

func (o *DeleteRoleURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteRoleURL) BuildFull

func (o *DeleteRoleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteRoleURL) Must

func (o *DeleteRoleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteRoleURL) SetBasePath

func (o *DeleteRoleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteRoleURL) String

func (o *DeleteRoleURL) String() string

String returns the string representation of the path with query string

func (*DeleteRoleURL) StringFull

func (o *DeleteRoleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteRoleURL) WithBasePath

func (o *DeleteRoleURL) WithBasePath(bp string) *DeleteRoleURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeleteRoleUnauthorized

type DeleteRoleUnauthorized struct {
}

DeleteRoleUnauthorized Unauthorized or invalid credentials.

swagger:response deleteRoleUnauthorized

func NewDeleteRoleUnauthorized

func NewDeleteRoleUnauthorized() *DeleteRoleUnauthorized

NewDeleteRoleUnauthorized creates DeleteRoleUnauthorized with default headers values

func (*DeleteRoleUnauthorized) WriteResponse

func (o *DeleteRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRole

type GetRole struct {
	Context *middleware.Context
	Handler GetRoleHandler
}
GetRole swagger:route GET /authz/roles/{id} authz getRole

Get a role

func NewGetRole

func NewGetRole(ctx *middleware.Context, handler GetRoleHandler) *GetRole

NewGetRole creates a new http.Handler for the get role operation

func (*GetRole) ServeHTTP

func (o *GetRole) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetRoleBadRequest

type GetRoleBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetRoleBadRequest Malformed request.

swagger:response getRoleBadRequest

func NewGetRoleBadRequest

func NewGetRoleBadRequest() *GetRoleBadRequest

NewGetRoleBadRequest creates GetRoleBadRequest with default headers values

func (*GetRoleBadRequest) SetPayload

func (o *GetRoleBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get role bad request response

func (*GetRoleBadRequest) WithPayload

func (o *GetRoleBadRequest) WithPayload(payload *models.ErrorResponse) *GetRoleBadRequest

WithPayload adds the payload to the get role bad request response

func (*GetRoleBadRequest) WriteResponse

func (o *GetRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRoleForbidden

type GetRoleForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetRoleForbidden Forbidden

swagger:response getRoleForbidden

func NewGetRoleForbidden

func NewGetRoleForbidden() *GetRoleForbidden

NewGetRoleForbidden creates GetRoleForbidden with default headers values

func (*GetRoleForbidden) SetPayload

func (o *GetRoleForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get role forbidden response

func (*GetRoleForbidden) WithPayload

func (o *GetRoleForbidden) WithPayload(payload *models.ErrorResponse) *GetRoleForbidden

WithPayload adds the payload to the get role forbidden response

func (*GetRoleForbidden) WriteResponse

func (o *GetRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRoleHandler

type GetRoleHandler interface {
	Handle(GetRoleParams, *models.Principal) middleware.Responder
}

GetRoleHandler interface for that can handle valid get role params

type GetRoleHandlerFunc

type GetRoleHandlerFunc func(GetRoleParams, *models.Principal) middleware.Responder

GetRoleHandlerFunc turns a function with the right signature into a get role handler

func (GetRoleHandlerFunc) Handle

func (fn GetRoleHandlerFunc) Handle(params GetRoleParams, principal *models.Principal) middleware.Responder

Handle executing the request and returning a response

type GetRoleInternalServerError

type GetRoleInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response getRoleInternalServerError

func NewGetRoleInternalServerError

func NewGetRoleInternalServerError() *GetRoleInternalServerError

NewGetRoleInternalServerError creates GetRoleInternalServerError with default headers values

func (*GetRoleInternalServerError) SetPayload

func (o *GetRoleInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get role internal server error response

func (*GetRoleInternalServerError) WithPayload

WithPayload adds the payload to the get role internal server error response

func (*GetRoleInternalServerError) WriteResponse

func (o *GetRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRoleNotFound

type GetRoleNotFound struct {
}

GetRoleNotFound no role found

swagger:response getRoleNotFound

func NewGetRoleNotFound

func NewGetRoleNotFound() *GetRoleNotFound

NewGetRoleNotFound creates GetRoleNotFound with default headers values

func (*GetRoleNotFound) WriteResponse

func (o *GetRoleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRoleOK

type GetRoleOK struct {

	/*
	  In: Body
	*/
	Payload *models.Role `json:"body,omitempty"`
}

GetRoleOK Successful response.

swagger:response getRoleOK

func NewGetRoleOK

func NewGetRoleOK() *GetRoleOK

NewGetRoleOK creates GetRoleOK with default headers values

func (*GetRoleOK) SetPayload

func (o *GetRoleOK) SetPayload(payload *models.Role)

SetPayload sets the payload to the get role o k response

func (*GetRoleOK) WithPayload

func (o *GetRoleOK) WithPayload(payload *models.Role) *GetRoleOK

WithPayload adds the payload to the get role o k response

func (*GetRoleOK) WriteResponse

func (o *GetRoleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRoleParams

type GetRoleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*role ID
	  Required: true
	  In: path
	*/
	ID string
}

GetRoleParams contains all the bound params for the get role operation typically these are obtained from a http.Request

swagger:parameters getRole

func NewGetRoleParams

func NewGetRoleParams() GetRoleParams

NewGetRoleParams creates a new GetRoleParams object

There are no default values defined in the spec.

func (*GetRoleParams) BindRequest

func (o *GetRoleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetRoleParams() beforehand.

type GetRoleURL

type GetRoleURL struct {
	ID string
	// contains filtered or unexported fields
}

GetRoleURL generates an URL for the get role operation

func (*GetRoleURL) Build

func (o *GetRoleURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetRoleURL) BuildFull

func (o *GetRoleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetRoleURL) Must

func (o *GetRoleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetRoleURL) SetBasePath

func (o *GetRoleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetRoleURL) String

func (o *GetRoleURL) String() string

String returns the string representation of the path with query string

func (*GetRoleURL) StringFull

func (o *GetRoleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetRoleURL) WithBasePath

func (o *GetRoleURL) WithBasePath(bp string) *GetRoleURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetRoleUnauthorized

type GetRoleUnauthorized struct {
}

GetRoleUnauthorized Unauthorized or invalid credentials.

swagger:response getRoleUnauthorized

func NewGetRoleUnauthorized

func NewGetRoleUnauthorized() *GetRoleUnauthorized

NewGetRoleUnauthorized creates GetRoleUnauthorized with default headers values

func (*GetRoleUnauthorized) WriteResponse

func (o *GetRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRoles

type GetRoles struct {
	Context *middleware.Context
	Handler GetRolesHandler
}
GetRoles swagger:route GET /authz/roles authz getRoles

Get all roles

func NewGetRoles

func NewGetRoles(ctx *middleware.Context, handler GetRolesHandler) *GetRoles

NewGetRoles creates a new http.Handler for the get roles operation

func (*GetRoles) ServeHTTP

func (o *GetRoles) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetRolesBadRequest

type GetRolesBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetRolesBadRequest Malformed request.

swagger:response getRolesBadRequest

func NewGetRolesBadRequest

func NewGetRolesBadRequest() *GetRolesBadRequest

NewGetRolesBadRequest creates GetRolesBadRequest with default headers values

func (*GetRolesBadRequest) SetPayload

func (o *GetRolesBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get roles bad request response

func (*GetRolesBadRequest) WithPayload

func (o *GetRolesBadRequest) WithPayload(payload *models.ErrorResponse) *GetRolesBadRequest

WithPayload adds the payload to the get roles bad request response

func (*GetRolesBadRequest) WriteResponse

func (o *GetRolesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRolesForOwnUser

type GetRolesForOwnUser struct {
	Context *middleware.Context
	Handler GetRolesForOwnUserHandler
}
GetRolesForOwnUser swagger:route GET /authz/users/own-roles authz getRolesForOwnUser

get roles assigned to own user

func NewGetRolesForOwnUser

func NewGetRolesForOwnUser(ctx *middleware.Context, handler GetRolesForOwnUserHandler) *GetRolesForOwnUser

NewGetRolesForOwnUser creates a new http.Handler for the get roles for own user operation

func (*GetRolesForOwnUser) ServeHTTP

func (o *GetRolesForOwnUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetRolesForOwnUserHandler

type GetRolesForOwnUserHandler interface {
	Handle(GetRolesForOwnUserParams, *models.Principal) middleware.Responder
}

GetRolesForOwnUserHandler interface for that can handle valid get roles for own user params

type GetRolesForOwnUserHandlerFunc

type GetRolesForOwnUserHandlerFunc func(GetRolesForOwnUserParams, *models.Principal) middleware.Responder

GetRolesForOwnUserHandlerFunc turns a function with the right signature into a get roles for own user handler

func (GetRolesForOwnUserHandlerFunc) Handle

Handle executing the request and returning a response

type GetRolesForOwnUserInternalServerError

type GetRolesForOwnUserInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response getRolesForOwnUserInternalServerError

func NewGetRolesForOwnUserInternalServerError

func NewGetRolesForOwnUserInternalServerError() *GetRolesForOwnUserInternalServerError

NewGetRolesForOwnUserInternalServerError creates GetRolesForOwnUserInternalServerError with default headers values

func (*GetRolesForOwnUserInternalServerError) SetPayload

SetPayload sets the payload to the get roles for own user internal server error response

func (*GetRolesForOwnUserInternalServerError) WithPayload

WithPayload adds the payload to the get roles for own user internal server error response

func (*GetRolesForOwnUserInternalServerError) WriteResponse

WriteResponse to the client

type GetRolesForOwnUserOK

type GetRolesForOwnUserOK struct {

	/*
	  In: Body
	*/
	Payload models.RolesListResponse `json:"body,omitempty"`
}

GetRolesForOwnUserOK Role assigned to own users

swagger:response getRolesForOwnUserOK

func NewGetRolesForOwnUserOK

func NewGetRolesForOwnUserOK() *GetRolesForOwnUserOK

NewGetRolesForOwnUserOK creates GetRolesForOwnUserOK with default headers values

func (*GetRolesForOwnUserOK) SetPayload

func (o *GetRolesForOwnUserOK) SetPayload(payload models.RolesListResponse)

SetPayload sets the payload to the get roles for own user o k response

func (*GetRolesForOwnUserOK) WithPayload

WithPayload adds the payload to the get roles for own user o k response

func (*GetRolesForOwnUserOK) WriteResponse

func (o *GetRolesForOwnUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRolesForOwnUserParams

type GetRolesForOwnUserParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetRolesForOwnUserParams contains all the bound params for the get roles for own user operation typically these are obtained from a http.Request

swagger:parameters getRolesForOwnUser

func NewGetRolesForOwnUserParams

func NewGetRolesForOwnUserParams() GetRolesForOwnUserParams

NewGetRolesForOwnUserParams creates a new GetRolesForOwnUserParams object

There are no default values defined in the spec.

func (*GetRolesForOwnUserParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetRolesForOwnUserParams() beforehand.

type GetRolesForOwnUserURL

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

GetRolesForOwnUserURL generates an URL for the get roles for own user operation

func (*GetRolesForOwnUserURL) Build

func (o *GetRolesForOwnUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetRolesForOwnUserURL) BuildFull

func (o *GetRolesForOwnUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetRolesForOwnUserURL) Must

func (o *GetRolesForOwnUserURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetRolesForOwnUserURL) SetBasePath

func (o *GetRolesForOwnUserURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetRolesForOwnUserURL) String

func (o *GetRolesForOwnUserURL) String() string

String returns the string representation of the path with query string

func (*GetRolesForOwnUserURL) StringFull

func (o *GetRolesForOwnUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetRolesForOwnUserURL) WithBasePath

func (o *GetRolesForOwnUserURL) WithBasePath(bp string) *GetRolesForOwnUserURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetRolesForOwnUserUnauthorized

type GetRolesForOwnUserUnauthorized struct {
}

GetRolesForOwnUserUnauthorized Unauthorized or invalid credentials.

swagger:response getRolesForOwnUserUnauthorized

func NewGetRolesForOwnUserUnauthorized

func NewGetRolesForOwnUserUnauthorized() *GetRolesForOwnUserUnauthorized

NewGetRolesForOwnUserUnauthorized creates GetRolesForOwnUserUnauthorized with default headers values

func (*GetRolesForOwnUserUnauthorized) WriteResponse

func (o *GetRolesForOwnUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRolesForUser

type GetRolesForUser struct {
	Context *middleware.Context
	Handler GetRolesForUserHandler
}
GetRolesForUser swagger:route GET /authz/users/{id}/roles authz getRolesForUser

get roles assigned to user

func NewGetRolesForUser

func NewGetRolesForUser(ctx *middleware.Context, handler GetRolesForUserHandler) *GetRolesForUser

NewGetRolesForUser creates a new http.Handler for the get roles for user operation

func (*GetRolesForUser) ServeHTTP

func (o *GetRolesForUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetRolesForUserBadRequest

type GetRolesForUserBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetRolesForUserBadRequest Bad request

swagger:response getRolesForUserBadRequest

func NewGetRolesForUserBadRequest

func NewGetRolesForUserBadRequest() *GetRolesForUserBadRequest

NewGetRolesForUserBadRequest creates GetRolesForUserBadRequest with default headers values

func (*GetRolesForUserBadRequest) SetPayload

func (o *GetRolesForUserBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get roles for user bad request response

func (*GetRolesForUserBadRequest) WithPayload

WithPayload adds the payload to the get roles for user bad request response

func (*GetRolesForUserBadRequest) WriteResponse

func (o *GetRolesForUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRolesForUserForbidden

type GetRolesForUserForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetRolesForUserForbidden Forbidden

swagger:response getRolesForUserForbidden

func NewGetRolesForUserForbidden

func NewGetRolesForUserForbidden() *GetRolesForUserForbidden

NewGetRolesForUserForbidden creates GetRolesForUserForbidden with default headers values

func (*GetRolesForUserForbidden) SetPayload

func (o *GetRolesForUserForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get roles for user forbidden response

func (*GetRolesForUserForbidden) WithPayload

WithPayload adds the payload to the get roles for user forbidden response

func (*GetRolesForUserForbidden) WriteResponse

func (o *GetRolesForUserForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRolesForUserHandler

type GetRolesForUserHandler interface {
	Handle(GetRolesForUserParams, *models.Principal) middleware.Responder
}

GetRolesForUserHandler interface for that can handle valid get roles for user params

type GetRolesForUserHandlerFunc

type GetRolesForUserHandlerFunc func(GetRolesForUserParams, *models.Principal) middleware.Responder

GetRolesForUserHandlerFunc turns a function with the right signature into a get roles for user handler

func (GetRolesForUserHandlerFunc) Handle

Handle executing the request and returning a response

type GetRolesForUserInternalServerError

type GetRolesForUserInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response getRolesForUserInternalServerError

func NewGetRolesForUserInternalServerError

func NewGetRolesForUserInternalServerError() *GetRolesForUserInternalServerError

NewGetRolesForUserInternalServerError creates GetRolesForUserInternalServerError with default headers values

func (*GetRolesForUserInternalServerError) SetPayload

SetPayload sets the payload to the get roles for user internal server error response

func (*GetRolesForUserInternalServerError) WithPayload

WithPayload adds the payload to the get roles for user internal server error response

func (*GetRolesForUserInternalServerError) WriteResponse

WriteResponse to the client

type GetRolesForUserNotFound

type GetRolesForUserNotFound struct {
}

GetRolesForUserNotFound no role found for user

swagger:response getRolesForUserNotFound

func NewGetRolesForUserNotFound

func NewGetRolesForUserNotFound() *GetRolesForUserNotFound

NewGetRolesForUserNotFound creates GetRolesForUserNotFound with default headers values

func (*GetRolesForUserNotFound) WriteResponse

func (o *GetRolesForUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRolesForUserOK

type GetRolesForUserOK struct {

	/*
	  In: Body
	*/
	Payload models.RolesListResponse `json:"body,omitempty"`
}

GetRolesForUserOK Role assigned users

swagger:response getRolesForUserOK

func NewGetRolesForUserOK

func NewGetRolesForUserOK() *GetRolesForUserOK

NewGetRolesForUserOK creates GetRolesForUserOK with default headers values

func (*GetRolesForUserOK) SetPayload

func (o *GetRolesForUserOK) SetPayload(payload models.RolesListResponse)

SetPayload sets the payload to the get roles for user o k response

func (*GetRolesForUserOK) WithPayload

WithPayload adds the payload to the get roles for user o k response

func (*GetRolesForUserOK) WriteResponse

func (o *GetRolesForUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRolesForUserParams

type GetRolesForUserParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*user name
	  Required: true
	  In: path
	*/
	ID string
}

GetRolesForUserParams contains all the bound params for the get roles for user operation typically these are obtained from a http.Request

swagger:parameters getRolesForUser

func NewGetRolesForUserParams

func NewGetRolesForUserParams() GetRolesForUserParams

NewGetRolesForUserParams creates a new GetRolesForUserParams object

There are no default values defined in the spec.

func (*GetRolesForUserParams) BindRequest

func (o *GetRolesForUserParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetRolesForUserParams() beforehand.

type GetRolesForUserURL

type GetRolesForUserURL struct {
	ID string
	// contains filtered or unexported fields
}

GetRolesForUserURL generates an URL for the get roles for user operation

func (*GetRolesForUserURL) Build

func (o *GetRolesForUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetRolesForUserURL) BuildFull

func (o *GetRolesForUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetRolesForUserURL) Must

func (o *GetRolesForUserURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetRolesForUserURL) SetBasePath

func (o *GetRolesForUserURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetRolesForUserURL) String

func (o *GetRolesForUserURL) String() string

String returns the string representation of the path with query string

func (*GetRolesForUserURL) StringFull

func (o *GetRolesForUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetRolesForUserURL) WithBasePath

func (o *GetRolesForUserURL) WithBasePath(bp string) *GetRolesForUserURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetRolesForUserUnauthorized

type GetRolesForUserUnauthorized struct {
}

GetRolesForUserUnauthorized Unauthorized or invalid credentials.

swagger:response getRolesForUserUnauthorized

func NewGetRolesForUserUnauthorized

func NewGetRolesForUserUnauthorized() *GetRolesForUserUnauthorized

NewGetRolesForUserUnauthorized creates GetRolesForUserUnauthorized with default headers values

func (*GetRolesForUserUnauthorized) WriteResponse

func (o *GetRolesForUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRolesForbidden

type GetRolesForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetRolesForbidden Forbidden

swagger:response getRolesForbidden

func NewGetRolesForbidden

func NewGetRolesForbidden() *GetRolesForbidden

NewGetRolesForbidden creates GetRolesForbidden with default headers values

func (*GetRolesForbidden) SetPayload

func (o *GetRolesForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get roles forbidden response

func (*GetRolesForbidden) WithPayload

func (o *GetRolesForbidden) WithPayload(payload *models.ErrorResponse) *GetRolesForbidden

WithPayload adds the payload to the get roles forbidden response

func (*GetRolesForbidden) WriteResponse

func (o *GetRolesForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRolesHandler

type GetRolesHandler interface {
	Handle(GetRolesParams, *models.Principal) middleware.Responder
}

GetRolesHandler interface for that can handle valid get roles params

type GetRolesHandlerFunc

type GetRolesHandlerFunc func(GetRolesParams, *models.Principal) middleware.Responder

GetRolesHandlerFunc turns a function with the right signature into a get roles handler

func (GetRolesHandlerFunc) Handle

Handle executing the request and returning a response

type GetRolesInternalServerError

type GetRolesInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response getRolesInternalServerError

func NewGetRolesInternalServerError

func NewGetRolesInternalServerError() *GetRolesInternalServerError

NewGetRolesInternalServerError creates GetRolesInternalServerError with default headers values

func (*GetRolesInternalServerError) SetPayload

func (o *GetRolesInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get roles internal server error response

func (*GetRolesInternalServerError) WithPayload

WithPayload adds the payload to the get roles internal server error response

func (*GetRolesInternalServerError) WriteResponse

func (o *GetRolesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRolesOK

type GetRolesOK struct {

	/*
	  In: Body
	*/
	Payload models.RolesListResponse `json:"body,omitempty"`
}

GetRolesOK Successful response.

swagger:response getRolesOK

func NewGetRolesOK

func NewGetRolesOK() *GetRolesOK

NewGetRolesOK creates GetRolesOK with default headers values

func (*GetRolesOK) SetPayload

func (o *GetRolesOK) SetPayload(payload models.RolesListResponse)

SetPayload sets the payload to the get roles o k response

func (*GetRolesOK) WithPayload

func (o *GetRolesOK) WithPayload(payload models.RolesListResponse) *GetRolesOK

WithPayload adds the payload to the get roles o k response

func (*GetRolesOK) WriteResponse

func (o *GetRolesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetRolesParams

type GetRolesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetRolesParams contains all the bound params for the get roles operation typically these are obtained from a http.Request

swagger:parameters getRoles

func NewGetRolesParams

func NewGetRolesParams() GetRolesParams

NewGetRolesParams creates a new GetRolesParams object

There are no default values defined in the spec.

func (*GetRolesParams) BindRequest

func (o *GetRolesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetRolesParams() beforehand.

type GetRolesURL

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

GetRolesURL generates an URL for the get roles operation

func (*GetRolesURL) Build

func (o *GetRolesURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetRolesURL) BuildFull

func (o *GetRolesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetRolesURL) Must

func (o *GetRolesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetRolesURL) SetBasePath

func (o *GetRolesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetRolesURL) String

func (o *GetRolesURL) String() string

String returns the string representation of the path with query string

func (*GetRolesURL) StringFull

func (o *GetRolesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetRolesURL) WithBasePath

func (o *GetRolesURL) WithBasePath(bp string) *GetRolesURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetRolesUnauthorized

type GetRolesUnauthorized struct {
}

GetRolesUnauthorized Unauthorized or invalid credentials.

swagger:response getRolesUnauthorized

func NewGetRolesUnauthorized

func NewGetRolesUnauthorized() *GetRolesUnauthorized

NewGetRolesUnauthorized creates GetRolesUnauthorized with default headers values

func (*GetRolesUnauthorized) WriteResponse

func (o *GetRolesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUsersForRole

type GetUsersForRole struct {
	Context *middleware.Context
	Handler GetUsersForRoleHandler
}
GetUsersForRole swagger:route GET /authz/roles/{id}/users authz getUsersForRole

get users or a keys assigned to role

func NewGetUsersForRole

func NewGetUsersForRole(ctx *middleware.Context, handler GetUsersForRoleHandler) *GetUsersForRole

NewGetUsersForRole creates a new http.Handler for the get users for role operation

func (*GetUsersForRole) ServeHTTP

func (o *GetUsersForRole) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetUsersForRoleBadRequest

type GetUsersForRoleBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetUsersForRoleBadRequest Bad request

swagger:response getUsersForRoleBadRequest

func NewGetUsersForRoleBadRequest

func NewGetUsersForRoleBadRequest() *GetUsersForRoleBadRequest

NewGetUsersForRoleBadRequest creates GetUsersForRoleBadRequest with default headers values

func (*GetUsersForRoleBadRequest) SetPayload

func (o *GetUsersForRoleBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get users for role bad request response

func (*GetUsersForRoleBadRequest) WithPayload

WithPayload adds the payload to the get users for role bad request response

func (*GetUsersForRoleBadRequest) WriteResponse

func (o *GetUsersForRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUsersForRoleForbidden

type GetUsersForRoleForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

GetUsersForRoleForbidden Forbidden

swagger:response getUsersForRoleForbidden

func NewGetUsersForRoleForbidden

func NewGetUsersForRoleForbidden() *GetUsersForRoleForbidden

NewGetUsersForRoleForbidden creates GetUsersForRoleForbidden with default headers values

func (*GetUsersForRoleForbidden) SetPayload

func (o *GetUsersForRoleForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get users for role forbidden response

func (*GetUsersForRoleForbidden) WithPayload

WithPayload adds the payload to the get users for role forbidden response

func (*GetUsersForRoleForbidden) WriteResponse

func (o *GetUsersForRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUsersForRoleHandler

type GetUsersForRoleHandler interface {
	Handle(GetUsersForRoleParams, *models.Principal) middleware.Responder
}

GetUsersForRoleHandler interface for that can handle valid get users for role params

type GetUsersForRoleHandlerFunc

type GetUsersForRoleHandlerFunc func(GetUsersForRoleParams, *models.Principal) middleware.Responder

GetUsersForRoleHandlerFunc turns a function with the right signature into a get users for role handler

func (GetUsersForRoleHandlerFunc) Handle

Handle executing the request and returning a response

type GetUsersForRoleInternalServerError

type GetUsersForRoleInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response getUsersForRoleInternalServerError

func NewGetUsersForRoleInternalServerError

func NewGetUsersForRoleInternalServerError() *GetUsersForRoleInternalServerError

NewGetUsersForRoleInternalServerError creates GetUsersForRoleInternalServerError with default headers values

func (*GetUsersForRoleInternalServerError) SetPayload

SetPayload sets the payload to the get users for role internal server error response

func (*GetUsersForRoleInternalServerError) WithPayload

WithPayload adds the payload to the get users for role internal server error response

func (*GetUsersForRoleInternalServerError) WriteResponse

WriteResponse to the client

type GetUsersForRoleNotFound

type GetUsersForRoleNotFound struct {
}

GetUsersForRoleNotFound no role found for user

swagger:response getUsersForRoleNotFound

func NewGetUsersForRoleNotFound

func NewGetUsersForRoleNotFound() *GetUsersForRoleNotFound

NewGetUsersForRoleNotFound creates GetUsersForRoleNotFound with default headers values

func (*GetUsersForRoleNotFound) WriteResponse

func (o *GetUsersForRoleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUsersForRoleOK

type GetUsersForRoleOK struct {

	/*
	  In: Body
	*/
	Payload []string `json:"body,omitempty"`
}

GetUsersForRoleOK Users assigned to this role

swagger:response getUsersForRoleOK

func NewGetUsersForRoleOK

func NewGetUsersForRoleOK() *GetUsersForRoleOK

NewGetUsersForRoleOK creates GetUsersForRoleOK with default headers values

func (*GetUsersForRoleOK) SetPayload

func (o *GetUsersForRoleOK) SetPayload(payload []string)

SetPayload sets the payload to the get users for role o k response

func (*GetUsersForRoleOK) WithPayload

func (o *GetUsersForRoleOK) WithPayload(payload []string) *GetUsersForRoleOK

WithPayload adds the payload to the get users for role o k response

func (*GetUsersForRoleOK) WriteResponse

func (o *GetUsersForRoleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUsersForRoleParams

type GetUsersForRoleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*role ID
	  Required: true
	  In: path
	*/
	ID string
}

GetUsersForRoleParams contains all the bound params for the get users for role operation typically these are obtained from a http.Request

swagger:parameters getUsersForRole

func NewGetUsersForRoleParams

func NewGetUsersForRoleParams() GetUsersForRoleParams

NewGetUsersForRoleParams creates a new GetUsersForRoleParams object

There are no default values defined in the spec.

func (*GetUsersForRoleParams) BindRequest

func (o *GetUsersForRoleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetUsersForRoleParams() beforehand.

type GetUsersForRoleURL

type GetUsersForRoleURL struct {
	ID string
	// contains filtered or unexported fields
}

GetUsersForRoleURL generates an URL for the get users for role operation

func (*GetUsersForRoleURL) Build

func (o *GetUsersForRoleURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetUsersForRoleURL) BuildFull

func (o *GetUsersForRoleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetUsersForRoleURL) Must

func (o *GetUsersForRoleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetUsersForRoleURL) SetBasePath

func (o *GetUsersForRoleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetUsersForRoleURL) String

func (o *GetUsersForRoleURL) String() string

String returns the string representation of the path with query string

func (*GetUsersForRoleURL) StringFull

func (o *GetUsersForRoleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetUsersForRoleURL) WithBasePath

func (o *GetUsersForRoleURL) WithBasePath(bp string) *GetUsersForRoleURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetUsersForRoleUnauthorized

type GetUsersForRoleUnauthorized struct {
}

GetUsersForRoleUnauthorized Unauthorized or invalid credentials.

swagger:response getUsersForRoleUnauthorized

func NewGetUsersForRoleUnauthorized

func NewGetUsersForRoleUnauthorized() *GetUsersForRoleUnauthorized

NewGetUsersForRoleUnauthorized creates GetUsersForRoleUnauthorized with default headers values

func (*GetUsersForRoleUnauthorized) WriteResponse

func (o *GetUsersForRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RemovePermissions

type RemovePermissions struct {
	Context *middleware.Context
	Handler RemovePermissionsHandler
}
RemovePermissions swagger:route POST /authz/roles/remove-permissions authz removePermissions

Remove permissions from a role. If this results in an empty role, the role will be deleted.

func NewRemovePermissions

func NewRemovePermissions(ctx *middleware.Context, handler RemovePermissionsHandler) *RemovePermissions

NewRemovePermissions creates a new http.Handler for the remove permissions operation

func (*RemovePermissions) ServeHTTP

func (o *RemovePermissions) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type RemovePermissionsBadRequest

type RemovePermissionsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

RemovePermissionsBadRequest Malformed request.

swagger:response removePermissionsBadRequest

func NewRemovePermissionsBadRequest

func NewRemovePermissionsBadRequest() *RemovePermissionsBadRequest

NewRemovePermissionsBadRequest creates RemovePermissionsBadRequest with default headers values

func (*RemovePermissionsBadRequest) SetPayload

func (o *RemovePermissionsBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the remove permissions bad request response

func (*RemovePermissionsBadRequest) WithPayload

WithPayload adds the payload to the remove permissions bad request response

func (*RemovePermissionsBadRequest) WriteResponse

func (o *RemovePermissionsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RemovePermissionsBody

type RemovePermissionsBody struct {

	// role name
	// Required: true
	Name *string `json:"name" yaml:"name"`

	// permissions to remove from the role
	// Required: true
	Permissions []*models.Permission `json:"permissions" yaml:"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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

RemovePermissionsForbidden Forbidden

swagger:response removePermissionsForbidden

func NewRemovePermissionsForbidden

func NewRemovePermissionsForbidden() *RemovePermissionsForbidden

NewRemovePermissionsForbidden creates RemovePermissionsForbidden with default headers values

func (*RemovePermissionsForbidden) SetPayload

func (o *RemovePermissionsForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the remove permissions forbidden response

func (*RemovePermissionsForbidden) WithPayload

WithPayload adds the payload to the remove permissions forbidden response

func (*RemovePermissionsForbidden) WriteResponse

func (o *RemovePermissionsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RemovePermissionsHandler

type RemovePermissionsHandler interface {
	Handle(RemovePermissionsParams, *models.Principal) middleware.Responder
}

RemovePermissionsHandler interface for that can handle valid remove permissions params

type RemovePermissionsHandlerFunc

type RemovePermissionsHandlerFunc func(RemovePermissionsParams, *models.Principal) middleware.Responder

RemovePermissionsHandlerFunc turns a function with the right signature into a remove permissions handler

func (RemovePermissionsHandlerFunc) Handle

Handle executing the request and returning a response

type RemovePermissionsInternalServerError

type RemovePermissionsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response removePermissionsInternalServerError

func NewRemovePermissionsInternalServerError

func NewRemovePermissionsInternalServerError() *RemovePermissionsInternalServerError

NewRemovePermissionsInternalServerError creates RemovePermissionsInternalServerError with default headers values

func (*RemovePermissionsInternalServerError) SetPayload

SetPayload sets the payload to the remove permissions internal server error response

func (*RemovePermissionsInternalServerError) WithPayload

WithPayload adds the payload to the remove permissions internal server error response

func (*RemovePermissionsInternalServerError) WriteResponse

WriteResponse to the client

type RemovePermissionsOK

type RemovePermissionsOK struct {
}

RemovePermissionsOK Permissions removed successfully

swagger:response removePermissionsOK

func NewRemovePermissionsOK

func NewRemovePermissionsOK() *RemovePermissionsOK

NewRemovePermissionsOK creates RemovePermissionsOK with default headers values

func (*RemovePermissionsOK) WriteResponse

func (o *RemovePermissionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RemovePermissionsParams

type RemovePermissionsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body RemovePermissionsBody
}

RemovePermissionsParams contains all the bound params for the remove permissions operation typically these are obtained from a http.Request

swagger:parameters removePermissions

func NewRemovePermissionsParams

func NewRemovePermissionsParams() RemovePermissionsParams

NewRemovePermissionsParams creates a new RemovePermissionsParams object

There are no default values defined in the spec.

func (*RemovePermissionsParams) BindRequest

func (o *RemovePermissionsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewRemovePermissionsParams() beforehand.

type RemovePermissionsURL

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

RemovePermissionsURL generates an URL for the remove permissions operation

func (*RemovePermissionsURL) Build

func (o *RemovePermissionsURL) Build() (*url.URL, error)

Build a url path and query string

func (*RemovePermissionsURL) BuildFull

func (o *RemovePermissionsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*RemovePermissionsURL) Must

func (o *RemovePermissionsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*RemovePermissionsURL) SetBasePath

func (o *RemovePermissionsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*RemovePermissionsURL) String

func (o *RemovePermissionsURL) String() string

String returns the string representation of the path with query string

func (*RemovePermissionsURL) StringFull

func (o *RemovePermissionsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*RemovePermissionsURL) WithBasePath

func (o *RemovePermissionsURL) WithBasePath(bp string) *RemovePermissionsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type RemovePermissionsUnauthorized

type RemovePermissionsUnauthorized struct {
}

RemovePermissionsUnauthorized Unauthorized or invalid credentials.

swagger:response removePermissionsUnauthorized

func NewRemovePermissionsUnauthorized

func NewRemovePermissionsUnauthorized() *RemovePermissionsUnauthorized

NewRemovePermissionsUnauthorized creates RemovePermissionsUnauthorized with default headers values

func (*RemovePermissionsUnauthorized) WriteResponse

func (o *RemovePermissionsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RemovePermissionsUnprocessableEntity

type RemovePermissionsUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response removePermissionsUnprocessableEntity

func NewRemovePermissionsUnprocessableEntity

func NewRemovePermissionsUnprocessableEntity() *RemovePermissionsUnprocessableEntity

NewRemovePermissionsUnprocessableEntity creates RemovePermissionsUnprocessableEntity with default headers values

func (*RemovePermissionsUnprocessableEntity) SetPayload

SetPayload sets the payload to the remove permissions unprocessable entity response

func (*RemovePermissionsUnprocessableEntity) WithPayload

WithPayload adds the payload to the remove permissions unprocessable entity response

func (*RemovePermissionsUnprocessableEntity) WriteResponse

WriteResponse to the client

type RevokeRole

type RevokeRole struct {
	Context *middleware.Context
	Handler RevokeRoleHandler
}
RevokeRole swagger:route POST /authz/users/{id}/revoke authz revokeRole

Revoke a role from a user

func NewRevokeRole

func NewRevokeRole(ctx *middleware.Context, handler RevokeRoleHandler) *RevokeRole

NewRevokeRole creates a new http.Handler for the revoke role operation

func (*RevokeRole) ServeHTTP

func (o *RevokeRole) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type RevokeRoleBadRequest

type RevokeRoleBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

RevokeRoleBadRequest Bad request

swagger:response revokeRoleBadRequest

func NewRevokeRoleBadRequest

func NewRevokeRoleBadRequest() *RevokeRoleBadRequest

NewRevokeRoleBadRequest creates RevokeRoleBadRequest with default headers values

func (*RevokeRoleBadRequest) SetPayload

func (o *RevokeRoleBadRequest) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the revoke role bad request response

func (*RevokeRoleBadRequest) WithPayload

WithPayload adds the payload to the revoke role bad request response

func (*RevokeRoleBadRequest) WriteResponse

func (o *RevokeRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RevokeRoleBody

type RevokeRoleBody struct {

	// the roles that revoked from the key or user
	Roles []string `json:"roles" yaml:"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 {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

RevokeRoleForbidden Forbidden

swagger:response revokeRoleForbidden

func NewRevokeRoleForbidden

func NewRevokeRoleForbidden() *RevokeRoleForbidden

NewRevokeRoleForbidden creates RevokeRoleForbidden with default headers values

func (*RevokeRoleForbidden) SetPayload

func (o *RevokeRoleForbidden) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the revoke role forbidden response

func (*RevokeRoleForbidden) WithPayload

func (o *RevokeRoleForbidden) WithPayload(payload *models.ErrorResponse) *RevokeRoleForbidden

WithPayload adds the payload to the revoke role forbidden response

func (*RevokeRoleForbidden) WriteResponse

func (o *RevokeRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RevokeRoleHandler

type RevokeRoleHandler interface {
	Handle(RevokeRoleParams, *models.Principal) middleware.Responder
}

RevokeRoleHandler interface for that can handle valid revoke role params

type RevokeRoleHandlerFunc

type RevokeRoleHandlerFunc func(RevokeRoleParams, *models.Principal) middleware.Responder

RevokeRoleHandlerFunc turns a function with the right signature into a revoke role handler

func (RevokeRoleHandlerFunc) Handle

Handle executing the request and returning a response

type RevokeRoleInternalServerError

type RevokeRoleInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

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

swagger:response revokeRoleInternalServerError

func NewRevokeRoleInternalServerError

func NewRevokeRoleInternalServerError() *RevokeRoleInternalServerError

NewRevokeRoleInternalServerError creates RevokeRoleInternalServerError with default headers values

func (*RevokeRoleInternalServerError) SetPayload

func (o *RevokeRoleInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the revoke role internal server error response

func (*RevokeRoleInternalServerError) WithPayload

WithPayload adds the payload to the revoke role internal server error response

func (*RevokeRoleInternalServerError) WriteResponse

func (o *RevokeRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RevokeRoleNotFound

type RevokeRoleNotFound struct {
}

RevokeRoleNotFound role or user is not found.

swagger:response revokeRoleNotFound

func NewRevokeRoleNotFound

func NewRevokeRoleNotFound() *RevokeRoleNotFound

NewRevokeRoleNotFound creates RevokeRoleNotFound with default headers values

func (*RevokeRoleNotFound) WriteResponse

func (o *RevokeRoleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RevokeRoleOK

type RevokeRoleOK struct {
}

RevokeRoleOK Role revoked successfully

swagger:response revokeRoleOK

func NewRevokeRoleOK

func NewRevokeRoleOK() *RevokeRoleOK

NewRevokeRoleOK creates RevokeRoleOK with default headers values

func (*RevokeRoleOK) WriteResponse

func (o *RevokeRoleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type RevokeRoleParams

type RevokeRoleParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body RevokeRoleBody
	/*user name
	  Required: true
	  In: path
	*/
	ID string
}

RevokeRoleParams contains all the bound params for the revoke role operation typically these are obtained from a http.Request

swagger:parameters revokeRole

func NewRevokeRoleParams

func NewRevokeRoleParams() RevokeRoleParams

NewRevokeRoleParams creates a new RevokeRoleParams object

There are no default values defined in the spec.

func (*RevokeRoleParams) BindRequest

func (o *RevokeRoleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewRevokeRoleParams() beforehand.

type RevokeRoleURL

type RevokeRoleURL struct {
	ID string
	// contains filtered or unexported fields
}

RevokeRoleURL generates an URL for the revoke role operation

func (*RevokeRoleURL) Build

func (o *RevokeRoleURL) Build() (*url.URL, error)

Build a url path and query string

func (*RevokeRoleURL) BuildFull

func (o *RevokeRoleURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*RevokeRoleURL) Must

func (o *RevokeRoleURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*RevokeRoleURL) SetBasePath

func (o *RevokeRoleURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*RevokeRoleURL) String

func (o *RevokeRoleURL) String() string

String returns the string representation of the path with query string

func (*RevokeRoleURL) StringFull

func (o *RevokeRoleURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*RevokeRoleURL) WithBasePath

func (o *RevokeRoleURL) WithBasePath(bp string) *RevokeRoleURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type RevokeRoleUnauthorized

type RevokeRoleUnauthorized struct {
}

RevokeRoleUnauthorized Unauthorized or invalid credentials.

swagger:response revokeRoleUnauthorized

func NewRevokeRoleUnauthorized

func NewRevokeRoleUnauthorized() *RevokeRoleUnauthorized

NewRevokeRoleUnauthorized creates RevokeRoleUnauthorized with default headers values

func (*RevokeRoleUnauthorized) WriteResponse

func (o *RevokeRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

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