authz

package
v1.28.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 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 AddPermissionsNotFoundCode int = 404

AddPermissionsNotFoundCode is the HTTP code returned for type AddPermissionsNotFound

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 AssignRoleToGroupBadRequestCode int = 400

AssignRoleToGroupBadRequestCode is the HTTP code returned for type AssignRoleToGroupBadRequest

View Source
const AssignRoleToGroupForbiddenCode int = 403

AssignRoleToGroupForbiddenCode is the HTTP code returned for type AssignRoleToGroupForbidden

View Source
const AssignRoleToGroupInternalServerErrorCode int = 500

AssignRoleToGroupInternalServerErrorCode is the HTTP code returned for type AssignRoleToGroupInternalServerError

View Source
const AssignRoleToGroupNotFoundCode int = 404

AssignRoleToGroupNotFoundCode is the HTTP code returned for type AssignRoleToGroupNotFound

View Source
const AssignRoleToGroupOKCode int = 200

AssignRoleToGroupOKCode is the HTTP code returned for type AssignRoleToGroupOK

View Source
const AssignRoleToGroupUnauthorizedCode int = 401

AssignRoleToGroupUnauthorizedCode is the HTTP code returned for type AssignRoleToGroupUnauthorized

View Source
const AssignRoleToUserBadRequestCode int = 400

AssignRoleToUserBadRequestCode is the HTTP code returned for type AssignRoleToUserBadRequest

View Source
const AssignRoleToUserForbiddenCode int = 403

AssignRoleToUserForbiddenCode is the HTTP code returned for type AssignRoleToUserForbidden

View Source
const AssignRoleToUserInternalServerErrorCode int = 500

AssignRoleToUserInternalServerErrorCode is the HTTP code returned for type AssignRoleToUserInternalServerError

View Source
const AssignRoleToUserNotFoundCode int = 404

AssignRoleToUserNotFoundCode is the HTTP code returned for type AssignRoleToUserNotFound

View Source
const AssignRoleToUserOKCode int = 200

AssignRoleToUserOKCode is the HTTP code returned for type AssignRoleToUserOK

View Source
const AssignRoleToUserUnauthorizedCode int = 401

AssignRoleToUserUnauthorizedCode is the HTTP code returned for type AssignRoleToUserUnauthorized

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 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 HasPermissionBadRequestCode int = 400

HasPermissionBadRequestCode is the HTTP code returned for type HasPermissionBadRequest

View Source
const HasPermissionForbiddenCode int = 403

HasPermissionForbiddenCode is the HTTP code returned for type HasPermissionForbidden

View Source
const HasPermissionInternalServerErrorCode int = 500

HasPermissionInternalServerErrorCode is the HTTP code returned for type HasPermissionInternalServerError

View Source
const HasPermissionOKCode int = 200

HasPermissionOKCode is the HTTP code returned for type HasPermissionOK

View Source
const HasPermissionUnauthorizedCode int = 401

HasPermissionUnauthorizedCode is the HTTP code returned for type HasPermissionUnauthorized

View Source
const HasPermissionUnprocessableEntityCode int = 422

HasPermissionUnprocessableEntityCode is the HTTP code returned for type HasPermissionUnprocessableEntity

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 RemovePermissionsNotFoundCode int = 404

RemovePermissionsNotFoundCode is the HTTP code returned for type RemovePermissionsNotFound

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 RevokeRoleFromGroupBadRequestCode int = 400

RevokeRoleFromGroupBadRequestCode is the HTTP code returned for type RevokeRoleFromGroupBadRequest

View Source
const RevokeRoleFromGroupForbiddenCode int = 403

RevokeRoleFromGroupForbiddenCode is the HTTP code returned for type RevokeRoleFromGroupForbidden

View Source
const RevokeRoleFromGroupInternalServerErrorCode int = 500

RevokeRoleFromGroupInternalServerErrorCode is the HTTP code returned for type RevokeRoleFromGroupInternalServerError

View Source
const RevokeRoleFromGroupNotFoundCode int = 404

RevokeRoleFromGroupNotFoundCode is the HTTP code returned for type RevokeRoleFromGroupNotFound

View Source
const RevokeRoleFromGroupOKCode int = 200

RevokeRoleFromGroupOKCode is the HTTP code returned for type RevokeRoleFromGroupOK

View Source
const RevokeRoleFromGroupUnauthorizedCode int = 401

RevokeRoleFromGroupUnauthorizedCode is the HTTP code returned for type RevokeRoleFromGroupUnauthorized

View Source
const RevokeRoleFromUserBadRequestCode int = 400

RevokeRoleFromUserBadRequestCode is the HTTP code returned for type RevokeRoleFromUserBadRequest

View Source
const RevokeRoleFromUserForbiddenCode int = 403

RevokeRoleFromUserForbiddenCode is the HTTP code returned for type RevokeRoleFromUserForbidden

View Source
const RevokeRoleFromUserInternalServerErrorCode int = 500

RevokeRoleFromUserInternalServerErrorCode is the HTTP code returned for type RevokeRoleFromUserInternalServerError

View Source
const RevokeRoleFromUserNotFoundCode int = 404

RevokeRoleFromUserNotFoundCode is the HTTP code returned for type RevokeRoleFromUserNotFound

View Source
const RevokeRoleFromUserOKCode int = 200

RevokeRoleFromUserOKCode is the HTTP code returned for type RevokeRoleFromUserOK

View Source
const RevokeRoleFromUserUnauthorizedCode int = 401

RevokeRoleFromUserUnauthorizedCode is the HTTP code returned for type RevokeRoleFromUserUnauthorized

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/{id}/add-permissions authz addPermissions

Add permission to a given role.

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 {

	// 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 AddPermissionsNotFound

type AddPermissionsNotFound struct {
}

AddPermissionsNotFound no role found

swagger:response addPermissionsNotFound

func NewAddPermissionsNotFound

func NewAddPermissionsNotFound() *AddPermissionsNotFound

NewAddPermissionsNotFound creates AddPermissionsNotFound with default headers values

func (*AddPermissionsNotFound) WriteResponse

func (o *AddPermissionsNotFound) 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
	/*role name
	  Required: true
	  In: path
	*/
	ID string
}

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 {
	ID string
	// 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 AssignRoleToGroup added in v1.28.5

type AssignRoleToGroup struct {
	Context *middleware.Context
	Handler AssignRoleToGroupHandler
}
AssignRoleToGroup swagger:route POST /authz/groups/{id}/assign authz assignRoleToGroup

Assign a role to a group

func NewAssignRoleToGroup added in v1.28.5

func NewAssignRoleToGroup(ctx *middleware.Context, handler AssignRoleToGroupHandler) *AssignRoleToGroup

NewAssignRoleToGroup creates a new http.Handler for the assign role to group operation

func (*AssignRoleToGroup) ServeHTTP added in v1.28.5

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

type AssignRoleToGroupBadRequest added in v1.28.5

type AssignRoleToGroupBadRequest struct {

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

AssignRoleToGroupBadRequest Bad request

swagger:response assignRoleToGroupBadRequest

func NewAssignRoleToGroupBadRequest added in v1.28.5

func NewAssignRoleToGroupBadRequest() *AssignRoleToGroupBadRequest

NewAssignRoleToGroupBadRequest creates AssignRoleToGroupBadRequest with default headers values

func (*AssignRoleToGroupBadRequest) SetPayload added in v1.28.5

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

SetPayload sets the payload to the assign role to group bad request response

func (*AssignRoleToGroupBadRequest) WithPayload added in v1.28.5

WithPayload adds the payload to the assign role to group bad request response

func (*AssignRoleToGroupBadRequest) WriteResponse added in v1.28.5

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

WriteResponse to the client

type AssignRoleToGroupBody added in v1.28.5

type AssignRoleToGroupBody struct {

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

AssignRoleToGroupBody assign role to group body

swagger:model AssignRoleToGroupBody

func (*AssignRoleToGroupBody) ContextValidate added in v1.28.5

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

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

func (*AssignRoleToGroupBody) MarshalBinary added in v1.28.5

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

MarshalBinary interface implementation

func (*AssignRoleToGroupBody) UnmarshalBinary added in v1.28.5

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

UnmarshalBinary interface implementation

func (*AssignRoleToGroupBody) Validate added in v1.28.5

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

Validate validates this assign role to group body

type AssignRoleToGroupForbidden added in v1.28.5

type AssignRoleToGroupForbidden struct {

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

AssignRoleToGroupForbidden Forbidden

swagger:response assignRoleToGroupForbidden

func NewAssignRoleToGroupForbidden added in v1.28.5

func NewAssignRoleToGroupForbidden() *AssignRoleToGroupForbidden

NewAssignRoleToGroupForbidden creates AssignRoleToGroupForbidden with default headers values

func (*AssignRoleToGroupForbidden) SetPayload added in v1.28.5

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

SetPayload sets the payload to the assign role to group forbidden response

func (*AssignRoleToGroupForbidden) WithPayload added in v1.28.5

WithPayload adds the payload to the assign role to group forbidden response

func (*AssignRoleToGroupForbidden) WriteResponse added in v1.28.5

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

WriteResponse to the client

type AssignRoleToGroupHandler added in v1.28.5

type AssignRoleToGroupHandler interface {
	Handle(AssignRoleToGroupParams, *models.Principal) middleware.Responder
}

AssignRoleToGroupHandler interface for that can handle valid assign role to group params

type AssignRoleToGroupHandlerFunc added in v1.28.5

type AssignRoleToGroupHandlerFunc func(AssignRoleToGroupParams, *models.Principal) middleware.Responder

AssignRoleToGroupHandlerFunc turns a function with the right signature into a assign role to group handler

func (AssignRoleToGroupHandlerFunc) Handle added in v1.28.5

Handle executing the request and returning a response

type AssignRoleToGroupInternalServerError added in v1.28.5

type AssignRoleToGroupInternalServerError struct {

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

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

swagger:response assignRoleToGroupInternalServerError

func NewAssignRoleToGroupInternalServerError added in v1.28.5

func NewAssignRoleToGroupInternalServerError() *AssignRoleToGroupInternalServerError

NewAssignRoleToGroupInternalServerError creates AssignRoleToGroupInternalServerError with default headers values

func (*AssignRoleToGroupInternalServerError) SetPayload added in v1.28.5

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

func (*AssignRoleToGroupInternalServerError) WithPayload added in v1.28.5

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

func (*AssignRoleToGroupInternalServerError) WriteResponse added in v1.28.5

WriteResponse to the client

type AssignRoleToGroupNotFound added in v1.28.5

type AssignRoleToGroupNotFound struct {
}

AssignRoleToGroupNotFound role or group is not found.

swagger:response assignRoleToGroupNotFound

func NewAssignRoleToGroupNotFound added in v1.28.5

func NewAssignRoleToGroupNotFound() *AssignRoleToGroupNotFound

NewAssignRoleToGroupNotFound creates AssignRoleToGroupNotFound with default headers values

func (*AssignRoleToGroupNotFound) WriteResponse added in v1.28.5

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

WriteResponse to the client

type AssignRoleToGroupOK added in v1.28.5

type AssignRoleToGroupOK struct {
}

AssignRoleToGroupOK Role assigned successfully

swagger:response assignRoleToGroupOK

func NewAssignRoleToGroupOK added in v1.28.5

func NewAssignRoleToGroupOK() *AssignRoleToGroupOK

NewAssignRoleToGroupOK creates AssignRoleToGroupOK with default headers values

func (*AssignRoleToGroupOK) WriteResponse added in v1.28.5

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

WriteResponse to the client

type AssignRoleToGroupParams added in v1.28.5

type AssignRoleToGroupParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body AssignRoleToGroupBody
	/*group name
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters assignRoleToGroup

func NewAssignRoleToGroupParams added in v1.28.5

func NewAssignRoleToGroupParams() AssignRoleToGroupParams

NewAssignRoleToGroupParams creates a new AssignRoleToGroupParams object

There are no default values defined in the spec.

func (*AssignRoleToGroupParams) BindRequest added in v1.28.5

func (o *AssignRoleToGroupParams) 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 NewAssignRoleToGroupParams() beforehand.

type AssignRoleToGroupURL added in v1.28.5

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

AssignRoleToGroupURL generates an URL for the assign role to group operation

func (*AssignRoleToGroupURL) Build added in v1.28.5

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

Build a url path and query string

func (*AssignRoleToGroupURL) BuildFull added in v1.28.5

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

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

func (*AssignRoleToGroupURL) Must added in v1.28.5

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

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

func (*AssignRoleToGroupURL) SetBasePath added in v1.28.5

func (o *AssignRoleToGroupURL) 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 (*AssignRoleToGroupURL) String added in v1.28.5

func (o *AssignRoleToGroupURL) String() string

String returns the string representation of the path with query string

func (*AssignRoleToGroupURL) StringFull added in v1.28.5

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

StringFull returns the string representation of a complete url

func (*AssignRoleToGroupURL) WithBasePath added in v1.28.5

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

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 AssignRoleToGroupUnauthorized added in v1.28.5

type AssignRoleToGroupUnauthorized struct {
}

AssignRoleToGroupUnauthorized Unauthorized or invalid credentials.

swagger:response assignRoleToGroupUnauthorized

func NewAssignRoleToGroupUnauthorized added in v1.28.5

func NewAssignRoleToGroupUnauthorized() *AssignRoleToGroupUnauthorized

NewAssignRoleToGroupUnauthorized creates AssignRoleToGroupUnauthorized with default headers values

func (*AssignRoleToGroupUnauthorized) WriteResponse added in v1.28.5

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

WriteResponse to the client

type AssignRoleToUser added in v1.28.5

type AssignRoleToUser struct {
	Context *middleware.Context
	Handler AssignRoleToUserHandler
}
AssignRoleToUser swagger:route POST /authz/users/{id}/assign authz assignRoleToUser

Assign a role to a user

func NewAssignRoleToUser added in v1.28.5

func NewAssignRoleToUser(ctx *middleware.Context, handler AssignRoleToUserHandler) *AssignRoleToUser

NewAssignRoleToUser creates a new http.Handler for the assign role to user operation

func (*AssignRoleToUser) ServeHTTP added in v1.28.5

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

type AssignRoleToUserBadRequest added in v1.28.5

type AssignRoleToUserBadRequest struct {

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

AssignRoleToUserBadRequest Bad request

swagger:response assignRoleToUserBadRequest

func NewAssignRoleToUserBadRequest added in v1.28.5

func NewAssignRoleToUserBadRequest() *AssignRoleToUserBadRequest

NewAssignRoleToUserBadRequest creates AssignRoleToUserBadRequest with default headers values

func (*AssignRoleToUserBadRequest) SetPayload added in v1.28.5

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

SetPayload sets the payload to the assign role to user bad request response

func (*AssignRoleToUserBadRequest) WithPayload added in v1.28.5

WithPayload adds the payload to the assign role to user bad request response

func (*AssignRoleToUserBadRequest) WriteResponse added in v1.28.5

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

WriteResponse to the client

type AssignRoleToUserBody added in v1.28.5

type AssignRoleToUserBody struct {

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

AssignRoleToUserBody assign role to user body

swagger:model AssignRoleToUserBody

func (*AssignRoleToUserBody) ContextValidate added in v1.28.5

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

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

func (*AssignRoleToUserBody) MarshalBinary added in v1.28.5

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

MarshalBinary interface implementation

func (*AssignRoleToUserBody) UnmarshalBinary added in v1.28.5

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

UnmarshalBinary interface implementation

func (*AssignRoleToUserBody) Validate added in v1.28.5

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

Validate validates this assign role to user body

type AssignRoleToUserForbidden added in v1.28.5

type AssignRoleToUserForbidden struct {

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

AssignRoleToUserForbidden Forbidden

swagger:response assignRoleToUserForbidden

func NewAssignRoleToUserForbidden added in v1.28.5

func NewAssignRoleToUserForbidden() *AssignRoleToUserForbidden

NewAssignRoleToUserForbidden creates AssignRoleToUserForbidden with default headers values

func (*AssignRoleToUserForbidden) SetPayload added in v1.28.5

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

SetPayload sets the payload to the assign role to user forbidden response

func (*AssignRoleToUserForbidden) WithPayload added in v1.28.5

WithPayload adds the payload to the assign role to user forbidden response

func (*AssignRoleToUserForbidden) WriteResponse added in v1.28.5

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

WriteResponse to the client

type AssignRoleToUserHandler added in v1.28.5

type AssignRoleToUserHandler interface {
	Handle(AssignRoleToUserParams, *models.Principal) middleware.Responder
}

AssignRoleToUserHandler interface for that can handle valid assign role to user params

type AssignRoleToUserHandlerFunc added in v1.28.5

type AssignRoleToUserHandlerFunc func(AssignRoleToUserParams, *models.Principal) middleware.Responder

AssignRoleToUserHandlerFunc turns a function with the right signature into a assign role to user handler

func (AssignRoleToUserHandlerFunc) Handle added in v1.28.5

Handle executing the request and returning a response

type AssignRoleToUserInternalServerError added in v1.28.5

type AssignRoleToUserInternalServerError struct {

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

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

swagger:response assignRoleToUserInternalServerError

func NewAssignRoleToUserInternalServerError added in v1.28.5

func NewAssignRoleToUserInternalServerError() *AssignRoleToUserInternalServerError

NewAssignRoleToUserInternalServerError creates AssignRoleToUserInternalServerError with default headers values

func (*AssignRoleToUserInternalServerError) SetPayload added in v1.28.5

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

func (*AssignRoleToUserInternalServerError) WithPayload added in v1.28.5

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

func (*AssignRoleToUserInternalServerError) WriteResponse added in v1.28.5

WriteResponse to the client

type AssignRoleToUserNotFound added in v1.28.5

type AssignRoleToUserNotFound struct {

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

AssignRoleToUserNotFound role or user is not found.

swagger:response assignRoleToUserNotFound

func NewAssignRoleToUserNotFound added in v1.28.5

func NewAssignRoleToUserNotFound() *AssignRoleToUserNotFound

NewAssignRoleToUserNotFound creates AssignRoleToUserNotFound with default headers values

func (*AssignRoleToUserNotFound) SetPayload added in v1.28.5

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

SetPayload sets the payload to the assign role to user not found response

func (*AssignRoleToUserNotFound) WithPayload added in v1.28.5

WithPayload adds the payload to the assign role to user not found response

func (*AssignRoleToUserNotFound) WriteResponse added in v1.28.5

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

WriteResponse to the client

type AssignRoleToUserOK added in v1.28.5

type AssignRoleToUserOK struct {
}

AssignRoleToUserOK Role assigned successfully

swagger:response assignRoleToUserOK

func NewAssignRoleToUserOK added in v1.28.5

func NewAssignRoleToUserOK() *AssignRoleToUserOK

NewAssignRoleToUserOK creates AssignRoleToUserOK with default headers values

func (*AssignRoleToUserOK) WriteResponse added in v1.28.5

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

WriteResponse to the client

type AssignRoleToUserParams added in v1.28.5

type AssignRoleToUserParams struct {

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

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

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

swagger:parameters assignRoleToUser

func NewAssignRoleToUserParams added in v1.28.5

func NewAssignRoleToUserParams() AssignRoleToUserParams

NewAssignRoleToUserParams creates a new AssignRoleToUserParams object

There are no default values defined in the spec.

func (*AssignRoleToUserParams) BindRequest added in v1.28.5

func (o *AssignRoleToUserParams) 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 NewAssignRoleToUserParams() beforehand.

type AssignRoleToUserURL added in v1.28.5

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

AssignRoleToUserURL generates an URL for the assign role to user operation

func (*AssignRoleToUserURL) Build added in v1.28.5

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

Build a url path and query string

func (*AssignRoleToUserURL) BuildFull added in v1.28.5

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

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

func (*AssignRoleToUserURL) Must added in v1.28.5

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

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

func (*AssignRoleToUserURL) SetBasePath added in v1.28.5

func (o *AssignRoleToUserURL) 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 (*AssignRoleToUserURL) String added in v1.28.5

func (o *AssignRoleToUserURL) String() string

String returns the string representation of the path with query string

func (*AssignRoleToUserURL) StringFull added in v1.28.5

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

StringFull returns the string representation of a complete url

func (*AssignRoleToUserURL) WithBasePath added in v1.28.5

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

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 AssignRoleToUserUnauthorized added in v1.28.5

type AssignRoleToUserUnauthorized struct {
}

AssignRoleToUserUnauthorized Unauthorized or invalid credentials.

swagger:response assignRoleToUserUnauthorized

func NewAssignRoleToUserUnauthorized added in v1.28.5

func NewAssignRoleToUserUnauthorized() *AssignRoleToUserUnauthorized

NewAssignRoleToUserUnauthorized creates AssignRoleToUserUnauthorized with default headers values

func (*AssignRoleToUserUnauthorized) WriteResponse added in v1.28.5

func (o *AssignRoleToUserUnauthorized) 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 name
	  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 name
	  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 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

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 name
	  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 HasPermission

type HasPermission struct {
	Context *middleware.Context
	Handler HasPermissionHandler
}
HasPermission swagger:route POST /authz/roles/{id}/has-permission authz hasPermission

Check whether role possesses this permission.

func NewHasPermission

func NewHasPermission(ctx *middleware.Context, handler HasPermissionHandler) *HasPermission

NewHasPermission creates a new http.Handler for the has permission operation

func (*HasPermission) ServeHTTP

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

type HasPermissionBadRequest

type HasPermissionBadRequest struct {

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

HasPermissionBadRequest Malformed request.

swagger:response hasPermissionBadRequest

func NewHasPermissionBadRequest

func NewHasPermissionBadRequest() *HasPermissionBadRequest

NewHasPermissionBadRequest creates HasPermissionBadRequest with default headers values

func (*HasPermissionBadRequest) SetPayload

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

SetPayload sets the payload to the has permission bad request response

func (*HasPermissionBadRequest) WithPayload

WithPayload adds the payload to the has permission bad request response

func (*HasPermissionBadRequest) WriteResponse

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

WriteResponse to the client

type HasPermissionForbidden

type HasPermissionForbidden struct {

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

HasPermissionForbidden Forbidden

swagger:response hasPermissionForbidden

func NewHasPermissionForbidden

func NewHasPermissionForbidden() *HasPermissionForbidden

NewHasPermissionForbidden creates HasPermissionForbidden with default headers values

func (*HasPermissionForbidden) SetPayload

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

SetPayload sets the payload to the has permission forbidden response

func (*HasPermissionForbidden) WithPayload

WithPayload adds the payload to the has permission forbidden response

func (*HasPermissionForbidden) WriteResponse

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

WriteResponse to the client

type HasPermissionHandler

type HasPermissionHandler interface {
	Handle(HasPermissionParams, *models.Principal) middleware.Responder
}

HasPermissionHandler interface for that can handle valid has permission params

type HasPermissionHandlerFunc

type HasPermissionHandlerFunc func(HasPermissionParams, *models.Principal) middleware.Responder

HasPermissionHandlerFunc turns a function with the right signature into a has permission handler

func (HasPermissionHandlerFunc) Handle

Handle executing the request and returning a response

type HasPermissionInternalServerError

type HasPermissionInternalServerError struct {

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

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

swagger:response hasPermissionInternalServerError

func NewHasPermissionInternalServerError

func NewHasPermissionInternalServerError() *HasPermissionInternalServerError

NewHasPermissionInternalServerError creates HasPermissionInternalServerError with default headers values

func (*HasPermissionInternalServerError) SetPayload

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

SetPayload sets the payload to the has permission internal server error response

func (*HasPermissionInternalServerError) WithPayload

WithPayload adds the payload to the has permission internal server error response

func (*HasPermissionInternalServerError) WriteResponse

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

WriteResponse to the client

type HasPermissionOK

type HasPermissionOK struct {

	/*
	  In: Body
	*/
	Payload bool `json:"body,omitempty"`
}

HasPermissionOK Permission check was successful

swagger:response hasPermissionOK

func NewHasPermissionOK

func NewHasPermissionOK() *HasPermissionOK

NewHasPermissionOK creates HasPermissionOK with default headers values

func (*HasPermissionOK) SetPayload

func (o *HasPermissionOK) SetPayload(payload bool)

SetPayload sets the payload to the has permission o k response

func (*HasPermissionOK) WithPayload

func (o *HasPermissionOK) WithPayload(payload bool) *HasPermissionOK

WithPayload adds the payload to the has permission o k response

func (*HasPermissionOK) WriteResponse

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

WriteResponse to the client

type HasPermissionParams

type HasPermissionParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body *models.Permission
	/*role name
	  Required: true
	  In: path
	*/
	ID string
}

HasPermissionParams contains all the bound params for the has permission operation typically these are obtained from a http.Request

swagger:parameters hasPermission

func NewHasPermissionParams

func NewHasPermissionParams() HasPermissionParams

NewHasPermissionParams creates a new HasPermissionParams object

There are no default values defined in the spec.

func (*HasPermissionParams) BindRequest

func (o *HasPermissionParams) 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 NewHasPermissionParams() beforehand.

type HasPermissionURL

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

HasPermissionURL generates an URL for the has permission operation

func (*HasPermissionURL) Build

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

Build a url path and query string

func (*HasPermissionURL) BuildFull

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

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

func (*HasPermissionURL) Must

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

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

func (*HasPermissionURL) SetBasePath

func (o *HasPermissionURL) 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 (*HasPermissionURL) String

func (o *HasPermissionURL) String() string

String returns the string representation of the path with query string

func (*HasPermissionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*HasPermissionURL) WithBasePath

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

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 HasPermissionUnauthorized

type HasPermissionUnauthorized struct {
}

HasPermissionUnauthorized Unauthorized or invalid credentials.

swagger:response hasPermissionUnauthorized

func NewHasPermissionUnauthorized

func NewHasPermissionUnauthorized() *HasPermissionUnauthorized

NewHasPermissionUnauthorized creates HasPermissionUnauthorized with default headers values

func (*HasPermissionUnauthorized) WriteResponse

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

WriteResponse to the client

type HasPermissionUnprocessableEntity

type HasPermissionUnprocessableEntity struct {

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

HasPermissionUnprocessableEntity 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 hasPermissionUnprocessableEntity

func NewHasPermissionUnprocessableEntity

func NewHasPermissionUnprocessableEntity() *HasPermissionUnprocessableEntity

NewHasPermissionUnprocessableEntity creates HasPermissionUnprocessableEntity with default headers values

func (*HasPermissionUnprocessableEntity) SetPayload

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

SetPayload sets the payload to the has permission unprocessable entity response

func (*HasPermissionUnprocessableEntity) WithPayload

WithPayload adds the payload to the has permission unprocessable entity response

func (*HasPermissionUnprocessableEntity) WriteResponse

func (o *HasPermissionUnprocessableEntity) 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/{id}/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 {

	// 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 RemovePermissionsNotFound

type RemovePermissionsNotFound struct {
}

RemovePermissionsNotFound no role found

swagger:response removePermissionsNotFound

func NewRemovePermissionsNotFound

func NewRemovePermissionsNotFound() *RemovePermissionsNotFound

NewRemovePermissionsNotFound creates RemovePermissionsNotFound with default headers values

func (*RemovePermissionsNotFound) WriteResponse

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

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
	/*role name
	  Required: true
	  In: path
	*/
	ID string
}

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 {
	ID string
	// 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 RevokeRoleFromGroup added in v1.28.5

type RevokeRoleFromGroup struct {
	Context *middleware.Context
	Handler RevokeRoleFromGroupHandler
}
RevokeRoleFromGroup swagger:route POST /authz/groups/{id}/revoke authz revokeRoleFromGroup

Revoke a role from a group

func NewRevokeRoleFromGroup added in v1.28.5

func NewRevokeRoleFromGroup(ctx *middleware.Context, handler RevokeRoleFromGroupHandler) *RevokeRoleFromGroup

NewRevokeRoleFromGroup creates a new http.Handler for the revoke role from group operation

func (*RevokeRoleFromGroup) ServeHTTP added in v1.28.5

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

type RevokeRoleFromGroupBadRequest added in v1.28.5

type RevokeRoleFromGroupBadRequest struct {

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

RevokeRoleFromGroupBadRequest Bad request

swagger:response revokeRoleFromGroupBadRequest

func NewRevokeRoleFromGroupBadRequest added in v1.28.5

func NewRevokeRoleFromGroupBadRequest() *RevokeRoleFromGroupBadRequest

NewRevokeRoleFromGroupBadRequest creates RevokeRoleFromGroupBadRequest with default headers values

func (*RevokeRoleFromGroupBadRequest) SetPayload added in v1.28.5

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

SetPayload sets the payload to the revoke role from group bad request response

func (*RevokeRoleFromGroupBadRequest) WithPayload added in v1.28.5

WithPayload adds the payload to the revoke role from group bad request response

func (*RevokeRoleFromGroupBadRequest) WriteResponse added in v1.28.5

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

WriteResponse to the client

type RevokeRoleFromGroupBody added in v1.28.5

type RevokeRoleFromGroupBody struct {

	// the roles that revoked from group
	Roles []string `json:"roles" yaml:"roles"`
}

RevokeRoleFromGroupBody revoke role from group body

swagger:model RevokeRoleFromGroupBody

func (*RevokeRoleFromGroupBody) ContextValidate added in v1.28.5

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

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

func (*RevokeRoleFromGroupBody) MarshalBinary added in v1.28.5

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

MarshalBinary interface implementation

func (*RevokeRoleFromGroupBody) UnmarshalBinary added in v1.28.5

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

UnmarshalBinary interface implementation

func (*RevokeRoleFromGroupBody) Validate added in v1.28.5

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

Validate validates this revoke role from group body

type RevokeRoleFromGroupForbidden added in v1.28.5

type RevokeRoleFromGroupForbidden struct {

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

RevokeRoleFromGroupForbidden Forbidden

swagger:response revokeRoleFromGroupForbidden

func NewRevokeRoleFromGroupForbidden added in v1.28.5

func NewRevokeRoleFromGroupForbidden() *RevokeRoleFromGroupForbidden

NewRevokeRoleFromGroupForbidden creates RevokeRoleFromGroupForbidden with default headers values

func (*RevokeRoleFromGroupForbidden) SetPayload added in v1.28.5

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

SetPayload sets the payload to the revoke role from group forbidden response

func (*RevokeRoleFromGroupForbidden) WithPayload added in v1.28.5

WithPayload adds the payload to the revoke role from group forbidden response

func (*RevokeRoleFromGroupForbidden) WriteResponse added in v1.28.5

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

WriteResponse to the client

type RevokeRoleFromGroupHandler added in v1.28.5

type RevokeRoleFromGroupHandler interface {
	Handle(RevokeRoleFromGroupParams, *models.Principal) middleware.Responder
}

RevokeRoleFromGroupHandler interface for that can handle valid revoke role from group params

type RevokeRoleFromGroupHandlerFunc added in v1.28.5

type RevokeRoleFromGroupHandlerFunc func(RevokeRoleFromGroupParams, *models.Principal) middleware.Responder

RevokeRoleFromGroupHandlerFunc turns a function with the right signature into a revoke role from group handler

func (RevokeRoleFromGroupHandlerFunc) Handle added in v1.28.5

Handle executing the request and returning a response

type RevokeRoleFromGroupInternalServerError added in v1.28.5

type RevokeRoleFromGroupInternalServerError struct {

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

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

swagger:response revokeRoleFromGroupInternalServerError

func NewRevokeRoleFromGroupInternalServerError added in v1.28.5

func NewRevokeRoleFromGroupInternalServerError() *RevokeRoleFromGroupInternalServerError

NewRevokeRoleFromGroupInternalServerError creates RevokeRoleFromGroupInternalServerError with default headers values

func (*RevokeRoleFromGroupInternalServerError) SetPayload added in v1.28.5

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

func (*RevokeRoleFromGroupInternalServerError) WithPayload added in v1.28.5

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

func (*RevokeRoleFromGroupInternalServerError) WriteResponse added in v1.28.5

WriteResponse to the client

type RevokeRoleFromGroupNotFound added in v1.28.5

type RevokeRoleFromGroupNotFound struct {
}

RevokeRoleFromGroupNotFound role or group is not found.

swagger:response revokeRoleFromGroupNotFound

func NewRevokeRoleFromGroupNotFound added in v1.28.5

func NewRevokeRoleFromGroupNotFound() *RevokeRoleFromGroupNotFound

NewRevokeRoleFromGroupNotFound creates RevokeRoleFromGroupNotFound with default headers values

func (*RevokeRoleFromGroupNotFound) WriteResponse added in v1.28.5

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

WriteResponse to the client

type RevokeRoleFromGroupOK added in v1.28.5

type RevokeRoleFromGroupOK struct {
}

RevokeRoleFromGroupOK Role revoked successfully

swagger:response revokeRoleFromGroupOK

func NewRevokeRoleFromGroupOK added in v1.28.5

func NewRevokeRoleFromGroupOK() *RevokeRoleFromGroupOK

NewRevokeRoleFromGroupOK creates RevokeRoleFromGroupOK with default headers values

func (*RevokeRoleFromGroupOK) WriteResponse added in v1.28.5

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

WriteResponse to the client

type RevokeRoleFromGroupParams added in v1.28.5

type RevokeRoleFromGroupParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body RevokeRoleFromGroupBody
	/*group name
	  Required: true
	  In: path
	*/
	ID string
}

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

swagger:parameters revokeRoleFromGroup

func NewRevokeRoleFromGroupParams added in v1.28.5

func NewRevokeRoleFromGroupParams() RevokeRoleFromGroupParams

NewRevokeRoleFromGroupParams creates a new RevokeRoleFromGroupParams object

There are no default values defined in the spec.

func (*RevokeRoleFromGroupParams) BindRequest added in v1.28.5

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 NewRevokeRoleFromGroupParams() beforehand.

type RevokeRoleFromGroupURL added in v1.28.5

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

RevokeRoleFromGroupURL generates an URL for the revoke role from group operation

func (*RevokeRoleFromGroupURL) Build added in v1.28.5

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

Build a url path and query string

func (*RevokeRoleFromGroupURL) BuildFull added in v1.28.5

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

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

func (*RevokeRoleFromGroupURL) Must added in v1.28.5

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

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

func (*RevokeRoleFromGroupURL) SetBasePath added in v1.28.5

func (o *RevokeRoleFromGroupURL) 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 (*RevokeRoleFromGroupURL) String added in v1.28.5

func (o *RevokeRoleFromGroupURL) String() string

String returns the string representation of the path with query string

func (*RevokeRoleFromGroupURL) StringFull added in v1.28.5

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

StringFull returns the string representation of a complete url

func (*RevokeRoleFromGroupURL) WithBasePath added in v1.28.5

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 RevokeRoleFromGroupUnauthorized added in v1.28.5

type RevokeRoleFromGroupUnauthorized struct {
}

RevokeRoleFromGroupUnauthorized Unauthorized or invalid credentials.

swagger:response revokeRoleFromGroupUnauthorized

func NewRevokeRoleFromGroupUnauthorized added in v1.28.5

func NewRevokeRoleFromGroupUnauthorized() *RevokeRoleFromGroupUnauthorized

NewRevokeRoleFromGroupUnauthorized creates RevokeRoleFromGroupUnauthorized with default headers values

func (*RevokeRoleFromGroupUnauthorized) WriteResponse added in v1.28.5

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

WriteResponse to the client

type RevokeRoleFromUser added in v1.28.5

type RevokeRoleFromUser struct {
	Context *middleware.Context
	Handler RevokeRoleFromUserHandler
}
RevokeRoleFromUser swagger:route POST /authz/users/{id}/revoke authz revokeRoleFromUser

Revoke a role from a user

func NewRevokeRoleFromUser added in v1.28.5

func NewRevokeRoleFromUser(ctx *middleware.Context, handler RevokeRoleFromUserHandler) *RevokeRoleFromUser

NewRevokeRoleFromUser creates a new http.Handler for the revoke role from user operation

func (*RevokeRoleFromUser) ServeHTTP added in v1.28.5

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

type RevokeRoleFromUserBadRequest added in v1.28.5

type RevokeRoleFromUserBadRequest struct {

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

RevokeRoleFromUserBadRequest Bad request

swagger:response revokeRoleFromUserBadRequest

func NewRevokeRoleFromUserBadRequest added in v1.28.5

func NewRevokeRoleFromUserBadRequest() *RevokeRoleFromUserBadRequest

NewRevokeRoleFromUserBadRequest creates RevokeRoleFromUserBadRequest with default headers values

func (*RevokeRoleFromUserBadRequest) SetPayload added in v1.28.5

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

SetPayload sets the payload to the revoke role from user bad request response

func (*RevokeRoleFromUserBadRequest) WithPayload added in v1.28.5

WithPayload adds the payload to the revoke role from user bad request response

func (*RevokeRoleFromUserBadRequest) WriteResponse added in v1.28.5

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

WriteResponse to the client

type RevokeRoleFromUserBody added in v1.28.5

type RevokeRoleFromUserBody struct {

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

RevokeRoleFromUserBody revoke role from user body

swagger:model RevokeRoleFromUserBody

func (*RevokeRoleFromUserBody) ContextValidate added in v1.28.5

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

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

func (*RevokeRoleFromUserBody) MarshalBinary added in v1.28.5

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

MarshalBinary interface implementation

func (*RevokeRoleFromUserBody) UnmarshalBinary added in v1.28.5

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

UnmarshalBinary interface implementation

func (*RevokeRoleFromUserBody) Validate added in v1.28.5

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

Validate validates this revoke role from user body

type RevokeRoleFromUserForbidden added in v1.28.5

type RevokeRoleFromUserForbidden struct {

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

RevokeRoleFromUserForbidden Forbidden

swagger:response revokeRoleFromUserForbidden

func NewRevokeRoleFromUserForbidden added in v1.28.5

func NewRevokeRoleFromUserForbidden() *RevokeRoleFromUserForbidden

NewRevokeRoleFromUserForbidden creates RevokeRoleFromUserForbidden with default headers values

func (*RevokeRoleFromUserForbidden) SetPayload added in v1.28.5

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

SetPayload sets the payload to the revoke role from user forbidden response

func (*RevokeRoleFromUserForbidden) WithPayload added in v1.28.5

WithPayload adds the payload to the revoke role from user forbidden response

func (*RevokeRoleFromUserForbidden) WriteResponse added in v1.28.5

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

WriteResponse to the client

type RevokeRoleFromUserHandler added in v1.28.5

type RevokeRoleFromUserHandler interface {
	Handle(RevokeRoleFromUserParams, *models.Principal) middleware.Responder
}

RevokeRoleFromUserHandler interface for that can handle valid revoke role from user params

type RevokeRoleFromUserHandlerFunc added in v1.28.5

type RevokeRoleFromUserHandlerFunc func(RevokeRoleFromUserParams, *models.Principal) middleware.Responder

RevokeRoleFromUserHandlerFunc turns a function with the right signature into a revoke role from user handler

func (RevokeRoleFromUserHandlerFunc) Handle added in v1.28.5

Handle executing the request and returning a response

type RevokeRoleFromUserInternalServerError added in v1.28.5

type RevokeRoleFromUserInternalServerError struct {

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

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

swagger:response revokeRoleFromUserInternalServerError

func NewRevokeRoleFromUserInternalServerError added in v1.28.5

func NewRevokeRoleFromUserInternalServerError() *RevokeRoleFromUserInternalServerError

NewRevokeRoleFromUserInternalServerError creates RevokeRoleFromUserInternalServerError with default headers values

func (*RevokeRoleFromUserInternalServerError) SetPayload added in v1.28.5

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

func (*RevokeRoleFromUserInternalServerError) WithPayload added in v1.28.5

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

func (*RevokeRoleFromUserInternalServerError) WriteResponse added in v1.28.5

WriteResponse to the client

type RevokeRoleFromUserNotFound added in v1.28.5

type RevokeRoleFromUserNotFound struct {

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

RevokeRoleFromUserNotFound role or user is not found.

swagger:response revokeRoleFromUserNotFound

func NewRevokeRoleFromUserNotFound added in v1.28.5

func NewRevokeRoleFromUserNotFound() *RevokeRoleFromUserNotFound

NewRevokeRoleFromUserNotFound creates RevokeRoleFromUserNotFound with default headers values

func (*RevokeRoleFromUserNotFound) SetPayload added in v1.28.5

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

SetPayload sets the payload to the revoke role from user not found response

func (*RevokeRoleFromUserNotFound) WithPayload added in v1.28.5

WithPayload adds the payload to the revoke role from user not found response

func (*RevokeRoleFromUserNotFound) WriteResponse added in v1.28.5

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

WriteResponse to the client

type RevokeRoleFromUserOK added in v1.28.5

type RevokeRoleFromUserOK struct {
}

RevokeRoleFromUserOK Role revoked successfully

swagger:response revokeRoleFromUserOK

func NewRevokeRoleFromUserOK added in v1.28.5

func NewRevokeRoleFromUserOK() *RevokeRoleFromUserOK

NewRevokeRoleFromUserOK creates RevokeRoleFromUserOK with default headers values

func (*RevokeRoleFromUserOK) WriteResponse added in v1.28.5

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

WriteResponse to the client

type RevokeRoleFromUserParams added in v1.28.5

type RevokeRoleFromUserParams struct {

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

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

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

swagger:parameters revokeRoleFromUser

func NewRevokeRoleFromUserParams added in v1.28.5

func NewRevokeRoleFromUserParams() RevokeRoleFromUserParams

NewRevokeRoleFromUserParams creates a new RevokeRoleFromUserParams object

There are no default values defined in the spec.

func (*RevokeRoleFromUserParams) BindRequest added in v1.28.5

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 NewRevokeRoleFromUserParams() beforehand.

type RevokeRoleFromUserURL added in v1.28.5

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

RevokeRoleFromUserURL generates an URL for the revoke role from user operation

func (*RevokeRoleFromUserURL) Build added in v1.28.5

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

Build a url path and query string

func (*RevokeRoleFromUserURL) BuildFull added in v1.28.5

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

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

func (*RevokeRoleFromUserURL) Must added in v1.28.5

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

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

func (*RevokeRoleFromUserURL) SetBasePath added in v1.28.5

func (o *RevokeRoleFromUserURL) 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 (*RevokeRoleFromUserURL) String added in v1.28.5

func (o *RevokeRoleFromUserURL) String() string

String returns the string representation of the path with query string

func (*RevokeRoleFromUserURL) StringFull added in v1.28.5

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

StringFull returns the string representation of a complete url

func (*RevokeRoleFromUserURL) WithBasePath added in v1.28.5

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

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 RevokeRoleFromUserUnauthorized added in v1.28.5

type RevokeRoleFromUserUnauthorized struct {
}

RevokeRoleFromUserUnauthorized Unauthorized or invalid credentials.

swagger:response revokeRoleFromUserUnauthorized

func NewRevokeRoleFromUserUnauthorized added in v1.28.5

func NewRevokeRoleFromUserUnauthorized() *RevokeRoleFromUserUnauthorized

NewRevokeRoleFromUserUnauthorized creates RevokeRoleFromUserUnauthorized with default headers values

func (*RevokeRoleFromUserUnauthorized) WriteResponse added in v1.28.5

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