Documentation
¶
Index ¶
- type AddPermissionsBadRequest
- func (o *AddPermissionsBadRequest) Code() int
- func (o *AddPermissionsBadRequest) Error() string
- func (o *AddPermissionsBadRequest) GetPayload() *models.ErrorResponse
- func (o *AddPermissionsBadRequest) IsClientError() bool
- func (o *AddPermissionsBadRequest) IsCode(code int) bool
- func (o *AddPermissionsBadRequest) IsRedirect() bool
- func (o *AddPermissionsBadRequest) IsServerError() bool
- func (o *AddPermissionsBadRequest) IsSuccess() bool
- func (o *AddPermissionsBadRequest) String() string
- type AddPermissionsBody
- type AddPermissionsForbidden
- func (o *AddPermissionsForbidden) Code() int
- func (o *AddPermissionsForbidden) Error() string
- func (o *AddPermissionsForbidden) GetPayload() *models.ErrorResponse
- func (o *AddPermissionsForbidden) IsClientError() bool
- func (o *AddPermissionsForbidden) IsCode(code int) bool
- func (o *AddPermissionsForbidden) IsRedirect() bool
- func (o *AddPermissionsForbidden) IsServerError() bool
- func (o *AddPermissionsForbidden) IsSuccess() bool
- func (o *AddPermissionsForbidden) String() string
- type AddPermissionsInternalServerError
- func (o *AddPermissionsInternalServerError) Code() int
- func (o *AddPermissionsInternalServerError) Error() string
- func (o *AddPermissionsInternalServerError) GetPayload() *models.ErrorResponse
- func (o *AddPermissionsInternalServerError) IsClientError() bool
- func (o *AddPermissionsInternalServerError) IsCode(code int) bool
- func (o *AddPermissionsInternalServerError) IsRedirect() bool
- func (o *AddPermissionsInternalServerError) IsServerError() bool
- func (o *AddPermissionsInternalServerError) IsSuccess() bool
- func (o *AddPermissionsInternalServerError) String() string
- type AddPermissionsNotFound
- func (o *AddPermissionsNotFound) Code() int
- func (o *AddPermissionsNotFound) Error() string
- func (o *AddPermissionsNotFound) IsClientError() bool
- func (o *AddPermissionsNotFound) IsCode(code int) bool
- func (o *AddPermissionsNotFound) IsRedirect() bool
- func (o *AddPermissionsNotFound) IsServerError() bool
- func (o *AddPermissionsNotFound) IsSuccess() bool
- func (o *AddPermissionsNotFound) String() string
- type AddPermissionsOK
- func (o *AddPermissionsOK) Code() int
- func (o *AddPermissionsOK) Error() string
- func (o *AddPermissionsOK) IsClientError() bool
- func (o *AddPermissionsOK) IsCode(code int) bool
- func (o *AddPermissionsOK) IsRedirect() bool
- func (o *AddPermissionsOK) IsServerError() bool
- func (o *AddPermissionsOK) IsSuccess() bool
- func (o *AddPermissionsOK) String() string
- type AddPermissionsParams
- func NewAddPermissionsParams() *AddPermissionsParams
- func NewAddPermissionsParamsWithContext(ctx context.Context) *AddPermissionsParams
- func NewAddPermissionsParamsWithHTTPClient(client *http.Client) *AddPermissionsParams
- func NewAddPermissionsParamsWithTimeout(timeout time.Duration) *AddPermissionsParams
- func (o *AddPermissionsParams) SetBody(body AddPermissionsBody)
- func (o *AddPermissionsParams) SetContext(ctx context.Context)
- func (o *AddPermissionsParams) SetDefaults()
- func (o *AddPermissionsParams) SetHTTPClient(client *http.Client)
- func (o *AddPermissionsParams) SetID(id string)
- func (o *AddPermissionsParams) SetTimeout(timeout time.Duration)
- func (o *AddPermissionsParams) WithBody(body AddPermissionsBody) *AddPermissionsParams
- func (o *AddPermissionsParams) WithContext(ctx context.Context) *AddPermissionsParams
- func (o *AddPermissionsParams) WithDefaults() *AddPermissionsParams
- func (o *AddPermissionsParams) WithHTTPClient(client *http.Client) *AddPermissionsParams
- func (o *AddPermissionsParams) WithID(id string) *AddPermissionsParams
- func (o *AddPermissionsParams) WithTimeout(timeout time.Duration) *AddPermissionsParams
- func (o *AddPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddPermissionsReader
- type AddPermissionsUnauthorized
- func (o *AddPermissionsUnauthorized) Code() int
- func (o *AddPermissionsUnauthorized) Error() string
- func (o *AddPermissionsUnauthorized) IsClientError() bool
- func (o *AddPermissionsUnauthorized) IsCode(code int) bool
- func (o *AddPermissionsUnauthorized) IsRedirect() bool
- func (o *AddPermissionsUnauthorized) IsServerError() bool
- func (o *AddPermissionsUnauthorized) IsSuccess() bool
- func (o *AddPermissionsUnauthorized) String() string
- type AddPermissionsUnprocessableEntity
- func (o *AddPermissionsUnprocessableEntity) Code() int
- func (o *AddPermissionsUnprocessableEntity) Error() string
- func (o *AddPermissionsUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *AddPermissionsUnprocessableEntity) IsClientError() bool
- func (o *AddPermissionsUnprocessableEntity) IsCode(code int) bool
- func (o *AddPermissionsUnprocessableEntity) IsRedirect() bool
- func (o *AddPermissionsUnprocessableEntity) IsServerError() bool
- func (o *AddPermissionsUnprocessableEntity) IsSuccess() bool
- func (o *AddPermissionsUnprocessableEntity) String() string
- type AssignRoleBadRequest
- func (o *AssignRoleBadRequest) Code() int
- func (o *AssignRoleBadRequest) Error() string
- func (o *AssignRoleBadRequest) GetPayload() *models.ErrorResponse
- func (o *AssignRoleBadRequest) IsClientError() bool
- func (o *AssignRoleBadRequest) IsCode(code int) bool
- func (o *AssignRoleBadRequest) IsRedirect() bool
- func (o *AssignRoleBadRequest) IsServerError() bool
- func (o *AssignRoleBadRequest) IsSuccess() bool
- func (o *AssignRoleBadRequest) String() string
- type AssignRoleBody
- type AssignRoleForbidden
- func (o *AssignRoleForbidden) Code() int
- func (o *AssignRoleForbidden) Error() string
- func (o *AssignRoleForbidden) GetPayload() *models.ErrorResponse
- func (o *AssignRoleForbidden) IsClientError() bool
- func (o *AssignRoleForbidden) IsCode(code int) bool
- func (o *AssignRoleForbidden) IsRedirect() bool
- func (o *AssignRoleForbidden) IsServerError() bool
- func (o *AssignRoleForbidden) IsSuccess() bool
- func (o *AssignRoleForbidden) String() string
- type AssignRoleInternalServerError
- func (o *AssignRoleInternalServerError) Code() int
- func (o *AssignRoleInternalServerError) Error() string
- func (o *AssignRoleInternalServerError) GetPayload() *models.ErrorResponse
- func (o *AssignRoleInternalServerError) IsClientError() bool
- func (o *AssignRoleInternalServerError) IsCode(code int) bool
- func (o *AssignRoleInternalServerError) IsRedirect() bool
- func (o *AssignRoleInternalServerError) IsServerError() bool
- func (o *AssignRoleInternalServerError) IsSuccess() bool
- func (o *AssignRoleInternalServerError) String() string
- type AssignRoleNotFound
- func (o *AssignRoleNotFound) Code() int
- func (o *AssignRoleNotFound) Error() string
- func (o *AssignRoleNotFound) IsClientError() bool
- func (o *AssignRoleNotFound) IsCode(code int) bool
- func (o *AssignRoleNotFound) IsRedirect() bool
- func (o *AssignRoleNotFound) IsServerError() bool
- func (o *AssignRoleNotFound) IsSuccess() bool
- func (o *AssignRoleNotFound) String() string
- type AssignRoleOK
- func (o *AssignRoleOK) Code() int
- func (o *AssignRoleOK) Error() string
- func (o *AssignRoleOK) IsClientError() bool
- func (o *AssignRoleOK) IsCode(code int) bool
- func (o *AssignRoleOK) IsRedirect() bool
- func (o *AssignRoleOK) IsServerError() bool
- func (o *AssignRoleOK) IsSuccess() bool
- func (o *AssignRoleOK) String() string
- type AssignRoleParams
- func (o *AssignRoleParams) SetBody(body AssignRoleBody)
- func (o *AssignRoleParams) SetContext(ctx context.Context)
- func (o *AssignRoleParams) SetDefaults()
- func (o *AssignRoleParams) SetHTTPClient(client *http.Client)
- func (o *AssignRoleParams) SetID(id string)
- func (o *AssignRoleParams) SetTimeout(timeout time.Duration)
- func (o *AssignRoleParams) WithBody(body AssignRoleBody) *AssignRoleParams
- func (o *AssignRoleParams) WithContext(ctx context.Context) *AssignRoleParams
- func (o *AssignRoleParams) WithDefaults() *AssignRoleParams
- func (o *AssignRoleParams) WithHTTPClient(client *http.Client) *AssignRoleParams
- func (o *AssignRoleParams) WithID(id string) *AssignRoleParams
- func (o *AssignRoleParams) WithTimeout(timeout time.Duration) *AssignRoleParams
- func (o *AssignRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AssignRoleReader
- type AssignRoleUnauthorized
- func (o *AssignRoleUnauthorized) Code() int
- func (o *AssignRoleUnauthorized) Error() string
- func (o *AssignRoleUnauthorized) IsClientError() bool
- func (o *AssignRoleUnauthorized) IsCode(code int) bool
- func (o *AssignRoleUnauthorized) IsRedirect() bool
- func (o *AssignRoleUnauthorized) IsServerError() bool
- func (o *AssignRoleUnauthorized) IsSuccess() bool
- func (o *AssignRoleUnauthorized) String() string
- type Client
- func (a *Client) AddPermissions(params *AddPermissionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AddPermissionsOK, error)
- func (a *Client) AssignRole(params *AssignRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AssignRoleOK, error)
- func (a *Client) CreateRole(params *CreateRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateRoleCreated, error)
- func (a *Client) DeleteRole(params *DeleteRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteRoleNoContent, error)
- func (a *Client) GetRole(params *GetRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRoleOK, error)
- func (a *Client) GetRoles(params *GetRolesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRolesOK, error)
- func (a *Client) GetRolesForOwnUser(params *GetRolesForOwnUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRolesForOwnUserOK, error)
- func (a *Client) GetRolesForUser(params *GetRolesForUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRolesForUserOK, error)
- func (a *Client) GetUsersForRole(params *GetUsersForRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUsersForRoleOK, error)
- func (a *Client) HasPermission(params *HasPermissionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*HasPermissionOK, error)
- func (a *Client) RemovePermissions(params *RemovePermissionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RemovePermissionsOK, error)
- func (a *Client) RevokeRole(params *RevokeRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RevokeRoleOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateRoleBadRequest
- func (o *CreateRoleBadRequest) Code() int
- func (o *CreateRoleBadRequest) Error() string
- func (o *CreateRoleBadRequest) GetPayload() *models.ErrorResponse
- func (o *CreateRoleBadRequest) IsClientError() bool
- func (o *CreateRoleBadRequest) IsCode(code int) bool
- func (o *CreateRoleBadRequest) IsRedirect() bool
- func (o *CreateRoleBadRequest) IsServerError() bool
- func (o *CreateRoleBadRequest) IsSuccess() bool
- func (o *CreateRoleBadRequest) String() string
- type CreateRoleConflict
- func (o *CreateRoleConflict) Code() int
- func (o *CreateRoleConflict) Error() string
- func (o *CreateRoleConflict) GetPayload() *models.ErrorResponse
- func (o *CreateRoleConflict) IsClientError() bool
- func (o *CreateRoleConflict) IsCode(code int) bool
- func (o *CreateRoleConflict) IsRedirect() bool
- func (o *CreateRoleConflict) IsServerError() bool
- func (o *CreateRoleConflict) IsSuccess() bool
- func (o *CreateRoleConflict) String() string
- type CreateRoleCreated
- func (o *CreateRoleCreated) Code() int
- func (o *CreateRoleCreated) Error() string
- func (o *CreateRoleCreated) IsClientError() bool
- func (o *CreateRoleCreated) IsCode(code int) bool
- func (o *CreateRoleCreated) IsRedirect() bool
- func (o *CreateRoleCreated) IsServerError() bool
- func (o *CreateRoleCreated) IsSuccess() bool
- func (o *CreateRoleCreated) String() string
- type CreateRoleForbidden
- func (o *CreateRoleForbidden) Code() int
- func (o *CreateRoleForbidden) Error() string
- func (o *CreateRoleForbidden) GetPayload() *models.ErrorResponse
- func (o *CreateRoleForbidden) IsClientError() bool
- func (o *CreateRoleForbidden) IsCode(code int) bool
- func (o *CreateRoleForbidden) IsRedirect() bool
- func (o *CreateRoleForbidden) IsServerError() bool
- func (o *CreateRoleForbidden) IsSuccess() bool
- func (o *CreateRoleForbidden) String() string
- type CreateRoleInternalServerError
- func (o *CreateRoleInternalServerError) Code() int
- func (o *CreateRoleInternalServerError) Error() string
- func (o *CreateRoleInternalServerError) GetPayload() *models.ErrorResponse
- func (o *CreateRoleInternalServerError) IsClientError() bool
- func (o *CreateRoleInternalServerError) IsCode(code int) bool
- func (o *CreateRoleInternalServerError) IsRedirect() bool
- func (o *CreateRoleInternalServerError) IsServerError() bool
- func (o *CreateRoleInternalServerError) IsSuccess() bool
- func (o *CreateRoleInternalServerError) String() string
- type CreateRoleParams
- func (o *CreateRoleParams) SetBody(body *models.Role)
- func (o *CreateRoleParams) SetContext(ctx context.Context)
- func (o *CreateRoleParams) SetDefaults()
- func (o *CreateRoleParams) SetHTTPClient(client *http.Client)
- func (o *CreateRoleParams) SetTimeout(timeout time.Duration)
- func (o *CreateRoleParams) WithBody(body *models.Role) *CreateRoleParams
- func (o *CreateRoleParams) WithContext(ctx context.Context) *CreateRoleParams
- func (o *CreateRoleParams) WithDefaults() *CreateRoleParams
- func (o *CreateRoleParams) WithHTTPClient(client *http.Client) *CreateRoleParams
- func (o *CreateRoleParams) WithTimeout(timeout time.Duration) *CreateRoleParams
- func (o *CreateRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateRoleReader
- type CreateRoleUnauthorized
- func (o *CreateRoleUnauthorized) Code() int
- func (o *CreateRoleUnauthorized) Error() string
- func (o *CreateRoleUnauthorized) IsClientError() bool
- func (o *CreateRoleUnauthorized) IsCode(code int) bool
- func (o *CreateRoleUnauthorized) IsRedirect() bool
- func (o *CreateRoleUnauthorized) IsServerError() bool
- func (o *CreateRoleUnauthorized) IsSuccess() bool
- func (o *CreateRoleUnauthorized) String() string
- type CreateRoleUnprocessableEntity
- func (o *CreateRoleUnprocessableEntity) Code() int
- func (o *CreateRoleUnprocessableEntity) Error() string
- func (o *CreateRoleUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *CreateRoleUnprocessableEntity) IsClientError() bool
- func (o *CreateRoleUnprocessableEntity) IsCode(code int) bool
- func (o *CreateRoleUnprocessableEntity) IsRedirect() bool
- func (o *CreateRoleUnprocessableEntity) IsServerError() bool
- func (o *CreateRoleUnprocessableEntity) IsSuccess() bool
- func (o *CreateRoleUnprocessableEntity) String() string
- type DeleteRoleBadRequest
- func (o *DeleteRoleBadRequest) Code() int
- func (o *DeleteRoleBadRequest) Error() string
- func (o *DeleteRoleBadRequest) GetPayload() *models.ErrorResponse
- func (o *DeleteRoleBadRequest) IsClientError() bool
- func (o *DeleteRoleBadRequest) IsCode(code int) bool
- func (o *DeleteRoleBadRequest) IsRedirect() bool
- func (o *DeleteRoleBadRequest) IsServerError() bool
- func (o *DeleteRoleBadRequest) IsSuccess() bool
- func (o *DeleteRoleBadRequest) String() string
- type DeleteRoleForbidden
- func (o *DeleteRoleForbidden) Code() int
- func (o *DeleteRoleForbidden) Error() string
- func (o *DeleteRoleForbidden) GetPayload() *models.ErrorResponse
- func (o *DeleteRoleForbidden) IsClientError() bool
- func (o *DeleteRoleForbidden) IsCode(code int) bool
- func (o *DeleteRoleForbidden) IsRedirect() bool
- func (o *DeleteRoleForbidden) IsServerError() bool
- func (o *DeleteRoleForbidden) IsSuccess() bool
- func (o *DeleteRoleForbidden) String() string
- type DeleteRoleInternalServerError
- func (o *DeleteRoleInternalServerError) Code() int
- func (o *DeleteRoleInternalServerError) Error() string
- func (o *DeleteRoleInternalServerError) GetPayload() *models.ErrorResponse
- func (o *DeleteRoleInternalServerError) IsClientError() bool
- func (o *DeleteRoleInternalServerError) IsCode(code int) bool
- func (o *DeleteRoleInternalServerError) IsRedirect() bool
- func (o *DeleteRoleInternalServerError) IsServerError() bool
- func (o *DeleteRoleInternalServerError) IsSuccess() bool
- func (o *DeleteRoleInternalServerError) String() string
- type DeleteRoleNoContent
- func (o *DeleteRoleNoContent) Code() int
- func (o *DeleteRoleNoContent) Error() string
- func (o *DeleteRoleNoContent) IsClientError() bool
- func (o *DeleteRoleNoContent) IsCode(code int) bool
- func (o *DeleteRoleNoContent) IsRedirect() bool
- func (o *DeleteRoleNoContent) IsServerError() bool
- func (o *DeleteRoleNoContent) IsSuccess() bool
- func (o *DeleteRoleNoContent) String() string
- type DeleteRoleParams
- func (o *DeleteRoleParams) SetContext(ctx context.Context)
- func (o *DeleteRoleParams) SetDefaults()
- func (o *DeleteRoleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRoleParams) SetID(id string)
- func (o *DeleteRoleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRoleParams) WithContext(ctx context.Context) *DeleteRoleParams
- func (o *DeleteRoleParams) WithDefaults() *DeleteRoleParams
- func (o *DeleteRoleParams) WithHTTPClient(client *http.Client) *DeleteRoleParams
- func (o *DeleteRoleParams) WithID(id string) *DeleteRoleParams
- func (o *DeleteRoleParams) WithTimeout(timeout time.Duration) *DeleteRoleParams
- func (o *DeleteRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRoleReader
- type DeleteRoleUnauthorized
- func (o *DeleteRoleUnauthorized) Code() int
- func (o *DeleteRoleUnauthorized) Error() string
- func (o *DeleteRoleUnauthorized) IsClientError() bool
- func (o *DeleteRoleUnauthorized) IsCode(code int) bool
- func (o *DeleteRoleUnauthorized) IsRedirect() bool
- func (o *DeleteRoleUnauthorized) IsServerError() bool
- func (o *DeleteRoleUnauthorized) IsSuccess() bool
- func (o *DeleteRoleUnauthorized) String() string
- type GetRoleBadRequest
- func (o *GetRoleBadRequest) Code() int
- func (o *GetRoleBadRequest) Error() string
- func (o *GetRoleBadRequest) GetPayload() *models.ErrorResponse
- func (o *GetRoleBadRequest) IsClientError() bool
- func (o *GetRoleBadRequest) IsCode(code int) bool
- func (o *GetRoleBadRequest) IsRedirect() bool
- func (o *GetRoleBadRequest) IsServerError() bool
- func (o *GetRoleBadRequest) IsSuccess() bool
- func (o *GetRoleBadRequest) String() string
- type GetRoleForbidden
- func (o *GetRoleForbidden) Code() int
- func (o *GetRoleForbidden) Error() string
- func (o *GetRoleForbidden) GetPayload() *models.ErrorResponse
- func (o *GetRoleForbidden) IsClientError() bool
- func (o *GetRoleForbidden) IsCode(code int) bool
- func (o *GetRoleForbidden) IsRedirect() bool
- func (o *GetRoleForbidden) IsServerError() bool
- func (o *GetRoleForbidden) IsSuccess() bool
- func (o *GetRoleForbidden) String() string
- type GetRoleInternalServerError
- func (o *GetRoleInternalServerError) Code() int
- func (o *GetRoleInternalServerError) Error() string
- func (o *GetRoleInternalServerError) GetPayload() *models.ErrorResponse
- func (o *GetRoleInternalServerError) IsClientError() bool
- func (o *GetRoleInternalServerError) IsCode(code int) bool
- func (o *GetRoleInternalServerError) IsRedirect() bool
- func (o *GetRoleInternalServerError) IsServerError() bool
- func (o *GetRoleInternalServerError) IsSuccess() bool
- func (o *GetRoleInternalServerError) String() string
- type GetRoleNotFound
- func (o *GetRoleNotFound) Code() int
- func (o *GetRoleNotFound) Error() string
- func (o *GetRoleNotFound) IsClientError() bool
- func (o *GetRoleNotFound) IsCode(code int) bool
- func (o *GetRoleNotFound) IsRedirect() bool
- func (o *GetRoleNotFound) IsServerError() bool
- func (o *GetRoleNotFound) IsSuccess() bool
- func (o *GetRoleNotFound) String() string
- type GetRoleOK
- func (o *GetRoleOK) Code() int
- func (o *GetRoleOK) Error() string
- func (o *GetRoleOK) GetPayload() *models.Role
- func (o *GetRoleOK) IsClientError() bool
- func (o *GetRoleOK) IsCode(code int) bool
- func (o *GetRoleOK) IsRedirect() bool
- func (o *GetRoleOK) IsServerError() bool
- func (o *GetRoleOK) IsSuccess() bool
- func (o *GetRoleOK) String() string
- type GetRoleParams
- func (o *GetRoleParams) SetContext(ctx context.Context)
- func (o *GetRoleParams) SetDefaults()
- func (o *GetRoleParams) SetHTTPClient(client *http.Client)
- func (o *GetRoleParams) SetID(id string)
- func (o *GetRoleParams) SetTimeout(timeout time.Duration)
- func (o *GetRoleParams) WithContext(ctx context.Context) *GetRoleParams
- func (o *GetRoleParams) WithDefaults() *GetRoleParams
- func (o *GetRoleParams) WithHTTPClient(client *http.Client) *GetRoleParams
- func (o *GetRoleParams) WithID(id string) *GetRoleParams
- func (o *GetRoleParams) WithTimeout(timeout time.Duration) *GetRoleParams
- func (o *GetRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRoleReader
- type GetRoleUnauthorized
- func (o *GetRoleUnauthorized) Code() int
- func (o *GetRoleUnauthorized) Error() string
- func (o *GetRoleUnauthorized) IsClientError() bool
- func (o *GetRoleUnauthorized) IsCode(code int) bool
- func (o *GetRoleUnauthorized) IsRedirect() bool
- func (o *GetRoleUnauthorized) IsServerError() bool
- func (o *GetRoleUnauthorized) IsSuccess() bool
- func (o *GetRoleUnauthorized) String() string
- type GetRolesBadRequest
- func (o *GetRolesBadRequest) Code() int
- func (o *GetRolesBadRequest) Error() string
- func (o *GetRolesBadRequest) GetPayload() *models.ErrorResponse
- func (o *GetRolesBadRequest) IsClientError() bool
- func (o *GetRolesBadRequest) IsCode(code int) bool
- func (o *GetRolesBadRequest) IsRedirect() bool
- func (o *GetRolesBadRequest) IsServerError() bool
- func (o *GetRolesBadRequest) IsSuccess() bool
- func (o *GetRolesBadRequest) String() string
- type GetRolesForOwnUserInternalServerError
- func (o *GetRolesForOwnUserInternalServerError) Code() int
- func (o *GetRolesForOwnUserInternalServerError) Error() string
- func (o *GetRolesForOwnUserInternalServerError) GetPayload() *models.ErrorResponse
- func (o *GetRolesForOwnUserInternalServerError) IsClientError() bool
- func (o *GetRolesForOwnUserInternalServerError) IsCode(code int) bool
- func (o *GetRolesForOwnUserInternalServerError) IsRedirect() bool
- func (o *GetRolesForOwnUserInternalServerError) IsServerError() bool
- func (o *GetRolesForOwnUserInternalServerError) IsSuccess() bool
- func (o *GetRolesForOwnUserInternalServerError) String() string
- type GetRolesForOwnUserOK
- func (o *GetRolesForOwnUserOK) Code() int
- func (o *GetRolesForOwnUserOK) Error() string
- func (o *GetRolesForOwnUserOK) GetPayload() models.RolesListResponse
- func (o *GetRolesForOwnUserOK) IsClientError() bool
- func (o *GetRolesForOwnUserOK) IsCode(code int) bool
- func (o *GetRolesForOwnUserOK) IsRedirect() bool
- func (o *GetRolesForOwnUserOK) IsServerError() bool
- func (o *GetRolesForOwnUserOK) IsSuccess() bool
- func (o *GetRolesForOwnUserOK) String() string
- type GetRolesForOwnUserParams
- func NewGetRolesForOwnUserParams() *GetRolesForOwnUserParams
- func NewGetRolesForOwnUserParamsWithContext(ctx context.Context) *GetRolesForOwnUserParams
- func NewGetRolesForOwnUserParamsWithHTTPClient(client *http.Client) *GetRolesForOwnUserParams
- func NewGetRolesForOwnUserParamsWithTimeout(timeout time.Duration) *GetRolesForOwnUserParams
- func (o *GetRolesForOwnUserParams) SetContext(ctx context.Context)
- func (o *GetRolesForOwnUserParams) SetDefaults()
- func (o *GetRolesForOwnUserParams) SetHTTPClient(client *http.Client)
- func (o *GetRolesForOwnUserParams) SetTimeout(timeout time.Duration)
- func (o *GetRolesForOwnUserParams) WithContext(ctx context.Context) *GetRolesForOwnUserParams
- func (o *GetRolesForOwnUserParams) WithDefaults() *GetRolesForOwnUserParams
- func (o *GetRolesForOwnUserParams) WithHTTPClient(client *http.Client) *GetRolesForOwnUserParams
- func (o *GetRolesForOwnUserParams) WithTimeout(timeout time.Duration) *GetRolesForOwnUserParams
- func (o *GetRolesForOwnUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRolesForOwnUserReader
- type GetRolesForOwnUserUnauthorized
- func (o *GetRolesForOwnUserUnauthorized) Code() int
- func (o *GetRolesForOwnUserUnauthorized) Error() string
- func (o *GetRolesForOwnUserUnauthorized) IsClientError() bool
- func (o *GetRolesForOwnUserUnauthorized) IsCode(code int) bool
- func (o *GetRolesForOwnUserUnauthorized) IsRedirect() bool
- func (o *GetRolesForOwnUserUnauthorized) IsServerError() bool
- func (o *GetRolesForOwnUserUnauthorized) IsSuccess() bool
- func (o *GetRolesForOwnUserUnauthorized) String() string
- type GetRolesForUserBadRequest
- func (o *GetRolesForUserBadRequest) Code() int
- func (o *GetRolesForUserBadRequest) Error() string
- func (o *GetRolesForUserBadRequest) GetPayload() *models.ErrorResponse
- func (o *GetRolesForUserBadRequest) IsClientError() bool
- func (o *GetRolesForUserBadRequest) IsCode(code int) bool
- func (o *GetRolesForUserBadRequest) IsRedirect() bool
- func (o *GetRolesForUserBadRequest) IsServerError() bool
- func (o *GetRolesForUserBadRequest) IsSuccess() bool
- func (o *GetRolesForUserBadRequest) String() string
- type GetRolesForUserForbidden
- func (o *GetRolesForUserForbidden) Code() int
- func (o *GetRolesForUserForbidden) Error() string
- func (o *GetRolesForUserForbidden) GetPayload() *models.ErrorResponse
- func (o *GetRolesForUserForbidden) IsClientError() bool
- func (o *GetRolesForUserForbidden) IsCode(code int) bool
- func (o *GetRolesForUserForbidden) IsRedirect() bool
- func (o *GetRolesForUserForbidden) IsServerError() bool
- func (o *GetRolesForUserForbidden) IsSuccess() bool
- func (o *GetRolesForUserForbidden) String() string
- type GetRolesForUserInternalServerError
- func (o *GetRolesForUserInternalServerError) Code() int
- func (o *GetRolesForUserInternalServerError) Error() string
- func (o *GetRolesForUserInternalServerError) GetPayload() *models.ErrorResponse
- func (o *GetRolesForUserInternalServerError) IsClientError() bool
- func (o *GetRolesForUserInternalServerError) IsCode(code int) bool
- func (o *GetRolesForUserInternalServerError) IsRedirect() bool
- func (o *GetRolesForUserInternalServerError) IsServerError() bool
- func (o *GetRolesForUserInternalServerError) IsSuccess() bool
- func (o *GetRolesForUserInternalServerError) String() string
- type GetRolesForUserNotFound
- func (o *GetRolesForUserNotFound) Code() int
- func (o *GetRolesForUserNotFound) Error() string
- func (o *GetRolesForUserNotFound) IsClientError() bool
- func (o *GetRolesForUserNotFound) IsCode(code int) bool
- func (o *GetRolesForUserNotFound) IsRedirect() bool
- func (o *GetRolesForUserNotFound) IsServerError() bool
- func (o *GetRolesForUserNotFound) IsSuccess() bool
- func (o *GetRolesForUserNotFound) String() string
- type GetRolesForUserOK
- func (o *GetRolesForUserOK) Code() int
- func (o *GetRolesForUserOK) Error() string
- func (o *GetRolesForUserOK) GetPayload() models.RolesListResponse
- func (o *GetRolesForUserOK) IsClientError() bool
- func (o *GetRolesForUserOK) IsCode(code int) bool
- func (o *GetRolesForUserOK) IsRedirect() bool
- func (o *GetRolesForUserOK) IsServerError() bool
- func (o *GetRolesForUserOK) IsSuccess() bool
- func (o *GetRolesForUserOK) String() string
- type GetRolesForUserParams
- func NewGetRolesForUserParams() *GetRolesForUserParams
- func NewGetRolesForUserParamsWithContext(ctx context.Context) *GetRolesForUserParams
- func NewGetRolesForUserParamsWithHTTPClient(client *http.Client) *GetRolesForUserParams
- func NewGetRolesForUserParamsWithTimeout(timeout time.Duration) *GetRolesForUserParams
- func (o *GetRolesForUserParams) SetContext(ctx context.Context)
- func (o *GetRolesForUserParams) SetDefaults()
- func (o *GetRolesForUserParams) SetHTTPClient(client *http.Client)
- func (o *GetRolesForUserParams) SetID(id string)
- func (o *GetRolesForUserParams) SetTimeout(timeout time.Duration)
- func (o *GetRolesForUserParams) WithContext(ctx context.Context) *GetRolesForUserParams
- func (o *GetRolesForUserParams) WithDefaults() *GetRolesForUserParams
- func (o *GetRolesForUserParams) WithHTTPClient(client *http.Client) *GetRolesForUserParams
- func (o *GetRolesForUserParams) WithID(id string) *GetRolesForUserParams
- func (o *GetRolesForUserParams) WithTimeout(timeout time.Duration) *GetRolesForUserParams
- func (o *GetRolesForUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRolesForUserReader
- type GetRolesForUserUnauthorized
- func (o *GetRolesForUserUnauthorized) Code() int
- func (o *GetRolesForUserUnauthorized) Error() string
- func (o *GetRolesForUserUnauthorized) IsClientError() bool
- func (o *GetRolesForUserUnauthorized) IsCode(code int) bool
- func (o *GetRolesForUserUnauthorized) IsRedirect() bool
- func (o *GetRolesForUserUnauthorized) IsServerError() bool
- func (o *GetRolesForUserUnauthorized) IsSuccess() bool
- func (o *GetRolesForUserUnauthorized) String() string
- type GetRolesForbidden
- func (o *GetRolesForbidden) Code() int
- func (o *GetRolesForbidden) Error() string
- func (o *GetRolesForbidden) GetPayload() *models.ErrorResponse
- func (o *GetRolesForbidden) IsClientError() bool
- func (o *GetRolesForbidden) IsCode(code int) bool
- func (o *GetRolesForbidden) IsRedirect() bool
- func (o *GetRolesForbidden) IsServerError() bool
- func (o *GetRolesForbidden) IsSuccess() bool
- func (o *GetRolesForbidden) String() string
- type GetRolesInternalServerError
- func (o *GetRolesInternalServerError) Code() int
- func (o *GetRolesInternalServerError) Error() string
- func (o *GetRolesInternalServerError) GetPayload() *models.ErrorResponse
- func (o *GetRolesInternalServerError) IsClientError() bool
- func (o *GetRolesInternalServerError) IsCode(code int) bool
- func (o *GetRolesInternalServerError) IsRedirect() bool
- func (o *GetRolesInternalServerError) IsServerError() bool
- func (o *GetRolesInternalServerError) IsSuccess() bool
- func (o *GetRolesInternalServerError) String() string
- type GetRolesOK
- func (o *GetRolesOK) Code() int
- func (o *GetRolesOK) Error() string
- func (o *GetRolesOK) GetPayload() models.RolesListResponse
- func (o *GetRolesOK) IsClientError() bool
- func (o *GetRolesOK) IsCode(code int) bool
- func (o *GetRolesOK) IsRedirect() bool
- func (o *GetRolesOK) IsServerError() bool
- func (o *GetRolesOK) IsSuccess() bool
- func (o *GetRolesOK) String() string
- type GetRolesParams
- func (o *GetRolesParams) SetContext(ctx context.Context)
- func (o *GetRolesParams) SetDefaults()
- func (o *GetRolesParams) SetHTTPClient(client *http.Client)
- func (o *GetRolesParams) SetTimeout(timeout time.Duration)
- func (o *GetRolesParams) WithContext(ctx context.Context) *GetRolesParams
- func (o *GetRolesParams) WithDefaults() *GetRolesParams
- func (o *GetRolesParams) WithHTTPClient(client *http.Client) *GetRolesParams
- func (o *GetRolesParams) WithTimeout(timeout time.Duration) *GetRolesParams
- func (o *GetRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRolesReader
- type GetRolesUnauthorized
- func (o *GetRolesUnauthorized) Code() int
- func (o *GetRolesUnauthorized) Error() string
- func (o *GetRolesUnauthorized) IsClientError() bool
- func (o *GetRolesUnauthorized) IsCode(code int) bool
- func (o *GetRolesUnauthorized) IsRedirect() bool
- func (o *GetRolesUnauthorized) IsServerError() bool
- func (o *GetRolesUnauthorized) IsSuccess() bool
- func (o *GetRolesUnauthorized) String() string
- type GetUsersForRoleBadRequest
- func (o *GetUsersForRoleBadRequest) Code() int
- func (o *GetUsersForRoleBadRequest) Error() string
- func (o *GetUsersForRoleBadRequest) GetPayload() *models.ErrorResponse
- func (o *GetUsersForRoleBadRequest) IsClientError() bool
- func (o *GetUsersForRoleBadRequest) IsCode(code int) bool
- func (o *GetUsersForRoleBadRequest) IsRedirect() bool
- func (o *GetUsersForRoleBadRequest) IsServerError() bool
- func (o *GetUsersForRoleBadRequest) IsSuccess() bool
- func (o *GetUsersForRoleBadRequest) String() string
- type GetUsersForRoleForbidden
- func (o *GetUsersForRoleForbidden) Code() int
- func (o *GetUsersForRoleForbidden) Error() string
- func (o *GetUsersForRoleForbidden) GetPayload() *models.ErrorResponse
- func (o *GetUsersForRoleForbidden) IsClientError() bool
- func (o *GetUsersForRoleForbidden) IsCode(code int) bool
- func (o *GetUsersForRoleForbidden) IsRedirect() bool
- func (o *GetUsersForRoleForbidden) IsServerError() bool
- func (o *GetUsersForRoleForbidden) IsSuccess() bool
- func (o *GetUsersForRoleForbidden) String() string
- type GetUsersForRoleInternalServerError
- func (o *GetUsersForRoleInternalServerError) Code() int
- func (o *GetUsersForRoleInternalServerError) Error() string
- func (o *GetUsersForRoleInternalServerError) GetPayload() *models.ErrorResponse
- func (o *GetUsersForRoleInternalServerError) IsClientError() bool
- func (o *GetUsersForRoleInternalServerError) IsCode(code int) bool
- func (o *GetUsersForRoleInternalServerError) IsRedirect() bool
- func (o *GetUsersForRoleInternalServerError) IsServerError() bool
- func (o *GetUsersForRoleInternalServerError) IsSuccess() bool
- func (o *GetUsersForRoleInternalServerError) String() string
- type GetUsersForRoleNotFound
- func (o *GetUsersForRoleNotFound) Code() int
- func (o *GetUsersForRoleNotFound) Error() string
- func (o *GetUsersForRoleNotFound) IsClientError() bool
- func (o *GetUsersForRoleNotFound) IsCode(code int) bool
- func (o *GetUsersForRoleNotFound) IsRedirect() bool
- func (o *GetUsersForRoleNotFound) IsServerError() bool
- func (o *GetUsersForRoleNotFound) IsSuccess() bool
- func (o *GetUsersForRoleNotFound) String() string
- type GetUsersForRoleOK
- func (o *GetUsersForRoleOK) Code() int
- func (o *GetUsersForRoleOK) Error() string
- func (o *GetUsersForRoleOK) GetPayload() []string
- func (o *GetUsersForRoleOK) IsClientError() bool
- func (o *GetUsersForRoleOK) IsCode(code int) bool
- func (o *GetUsersForRoleOK) IsRedirect() bool
- func (o *GetUsersForRoleOK) IsServerError() bool
- func (o *GetUsersForRoleOK) IsSuccess() bool
- func (o *GetUsersForRoleOK) String() string
- type GetUsersForRoleParams
- func NewGetUsersForRoleParams() *GetUsersForRoleParams
- func NewGetUsersForRoleParamsWithContext(ctx context.Context) *GetUsersForRoleParams
- func NewGetUsersForRoleParamsWithHTTPClient(client *http.Client) *GetUsersForRoleParams
- func NewGetUsersForRoleParamsWithTimeout(timeout time.Duration) *GetUsersForRoleParams
- func (o *GetUsersForRoleParams) SetContext(ctx context.Context)
- func (o *GetUsersForRoleParams) SetDefaults()
- func (o *GetUsersForRoleParams) SetHTTPClient(client *http.Client)
- func (o *GetUsersForRoleParams) SetID(id string)
- func (o *GetUsersForRoleParams) SetTimeout(timeout time.Duration)
- func (o *GetUsersForRoleParams) WithContext(ctx context.Context) *GetUsersForRoleParams
- func (o *GetUsersForRoleParams) WithDefaults() *GetUsersForRoleParams
- func (o *GetUsersForRoleParams) WithHTTPClient(client *http.Client) *GetUsersForRoleParams
- func (o *GetUsersForRoleParams) WithID(id string) *GetUsersForRoleParams
- func (o *GetUsersForRoleParams) WithTimeout(timeout time.Duration) *GetUsersForRoleParams
- func (o *GetUsersForRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUsersForRoleReader
- type GetUsersForRoleUnauthorized
- func (o *GetUsersForRoleUnauthorized) Code() int
- func (o *GetUsersForRoleUnauthorized) Error() string
- func (o *GetUsersForRoleUnauthorized) IsClientError() bool
- func (o *GetUsersForRoleUnauthorized) IsCode(code int) bool
- func (o *GetUsersForRoleUnauthorized) IsRedirect() bool
- func (o *GetUsersForRoleUnauthorized) IsServerError() bool
- func (o *GetUsersForRoleUnauthorized) IsSuccess() bool
- func (o *GetUsersForRoleUnauthorized) String() string
- type HasPermissionBadRequest
- func (o *HasPermissionBadRequest) Code() int
- func (o *HasPermissionBadRequest) Error() string
- func (o *HasPermissionBadRequest) GetPayload() *models.ErrorResponse
- func (o *HasPermissionBadRequest) IsClientError() bool
- func (o *HasPermissionBadRequest) IsCode(code int) bool
- func (o *HasPermissionBadRequest) IsRedirect() bool
- func (o *HasPermissionBadRequest) IsServerError() bool
- func (o *HasPermissionBadRequest) IsSuccess() bool
- func (o *HasPermissionBadRequest) String() string
- type HasPermissionForbidden
- func (o *HasPermissionForbidden) Code() int
- func (o *HasPermissionForbidden) Error() string
- func (o *HasPermissionForbidden) GetPayload() *models.ErrorResponse
- func (o *HasPermissionForbidden) IsClientError() bool
- func (o *HasPermissionForbidden) IsCode(code int) bool
- func (o *HasPermissionForbidden) IsRedirect() bool
- func (o *HasPermissionForbidden) IsServerError() bool
- func (o *HasPermissionForbidden) IsSuccess() bool
- func (o *HasPermissionForbidden) String() string
- type HasPermissionInternalServerError
- func (o *HasPermissionInternalServerError) Code() int
- func (o *HasPermissionInternalServerError) Error() string
- func (o *HasPermissionInternalServerError) GetPayload() *models.ErrorResponse
- func (o *HasPermissionInternalServerError) IsClientError() bool
- func (o *HasPermissionInternalServerError) IsCode(code int) bool
- func (o *HasPermissionInternalServerError) IsRedirect() bool
- func (o *HasPermissionInternalServerError) IsServerError() bool
- func (o *HasPermissionInternalServerError) IsSuccess() bool
- func (o *HasPermissionInternalServerError) String() string
- type HasPermissionOK
- func (o *HasPermissionOK) Code() int
- func (o *HasPermissionOK) Error() string
- func (o *HasPermissionOK) GetPayload() bool
- func (o *HasPermissionOK) IsClientError() bool
- func (o *HasPermissionOK) IsCode(code int) bool
- func (o *HasPermissionOK) IsRedirect() bool
- func (o *HasPermissionOK) IsServerError() bool
- func (o *HasPermissionOK) IsSuccess() bool
- func (o *HasPermissionOK) String() string
- type HasPermissionParams
- func (o *HasPermissionParams) SetBody(body *models.Permission)
- func (o *HasPermissionParams) SetContext(ctx context.Context)
- func (o *HasPermissionParams) SetDefaults()
- func (o *HasPermissionParams) SetHTTPClient(client *http.Client)
- func (o *HasPermissionParams) SetID(id string)
- func (o *HasPermissionParams) SetTimeout(timeout time.Duration)
- func (o *HasPermissionParams) WithBody(body *models.Permission) *HasPermissionParams
- func (o *HasPermissionParams) WithContext(ctx context.Context) *HasPermissionParams
- func (o *HasPermissionParams) WithDefaults() *HasPermissionParams
- func (o *HasPermissionParams) WithHTTPClient(client *http.Client) *HasPermissionParams
- func (o *HasPermissionParams) WithID(id string) *HasPermissionParams
- func (o *HasPermissionParams) WithTimeout(timeout time.Duration) *HasPermissionParams
- func (o *HasPermissionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type HasPermissionReader
- type HasPermissionUnauthorized
- func (o *HasPermissionUnauthorized) Code() int
- func (o *HasPermissionUnauthorized) Error() string
- func (o *HasPermissionUnauthorized) IsClientError() bool
- func (o *HasPermissionUnauthorized) IsCode(code int) bool
- func (o *HasPermissionUnauthorized) IsRedirect() bool
- func (o *HasPermissionUnauthorized) IsServerError() bool
- func (o *HasPermissionUnauthorized) IsSuccess() bool
- func (o *HasPermissionUnauthorized) String() string
- type HasPermissionUnprocessableEntity
- func (o *HasPermissionUnprocessableEntity) Code() int
- func (o *HasPermissionUnprocessableEntity) Error() string
- func (o *HasPermissionUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *HasPermissionUnprocessableEntity) IsClientError() bool
- func (o *HasPermissionUnprocessableEntity) IsCode(code int) bool
- func (o *HasPermissionUnprocessableEntity) IsRedirect() bool
- func (o *HasPermissionUnprocessableEntity) IsServerError() bool
- func (o *HasPermissionUnprocessableEntity) IsSuccess() bool
- func (o *HasPermissionUnprocessableEntity) String() string
- type RemovePermissionsBadRequest
- func (o *RemovePermissionsBadRequest) Code() int
- func (o *RemovePermissionsBadRequest) Error() string
- func (o *RemovePermissionsBadRequest) GetPayload() *models.ErrorResponse
- func (o *RemovePermissionsBadRequest) IsClientError() bool
- func (o *RemovePermissionsBadRequest) IsCode(code int) bool
- func (o *RemovePermissionsBadRequest) IsRedirect() bool
- func (o *RemovePermissionsBadRequest) IsServerError() bool
- func (o *RemovePermissionsBadRequest) IsSuccess() bool
- func (o *RemovePermissionsBadRequest) String() string
- type RemovePermissionsBody
- type RemovePermissionsForbidden
- func (o *RemovePermissionsForbidden) Code() int
- func (o *RemovePermissionsForbidden) Error() string
- func (o *RemovePermissionsForbidden) GetPayload() *models.ErrorResponse
- func (o *RemovePermissionsForbidden) IsClientError() bool
- func (o *RemovePermissionsForbidden) IsCode(code int) bool
- func (o *RemovePermissionsForbidden) IsRedirect() bool
- func (o *RemovePermissionsForbidden) IsServerError() bool
- func (o *RemovePermissionsForbidden) IsSuccess() bool
- func (o *RemovePermissionsForbidden) String() string
- type RemovePermissionsInternalServerError
- func (o *RemovePermissionsInternalServerError) Code() int
- func (o *RemovePermissionsInternalServerError) Error() string
- func (o *RemovePermissionsInternalServerError) GetPayload() *models.ErrorResponse
- func (o *RemovePermissionsInternalServerError) IsClientError() bool
- func (o *RemovePermissionsInternalServerError) IsCode(code int) bool
- func (o *RemovePermissionsInternalServerError) IsRedirect() bool
- func (o *RemovePermissionsInternalServerError) IsServerError() bool
- func (o *RemovePermissionsInternalServerError) IsSuccess() bool
- func (o *RemovePermissionsInternalServerError) String() string
- type RemovePermissionsNotFound
- func (o *RemovePermissionsNotFound) Code() int
- func (o *RemovePermissionsNotFound) Error() string
- func (o *RemovePermissionsNotFound) IsClientError() bool
- func (o *RemovePermissionsNotFound) IsCode(code int) bool
- func (o *RemovePermissionsNotFound) IsRedirect() bool
- func (o *RemovePermissionsNotFound) IsServerError() bool
- func (o *RemovePermissionsNotFound) IsSuccess() bool
- func (o *RemovePermissionsNotFound) String() string
- type RemovePermissionsOK
- func (o *RemovePermissionsOK) Code() int
- func (o *RemovePermissionsOK) Error() string
- func (o *RemovePermissionsOK) IsClientError() bool
- func (o *RemovePermissionsOK) IsCode(code int) bool
- func (o *RemovePermissionsOK) IsRedirect() bool
- func (o *RemovePermissionsOK) IsServerError() bool
- func (o *RemovePermissionsOK) IsSuccess() bool
- func (o *RemovePermissionsOK) String() string
- type RemovePermissionsParams
- func NewRemovePermissionsParams() *RemovePermissionsParams
- func NewRemovePermissionsParamsWithContext(ctx context.Context) *RemovePermissionsParams
- func NewRemovePermissionsParamsWithHTTPClient(client *http.Client) *RemovePermissionsParams
- func NewRemovePermissionsParamsWithTimeout(timeout time.Duration) *RemovePermissionsParams
- func (o *RemovePermissionsParams) SetBody(body RemovePermissionsBody)
- func (o *RemovePermissionsParams) SetContext(ctx context.Context)
- func (o *RemovePermissionsParams) SetDefaults()
- func (o *RemovePermissionsParams) SetHTTPClient(client *http.Client)
- func (o *RemovePermissionsParams) SetID(id string)
- func (o *RemovePermissionsParams) SetTimeout(timeout time.Duration)
- func (o *RemovePermissionsParams) WithBody(body RemovePermissionsBody) *RemovePermissionsParams
- func (o *RemovePermissionsParams) WithContext(ctx context.Context) *RemovePermissionsParams
- func (o *RemovePermissionsParams) WithDefaults() *RemovePermissionsParams
- func (o *RemovePermissionsParams) WithHTTPClient(client *http.Client) *RemovePermissionsParams
- func (o *RemovePermissionsParams) WithID(id string) *RemovePermissionsParams
- func (o *RemovePermissionsParams) WithTimeout(timeout time.Duration) *RemovePermissionsParams
- func (o *RemovePermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemovePermissionsReader
- type RemovePermissionsUnauthorized
- func (o *RemovePermissionsUnauthorized) Code() int
- func (o *RemovePermissionsUnauthorized) Error() string
- func (o *RemovePermissionsUnauthorized) IsClientError() bool
- func (o *RemovePermissionsUnauthorized) IsCode(code int) bool
- func (o *RemovePermissionsUnauthorized) IsRedirect() bool
- func (o *RemovePermissionsUnauthorized) IsServerError() bool
- func (o *RemovePermissionsUnauthorized) IsSuccess() bool
- func (o *RemovePermissionsUnauthorized) String() string
- type RemovePermissionsUnprocessableEntity
- func (o *RemovePermissionsUnprocessableEntity) Code() int
- func (o *RemovePermissionsUnprocessableEntity) Error() string
- func (o *RemovePermissionsUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *RemovePermissionsUnprocessableEntity) IsClientError() bool
- func (o *RemovePermissionsUnprocessableEntity) IsCode(code int) bool
- func (o *RemovePermissionsUnprocessableEntity) IsRedirect() bool
- func (o *RemovePermissionsUnprocessableEntity) IsServerError() bool
- func (o *RemovePermissionsUnprocessableEntity) IsSuccess() bool
- func (o *RemovePermissionsUnprocessableEntity) String() string
- type RevokeRoleBadRequest
- func (o *RevokeRoleBadRequest) Code() int
- func (o *RevokeRoleBadRequest) Error() string
- func (o *RevokeRoleBadRequest) GetPayload() *models.ErrorResponse
- func (o *RevokeRoleBadRequest) IsClientError() bool
- func (o *RevokeRoleBadRequest) IsCode(code int) bool
- func (o *RevokeRoleBadRequest) IsRedirect() bool
- func (o *RevokeRoleBadRequest) IsServerError() bool
- func (o *RevokeRoleBadRequest) IsSuccess() bool
- func (o *RevokeRoleBadRequest) String() string
- type RevokeRoleBody
- type RevokeRoleForbidden
- func (o *RevokeRoleForbidden) Code() int
- func (o *RevokeRoleForbidden) Error() string
- func (o *RevokeRoleForbidden) GetPayload() *models.ErrorResponse
- func (o *RevokeRoleForbidden) IsClientError() bool
- func (o *RevokeRoleForbidden) IsCode(code int) bool
- func (o *RevokeRoleForbidden) IsRedirect() bool
- func (o *RevokeRoleForbidden) IsServerError() bool
- func (o *RevokeRoleForbidden) IsSuccess() bool
- func (o *RevokeRoleForbidden) String() string
- type RevokeRoleInternalServerError
- func (o *RevokeRoleInternalServerError) Code() int
- func (o *RevokeRoleInternalServerError) Error() string
- func (o *RevokeRoleInternalServerError) GetPayload() *models.ErrorResponse
- func (o *RevokeRoleInternalServerError) IsClientError() bool
- func (o *RevokeRoleInternalServerError) IsCode(code int) bool
- func (o *RevokeRoleInternalServerError) IsRedirect() bool
- func (o *RevokeRoleInternalServerError) IsServerError() bool
- func (o *RevokeRoleInternalServerError) IsSuccess() bool
- func (o *RevokeRoleInternalServerError) String() string
- type RevokeRoleNotFound
- func (o *RevokeRoleNotFound) Code() int
- func (o *RevokeRoleNotFound) Error() string
- func (o *RevokeRoleNotFound) IsClientError() bool
- func (o *RevokeRoleNotFound) IsCode(code int) bool
- func (o *RevokeRoleNotFound) IsRedirect() bool
- func (o *RevokeRoleNotFound) IsServerError() bool
- func (o *RevokeRoleNotFound) IsSuccess() bool
- func (o *RevokeRoleNotFound) String() string
- type RevokeRoleOK
- func (o *RevokeRoleOK) Code() int
- func (o *RevokeRoleOK) Error() string
- func (o *RevokeRoleOK) IsClientError() bool
- func (o *RevokeRoleOK) IsCode(code int) bool
- func (o *RevokeRoleOK) IsRedirect() bool
- func (o *RevokeRoleOK) IsServerError() bool
- func (o *RevokeRoleOK) IsSuccess() bool
- func (o *RevokeRoleOK) String() string
- type RevokeRoleParams
- func (o *RevokeRoleParams) SetBody(body RevokeRoleBody)
- func (o *RevokeRoleParams) SetContext(ctx context.Context)
- func (o *RevokeRoleParams) SetDefaults()
- func (o *RevokeRoleParams) SetHTTPClient(client *http.Client)
- func (o *RevokeRoleParams) SetID(id string)
- func (o *RevokeRoleParams) SetTimeout(timeout time.Duration)
- func (o *RevokeRoleParams) WithBody(body RevokeRoleBody) *RevokeRoleParams
- func (o *RevokeRoleParams) WithContext(ctx context.Context) *RevokeRoleParams
- func (o *RevokeRoleParams) WithDefaults() *RevokeRoleParams
- func (o *RevokeRoleParams) WithHTTPClient(client *http.Client) *RevokeRoleParams
- func (o *RevokeRoleParams) WithID(id string) *RevokeRoleParams
- func (o *RevokeRoleParams) WithTimeout(timeout time.Duration) *RevokeRoleParams
- func (o *RevokeRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RevokeRoleReader
- type RevokeRoleUnauthorized
- func (o *RevokeRoleUnauthorized) Code() int
- func (o *RevokeRoleUnauthorized) Error() string
- func (o *RevokeRoleUnauthorized) IsClientError() bool
- func (o *RevokeRoleUnauthorized) IsCode(code int) bool
- func (o *RevokeRoleUnauthorized) IsRedirect() bool
- func (o *RevokeRoleUnauthorized) IsServerError() bool
- func (o *RevokeRoleUnauthorized) IsSuccess() bool
- func (o *RevokeRoleUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPermissionsBadRequest ¶
type AddPermissionsBadRequest struct {
Payload *models.ErrorResponse
}
AddPermissionsBadRequest describes a response with status code 400, with default header values.
Malformed request.
func NewAddPermissionsBadRequest ¶
func NewAddPermissionsBadRequest() *AddPermissionsBadRequest
NewAddPermissionsBadRequest creates a AddPermissionsBadRequest with default headers values
func (*AddPermissionsBadRequest) Code ¶
func (o *AddPermissionsBadRequest) Code() int
Code gets the status code for the add permissions bad request response
func (*AddPermissionsBadRequest) Error ¶
func (o *AddPermissionsBadRequest) Error() string
func (*AddPermissionsBadRequest) GetPayload ¶
func (o *AddPermissionsBadRequest) GetPayload() *models.ErrorResponse
func (*AddPermissionsBadRequest) IsClientError ¶
func (o *AddPermissionsBadRequest) IsClientError() bool
IsClientError returns true when this add permissions bad request response has a 4xx status code
func (*AddPermissionsBadRequest) IsCode ¶
func (o *AddPermissionsBadRequest) IsCode(code int) bool
IsCode returns true when this add permissions bad request response a status code equal to that given
func (*AddPermissionsBadRequest) IsRedirect ¶
func (o *AddPermissionsBadRequest) IsRedirect() bool
IsRedirect returns true when this add permissions bad request response has a 3xx status code
func (*AddPermissionsBadRequest) IsServerError ¶
func (o *AddPermissionsBadRequest) IsServerError() bool
IsServerError returns true when this add permissions bad request response has a 5xx status code
func (*AddPermissionsBadRequest) IsSuccess ¶
func (o *AddPermissionsBadRequest) IsSuccess() bool
IsSuccess returns true when this add permissions bad request response has a 2xx status code
func (*AddPermissionsBadRequest) String ¶
func (o *AddPermissionsBadRequest) String() string
type AddPermissionsBody ¶
type AddPermissionsBody struct { // permissions to be added to the role // Required: true Permissions []*models.Permission `json:"permissions"` }
AddPermissionsBody add permissions body swagger:model AddPermissionsBody
func (*AddPermissionsBody) ContextValidate ¶
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
type AddPermissionsForbidden ¶
type AddPermissionsForbidden struct {
Payload *models.ErrorResponse
}
AddPermissionsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewAddPermissionsForbidden ¶
func NewAddPermissionsForbidden() *AddPermissionsForbidden
NewAddPermissionsForbidden creates a AddPermissionsForbidden with default headers values
func (*AddPermissionsForbidden) Code ¶
func (o *AddPermissionsForbidden) Code() int
Code gets the status code for the add permissions forbidden response
func (*AddPermissionsForbidden) Error ¶
func (o *AddPermissionsForbidden) Error() string
func (*AddPermissionsForbidden) GetPayload ¶
func (o *AddPermissionsForbidden) GetPayload() *models.ErrorResponse
func (*AddPermissionsForbidden) IsClientError ¶
func (o *AddPermissionsForbidden) IsClientError() bool
IsClientError returns true when this add permissions forbidden response has a 4xx status code
func (*AddPermissionsForbidden) IsCode ¶
func (o *AddPermissionsForbidden) IsCode(code int) bool
IsCode returns true when this add permissions forbidden response a status code equal to that given
func (*AddPermissionsForbidden) IsRedirect ¶
func (o *AddPermissionsForbidden) IsRedirect() bool
IsRedirect returns true when this add permissions forbidden response has a 3xx status code
func (*AddPermissionsForbidden) IsServerError ¶
func (o *AddPermissionsForbidden) IsServerError() bool
IsServerError returns true when this add permissions forbidden response has a 5xx status code
func (*AddPermissionsForbidden) IsSuccess ¶
func (o *AddPermissionsForbidden) IsSuccess() bool
IsSuccess returns true when this add permissions forbidden response has a 2xx status code
func (*AddPermissionsForbidden) String ¶
func (o *AddPermissionsForbidden) String() string
type AddPermissionsInternalServerError ¶
type AddPermissionsInternalServerError struct {
Payload *models.ErrorResponse
}
AddPermissionsInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewAddPermissionsInternalServerError ¶
func NewAddPermissionsInternalServerError() *AddPermissionsInternalServerError
NewAddPermissionsInternalServerError creates a AddPermissionsInternalServerError with default headers values
func (*AddPermissionsInternalServerError) Code ¶
func (o *AddPermissionsInternalServerError) Code() int
Code gets the status code for the add permissions internal server error response
func (*AddPermissionsInternalServerError) Error ¶
func (o *AddPermissionsInternalServerError) Error() string
func (*AddPermissionsInternalServerError) GetPayload ¶
func (o *AddPermissionsInternalServerError) GetPayload() *models.ErrorResponse
func (*AddPermissionsInternalServerError) IsClientError ¶
func (o *AddPermissionsInternalServerError) IsClientError() bool
IsClientError returns true when this add permissions internal server error response has a 4xx status code
func (*AddPermissionsInternalServerError) IsCode ¶
func (o *AddPermissionsInternalServerError) IsCode(code int) bool
IsCode returns true when this add permissions internal server error response a status code equal to that given
func (*AddPermissionsInternalServerError) IsRedirect ¶
func (o *AddPermissionsInternalServerError) IsRedirect() bool
IsRedirect returns true when this add permissions internal server error response has a 3xx status code
func (*AddPermissionsInternalServerError) IsServerError ¶
func (o *AddPermissionsInternalServerError) IsServerError() bool
IsServerError returns true when this add permissions internal server error response has a 5xx status code
func (*AddPermissionsInternalServerError) IsSuccess ¶
func (o *AddPermissionsInternalServerError) IsSuccess() bool
IsSuccess returns true when this add permissions internal server error response has a 2xx status code
func (*AddPermissionsInternalServerError) String ¶
func (o *AddPermissionsInternalServerError) String() string
type AddPermissionsNotFound ¶
type AddPermissionsNotFound struct { }
AddPermissionsNotFound describes a response with status code 404, with default header values.
no role found
func NewAddPermissionsNotFound ¶
func NewAddPermissionsNotFound() *AddPermissionsNotFound
NewAddPermissionsNotFound creates a AddPermissionsNotFound with default headers values
func (*AddPermissionsNotFound) Code ¶
func (o *AddPermissionsNotFound) Code() int
Code gets the status code for the add permissions not found response
func (*AddPermissionsNotFound) Error ¶
func (o *AddPermissionsNotFound) Error() string
func (*AddPermissionsNotFound) IsClientError ¶
func (o *AddPermissionsNotFound) IsClientError() bool
IsClientError returns true when this add permissions not found response has a 4xx status code
func (*AddPermissionsNotFound) IsCode ¶
func (o *AddPermissionsNotFound) IsCode(code int) bool
IsCode returns true when this add permissions not found response a status code equal to that given
func (*AddPermissionsNotFound) IsRedirect ¶
func (o *AddPermissionsNotFound) IsRedirect() bool
IsRedirect returns true when this add permissions not found response has a 3xx status code
func (*AddPermissionsNotFound) IsServerError ¶
func (o *AddPermissionsNotFound) IsServerError() bool
IsServerError returns true when this add permissions not found response has a 5xx status code
func (*AddPermissionsNotFound) IsSuccess ¶
func (o *AddPermissionsNotFound) IsSuccess() bool
IsSuccess returns true when this add permissions not found response has a 2xx status code
func (*AddPermissionsNotFound) String ¶
func (o *AddPermissionsNotFound) String() string
type AddPermissionsOK ¶
type AddPermissionsOK struct { }
AddPermissionsOK describes a response with status code 200, with default header values.
Permissions added successfully
func NewAddPermissionsOK ¶
func NewAddPermissionsOK() *AddPermissionsOK
NewAddPermissionsOK creates a AddPermissionsOK with default headers values
func (*AddPermissionsOK) Code ¶
func (o *AddPermissionsOK) Code() int
Code gets the status code for the add permissions o k response
func (*AddPermissionsOK) Error ¶
func (o *AddPermissionsOK) Error() string
func (*AddPermissionsOK) IsClientError ¶
func (o *AddPermissionsOK) IsClientError() bool
IsClientError returns true when this add permissions o k response has a 4xx status code
func (*AddPermissionsOK) IsCode ¶
func (o *AddPermissionsOK) IsCode(code int) bool
IsCode returns true when this add permissions o k response a status code equal to that given
func (*AddPermissionsOK) IsRedirect ¶
func (o *AddPermissionsOK) IsRedirect() bool
IsRedirect returns true when this add permissions o k response has a 3xx status code
func (*AddPermissionsOK) IsServerError ¶
func (o *AddPermissionsOK) IsServerError() bool
IsServerError returns true when this add permissions o k response has a 5xx status code
func (*AddPermissionsOK) IsSuccess ¶
func (o *AddPermissionsOK) IsSuccess() bool
IsSuccess returns true when this add permissions o k response has a 2xx status code
func (*AddPermissionsOK) String ¶
func (o *AddPermissionsOK) String() string
type AddPermissionsParams ¶
type AddPermissionsParams struct { // Body. Body AddPermissionsBody /* ID. role name */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddPermissionsParams contains all the parameters to send to the API endpoint
for the add permissions operation. Typically these are written to a http.Request.
func NewAddPermissionsParams ¶
func NewAddPermissionsParams() *AddPermissionsParams
NewAddPermissionsParams creates a new AddPermissionsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewAddPermissionsParamsWithContext ¶
func NewAddPermissionsParamsWithContext(ctx context.Context) *AddPermissionsParams
NewAddPermissionsParamsWithContext creates a new AddPermissionsParams object with the ability to set a context for a request.
func NewAddPermissionsParamsWithHTTPClient ¶
func NewAddPermissionsParamsWithHTTPClient(client *http.Client) *AddPermissionsParams
NewAddPermissionsParamsWithHTTPClient creates a new AddPermissionsParams object with the ability to set a custom HTTPClient for a request.
func NewAddPermissionsParamsWithTimeout ¶
func NewAddPermissionsParamsWithTimeout(timeout time.Duration) *AddPermissionsParams
NewAddPermissionsParamsWithTimeout creates a new AddPermissionsParams object with the ability to set a timeout on a request.
func (*AddPermissionsParams) SetBody ¶
func (o *AddPermissionsParams) SetBody(body AddPermissionsBody)
SetBody adds the body to the add permissions params
func (*AddPermissionsParams) SetContext ¶
func (o *AddPermissionsParams) SetContext(ctx context.Context)
SetContext adds the context to the add permissions params
func (*AddPermissionsParams) SetDefaults ¶
func (o *AddPermissionsParams) SetDefaults()
SetDefaults hydrates default values in the add permissions params (not the query body).
All values with no default are reset to their zero value.
func (*AddPermissionsParams) SetHTTPClient ¶
func (o *AddPermissionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add permissions params
func (*AddPermissionsParams) SetID ¶
func (o *AddPermissionsParams) SetID(id string)
SetID adds the id to the add permissions params
func (*AddPermissionsParams) SetTimeout ¶
func (o *AddPermissionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add permissions params
func (*AddPermissionsParams) WithBody ¶
func (o *AddPermissionsParams) WithBody(body AddPermissionsBody) *AddPermissionsParams
WithBody adds the body to the add permissions params
func (*AddPermissionsParams) WithContext ¶
func (o *AddPermissionsParams) WithContext(ctx context.Context) *AddPermissionsParams
WithContext adds the context to the add permissions params
func (*AddPermissionsParams) WithDefaults ¶
func (o *AddPermissionsParams) WithDefaults() *AddPermissionsParams
WithDefaults hydrates default values in the add permissions params (not the query body).
All values with no default are reset to their zero value.
func (*AddPermissionsParams) WithHTTPClient ¶
func (o *AddPermissionsParams) WithHTTPClient(client *http.Client) *AddPermissionsParams
WithHTTPClient adds the HTTPClient to the add permissions params
func (*AddPermissionsParams) WithID ¶
func (o *AddPermissionsParams) WithID(id string) *AddPermissionsParams
WithID adds the id to the add permissions params
func (*AddPermissionsParams) WithTimeout ¶
func (o *AddPermissionsParams) WithTimeout(timeout time.Duration) *AddPermissionsParams
WithTimeout adds the timeout to the add permissions params
func (*AddPermissionsParams) WriteToRequest ¶
func (o *AddPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddPermissionsReader ¶
type AddPermissionsReader struct {
// contains filtered or unexported fields
}
AddPermissionsReader is a Reader for the AddPermissions structure.
func (*AddPermissionsReader) ReadResponse ¶
func (o *AddPermissionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddPermissionsUnauthorized ¶
type AddPermissionsUnauthorized struct { }
AddPermissionsUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewAddPermissionsUnauthorized ¶
func NewAddPermissionsUnauthorized() *AddPermissionsUnauthorized
NewAddPermissionsUnauthorized creates a AddPermissionsUnauthorized with default headers values
func (*AddPermissionsUnauthorized) Code ¶
func (o *AddPermissionsUnauthorized) Code() int
Code gets the status code for the add permissions unauthorized response
func (*AddPermissionsUnauthorized) Error ¶
func (o *AddPermissionsUnauthorized) Error() string
func (*AddPermissionsUnauthorized) IsClientError ¶
func (o *AddPermissionsUnauthorized) IsClientError() bool
IsClientError returns true when this add permissions unauthorized response has a 4xx status code
func (*AddPermissionsUnauthorized) IsCode ¶
func (o *AddPermissionsUnauthorized) IsCode(code int) bool
IsCode returns true when this add permissions unauthorized response a status code equal to that given
func (*AddPermissionsUnauthorized) IsRedirect ¶
func (o *AddPermissionsUnauthorized) IsRedirect() bool
IsRedirect returns true when this add permissions unauthorized response has a 3xx status code
func (*AddPermissionsUnauthorized) IsServerError ¶
func (o *AddPermissionsUnauthorized) IsServerError() bool
IsServerError returns true when this add permissions unauthorized response has a 5xx status code
func (*AddPermissionsUnauthorized) IsSuccess ¶
func (o *AddPermissionsUnauthorized) IsSuccess() bool
IsSuccess returns true when this add permissions unauthorized response has a 2xx status code
func (*AddPermissionsUnauthorized) String ¶
func (o *AddPermissionsUnauthorized) String() string
type AddPermissionsUnprocessableEntity ¶
type AddPermissionsUnprocessableEntity struct {
Payload *models.ErrorResponse
}
AddPermissionsUnprocessableEntity describes a response with status code 422, with default header values.
Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?
func NewAddPermissionsUnprocessableEntity ¶
func NewAddPermissionsUnprocessableEntity() *AddPermissionsUnprocessableEntity
NewAddPermissionsUnprocessableEntity creates a AddPermissionsUnprocessableEntity with default headers values
func (*AddPermissionsUnprocessableEntity) Code ¶
func (o *AddPermissionsUnprocessableEntity) Code() int
Code gets the status code for the add permissions unprocessable entity response
func (*AddPermissionsUnprocessableEntity) Error ¶
func (o *AddPermissionsUnprocessableEntity) Error() string
func (*AddPermissionsUnprocessableEntity) GetPayload ¶
func (o *AddPermissionsUnprocessableEntity) GetPayload() *models.ErrorResponse
func (*AddPermissionsUnprocessableEntity) IsClientError ¶
func (o *AddPermissionsUnprocessableEntity) IsClientError() bool
IsClientError returns true when this add permissions unprocessable entity response has a 4xx status code
func (*AddPermissionsUnprocessableEntity) IsCode ¶
func (o *AddPermissionsUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this add permissions unprocessable entity response a status code equal to that given
func (*AddPermissionsUnprocessableEntity) IsRedirect ¶
func (o *AddPermissionsUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this add permissions unprocessable entity response has a 3xx status code
func (*AddPermissionsUnprocessableEntity) IsServerError ¶
func (o *AddPermissionsUnprocessableEntity) IsServerError() bool
IsServerError returns true when this add permissions unprocessable entity response has a 5xx status code
func (*AddPermissionsUnprocessableEntity) IsSuccess ¶
func (o *AddPermissionsUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this add permissions unprocessable entity response has a 2xx status code
func (*AddPermissionsUnprocessableEntity) String ¶
func (o *AddPermissionsUnprocessableEntity) String() string
type AssignRoleBadRequest ¶
type AssignRoleBadRequest struct {
Payload *models.ErrorResponse
}
AssignRoleBadRequest describes a response with status code 400, with default header values.
Bad request
func NewAssignRoleBadRequest ¶
func NewAssignRoleBadRequest() *AssignRoleBadRequest
NewAssignRoleBadRequest creates a AssignRoleBadRequest with default headers values
func (*AssignRoleBadRequest) Code ¶
func (o *AssignRoleBadRequest) Code() int
Code gets the status code for the assign role bad request response
func (*AssignRoleBadRequest) Error ¶
func (o *AssignRoleBadRequest) Error() string
func (*AssignRoleBadRequest) GetPayload ¶
func (o *AssignRoleBadRequest) GetPayload() *models.ErrorResponse
func (*AssignRoleBadRequest) IsClientError ¶
func (o *AssignRoleBadRequest) IsClientError() bool
IsClientError returns true when this assign role bad request response has a 4xx status code
func (*AssignRoleBadRequest) IsCode ¶
func (o *AssignRoleBadRequest) IsCode(code int) bool
IsCode returns true when this assign role bad request response a status code equal to that given
func (*AssignRoleBadRequest) IsRedirect ¶
func (o *AssignRoleBadRequest) IsRedirect() bool
IsRedirect returns true when this assign role bad request response has a 3xx status code
func (*AssignRoleBadRequest) IsServerError ¶
func (o *AssignRoleBadRequest) IsServerError() bool
IsServerError returns true when this assign role bad request response has a 5xx status code
func (*AssignRoleBadRequest) IsSuccess ¶
func (o *AssignRoleBadRequest) IsSuccess() bool
IsSuccess returns true when this assign role bad request response has a 2xx status code
func (*AssignRoleBadRequest) String ¶
func (o *AssignRoleBadRequest) String() string
type AssignRoleBody ¶
type AssignRoleBody struct { // the roles that assigned to user Roles []string `json:"roles"` }
AssignRoleBody assign role body swagger:model AssignRoleBody
func (*AssignRoleBody) ContextValidate ¶
ContextValidate validates this assign role body based on context it is used
func (*AssignRoleBody) MarshalBinary ¶
func (o *AssignRoleBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AssignRoleBody) UnmarshalBinary ¶
func (o *AssignRoleBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AssignRoleForbidden ¶
type AssignRoleForbidden struct {
Payload *models.ErrorResponse
}
AssignRoleForbidden describes a response with status code 403, with default header values.
Forbidden
func NewAssignRoleForbidden ¶
func NewAssignRoleForbidden() *AssignRoleForbidden
NewAssignRoleForbidden creates a AssignRoleForbidden with default headers values
func (*AssignRoleForbidden) Code ¶
func (o *AssignRoleForbidden) Code() int
Code gets the status code for the assign role forbidden response
func (*AssignRoleForbidden) Error ¶
func (o *AssignRoleForbidden) Error() string
func (*AssignRoleForbidden) GetPayload ¶
func (o *AssignRoleForbidden) GetPayload() *models.ErrorResponse
func (*AssignRoleForbidden) IsClientError ¶
func (o *AssignRoleForbidden) IsClientError() bool
IsClientError returns true when this assign role forbidden response has a 4xx status code
func (*AssignRoleForbidden) IsCode ¶
func (o *AssignRoleForbidden) IsCode(code int) bool
IsCode returns true when this assign role forbidden response a status code equal to that given
func (*AssignRoleForbidden) IsRedirect ¶
func (o *AssignRoleForbidden) IsRedirect() bool
IsRedirect returns true when this assign role forbidden response has a 3xx status code
func (*AssignRoleForbidden) IsServerError ¶
func (o *AssignRoleForbidden) IsServerError() bool
IsServerError returns true when this assign role forbidden response has a 5xx status code
func (*AssignRoleForbidden) IsSuccess ¶
func (o *AssignRoleForbidden) IsSuccess() bool
IsSuccess returns true when this assign role forbidden response has a 2xx status code
func (*AssignRoleForbidden) String ¶
func (o *AssignRoleForbidden) String() string
type AssignRoleInternalServerError ¶
type AssignRoleInternalServerError struct {
Payload *models.ErrorResponse
}
AssignRoleInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewAssignRoleInternalServerError ¶
func NewAssignRoleInternalServerError() *AssignRoleInternalServerError
NewAssignRoleInternalServerError creates a AssignRoleInternalServerError with default headers values
func (*AssignRoleInternalServerError) Code ¶
func (o *AssignRoleInternalServerError) Code() int
Code gets the status code for the assign role internal server error response
func (*AssignRoleInternalServerError) Error ¶
func (o *AssignRoleInternalServerError) Error() string
func (*AssignRoleInternalServerError) GetPayload ¶
func (o *AssignRoleInternalServerError) GetPayload() *models.ErrorResponse
func (*AssignRoleInternalServerError) IsClientError ¶
func (o *AssignRoleInternalServerError) IsClientError() bool
IsClientError returns true when this assign role internal server error response has a 4xx status code
func (*AssignRoleInternalServerError) IsCode ¶
func (o *AssignRoleInternalServerError) IsCode(code int) bool
IsCode returns true when this assign role internal server error response a status code equal to that given
func (*AssignRoleInternalServerError) IsRedirect ¶
func (o *AssignRoleInternalServerError) IsRedirect() bool
IsRedirect returns true when this assign role internal server error response has a 3xx status code
func (*AssignRoleInternalServerError) IsServerError ¶
func (o *AssignRoleInternalServerError) IsServerError() bool
IsServerError returns true when this assign role internal server error response has a 5xx status code
func (*AssignRoleInternalServerError) IsSuccess ¶
func (o *AssignRoleInternalServerError) IsSuccess() bool
IsSuccess returns true when this assign role internal server error response has a 2xx status code
func (*AssignRoleInternalServerError) String ¶
func (o *AssignRoleInternalServerError) String() string
type AssignRoleNotFound ¶
type AssignRoleNotFound struct { }
AssignRoleNotFound describes a response with status code 404, with default header values.
role or user is not found.
func NewAssignRoleNotFound ¶
func NewAssignRoleNotFound() *AssignRoleNotFound
NewAssignRoleNotFound creates a AssignRoleNotFound with default headers values
func (*AssignRoleNotFound) Code ¶
func (o *AssignRoleNotFound) Code() int
Code gets the status code for the assign role not found response
func (*AssignRoleNotFound) Error ¶
func (o *AssignRoleNotFound) Error() string
func (*AssignRoleNotFound) IsClientError ¶
func (o *AssignRoleNotFound) IsClientError() bool
IsClientError returns true when this assign role not found response has a 4xx status code
func (*AssignRoleNotFound) IsCode ¶
func (o *AssignRoleNotFound) IsCode(code int) bool
IsCode returns true when this assign role not found response a status code equal to that given
func (*AssignRoleNotFound) IsRedirect ¶
func (o *AssignRoleNotFound) IsRedirect() bool
IsRedirect returns true when this assign role not found response has a 3xx status code
func (*AssignRoleNotFound) IsServerError ¶
func (o *AssignRoleNotFound) IsServerError() bool
IsServerError returns true when this assign role not found response has a 5xx status code
func (*AssignRoleNotFound) IsSuccess ¶
func (o *AssignRoleNotFound) IsSuccess() bool
IsSuccess returns true when this assign role not found response has a 2xx status code
func (*AssignRoleNotFound) String ¶
func (o *AssignRoleNotFound) String() string
type AssignRoleOK ¶
type AssignRoleOK struct { }
AssignRoleOK describes a response with status code 200, with default header values.
Role assigned successfully
func NewAssignRoleOK ¶
func NewAssignRoleOK() *AssignRoleOK
NewAssignRoleOK creates a AssignRoleOK with default headers values
func (*AssignRoleOK) Code ¶
func (o *AssignRoleOK) Code() int
Code gets the status code for the assign role o k response
func (*AssignRoleOK) Error ¶
func (o *AssignRoleOK) Error() string
func (*AssignRoleOK) IsClientError ¶
func (o *AssignRoleOK) IsClientError() bool
IsClientError returns true when this assign role o k response has a 4xx status code
func (*AssignRoleOK) IsCode ¶
func (o *AssignRoleOK) IsCode(code int) bool
IsCode returns true when this assign role o k response a status code equal to that given
func (*AssignRoleOK) IsRedirect ¶
func (o *AssignRoleOK) IsRedirect() bool
IsRedirect returns true when this assign role o k response has a 3xx status code
func (*AssignRoleOK) IsServerError ¶
func (o *AssignRoleOK) IsServerError() bool
IsServerError returns true when this assign role o k response has a 5xx status code
func (*AssignRoleOK) IsSuccess ¶
func (o *AssignRoleOK) IsSuccess() bool
IsSuccess returns true when this assign role o k response has a 2xx status code
func (*AssignRoleOK) String ¶
func (o *AssignRoleOK) String() string
type AssignRoleParams ¶
type AssignRoleParams struct { // Body. Body AssignRoleBody /* ID. user name */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AssignRoleParams contains all the parameters to send to the API endpoint
for the assign role operation. Typically these are written to a http.Request.
func NewAssignRoleParams ¶
func NewAssignRoleParams() *AssignRoleParams
NewAssignRoleParams creates a new AssignRoleParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewAssignRoleParamsWithContext ¶
func NewAssignRoleParamsWithContext(ctx context.Context) *AssignRoleParams
NewAssignRoleParamsWithContext creates a new AssignRoleParams object with the ability to set a context for a request.
func NewAssignRoleParamsWithHTTPClient ¶
func NewAssignRoleParamsWithHTTPClient(client *http.Client) *AssignRoleParams
NewAssignRoleParamsWithHTTPClient creates a new AssignRoleParams object with the ability to set a custom HTTPClient for a request.
func NewAssignRoleParamsWithTimeout ¶
func NewAssignRoleParamsWithTimeout(timeout time.Duration) *AssignRoleParams
NewAssignRoleParamsWithTimeout creates a new AssignRoleParams object with the ability to set a timeout on a request.
func (*AssignRoleParams) SetBody ¶
func (o *AssignRoleParams) SetBody(body AssignRoleBody)
SetBody adds the body to the assign role params
func (*AssignRoleParams) SetContext ¶
func (o *AssignRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the assign role params
func (*AssignRoleParams) SetDefaults ¶
func (o *AssignRoleParams) SetDefaults()
SetDefaults hydrates default values in the assign role params (not the query body).
All values with no default are reset to their zero value.
func (*AssignRoleParams) SetHTTPClient ¶
func (o *AssignRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the assign role params
func (*AssignRoleParams) SetID ¶
func (o *AssignRoleParams) SetID(id string)
SetID adds the id to the assign role params
func (*AssignRoleParams) SetTimeout ¶
func (o *AssignRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the assign role params
func (*AssignRoleParams) WithBody ¶
func (o *AssignRoleParams) WithBody(body AssignRoleBody) *AssignRoleParams
WithBody adds the body to the assign role params
func (*AssignRoleParams) WithContext ¶
func (o *AssignRoleParams) WithContext(ctx context.Context) *AssignRoleParams
WithContext adds the context to the assign role params
func (*AssignRoleParams) WithDefaults ¶
func (o *AssignRoleParams) WithDefaults() *AssignRoleParams
WithDefaults hydrates default values in the assign role params (not the query body).
All values with no default are reset to their zero value.
func (*AssignRoleParams) WithHTTPClient ¶
func (o *AssignRoleParams) WithHTTPClient(client *http.Client) *AssignRoleParams
WithHTTPClient adds the HTTPClient to the assign role params
func (*AssignRoleParams) WithID ¶
func (o *AssignRoleParams) WithID(id string) *AssignRoleParams
WithID adds the id to the assign role params
func (*AssignRoleParams) WithTimeout ¶
func (o *AssignRoleParams) WithTimeout(timeout time.Duration) *AssignRoleParams
WithTimeout adds the timeout to the assign role params
func (*AssignRoleParams) WriteToRequest ¶
func (o *AssignRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AssignRoleReader ¶
type AssignRoleReader struct {
// contains filtered or unexported fields
}
AssignRoleReader is a Reader for the AssignRole structure.
func (*AssignRoleReader) ReadResponse ¶
func (o *AssignRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AssignRoleUnauthorized ¶
type AssignRoleUnauthorized struct { }
AssignRoleUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewAssignRoleUnauthorized ¶
func NewAssignRoleUnauthorized() *AssignRoleUnauthorized
NewAssignRoleUnauthorized creates a AssignRoleUnauthorized with default headers values
func (*AssignRoleUnauthorized) Code ¶
func (o *AssignRoleUnauthorized) Code() int
Code gets the status code for the assign role unauthorized response
func (*AssignRoleUnauthorized) Error ¶
func (o *AssignRoleUnauthorized) Error() string
func (*AssignRoleUnauthorized) IsClientError ¶
func (o *AssignRoleUnauthorized) IsClientError() bool
IsClientError returns true when this assign role unauthorized response has a 4xx status code
func (*AssignRoleUnauthorized) IsCode ¶
func (o *AssignRoleUnauthorized) IsCode(code int) bool
IsCode returns true when this assign role unauthorized response a status code equal to that given
func (*AssignRoleUnauthorized) IsRedirect ¶
func (o *AssignRoleUnauthorized) IsRedirect() bool
IsRedirect returns true when this assign role unauthorized response has a 3xx status code
func (*AssignRoleUnauthorized) IsServerError ¶
func (o *AssignRoleUnauthorized) IsServerError() bool
IsServerError returns true when this assign role unauthorized response has a 5xx status code
func (*AssignRoleUnauthorized) IsSuccess ¶
func (o *AssignRoleUnauthorized) IsSuccess() bool
IsSuccess returns true when this assign role unauthorized response has a 2xx status code
func (*AssignRoleUnauthorized) String ¶
func (o *AssignRoleUnauthorized) String() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for authz API
func (*Client) AddPermissions ¶
func (a *Client) AddPermissions(params *AddPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddPermissionsOK, error)
AddPermissions adds permission to a given role
func (*Client) AssignRole ¶
func (a *Client) AssignRole(params *AssignRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssignRoleOK, error)
AssignRole assigns a role to a user
func (*Client) CreateRole ¶
func (a *Client) CreateRole(params *CreateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRoleCreated, error)
CreateRole creates new role
func (*Client) DeleteRole ¶
func (a *Client) DeleteRole(params *DeleteRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRoleNoContent, error)
DeleteRole deletes role
func (*Client) GetRole ¶
func (a *Client) GetRole(params *GetRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoleOK, error)
GetRole gets a role
func (*Client) GetRoles ¶
func (a *Client) GetRoles(params *GetRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesOK, error)
GetRoles gets all roles
func (*Client) GetRolesForOwnUser ¶
func (a *Client) GetRolesForOwnUser(params *GetRolesForOwnUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesForOwnUserOK, error)
GetRolesForOwnUser gets roles assigned to own user
func (*Client) GetRolesForUser ¶
func (a *Client) GetRolesForUser(params *GetRolesForUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesForUserOK, error)
GetRolesForUser gets roles assigned to user
func (*Client) GetUsersForRole ¶
func (a *Client) GetUsersForRole(params *GetUsersForRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersForRoleOK, error)
GetUsersForRole gets users or a keys assigned to role
func (*Client) HasPermission ¶
func (a *Client) HasPermission(params *HasPermissionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HasPermissionOK, error)
HasPermission checks whether role possesses this permission
func (*Client) RemovePermissions ¶
func (a *Client) RemovePermissions(params *RemovePermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemovePermissionsOK, error)
RemovePermissions removes permissions from a role if this results in an empty role the role will be deleted
func (*Client) RevokeRole ¶
func (a *Client) RevokeRole(params *RevokeRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeRoleOK, error)
RevokeRole revokes a role from a user
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { AddPermissions(params *AddPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddPermissionsOK, error) AssignRole(params *AssignRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AssignRoleOK, error) CreateRole(params *CreateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRoleCreated, error) DeleteRole(params *DeleteRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRoleNoContent, error) GetRole(params *GetRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoleOK, error) GetRoles(params *GetRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesOK, error) GetRolesForOwnUser(params *GetRolesForOwnUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesForOwnUserOK, error) GetRolesForUser(params *GetRolesForUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesForUserOK, error) GetUsersForRole(params *GetUsersForRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersForRoleOK, error) HasPermission(params *HasPermissionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HasPermissionOK, error) RemovePermissions(params *RemovePermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemovePermissionsOK, error) RevokeRole(params *RevokeRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeRoleOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new authz API client.
type CreateRoleBadRequest ¶
type CreateRoleBadRequest struct {
Payload *models.ErrorResponse
}
CreateRoleBadRequest describes a response with status code 400, with default header values.
Malformed request.
func NewCreateRoleBadRequest ¶
func NewCreateRoleBadRequest() *CreateRoleBadRequest
NewCreateRoleBadRequest creates a CreateRoleBadRequest with default headers values
func (*CreateRoleBadRequest) Code ¶
func (o *CreateRoleBadRequest) Code() int
Code gets the status code for the create role bad request response
func (*CreateRoleBadRequest) Error ¶
func (o *CreateRoleBadRequest) Error() string
func (*CreateRoleBadRequest) GetPayload ¶
func (o *CreateRoleBadRequest) GetPayload() *models.ErrorResponse
func (*CreateRoleBadRequest) IsClientError ¶
func (o *CreateRoleBadRequest) IsClientError() bool
IsClientError returns true when this create role bad request response has a 4xx status code
func (*CreateRoleBadRequest) IsCode ¶
func (o *CreateRoleBadRequest) IsCode(code int) bool
IsCode returns true when this create role bad request response a status code equal to that given
func (*CreateRoleBadRequest) IsRedirect ¶
func (o *CreateRoleBadRequest) IsRedirect() bool
IsRedirect returns true when this create role bad request response has a 3xx status code
func (*CreateRoleBadRequest) IsServerError ¶
func (o *CreateRoleBadRequest) IsServerError() bool
IsServerError returns true when this create role bad request response has a 5xx status code
func (*CreateRoleBadRequest) IsSuccess ¶
func (o *CreateRoleBadRequest) IsSuccess() bool
IsSuccess returns true when this create role bad request response has a 2xx status code
func (*CreateRoleBadRequest) String ¶
func (o *CreateRoleBadRequest) String() string
type CreateRoleConflict ¶
type CreateRoleConflict struct {
Payload *models.ErrorResponse
}
CreateRoleConflict describes a response with status code 409, with default header values.
Role already exists
func NewCreateRoleConflict ¶
func NewCreateRoleConflict() *CreateRoleConflict
NewCreateRoleConflict creates a CreateRoleConflict with default headers values
func (*CreateRoleConflict) Code ¶
func (o *CreateRoleConflict) Code() int
Code gets the status code for the create role conflict response
func (*CreateRoleConflict) Error ¶
func (o *CreateRoleConflict) Error() string
func (*CreateRoleConflict) GetPayload ¶
func (o *CreateRoleConflict) GetPayload() *models.ErrorResponse
func (*CreateRoleConflict) IsClientError ¶
func (o *CreateRoleConflict) IsClientError() bool
IsClientError returns true when this create role conflict response has a 4xx status code
func (*CreateRoleConflict) IsCode ¶
func (o *CreateRoleConflict) IsCode(code int) bool
IsCode returns true when this create role conflict response a status code equal to that given
func (*CreateRoleConflict) IsRedirect ¶
func (o *CreateRoleConflict) IsRedirect() bool
IsRedirect returns true when this create role conflict response has a 3xx status code
func (*CreateRoleConflict) IsServerError ¶
func (o *CreateRoleConflict) IsServerError() bool
IsServerError returns true when this create role conflict response has a 5xx status code
func (*CreateRoleConflict) IsSuccess ¶
func (o *CreateRoleConflict) IsSuccess() bool
IsSuccess returns true when this create role conflict response has a 2xx status code
func (*CreateRoleConflict) String ¶
func (o *CreateRoleConflict) String() string
type CreateRoleCreated ¶
type CreateRoleCreated struct { }
CreateRoleCreated describes a response with status code 201, with default header values.
Role created successfully
func NewCreateRoleCreated ¶
func NewCreateRoleCreated() *CreateRoleCreated
NewCreateRoleCreated creates a CreateRoleCreated with default headers values
func (*CreateRoleCreated) Code ¶
func (o *CreateRoleCreated) Code() int
Code gets the status code for the create role created response
func (*CreateRoleCreated) Error ¶
func (o *CreateRoleCreated) Error() string
func (*CreateRoleCreated) IsClientError ¶
func (o *CreateRoleCreated) IsClientError() bool
IsClientError returns true when this create role created response has a 4xx status code
func (*CreateRoleCreated) IsCode ¶
func (o *CreateRoleCreated) IsCode(code int) bool
IsCode returns true when this create role created response a status code equal to that given
func (*CreateRoleCreated) IsRedirect ¶
func (o *CreateRoleCreated) IsRedirect() bool
IsRedirect returns true when this create role created response has a 3xx status code
func (*CreateRoleCreated) IsServerError ¶
func (o *CreateRoleCreated) IsServerError() bool
IsServerError returns true when this create role created response has a 5xx status code
func (*CreateRoleCreated) IsSuccess ¶
func (o *CreateRoleCreated) IsSuccess() bool
IsSuccess returns true when this create role created response has a 2xx status code
func (*CreateRoleCreated) String ¶
func (o *CreateRoleCreated) String() string
type CreateRoleForbidden ¶
type CreateRoleForbidden struct {
Payload *models.ErrorResponse
}
CreateRoleForbidden describes a response with status code 403, with default header values.
Forbidden
func NewCreateRoleForbidden ¶
func NewCreateRoleForbidden() *CreateRoleForbidden
NewCreateRoleForbidden creates a CreateRoleForbidden with default headers values
func (*CreateRoleForbidden) Code ¶
func (o *CreateRoleForbidden) Code() int
Code gets the status code for the create role forbidden response
func (*CreateRoleForbidden) Error ¶
func (o *CreateRoleForbidden) Error() string
func (*CreateRoleForbidden) GetPayload ¶
func (o *CreateRoleForbidden) GetPayload() *models.ErrorResponse
func (*CreateRoleForbidden) IsClientError ¶
func (o *CreateRoleForbidden) IsClientError() bool
IsClientError returns true when this create role forbidden response has a 4xx status code
func (*CreateRoleForbidden) IsCode ¶
func (o *CreateRoleForbidden) IsCode(code int) bool
IsCode returns true when this create role forbidden response a status code equal to that given
func (*CreateRoleForbidden) IsRedirect ¶
func (o *CreateRoleForbidden) IsRedirect() bool
IsRedirect returns true when this create role forbidden response has a 3xx status code
func (*CreateRoleForbidden) IsServerError ¶
func (o *CreateRoleForbidden) IsServerError() bool
IsServerError returns true when this create role forbidden response has a 5xx status code
func (*CreateRoleForbidden) IsSuccess ¶
func (o *CreateRoleForbidden) IsSuccess() bool
IsSuccess returns true when this create role forbidden response has a 2xx status code
func (*CreateRoleForbidden) String ¶
func (o *CreateRoleForbidden) String() string
type CreateRoleInternalServerError ¶
type CreateRoleInternalServerError struct {
Payload *models.ErrorResponse
}
CreateRoleInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewCreateRoleInternalServerError ¶
func NewCreateRoleInternalServerError() *CreateRoleInternalServerError
NewCreateRoleInternalServerError creates a CreateRoleInternalServerError with default headers values
func (*CreateRoleInternalServerError) Code ¶
func (o *CreateRoleInternalServerError) Code() int
Code gets the status code for the create role internal server error response
func (*CreateRoleInternalServerError) Error ¶
func (o *CreateRoleInternalServerError) Error() string
func (*CreateRoleInternalServerError) GetPayload ¶
func (o *CreateRoleInternalServerError) GetPayload() *models.ErrorResponse
func (*CreateRoleInternalServerError) IsClientError ¶
func (o *CreateRoleInternalServerError) IsClientError() bool
IsClientError returns true when this create role internal server error response has a 4xx status code
func (*CreateRoleInternalServerError) IsCode ¶
func (o *CreateRoleInternalServerError) IsCode(code int) bool
IsCode returns true when this create role internal server error response a status code equal to that given
func (*CreateRoleInternalServerError) IsRedirect ¶
func (o *CreateRoleInternalServerError) IsRedirect() bool
IsRedirect returns true when this create role internal server error response has a 3xx status code
func (*CreateRoleInternalServerError) IsServerError ¶
func (o *CreateRoleInternalServerError) IsServerError() bool
IsServerError returns true when this create role internal server error response has a 5xx status code
func (*CreateRoleInternalServerError) IsSuccess ¶
func (o *CreateRoleInternalServerError) IsSuccess() bool
IsSuccess returns true when this create role internal server error response has a 2xx status code
func (*CreateRoleInternalServerError) String ¶
func (o *CreateRoleInternalServerError) String() string
type CreateRoleParams ¶
type CreateRoleParams struct { // Body. Body *models.Role Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateRoleParams contains all the parameters to send to the API endpoint
for the create role operation. Typically these are written to a http.Request.
func NewCreateRoleParams ¶
func NewCreateRoleParams() *CreateRoleParams
NewCreateRoleParams creates a new CreateRoleParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateRoleParamsWithContext ¶
func NewCreateRoleParamsWithContext(ctx context.Context) *CreateRoleParams
NewCreateRoleParamsWithContext creates a new CreateRoleParams object with the ability to set a context for a request.
func NewCreateRoleParamsWithHTTPClient ¶
func NewCreateRoleParamsWithHTTPClient(client *http.Client) *CreateRoleParams
NewCreateRoleParamsWithHTTPClient creates a new CreateRoleParams object with the ability to set a custom HTTPClient for a request.
func NewCreateRoleParamsWithTimeout ¶
func NewCreateRoleParamsWithTimeout(timeout time.Duration) *CreateRoleParams
NewCreateRoleParamsWithTimeout creates a new CreateRoleParams object with the ability to set a timeout on a request.
func (*CreateRoleParams) SetBody ¶
func (o *CreateRoleParams) SetBody(body *models.Role)
SetBody adds the body to the create role params
func (*CreateRoleParams) SetContext ¶
func (o *CreateRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the create role params
func (*CreateRoleParams) SetDefaults ¶
func (o *CreateRoleParams) SetDefaults()
SetDefaults hydrates default values in the create role params (not the query body).
All values with no default are reset to their zero value.
func (*CreateRoleParams) SetHTTPClient ¶
func (o *CreateRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create role params
func (*CreateRoleParams) SetTimeout ¶
func (o *CreateRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create role params
func (*CreateRoleParams) WithBody ¶
func (o *CreateRoleParams) WithBody(body *models.Role) *CreateRoleParams
WithBody adds the body to the create role params
func (*CreateRoleParams) WithContext ¶
func (o *CreateRoleParams) WithContext(ctx context.Context) *CreateRoleParams
WithContext adds the context to the create role params
func (*CreateRoleParams) WithDefaults ¶
func (o *CreateRoleParams) WithDefaults() *CreateRoleParams
WithDefaults hydrates default values in the create role params (not the query body).
All values with no default are reset to their zero value.
func (*CreateRoleParams) WithHTTPClient ¶
func (o *CreateRoleParams) WithHTTPClient(client *http.Client) *CreateRoleParams
WithHTTPClient adds the HTTPClient to the create role params
func (*CreateRoleParams) WithTimeout ¶
func (o *CreateRoleParams) WithTimeout(timeout time.Duration) *CreateRoleParams
WithTimeout adds the timeout to the create role params
func (*CreateRoleParams) WriteToRequest ¶
func (o *CreateRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateRoleReader ¶
type CreateRoleReader struct {
// contains filtered or unexported fields
}
CreateRoleReader is a Reader for the CreateRole structure.
func (*CreateRoleReader) ReadResponse ¶
func (o *CreateRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateRoleUnauthorized ¶
type CreateRoleUnauthorized struct { }
CreateRoleUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewCreateRoleUnauthorized ¶
func NewCreateRoleUnauthorized() *CreateRoleUnauthorized
NewCreateRoleUnauthorized creates a CreateRoleUnauthorized with default headers values
func (*CreateRoleUnauthorized) Code ¶
func (o *CreateRoleUnauthorized) Code() int
Code gets the status code for the create role unauthorized response
func (*CreateRoleUnauthorized) Error ¶
func (o *CreateRoleUnauthorized) Error() string
func (*CreateRoleUnauthorized) IsClientError ¶
func (o *CreateRoleUnauthorized) IsClientError() bool
IsClientError returns true when this create role unauthorized response has a 4xx status code
func (*CreateRoleUnauthorized) IsCode ¶
func (o *CreateRoleUnauthorized) IsCode(code int) bool
IsCode returns true when this create role unauthorized response a status code equal to that given
func (*CreateRoleUnauthorized) IsRedirect ¶
func (o *CreateRoleUnauthorized) IsRedirect() bool
IsRedirect returns true when this create role unauthorized response has a 3xx status code
func (*CreateRoleUnauthorized) IsServerError ¶
func (o *CreateRoleUnauthorized) IsServerError() bool
IsServerError returns true when this create role unauthorized response has a 5xx status code
func (*CreateRoleUnauthorized) IsSuccess ¶
func (o *CreateRoleUnauthorized) IsSuccess() bool
IsSuccess returns true when this create role unauthorized response has a 2xx status code
func (*CreateRoleUnauthorized) String ¶
func (o *CreateRoleUnauthorized) String() string
type CreateRoleUnprocessableEntity ¶
type CreateRoleUnprocessableEntity struct {
Payload *models.ErrorResponse
}
CreateRoleUnprocessableEntity describes a response with status code 422, with default header values.
Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?
func NewCreateRoleUnprocessableEntity ¶
func NewCreateRoleUnprocessableEntity() *CreateRoleUnprocessableEntity
NewCreateRoleUnprocessableEntity creates a CreateRoleUnprocessableEntity with default headers values
func (*CreateRoleUnprocessableEntity) Code ¶
func (o *CreateRoleUnprocessableEntity) Code() int
Code gets the status code for the create role unprocessable entity response
func (*CreateRoleUnprocessableEntity) Error ¶
func (o *CreateRoleUnprocessableEntity) Error() string
func (*CreateRoleUnprocessableEntity) GetPayload ¶
func (o *CreateRoleUnprocessableEntity) GetPayload() *models.ErrorResponse
func (*CreateRoleUnprocessableEntity) IsClientError ¶
func (o *CreateRoleUnprocessableEntity) IsClientError() bool
IsClientError returns true when this create role unprocessable entity response has a 4xx status code
func (*CreateRoleUnprocessableEntity) IsCode ¶
func (o *CreateRoleUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this create role unprocessable entity response a status code equal to that given
func (*CreateRoleUnprocessableEntity) IsRedirect ¶
func (o *CreateRoleUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this create role unprocessable entity response has a 3xx status code
func (*CreateRoleUnprocessableEntity) IsServerError ¶
func (o *CreateRoleUnprocessableEntity) IsServerError() bool
IsServerError returns true when this create role unprocessable entity response has a 5xx status code
func (*CreateRoleUnprocessableEntity) IsSuccess ¶
func (o *CreateRoleUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this create role unprocessable entity response has a 2xx status code
func (*CreateRoleUnprocessableEntity) String ¶
func (o *CreateRoleUnprocessableEntity) String() string
type DeleteRoleBadRequest ¶
type DeleteRoleBadRequest struct {
Payload *models.ErrorResponse
}
DeleteRoleBadRequest describes a response with status code 400, with default header values.
Bad request
func NewDeleteRoleBadRequest ¶
func NewDeleteRoleBadRequest() *DeleteRoleBadRequest
NewDeleteRoleBadRequest creates a DeleteRoleBadRequest with default headers values
func (*DeleteRoleBadRequest) Code ¶
func (o *DeleteRoleBadRequest) Code() int
Code gets the status code for the delete role bad request response
func (*DeleteRoleBadRequest) Error ¶
func (o *DeleteRoleBadRequest) Error() string
func (*DeleteRoleBadRequest) GetPayload ¶
func (o *DeleteRoleBadRequest) GetPayload() *models.ErrorResponse
func (*DeleteRoleBadRequest) IsClientError ¶
func (o *DeleteRoleBadRequest) IsClientError() bool
IsClientError returns true when this delete role bad request response has a 4xx status code
func (*DeleteRoleBadRequest) IsCode ¶
func (o *DeleteRoleBadRequest) IsCode(code int) bool
IsCode returns true when this delete role bad request response a status code equal to that given
func (*DeleteRoleBadRequest) IsRedirect ¶
func (o *DeleteRoleBadRequest) IsRedirect() bool
IsRedirect returns true when this delete role bad request response has a 3xx status code
func (*DeleteRoleBadRequest) IsServerError ¶
func (o *DeleteRoleBadRequest) IsServerError() bool
IsServerError returns true when this delete role bad request response has a 5xx status code
func (*DeleteRoleBadRequest) IsSuccess ¶
func (o *DeleteRoleBadRequest) IsSuccess() bool
IsSuccess returns true when this delete role bad request response has a 2xx status code
func (*DeleteRoleBadRequest) String ¶
func (o *DeleteRoleBadRequest) String() string
type DeleteRoleForbidden ¶
type DeleteRoleForbidden struct {
Payload *models.ErrorResponse
}
DeleteRoleForbidden describes a response with status code 403, with default header values.
Forbidden
func NewDeleteRoleForbidden ¶
func NewDeleteRoleForbidden() *DeleteRoleForbidden
NewDeleteRoleForbidden creates a DeleteRoleForbidden with default headers values
func (*DeleteRoleForbidden) Code ¶
func (o *DeleteRoleForbidden) Code() int
Code gets the status code for the delete role forbidden response
func (*DeleteRoleForbidden) Error ¶
func (o *DeleteRoleForbidden) Error() string
func (*DeleteRoleForbidden) GetPayload ¶
func (o *DeleteRoleForbidden) GetPayload() *models.ErrorResponse
func (*DeleteRoleForbidden) IsClientError ¶
func (o *DeleteRoleForbidden) IsClientError() bool
IsClientError returns true when this delete role forbidden response has a 4xx status code
func (*DeleteRoleForbidden) IsCode ¶
func (o *DeleteRoleForbidden) IsCode(code int) bool
IsCode returns true when this delete role forbidden response a status code equal to that given
func (*DeleteRoleForbidden) IsRedirect ¶
func (o *DeleteRoleForbidden) IsRedirect() bool
IsRedirect returns true when this delete role forbidden response has a 3xx status code
func (*DeleteRoleForbidden) IsServerError ¶
func (o *DeleteRoleForbidden) IsServerError() bool
IsServerError returns true when this delete role forbidden response has a 5xx status code
func (*DeleteRoleForbidden) IsSuccess ¶
func (o *DeleteRoleForbidden) IsSuccess() bool
IsSuccess returns true when this delete role forbidden response has a 2xx status code
func (*DeleteRoleForbidden) String ¶
func (o *DeleteRoleForbidden) String() string
type DeleteRoleInternalServerError ¶
type DeleteRoleInternalServerError struct {
Payload *models.ErrorResponse
}
DeleteRoleInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewDeleteRoleInternalServerError ¶
func NewDeleteRoleInternalServerError() *DeleteRoleInternalServerError
NewDeleteRoleInternalServerError creates a DeleteRoleInternalServerError with default headers values
func (*DeleteRoleInternalServerError) Code ¶
func (o *DeleteRoleInternalServerError) Code() int
Code gets the status code for the delete role internal server error response
func (*DeleteRoleInternalServerError) Error ¶
func (o *DeleteRoleInternalServerError) Error() string
func (*DeleteRoleInternalServerError) GetPayload ¶
func (o *DeleteRoleInternalServerError) GetPayload() *models.ErrorResponse
func (*DeleteRoleInternalServerError) IsClientError ¶
func (o *DeleteRoleInternalServerError) IsClientError() bool
IsClientError returns true when this delete role internal server error response has a 4xx status code
func (*DeleteRoleInternalServerError) IsCode ¶
func (o *DeleteRoleInternalServerError) IsCode(code int) bool
IsCode returns true when this delete role internal server error response a status code equal to that given
func (*DeleteRoleInternalServerError) IsRedirect ¶
func (o *DeleteRoleInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete role internal server error response has a 3xx status code
func (*DeleteRoleInternalServerError) IsServerError ¶
func (o *DeleteRoleInternalServerError) IsServerError() bool
IsServerError returns true when this delete role internal server error response has a 5xx status code
func (*DeleteRoleInternalServerError) IsSuccess ¶
func (o *DeleteRoleInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete role internal server error response has a 2xx status code
func (*DeleteRoleInternalServerError) String ¶
func (o *DeleteRoleInternalServerError) String() string
type DeleteRoleNoContent ¶
type DeleteRoleNoContent struct { }
DeleteRoleNoContent describes a response with status code 204, with default header values.
Successfully deleted.
func NewDeleteRoleNoContent ¶
func NewDeleteRoleNoContent() *DeleteRoleNoContent
NewDeleteRoleNoContent creates a DeleteRoleNoContent with default headers values
func (*DeleteRoleNoContent) Code ¶
func (o *DeleteRoleNoContent) Code() int
Code gets the status code for the delete role no content response
func (*DeleteRoleNoContent) Error ¶
func (o *DeleteRoleNoContent) Error() string
func (*DeleteRoleNoContent) IsClientError ¶
func (o *DeleteRoleNoContent) IsClientError() bool
IsClientError returns true when this delete role no content response has a 4xx status code
func (*DeleteRoleNoContent) IsCode ¶
func (o *DeleteRoleNoContent) IsCode(code int) bool
IsCode returns true when this delete role no content response a status code equal to that given
func (*DeleteRoleNoContent) IsRedirect ¶
func (o *DeleteRoleNoContent) IsRedirect() bool
IsRedirect returns true when this delete role no content response has a 3xx status code
func (*DeleteRoleNoContent) IsServerError ¶
func (o *DeleteRoleNoContent) IsServerError() bool
IsServerError returns true when this delete role no content response has a 5xx status code
func (*DeleteRoleNoContent) IsSuccess ¶
func (o *DeleteRoleNoContent) IsSuccess() bool
IsSuccess returns true when this delete role no content response has a 2xx status code
func (*DeleteRoleNoContent) String ¶
func (o *DeleteRoleNoContent) String() string
type DeleteRoleParams ¶
type DeleteRoleParams struct { /* ID. role name */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteRoleParams contains all the parameters to send to the API endpoint
for the delete role operation. Typically these are written to a http.Request.
func NewDeleteRoleParams ¶
func NewDeleteRoleParams() *DeleteRoleParams
NewDeleteRoleParams creates a new DeleteRoleParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeleteRoleParamsWithContext ¶
func NewDeleteRoleParamsWithContext(ctx context.Context) *DeleteRoleParams
NewDeleteRoleParamsWithContext creates a new DeleteRoleParams object with the ability to set a context for a request.
func NewDeleteRoleParamsWithHTTPClient ¶
func NewDeleteRoleParamsWithHTTPClient(client *http.Client) *DeleteRoleParams
NewDeleteRoleParamsWithHTTPClient creates a new DeleteRoleParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteRoleParamsWithTimeout ¶
func NewDeleteRoleParamsWithTimeout(timeout time.Duration) *DeleteRoleParams
NewDeleteRoleParamsWithTimeout creates a new DeleteRoleParams object with the ability to set a timeout on a request.
func (*DeleteRoleParams) SetContext ¶
func (o *DeleteRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the delete role params
func (*DeleteRoleParams) SetDefaults ¶
func (o *DeleteRoleParams) SetDefaults()
SetDefaults hydrates default values in the delete role params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteRoleParams) SetHTTPClient ¶
func (o *DeleteRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete role params
func (*DeleteRoleParams) SetID ¶
func (o *DeleteRoleParams) SetID(id string)
SetID adds the id to the delete role params
func (*DeleteRoleParams) SetTimeout ¶
func (o *DeleteRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete role params
func (*DeleteRoleParams) WithContext ¶
func (o *DeleteRoleParams) WithContext(ctx context.Context) *DeleteRoleParams
WithContext adds the context to the delete role params
func (*DeleteRoleParams) WithDefaults ¶
func (o *DeleteRoleParams) WithDefaults() *DeleteRoleParams
WithDefaults hydrates default values in the delete role params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteRoleParams) WithHTTPClient ¶
func (o *DeleteRoleParams) WithHTTPClient(client *http.Client) *DeleteRoleParams
WithHTTPClient adds the HTTPClient to the delete role params
func (*DeleteRoleParams) WithID ¶
func (o *DeleteRoleParams) WithID(id string) *DeleteRoleParams
WithID adds the id to the delete role params
func (*DeleteRoleParams) WithTimeout ¶
func (o *DeleteRoleParams) WithTimeout(timeout time.Duration) *DeleteRoleParams
WithTimeout adds the timeout to the delete role params
func (*DeleteRoleParams) WriteToRequest ¶
func (o *DeleteRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteRoleReader ¶
type DeleteRoleReader struct {
// contains filtered or unexported fields
}
DeleteRoleReader is a Reader for the DeleteRole structure.
func (*DeleteRoleReader) ReadResponse ¶
func (o *DeleteRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteRoleUnauthorized ¶
type DeleteRoleUnauthorized struct { }
DeleteRoleUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewDeleteRoleUnauthorized ¶
func NewDeleteRoleUnauthorized() *DeleteRoleUnauthorized
NewDeleteRoleUnauthorized creates a DeleteRoleUnauthorized with default headers values
func (*DeleteRoleUnauthorized) Code ¶
func (o *DeleteRoleUnauthorized) Code() int
Code gets the status code for the delete role unauthorized response
func (*DeleteRoleUnauthorized) Error ¶
func (o *DeleteRoleUnauthorized) Error() string
func (*DeleteRoleUnauthorized) IsClientError ¶
func (o *DeleteRoleUnauthorized) IsClientError() bool
IsClientError returns true when this delete role unauthorized response has a 4xx status code
func (*DeleteRoleUnauthorized) IsCode ¶
func (o *DeleteRoleUnauthorized) IsCode(code int) bool
IsCode returns true when this delete role unauthorized response a status code equal to that given
func (*DeleteRoleUnauthorized) IsRedirect ¶
func (o *DeleteRoleUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete role unauthorized response has a 3xx status code
func (*DeleteRoleUnauthorized) IsServerError ¶
func (o *DeleteRoleUnauthorized) IsServerError() bool
IsServerError returns true when this delete role unauthorized response has a 5xx status code
func (*DeleteRoleUnauthorized) IsSuccess ¶
func (o *DeleteRoleUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete role unauthorized response has a 2xx status code
func (*DeleteRoleUnauthorized) String ¶
func (o *DeleteRoleUnauthorized) String() string
type GetRoleBadRequest ¶
type GetRoleBadRequest struct {
Payload *models.ErrorResponse
}
GetRoleBadRequest describes a response with status code 400, with default header values.
Malformed request.
func NewGetRoleBadRequest ¶
func NewGetRoleBadRequest() *GetRoleBadRequest
NewGetRoleBadRequest creates a GetRoleBadRequest with default headers values
func (*GetRoleBadRequest) Code ¶
func (o *GetRoleBadRequest) Code() int
Code gets the status code for the get role bad request response
func (*GetRoleBadRequest) Error ¶
func (o *GetRoleBadRequest) Error() string
func (*GetRoleBadRequest) GetPayload ¶
func (o *GetRoleBadRequest) GetPayload() *models.ErrorResponse
func (*GetRoleBadRequest) IsClientError ¶
func (o *GetRoleBadRequest) IsClientError() bool
IsClientError returns true when this get role bad request response has a 4xx status code
func (*GetRoleBadRequest) IsCode ¶
func (o *GetRoleBadRequest) IsCode(code int) bool
IsCode returns true when this get role bad request response a status code equal to that given
func (*GetRoleBadRequest) IsRedirect ¶
func (o *GetRoleBadRequest) IsRedirect() bool
IsRedirect returns true when this get role bad request response has a 3xx status code
func (*GetRoleBadRequest) IsServerError ¶
func (o *GetRoleBadRequest) IsServerError() bool
IsServerError returns true when this get role bad request response has a 5xx status code
func (*GetRoleBadRequest) IsSuccess ¶
func (o *GetRoleBadRequest) IsSuccess() bool
IsSuccess returns true when this get role bad request response has a 2xx status code
func (*GetRoleBadRequest) String ¶
func (o *GetRoleBadRequest) String() string
type GetRoleForbidden ¶
type GetRoleForbidden struct {
Payload *models.ErrorResponse
}
GetRoleForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetRoleForbidden ¶
func NewGetRoleForbidden() *GetRoleForbidden
NewGetRoleForbidden creates a GetRoleForbidden with default headers values
func (*GetRoleForbidden) Code ¶
func (o *GetRoleForbidden) Code() int
Code gets the status code for the get role forbidden response
func (*GetRoleForbidden) Error ¶
func (o *GetRoleForbidden) Error() string
func (*GetRoleForbidden) GetPayload ¶
func (o *GetRoleForbidden) GetPayload() *models.ErrorResponse
func (*GetRoleForbidden) IsClientError ¶
func (o *GetRoleForbidden) IsClientError() bool
IsClientError returns true when this get role forbidden response has a 4xx status code
func (*GetRoleForbidden) IsCode ¶
func (o *GetRoleForbidden) IsCode(code int) bool
IsCode returns true when this get role forbidden response a status code equal to that given
func (*GetRoleForbidden) IsRedirect ¶
func (o *GetRoleForbidden) IsRedirect() bool
IsRedirect returns true when this get role forbidden response has a 3xx status code
func (*GetRoleForbidden) IsServerError ¶
func (o *GetRoleForbidden) IsServerError() bool
IsServerError returns true when this get role forbidden response has a 5xx status code
func (*GetRoleForbidden) IsSuccess ¶
func (o *GetRoleForbidden) IsSuccess() bool
IsSuccess returns true when this get role forbidden response has a 2xx status code
func (*GetRoleForbidden) String ¶
func (o *GetRoleForbidden) String() string
type GetRoleInternalServerError ¶
type GetRoleInternalServerError struct {
Payload *models.ErrorResponse
}
GetRoleInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewGetRoleInternalServerError ¶
func NewGetRoleInternalServerError() *GetRoleInternalServerError
NewGetRoleInternalServerError creates a GetRoleInternalServerError with default headers values
func (*GetRoleInternalServerError) Code ¶
func (o *GetRoleInternalServerError) Code() int
Code gets the status code for the get role internal server error response
func (*GetRoleInternalServerError) Error ¶
func (o *GetRoleInternalServerError) Error() string
func (*GetRoleInternalServerError) GetPayload ¶
func (o *GetRoleInternalServerError) GetPayload() *models.ErrorResponse
func (*GetRoleInternalServerError) IsClientError ¶
func (o *GetRoleInternalServerError) IsClientError() bool
IsClientError returns true when this get role internal server error response has a 4xx status code
func (*GetRoleInternalServerError) IsCode ¶
func (o *GetRoleInternalServerError) IsCode(code int) bool
IsCode returns true when this get role internal server error response a status code equal to that given
func (*GetRoleInternalServerError) IsRedirect ¶
func (o *GetRoleInternalServerError) IsRedirect() bool
IsRedirect returns true when this get role internal server error response has a 3xx status code
func (*GetRoleInternalServerError) IsServerError ¶
func (o *GetRoleInternalServerError) IsServerError() bool
IsServerError returns true when this get role internal server error response has a 5xx status code
func (*GetRoleInternalServerError) IsSuccess ¶
func (o *GetRoleInternalServerError) IsSuccess() bool
IsSuccess returns true when this get role internal server error response has a 2xx status code
func (*GetRoleInternalServerError) String ¶
func (o *GetRoleInternalServerError) String() string
type GetRoleNotFound ¶
type GetRoleNotFound struct { }
GetRoleNotFound describes a response with status code 404, with default header values.
no role found
func NewGetRoleNotFound ¶
func NewGetRoleNotFound() *GetRoleNotFound
NewGetRoleNotFound creates a GetRoleNotFound with default headers values
func (*GetRoleNotFound) Code ¶
func (o *GetRoleNotFound) Code() int
Code gets the status code for the get role not found response
func (*GetRoleNotFound) Error ¶
func (o *GetRoleNotFound) Error() string
func (*GetRoleNotFound) IsClientError ¶
func (o *GetRoleNotFound) IsClientError() bool
IsClientError returns true when this get role not found response has a 4xx status code
func (*GetRoleNotFound) IsCode ¶
func (o *GetRoleNotFound) IsCode(code int) bool
IsCode returns true when this get role not found response a status code equal to that given
func (*GetRoleNotFound) IsRedirect ¶
func (o *GetRoleNotFound) IsRedirect() bool
IsRedirect returns true when this get role not found response has a 3xx status code
func (*GetRoleNotFound) IsServerError ¶
func (o *GetRoleNotFound) IsServerError() bool
IsServerError returns true when this get role not found response has a 5xx status code
func (*GetRoleNotFound) IsSuccess ¶
func (o *GetRoleNotFound) IsSuccess() bool
IsSuccess returns true when this get role not found response has a 2xx status code
func (*GetRoleNotFound) String ¶
func (o *GetRoleNotFound) String() string
type GetRoleOK ¶
GetRoleOK describes a response with status code 200, with default header values.
Successful response.
func NewGetRoleOK ¶
func NewGetRoleOK() *GetRoleOK
NewGetRoleOK creates a GetRoleOK with default headers values
func (*GetRoleOK) GetPayload ¶
func (*GetRoleOK) IsClientError ¶
IsClientError returns true when this get role o k response has a 4xx status code
func (*GetRoleOK) IsCode ¶
IsCode returns true when this get role o k response a status code equal to that given
func (*GetRoleOK) IsRedirect ¶
IsRedirect returns true when this get role o k response has a 3xx status code
func (*GetRoleOK) IsServerError ¶
IsServerError returns true when this get role o k response has a 5xx status code
type GetRoleParams ¶
type GetRoleParams struct { /* ID. role name */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRoleParams contains all the parameters to send to the API endpoint
for the get role operation. Typically these are written to a http.Request.
func NewGetRoleParams ¶
func NewGetRoleParams() *GetRoleParams
NewGetRoleParams creates a new GetRoleParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRoleParamsWithContext ¶
func NewGetRoleParamsWithContext(ctx context.Context) *GetRoleParams
NewGetRoleParamsWithContext creates a new GetRoleParams object with the ability to set a context for a request.
func NewGetRoleParamsWithHTTPClient ¶
func NewGetRoleParamsWithHTTPClient(client *http.Client) *GetRoleParams
NewGetRoleParamsWithHTTPClient creates a new GetRoleParams object with the ability to set a custom HTTPClient for a request.
func NewGetRoleParamsWithTimeout ¶
func NewGetRoleParamsWithTimeout(timeout time.Duration) *GetRoleParams
NewGetRoleParamsWithTimeout creates a new GetRoleParams object with the ability to set a timeout on a request.
func (*GetRoleParams) SetContext ¶
func (o *GetRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the get role params
func (*GetRoleParams) SetDefaults ¶
func (o *GetRoleParams) SetDefaults()
SetDefaults hydrates default values in the get role params (not the query body).
All values with no default are reset to their zero value.
func (*GetRoleParams) SetHTTPClient ¶
func (o *GetRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get role params
func (*GetRoleParams) SetID ¶
func (o *GetRoleParams) SetID(id string)
SetID adds the id to the get role params
func (*GetRoleParams) SetTimeout ¶
func (o *GetRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get role params
func (*GetRoleParams) WithContext ¶
func (o *GetRoleParams) WithContext(ctx context.Context) *GetRoleParams
WithContext adds the context to the get role params
func (*GetRoleParams) WithDefaults ¶
func (o *GetRoleParams) WithDefaults() *GetRoleParams
WithDefaults hydrates default values in the get role params (not the query body).
All values with no default are reset to their zero value.
func (*GetRoleParams) WithHTTPClient ¶
func (o *GetRoleParams) WithHTTPClient(client *http.Client) *GetRoleParams
WithHTTPClient adds the HTTPClient to the get role params
func (*GetRoleParams) WithID ¶
func (o *GetRoleParams) WithID(id string) *GetRoleParams
WithID adds the id to the get role params
func (*GetRoleParams) WithTimeout ¶
func (o *GetRoleParams) WithTimeout(timeout time.Duration) *GetRoleParams
WithTimeout adds the timeout to the get role params
func (*GetRoleParams) WriteToRequest ¶
func (o *GetRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRoleReader ¶
type GetRoleReader struct {
// contains filtered or unexported fields
}
GetRoleReader is a Reader for the GetRole structure.
func (*GetRoleReader) ReadResponse ¶
func (o *GetRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRoleUnauthorized ¶
type GetRoleUnauthorized struct { }
GetRoleUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewGetRoleUnauthorized ¶
func NewGetRoleUnauthorized() *GetRoleUnauthorized
NewGetRoleUnauthorized creates a GetRoleUnauthorized with default headers values
func (*GetRoleUnauthorized) Code ¶
func (o *GetRoleUnauthorized) Code() int
Code gets the status code for the get role unauthorized response
func (*GetRoleUnauthorized) Error ¶
func (o *GetRoleUnauthorized) Error() string
func (*GetRoleUnauthorized) IsClientError ¶
func (o *GetRoleUnauthorized) IsClientError() bool
IsClientError returns true when this get role unauthorized response has a 4xx status code
func (*GetRoleUnauthorized) IsCode ¶
func (o *GetRoleUnauthorized) IsCode(code int) bool
IsCode returns true when this get role unauthorized response a status code equal to that given
func (*GetRoleUnauthorized) IsRedirect ¶
func (o *GetRoleUnauthorized) IsRedirect() bool
IsRedirect returns true when this get role unauthorized response has a 3xx status code
func (*GetRoleUnauthorized) IsServerError ¶
func (o *GetRoleUnauthorized) IsServerError() bool
IsServerError returns true when this get role unauthorized response has a 5xx status code
func (*GetRoleUnauthorized) IsSuccess ¶
func (o *GetRoleUnauthorized) IsSuccess() bool
IsSuccess returns true when this get role unauthorized response has a 2xx status code
func (*GetRoleUnauthorized) String ¶
func (o *GetRoleUnauthorized) String() string
type GetRolesBadRequest ¶
type GetRolesBadRequest struct {
Payload *models.ErrorResponse
}
GetRolesBadRequest describes a response with status code 400, with default header values.
Malformed request.
func NewGetRolesBadRequest ¶
func NewGetRolesBadRequest() *GetRolesBadRequest
NewGetRolesBadRequest creates a GetRolesBadRequest with default headers values
func (*GetRolesBadRequest) Code ¶
func (o *GetRolesBadRequest) Code() int
Code gets the status code for the get roles bad request response
func (*GetRolesBadRequest) Error ¶
func (o *GetRolesBadRequest) Error() string
func (*GetRolesBadRequest) GetPayload ¶
func (o *GetRolesBadRequest) GetPayload() *models.ErrorResponse
func (*GetRolesBadRequest) IsClientError ¶
func (o *GetRolesBadRequest) IsClientError() bool
IsClientError returns true when this get roles bad request response has a 4xx status code
func (*GetRolesBadRequest) IsCode ¶
func (o *GetRolesBadRequest) IsCode(code int) bool
IsCode returns true when this get roles bad request response a status code equal to that given
func (*GetRolesBadRequest) IsRedirect ¶
func (o *GetRolesBadRequest) IsRedirect() bool
IsRedirect returns true when this get roles bad request response has a 3xx status code
func (*GetRolesBadRequest) IsServerError ¶
func (o *GetRolesBadRequest) IsServerError() bool
IsServerError returns true when this get roles bad request response has a 5xx status code
func (*GetRolesBadRequest) IsSuccess ¶
func (o *GetRolesBadRequest) IsSuccess() bool
IsSuccess returns true when this get roles bad request response has a 2xx status code
func (*GetRolesBadRequest) String ¶
func (o *GetRolesBadRequest) String() string
type GetRolesForOwnUserInternalServerError ¶
type GetRolesForOwnUserInternalServerError struct {
Payload *models.ErrorResponse
}
GetRolesForOwnUserInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewGetRolesForOwnUserInternalServerError ¶
func NewGetRolesForOwnUserInternalServerError() *GetRolesForOwnUserInternalServerError
NewGetRolesForOwnUserInternalServerError creates a GetRolesForOwnUserInternalServerError with default headers values
func (*GetRolesForOwnUserInternalServerError) Code ¶
func (o *GetRolesForOwnUserInternalServerError) Code() int
Code gets the status code for the get roles for own user internal server error response
func (*GetRolesForOwnUserInternalServerError) Error ¶
func (o *GetRolesForOwnUserInternalServerError) Error() string
func (*GetRolesForOwnUserInternalServerError) GetPayload ¶
func (o *GetRolesForOwnUserInternalServerError) GetPayload() *models.ErrorResponse
func (*GetRolesForOwnUserInternalServerError) IsClientError ¶
func (o *GetRolesForOwnUserInternalServerError) IsClientError() bool
IsClientError returns true when this get roles for own user internal server error response has a 4xx status code
func (*GetRolesForOwnUserInternalServerError) IsCode ¶
func (o *GetRolesForOwnUserInternalServerError) IsCode(code int) bool
IsCode returns true when this get roles for own user internal server error response a status code equal to that given
func (*GetRolesForOwnUserInternalServerError) IsRedirect ¶
func (o *GetRolesForOwnUserInternalServerError) IsRedirect() bool
IsRedirect returns true when this get roles for own user internal server error response has a 3xx status code
func (*GetRolesForOwnUserInternalServerError) IsServerError ¶
func (o *GetRolesForOwnUserInternalServerError) IsServerError() bool
IsServerError returns true when this get roles for own user internal server error response has a 5xx status code
func (*GetRolesForOwnUserInternalServerError) IsSuccess ¶
func (o *GetRolesForOwnUserInternalServerError) IsSuccess() bool
IsSuccess returns true when this get roles for own user internal server error response has a 2xx status code
func (*GetRolesForOwnUserInternalServerError) String ¶
func (o *GetRolesForOwnUserInternalServerError) String() string
type GetRolesForOwnUserOK ¶
type GetRolesForOwnUserOK struct {
Payload models.RolesListResponse
}
GetRolesForOwnUserOK describes a response with status code 200, with default header values.
Role assigned to own users
func NewGetRolesForOwnUserOK ¶
func NewGetRolesForOwnUserOK() *GetRolesForOwnUserOK
NewGetRolesForOwnUserOK creates a GetRolesForOwnUserOK with default headers values
func (*GetRolesForOwnUserOK) Code ¶
func (o *GetRolesForOwnUserOK) Code() int
Code gets the status code for the get roles for own user o k response
func (*GetRolesForOwnUserOK) Error ¶
func (o *GetRolesForOwnUserOK) Error() string
func (*GetRolesForOwnUserOK) GetPayload ¶
func (o *GetRolesForOwnUserOK) GetPayload() models.RolesListResponse
func (*GetRolesForOwnUserOK) IsClientError ¶
func (o *GetRolesForOwnUserOK) IsClientError() bool
IsClientError returns true when this get roles for own user o k response has a 4xx status code
func (*GetRolesForOwnUserOK) IsCode ¶
func (o *GetRolesForOwnUserOK) IsCode(code int) bool
IsCode returns true when this get roles for own user o k response a status code equal to that given
func (*GetRolesForOwnUserOK) IsRedirect ¶
func (o *GetRolesForOwnUserOK) IsRedirect() bool
IsRedirect returns true when this get roles for own user o k response has a 3xx status code
func (*GetRolesForOwnUserOK) IsServerError ¶
func (o *GetRolesForOwnUserOK) IsServerError() bool
IsServerError returns true when this get roles for own user o k response has a 5xx status code
func (*GetRolesForOwnUserOK) IsSuccess ¶
func (o *GetRolesForOwnUserOK) IsSuccess() bool
IsSuccess returns true when this get roles for own user o k response has a 2xx status code
func (*GetRolesForOwnUserOK) String ¶
func (o *GetRolesForOwnUserOK) String() string
type GetRolesForOwnUserParams ¶
type GetRolesForOwnUserParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRolesForOwnUserParams contains all the parameters to send to the API endpoint
for the get roles for own user operation. Typically these are written to a http.Request.
func NewGetRolesForOwnUserParams ¶
func NewGetRolesForOwnUserParams() *GetRolesForOwnUserParams
NewGetRolesForOwnUserParams creates a new GetRolesForOwnUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRolesForOwnUserParamsWithContext ¶
func NewGetRolesForOwnUserParamsWithContext(ctx context.Context) *GetRolesForOwnUserParams
NewGetRolesForOwnUserParamsWithContext creates a new GetRolesForOwnUserParams object with the ability to set a context for a request.
func NewGetRolesForOwnUserParamsWithHTTPClient ¶
func NewGetRolesForOwnUserParamsWithHTTPClient(client *http.Client) *GetRolesForOwnUserParams
NewGetRolesForOwnUserParamsWithHTTPClient creates a new GetRolesForOwnUserParams object with the ability to set a custom HTTPClient for a request.
func NewGetRolesForOwnUserParamsWithTimeout ¶
func NewGetRolesForOwnUserParamsWithTimeout(timeout time.Duration) *GetRolesForOwnUserParams
NewGetRolesForOwnUserParamsWithTimeout creates a new GetRolesForOwnUserParams object with the ability to set a timeout on a request.
func (*GetRolesForOwnUserParams) SetContext ¶
func (o *GetRolesForOwnUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get roles for own user params
func (*GetRolesForOwnUserParams) SetDefaults ¶
func (o *GetRolesForOwnUserParams) SetDefaults()
SetDefaults hydrates default values in the get roles for own user params (not the query body).
All values with no default are reset to their zero value.
func (*GetRolesForOwnUserParams) SetHTTPClient ¶
func (o *GetRolesForOwnUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get roles for own user params
func (*GetRolesForOwnUserParams) SetTimeout ¶
func (o *GetRolesForOwnUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get roles for own user params
func (*GetRolesForOwnUserParams) WithContext ¶
func (o *GetRolesForOwnUserParams) WithContext(ctx context.Context) *GetRolesForOwnUserParams
WithContext adds the context to the get roles for own user params
func (*GetRolesForOwnUserParams) WithDefaults ¶
func (o *GetRolesForOwnUserParams) WithDefaults() *GetRolesForOwnUserParams
WithDefaults hydrates default values in the get roles for own user params (not the query body).
All values with no default are reset to their zero value.
func (*GetRolesForOwnUserParams) WithHTTPClient ¶
func (o *GetRolesForOwnUserParams) WithHTTPClient(client *http.Client) *GetRolesForOwnUserParams
WithHTTPClient adds the HTTPClient to the get roles for own user params
func (*GetRolesForOwnUserParams) WithTimeout ¶
func (o *GetRolesForOwnUserParams) WithTimeout(timeout time.Duration) *GetRolesForOwnUserParams
WithTimeout adds the timeout to the get roles for own user params
func (*GetRolesForOwnUserParams) WriteToRequest ¶
func (o *GetRolesForOwnUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRolesForOwnUserReader ¶
type GetRolesForOwnUserReader struct {
// contains filtered or unexported fields
}
GetRolesForOwnUserReader is a Reader for the GetRolesForOwnUser structure.
func (*GetRolesForOwnUserReader) ReadResponse ¶
func (o *GetRolesForOwnUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRolesForOwnUserUnauthorized ¶
type GetRolesForOwnUserUnauthorized struct { }
GetRolesForOwnUserUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewGetRolesForOwnUserUnauthorized ¶
func NewGetRolesForOwnUserUnauthorized() *GetRolesForOwnUserUnauthorized
NewGetRolesForOwnUserUnauthorized creates a GetRolesForOwnUserUnauthorized with default headers values
func (*GetRolesForOwnUserUnauthorized) Code ¶
func (o *GetRolesForOwnUserUnauthorized) Code() int
Code gets the status code for the get roles for own user unauthorized response
func (*GetRolesForOwnUserUnauthorized) Error ¶
func (o *GetRolesForOwnUserUnauthorized) Error() string
func (*GetRolesForOwnUserUnauthorized) IsClientError ¶
func (o *GetRolesForOwnUserUnauthorized) IsClientError() bool
IsClientError returns true when this get roles for own user unauthorized response has a 4xx status code
func (*GetRolesForOwnUserUnauthorized) IsCode ¶
func (o *GetRolesForOwnUserUnauthorized) IsCode(code int) bool
IsCode returns true when this get roles for own user unauthorized response a status code equal to that given
func (*GetRolesForOwnUserUnauthorized) IsRedirect ¶
func (o *GetRolesForOwnUserUnauthorized) IsRedirect() bool
IsRedirect returns true when this get roles for own user unauthorized response has a 3xx status code
func (*GetRolesForOwnUserUnauthorized) IsServerError ¶
func (o *GetRolesForOwnUserUnauthorized) IsServerError() bool
IsServerError returns true when this get roles for own user unauthorized response has a 5xx status code
func (*GetRolesForOwnUserUnauthorized) IsSuccess ¶
func (o *GetRolesForOwnUserUnauthorized) IsSuccess() bool
IsSuccess returns true when this get roles for own user unauthorized response has a 2xx status code
func (*GetRolesForOwnUserUnauthorized) String ¶
func (o *GetRolesForOwnUserUnauthorized) String() string
type GetRolesForUserBadRequest ¶
type GetRolesForUserBadRequest struct {
Payload *models.ErrorResponse
}
GetRolesForUserBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetRolesForUserBadRequest ¶
func NewGetRolesForUserBadRequest() *GetRolesForUserBadRequest
NewGetRolesForUserBadRequest creates a GetRolesForUserBadRequest with default headers values
func (*GetRolesForUserBadRequest) Code ¶
func (o *GetRolesForUserBadRequest) Code() int
Code gets the status code for the get roles for user bad request response
func (*GetRolesForUserBadRequest) Error ¶
func (o *GetRolesForUserBadRequest) Error() string
func (*GetRolesForUserBadRequest) GetPayload ¶
func (o *GetRolesForUserBadRequest) GetPayload() *models.ErrorResponse
func (*GetRolesForUserBadRequest) IsClientError ¶
func (o *GetRolesForUserBadRequest) IsClientError() bool
IsClientError returns true when this get roles for user bad request response has a 4xx status code
func (*GetRolesForUserBadRequest) IsCode ¶
func (o *GetRolesForUserBadRequest) IsCode(code int) bool
IsCode returns true when this get roles for user bad request response a status code equal to that given
func (*GetRolesForUserBadRequest) IsRedirect ¶
func (o *GetRolesForUserBadRequest) IsRedirect() bool
IsRedirect returns true when this get roles for user bad request response has a 3xx status code
func (*GetRolesForUserBadRequest) IsServerError ¶
func (o *GetRolesForUserBadRequest) IsServerError() bool
IsServerError returns true when this get roles for user bad request response has a 5xx status code
func (*GetRolesForUserBadRequest) IsSuccess ¶
func (o *GetRolesForUserBadRequest) IsSuccess() bool
IsSuccess returns true when this get roles for user bad request response has a 2xx status code
func (*GetRolesForUserBadRequest) String ¶
func (o *GetRolesForUserBadRequest) String() string
type GetRolesForUserForbidden ¶
type GetRolesForUserForbidden struct {
Payload *models.ErrorResponse
}
GetRolesForUserForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetRolesForUserForbidden ¶
func NewGetRolesForUserForbidden() *GetRolesForUserForbidden
NewGetRolesForUserForbidden creates a GetRolesForUserForbidden with default headers values
func (*GetRolesForUserForbidden) Code ¶
func (o *GetRolesForUserForbidden) Code() int
Code gets the status code for the get roles for user forbidden response
func (*GetRolesForUserForbidden) Error ¶
func (o *GetRolesForUserForbidden) Error() string
func (*GetRolesForUserForbidden) GetPayload ¶
func (o *GetRolesForUserForbidden) GetPayload() *models.ErrorResponse
func (*GetRolesForUserForbidden) IsClientError ¶
func (o *GetRolesForUserForbidden) IsClientError() bool
IsClientError returns true when this get roles for user forbidden response has a 4xx status code
func (*GetRolesForUserForbidden) IsCode ¶
func (o *GetRolesForUserForbidden) IsCode(code int) bool
IsCode returns true when this get roles for user forbidden response a status code equal to that given
func (*GetRolesForUserForbidden) IsRedirect ¶
func (o *GetRolesForUserForbidden) IsRedirect() bool
IsRedirect returns true when this get roles for user forbidden response has a 3xx status code
func (*GetRolesForUserForbidden) IsServerError ¶
func (o *GetRolesForUserForbidden) IsServerError() bool
IsServerError returns true when this get roles for user forbidden response has a 5xx status code
func (*GetRolesForUserForbidden) IsSuccess ¶
func (o *GetRolesForUserForbidden) IsSuccess() bool
IsSuccess returns true when this get roles for user forbidden response has a 2xx status code
func (*GetRolesForUserForbidden) String ¶
func (o *GetRolesForUserForbidden) String() string
type GetRolesForUserInternalServerError ¶
type GetRolesForUserInternalServerError struct {
Payload *models.ErrorResponse
}
GetRolesForUserInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewGetRolesForUserInternalServerError ¶
func NewGetRolesForUserInternalServerError() *GetRolesForUserInternalServerError
NewGetRolesForUserInternalServerError creates a GetRolesForUserInternalServerError with default headers values
func (*GetRolesForUserInternalServerError) Code ¶
func (o *GetRolesForUserInternalServerError) Code() int
Code gets the status code for the get roles for user internal server error response
func (*GetRolesForUserInternalServerError) Error ¶
func (o *GetRolesForUserInternalServerError) Error() string
func (*GetRolesForUserInternalServerError) GetPayload ¶
func (o *GetRolesForUserInternalServerError) GetPayload() *models.ErrorResponse
func (*GetRolesForUserInternalServerError) IsClientError ¶
func (o *GetRolesForUserInternalServerError) IsClientError() bool
IsClientError returns true when this get roles for user internal server error response has a 4xx status code
func (*GetRolesForUserInternalServerError) IsCode ¶
func (o *GetRolesForUserInternalServerError) IsCode(code int) bool
IsCode returns true when this get roles for user internal server error response a status code equal to that given
func (*GetRolesForUserInternalServerError) IsRedirect ¶
func (o *GetRolesForUserInternalServerError) IsRedirect() bool
IsRedirect returns true when this get roles for user internal server error response has a 3xx status code
func (*GetRolesForUserInternalServerError) IsServerError ¶
func (o *GetRolesForUserInternalServerError) IsServerError() bool
IsServerError returns true when this get roles for user internal server error response has a 5xx status code
func (*GetRolesForUserInternalServerError) IsSuccess ¶
func (o *GetRolesForUserInternalServerError) IsSuccess() bool
IsSuccess returns true when this get roles for user internal server error response has a 2xx status code
func (*GetRolesForUserInternalServerError) String ¶
func (o *GetRolesForUserInternalServerError) String() string
type GetRolesForUserNotFound ¶
type GetRolesForUserNotFound struct { }
GetRolesForUserNotFound describes a response with status code 404, with default header values.
no role found for user
func NewGetRolesForUserNotFound ¶
func NewGetRolesForUserNotFound() *GetRolesForUserNotFound
NewGetRolesForUserNotFound creates a GetRolesForUserNotFound with default headers values
func (*GetRolesForUserNotFound) Code ¶
func (o *GetRolesForUserNotFound) Code() int
Code gets the status code for the get roles for user not found response
func (*GetRolesForUserNotFound) Error ¶
func (o *GetRolesForUserNotFound) Error() string
func (*GetRolesForUserNotFound) IsClientError ¶
func (o *GetRolesForUserNotFound) IsClientError() bool
IsClientError returns true when this get roles for user not found response has a 4xx status code
func (*GetRolesForUserNotFound) IsCode ¶
func (o *GetRolesForUserNotFound) IsCode(code int) bool
IsCode returns true when this get roles for user not found response a status code equal to that given
func (*GetRolesForUserNotFound) IsRedirect ¶
func (o *GetRolesForUserNotFound) IsRedirect() bool
IsRedirect returns true when this get roles for user not found response has a 3xx status code
func (*GetRolesForUserNotFound) IsServerError ¶
func (o *GetRolesForUserNotFound) IsServerError() bool
IsServerError returns true when this get roles for user not found response has a 5xx status code
func (*GetRolesForUserNotFound) IsSuccess ¶
func (o *GetRolesForUserNotFound) IsSuccess() bool
IsSuccess returns true when this get roles for user not found response has a 2xx status code
func (*GetRolesForUserNotFound) String ¶
func (o *GetRolesForUserNotFound) String() string
type GetRolesForUserOK ¶
type GetRolesForUserOK struct {
Payload models.RolesListResponse
}
GetRolesForUserOK describes a response with status code 200, with default header values.
Role assigned users
func NewGetRolesForUserOK ¶
func NewGetRolesForUserOK() *GetRolesForUserOK
NewGetRolesForUserOK creates a GetRolesForUserOK with default headers values
func (*GetRolesForUserOK) Code ¶
func (o *GetRolesForUserOK) Code() int
Code gets the status code for the get roles for user o k response
func (*GetRolesForUserOK) Error ¶
func (o *GetRolesForUserOK) Error() string
func (*GetRolesForUserOK) GetPayload ¶
func (o *GetRolesForUserOK) GetPayload() models.RolesListResponse
func (*GetRolesForUserOK) IsClientError ¶
func (o *GetRolesForUserOK) IsClientError() bool
IsClientError returns true when this get roles for user o k response has a 4xx status code
func (*GetRolesForUserOK) IsCode ¶
func (o *GetRolesForUserOK) IsCode(code int) bool
IsCode returns true when this get roles for user o k response a status code equal to that given
func (*GetRolesForUserOK) IsRedirect ¶
func (o *GetRolesForUserOK) IsRedirect() bool
IsRedirect returns true when this get roles for user o k response has a 3xx status code
func (*GetRolesForUserOK) IsServerError ¶
func (o *GetRolesForUserOK) IsServerError() bool
IsServerError returns true when this get roles for user o k response has a 5xx status code
func (*GetRolesForUserOK) IsSuccess ¶
func (o *GetRolesForUserOK) IsSuccess() bool
IsSuccess returns true when this get roles for user o k response has a 2xx status code
func (*GetRolesForUserOK) String ¶
func (o *GetRolesForUserOK) String() string
type GetRolesForUserParams ¶
type GetRolesForUserParams struct { /* ID. user name */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRolesForUserParams contains all the parameters to send to the API endpoint
for the get roles for user operation. Typically these are written to a http.Request.
func NewGetRolesForUserParams ¶
func NewGetRolesForUserParams() *GetRolesForUserParams
NewGetRolesForUserParams creates a new GetRolesForUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRolesForUserParamsWithContext ¶
func NewGetRolesForUserParamsWithContext(ctx context.Context) *GetRolesForUserParams
NewGetRolesForUserParamsWithContext creates a new GetRolesForUserParams object with the ability to set a context for a request.
func NewGetRolesForUserParamsWithHTTPClient ¶
func NewGetRolesForUserParamsWithHTTPClient(client *http.Client) *GetRolesForUserParams
NewGetRolesForUserParamsWithHTTPClient creates a new GetRolesForUserParams object with the ability to set a custom HTTPClient for a request.
func NewGetRolesForUserParamsWithTimeout ¶
func NewGetRolesForUserParamsWithTimeout(timeout time.Duration) *GetRolesForUserParams
NewGetRolesForUserParamsWithTimeout creates a new GetRolesForUserParams object with the ability to set a timeout on a request.
func (*GetRolesForUserParams) SetContext ¶
func (o *GetRolesForUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get roles for user params
func (*GetRolesForUserParams) SetDefaults ¶
func (o *GetRolesForUserParams) SetDefaults()
SetDefaults hydrates default values in the get roles for user params (not the query body).
All values with no default are reset to their zero value.
func (*GetRolesForUserParams) SetHTTPClient ¶
func (o *GetRolesForUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get roles for user params
func (*GetRolesForUserParams) SetID ¶
func (o *GetRolesForUserParams) SetID(id string)
SetID adds the id to the get roles for user params
func (*GetRolesForUserParams) SetTimeout ¶
func (o *GetRolesForUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get roles for user params
func (*GetRolesForUserParams) WithContext ¶
func (o *GetRolesForUserParams) WithContext(ctx context.Context) *GetRolesForUserParams
WithContext adds the context to the get roles for user params
func (*GetRolesForUserParams) WithDefaults ¶
func (o *GetRolesForUserParams) WithDefaults() *GetRolesForUserParams
WithDefaults hydrates default values in the get roles for user params (not the query body).
All values with no default are reset to their zero value.
func (*GetRolesForUserParams) WithHTTPClient ¶
func (o *GetRolesForUserParams) WithHTTPClient(client *http.Client) *GetRolesForUserParams
WithHTTPClient adds the HTTPClient to the get roles for user params
func (*GetRolesForUserParams) WithID ¶
func (o *GetRolesForUserParams) WithID(id string) *GetRolesForUserParams
WithID adds the id to the get roles for user params
func (*GetRolesForUserParams) WithTimeout ¶
func (o *GetRolesForUserParams) WithTimeout(timeout time.Duration) *GetRolesForUserParams
WithTimeout adds the timeout to the get roles for user params
func (*GetRolesForUserParams) WriteToRequest ¶
func (o *GetRolesForUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRolesForUserReader ¶
type GetRolesForUserReader struct {
// contains filtered or unexported fields
}
GetRolesForUserReader is a Reader for the GetRolesForUser structure.
func (*GetRolesForUserReader) ReadResponse ¶
func (o *GetRolesForUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRolesForUserUnauthorized ¶
type GetRolesForUserUnauthorized struct { }
GetRolesForUserUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewGetRolesForUserUnauthorized ¶
func NewGetRolesForUserUnauthorized() *GetRolesForUserUnauthorized
NewGetRolesForUserUnauthorized creates a GetRolesForUserUnauthorized with default headers values
func (*GetRolesForUserUnauthorized) Code ¶
func (o *GetRolesForUserUnauthorized) Code() int
Code gets the status code for the get roles for user unauthorized response
func (*GetRolesForUserUnauthorized) Error ¶
func (o *GetRolesForUserUnauthorized) Error() string
func (*GetRolesForUserUnauthorized) IsClientError ¶
func (o *GetRolesForUserUnauthorized) IsClientError() bool
IsClientError returns true when this get roles for user unauthorized response has a 4xx status code
func (*GetRolesForUserUnauthorized) IsCode ¶
func (o *GetRolesForUserUnauthorized) IsCode(code int) bool
IsCode returns true when this get roles for user unauthorized response a status code equal to that given
func (*GetRolesForUserUnauthorized) IsRedirect ¶
func (o *GetRolesForUserUnauthorized) IsRedirect() bool
IsRedirect returns true when this get roles for user unauthorized response has a 3xx status code
func (*GetRolesForUserUnauthorized) IsServerError ¶
func (o *GetRolesForUserUnauthorized) IsServerError() bool
IsServerError returns true when this get roles for user unauthorized response has a 5xx status code
func (*GetRolesForUserUnauthorized) IsSuccess ¶
func (o *GetRolesForUserUnauthorized) IsSuccess() bool
IsSuccess returns true when this get roles for user unauthorized response has a 2xx status code
func (*GetRolesForUserUnauthorized) String ¶
func (o *GetRolesForUserUnauthorized) String() string
type GetRolesForbidden ¶
type GetRolesForbidden struct {
Payload *models.ErrorResponse
}
GetRolesForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetRolesForbidden ¶
func NewGetRolesForbidden() *GetRolesForbidden
NewGetRolesForbidden creates a GetRolesForbidden with default headers values
func (*GetRolesForbidden) Code ¶
func (o *GetRolesForbidden) Code() int
Code gets the status code for the get roles forbidden response
func (*GetRolesForbidden) Error ¶
func (o *GetRolesForbidden) Error() string
func (*GetRolesForbidden) GetPayload ¶
func (o *GetRolesForbidden) GetPayload() *models.ErrorResponse
func (*GetRolesForbidden) IsClientError ¶
func (o *GetRolesForbidden) IsClientError() bool
IsClientError returns true when this get roles forbidden response has a 4xx status code
func (*GetRolesForbidden) IsCode ¶
func (o *GetRolesForbidden) IsCode(code int) bool
IsCode returns true when this get roles forbidden response a status code equal to that given
func (*GetRolesForbidden) IsRedirect ¶
func (o *GetRolesForbidden) IsRedirect() bool
IsRedirect returns true when this get roles forbidden response has a 3xx status code
func (*GetRolesForbidden) IsServerError ¶
func (o *GetRolesForbidden) IsServerError() bool
IsServerError returns true when this get roles forbidden response has a 5xx status code
func (*GetRolesForbidden) IsSuccess ¶
func (o *GetRolesForbidden) IsSuccess() bool
IsSuccess returns true when this get roles forbidden response has a 2xx status code
func (*GetRolesForbidden) String ¶
func (o *GetRolesForbidden) String() string
type GetRolesInternalServerError ¶
type GetRolesInternalServerError struct {
Payload *models.ErrorResponse
}
GetRolesInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewGetRolesInternalServerError ¶
func NewGetRolesInternalServerError() *GetRolesInternalServerError
NewGetRolesInternalServerError creates a GetRolesInternalServerError with default headers values
func (*GetRolesInternalServerError) Code ¶
func (o *GetRolesInternalServerError) Code() int
Code gets the status code for the get roles internal server error response
func (*GetRolesInternalServerError) Error ¶
func (o *GetRolesInternalServerError) Error() string
func (*GetRolesInternalServerError) GetPayload ¶
func (o *GetRolesInternalServerError) GetPayload() *models.ErrorResponse
func (*GetRolesInternalServerError) IsClientError ¶
func (o *GetRolesInternalServerError) IsClientError() bool
IsClientError returns true when this get roles internal server error response has a 4xx status code
func (*GetRolesInternalServerError) IsCode ¶
func (o *GetRolesInternalServerError) IsCode(code int) bool
IsCode returns true when this get roles internal server error response a status code equal to that given
func (*GetRolesInternalServerError) IsRedirect ¶
func (o *GetRolesInternalServerError) IsRedirect() bool
IsRedirect returns true when this get roles internal server error response has a 3xx status code
func (*GetRolesInternalServerError) IsServerError ¶
func (o *GetRolesInternalServerError) IsServerError() bool
IsServerError returns true when this get roles internal server error response has a 5xx status code
func (*GetRolesInternalServerError) IsSuccess ¶
func (o *GetRolesInternalServerError) IsSuccess() bool
IsSuccess returns true when this get roles internal server error response has a 2xx status code
func (*GetRolesInternalServerError) String ¶
func (o *GetRolesInternalServerError) String() string
type GetRolesOK ¶
type GetRolesOK struct {
Payload models.RolesListResponse
}
GetRolesOK describes a response with status code 200, with default header values.
Successful response.
func NewGetRolesOK ¶
func NewGetRolesOK() *GetRolesOK
NewGetRolesOK creates a GetRolesOK with default headers values
func (*GetRolesOK) Code ¶
func (o *GetRolesOK) Code() int
Code gets the status code for the get roles o k response
func (*GetRolesOK) Error ¶
func (o *GetRolesOK) Error() string
func (*GetRolesOK) GetPayload ¶
func (o *GetRolesOK) GetPayload() models.RolesListResponse
func (*GetRolesOK) IsClientError ¶
func (o *GetRolesOK) IsClientError() bool
IsClientError returns true when this get roles o k response has a 4xx status code
func (*GetRolesOK) IsCode ¶
func (o *GetRolesOK) IsCode(code int) bool
IsCode returns true when this get roles o k response a status code equal to that given
func (*GetRolesOK) IsRedirect ¶
func (o *GetRolesOK) IsRedirect() bool
IsRedirect returns true when this get roles o k response has a 3xx status code
func (*GetRolesOK) IsServerError ¶
func (o *GetRolesOK) IsServerError() bool
IsServerError returns true when this get roles o k response has a 5xx status code
func (*GetRolesOK) IsSuccess ¶
func (o *GetRolesOK) IsSuccess() bool
IsSuccess returns true when this get roles o k response has a 2xx status code
func (*GetRolesOK) String ¶
func (o *GetRolesOK) String() string
type GetRolesParams ¶
type GetRolesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRolesParams contains all the parameters to send to the API endpoint
for the get roles operation. Typically these are written to a http.Request.
func NewGetRolesParams ¶
func NewGetRolesParams() *GetRolesParams
NewGetRolesParams creates a new GetRolesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRolesParamsWithContext ¶
func NewGetRolesParamsWithContext(ctx context.Context) *GetRolesParams
NewGetRolesParamsWithContext creates a new GetRolesParams object with the ability to set a context for a request.
func NewGetRolesParamsWithHTTPClient ¶
func NewGetRolesParamsWithHTTPClient(client *http.Client) *GetRolesParams
NewGetRolesParamsWithHTTPClient creates a new GetRolesParams object with the ability to set a custom HTTPClient for a request.
func NewGetRolesParamsWithTimeout ¶
func NewGetRolesParamsWithTimeout(timeout time.Duration) *GetRolesParams
NewGetRolesParamsWithTimeout creates a new GetRolesParams object with the ability to set a timeout on a request.
func (*GetRolesParams) SetContext ¶
func (o *GetRolesParams) SetContext(ctx context.Context)
SetContext adds the context to the get roles params
func (*GetRolesParams) SetDefaults ¶
func (o *GetRolesParams) SetDefaults()
SetDefaults hydrates default values in the get roles params (not the query body).
All values with no default are reset to their zero value.
func (*GetRolesParams) SetHTTPClient ¶
func (o *GetRolesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get roles params
func (*GetRolesParams) SetTimeout ¶
func (o *GetRolesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get roles params
func (*GetRolesParams) WithContext ¶
func (o *GetRolesParams) WithContext(ctx context.Context) *GetRolesParams
WithContext adds the context to the get roles params
func (*GetRolesParams) WithDefaults ¶
func (o *GetRolesParams) WithDefaults() *GetRolesParams
WithDefaults hydrates default values in the get roles params (not the query body).
All values with no default are reset to their zero value.
func (*GetRolesParams) WithHTTPClient ¶
func (o *GetRolesParams) WithHTTPClient(client *http.Client) *GetRolesParams
WithHTTPClient adds the HTTPClient to the get roles params
func (*GetRolesParams) WithTimeout ¶
func (o *GetRolesParams) WithTimeout(timeout time.Duration) *GetRolesParams
WithTimeout adds the timeout to the get roles params
func (*GetRolesParams) WriteToRequest ¶
func (o *GetRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRolesReader ¶
type GetRolesReader struct {
// contains filtered or unexported fields
}
GetRolesReader is a Reader for the GetRoles structure.
func (*GetRolesReader) ReadResponse ¶
func (o *GetRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRolesUnauthorized ¶
type GetRolesUnauthorized struct { }
GetRolesUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewGetRolesUnauthorized ¶
func NewGetRolesUnauthorized() *GetRolesUnauthorized
NewGetRolesUnauthorized creates a GetRolesUnauthorized with default headers values
func (*GetRolesUnauthorized) Code ¶
func (o *GetRolesUnauthorized) Code() int
Code gets the status code for the get roles unauthorized response
func (*GetRolesUnauthorized) Error ¶
func (o *GetRolesUnauthorized) Error() string
func (*GetRolesUnauthorized) IsClientError ¶
func (o *GetRolesUnauthorized) IsClientError() bool
IsClientError returns true when this get roles unauthorized response has a 4xx status code
func (*GetRolesUnauthorized) IsCode ¶
func (o *GetRolesUnauthorized) IsCode(code int) bool
IsCode returns true when this get roles unauthorized response a status code equal to that given
func (*GetRolesUnauthorized) IsRedirect ¶
func (o *GetRolesUnauthorized) IsRedirect() bool
IsRedirect returns true when this get roles unauthorized response has a 3xx status code
func (*GetRolesUnauthorized) IsServerError ¶
func (o *GetRolesUnauthorized) IsServerError() bool
IsServerError returns true when this get roles unauthorized response has a 5xx status code
func (*GetRolesUnauthorized) IsSuccess ¶
func (o *GetRolesUnauthorized) IsSuccess() bool
IsSuccess returns true when this get roles unauthorized response has a 2xx status code
func (*GetRolesUnauthorized) String ¶
func (o *GetRolesUnauthorized) String() string
type GetUsersForRoleBadRequest ¶
type GetUsersForRoleBadRequest struct {
Payload *models.ErrorResponse
}
GetUsersForRoleBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetUsersForRoleBadRequest ¶
func NewGetUsersForRoleBadRequest() *GetUsersForRoleBadRequest
NewGetUsersForRoleBadRequest creates a GetUsersForRoleBadRequest with default headers values
func (*GetUsersForRoleBadRequest) Code ¶
func (o *GetUsersForRoleBadRequest) Code() int
Code gets the status code for the get users for role bad request response
func (*GetUsersForRoleBadRequest) Error ¶
func (o *GetUsersForRoleBadRequest) Error() string
func (*GetUsersForRoleBadRequest) GetPayload ¶
func (o *GetUsersForRoleBadRequest) GetPayload() *models.ErrorResponse
func (*GetUsersForRoleBadRequest) IsClientError ¶
func (o *GetUsersForRoleBadRequest) IsClientError() bool
IsClientError returns true when this get users for role bad request response has a 4xx status code
func (*GetUsersForRoleBadRequest) IsCode ¶
func (o *GetUsersForRoleBadRequest) IsCode(code int) bool
IsCode returns true when this get users for role bad request response a status code equal to that given
func (*GetUsersForRoleBadRequest) IsRedirect ¶
func (o *GetUsersForRoleBadRequest) IsRedirect() bool
IsRedirect returns true when this get users for role bad request response has a 3xx status code
func (*GetUsersForRoleBadRequest) IsServerError ¶
func (o *GetUsersForRoleBadRequest) IsServerError() bool
IsServerError returns true when this get users for role bad request response has a 5xx status code
func (*GetUsersForRoleBadRequest) IsSuccess ¶
func (o *GetUsersForRoleBadRequest) IsSuccess() bool
IsSuccess returns true when this get users for role bad request response has a 2xx status code
func (*GetUsersForRoleBadRequest) String ¶
func (o *GetUsersForRoleBadRequest) String() string
type GetUsersForRoleForbidden ¶
type GetUsersForRoleForbidden struct {
Payload *models.ErrorResponse
}
GetUsersForRoleForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetUsersForRoleForbidden ¶
func NewGetUsersForRoleForbidden() *GetUsersForRoleForbidden
NewGetUsersForRoleForbidden creates a GetUsersForRoleForbidden with default headers values
func (*GetUsersForRoleForbidden) Code ¶
func (o *GetUsersForRoleForbidden) Code() int
Code gets the status code for the get users for role forbidden response
func (*GetUsersForRoleForbidden) Error ¶
func (o *GetUsersForRoleForbidden) Error() string
func (*GetUsersForRoleForbidden) GetPayload ¶
func (o *GetUsersForRoleForbidden) GetPayload() *models.ErrorResponse
func (*GetUsersForRoleForbidden) IsClientError ¶
func (o *GetUsersForRoleForbidden) IsClientError() bool
IsClientError returns true when this get users for role forbidden response has a 4xx status code
func (*GetUsersForRoleForbidden) IsCode ¶
func (o *GetUsersForRoleForbidden) IsCode(code int) bool
IsCode returns true when this get users for role forbidden response a status code equal to that given
func (*GetUsersForRoleForbidden) IsRedirect ¶
func (o *GetUsersForRoleForbidden) IsRedirect() bool
IsRedirect returns true when this get users for role forbidden response has a 3xx status code
func (*GetUsersForRoleForbidden) IsServerError ¶
func (o *GetUsersForRoleForbidden) IsServerError() bool
IsServerError returns true when this get users for role forbidden response has a 5xx status code
func (*GetUsersForRoleForbidden) IsSuccess ¶
func (o *GetUsersForRoleForbidden) IsSuccess() bool
IsSuccess returns true when this get users for role forbidden response has a 2xx status code
func (*GetUsersForRoleForbidden) String ¶
func (o *GetUsersForRoleForbidden) String() string
type GetUsersForRoleInternalServerError ¶
type GetUsersForRoleInternalServerError struct {
Payload *models.ErrorResponse
}
GetUsersForRoleInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewGetUsersForRoleInternalServerError ¶
func NewGetUsersForRoleInternalServerError() *GetUsersForRoleInternalServerError
NewGetUsersForRoleInternalServerError creates a GetUsersForRoleInternalServerError with default headers values
func (*GetUsersForRoleInternalServerError) Code ¶
func (o *GetUsersForRoleInternalServerError) Code() int
Code gets the status code for the get users for role internal server error response
func (*GetUsersForRoleInternalServerError) Error ¶
func (o *GetUsersForRoleInternalServerError) Error() string
func (*GetUsersForRoleInternalServerError) GetPayload ¶
func (o *GetUsersForRoleInternalServerError) GetPayload() *models.ErrorResponse
func (*GetUsersForRoleInternalServerError) IsClientError ¶
func (o *GetUsersForRoleInternalServerError) IsClientError() bool
IsClientError returns true when this get users for role internal server error response has a 4xx status code
func (*GetUsersForRoleInternalServerError) IsCode ¶
func (o *GetUsersForRoleInternalServerError) IsCode(code int) bool
IsCode returns true when this get users for role internal server error response a status code equal to that given
func (*GetUsersForRoleInternalServerError) IsRedirect ¶
func (o *GetUsersForRoleInternalServerError) IsRedirect() bool
IsRedirect returns true when this get users for role internal server error response has a 3xx status code
func (*GetUsersForRoleInternalServerError) IsServerError ¶
func (o *GetUsersForRoleInternalServerError) IsServerError() bool
IsServerError returns true when this get users for role internal server error response has a 5xx status code
func (*GetUsersForRoleInternalServerError) IsSuccess ¶
func (o *GetUsersForRoleInternalServerError) IsSuccess() bool
IsSuccess returns true when this get users for role internal server error response has a 2xx status code
func (*GetUsersForRoleInternalServerError) String ¶
func (o *GetUsersForRoleInternalServerError) String() string
type GetUsersForRoleNotFound ¶
type GetUsersForRoleNotFound struct { }
GetUsersForRoleNotFound describes a response with status code 404, with default header values.
no role found
func NewGetUsersForRoleNotFound ¶
func NewGetUsersForRoleNotFound() *GetUsersForRoleNotFound
NewGetUsersForRoleNotFound creates a GetUsersForRoleNotFound with default headers values
func (*GetUsersForRoleNotFound) Code ¶
func (o *GetUsersForRoleNotFound) Code() int
Code gets the status code for the get users for role not found response
func (*GetUsersForRoleNotFound) Error ¶
func (o *GetUsersForRoleNotFound) Error() string
func (*GetUsersForRoleNotFound) IsClientError ¶
func (o *GetUsersForRoleNotFound) IsClientError() bool
IsClientError returns true when this get users for role not found response has a 4xx status code
func (*GetUsersForRoleNotFound) IsCode ¶
func (o *GetUsersForRoleNotFound) IsCode(code int) bool
IsCode returns true when this get users for role not found response a status code equal to that given
func (*GetUsersForRoleNotFound) IsRedirect ¶
func (o *GetUsersForRoleNotFound) IsRedirect() bool
IsRedirect returns true when this get users for role not found response has a 3xx status code
func (*GetUsersForRoleNotFound) IsServerError ¶
func (o *GetUsersForRoleNotFound) IsServerError() bool
IsServerError returns true when this get users for role not found response has a 5xx status code
func (*GetUsersForRoleNotFound) IsSuccess ¶
func (o *GetUsersForRoleNotFound) IsSuccess() bool
IsSuccess returns true when this get users for role not found response has a 2xx status code
func (*GetUsersForRoleNotFound) String ¶
func (o *GetUsersForRoleNotFound) String() string
type GetUsersForRoleOK ¶
type GetUsersForRoleOK struct {
Payload []string
}
GetUsersForRoleOK describes a response with status code 200, with default header values.
Users assigned to this role
func NewGetUsersForRoleOK ¶
func NewGetUsersForRoleOK() *GetUsersForRoleOK
NewGetUsersForRoleOK creates a GetUsersForRoleOK with default headers values
func (*GetUsersForRoleOK) Code ¶
func (o *GetUsersForRoleOK) Code() int
Code gets the status code for the get users for role o k response
func (*GetUsersForRoleOK) Error ¶
func (o *GetUsersForRoleOK) Error() string
func (*GetUsersForRoleOK) GetPayload ¶
func (o *GetUsersForRoleOK) GetPayload() []string
func (*GetUsersForRoleOK) IsClientError ¶
func (o *GetUsersForRoleOK) IsClientError() bool
IsClientError returns true when this get users for role o k response has a 4xx status code
func (*GetUsersForRoleOK) IsCode ¶
func (o *GetUsersForRoleOK) IsCode(code int) bool
IsCode returns true when this get users for role o k response a status code equal to that given
func (*GetUsersForRoleOK) IsRedirect ¶
func (o *GetUsersForRoleOK) IsRedirect() bool
IsRedirect returns true when this get users for role o k response has a 3xx status code
func (*GetUsersForRoleOK) IsServerError ¶
func (o *GetUsersForRoleOK) IsServerError() bool
IsServerError returns true when this get users for role o k response has a 5xx status code
func (*GetUsersForRoleOK) IsSuccess ¶
func (o *GetUsersForRoleOK) IsSuccess() bool
IsSuccess returns true when this get users for role o k response has a 2xx status code
func (*GetUsersForRoleOK) String ¶
func (o *GetUsersForRoleOK) String() string
type GetUsersForRoleParams ¶
type GetUsersForRoleParams struct { /* ID. role name */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUsersForRoleParams contains all the parameters to send to the API endpoint
for the get users for role operation. Typically these are written to a http.Request.
func NewGetUsersForRoleParams ¶
func NewGetUsersForRoleParams() *GetUsersForRoleParams
NewGetUsersForRoleParams creates a new GetUsersForRoleParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetUsersForRoleParamsWithContext ¶
func NewGetUsersForRoleParamsWithContext(ctx context.Context) *GetUsersForRoleParams
NewGetUsersForRoleParamsWithContext creates a new GetUsersForRoleParams object with the ability to set a context for a request.
func NewGetUsersForRoleParamsWithHTTPClient ¶
func NewGetUsersForRoleParamsWithHTTPClient(client *http.Client) *GetUsersForRoleParams
NewGetUsersForRoleParamsWithHTTPClient creates a new GetUsersForRoleParams object with the ability to set a custom HTTPClient for a request.
func NewGetUsersForRoleParamsWithTimeout ¶
func NewGetUsersForRoleParamsWithTimeout(timeout time.Duration) *GetUsersForRoleParams
NewGetUsersForRoleParamsWithTimeout creates a new GetUsersForRoleParams object with the ability to set a timeout on a request.
func (*GetUsersForRoleParams) SetContext ¶
func (o *GetUsersForRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the get users for role params
func (*GetUsersForRoleParams) SetDefaults ¶
func (o *GetUsersForRoleParams) SetDefaults()
SetDefaults hydrates default values in the get users for role params (not the query body).
All values with no default are reset to their zero value.
func (*GetUsersForRoleParams) SetHTTPClient ¶
func (o *GetUsersForRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get users for role params
func (*GetUsersForRoleParams) SetID ¶
func (o *GetUsersForRoleParams) SetID(id string)
SetID adds the id to the get users for role params
func (*GetUsersForRoleParams) SetTimeout ¶
func (o *GetUsersForRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get users for role params
func (*GetUsersForRoleParams) WithContext ¶
func (o *GetUsersForRoleParams) WithContext(ctx context.Context) *GetUsersForRoleParams
WithContext adds the context to the get users for role params
func (*GetUsersForRoleParams) WithDefaults ¶
func (o *GetUsersForRoleParams) WithDefaults() *GetUsersForRoleParams
WithDefaults hydrates default values in the get users for role params (not the query body).
All values with no default are reset to their zero value.
func (*GetUsersForRoleParams) WithHTTPClient ¶
func (o *GetUsersForRoleParams) WithHTTPClient(client *http.Client) *GetUsersForRoleParams
WithHTTPClient adds the HTTPClient to the get users for role params
func (*GetUsersForRoleParams) WithID ¶
func (o *GetUsersForRoleParams) WithID(id string) *GetUsersForRoleParams
WithID adds the id to the get users for role params
func (*GetUsersForRoleParams) WithTimeout ¶
func (o *GetUsersForRoleParams) WithTimeout(timeout time.Duration) *GetUsersForRoleParams
WithTimeout adds the timeout to the get users for role params
func (*GetUsersForRoleParams) WriteToRequest ¶
func (o *GetUsersForRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUsersForRoleReader ¶
type GetUsersForRoleReader struct {
// contains filtered or unexported fields
}
GetUsersForRoleReader is a Reader for the GetUsersForRole structure.
func (*GetUsersForRoleReader) ReadResponse ¶
func (o *GetUsersForRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUsersForRoleUnauthorized ¶
type GetUsersForRoleUnauthorized struct { }
GetUsersForRoleUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewGetUsersForRoleUnauthorized ¶
func NewGetUsersForRoleUnauthorized() *GetUsersForRoleUnauthorized
NewGetUsersForRoleUnauthorized creates a GetUsersForRoleUnauthorized with default headers values
func (*GetUsersForRoleUnauthorized) Code ¶
func (o *GetUsersForRoleUnauthorized) Code() int
Code gets the status code for the get users for role unauthorized response
func (*GetUsersForRoleUnauthorized) Error ¶
func (o *GetUsersForRoleUnauthorized) Error() string
func (*GetUsersForRoleUnauthorized) IsClientError ¶
func (o *GetUsersForRoleUnauthorized) IsClientError() bool
IsClientError returns true when this get users for role unauthorized response has a 4xx status code
func (*GetUsersForRoleUnauthorized) IsCode ¶
func (o *GetUsersForRoleUnauthorized) IsCode(code int) bool
IsCode returns true when this get users for role unauthorized response a status code equal to that given
func (*GetUsersForRoleUnauthorized) IsRedirect ¶
func (o *GetUsersForRoleUnauthorized) IsRedirect() bool
IsRedirect returns true when this get users for role unauthorized response has a 3xx status code
func (*GetUsersForRoleUnauthorized) IsServerError ¶
func (o *GetUsersForRoleUnauthorized) IsServerError() bool
IsServerError returns true when this get users for role unauthorized response has a 5xx status code
func (*GetUsersForRoleUnauthorized) IsSuccess ¶
func (o *GetUsersForRoleUnauthorized) IsSuccess() bool
IsSuccess returns true when this get users for role unauthorized response has a 2xx status code
func (*GetUsersForRoleUnauthorized) String ¶
func (o *GetUsersForRoleUnauthorized) String() string
type HasPermissionBadRequest ¶
type HasPermissionBadRequest struct {
Payload *models.ErrorResponse
}
HasPermissionBadRequest describes a response with status code 400, with default header values.
Malformed request.
func NewHasPermissionBadRequest ¶
func NewHasPermissionBadRequest() *HasPermissionBadRequest
NewHasPermissionBadRequest creates a HasPermissionBadRequest with default headers values
func (*HasPermissionBadRequest) Code ¶
func (o *HasPermissionBadRequest) Code() int
Code gets the status code for the has permission bad request response
func (*HasPermissionBadRequest) Error ¶
func (o *HasPermissionBadRequest) Error() string
func (*HasPermissionBadRequest) GetPayload ¶
func (o *HasPermissionBadRequest) GetPayload() *models.ErrorResponse
func (*HasPermissionBadRequest) IsClientError ¶
func (o *HasPermissionBadRequest) IsClientError() bool
IsClientError returns true when this has permission bad request response has a 4xx status code
func (*HasPermissionBadRequest) IsCode ¶
func (o *HasPermissionBadRequest) IsCode(code int) bool
IsCode returns true when this has permission bad request response a status code equal to that given
func (*HasPermissionBadRequest) IsRedirect ¶
func (o *HasPermissionBadRequest) IsRedirect() bool
IsRedirect returns true when this has permission bad request response has a 3xx status code
func (*HasPermissionBadRequest) IsServerError ¶
func (o *HasPermissionBadRequest) IsServerError() bool
IsServerError returns true when this has permission bad request response has a 5xx status code
func (*HasPermissionBadRequest) IsSuccess ¶
func (o *HasPermissionBadRequest) IsSuccess() bool
IsSuccess returns true when this has permission bad request response has a 2xx status code
func (*HasPermissionBadRequest) String ¶
func (o *HasPermissionBadRequest) String() string
type HasPermissionForbidden ¶
type HasPermissionForbidden struct {
Payload *models.ErrorResponse
}
HasPermissionForbidden describes a response with status code 403, with default header values.
Forbidden
func NewHasPermissionForbidden ¶
func NewHasPermissionForbidden() *HasPermissionForbidden
NewHasPermissionForbidden creates a HasPermissionForbidden with default headers values
func (*HasPermissionForbidden) Code ¶
func (o *HasPermissionForbidden) Code() int
Code gets the status code for the has permission forbidden response
func (*HasPermissionForbidden) Error ¶
func (o *HasPermissionForbidden) Error() string
func (*HasPermissionForbidden) GetPayload ¶
func (o *HasPermissionForbidden) GetPayload() *models.ErrorResponse
func (*HasPermissionForbidden) IsClientError ¶
func (o *HasPermissionForbidden) IsClientError() bool
IsClientError returns true when this has permission forbidden response has a 4xx status code
func (*HasPermissionForbidden) IsCode ¶
func (o *HasPermissionForbidden) IsCode(code int) bool
IsCode returns true when this has permission forbidden response a status code equal to that given
func (*HasPermissionForbidden) IsRedirect ¶
func (o *HasPermissionForbidden) IsRedirect() bool
IsRedirect returns true when this has permission forbidden response has a 3xx status code
func (*HasPermissionForbidden) IsServerError ¶
func (o *HasPermissionForbidden) IsServerError() bool
IsServerError returns true when this has permission forbidden response has a 5xx status code
func (*HasPermissionForbidden) IsSuccess ¶
func (o *HasPermissionForbidden) IsSuccess() bool
IsSuccess returns true when this has permission forbidden response has a 2xx status code
func (*HasPermissionForbidden) String ¶
func (o *HasPermissionForbidden) String() string
type HasPermissionInternalServerError ¶
type HasPermissionInternalServerError struct {
Payload *models.ErrorResponse
}
HasPermissionInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewHasPermissionInternalServerError ¶
func NewHasPermissionInternalServerError() *HasPermissionInternalServerError
NewHasPermissionInternalServerError creates a HasPermissionInternalServerError with default headers values
func (*HasPermissionInternalServerError) Code ¶
func (o *HasPermissionInternalServerError) Code() int
Code gets the status code for the has permission internal server error response
func (*HasPermissionInternalServerError) Error ¶
func (o *HasPermissionInternalServerError) Error() string
func (*HasPermissionInternalServerError) GetPayload ¶
func (o *HasPermissionInternalServerError) GetPayload() *models.ErrorResponse
func (*HasPermissionInternalServerError) IsClientError ¶
func (o *HasPermissionInternalServerError) IsClientError() bool
IsClientError returns true when this has permission internal server error response has a 4xx status code
func (*HasPermissionInternalServerError) IsCode ¶
func (o *HasPermissionInternalServerError) IsCode(code int) bool
IsCode returns true when this has permission internal server error response a status code equal to that given
func (*HasPermissionInternalServerError) IsRedirect ¶
func (o *HasPermissionInternalServerError) IsRedirect() bool
IsRedirect returns true when this has permission internal server error response has a 3xx status code
func (*HasPermissionInternalServerError) IsServerError ¶
func (o *HasPermissionInternalServerError) IsServerError() bool
IsServerError returns true when this has permission internal server error response has a 5xx status code
func (*HasPermissionInternalServerError) IsSuccess ¶
func (o *HasPermissionInternalServerError) IsSuccess() bool
IsSuccess returns true when this has permission internal server error response has a 2xx status code
func (*HasPermissionInternalServerError) String ¶
func (o *HasPermissionInternalServerError) String() string
type HasPermissionOK ¶
type HasPermissionOK struct {
Payload bool
}
HasPermissionOK describes a response with status code 200, with default header values.
Permission check was successful
func NewHasPermissionOK ¶
func NewHasPermissionOK() *HasPermissionOK
NewHasPermissionOK creates a HasPermissionOK with default headers values
func (*HasPermissionOK) Code ¶
func (o *HasPermissionOK) Code() int
Code gets the status code for the has permission o k response
func (*HasPermissionOK) Error ¶
func (o *HasPermissionOK) Error() string
func (*HasPermissionOK) GetPayload ¶
func (o *HasPermissionOK) GetPayload() bool
func (*HasPermissionOK) IsClientError ¶
func (o *HasPermissionOK) IsClientError() bool
IsClientError returns true when this has permission o k response has a 4xx status code
func (*HasPermissionOK) IsCode ¶
func (o *HasPermissionOK) IsCode(code int) bool
IsCode returns true when this has permission o k response a status code equal to that given
func (*HasPermissionOK) IsRedirect ¶
func (o *HasPermissionOK) IsRedirect() bool
IsRedirect returns true when this has permission o k response has a 3xx status code
func (*HasPermissionOK) IsServerError ¶
func (o *HasPermissionOK) IsServerError() bool
IsServerError returns true when this has permission o k response has a 5xx status code
func (*HasPermissionOK) IsSuccess ¶
func (o *HasPermissionOK) IsSuccess() bool
IsSuccess returns true when this has permission o k response has a 2xx status code
func (*HasPermissionOK) String ¶
func (o *HasPermissionOK) String() string
type HasPermissionParams ¶
type HasPermissionParams struct { // Body. Body *models.Permission /* ID. role name */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
HasPermissionParams contains all the parameters to send to the API endpoint
for the has permission operation. Typically these are written to a http.Request.
func NewHasPermissionParams ¶
func NewHasPermissionParams() *HasPermissionParams
NewHasPermissionParams creates a new HasPermissionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewHasPermissionParamsWithContext ¶
func NewHasPermissionParamsWithContext(ctx context.Context) *HasPermissionParams
NewHasPermissionParamsWithContext creates a new HasPermissionParams object with the ability to set a context for a request.
func NewHasPermissionParamsWithHTTPClient ¶
func NewHasPermissionParamsWithHTTPClient(client *http.Client) *HasPermissionParams
NewHasPermissionParamsWithHTTPClient creates a new HasPermissionParams object with the ability to set a custom HTTPClient for a request.
func NewHasPermissionParamsWithTimeout ¶
func NewHasPermissionParamsWithTimeout(timeout time.Duration) *HasPermissionParams
NewHasPermissionParamsWithTimeout creates a new HasPermissionParams object with the ability to set a timeout on a request.
func (*HasPermissionParams) SetBody ¶
func (o *HasPermissionParams) SetBody(body *models.Permission)
SetBody adds the body to the has permission params
func (*HasPermissionParams) SetContext ¶
func (o *HasPermissionParams) SetContext(ctx context.Context)
SetContext adds the context to the has permission params
func (*HasPermissionParams) SetDefaults ¶
func (o *HasPermissionParams) SetDefaults()
SetDefaults hydrates default values in the has permission params (not the query body).
All values with no default are reset to their zero value.
func (*HasPermissionParams) SetHTTPClient ¶
func (o *HasPermissionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the has permission params
func (*HasPermissionParams) SetID ¶
func (o *HasPermissionParams) SetID(id string)
SetID adds the id to the has permission params
func (*HasPermissionParams) SetTimeout ¶
func (o *HasPermissionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the has permission params
func (*HasPermissionParams) WithBody ¶
func (o *HasPermissionParams) WithBody(body *models.Permission) *HasPermissionParams
WithBody adds the body to the has permission params
func (*HasPermissionParams) WithContext ¶
func (o *HasPermissionParams) WithContext(ctx context.Context) *HasPermissionParams
WithContext adds the context to the has permission params
func (*HasPermissionParams) WithDefaults ¶
func (o *HasPermissionParams) WithDefaults() *HasPermissionParams
WithDefaults hydrates default values in the has permission params (not the query body).
All values with no default are reset to their zero value.
func (*HasPermissionParams) WithHTTPClient ¶
func (o *HasPermissionParams) WithHTTPClient(client *http.Client) *HasPermissionParams
WithHTTPClient adds the HTTPClient to the has permission params
func (*HasPermissionParams) WithID ¶
func (o *HasPermissionParams) WithID(id string) *HasPermissionParams
WithID adds the id to the has permission params
func (*HasPermissionParams) WithTimeout ¶
func (o *HasPermissionParams) WithTimeout(timeout time.Duration) *HasPermissionParams
WithTimeout adds the timeout to the has permission params
func (*HasPermissionParams) WriteToRequest ¶
func (o *HasPermissionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type HasPermissionReader ¶
type HasPermissionReader struct {
// contains filtered or unexported fields
}
HasPermissionReader is a Reader for the HasPermission structure.
func (*HasPermissionReader) ReadResponse ¶
func (o *HasPermissionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type HasPermissionUnauthorized ¶
type HasPermissionUnauthorized struct { }
HasPermissionUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewHasPermissionUnauthorized ¶
func NewHasPermissionUnauthorized() *HasPermissionUnauthorized
NewHasPermissionUnauthorized creates a HasPermissionUnauthorized with default headers values
func (*HasPermissionUnauthorized) Code ¶
func (o *HasPermissionUnauthorized) Code() int
Code gets the status code for the has permission unauthorized response
func (*HasPermissionUnauthorized) Error ¶
func (o *HasPermissionUnauthorized) Error() string
func (*HasPermissionUnauthorized) IsClientError ¶
func (o *HasPermissionUnauthorized) IsClientError() bool
IsClientError returns true when this has permission unauthorized response has a 4xx status code
func (*HasPermissionUnauthorized) IsCode ¶
func (o *HasPermissionUnauthorized) IsCode(code int) bool
IsCode returns true when this has permission unauthorized response a status code equal to that given
func (*HasPermissionUnauthorized) IsRedirect ¶
func (o *HasPermissionUnauthorized) IsRedirect() bool
IsRedirect returns true when this has permission unauthorized response has a 3xx status code
func (*HasPermissionUnauthorized) IsServerError ¶
func (o *HasPermissionUnauthorized) IsServerError() bool
IsServerError returns true when this has permission unauthorized response has a 5xx status code
func (*HasPermissionUnauthorized) IsSuccess ¶
func (o *HasPermissionUnauthorized) IsSuccess() bool
IsSuccess returns true when this has permission unauthorized response has a 2xx status code
func (*HasPermissionUnauthorized) String ¶
func (o *HasPermissionUnauthorized) String() string
type HasPermissionUnprocessableEntity ¶
type HasPermissionUnprocessableEntity struct {
Payload *models.ErrorResponse
}
HasPermissionUnprocessableEntity describes a response with status code 422, with default header values.
Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?
func NewHasPermissionUnprocessableEntity ¶
func NewHasPermissionUnprocessableEntity() *HasPermissionUnprocessableEntity
NewHasPermissionUnprocessableEntity creates a HasPermissionUnprocessableEntity with default headers values
func (*HasPermissionUnprocessableEntity) Code ¶
func (o *HasPermissionUnprocessableEntity) Code() int
Code gets the status code for the has permission unprocessable entity response
func (*HasPermissionUnprocessableEntity) Error ¶
func (o *HasPermissionUnprocessableEntity) Error() string
func (*HasPermissionUnprocessableEntity) GetPayload ¶
func (o *HasPermissionUnprocessableEntity) GetPayload() *models.ErrorResponse
func (*HasPermissionUnprocessableEntity) IsClientError ¶
func (o *HasPermissionUnprocessableEntity) IsClientError() bool
IsClientError returns true when this has permission unprocessable entity response has a 4xx status code
func (*HasPermissionUnprocessableEntity) IsCode ¶
func (o *HasPermissionUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this has permission unprocessable entity response a status code equal to that given
func (*HasPermissionUnprocessableEntity) IsRedirect ¶
func (o *HasPermissionUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this has permission unprocessable entity response has a 3xx status code
func (*HasPermissionUnprocessableEntity) IsServerError ¶
func (o *HasPermissionUnprocessableEntity) IsServerError() bool
IsServerError returns true when this has permission unprocessable entity response has a 5xx status code
func (*HasPermissionUnprocessableEntity) IsSuccess ¶
func (o *HasPermissionUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this has permission unprocessable entity response has a 2xx status code
func (*HasPermissionUnprocessableEntity) String ¶
func (o *HasPermissionUnprocessableEntity) String() string
type RemovePermissionsBadRequest ¶
type RemovePermissionsBadRequest struct {
Payload *models.ErrorResponse
}
RemovePermissionsBadRequest describes a response with status code 400, with default header values.
Malformed request.
func NewRemovePermissionsBadRequest ¶
func NewRemovePermissionsBadRequest() *RemovePermissionsBadRequest
NewRemovePermissionsBadRequest creates a RemovePermissionsBadRequest with default headers values
func (*RemovePermissionsBadRequest) Code ¶
func (o *RemovePermissionsBadRequest) Code() int
Code gets the status code for the remove permissions bad request response
func (*RemovePermissionsBadRequest) Error ¶
func (o *RemovePermissionsBadRequest) Error() string
func (*RemovePermissionsBadRequest) GetPayload ¶
func (o *RemovePermissionsBadRequest) GetPayload() *models.ErrorResponse
func (*RemovePermissionsBadRequest) IsClientError ¶
func (o *RemovePermissionsBadRequest) IsClientError() bool
IsClientError returns true when this remove permissions bad request response has a 4xx status code
func (*RemovePermissionsBadRequest) IsCode ¶
func (o *RemovePermissionsBadRequest) IsCode(code int) bool
IsCode returns true when this remove permissions bad request response a status code equal to that given
func (*RemovePermissionsBadRequest) IsRedirect ¶
func (o *RemovePermissionsBadRequest) IsRedirect() bool
IsRedirect returns true when this remove permissions bad request response has a 3xx status code
func (*RemovePermissionsBadRequest) IsServerError ¶
func (o *RemovePermissionsBadRequest) IsServerError() bool
IsServerError returns true when this remove permissions bad request response has a 5xx status code
func (*RemovePermissionsBadRequest) IsSuccess ¶
func (o *RemovePermissionsBadRequest) IsSuccess() bool
IsSuccess returns true when this remove permissions bad request response has a 2xx status code
func (*RemovePermissionsBadRequest) String ¶
func (o *RemovePermissionsBadRequest) String() string
type RemovePermissionsBody ¶
type RemovePermissionsBody struct { // permissions to remove from the role // Required: true Permissions []*models.Permission `json:"permissions"` }
RemovePermissionsBody remove permissions body swagger:model RemovePermissionsBody
func (*RemovePermissionsBody) ContextValidate ¶
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
type RemovePermissionsForbidden ¶
type RemovePermissionsForbidden struct {
Payload *models.ErrorResponse
}
RemovePermissionsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewRemovePermissionsForbidden ¶
func NewRemovePermissionsForbidden() *RemovePermissionsForbidden
NewRemovePermissionsForbidden creates a RemovePermissionsForbidden with default headers values
func (*RemovePermissionsForbidden) Code ¶
func (o *RemovePermissionsForbidden) Code() int
Code gets the status code for the remove permissions forbidden response
func (*RemovePermissionsForbidden) Error ¶
func (o *RemovePermissionsForbidden) Error() string
func (*RemovePermissionsForbidden) GetPayload ¶
func (o *RemovePermissionsForbidden) GetPayload() *models.ErrorResponse
func (*RemovePermissionsForbidden) IsClientError ¶
func (o *RemovePermissionsForbidden) IsClientError() bool
IsClientError returns true when this remove permissions forbidden response has a 4xx status code
func (*RemovePermissionsForbidden) IsCode ¶
func (o *RemovePermissionsForbidden) IsCode(code int) bool
IsCode returns true when this remove permissions forbidden response a status code equal to that given
func (*RemovePermissionsForbidden) IsRedirect ¶
func (o *RemovePermissionsForbidden) IsRedirect() bool
IsRedirect returns true when this remove permissions forbidden response has a 3xx status code
func (*RemovePermissionsForbidden) IsServerError ¶
func (o *RemovePermissionsForbidden) IsServerError() bool
IsServerError returns true when this remove permissions forbidden response has a 5xx status code
func (*RemovePermissionsForbidden) IsSuccess ¶
func (o *RemovePermissionsForbidden) IsSuccess() bool
IsSuccess returns true when this remove permissions forbidden response has a 2xx status code
func (*RemovePermissionsForbidden) String ¶
func (o *RemovePermissionsForbidden) String() string
type RemovePermissionsInternalServerError ¶
type RemovePermissionsInternalServerError struct {
Payload *models.ErrorResponse
}
RemovePermissionsInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewRemovePermissionsInternalServerError ¶
func NewRemovePermissionsInternalServerError() *RemovePermissionsInternalServerError
NewRemovePermissionsInternalServerError creates a RemovePermissionsInternalServerError with default headers values
func (*RemovePermissionsInternalServerError) Code ¶
func (o *RemovePermissionsInternalServerError) Code() int
Code gets the status code for the remove permissions internal server error response
func (*RemovePermissionsInternalServerError) Error ¶
func (o *RemovePermissionsInternalServerError) Error() string
func (*RemovePermissionsInternalServerError) GetPayload ¶
func (o *RemovePermissionsInternalServerError) GetPayload() *models.ErrorResponse
func (*RemovePermissionsInternalServerError) IsClientError ¶
func (o *RemovePermissionsInternalServerError) IsClientError() bool
IsClientError returns true when this remove permissions internal server error response has a 4xx status code
func (*RemovePermissionsInternalServerError) IsCode ¶
func (o *RemovePermissionsInternalServerError) IsCode(code int) bool
IsCode returns true when this remove permissions internal server error response a status code equal to that given
func (*RemovePermissionsInternalServerError) IsRedirect ¶
func (o *RemovePermissionsInternalServerError) IsRedirect() bool
IsRedirect returns true when this remove permissions internal server error response has a 3xx status code
func (*RemovePermissionsInternalServerError) IsServerError ¶
func (o *RemovePermissionsInternalServerError) IsServerError() bool
IsServerError returns true when this remove permissions internal server error response has a 5xx status code
func (*RemovePermissionsInternalServerError) IsSuccess ¶
func (o *RemovePermissionsInternalServerError) IsSuccess() bool
IsSuccess returns true when this remove permissions internal server error response has a 2xx status code
func (*RemovePermissionsInternalServerError) String ¶
func (o *RemovePermissionsInternalServerError) String() string
type RemovePermissionsNotFound ¶
type RemovePermissionsNotFound struct { }
RemovePermissionsNotFound describes a response with status code 404, with default header values.
no role found
func NewRemovePermissionsNotFound ¶
func NewRemovePermissionsNotFound() *RemovePermissionsNotFound
NewRemovePermissionsNotFound creates a RemovePermissionsNotFound with default headers values
func (*RemovePermissionsNotFound) Code ¶
func (o *RemovePermissionsNotFound) Code() int
Code gets the status code for the remove permissions not found response
func (*RemovePermissionsNotFound) Error ¶
func (o *RemovePermissionsNotFound) Error() string
func (*RemovePermissionsNotFound) IsClientError ¶
func (o *RemovePermissionsNotFound) IsClientError() bool
IsClientError returns true when this remove permissions not found response has a 4xx status code
func (*RemovePermissionsNotFound) IsCode ¶
func (o *RemovePermissionsNotFound) IsCode(code int) bool
IsCode returns true when this remove permissions not found response a status code equal to that given
func (*RemovePermissionsNotFound) IsRedirect ¶
func (o *RemovePermissionsNotFound) IsRedirect() bool
IsRedirect returns true when this remove permissions not found response has a 3xx status code
func (*RemovePermissionsNotFound) IsServerError ¶
func (o *RemovePermissionsNotFound) IsServerError() bool
IsServerError returns true when this remove permissions not found response has a 5xx status code
func (*RemovePermissionsNotFound) IsSuccess ¶
func (o *RemovePermissionsNotFound) IsSuccess() bool
IsSuccess returns true when this remove permissions not found response has a 2xx status code
func (*RemovePermissionsNotFound) String ¶
func (o *RemovePermissionsNotFound) String() string
type RemovePermissionsOK ¶
type RemovePermissionsOK struct { }
RemovePermissionsOK describes a response with status code 200, with default header values.
Permissions removed successfully
func NewRemovePermissionsOK ¶
func NewRemovePermissionsOK() *RemovePermissionsOK
NewRemovePermissionsOK creates a RemovePermissionsOK with default headers values
func (*RemovePermissionsOK) Code ¶
func (o *RemovePermissionsOK) Code() int
Code gets the status code for the remove permissions o k response
func (*RemovePermissionsOK) Error ¶
func (o *RemovePermissionsOK) Error() string
func (*RemovePermissionsOK) IsClientError ¶
func (o *RemovePermissionsOK) IsClientError() bool
IsClientError returns true when this remove permissions o k response has a 4xx status code
func (*RemovePermissionsOK) IsCode ¶
func (o *RemovePermissionsOK) IsCode(code int) bool
IsCode returns true when this remove permissions o k response a status code equal to that given
func (*RemovePermissionsOK) IsRedirect ¶
func (o *RemovePermissionsOK) IsRedirect() bool
IsRedirect returns true when this remove permissions o k response has a 3xx status code
func (*RemovePermissionsOK) IsServerError ¶
func (o *RemovePermissionsOK) IsServerError() bool
IsServerError returns true when this remove permissions o k response has a 5xx status code
func (*RemovePermissionsOK) IsSuccess ¶
func (o *RemovePermissionsOK) IsSuccess() bool
IsSuccess returns true when this remove permissions o k response has a 2xx status code
func (*RemovePermissionsOK) String ¶
func (o *RemovePermissionsOK) String() string
type RemovePermissionsParams ¶
type RemovePermissionsParams struct { // Body. Body RemovePermissionsBody /* ID. role name */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemovePermissionsParams contains all the parameters to send to the API endpoint
for the remove permissions operation. Typically these are written to a http.Request.
func NewRemovePermissionsParams ¶
func NewRemovePermissionsParams() *RemovePermissionsParams
NewRemovePermissionsParams creates a new RemovePermissionsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewRemovePermissionsParamsWithContext ¶
func NewRemovePermissionsParamsWithContext(ctx context.Context) *RemovePermissionsParams
NewRemovePermissionsParamsWithContext creates a new RemovePermissionsParams object with the ability to set a context for a request.
func NewRemovePermissionsParamsWithHTTPClient ¶
func NewRemovePermissionsParamsWithHTTPClient(client *http.Client) *RemovePermissionsParams
NewRemovePermissionsParamsWithHTTPClient creates a new RemovePermissionsParams object with the ability to set a custom HTTPClient for a request.
func NewRemovePermissionsParamsWithTimeout ¶
func NewRemovePermissionsParamsWithTimeout(timeout time.Duration) *RemovePermissionsParams
NewRemovePermissionsParamsWithTimeout creates a new RemovePermissionsParams object with the ability to set a timeout on a request.
func (*RemovePermissionsParams) SetBody ¶
func (o *RemovePermissionsParams) SetBody(body RemovePermissionsBody)
SetBody adds the body to the remove permissions params
func (*RemovePermissionsParams) SetContext ¶
func (o *RemovePermissionsParams) SetContext(ctx context.Context)
SetContext adds the context to the remove permissions params
func (*RemovePermissionsParams) SetDefaults ¶
func (o *RemovePermissionsParams) SetDefaults()
SetDefaults hydrates default values in the remove permissions params (not the query body).
All values with no default are reset to their zero value.
func (*RemovePermissionsParams) SetHTTPClient ¶
func (o *RemovePermissionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove permissions params
func (*RemovePermissionsParams) SetID ¶
func (o *RemovePermissionsParams) SetID(id string)
SetID adds the id to the remove permissions params
func (*RemovePermissionsParams) SetTimeout ¶
func (o *RemovePermissionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove permissions params
func (*RemovePermissionsParams) WithBody ¶
func (o *RemovePermissionsParams) WithBody(body RemovePermissionsBody) *RemovePermissionsParams
WithBody adds the body to the remove permissions params
func (*RemovePermissionsParams) WithContext ¶
func (o *RemovePermissionsParams) WithContext(ctx context.Context) *RemovePermissionsParams
WithContext adds the context to the remove permissions params
func (*RemovePermissionsParams) WithDefaults ¶
func (o *RemovePermissionsParams) WithDefaults() *RemovePermissionsParams
WithDefaults hydrates default values in the remove permissions params (not the query body).
All values with no default are reset to their zero value.
func (*RemovePermissionsParams) WithHTTPClient ¶
func (o *RemovePermissionsParams) WithHTTPClient(client *http.Client) *RemovePermissionsParams
WithHTTPClient adds the HTTPClient to the remove permissions params
func (*RemovePermissionsParams) WithID ¶
func (o *RemovePermissionsParams) WithID(id string) *RemovePermissionsParams
WithID adds the id to the remove permissions params
func (*RemovePermissionsParams) WithTimeout ¶
func (o *RemovePermissionsParams) WithTimeout(timeout time.Duration) *RemovePermissionsParams
WithTimeout adds the timeout to the remove permissions params
func (*RemovePermissionsParams) WriteToRequest ¶
func (o *RemovePermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemovePermissionsReader ¶
type RemovePermissionsReader struct {
// contains filtered or unexported fields
}
RemovePermissionsReader is a Reader for the RemovePermissions structure.
func (*RemovePermissionsReader) ReadResponse ¶
func (o *RemovePermissionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemovePermissionsUnauthorized ¶
type RemovePermissionsUnauthorized struct { }
RemovePermissionsUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewRemovePermissionsUnauthorized ¶
func NewRemovePermissionsUnauthorized() *RemovePermissionsUnauthorized
NewRemovePermissionsUnauthorized creates a RemovePermissionsUnauthorized with default headers values
func (*RemovePermissionsUnauthorized) Code ¶
func (o *RemovePermissionsUnauthorized) Code() int
Code gets the status code for the remove permissions unauthorized response
func (*RemovePermissionsUnauthorized) Error ¶
func (o *RemovePermissionsUnauthorized) Error() string
func (*RemovePermissionsUnauthorized) IsClientError ¶
func (o *RemovePermissionsUnauthorized) IsClientError() bool
IsClientError returns true when this remove permissions unauthorized response has a 4xx status code
func (*RemovePermissionsUnauthorized) IsCode ¶
func (o *RemovePermissionsUnauthorized) IsCode(code int) bool
IsCode returns true when this remove permissions unauthorized response a status code equal to that given
func (*RemovePermissionsUnauthorized) IsRedirect ¶
func (o *RemovePermissionsUnauthorized) IsRedirect() bool
IsRedirect returns true when this remove permissions unauthorized response has a 3xx status code
func (*RemovePermissionsUnauthorized) IsServerError ¶
func (o *RemovePermissionsUnauthorized) IsServerError() bool
IsServerError returns true when this remove permissions unauthorized response has a 5xx status code
func (*RemovePermissionsUnauthorized) IsSuccess ¶
func (o *RemovePermissionsUnauthorized) IsSuccess() bool
IsSuccess returns true when this remove permissions unauthorized response has a 2xx status code
func (*RemovePermissionsUnauthorized) String ¶
func (o *RemovePermissionsUnauthorized) String() string
type RemovePermissionsUnprocessableEntity ¶
type RemovePermissionsUnprocessableEntity struct {
Payload *models.ErrorResponse
}
RemovePermissionsUnprocessableEntity describes a response with status code 422, with default header values.
Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?
func NewRemovePermissionsUnprocessableEntity ¶
func NewRemovePermissionsUnprocessableEntity() *RemovePermissionsUnprocessableEntity
NewRemovePermissionsUnprocessableEntity creates a RemovePermissionsUnprocessableEntity with default headers values
func (*RemovePermissionsUnprocessableEntity) Code ¶
func (o *RemovePermissionsUnprocessableEntity) Code() int
Code gets the status code for the remove permissions unprocessable entity response
func (*RemovePermissionsUnprocessableEntity) Error ¶
func (o *RemovePermissionsUnprocessableEntity) Error() string
func (*RemovePermissionsUnprocessableEntity) GetPayload ¶
func (o *RemovePermissionsUnprocessableEntity) GetPayload() *models.ErrorResponse
func (*RemovePermissionsUnprocessableEntity) IsClientError ¶
func (o *RemovePermissionsUnprocessableEntity) IsClientError() bool
IsClientError returns true when this remove permissions unprocessable entity response has a 4xx status code
func (*RemovePermissionsUnprocessableEntity) IsCode ¶
func (o *RemovePermissionsUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this remove permissions unprocessable entity response a status code equal to that given
func (*RemovePermissionsUnprocessableEntity) IsRedirect ¶
func (o *RemovePermissionsUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this remove permissions unprocessable entity response has a 3xx status code
func (*RemovePermissionsUnprocessableEntity) IsServerError ¶
func (o *RemovePermissionsUnprocessableEntity) IsServerError() bool
IsServerError returns true when this remove permissions unprocessable entity response has a 5xx status code
func (*RemovePermissionsUnprocessableEntity) IsSuccess ¶
func (o *RemovePermissionsUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this remove permissions unprocessable entity response has a 2xx status code
func (*RemovePermissionsUnprocessableEntity) String ¶
func (o *RemovePermissionsUnprocessableEntity) String() string
type RevokeRoleBadRequest ¶
type RevokeRoleBadRequest struct {
Payload *models.ErrorResponse
}
RevokeRoleBadRequest describes a response with status code 400, with default header values.
Bad request
func NewRevokeRoleBadRequest ¶
func NewRevokeRoleBadRequest() *RevokeRoleBadRequest
NewRevokeRoleBadRequest creates a RevokeRoleBadRequest with default headers values
func (*RevokeRoleBadRequest) Code ¶
func (o *RevokeRoleBadRequest) Code() int
Code gets the status code for the revoke role bad request response
func (*RevokeRoleBadRequest) Error ¶
func (o *RevokeRoleBadRequest) Error() string
func (*RevokeRoleBadRequest) GetPayload ¶
func (o *RevokeRoleBadRequest) GetPayload() *models.ErrorResponse
func (*RevokeRoleBadRequest) IsClientError ¶
func (o *RevokeRoleBadRequest) IsClientError() bool
IsClientError returns true when this revoke role bad request response has a 4xx status code
func (*RevokeRoleBadRequest) IsCode ¶
func (o *RevokeRoleBadRequest) IsCode(code int) bool
IsCode returns true when this revoke role bad request response a status code equal to that given
func (*RevokeRoleBadRequest) IsRedirect ¶
func (o *RevokeRoleBadRequest) IsRedirect() bool
IsRedirect returns true when this revoke role bad request response has a 3xx status code
func (*RevokeRoleBadRequest) IsServerError ¶
func (o *RevokeRoleBadRequest) IsServerError() bool
IsServerError returns true when this revoke role bad request response has a 5xx status code
func (*RevokeRoleBadRequest) IsSuccess ¶
func (o *RevokeRoleBadRequest) IsSuccess() bool
IsSuccess returns true when this revoke role bad request response has a 2xx status code
func (*RevokeRoleBadRequest) String ¶
func (o *RevokeRoleBadRequest) String() string
type RevokeRoleBody ¶
type RevokeRoleBody struct { // the roles that revoked from the key or user Roles []string `json:"roles"` }
RevokeRoleBody revoke role body swagger:model RevokeRoleBody
func (*RevokeRoleBody) ContextValidate ¶
ContextValidate validates this revoke role body based on context it is used
func (*RevokeRoleBody) MarshalBinary ¶
func (o *RevokeRoleBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RevokeRoleBody) UnmarshalBinary ¶
func (o *RevokeRoleBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RevokeRoleForbidden ¶
type RevokeRoleForbidden struct {
Payload *models.ErrorResponse
}
RevokeRoleForbidden describes a response with status code 403, with default header values.
Forbidden
func NewRevokeRoleForbidden ¶
func NewRevokeRoleForbidden() *RevokeRoleForbidden
NewRevokeRoleForbidden creates a RevokeRoleForbidden with default headers values
func (*RevokeRoleForbidden) Code ¶
func (o *RevokeRoleForbidden) Code() int
Code gets the status code for the revoke role forbidden response
func (*RevokeRoleForbidden) Error ¶
func (o *RevokeRoleForbidden) Error() string
func (*RevokeRoleForbidden) GetPayload ¶
func (o *RevokeRoleForbidden) GetPayload() *models.ErrorResponse
func (*RevokeRoleForbidden) IsClientError ¶
func (o *RevokeRoleForbidden) IsClientError() bool
IsClientError returns true when this revoke role forbidden response has a 4xx status code
func (*RevokeRoleForbidden) IsCode ¶
func (o *RevokeRoleForbidden) IsCode(code int) bool
IsCode returns true when this revoke role forbidden response a status code equal to that given
func (*RevokeRoleForbidden) IsRedirect ¶
func (o *RevokeRoleForbidden) IsRedirect() bool
IsRedirect returns true when this revoke role forbidden response has a 3xx status code
func (*RevokeRoleForbidden) IsServerError ¶
func (o *RevokeRoleForbidden) IsServerError() bool
IsServerError returns true when this revoke role forbidden response has a 5xx status code
func (*RevokeRoleForbidden) IsSuccess ¶
func (o *RevokeRoleForbidden) IsSuccess() bool
IsSuccess returns true when this revoke role forbidden response has a 2xx status code
func (*RevokeRoleForbidden) String ¶
func (o *RevokeRoleForbidden) String() string
type RevokeRoleInternalServerError ¶
type RevokeRoleInternalServerError struct {
Payload *models.ErrorResponse
}
RevokeRoleInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewRevokeRoleInternalServerError ¶
func NewRevokeRoleInternalServerError() *RevokeRoleInternalServerError
NewRevokeRoleInternalServerError creates a RevokeRoleInternalServerError with default headers values
func (*RevokeRoleInternalServerError) Code ¶
func (o *RevokeRoleInternalServerError) Code() int
Code gets the status code for the revoke role internal server error response
func (*RevokeRoleInternalServerError) Error ¶
func (o *RevokeRoleInternalServerError) Error() string
func (*RevokeRoleInternalServerError) GetPayload ¶
func (o *RevokeRoleInternalServerError) GetPayload() *models.ErrorResponse
func (*RevokeRoleInternalServerError) IsClientError ¶
func (o *RevokeRoleInternalServerError) IsClientError() bool
IsClientError returns true when this revoke role internal server error response has a 4xx status code
func (*RevokeRoleInternalServerError) IsCode ¶
func (o *RevokeRoleInternalServerError) IsCode(code int) bool
IsCode returns true when this revoke role internal server error response a status code equal to that given
func (*RevokeRoleInternalServerError) IsRedirect ¶
func (o *RevokeRoleInternalServerError) IsRedirect() bool
IsRedirect returns true when this revoke role internal server error response has a 3xx status code
func (*RevokeRoleInternalServerError) IsServerError ¶
func (o *RevokeRoleInternalServerError) IsServerError() bool
IsServerError returns true when this revoke role internal server error response has a 5xx status code
func (*RevokeRoleInternalServerError) IsSuccess ¶
func (o *RevokeRoleInternalServerError) IsSuccess() bool
IsSuccess returns true when this revoke role internal server error response has a 2xx status code
func (*RevokeRoleInternalServerError) String ¶
func (o *RevokeRoleInternalServerError) String() string
type RevokeRoleNotFound ¶
type RevokeRoleNotFound struct { }
RevokeRoleNotFound describes a response with status code 404, with default header values.
role or user is not found.
func NewRevokeRoleNotFound ¶
func NewRevokeRoleNotFound() *RevokeRoleNotFound
NewRevokeRoleNotFound creates a RevokeRoleNotFound with default headers values
func (*RevokeRoleNotFound) Code ¶
func (o *RevokeRoleNotFound) Code() int
Code gets the status code for the revoke role not found response
func (*RevokeRoleNotFound) Error ¶
func (o *RevokeRoleNotFound) Error() string
func (*RevokeRoleNotFound) IsClientError ¶
func (o *RevokeRoleNotFound) IsClientError() bool
IsClientError returns true when this revoke role not found response has a 4xx status code
func (*RevokeRoleNotFound) IsCode ¶
func (o *RevokeRoleNotFound) IsCode(code int) bool
IsCode returns true when this revoke role not found response a status code equal to that given
func (*RevokeRoleNotFound) IsRedirect ¶
func (o *RevokeRoleNotFound) IsRedirect() bool
IsRedirect returns true when this revoke role not found response has a 3xx status code
func (*RevokeRoleNotFound) IsServerError ¶
func (o *RevokeRoleNotFound) IsServerError() bool
IsServerError returns true when this revoke role not found response has a 5xx status code
func (*RevokeRoleNotFound) IsSuccess ¶
func (o *RevokeRoleNotFound) IsSuccess() bool
IsSuccess returns true when this revoke role not found response has a 2xx status code
func (*RevokeRoleNotFound) String ¶
func (o *RevokeRoleNotFound) String() string
type RevokeRoleOK ¶
type RevokeRoleOK struct { }
RevokeRoleOK describes a response with status code 200, with default header values.
Role revoked successfully
func NewRevokeRoleOK ¶
func NewRevokeRoleOK() *RevokeRoleOK
NewRevokeRoleOK creates a RevokeRoleOK with default headers values
func (*RevokeRoleOK) Code ¶
func (o *RevokeRoleOK) Code() int
Code gets the status code for the revoke role o k response
func (*RevokeRoleOK) Error ¶
func (o *RevokeRoleOK) Error() string
func (*RevokeRoleOK) IsClientError ¶
func (o *RevokeRoleOK) IsClientError() bool
IsClientError returns true when this revoke role o k response has a 4xx status code
func (*RevokeRoleOK) IsCode ¶
func (o *RevokeRoleOK) IsCode(code int) bool
IsCode returns true when this revoke role o k response a status code equal to that given
func (*RevokeRoleOK) IsRedirect ¶
func (o *RevokeRoleOK) IsRedirect() bool
IsRedirect returns true when this revoke role o k response has a 3xx status code
func (*RevokeRoleOK) IsServerError ¶
func (o *RevokeRoleOK) IsServerError() bool
IsServerError returns true when this revoke role o k response has a 5xx status code
func (*RevokeRoleOK) IsSuccess ¶
func (o *RevokeRoleOK) IsSuccess() bool
IsSuccess returns true when this revoke role o k response has a 2xx status code
func (*RevokeRoleOK) String ¶
func (o *RevokeRoleOK) String() string
type RevokeRoleParams ¶
type RevokeRoleParams struct { // Body. Body RevokeRoleBody /* ID. user name */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RevokeRoleParams contains all the parameters to send to the API endpoint
for the revoke role operation. Typically these are written to a http.Request.
func NewRevokeRoleParams ¶
func NewRevokeRoleParams() *RevokeRoleParams
NewRevokeRoleParams creates a new RevokeRoleParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewRevokeRoleParamsWithContext ¶
func NewRevokeRoleParamsWithContext(ctx context.Context) *RevokeRoleParams
NewRevokeRoleParamsWithContext creates a new RevokeRoleParams object with the ability to set a context for a request.
func NewRevokeRoleParamsWithHTTPClient ¶
func NewRevokeRoleParamsWithHTTPClient(client *http.Client) *RevokeRoleParams
NewRevokeRoleParamsWithHTTPClient creates a new RevokeRoleParams object with the ability to set a custom HTTPClient for a request.
func NewRevokeRoleParamsWithTimeout ¶
func NewRevokeRoleParamsWithTimeout(timeout time.Duration) *RevokeRoleParams
NewRevokeRoleParamsWithTimeout creates a new RevokeRoleParams object with the ability to set a timeout on a request.
func (*RevokeRoleParams) SetBody ¶
func (o *RevokeRoleParams) SetBody(body RevokeRoleBody)
SetBody adds the body to the revoke role params
func (*RevokeRoleParams) SetContext ¶
func (o *RevokeRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the revoke role params
func (*RevokeRoleParams) SetDefaults ¶
func (o *RevokeRoleParams) SetDefaults()
SetDefaults hydrates default values in the revoke role params (not the query body).
All values with no default are reset to their zero value.
func (*RevokeRoleParams) SetHTTPClient ¶
func (o *RevokeRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the revoke role params
func (*RevokeRoleParams) SetID ¶
func (o *RevokeRoleParams) SetID(id string)
SetID adds the id to the revoke role params
func (*RevokeRoleParams) SetTimeout ¶
func (o *RevokeRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the revoke role params
func (*RevokeRoleParams) WithBody ¶
func (o *RevokeRoleParams) WithBody(body RevokeRoleBody) *RevokeRoleParams
WithBody adds the body to the revoke role params
func (*RevokeRoleParams) WithContext ¶
func (o *RevokeRoleParams) WithContext(ctx context.Context) *RevokeRoleParams
WithContext adds the context to the revoke role params
func (*RevokeRoleParams) WithDefaults ¶
func (o *RevokeRoleParams) WithDefaults() *RevokeRoleParams
WithDefaults hydrates default values in the revoke role params (not the query body).
All values with no default are reset to their zero value.
func (*RevokeRoleParams) WithHTTPClient ¶
func (o *RevokeRoleParams) WithHTTPClient(client *http.Client) *RevokeRoleParams
WithHTTPClient adds the HTTPClient to the revoke role params
func (*RevokeRoleParams) WithID ¶
func (o *RevokeRoleParams) WithID(id string) *RevokeRoleParams
WithID adds the id to the revoke role params
func (*RevokeRoleParams) WithTimeout ¶
func (o *RevokeRoleParams) WithTimeout(timeout time.Duration) *RevokeRoleParams
WithTimeout adds the timeout to the revoke role params
func (*RevokeRoleParams) WriteToRequest ¶
func (o *RevokeRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RevokeRoleReader ¶
type RevokeRoleReader struct {
// contains filtered or unexported fields
}
RevokeRoleReader is a Reader for the RevokeRole structure.
func (*RevokeRoleReader) ReadResponse ¶
func (o *RevokeRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RevokeRoleUnauthorized ¶
type RevokeRoleUnauthorized struct { }
RevokeRoleUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewRevokeRoleUnauthorized ¶
func NewRevokeRoleUnauthorized() *RevokeRoleUnauthorized
NewRevokeRoleUnauthorized creates a RevokeRoleUnauthorized with default headers values
func (*RevokeRoleUnauthorized) Code ¶
func (o *RevokeRoleUnauthorized) Code() int
Code gets the status code for the revoke role unauthorized response
func (*RevokeRoleUnauthorized) Error ¶
func (o *RevokeRoleUnauthorized) Error() string
func (*RevokeRoleUnauthorized) IsClientError ¶
func (o *RevokeRoleUnauthorized) IsClientError() bool
IsClientError returns true when this revoke role unauthorized response has a 4xx status code
func (*RevokeRoleUnauthorized) IsCode ¶
func (o *RevokeRoleUnauthorized) IsCode(code int) bool
IsCode returns true when this revoke role unauthorized response a status code equal to that given
func (*RevokeRoleUnauthorized) IsRedirect ¶
func (o *RevokeRoleUnauthorized) IsRedirect() bool
IsRedirect returns true when this revoke role unauthorized response has a 3xx status code
func (*RevokeRoleUnauthorized) IsServerError ¶
func (o *RevokeRoleUnauthorized) IsServerError() bool
IsServerError returns true when this revoke role unauthorized response has a 5xx status code
func (*RevokeRoleUnauthorized) IsSuccess ¶
func (o *RevokeRoleUnauthorized) IsSuccess() bool
IsSuccess returns true when this revoke role unauthorized response has a 2xx status code
func (*RevokeRoleUnauthorized) String ¶
func (o *RevokeRoleUnauthorized) String() string
Source Files
¶
- add_permissions_parameters.go
- add_permissions_responses.go
- assign_role_parameters.go
- assign_role_responses.go
- authz_client.go
- create_role_parameters.go
- create_role_responses.go
- delete_role_parameters.go
- delete_role_responses.go
- get_role_parameters.go
- get_role_responses.go
- get_roles_for_own_user_parameters.go
- get_roles_for_own_user_responses.go
- get_roles_for_user_parameters.go
- get_roles_for_user_responses.go
- get_roles_parameters.go
- get_roles_responses.go
- get_users_for_role_parameters.go
- get_users_for_role_responses.go
- has_permission_parameters.go
- has_permission_responses.go
- remove_permissions_parameters.go
- remove_permissions_responses.go
- revoke_role_parameters.go
- revoke_role_responses.go