Documentation ¶
Index ¶
- type AddTeamRoleBadRequest
- type AddTeamRoleForbidden
- type AddTeamRoleInternalServerError
- type AddTeamRoleNotFound
- type AddTeamRoleOK
- type AddTeamRoleParams
- func (o *AddTeamRoleParams) SetBody(body *models.AddTeamRoleCommand)
- func (o *AddTeamRoleParams) SetContext(ctx context.Context)
- func (o *AddTeamRoleParams) SetDefaults()
- func (o *AddTeamRoleParams) SetHTTPClient(client *http.Client)
- func (o *AddTeamRoleParams) SetTeamID(teamID int64)
- func (o *AddTeamRoleParams) SetTimeout(timeout time.Duration)
- func (o *AddTeamRoleParams) WithBody(body *models.AddTeamRoleCommand) *AddTeamRoleParams
- func (o *AddTeamRoleParams) WithContext(ctx context.Context) *AddTeamRoleParams
- func (o *AddTeamRoleParams) WithDefaults() *AddTeamRoleParams
- func (o *AddTeamRoleParams) WithHTTPClient(client *http.Client) *AddTeamRoleParams
- func (o *AddTeamRoleParams) WithTeamID(teamID int64) *AddTeamRoleParams
- func (o *AddTeamRoleParams) WithTimeout(timeout time.Duration) *AddTeamRoleParams
- func (o *AddTeamRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddTeamRoleReader
- type AddUserRoleForbidden
- type AddUserRoleInternalServerError
- type AddUserRoleNotFound
- type AddUserRoleOK
- type AddUserRoleParams
- func (o *AddUserRoleParams) SetBody(body *models.AddUserRoleCommand)
- func (o *AddUserRoleParams) SetContext(ctx context.Context)
- func (o *AddUserRoleParams) SetDefaults()
- func (o *AddUserRoleParams) SetHTTPClient(client *http.Client)
- func (o *AddUserRoleParams) SetTimeout(timeout time.Duration)
- func (o *AddUserRoleParams) SetUserID(userID int64)
- func (o *AddUserRoleParams) WithBody(body *models.AddUserRoleCommand) *AddUserRoleParams
- func (o *AddUserRoleParams) WithContext(ctx context.Context) *AddUserRoleParams
- func (o *AddUserRoleParams) WithDefaults() *AddUserRoleParams
- func (o *AddUserRoleParams) WithHTTPClient(client *http.Client) *AddUserRoleParams
- func (o *AddUserRoleParams) WithTimeout(timeout time.Duration) *AddUserRoleParams
- func (o *AddUserRoleParams) WithUserID(userID int64) *AddUserRoleParams
- func (o *AddUserRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddUserRoleReader
- type Client
- func (a *Client) AddTeamRole(params *AddTeamRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AddTeamRoleOK, error)
- func (a *Client) AddUserRole(params *AddUserRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AddUserRoleOK, error)
- func (a *Client) CreateRole(params *CreateRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateRoleCreated, error)
- func (a *Client) DeleteRole(params *DeleteRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteRoleOK, error)
- func (a *Client) GetAccessControlStatus(params *GetAccessControlStatusParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAccessControlStatusOK, error)
- func (a *Client) GetRole(params *GetRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRoleOK, error)
- func (a *Client) GetRoleAssignments(params *GetRoleAssignmentsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRoleAssignmentsOK, error)
- func (a *Client) ListRoles(params *ListRolesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListRolesOK, error)
- func (a *Client) ListTeamRoles(params *ListTeamRolesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListTeamRolesOK, error)
- func (a *Client) ListUserRoles(params *ListUserRolesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListUserRolesOK, error)
- func (a *Client) RemoveTeamRole(params *RemoveTeamRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RemoveTeamRoleOK, error)
- func (a *Client) RemoveUserRole(params *RemoveUserRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RemoveUserRoleOK, error)
- func (a *Client) SetRoleAssignments(params *SetRoleAssignmentsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SetRoleAssignmentsOK, error)
- func (a *Client) SetTeamRoles(params *SetTeamRolesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SetTeamRolesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) SetUserRoles(params *SetUserRolesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SetUserRolesOK, error)
- func (a *Client) UpdateRole(params *UpdateRoleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateRoleOK, error)
- type ClientOption
- type ClientService
- type CreateRoleBadRequest
- type CreateRoleCreated
- type CreateRoleForbidden
- type CreateRoleInternalServerError
- type CreateRoleParams
- func (o *CreateRoleParams) SetBody(body *models.CreateRoleForm)
- 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.CreateRoleForm) *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 DeleteRoleBadRequest
- type DeleteRoleForbidden
- type DeleteRoleInternalServerError
- type DeleteRoleOK
- type DeleteRoleParams
- func (o *DeleteRoleParams) SetContext(ctx context.Context)
- func (o *DeleteRoleParams) SetDefaults()
- func (o *DeleteRoleParams) SetForce(force *bool)
- func (o *DeleteRoleParams) SetGlobal(global *bool)
- func (o *DeleteRoleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRoleParams) SetRoleUID(roleUID string)
- func (o *DeleteRoleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRoleParams) WithContext(ctx context.Context) *DeleteRoleParams
- func (o *DeleteRoleParams) WithDefaults() *DeleteRoleParams
- func (o *DeleteRoleParams) WithForce(force *bool) *DeleteRoleParams
- func (o *DeleteRoleParams) WithGlobal(global *bool) *DeleteRoleParams
- func (o *DeleteRoleParams) WithHTTPClient(client *http.Client) *DeleteRoleParams
- func (o *DeleteRoleParams) WithRoleUID(roleUID string) *DeleteRoleParams
- func (o *DeleteRoleParams) WithTimeout(timeout time.Duration) *DeleteRoleParams
- func (o *DeleteRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRoleReader
- type GetAccessControlStatusForbidden
- type GetAccessControlStatusInternalServerError
- type GetAccessControlStatusNotFound
- type GetAccessControlStatusOK
- type GetAccessControlStatusParams
- func NewGetAccessControlStatusParams() *GetAccessControlStatusParams
- func NewGetAccessControlStatusParamsWithContext(ctx context.Context) *GetAccessControlStatusParams
- func NewGetAccessControlStatusParamsWithHTTPClient(client *http.Client) *GetAccessControlStatusParams
- func NewGetAccessControlStatusParamsWithTimeout(timeout time.Duration) *GetAccessControlStatusParams
- func (o *GetAccessControlStatusParams) SetContext(ctx context.Context)
- func (o *GetAccessControlStatusParams) SetDefaults()
- func (o *GetAccessControlStatusParams) SetHTTPClient(client *http.Client)
- func (o *GetAccessControlStatusParams) SetTimeout(timeout time.Duration)
- func (o *GetAccessControlStatusParams) WithContext(ctx context.Context) *GetAccessControlStatusParams
- func (o *GetAccessControlStatusParams) WithDefaults() *GetAccessControlStatusParams
- func (o *GetAccessControlStatusParams) WithHTTPClient(client *http.Client) *GetAccessControlStatusParams
- func (o *GetAccessControlStatusParams) WithTimeout(timeout time.Duration) *GetAccessControlStatusParams
- func (o *GetAccessControlStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAccessControlStatusReader
- type GetRoleAssignmentsForbidden
- type GetRoleAssignmentsInternalServerError
- type GetRoleAssignmentsNotFound
- type GetRoleAssignmentsOK
- type GetRoleAssignmentsParams
- func NewGetRoleAssignmentsParams() *GetRoleAssignmentsParams
- func NewGetRoleAssignmentsParamsWithContext(ctx context.Context) *GetRoleAssignmentsParams
- func NewGetRoleAssignmentsParamsWithHTTPClient(client *http.Client) *GetRoleAssignmentsParams
- func NewGetRoleAssignmentsParamsWithTimeout(timeout time.Duration) *GetRoleAssignmentsParams
- func (o *GetRoleAssignmentsParams) SetContext(ctx context.Context)
- func (o *GetRoleAssignmentsParams) SetDefaults()
- func (o *GetRoleAssignmentsParams) SetHTTPClient(client *http.Client)
- func (o *GetRoleAssignmentsParams) SetRoleUID(roleUID string)
- func (o *GetRoleAssignmentsParams) SetTimeout(timeout time.Duration)
- func (o *GetRoleAssignmentsParams) WithContext(ctx context.Context) *GetRoleAssignmentsParams
- func (o *GetRoleAssignmentsParams) WithDefaults() *GetRoleAssignmentsParams
- func (o *GetRoleAssignmentsParams) WithHTTPClient(client *http.Client) *GetRoleAssignmentsParams
- func (o *GetRoleAssignmentsParams) WithRoleUID(roleUID string) *GetRoleAssignmentsParams
- func (o *GetRoleAssignmentsParams) WithTimeout(timeout time.Duration) *GetRoleAssignmentsParams
- func (o *GetRoleAssignmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRoleAssignmentsReader
- type GetRoleForbidden
- type GetRoleInternalServerError
- type GetRoleOK
- type GetRoleParams
- func (o *GetRoleParams) SetContext(ctx context.Context)
- func (o *GetRoleParams) SetDefaults()
- func (o *GetRoleParams) SetHTTPClient(client *http.Client)
- func (o *GetRoleParams) SetRoleUID(roleUID 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) WithRoleUID(roleUID string) *GetRoleParams
- func (o *GetRoleParams) WithTimeout(timeout time.Duration) *GetRoleParams
- func (o *GetRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRoleReader
- type ListRolesForbidden
- type ListRolesInternalServerError
- type ListRolesOK
- type ListRolesParams
- func (o *ListRolesParams) SetContext(ctx context.Context)
- func (o *ListRolesParams) SetDefaults()
- func (o *ListRolesParams) SetDelegatable(delegatable *bool)
- func (o *ListRolesParams) SetHTTPClient(client *http.Client)
- func (o *ListRolesParams) SetTimeout(timeout time.Duration)
- func (o *ListRolesParams) WithContext(ctx context.Context) *ListRolesParams
- func (o *ListRolesParams) WithDefaults() *ListRolesParams
- func (o *ListRolesParams) WithDelegatable(delegatable *bool) *ListRolesParams
- func (o *ListRolesParams) WithHTTPClient(client *http.Client) *ListRolesParams
- func (o *ListRolesParams) WithTimeout(timeout time.Duration) *ListRolesParams
- func (o *ListRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListRolesReader
- type ListTeamRolesBadRequest
- type ListTeamRolesForbidden
- type ListTeamRolesInternalServerError
- type ListTeamRolesOK
- type ListTeamRolesParams
- func (o *ListTeamRolesParams) SetContext(ctx context.Context)
- func (o *ListTeamRolesParams) SetDefaults()
- func (o *ListTeamRolesParams) SetHTTPClient(client *http.Client)
- func (o *ListTeamRolesParams) SetTeamID(teamID int64)
- func (o *ListTeamRolesParams) SetTimeout(timeout time.Duration)
- func (o *ListTeamRolesParams) WithContext(ctx context.Context) *ListTeamRolesParams
- func (o *ListTeamRolesParams) WithDefaults() *ListTeamRolesParams
- func (o *ListTeamRolesParams) WithHTTPClient(client *http.Client) *ListTeamRolesParams
- func (o *ListTeamRolesParams) WithTeamID(teamID int64) *ListTeamRolesParams
- func (o *ListTeamRolesParams) WithTimeout(timeout time.Duration) *ListTeamRolesParams
- func (o *ListTeamRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTeamRolesReader
- type ListUserRolesBadRequest
- type ListUserRolesForbidden
- type ListUserRolesInternalServerError
- type ListUserRolesOK
- type ListUserRolesParams
- func (o *ListUserRolesParams) SetContext(ctx context.Context)
- func (o *ListUserRolesParams) SetDefaults()
- func (o *ListUserRolesParams) SetHTTPClient(client *http.Client)
- func (o *ListUserRolesParams) SetTimeout(timeout time.Duration)
- func (o *ListUserRolesParams) SetUserID(userID int64)
- func (o *ListUserRolesParams) WithContext(ctx context.Context) *ListUserRolesParams
- func (o *ListUserRolesParams) WithDefaults() *ListUserRolesParams
- func (o *ListUserRolesParams) WithHTTPClient(client *http.Client) *ListUserRolesParams
- func (o *ListUserRolesParams) WithTimeout(timeout time.Duration) *ListUserRolesParams
- func (o *ListUserRolesParams) WithUserID(userID int64) *ListUserRolesParams
- func (o *ListUserRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListUserRolesReader
- type RemoveTeamRoleBadRequest
- type RemoveTeamRoleForbidden
- type RemoveTeamRoleInternalServerError
- type RemoveTeamRoleNotFound
- type RemoveTeamRoleOK
- type RemoveTeamRoleParams
- func NewRemoveTeamRoleParams() *RemoveTeamRoleParams
- func NewRemoveTeamRoleParamsWithContext(ctx context.Context) *RemoveTeamRoleParams
- func NewRemoveTeamRoleParamsWithHTTPClient(client *http.Client) *RemoveTeamRoleParams
- func NewRemoveTeamRoleParamsWithTimeout(timeout time.Duration) *RemoveTeamRoleParams
- func (o *RemoveTeamRoleParams) SetContext(ctx context.Context)
- func (o *RemoveTeamRoleParams) SetDefaults()
- func (o *RemoveTeamRoleParams) SetHTTPClient(client *http.Client)
- func (o *RemoveTeamRoleParams) SetRoleUID(roleUID string)
- func (o *RemoveTeamRoleParams) SetTeamID(teamID int64)
- func (o *RemoveTeamRoleParams) SetTimeout(timeout time.Duration)
- func (o *RemoveTeamRoleParams) WithContext(ctx context.Context) *RemoveTeamRoleParams
- func (o *RemoveTeamRoleParams) WithDefaults() *RemoveTeamRoleParams
- func (o *RemoveTeamRoleParams) WithHTTPClient(client *http.Client) *RemoveTeamRoleParams
- func (o *RemoveTeamRoleParams) WithRoleUID(roleUID string) *RemoveTeamRoleParams
- func (o *RemoveTeamRoleParams) WithTeamID(teamID int64) *RemoveTeamRoleParams
- func (o *RemoveTeamRoleParams) WithTimeout(timeout time.Duration) *RemoveTeamRoleParams
- func (o *RemoveTeamRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveTeamRoleReader
- type RemoveUserRoleBadRequest
- type RemoveUserRoleForbidden
- type RemoveUserRoleInternalServerError
- type RemoveUserRoleNotFound
- type RemoveUserRoleOK
- type RemoveUserRoleParams
- func NewRemoveUserRoleParams() *RemoveUserRoleParams
- func NewRemoveUserRoleParamsWithContext(ctx context.Context) *RemoveUserRoleParams
- func NewRemoveUserRoleParamsWithHTTPClient(client *http.Client) *RemoveUserRoleParams
- func NewRemoveUserRoleParamsWithTimeout(timeout time.Duration) *RemoveUserRoleParams
- func (o *RemoveUserRoleParams) SetContext(ctx context.Context)
- func (o *RemoveUserRoleParams) SetDefaults()
- func (o *RemoveUserRoleParams) SetGlobal(global *bool)
- func (o *RemoveUserRoleParams) SetHTTPClient(client *http.Client)
- func (o *RemoveUserRoleParams) SetRoleUID(roleUID string)
- func (o *RemoveUserRoleParams) SetTimeout(timeout time.Duration)
- func (o *RemoveUserRoleParams) SetUserID(userID int64)
- func (o *RemoveUserRoleParams) WithContext(ctx context.Context) *RemoveUserRoleParams
- func (o *RemoveUserRoleParams) WithDefaults() *RemoveUserRoleParams
- func (o *RemoveUserRoleParams) WithGlobal(global *bool) *RemoveUserRoleParams
- func (o *RemoveUserRoleParams) WithHTTPClient(client *http.Client) *RemoveUserRoleParams
- func (o *RemoveUserRoleParams) WithRoleUID(roleUID string) *RemoveUserRoleParams
- func (o *RemoveUserRoleParams) WithTimeout(timeout time.Duration) *RemoveUserRoleParams
- func (o *RemoveUserRoleParams) WithUserID(userID int64) *RemoveUserRoleParams
- func (o *RemoveUserRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveUserRoleReader
- type SetRoleAssignmentsForbidden
- type SetRoleAssignmentsInternalServerError
- type SetRoleAssignmentsNotFound
- type SetRoleAssignmentsOK
- type SetRoleAssignmentsParams
- func NewSetRoleAssignmentsParams() *SetRoleAssignmentsParams
- func NewSetRoleAssignmentsParamsWithContext(ctx context.Context) *SetRoleAssignmentsParams
- func NewSetRoleAssignmentsParamsWithHTTPClient(client *http.Client) *SetRoleAssignmentsParams
- func NewSetRoleAssignmentsParamsWithTimeout(timeout time.Duration) *SetRoleAssignmentsParams
- func (o *SetRoleAssignmentsParams) SetBody(body *models.SetRoleAssignmentsCommand)
- func (o *SetRoleAssignmentsParams) SetContext(ctx context.Context)
- func (o *SetRoleAssignmentsParams) SetDefaults()
- func (o *SetRoleAssignmentsParams) SetHTTPClient(client *http.Client)
- func (o *SetRoleAssignmentsParams) SetRoleUID(roleUID string)
- func (o *SetRoleAssignmentsParams) SetTimeout(timeout time.Duration)
- func (o *SetRoleAssignmentsParams) WithBody(body *models.SetRoleAssignmentsCommand) *SetRoleAssignmentsParams
- func (o *SetRoleAssignmentsParams) WithContext(ctx context.Context) *SetRoleAssignmentsParams
- func (o *SetRoleAssignmentsParams) WithDefaults() *SetRoleAssignmentsParams
- func (o *SetRoleAssignmentsParams) WithHTTPClient(client *http.Client) *SetRoleAssignmentsParams
- func (o *SetRoleAssignmentsParams) WithRoleUID(roleUID string) *SetRoleAssignmentsParams
- func (o *SetRoleAssignmentsParams) WithTimeout(timeout time.Duration) *SetRoleAssignmentsParams
- func (o *SetRoleAssignmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetRoleAssignmentsReader
- type SetTeamRolesBadRequest
- type SetTeamRolesForbidden
- type SetTeamRolesInternalServerError
- type SetTeamRolesNotFound
- type SetTeamRolesOK
- type SetTeamRolesParams
- func (o *SetTeamRolesParams) SetContext(ctx context.Context)
- func (o *SetTeamRolesParams) SetDefaults()
- func (o *SetTeamRolesParams) SetHTTPClient(client *http.Client)
- func (o *SetTeamRolesParams) SetTeamID(teamID int64)
- func (o *SetTeamRolesParams) SetTimeout(timeout time.Duration)
- func (o *SetTeamRolesParams) WithContext(ctx context.Context) *SetTeamRolesParams
- func (o *SetTeamRolesParams) WithDefaults() *SetTeamRolesParams
- func (o *SetTeamRolesParams) WithHTTPClient(client *http.Client) *SetTeamRolesParams
- func (o *SetTeamRolesParams) WithTeamID(teamID int64) *SetTeamRolesParams
- func (o *SetTeamRolesParams) WithTimeout(timeout time.Duration) *SetTeamRolesParams
- func (o *SetTeamRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetTeamRolesReader
- type SetUserRolesBadRequest
- type SetUserRolesForbidden
- type SetUserRolesInternalServerError
- type SetUserRolesNotFound
- type SetUserRolesOK
- type SetUserRolesParams
- func (o *SetUserRolesParams) SetBody(body *models.SetUserRolesCommand)
- func (o *SetUserRolesParams) SetContext(ctx context.Context)
- func (o *SetUserRolesParams) SetDefaults()
- func (o *SetUserRolesParams) SetHTTPClient(client *http.Client)
- func (o *SetUserRolesParams) SetTimeout(timeout time.Duration)
- func (o *SetUserRolesParams) SetUserID(userID int64)
- func (o *SetUserRolesParams) WithBody(body *models.SetUserRolesCommand) *SetUserRolesParams
- func (o *SetUserRolesParams) WithContext(ctx context.Context) *SetUserRolesParams
- func (o *SetUserRolesParams) WithDefaults() *SetUserRolesParams
- func (o *SetUserRolesParams) WithHTTPClient(client *http.Client) *SetUserRolesParams
- func (o *SetUserRolesParams) WithTimeout(timeout time.Duration) *SetUserRolesParams
- func (o *SetUserRolesParams) WithUserID(userID int64) *SetUserRolesParams
- func (o *SetUserRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetUserRolesReader
- type UpdateRoleBadRequest
- type UpdateRoleForbidden
- type UpdateRoleInternalServerError
- type UpdateRoleNotFound
- type UpdateRoleOK
- type UpdateRoleParams
- func (o *UpdateRoleParams) SetBody(body *models.UpdateRoleCommand)
- func (o *UpdateRoleParams) SetContext(ctx context.Context)
- func (o *UpdateRoleParams) SetDefaults()
- func (o *UpdateRoleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateRoleParams) SetRoleUID(roleUID string)
- func (o *UpdateRoleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateRoleParams) WithBody(body *models.UpdateRoleCommand) *UpdateRoleParams
- func (o *UpdateRoleParams) WithContext(ctx context.Context) *UpdateRoleParams
- func (o *UpdateRoleParams) WithDefaults() *UpdateRoleParams
- func (o *UpdateRoleParams) WithHTTPClient(client *http.Client) *UpdateRoleParams
- func (o *UpdateRoleParams) WithRoleUID(roleUID string) *UpdateRoleParams
- func (o *UpdateRoleParams) WithTimeout(timeout time.Duration) *UpdateRoleParams
- func (o *UpdateRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateRoleReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTeamRoleBadRequest ¶
type AddTeamRoleBadRequest struct {
Payload *models.ErrorResponseBody
}
AddTeamRoleBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewAddTeamRoleBadRequest ¶
func NewAddTeamRoleBadRequest() *AddTeamRoleBadRequest
NewAddTeamRoleBadRequest creates a AddTeamRoleBadRequest with default headers values
func (*AddTeamRoleBadRequest) Error ¶
func (o *AddTeamRoleBadRequest) Error() string
func (*AddTeamRoleBadRequest) GetPayload ¶
func (o *AddTeamRoleBadRequest) GetPayload() *models.ErrorResponseBody
type AddTeamRoleForbidden ¶
type AddTeamRoleForbidden struct {
Payload *models.ErrorResponseBody
}
AddTeamRoleForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewAddTeamRoleForbidden ¶
func NewAddTeamRoleForbidden() *AddTeamRoleForbidden
NewAddTeamRoleForbidden creates a AddTeamRoleForbidden with default headers values
func (*AddTeamRoleForbidden) Error ¶
func (o *AddTeamRoleForbidden) Error() string
func (*AddTeamRoleForbidden) GetPayload ¶
func (o *AddTeamRoleForbidden) GetPayload() *models.ErrorResponseBody
type AddTeamRoleInternalServerError ¶
type AddTeamRoleInternalServerError struct {
Payload *models.ErrorResponseBody
}
AddTeamRoleInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewAddTeamRoleInternalServerError ¶
func NewAddTeamRoleInternalServerError() *AddTeamRoleInternalServerError
NewAddTeamRoleInternalServerError creates a AddTeamRoleInternalServerError with default headers values
func (*AddTeamRoleInternalServerError) Error ¶
func (o *AddTeamRoleInternalServerError) Error() string
func (*AddTeamRoleInternalServerError) GetPayload ¶
func (o *AddTeamRoleInternalServerError) GetPayload() *models.ErrorResponseBody
type AddTeamRoleNotFound ¶
type AddTeamRoleNotFound struct {
Payload *models.ErrorResponseBody
}
AddTeamRoleNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewAddTeamRoleNotFound ¶
func NewAddTeamRoleNotFound() *AddTeamRoleNotFound
NewAddTeamRoleNotFound creates a AddTeamRoleNotFound with default headers values
func (*AddTeamRoleNotFound) Error ¶
func (o *AddTeamRoleNotFound) Error() string
func (*AddTeamRoleNotFound) GetPayload ¶
func (o *AddTeamRoleNotFound) GetPayload() *models.ErrorResponseBody
type AddTeamRoleOK ¶
type AddTeamRoleOK struct {
Payload *models.SuccessResponseBody
}
AddTeamRoleOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewAddTeamRoleOK ¶
func NewAddTeamRoleOK() *AddTeamRoleOK
NewAddTeamRoleOK creates a AddTeamRoleOK with default headers values
func (*AddTeamRoleOK) Error ¶
func (o *AddTeamRoleOK) Error() string
func (*AddTeamRoleOK) GetPayload ¶
func (o *AddTeamRoleOK) GetPayload() *models.SuccessResponseBody
type AddTeamRoleParams ¶
type AddTeamRoleParams struct { // Body. Body *models.AddTeamRoleCommand // TeamID. // // Format: int64 TeamID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddTeamRoleParams contains all the parameters to send to the API endpoint
for the add team role operation. Typically these are written to a http.Request.
func NewAddTeamRoleParams ¶
func NewAddTeamRoleParams() *AddTeamRoleParams
NewAddTeamRoleParams creates a new AddTeamRoleParams 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 NewAddTeamRoleParamsWithContext ¶
func NewAddTeamRoleParamsWithContext(ctx context.Context) *AddTeamRoleParams
NewAddTeamRoleParamsWithContext creates a new AddTeamRoleParams object with the ability to set a context for a request.
func NewAddTeamRoleParamsWithHTTPClient ¶
func NewAddTeamRoleParamsWithHTTPClient(client *http.Client) *AddTeamRoleParams
NewAddTeamRoleParamsWithHTTPClient creates a new AddTeamRoleParams object with the ability to set a custom HTTPClient for a request.
func NewAddTeamRoleParamsWithTimeout ¶
func NewAddTeamRoleParamsWithTimeout(timeout time.Duration) *AddTeamRoleParams
NewAddTeamRoleParamsWithTimeout creates a new AddTeamRoleParams object with the ability to set a timeout on a request.
func (*AddTeamRoleParams) SetBody ¶
func (o *AddTeamRoleParams) SetBody(body *models.AddTeamRoleCommand)
SetBody adds the body to the add team role params
func (*AddTeamRoleParams) SetContext ¶
func (o *AddTeamRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the add team role params
func (*AddTeamRoleParams) SetDefaults ¶
func (o *AddTeamRoleParams) SetDefaults()
SetDefaults hydrates default values in the add team role params (not the query body).
All values with no default are reset to their zero value.
func (*AddTeamRoleParams) SetHTTPClient ¶
func (o *AddTeamRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add team role params
func (*AddTeamRoleParams) SetTeamID ¶
func (o *AddTeamRoleParams) SetTeamID(teamID int64)
SetTeamID adds the teamId to the add team role params
func (*AddTeamRoleParams) SetTimeout ¶
func (o *AddTeamRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add team role params
func (*AddTeamRoleParams) WithBody ¶
func (o *AddTeamRoleParams) WithBody(body *models.AddTeamRoleCommand) *AddTeamRoleParams
WithBody adds the body to the add team role params
func (*AddTeamRoleParams) WithContext ¶
func (o *AddTeamRoleParams) WithContext(ctx context.Context) *AddTeamRoleParams
WithContext adds the context to the add team role params
func (*AddTeamRoleParams) WithDefaults ¶
func (o *AddTeamRoleParams) WithDefaults() *AddTeamRoleParams
WithDefaults hydrates default values in the add team role params (not the query body).
All values with no default are reset to their zero value.
func (*AddTeamRoleParams) WithHTTPClient ¶
func (o *AddTeamRoleParams) WithHTTPClient(client *http.Client) *AddTeamRoleParams
WithHTTPClient adds the HTTPClient to the add team role params
func (*AddTeamRoleParams) WithTeamID ¶
func (o *AddTeamRoleParams) WithTeamID(teamID int64) *AddTeamRoleParams
WithTeamID adds the teamID to the add team role params
func (*AddTeamRoleParams) WithTimeout ¶
func (o *AddTeamRoleParams) WithTimeout(timeout time.Duration) *AddTeamRoleParams
WithTimeout adds the timeout to the add team role params
func (*AddTeamRoleParams) WriteToRequest ¶
func (o *AddTeamRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddTeamRoleReader ¶
type AddTeamRoleReader struct {
// contains filtered or unexported fields
}
AddTeamRoleReader is a Reader for the AddTeamRole structure.
func (*AddTeamRoleReader) ReadResponse ¶
func (o *AddTeamRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddUserRoleForbidden ¶
type AddUserRoleForbidden struct {
Payload *models.ErrorResponseBody
}
AddUserRoleForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewAddUserRoleForbidden ¶
func NewAddUserRoleForbidden() *AddUserRoleForbidden
NewAddUserRoleForbidden creates a AddUserRoleForbidden with default headers values
func (*AddUserRoleForbidden) Error ¶
func (o *AddUserRoleForbidden) Error() string
func (*AddUserRoleForbidden) GetPayload ¶
func (o *AddUserRoleForbidden) GetPayload() *models.ErrorResponseBody
type AddUserRoleInternalServerError ¶
type AddUserRoleInternalServerError struct {
Payload *models.ErrorResponseBody
}
AddUserRoleInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewAddUserRoleInternalServerError ¶
func NewAddUserRoleInternalServerError() *AddUserRoleInternalServerError
NewAddUserRoleInternalServerError creates a AddUserRoleInternalServerError with default headers values
func (*AddUserRoleInternalServerError) Error ¶
func (o *AddUserRoleInternalServerError) Error() string
func (*AddUserRoleInternalServerError) GetPayload ¶
func (o *AddUserRoleInternalServerError) GetPayload() *models.ErrorResponseBody
type AddUserRoleNotFound ¶
type AddUserRoleNotFound struct {
Payload *models.ErrorResponseBody
}
AddUserRoleNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewAddUserRoleNotFound ¶
func NewAddUserRoleNotFound() *AddUserRoleNotFound
NewAddUserRoleNotFound creates a AddUserRoleNotFound with default headers values
func (*AddUserRoleNotFound) Error ¶
func (o *AddUserRoleNotFound) Error() string
func (*AddUserRoleNotFound) GetPayload ¶
func (o *AddUserRoleNotFound) GetPayload() *models.ErrorResponseBody
type AddUserRoleOK ¶
type AddUserRoleOK struct {
Payload *models.SuccessResponseBody
}
AddUserRoleOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewAddUserRoleOK ¶
func NewAddUserRoleOK() *AddUserRoleOK
NewAddUserRoleOK creates a AddUserRoleOK with default headers values
func (*AddUserRoleOK) Error ¶
func (o *AddUserRoleOK) Error() string
func (*AddUserRoleOK) GetPayload ¶
func (o *AddUserRoleOK) GetPayload() *models.SuccessResponseBody
type AddUserRoleParams ¶
type AddUserRoleParams struct { // Body. Body *models.AddUserRoleCommand // UserID. // // Format: int64 UserID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddUserRoleParams contains all the parameters to send to the API endpoint
for the add user role operation. Typically these are written to a http.Request.
func NewAddUserRoleParams ¶
func NewAddUserRoleParams() *AddUserRoleParams
NewAddUserRoleParams creates a new AddUserRoleParams 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 NewAddUserRoleParamsWithContext ¶
func NewAddUserRoleParamsWithContext(ctx context.Context) *AddUserRoleParams
NewAddUserRoleParamsWithContext creates a new AddUserRoleParams object with the ability to set a context for a request.
func NewAddUserRoleParamsWithHTTPClient ¶
func NewAddUserRoleParamsWithHTTPClient(client *http.Client) *AddUserRoleParams
NewAddUserRoleParamsWithHTTPClient creates a new AddUserRoleParams object with the ability to set a custom HTTPClient for a request.
func NewAddUserRoleParamsWithTimeout ¶
func NewAddUserRoleParamsWithTimeout(timeout time.Duration) *AddUserRoleParams
NewAddUserRoleParamsWithTimeout creates a new AddUserRoleParams object with the ability to set a timeout on a request.
func (*AddUserRoleParams) SetBody ¶
func (o *AddUserRoleParams) SetBody(body *models.AddUserRoleCommand)
SetBody adds the body to the add user role params
func (*AddUserRoleParams) SetContext ¶
func (o *AddUserRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the add user role params
func (*AddUserRoleParams) SetDefaults ¶
func (o *AddUserRoleParams) SetDefaults()
SetDefaults hydrates default values in the add user role params (not the query body).
All values with no default are reset to their zero value.
func (*AddUserRoleParams) SetHTTPClient ¶
func (o *AddUserRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add user role params
func (*AddUserRoleParams) SetTimeout ¶
func (o *AddUserRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add user role params
func (*AddUserRoleParams) SetUserID ¶
func (o *AddUserRoleParams) SetUserID(userID int64)
SetUserID adds the userId to the add user role params
func (*AddUserRoleParams) WithBody ¶
func (o *AddUserRoleParams) WithBody(body *models.AddUserRoleCommand) *AddUserRoleParams
WithBody adds the body to the add user role params
func (*AddUserRoleParams) WithContext ¶
func (o *AddUserRoleParams) WithContext(ctx context.Context) *AddUserRoleParams
WithContext adds the context to the add user role params
func (*AddUserRoleParams) WithDefaults ¶
func (o *AddUserRoleParams) WithDefaults() *AddUserRoleParams
WithDefaults hydrates default values in the add user role params (not the query body).
All values with no default are reset to their zero value.
func (*AddUserRoleParams) WithHTTPClient ¶
func (o *AddUserRoleParams) WithHTTPClient(client *http.Client) *AddUserRoleParams
WithHTTPClient adds the HTTPClient to the add user role params
func (*AddUserRoleParams) WithTimeout ¶
func (o *AddUserRoleParams) WithTimeout(timeout time.Duration) *AddUserRoleParams
WithTimeout adds the timeout to the add user role params
func (*AddUserRoleParams) WithUserID ¶
func (o *AddUserRoleParams) WithUserID(userID int64) *AddUserRoleParams
WithUserID adds the userID to the add user role params
func (*AddUserRoleParams) WriteToRequest ¶
func (o *AddUserRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddUserRoleReader ¶
type AddUserRoleReader struct {
// contains filtered or unexported fields
}
AddUserRoleReader is a Reader for the AddUserRole structure.
func (*AddUserRoleReader) ReadResponse ¶
func (o *AddUserRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for access control API
func (*Client) AddTeamRole ¶
func (a *Client) AddTeamRole(params *AddTeamRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddTeamRoleOK, error)
AddTeamRole adds team role
You need to have a permission with action `teams.roles:add` and scope `permissions:type:delegate`.
func (*Client) AddUserRole ¶
func (a *Client) AddUserRole(params *AddUserRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddUserRoleOK, error)
AddUserRole adds a user role assignment Assign a role to a specific user. For bulk updates consider Set user role assignments.
You need to have a permission with action `users.roles:add` and scope `permissions:type:delegate`. `permissions:type:delegate` scope ensures that users can only assign roles which have same, or a subset of permissions which the user has. For example, if a user does not have required permissions for creating users, they won’t be able to assign a role which will allow to do that. This is done to prevent escalation of privileges.
func (*Client) CreateRole ¶
func (a *Client) CreateRole(params *CreateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRoleCreated, error)
CreateRole creates a new custom role Creates a new custom role and maps given permissions to that role. Note that roles with the same prefix as Fixed Roles can’t be created.
You need to have a permission with action `roles:write` and scope `permissions:type:delegate`. `permissions:type:delegate` scope ensures that users can only create custom roles with the same, or a subset of permissions which the user has. For example, if a user does not have required permissions for creating users, they won’t be able to create a custom role which allows to do that. This is done to prevent escalation of privileges.
func (*Client) DeleteRole ¶
func (a *Client) DeleteRole(params *DeleteRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRoleOK, error)
DeleteRole deletes a custom role Delete a role with the given UID, and it’s permissions. If the role is assigned to a built-in role, the deletion operation will fail, unless force query param is set to true, and in that case all assignments will also be deleted.
You need to have a permission with action `roles:delete` and scope `permissions:type:delegate`. `permissions:type:delegate` scope ensures that users can only delete a custom role with the same, or a subset of permissions which the user has. For example, if a user does not have required permissions for creating users, they won’t be able to delete a custom role which allows to do that.
func (*Client) GetAccessControlStatus ¶
func (a *Client) GetAccessControlStatus(params *GetAccessControlStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccessControlStatusOK, error)
GetAccessControlStatus gets status Returns an indicator to check if fine-grained access control is enabled or not.
You need to have a permission with action `status:accesscontrol` and scope `services:accesscontrol`.
func (*Client) GetRole ¶
func (a *Client) GetRole(params *GetRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoleOK, error)
GetRole gets a role Get a role for the given UID.
You need to have a permission with action `roles:read` and scope `roles:*`.
func (*Client) GetRoleAssignments ¶
func (a *Client) GetRoleAssignments(params *GetRoleAssignmentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoleAssignmentsOK, error)
GetRoleAssignments gets role assignments Get role assignments for the role with the given UID.
You need to have a permission with action `teams.roles:list` and scope `teams:id:*` and `users.roles:list` and scope `users:id:*`.
func (*Client) ListRoles ¶
func (a *Client) ListRoles(params *ListRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRolesOK, error)
ListRoles gets all roles Gets all existing roles. The response contains all global and organization local roles, for the organization which user is signed in.
You need to have a permission with action `roles:read` and scope `roles:*`.
func (*Client) ListTeamRoles ¶
func (a *Client) ListTeamRoles(params *ListTeamRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTeamRolesOK, error)
ListTeamRoles gets team roles
You need to have a permission with action `teams.roles:read` and scope `teams:id:<team ID>`.
func (*Client) ListUserRoles ¶
func (a *Client) ListUserRoles(params *ListUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserRolesOK, error)
ListUserRoles lists roles assigned to a user Lists the roles that have been directly assigned to a given user. The list does not include built-in roles (Viewer, Editor, Admin or Grafana Admin), and it does not include roles that have been inherited from a team.
You need to have a permission with action `users.roles:read` and scope `users:id:<user ID>`.
func (*Client) RemoveTeamRole ¶
func (a *Client) RemoveTeamRole(params *RemoveTeamRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveTeamRoleOK, error)
RemoveTeamRole removes team role
You need to have a permission with action `teams.roles:remove` and scope `permissions:type:delegate`.
func (*Client) RemoveUserRole ¶
func (a *Client) RemoveUserRole(params *RemoveUserRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveUserRoleOK, error)
RemoveUserRole removes a user role assignment Revoke a role from a user. For bulk updates consider Set user role assignments.
You need to have a permission with action `users.roles:remove` and scope `permissions:type:delegate`. `permissions:type:delegate` scope ensures that users can only unassign roles which have same, or a subset of permissions which the user has. For example, if a user does not have required permissions for creating users, they won’t be able to unassign a role which will allow to do that. This is done to prevent escalation of privileges.
func (*Client) SetRoleAssignments ¶
func (a *Client) SetRoleAssignments(params *SetRoleAssignmentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetRoleAssignmentsOK, error)
SetRoleAssignments sets role assignments Set role assignments for the role with the given UID.
You need to have a permission with action `teams.roles:add` and `teams.roles:remove` and scope `permissions:type:delegate`, and `users.roles:add` and `users.roles:remove` and scope `permissions:type:delegate`.
func (*Client) SetTeamRoles ¶
func (a *Client) SetTeamRoles(params *SetTeamRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTeamRolesOK, error)
SetTeamRoles updates team role
You need to have a permission with action `teams.roles:add` and `teams.roles:remove` and scope `permissions:type:delegate` for each.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) SetUserRoles ¶
func (a *Client) SetUserRoles(params *SetUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetUserRolesOK, error)
SetUserRoles sets user role assignments Update the user’s role assignments to match the provided set of UIDs. This will remove any assigned roles that aren’t in the request and add roles that are in the set but are not already assigned to the user.
If you want to add or remove a single role, consider using Add a user role assignment or Remove a user role assignment instead.
You need to have a permission with action `users.roles:add` and `users.roles:remove` and scope `permissions:type:delegate` for each. `permissions:type:delegate` scope ensures that users can only assign or unassign roles which have same, or a subset of permissions which the user has. For example, if a user does not have required permissions for creating users, they won’t be able to assign or unassign a role which will allow to do that. This is done to prevent escalation of privileges.
func (*Client) UpdateRole ¶
func (a *Client) UpdateRole(params *UpdateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRoleOK, error)
UpdateRole updates a custom role
You need to have a permission with action `roles:write` and scope `permissions:type:delegate`. `permissions:type:delegate` scope ensures that users can only create custom roles with the same, or a subset of permissions which the user has.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { AddTeamRole(params *AddTeamRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddTeamRoleOK, error) AddUserRole(params *AddUserRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddUserRoleOK, error) CreateRole(params *CreateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRoleCreated, error) DeleteRole(params *DeleteRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRoleOK, error) GetAccessControlStatus(params *GetAccessControlStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccessControlStatusOK, error) GetRole(params *GetRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoleOK, error) GetRoleAssignments(params *GetRoleAssignmentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoleAssignmentsOK, error) ListRoles(params *ListRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRolesOK, error) ListTeamRoles(params *ListTeamRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTeamRolesOK, error) ListUserRoles(params *ListUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserRolesOK, error) RemoveTeamRole(params *RemoveTeamRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveTeamRoleOK, error) RemoveUserRole(params *RemoveUserRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveUserRoleOK, error) SetRoleAssignments(params *SetRoleAssignmentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetRoleAssignmentsOK, error) SetTeamRoles(params *SetTeamRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTeamRolesOK, error) SetUserRoles(params *SetUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetUserRolesOK, error) UpdateRole(params *UpdateRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRoleOK, 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 access control API client.
type CreateRoleBadRequest ¶
type CreateRoleBadRequest struct {
Payload *models.ErrorResponseBody
}
CreateRoleBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewCreateRoleBadRequest ¶
func NewCreateRoleBadRequest() *CreateRoleBadRequest
NewCreateRoleBadRequest creates a CreateRoleBadRequest with default headers values
func (*CreateRoleBadRequest) Error ¶
func (o *CreateRoleBadRequest) Error() string
func (*CreateRoleBadRequest) GetPayload ¶
func (o *CreateRoleBadRequest) GetPayload() *models.ErrorResponseBody
type CreateRoleCreated ¶
CreateRoleCreated describes a response with status code 201, with default header values.
(empty)
func NewCreateRoleCreated ¶
func NewCreateRoleCreated() *CreateRoleCreated
NewCreateRoleCreated creates a CreateRoleCreated with default headers values
func (*CreateRoleCreated) Error ¶
func (o *CreateRoleCreated) Error() string
func (*CreateRoleCreated) GetPayload ¶
func (o *CreateRoleCreated) GetPayload() *models.RoleDTO
type CreateRoleForbidden ¶
type CreateRoleForbidden struct {
Payload *models.ErrorResponseBody
}
CreateRoleForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewCreateRoleForbidden ¶
func NewCreateRoleForbidden() *CreateRoleForbidden
NewCreateRoleForbidden creates a CreateRoleForbidden with default headers values
func (*CreateRoleForbidden) Error ¶
func (o *CreateRoleForbidden) Error() string
func (*CreateRoleForbidden) GetPayload ¶
func (o *CreateRoleForbidden) GetPayload() *models.ErrorResponseBody
type CreateRoleInternalServerError ¶
type CreateRoleInternalServerError struct {
Payload *models.ErrorResponseBody
}
CreateRoleInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewCreateRoleInternalServerError ¶
func NewCreateRoleInternalServerError() *CreateRoleInternalServerError
NewCreateRoleInternalServerError creates a CreateRoleInternalServerError with default headers values
func (*CreateRoleInternalServerError) Error ¶
func (o *CreateRoleInternalServerError) Error() string
func (*CreateRoleInternalServerError) GetPayload ¶
func (o *CreateRoleInternalServerError) GetPayload() *models.ErrorResponseBody
type CreateRoleParams ¶
type CreateRoleParams struct { // Body. Body *models.CreateRoleForm 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.CreateRoleForm)
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.CreateRoleForm) *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 DeleteRoleBadRequest ¶
type DeleteRoleBadRequest struct {
Payload *models.ErrorResponseBody
}
DeleteRoleBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewDeleteRoleBadRequest ¶
func NewDeleteRoleBadRequest() *DeleteRoleBadRequest
NewDeleteRoleBadRequest creates a DeleteRoleBadRequest with default headers values
func (*DeleteRoleBadRequest) Error ¶
func (o *DeleteRoleBadRequest) Error() string
func (*DeleteRoleBadRequest) GetPayload ¶
func (o *DeleteRoleBadRequest) GetPayload() *models.ErrorResponseBody
type DeleteRoleForbidden ¶
type DeleteRoleForbidden struct {
Payload *models.ErrorResponseBody
}
DeleteRoleForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewDeleteRoleForbidden ¶
func NewDeleteRoleForbidden() *DeleteRoleForbidden
NewDeleteRoleForbidden creates a DeleteRoleForbidden with default headers values
func (*DeleteRoleForbidden) Error ¶
func (o *DeleteRoleForbidden) Error() string
func (*DeleteRoleForbidden) GetPayload ¶
func (o *DeleteRoleForbidden) GetPayload() *models.ErrorResponseBody
type DeleteRoleInternalServerError ¶
type DeleteRoleInternalServerError struct {
Payload *models.ErrorResponseBody
}
DeleteRoleInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewDeleteRoleInternalServerError ¶
func NewDeleteRoleInternalServerError() *DeleteRoleInternalServerError
NewDeleteRoleInternalServerError creates a DeleteRoleInternalServerError with default headers values
func (*DeleteRoleInternalServerError) Error ¶
func (o *DeleteRoleInternalServerError) Error() string
func (*DeleteRoleInternalServerError) GetPayload ¶
func (o *DeleteRoleInternalServerError) GetPayload() *models.ErrorResponseBody
type DeleteRoleOK ¶
type DeleteRoleOK struct {
Payload *models.SuccessResponseBody
}
DeleteRoleOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewDeleteRoleOK ¶
func NewDeleteRoleOK() *DeleteRoleOK
NewDeleteRoleOK creates a DeleteRoleOK with default headers values
func (*DeleteRoleOK) Error ¶
func (o *DeleteRoleOK) Error() string
func (*DeleteRoleOK) GetPayload ¶
func (o *DeleteRoleOK) GetPayload() *models.SuccessResponseBody
type DeleteRoleParams ¶
type DeleteRoleParams struct { // Force. Force *bool // Global. Global *bool // RoleUID. RoleUID 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) SetForce ¶
func (o *DeleteRoleParams) SetForce(force *bool)
SetForce adds the force to the delete role params
func (*DeleteRoleParams) SetGlobal ¶
func (o *DeleteRoleParams) SetGlobal(global *bool)
SetGlobal adds the global to the delete role params
func (*DeleteRoleParams) SetHTTPClient ¶
func (o *DeleteRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete role params
func (*DeleteRoleParams) SetRoleUID ¶
func (o *DeleteRoleParams) SetRoleUID(roleUID string)
SetRoleUID adds the roleUid 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) WithForce ¶
func (o *DeleteRoleParams) WithForce(force *bool) *DeleteRoleParams
WithForce adds the force to the delete role params
func (*DeleteRoleParams) WithGlobal ¶
func (o *DeleteRoleParams) WithGlobal(global *bool) *DeleteRoleParams
WithGlobal adds the global to the delete role params
func (*DeleteRoleParams) WithHTTPClient ¶
func (o *DeleteRoleParams) WithHTTPClient(client *http.Client) *DeleteRoleParams
WithHTTPClient adds the HTTPClient to the delete role params
func (*DeleteRoleParams) WithRoleUID ¶
func (o *DeleteRoleParams) WithRoleUID(roleUID string) *DeleteRoleParams
WithRoleUID adds the roleUID 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 GetAccessControlStatusForbidden ¶
type GetAccessControlStatusForbidden struct {
Payload *models.ErrorResponseBody
}
GetAccessControlStatusForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewGetAccessControlStatusForbidden ¶
func NewGetAccessControlStatusForbidden() *GetAccessControlStatusForbidden
NewGetAccessControlStatusForbidden creates a GetAccessControlStatusForbidden with default headers values
func (*GetAccessControlStatusForbidden) Error ¶
func (o *GetAccessControlStatusForbidden) Error() string
func (*GetAccessControlStatusForbidden) GetPayload ¶
func (o *GetAccessControlStatusForbidden) GetPayload() *models.ErrorResponseBody
type GetAccessControlStatusInternalServerError ¶
type GetAccessControlStatusInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetAccessControlStatusInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetAccessControlStatusInternalServerError ¶
func NewGetAccessControlStatusInternalServerError() *GetAccessControlStatusInternalServerError
NewGetAccessControlStatusInternalServerError creates a GetAccessControlStatusInternalServerError with default headers values
func (*GetAccessControlStatusInternalServerError) Error ¶
func (o *GetAccessControlStatusInternalServerError) Error() string
func (*GetAccessControlStatusInternalServerError) GetPayload ¶
func (o *GetAccessControlStatusInternalServerError) GetPayload() *models.ErrorResponseBody
type GetAccessControlStatusNotFound ¶
type GetAccessControlStatusNotFound struct {
Payload *models.ErrorResponseBody
}
GetAccessControlStatusNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewGetAccessControlStatusNotFound ¶
func NewGetAccessControlStatusNotFound() *GetAccessControlStatusNotFound
NewGetAccessControlStatusNotFound creates a GetAccessControlStatusNotFound with default headers values
func (*GetAccessControlStatusNotFound) Error ¶
func (o *GetAccessControlStatusNotFound) Error() string
func (*GetAccessControlStatusNotFound) GetPayload ¶
func (o *GetAccessControlStatusNotFound) GetPayload() *models.ErrorResponseBody
type GetAccessControlStatusOK ¶
GetAccessControlStatusOK describes a response with status code 200, with default header values.
(empty)
func NewGetAccessControlStatusOK ¶
func NewGetAccessControlStatusOK() *GetAccessControlStatusOK
NewGetAccessControlStatusOK creates a GetAccessControlStatusOK with default headers values
func (*GetAccessControlStatusOK) Error ¶
func (o *GetAccessControlStatusOK) Error() string
func (*GetAccessControlStatusOK) GetPayload ¶
func (o *GetAccessControlStatusOK) GetPayload() models.Status
type GetAccessControlStatusParams ¶
type GetAccessControlStatusParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAccessControlStatusParams contains all the parameters to send to the API endpoint
for the get access control status operation. Typically these are written to a http.Request.
func NewGetAccessControlStatusParams ¶
func NewGetAccessControlStatusParams() *GetAccessControlStatusParams
NewGetAccessControlStatusParams creates a new GetAccessControlStatusParams 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 NewGetAccessControlStatusParamsWithContext ¶
func NewGetAccessControlStatusParamsWithContext(ctx context.Context) *GetAccessControlStatusParams
NewGetAccessControlStatusParamsWithContext creates a new GetAccessControlStatusParams object with the ability to set a context for a request.
func NewGetAccessControlStatusParamsWithHTTPClient ¶
func NewGetAccessControlStatusParamsWithHTTPClient(client *http.Client) *GetAccessControlStatusParams
NewGetAccessControlStatusParamsWithHTTPClient creates a new GetAccessControlStatusParams object with the ability to set a custom HTTPClient for a request.
func NewGetAccessControlStatusParamsWithTimeout ¶
func NewGetAccessControlStatusParamsWithTimeout(timeout time.Duration) *GetAccessControlStatusParams
NewGetAccessControlStatusParamsWithTimeout creates a new GetAccessControlStatusParams object with the ability to set a timeout on a request.
func (*GetAccessControlStatusParams) SetContext ¶
func (o *GetAccessControlStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the get access control status params
func (*GetAccessControlStatusParams) SetDefaults ¶
func (o *GetAccessControlStatusParams) SetDefaults()
SetDefaults hydrates default values in the get access control status params (not the query body).
All values with no default are reset to their zero value.
func (*GetAccessControlStatusParams) SetHTTPClient ¶
func (o *GetAccessControlStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get access control status params
func (*GetAccessControlStatusParams) SetTimeout ¶
func (o *GetAccessControlStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get access control status params
func (*GetAccessControlStatusParams) WithContext ¶
func (o *GetAccessControlStatusParams) WithContext(ctx context.Context) *GetAccessControlStatusParams
WithContext adds the context to the get access control status params
func (*GetAccessControlStatusParams) WithDefaults ¶
func (o *GetAccessControlStatusParams) WithDefaults() *GetAccessControlStatusParams
WithDefaults hydrates default values in the get access control status params (not the query body).
All values with no default are reset to their zero value.
func (*GetAccessControlStatusParams) WithHTTPClient ¶
func (o *GetAccessControlStatusParams) WithHTTPClient(client *http.Client) *GetAccessControlStatusParams
WithHTTPClient adds the HTTPClient to the get access control status params
func (*GetAccessControlStatusParams) WithTimeout ¶
func (o *GetAccessControlStatusParams) WithTimeout(timeout time.Duration) *GetAccessControlStatusParams
WithTimeout adds the timeout to the get access control status params
func (*GetAccessControlStatusParams) WriteToRequest ¶
func (o *GetAccessControlStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAccessControlStatusReader ¶
type GetAccessControlStatusReader struct {
// contains filtered or unexported fields
}
GetAccessControlStatusReader is a Reader for the GetAccessControlStatus structure.
func (*GetAccessControlStatusReader) ReadResponse ¶
func (o *GetAccessControlStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRoleAssignmentsForbidden ¶
type GetRoleAssignmentsForbidden struct {
Payload *models.ErrorResponseBody
}
GetRoleAssignmentsForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewGetRoleAssignmentsForbidden ¶
func NewGetRoleAssignmentsForbidden() *GetRoleAssignmentsForbidden
NewGetRoleAssignmentsForbidden creates a GetRoleAssignmentsForbidden with default headers values
func (*GetRoleAssignmentsForbidden) Error ¶
func (o *GetRoleAssignmentsForbidden) Error() string
func (*GetRoleAssignmentsForbidden) GetPayload ¶
func (o *GetRoleAssignmentsForbidden) GetPayload() *models.ErrorResponseBody
type GetRoleAssignmentsInternalServerError ¶
type GetRoleAssignmentsInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetRoleAssignmentsInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetRoleAssignmentsInternalServerError ¶
func NewGetRoleAssignmentsInternalServerError() *GetRoleAssignmentsInternalServerError
NewGetRoleAssignmentsInternalServerError creates a GetRoleAssignmentsInternalServerError with default headers values
func (*GetRoleAssignmentsInternalServerError) Error ¶
func (o *GetRoleAssignmentsInternalServerError) Error() string
func (*GetRoleAssignmentsInternalServerError) GetPayload ¶
func (o *GetRoleAssignmentsInternalServerError) GetPayload() *models.ErrorResponseBody
type GetRoleAssignmentsNotFound ¶
type GetRoleAssignmentsNotFound struct {
Payload *models.ErrorResponseBody
}
GetRoleAssignmentsNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewGetRoleAssignmentsNotFound ¶
func NewGetRoleAssignmentsNotFound() *GetRoleAssignmentsNotFound
NewGetRoleAssignmentsNotFound creates a GetRoleAssignmentsNotFound with default headers values
func (*GetRoleAssignmentsNotFound) Error ¶
func (o *GetRoleAssignmentsNotFound) Error() string
func (*GetRoleAssignmentsNotFound) GetPayload ¶
func (o *GetRoleAssignmentsNotFound) GetPayload() *models.ErrorResponseBody
type GetRoleAssignmentsOK ¶
type GetRoleAssignmentsOK struct {
Payload *models.RoleAssignmentsDTO
}
GetRoleAssignmentsOK describes a response with status code 200, with default header values.
(empty)
func NewGetRoleAssignmentsOK ¶
func NewGetRoleAssignmentsOK() *GetRoleAssignmentsOK
NewGetRoleAssignmentsOK creates a GetRoleAssignmentsOK with default headers values
func (*GetRoleAssignmentsOK) Error ¶
func (o *GetRoleAssignmentsOK) Error() string
func (*GetRoleAssignmentsOK) GetPayload ¶
func (o *GetRoleAssignmentsOK) GetPayload() *models.RoleAssignmentsDTO
type GetRoleAssignmentsParams ¶
type GetRoleAssignmentsParams struct { // RoleUID. RoleUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRoleAssignmentsParams contains all the parameters to send to the API endpoint
for the get role assignments operation. Typically these are written to a http.Request.
func NewGetRoleAssignmentsParams ¶
func NewGetRoleAssignmentsParams() *GetRoleAssignmentsParams
NewGetRoleAssignmentsParams creates a new GetRoleAssignmentsParams 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 NewGetRoleAssignmentsParamsWithContext ¶
func NewGetRoleAssignmentsParamsWithContext(ctx context.Context) *GetRoleAssignmentsParams
NewGetRoleAssignmentsParamsWithContext creates a new GetRoleAssignmentsParams object with the ability to set a context for a request.
func NewGetRoleAssignmentsParamsWithHTTPClient ¶
func NewGetRoleAssignmentsParamsWithHTTPClient(client *http.Client) *GetRoleAssignmentsParams
NewGetRoleAssignmentsParamsWithHTTPClient creates a new GetRoleAssignmentsParams object with the ability to set a custom HTTPClient for a request.
func NewGetRoleAssignmentsParamsWithTimeout ¶
func NewGetRoleAssignmentsParamsWithTimeout(timeout time.Duration) *GetRoleAssignmentsParams
NewGetRoleAssignmentsParamsWithTimeout creates a new GetRoleAssignmentsParams object with the ability to set a timeout on a request.
func (*GetRoleAssignmentsParams) SetContext ¶
func (o *GetRoleAssignmentsParams) SetContext(ctx context.Context)
SetContext adds the context to the get role assignments params
func (*GetRoleAssignmentsParams) SetDefaults ¶
func (o *GetRoleAssignmentsParams) SetDefaults()
SetDefaults hydrates default values in the get role assignments params (not the query body).
All values with no default are reset to their zero value.
func (*GetRoleAssignmentsParams) SetHTTPClient ¶
func (o *GetRoleAssignmentsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get role assignments params
func (*GetRoleAssignmentsParams) SetRoleUID ¶
func (o *GetRoleAssignmentsParams) SetRoleUID(roleUID string)
SetRoleUID adds the roleUid to the get role assignments params
func (*GetRoleAssignmentsParams) SetTimeout ¶
func (o *GetRoleAssignmentsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get role assignments params
func (*GetRoleAssignmentsParams) WithContext ¶
func (o *GetRoleAssignmentsParams) WithContext(ctx context.Context) *GetRoleAssignmentsParams
WithContext adds the context to the get role assignments params
func (*GetRoleAssignmentsParams) WithDefaults ¶
func (o *GetRoleAssignmentsParams) WithDefaults() *GetRoleAssignmentsParams
WithDefaults hydrates default values in the get role assignments params (not the query body).
All values with no default are reset to their zero value.
func (*GetRoleAssignmentsParams) WithHTTPClient ¶
func (o *GetRoleAssignmentsParams) WithHTTPClient(client *http.Client) *GetRoleAssignmentsParams
WithHTTPClient adds the HTTPClient to the get role assignments params
func (*GetRoleAssignmentsParams) WithRoleUID ¶
func (o *GetRoleAssignmentsParams) WithRoleUID(roleUID string) *GetRoleAssignmentsParams
WithRoleUID adds the roleUID to the get role assignments params
func (*GetRoleAssignmentsParams) WithTimeout ¶
func (o *GetRoleAssignmentsParams) WithTimeout(timeout time.Duration) *GetRoleAssignmentsParams
WithTimeout adds the timeout to the get role assignments params
func (*GetRoleAssignmentsParams) WriteToRequest ¶
func (o *GetRoleAssignmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRoleAssignmentsReader ¶
type GetRoleAssignmentsReader struct {
// contains filtered or unexported fields
}
GetRoleAssignmentsReader is a Reader for the GetRoleAssignments structure.
func (*GetRoleAssignmentsReader) ReadResponse ¶
func (o *GetRoleAssignmentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRoleForbidden ¶
type GetRoleForbidden struct {
Payload *models.ErrorResponseBody
}
GetRoleForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewGetRoleForbidden ¶
func NewGetRoleForbidden() *GetRoleForbidden
NewGetRoleForbidden creates a GetRoleForbidden with default headers values
func (*GetRoleForbidden) Error ¶
func (o *GetRoleForbidden) Error() string
func (*GetRoleForbidden) GetPayload ¶
func (o *GetRoleForbidden) GetPayload() *models.ErrorResponseBody
type GetRoleInternalServerError ¶
type GetRoleInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetRoleInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetRoleInternalServerError ¶
func NewGetRoleInternalServerError() *GetRoleInternalServerError
NewGetRoleInternalServerError creates a GetRoleInternalServerError with default headers values
func (*GetRoleInternalServerError) Error ¶
func (o *GetRoleInternalServerError) Error() string
func (*GetRoleInternalServerError) GetPayload ¶
func (o *GetRoleInternalServerError) GetPayload() *models.ErrorResponseBody
type GetRoleOK ¶
GetRoleOK describes a response with status code 200, with default header values.
(empty)
func NewGetRoleOK ¶
func NewGetRoleOK() *GetRoleOK
NewGetRoleOK creates a GetRoleOK with default headers values
func (*GetRoleOK) GetPayload ¶
type GetRoleParams ¶
type GetRoleParams struct { // RoleUID. RoleUID 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) SetRoleUID ¶
func (o *GetRoleParams) SetRoleUID(roleUID string)
SetRoleUID adds the roleUid 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) WithRoleUID ¶
func (o *GetRoleParams) WithRoleUID(roleUID string) *GetRoleParams
WithRoleUID adds the roleUID 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 ListRolesForbidden ¶
type ListRolesForbidden struct {
Payload *models.ErrorResponseBody
}
ListRolesForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewListRolesForbidden ¶
func NewListRolesForbidden() *ListRolesForbidden
NewListRolesForbidden creates a ListRolesForbidden with default headers values
func (*ListRolesForbidden) Error ¶
func (o *ListRolesForbidden) Error() string
func (*ListRolesForbidden) GetPayload ¶
func (o *ListRolesForbidden) GetPayload() *models.ErrorResponseBody
type ListRolesInternalServerError ¶
type ListRolesInternalServerError struct {
Payload *models.ErrorResponseBody
}
ListRolesInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewListRolesInternalServerError ¶
func NewListRolesInternalServerError() *ListRolesInternalServerError
NewListRolesInternalServerError creates a ListRolesInternalServerError with default headers values
func (*ListRolesInternalServerError) Error ¶
func (o *ListRolesInternalServerError) Error() string
func (*ListRolesInternalServerError) GetPayload ¶
func (o *ListRolesInternalServerError) GetPayload() *models.ErrorResponseBody
type ListRolesOK ¶
ListRolesOK describes a response with status code 200, with default header values.
(empty)
func NewListRolesOK ¶
func NewListRolesOK() *ListRolesOK
NewListRolesOK creates a ListRolesOK with default headers values
func (*ListRolesOK) Error ¶
func (o *ListRolesOK) Error() string
func (*ListRolesOK) GetPayload ¶
func (o *ListRolesOK) GetPayload() []*models.RoleDTO
type ListRolesParams ¶
type ListRolesParams struct { // Delegatable. Delegatable *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListRolesParams contains all the parameters to send to the API endpoint
for the list roles operation. Typically these are written to a http.Request.
func NewListRolesParams ¶
func NewListRolesParams() *ListRolesParams
NewListRolesParams creates a new ListRolesParams 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 NewListRolesParamsWithContext ¶
func NewListRolesParamsWithContext(ctx context.Context) *ListRolesParams
NewListRolesParamsWithContext creates a new ListRolesParams object with the ability to set a context for a request.
func NewListRolesParamsWithHTTPClient ¶
func NewListRolesParamsWithHTTPClient(client *http.Client) *ListRolesParams
NewListRolesParamsWithHTTPClient creates a new ListRolesParams object with the ability to set a custom HTTPClient for a request.
func NewListRolesParamsWithTimeout ¶
func NewListRolesParamsWithTimeout(timeout time.Duration) *ListRolesParams
NewListRolesParamsWithTimeout creates a new ListRolesParams object with the ability to set a timeout on a request.
func (*ListRolesParams) SetContext ¶
func (o *ListRolesParams) SetContext(ctx context.Context)
SetContext adds the context to the list roles params
func (*ListRolesParams) SetDefaults ¶
func (o *ListRolesParams) SetDefaults()
SetDefaults hydrates default values in the list roles params (not the query body).
All values with no default are reset to their zero value.
func (*ListRolesParams) SetDelegatable ¶
func (o *ListRolesParams) SetDelegatable(delegatable *bool)
SetDelegatable adds the delegatable to the list roles params
func (*ListRolesParams) SetHTTPClient ¶
func (o *ListRolesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list roles params
func (*ListRolesParams) SetTimeout ¶
func (o *ListRolesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list roles params
func (*ListRolesParams) WithContext ¶
func (o *ListRolesParams) WithContext(ctx context.Context) *ListRolesParams
WithContext adds the context to the list roles params
func (*ListRolesParams) WithDefaults ¶
func (o *ListRolesParams) WithDefaults() *ListRolesParams
WithDefaults hydrates default values in the list roles params (not the query body).
All values with no default are reset to their zero value.
func (*ListRolesParams) WithDelegatable ¶
func (o *ListRolesParams) WithDelegatable(delegatable *bool) *ListRolesParams
WithDelegatable adds the delegatable to the list roles params
func (*ListRolesParams) WithHTTPClient ¶
func (o *ListRolesParams) WithHTTPClient(client *http.Client) *ListRolesParams
WithHTTPClient adds the HTTPClient to the list roles params
func (*ListRolesParams) WithTimeout ¶
func (o *ListRolesParams) WithTimeout(timeout time.Duration) *ListRolesParams
WithTimeout adds the timeout to the list roles params
func (*ListRolesParams) WriteToRequest ¶
func (o *ListRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListRolesReader ¶
type ListRolesReader struct {
// contains filtered or unexported fields
}
ListRolesReader is a Reader for the ListRoles structure.
func (*ListRolesReader) ReadResponse ¶
func (o *ListRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListTeamRolesBadRequest ¶
type ListTeamRolesBadRequest struct {
Payload *models.ErrorResponseBody
}
ListTeamRolesBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewListTeamRolesBadRequest ¶
func NewListTeamRolesBadRequest() *ListTeamRolesBadRequest
NewListTeamRolesBadRequest creates a ListTeamRolesBadRequest with default headers values
func (*ListTeamRolesBadRequest) Error ¶
func (o *ListTeamRolesBadRequest) Error() string
func (*ListTeamRolesBadRequest) GetPayload ¶
func (o *ListTeamRolesBadRequest) GetPayload() *models.ErrorResponseBody
type ListTeamRolesForbidden ¶
type ListTeamRolesForbidden struct {
Payload *models.ErrorResponseBody
}
ListTeamRolesForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewListTeamRolesForbidden ¶
func NewListTeamRolesForbidden() *ListTeamRolesForbidden
NewListTeamRolesForbidden creates a ListTeamRolesForbidden with default headers values
func (*ListTeamRolesForbidden) Error ¶
func (o *ListTeamRolesForbidden) Error() string
func (*ListTeamRolesForbidden) GetPayload ¶
func (o *ListTeamRolesForbidden) GetPayload() *models.ErrorResponseBody
type ListTeamRolesInternalServerError ¶
type ListTeamRolesInternalServerError struct {
Payload *models.ErrorResponseBody
}
ListTeamRolesInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewListTeamRolesInternalServerError ¶
func NewListTeamRolesInternalServerError() *ListTeamRolesInternalServerError
NewListTeamRolesInternalServerError creates a ListTeamRolesInternalServerError with default headers values
func (*ListTeamRolesInternalServerError) Error ¶
func (o *ListTeamRolesInternalServerError) Error() string
func (*ListTeamRolesInternalServerError) GetPayload ¶
func (o *ListTeamRolesInternalServerError) GetPayload() *models.ErrorResponseBody
type ListTeamRolesOK ¶
type ListTeamRolesOK struct {
Payload *models.SuccessResponseBody
}
ListTeamRolesOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewListTeamRolesOK ¶
func NewListTeamRolesOK() *ListTeamRolesOK
NewListTeamRolesOK creates a ListTeamRolesOK with default headers values
func (*ListTeamRolesOK) Error ¶
func (o *ListTeamRolesOK) Error() string
func (*ListTeamRolesOK) GetPayload ¶
func (o *ListTeamRolesOK) GetPayload() *models.SuccessResponseBody
type ListTeamRolesParams ¶
type ListTeamRolesParams struct { // TeamID. // // Format: int64 TeamID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListTeamRolesParams contains all the parameters to send to the API endpoint
for the list team roles operation. Typically these are written to a http.Request.
func NewListTeamRolesParams ¶
func NewListTeamRolesParams() *ListTeamRolesParams
NewListTeamRolesParams creates a new ListTeamRolesParams 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 NewListTeamRolesParamsWithContext ¶
func NewListTeamRolesParamsWithContext(ctx context.Context) *ListTeamRolesParams
NewListTeamRolesParamsWithContext creates a new ListTeamRolesParams object with the ability to set a context for a request.
func NewListTeamRolesParamsWithHTTPClient ¶
func NewListTeamRolesParamsWithHTTPClient(client *http.Client) *ListTeamRolesParams
NewListTeamRolesParamsWithHTTPClient creates a new ListTeamRolesParams object with the ability to set a custom HTTPClient for a request.
func NewListTeamRolesParamsWithTimeout ¶
func NewListTeamRolesParamsWithTimeout(timeout time.Duration) *ListTeamRolesParams
NewListTeamRolesParamsWithTimeout creates a new ListTeamRolesParams object with the ability to set a timeout on a request.
func (*ListTeamRolesParams) SetContext ¶
func (o *ListTeamRolesParams) SetContext(ctx context.Context)
SetContext adds the context to the list team roles params
func (*ListTeamRolesParams) SetDefaults ¶
func (o *ListTeamRolesParams) SetDefaults()
SetDefaults hydrates default values in the list team roles params (not the query body).
All values with no default are reset to their zero value.
func (*ListTeamRolesParams) SetHTTPClient ¶
func (o *ListTeamRolesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list team roles params
func (*ListTeamRolesParams) SetTeamID ¶
func (o *ListTeamRolesParams) SetTeamID(teamID int64)
SetTeamID adds the teamId to the list team roles params
func (*ListTeamRolesParams) SetTimeout ¶
func (o *ListTeamRolesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list team roles params
func (*ListTeamRolesParams) WithContext ¶
func (o *ListTeamRolesParams) WithContext(ctx context.Context) *ListTeamRolesParams
WithContext adds the context to the list team roles params
func (*ListTeamRolesParams) WithDefaults ¶
func (o *ListTeamRolesParams) WithDefaults() *ListTeamRolesParams
WithDefaults hydrates default values in the list team roles params (not the query body).
All values with no default are reset to their zero value.
func (*ListTeamRolesParams) WithHTTPClient ¶
func (o *ListTeamRolesParams) WithHTTPClient(client *http.Client) *ListTeamRolesParams
WithHTTPClient adds the HTTPClient to the list team roles params
func (*ListTeamRolesParams) WithTeamID ¶
func (o *ListTeamRolesParams) WithTeamID(teamID int64) *ListTeamRolesParams
WithTeamID adds the teamID to the list team roles params
func (*ListTeamRolesParams) WithTimeout ¶
func (o *ListTeamRolesParams) WithTimeout(timeout time.Duration) *ListTeamRolesParams
WithTimeout adds the timeout to the list team roles params
func (*ListTeamRolesParams) WriteToRequest ¶
func (o *ListTeamRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListTeamRolesReader ¶
type ListTeamRolesReader struct {
// contains filtered or unexported fields
}
ListTeamRolesReader is a Reader for the ListTeamRoles structure.
func (*ListTeamRolesReader) ReadResponse ¶
func (o *ListTeamRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListUserRolesBadRequest ¶
type ListUserRolesBadRequest struct {
Payload *models.ErrorResponseBody
}
ListUserRolesBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewListUserRolesBadRequest ¶
func NewListUserRolesBadRequest() *ListUserRolesBadRequest
NewListUserRolesBadRequest creates a ListUserRolesBadRequest with default headers values
func (*ListUserRolesBadRequest) Error ¶
func (o *ListUserRolesBadRequest) Error() string
func (*ListUserRolesBadRequest) GetPayload ¶
func (o *ListUserRolesBadRequest) GetPayload() *models.ErrorResponseBody
type ListUserRolesForbidden ¶
type ListUserRolesForbidden struct {
Payload *models.ErrorResponseBody
}
ListUserRolesForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewListUserRolesForbidden ¶
func NewListUserRolesForbidden() *ListUserRolesForbidden
NewListUserRolesForbidden creates a ListUserRolesForbidden with default headers values
func (*ListUserRolesForbidden) Error ¶
func (o *ListUserRolesForbidden) Error() string
func (*ListUserRolesForbidden) GetPayload ¶
func (o *ListUserRolesForbidden) GetPayload() *models.ErrorResponseBody
type ListUserRolesInternalServerError ¶
type ListUserRolesInternalServerError struct {
Payload *models.ErrorResponseBody
}
ListUserRolesInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewListUserRolesInternalServerError ¶
func NewListUserRolesInternalServerError() *ListUserRolesInternalServerError
NewListUserRolesInternalServerError creates a ListUserRolesInternalServerError with default headers values
func (*ListUserRolesInternalServerError) Error ¶
func (o *ListUserRolesInternalServerError) Error() string
func (*ListUserRolesInternalServerError) GetPayload ¶
func (o *ListUserRolesInternalServerError) GetPayload() *models.ErrorResponseBody
type ListUserRolesOK ¶
ListUserRolesOK describes a response with status code 200, with default header values.
(empty)
func NewListUserRolesOK ¶
func NewListUserRolesOK() *ListUserRolesOK
NewListUserRolesOK creates a ListUserRolesOK with default headers values
func (*ListUserRolesOK) Error ¶
func (o *ListUserRolesOK) Error() string
func (*ListUserRolesOK) GetPayload ¶
func (o *ListUserRolesOK) GetPayload() []*models.RoleDTO
type ListUserRolesParams ¶
type ListUserRolesParams struct { // UserID. // // Format: int64 UserID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListUserRolesParams contains all the parameters to send to the API endpoint
for the list user roles operation. Typically these are written to a http.Request.
func NewListUserRolesParams ¶
func NewListUserRolesParams() *ListUserRolesParams
NewListUserRolesParams creates a new ListUserRolesParams 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 NewListUserRolesParamsWithContext ¶
func NewListUserRolesParamsWithContext(ctx context.Context) *ListUserRolesParams
NewListUserRolesParamsWithContext creates a new ListUserRolesParams object with the ability to set a context for a request.
func NewListUserRolesParamsWithHTTPClient ¶
func NewListUserRolesParamsWithHTTPClient(client *http.Client) *ListUserRolesParams
NewListUserRolesParamsWithHTTPClient creates a new ListUserRolesParams object with the ability to set a custom HTTPClient for a request.
func NewListUserRolesParamsWithTimeout ¶
func NewListUserRolesParamsWithTimeout(timeout time.Duration) *ListUserRolesParams
NewListUserRolesParamsWithTimeout creates a new ListUserRolesParams object with the ability to set a timeout on a request.
func (*ListUserRolesParams) SetContext ¶
func (o *ListUserRolesParams) SetContext(ctx context.Context)
SetContext adds the context to the list user roles params
func (*ListUserRolesParams) SetDefaults ¶
func (o *ListUserRolesParams) SetDefaults()
SetDefaults hydrates default values in the list user roles params (not the query body).
All values with no default are reset to their zero value.
func (*ListUserRolesParams) SetHTTPClient ¶
func (o *ListUserRolesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list user roles params
func (*ListUserRolesParams) SetTimeout ¶
func (o *ListUserRolesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list user roles params
func (*ListUserRolesParams) SetUserID ¶
func (o *ListUserRolesParams) SetUserID(userID int64)
SetUserID adds the userId to the list user roles params
func (*ListUserRolesParams) WithContext ¶
func (o *ListUserRolesParams) WithContext(ctx context.Context) *ListUserRolesParams
WithContext adds the context to the list user roles params
func (*ListUserRolesParams) WithDefaults ¶
func (o *ListUserRolesParams) WithDefaults() *ListUserRolesParams
WithDefaults hydrates default values in the list user roles params (not the query body).
All values with no default are reset to their zero value.
func (*ListUserRolesParams) WithHTTPClient ¶
func (o *ListUserRolesParams) WithHTTPClient(client *http.Client) *ListUserRolesParams
WithHTTPClient adds the HTTPClient to the list user roles params
func (*ListUserRolesParams) WithTimeout ¶
func (o *ListUserRolesParams) WithTimeout(timeout time.Duration) *ListUserRolesParams
WithTimeout adds the timeout to the list user roles params
func (*ListUserRolesParams) WithUserID ¶
func (o *ListUserRolesParams) WithUserID(userID int64) *ListUserRolesParams
WithUserID adds the userID to the list user roles params
func (*ListUserRolesParams) WriteToRequest ¶
func (o *ListUserRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListUserRolesReader ¶
type ListUserRolesReader struct {
// contains filtered or unexported fields
}
ListUserRolesReader is a Reader for the ListUserRoles structure.
func (*ListUserRolesReader) ReadResponse ¶
func (o *ListUserRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemoveTeamRoleBadRequest ¶
type RemoveTeamRoleBadRequest struct {
Payload *models.ErrorResponseBody
}
RemoveTeamRoleBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewRemoveTeamRoleBadRequest ¶
func NewRemoveTeamRoleBadRequest() *RemoveTeamRoleBadRequest
NewRemoveTeamRoleBadRequest creates a RemoveTeamRoleBadRequest with default headers values
func (*RemoveTeamRoleBadRequest) Error ¶
func (o *RemoveTeamRoleBadRequest) Error() string
func (*RemoveTeamRoleBadRequest) GetPayload ¶
func (o *RemoveTeamRoleBadRequest) GetPayload() *models.ErrorResponseBody
type RemoveTeamRoleForbidden ¶
type RemoveTeamRoleForbidden struct {
Payload *models.ErrorResponseBody
}
RemoveTeamRoleForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewRemoveTeamRoleForbidden ¶
func NewRemoveTeamRoleForbidden() *RemoveTeamRoleForbidden
NewRemoveTeamRoleForbidden creates a RemoveTeamRoleForbidden with default headers values
func (*RemoveTeamRoleForbidden) Error ¶
func (o *RemoveTeamRoleForbidden) Error() string
func (*RemoveTeamRoleForbidden) GetPayload ¶
func (o *RemoveTeamRoleForbidden) GetPayload() *models.ErrorResponseBody
type RemoveTeamRoleInternalServerError ¶
type RemoveTeamRoleInternalServerError struct {
Payload *models.ErrorResponseBody
}
RemoveTeamRoleInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewRemoveTeamRoleInternalServerError ¶
func NewRemoveTeamRoleInternalServerError() *RemoveTeamRoleInternalServerError
NewRemoveTeamRoleInternalServerError creates a RemoveTeamRoleInternalServerError with default headers values
func (*RemoveTeamRoleInternalServerError) Error ¶
func (o *RemoveTeamRoleInternalServerError) Error() string
func (*RemoveTeamRoleInternalServerError) GetPayload ¶
func (o *RemoveTeamRoleInternalServerError) GetPayload() *models.ErrorResponseBody
type RemoveTeamRoleNotFound ¶
type RemoveTeamRoleNotFound struct {
Payload *models.ErrorResponseBody
}
RemoveTeamRoleNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewRemoveTeamRoleNotFound ¶
func NewRemoveTeamRoleNotFound() *RemoveTeamRoleNotFound
NewRemoveTeamRoleNotFound creates a RemoveTeamRoleNotFound with default headers values
func (*RemoveTeamRoleNotFound) Error ¶
func (o *RemoveTeamRoleNotFound) Error() string
func (*RemoveTeamRoleNotFound) GetPayload ¶
func (o *RemoveTeamRoleNotFound) GetPayload() *models.ErrorResponseBody
type RemoveTeamRoleOK ¶
type RemoveTeamRoleOK struct {
Payload *models.SuccessResponseBody
}
RemoveTeamRoleOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewRemoveTeamRoleOK ¶
func NewRemoveTeamRoleOK() *RemoveTeamRoleOK
NewRemoveTeamRoleOK creates a RemoveTeamRoleOK with default headers values
func (*RemoveTeamRoleOK) Error ¶
func (o *RemoveTeamRoleOK) Error() string
func (*RemoveTeamRoleOK) GetPayload ¶
func (o *RemoveTeamRoleOK) GetPayload() *models.SuccessResponseBody
type RemoveTeamRoleParams ¶
type RemoveTeamRoleParams struct { // RoleUID. RoleUID string // TeamID. // // Format: int64 TeamID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemoveTeamRoleParams contains all the parameters to send to the API endpoint
for the remove team role operation. Typically these are written to a http.Request.
func NewRemoveTeamRoleParams ¶
func NewRemoveTeamRoleParams() *RemoveTeamRoleParams
NewRemoveTeamRoleParams creates a new RemoveTeamRoleParams 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 NewRemoveTeamRoleParamsWithContext ¶
func NewRemoveTeamRoleParamsWithContext(ctx context.Context) *RemoveTeamRoleParams
NewRemoveTeamRoleParamsWithContext creates a new RemoveTeamRoleParams object with the ability to set a context for a request.
func NewRemoveTeamRoleParamsWithHTTPClient ¶
func NewRemoveTeamRoleParamsWithHTTPClient(client *http.Client) *RemoveTeamRoleParams
NewRemoveTeamRoleParamsWithHTTPClient creates a new RemoveTeamRoleParams object with the ability to set a custom HTTPClient for a request.
func NewRemoveTeamRoleParamsWithTimeout ¶
func NewRemoveTeamRoleParamsWithTimeout(timeout time.Duration) *RemoveTeamRoleParams
NewRemoveTeamRoleParamsWithTimeout creates a new RemoveTeamRoleParams object with the ability to set a timeout on a request.
func (*RemoveTeamRoleParams) SetContext ¶
func (o *RemoveTeamRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the remove team role params
func (*RemoveTeamRoleParams) SetDefaults ¶
func (o *RemoveTeamRoleParams) SetDefaults()
SetDefaults hydrates default values in the remove team role params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveTeamRoleParams) SetHTTPClient ¶
func (o *RemoveTeamRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove team role params
func (*RemoveTeamRoleParams) SetRoleUID ¶
func (o *RemoveTeamRoleParams) SetRoleUID(roleUID string)
SetRoleUID adds the roleUid to the remove team role params
func (*RemoveTeamRoleParams) SetTeamID ¶
func (o *RemoveTeamRoleParams) SetTeamID(teamID int64)
SetTeamID adds the teamId to the remove team role params
func (*RemoveTeamRoleParams) SetTimeout ¶
func (o *RemoveTeamRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove team role params
func (*RemoveTeamRoleParams) WithContext ¶
func (o *RemoveTeamRoleParams) WithContext(ctx context.Context) *RemoveTeamRoleParams
WithContext adds the context to the remove team role params
func (*RemoveTeamRoleParams) WithDefaults ¶
func (o *RemoveTeamRoleParams) WithDefaults() *RemoveTeamRoleParams
WithDefaults hydrates default values in the remove team role params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveTeamRoleParams) WithHTTPClient ¶
func (o *RemoveTeamRoleParams) WithHTTPClient(client *http.Client) *RemoveTeamRoleParams
WithHTTPClient adds the HTTPClient to the remove team role params
func (*RemoveTeamRoleParams) WithRoleUID ¶
func (o *RemoveTeamRoleParams) WithRoleUID(roleUID string) *RemoveTeamRoleParams
WithRoleUID adds the roleUID to the remove team role params
func (*RemoveTeamRoleParams) WithTeamID ¶
func (o *RemoveTeamRoleParams) WithTeamID(teamID int64) *RemoveTeamRoleParams
WithTeamID adds the teamID to the remove team role params
func (*RemoveTeamRoleParams) WithTimeout ¶
func (o *RemoveTeamRoleParams) WithTimeout(timeout time.Duration) *RemoveTeamRoleParams
WithTimeout adds the timeout to the remove team role params
func (*RemoveTeamRoleParams) WriteToRequest ¶
func (o *RemoveTeamRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemoveTeamRoleReader ¶
type RemoveTeamRoleReader struct {
// contains filtered or unexported fields
}
RemoveTeamRoleReader is a Reader for the RemoveTeamRole structure.
func (*RemoveTeamRoleReader) ReadResponse ¶
func (o *RemoveTeamRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemoveUserRoleBadRequest ¶
type RemoveUserRoleBadRequest struct {
Payload *models.ErrorResponseBody
}
RemoveUserRoleBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewRemoveUserRoleBadRequest ¶
func NewRemoveUserRoleBadRequest() *RemoveUserRoleBadRequest
NewRemoveUserRoleBadRequest creates a RemoveUserRoleBadRequest with default headers values
func (*RemoveUserRoleBadRequest) Error ¶
func (o *RemoveUserRoleBadRequest) Error() string
func (*RemoveUserRoleBadRequest) GetPayload ¶
func (o *RemoveUserRoleBadRequest) GetPayload() *models.ErrorResponseBody
type RemoveUserRoleForbidden ¶
type RemoveUserRoleForbidden struct {
Payload *models.ErrorResponseBody
}
RemoveUserRoleForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewRemoveUserRoleForbidden ¶
func NewRemoveUserRoleForbidden() *RemoveUserRoleForbidden
NewRemoveUserRoleForbidden creates a RemoveUserRoleForbidden with default headers values
func (*RemoveUserRoleForbidden) Error ¶
func (o *RemoveUserRoleForbidden) Error() string
func (*RemoveUserRoleForbidden) GetPayload ¶
func (o *RemoveUserRoleForbidden) GetPayload() *models.ErrorResponseBody
type RemoveUserRoleInternalServerError ¶
type RemoveUserRoleInternalServerError struct {
Payload *models.ErrorResponseBody
}
RemoveUserRoleInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewRemoveUserRoleInternalServerError ¶
func NewRemoveUserRoleInternalServerError() *RemoveUserRoleInternalServerError
NewRemoveUserRoleInternalServerError creates a RemoveUserRoleInternalServerError with default headers values
func (*RemoveUserRoleInternalServerError) Error ¶
func (o *RemoveUserRoleInternalServerError) Error() string
func (*RemoveUserRoleInternalServerError) GetPayload ¶
func (o *RemoveUserRoleInternalServerError) GetPayload() *models.ErrorResponseBody
type RemoveUserRoleNotFound ¶
type RemoveUserRoleNotFound struct {
Payload *models.ErrorResponseBody
}
RemoveUserRoleNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewRemoveUserRoleNotFound ¶
func NewRemoveUserRoleNotFound() *RemoveUserRoleNotFound
NewRemoveUserRoleNotFound creates a RemoveUserRoleNotFound with default headers values
func (*RemoveUserRoleNotFound) Error ¶
func (o *RemoveUserRoleNotFound) Error() string
func (*RemoveUserRoleNotFound) GetPayload ¶
func (o *RemoveUserRoleNotFound) GetPayload() *models.ErrorResponseBody
type RemoveUserRoleOK ¶
type RemoveUserRoleOK struct {
Payload *models.SuccessResponseBody
}
RemoveUserRoleOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewRemoveUserRoleOK ¶
func NewRemoveUserRoleOK() *RemoveUserRoleOK
NewRemoveUserRoleOK creates a RemoveUserRoleOK with default headers values
func (*RemoveUserRoleOK) Error ¶
func (o *RemoveUserRoleOK) Error() string
func (*RemoveUserRoleOK) GetPayload ¶
func (o *RemoveUserRoleOK) GetPayload() *models.SuccessResponseBody
type RemoveUserRoleParams ¶
type RemoveUserRoleParams struct { /* Global. A flag indicating if the assignment is global or not. If set to false, the default org ID of the authenticated user will be used from the request to remove assignment. */ Global *bool // RoleUID. RoleUID string // UserID. // // Format: int64 UserID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemoveUserRoleParams contains all the parameters to send to the API endpoint
for the remove user role operation. Typically these are written to a http.Request.
func NewRemoveUserRoleParams ¶
func NewRemoveUserRoleParams() *RemoveUserRoleParams
NewRemoveUserRoleParams creates a new RemoveUserRoleParams 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 NewRemoveUserRoleParamsWithContext ¶
func NewRemoveUserRoleParamsWithContext(ctx context.Context) *RemoveUserRoleParams
NewRemoveUserRoleParamsWithContext creates a new RemoveUserRoleParams object with the ability to set a context for a request.
func NewRemoveUserRoleParamsWithHTTPClient ¶
func NewRemoveUserRoleParamsWithHTTPClient(client *http.Client) *RemoveUserRoleParams
NewRemoveUserRoleParamsWithHTTPClient creates a new RemoveUserRoleParams object with the ability to set a custom HTTPClient for a request.
func NewRemoveUserRoleParamsWithTimeout ¶
func NewRemoveUserRoleParamsWithTimeout(timeout time.Duration) *RemoveUserRoleParams
NewRemoveUserRoleParamsWithTimeout creates a new RemoveUserRoleParams object with the ability to set a timeout on a request.
func (*RemoveUserRoleParams) SetContext ¶
func (o *RemoveUserRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the remove user role params
func (*RemoveUserRoleParams) SetDefaults ¶
func (o *RemoveUserRoleParams) SetDefaults()
SetDefaults hydrates default values in the remove user role params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveUserRoleParams) SetGlobal ¶
func (o *RemoveUserRoleParams) SetGlobal(global *bool)
SetGlobal adds the global to the remove user role params
func (*RemoveUserRoleParams) SetHTTPClient ¶
func (o *RemoveUserRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove user role params
func (*RemoveUserRoleParams) SetRoleUID ¶
func (o *RemoveUserRoleParams) SetRoleUID(roleUID string)
SetRoleUID adds the roleUid to the remove user role params
func (*RemoveUserRoleParams) SetTimeout ¶
func (o *RemoveUserRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove user role params
func (*RemoveUserRoleParams) SetUserID ¶
func (o *RemoveUserRoleParams) SetUserID(userID int64)
SetUserID adds the userId to the remove user role params
func (*RemoveUserRoleParams) WithContext ¶
func (o *RemoveUserRoleParams) WithContext(ctx context.Context) *RemoveUserRoleParams
WithContext adds the context to the remove user role params
func (*RemoveUserRoleParams) WithDefaults ¶
func (o *RemoveUserRoleParams) WithDefaults() *RemoveUserRoleParams
WithDefaults hydrates default values in the remove user role params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveUserRoleParams) WithGlobal ¶
func (o *RemoveUserRoleParams) WithGlobal(global *bool) *RemoveUserRoleParams
WithGlobal adds the global to the remove user role params
func (*RemoveUserRoleParams) WithHTTPClient ¶
func (o *RemoveUserRoleParams) WithHTTPClient(client *http.Client) *RemoveUserRoleParams
WithHTTPClient adds the HTTPClient to the remove user role params
func (*RemoveUserRoleParams) WithRoleUID ¶
func (o *RemoveUserRoleParams) WithRoleUID(roleUID string) *RemoveUserRoleParams
WithRoleUID adds the roleUID to the remove user role params
func (*RemoveUserRoleParams) WithTimeout ¶
func (o *RemoveUserRoleParams) WithTimeout(timeout time.Duration) *RemoveUserRoleParams
WithTimeout adds the timeout to the remove user role params
func (*RemoveUserRoleParams) WithUserID ¶
func (o *RemoveUserRoleParams) WithUserID(userID int64) *RemoveUserRoleParams
WithUserID adds the userID to the remove user role params
func (*RemoveUserRoleParams) WriteToRequest ¶
func (o *RemoveUserRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemoveUserRoleReader ¶
type RemoveUserRoleReader struct {
// contains filtered or unexported fields
}
RemoveUserRoleReader is a Reader for the RemoveUserRole structure.
func (*RemoveUserRoleReader) ReadResponse ¶
func (o *RemoveUserRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetRoleAssignmentsForbidden ¶
type SetRoleAssignmentsForbidden struct {
Payload *models.ErrorResponseBody
}
SetRoleAssignmentsForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewSetRoleAssignmentsForbidden ¶
func NewSetRoleAssignmentsForbidden() *SetRoleAssignmentsForbidden
NewSetRoleAssignmentsForbidden creates a SetRoleAssignmentsForbidden with default headers values
func (*SetRoleAssignmentsForbidden) Error ¶
func (o *SetRoleAssignmentsForbidden) Error() string
func (*SetRoleAssignmentsForbidden) GetPayload ¶
func (o *SetRoleAssignmentsForbidden) GetPayload() *models.ErrorResponseBody
type SetRoleAssignmentsInternalServerError ¶
type SetRoleAssignmentsInternalServerError struct {
Payload *models.ErrorResponseBody
}
SetRoleAssignmentsInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewSetRoleAssignmentsInternalServerError ¶
func NewSetRoleAssignmentsInternalServerError() *SetRoleAssignmentsInternalServerError
NewSetRoleAssignmentsInternalServerError creates a SetRoleAssignmentsInternalServerError with default headers values
func (*SetRoleAssignmentsInternalServerError) Error ¶
func (o *SetRoleAssignmentsInternalServerError) Error() string
func (*SetRoleAssignmentsInternalServerError) GetPayload ¶
func (o *SetRoleAssignmentsInternalServerError) GetPayload() *models.ErrorResponseBody
type SetRoleAssignmentsNotFound ¶
type SetRoleAssignmentsNotFound struct {
Payload *models.ErrorResponseBody
}
SetRoleAssignmentsNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewSetRoleAssignmentsNotFound ¶
func NewSetRoleAssignmentsNotFound() *SetRoleAssignmentsNotFound
NewSetRoleAssignmentsNotFound creates a SetRoleAssignmentsNotFound with default headers values
func (*SetRoleAssignmentsNotFound) Error ¶
func (o *SetRoleAssignmentsNotFound) Error() string
func (*SetRoleAssignmentsNotFound) GetPayload ¶
func (o *SetRoleAssignmentsNotFound) GetPayload() *models.ErrorResponseBody
type SetRoleAssignmentsOK ¶
type SetRoleAssignmentsOK struct {
Payload *models.RoleAssignmentsDTO
}
SetRoleAssignmentsOK describes a response with status code 200, with default header values.
(empty)
func NewSetRoleAssignmentsOK ¶
func NewSetRoleAssignmentsOK() *SetRoleAssignmentsOK
NewSetRoleAssignmentsOK creates a SetRoleAssignmentsOK with default headers values
func (*SetRoleAssignmentsOK) Error ¶
func (o *SetRoleAssignmentsOK) Error() string
func (*SetRoleAssignmentsOK) GetPayload ¶
func (o *SetRoleAssignmentsOK) GetPayload() *models.RoleAssignmentsDTO
type SetRoleAssignmentsParams ¶
type SetRoleAssignmentsParams struct { // Body. Body *models.SetRoleAssignmentsCommand // RoleUID. RoleUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetRoleAssignmentsParams contains all the parameters to send to the API endpoint
for the set role assignments operation. Typically these are written to a http.Request.
func NewSetRoleAssignmentsParams ¶
func NewSetRoleAssignmentsParams() *SetRoleAssignmentsParams
NewSetRoleAssignmentsParams creates a new SetRoleAssignmentsParams 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 NewSetRoleAssignmentsParamsWithContext ¶
func NewSetRoleAssignmentsParamsWithContext(ctx context.Context) *SetRoleAssignmentsParams
NewSetRoleAssignmentsParamsWithContext creates a new SetRoleAssignmentsParams object with the ability to set a context for a request.
func NewSetRoleAssignmentsParamsWithHTTPClient ¶
func NewSetRoleAssignmentsParamsWithHTTPClient(client *http.Client) *SetRoleAssignmentsParams
NewSetRoleAssignmentsParamsWithHTTPClient creates a new SetRoleAssignmentsParams object with the ability to set a custom HTTPClient for a request.
func NewSetRoleAssignmentsParamsWithTimeout ¶
func NewSetRoleAssignmentsParamsWithTimeout(timeout time.Duration) *SetRoleAssignmentsParams
NewSetRoleAssignmentsParamsWithTimeout creates a new SetRoleAssignmentsParams object with the ability to set a timeout on a request.
func (*SetRoleAssignmentsParams) SetBody ¶
func (o *SetRoleAssignmentsParams) SetBody(body *models.SetRoleAssignmentsCommand)
SetBody adds the body to the set role assignments params
func (*SetRoleAssignmentsParams) SetContext ¶
func (o *SetRoleAssignmentsParams) SetContext(ctx context.Context)
SetContext adds the context to the set role assignments params
func (*SetRoleAssignmentsParams) SetDefaults ¶
func (o *SetRoleAssignmentsParams) SetDefaults()
SetDefaults hydrates default values in the set role assignments params (not the query body).
All values with no default are reset to their zero value.
func (*SetRoleAssignmentsParams) SetHTTPClient ¶
func (o *SetRoleAssignmentsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set role assignments params
func (*SetRoleAssignmentsParams) SetRoleUID ¶
func (o *SetRoleAssignmentsParams) SetRoleUID(roleUID string)
SetRoleUID adds the roleUid to the set role assignments params
func (*SetRoleAssignmentsParams) SetTimeout ¶
func (o *SetRoleAssignmentsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set role assignments params
func (*SetRoleAssignmentsParams) WithBody ¶
func (o *SetRoleAssignmentsParams) WithBody(body *models.SetRoleAssignmentsCommand) *SetRoleAssignmentsParams
WithBody adds the body to the set role assignments params
func (*SetRoleAssignmentsParams) WithContext ¶
func (o *SetRoleAssignmentsParams) WithContext(ctx context.Context) *SetRoleAssignmentsParams
WithContext adds the context to the set role assignments params
func (*SetRoleAssignmentsParams) WithDefaults ¶
func (o *SetRoleAssignmentsParams) WithDefaults() *SetRoleAssignmentsParams
WithDefaults hydrates default values in the set role assignments params (not the query body).
All values with no default are reset to their zero value.
func (*SetRoleAssignmentsParams) WithHTTPClient ¶
func (o *SetRoleAssignmentsParams) WithHTTPClient(client *http.Client) *SetRoleAssignmentsParams
WithHTTPClient adds the HTTPClient to the set role assignments params
func (*SetRoleAssignmentsParams) WithRoleUID ¶
func (o *SetRoleAssignmentsParams) WithRoleUID(roleUID string) *SetRoleAssignmentsParams
WithRoleUID adds the roleUID to the set role assignments params
func (*SetRoleAssignmentsParams) WithTimeout ¶
func (o *SetRoleAssignmentsParams) WithTimeout(timeout time.Duration) *SetRoleAssignmentsParams
WithTimeout adds the timeout to the set role assignments params
func (*SetRoleAssignmentsParams) WriteToRequest ¶
func (o *SetRoleAssignmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetRoleAssignmentsReader ¶
type SetRoleAssignmentsReader struct {
// contains filtered or unexported fields
}
SetRoleAssignmentsReader is a Reader for the SetRoleAssignments structure.
func (*SetRoleAssignmentsReader) ReadResponse ¶
func (o *SetRoleAssignmentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetTeamRolesBadRequest ¶
type SetTeamRolesBadRequest struct {
Payload *models.ErrorResponseBody
}
SetTeamRolesBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewSetTeamRolesBadRequest ¶
func NewSetTeamRolesBadRequest() *SetTeamRolesBadRequest
NewSetTeamRolesBadRequest creates a SetTeamRolesBadRequest with default headers values
func (*SetTeamRolesBadRequest) Error ¶
func (o *SetTeamRolesBadRequest) Error() string
func (*SetTeamRolesBadRequest) GetPayload ¶
func (o *SetTeamRolesBadRequest) GetPayload() *models.ErrorResponseBody
type SetTeamRolesForbidden ¶
type SetTeamRolesForbidden struct {
Payload *models.ErrorResponseBody
}
SetTeamRolesForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewSetTeamRolesForbidden ¶
func NewSetTeamRolesForbidden() *SetTeamRolesForbidden
NewSetTeamRolesForbidden creates a SetTeamRolesForbidden with default headers values
func (*SetTeamRolesForbidden) Error ¶
func (o *SetTeamRolesForbidden) Error() string
func (*SetTeamRolesForbidden) GetPayload ¶
func (o *SetTeamRolesForbidden) GetPayload() *models.ErrorResponseBody
type SetTeamRolesInternalServerError ¶
type SetTeamRolesInternalServerError struct {
Payload *models.ErrorResponseBody
}
SetTeamRolesInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewSetTeamRolesInternalServerError ¶
func NewSetTeamRolesInternalServerError() *SetTeamRolesInternalServerError
NewSetTeamRolesInternalServerError creates a SetTeamRolesInternalServerError with default headers values
func (*SetTeamRolesInternalServerError) Error ¶
func (o *SetTeamRolesInternalServerError) Error() string
func (*SetTeamRolesInternalServerError) GetPayload ¶
func (o *SetTeamRolesInternalServerError) GetPayload() *models.ErrorResponseBody
type SetTeamRolesNotFound ¶
type SetTeamRolesNotFound struct {
Payload *models.ErrorResponseBody
}
SetTeamRolesNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewSetTeamRolesNotFound ¶
func NewSetTeamRolesNotFound() *SetTeamRolesNotFound
NewSetTeamRolesNotFound creates a SetTeamRolesNotFound with default headers values
func (*SetTeamRolesNotFound) Error ¶
func (o *SetTeamRolesNotFound) Error() string
func (*SetTeamRolesNotFound) GetPayload ¶
func (o *SetTeamRolesNotFound) GetPayload() *models.ErrorResponseBody
type SetTeamRolesOK ¶
type SetTeamRolesOK struct {
Payload *models.SuccessResponseBody
}
SetTeamRolesOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewSetTeamRolesOK ¶
func NewSetTeamRolesOK() *SetTeamRolesOK
NewSetTeamRolesOK creates a SetTeamRolesOK with default headers values
func (*SetTeamRolesOK) Error ¶
func (o *SetTeamRolesOK) Error() string
func (*SetTeamRolesOK) GetPayload ¶
func (o *SetTeamRolesOK) GetPayload() *models.SuccessResponseBody
type SetTeamRolesParams ¶
type SetTeamRolesParams struct { // TeamID. // // Format: int64 TeamID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetTeamRolesParams contains all the parameters to send to the API endpoint
for the set team roles operation. Typically these are written to a http.Request.
func NewSetTeamRolesParams ¶
func NewSetTeamRolesParams() *SetTeamRolesParams
NewSetTeamRolesParams creates a new SetTeamRolesParams 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 NewSetTeamRolesParamsWithContext ¶
func NewSetTeamRolesParamsWithContext(ctx context.Context) *SetTeamRolesParams
NewSetTeamRolesParamsWithContext creates a new SetTeamRolesParams object with the ability to set a context for a request.
func NewSetTeamRolesParamsWithHTTPClient ¶
func NewSetTeamRolesParamsWithHTTPClient(client *http.Client) *SetTeamRolesParams
NewSetTeamRolesParamsWithHTTPClient creates a new SetTeamRolesParams object with the ability to set a custom HTTPClient for a request.
func NewSetTeamRolesParamsWithTimeout ¶
func NewSetTeamRolesParamsWithTimeout(timeout time.Duration) *SetTeamRolesParams
NewSetTeamRolesParamsWithTimeout creates a new SetTeamRolesParams object with the ability to set a timeout on a request.
func (*SetTeamRolesParams) SetContext ¶
func (o *SetTeamRolesParams) SetContext(ctx context.Context)
SetContext adds the context to the set team roles params
func (*SetTeamRolesParams) SetDefaults ¶
func (o *SetTeamRolesParams) SetDefaults()
SetDefaults hydrates default values in the set team roles params (not the query body).
All values with no default are reset to their zero value.
func (*SetTeamRolesParams) SetHTTPClient ¶
func (o *SetTeamRolesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set team roles params
func (*SetTeamRolesParams) SetTeamID ¶
func (o *SetTeamRolesParams) SetTeamID(teamID int64)
SetTeamID adds the teamId to the set team roles params
func (*SetTeamRolesParams) SetTimeout ¶
func (o *SetTeamRolesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set team roles params
func (*SetTeamRolesParams) WithContext ¶
func (o *SetTeamRolesParams) WithContext(ctx context.Context) *SetTeamRolesParams
WithContext adds the context to the set team roles params
func (*SetTeamRolesParams) WithDefaults ¶
func (o *SetTeamRolesParams) WithDefaults() *SetTeamRolesParams
WithDefaults hydrates default values in the set team roles params (not the query body).
All values with no default are reset to their zero value.
func (*SetTeamRolesParams) WithHTTPClient ¶
func (o *SetTeamRolesParams) WithHTTPClient(client *http.Client) *SetTeamRolesParams
WithHTTPClient adds the HTTPClient to the set team roles params
func (*SetTeamRolesParams) WithTeamID ¶
func (o *SetTeamRolesParams) WithTeamID(teamID int64) *SetTeamRolesParams
WithTeamID adds the teamID to the set team roles params
func (*SetTeamRolesParams) WithTimeout ¶
func (o *SetTeamRolesParams) WithTimeout(timeout time.Duration) *SetTeamRolesParams
WithTimeout adds the timeout to the set team roles params
func (*SetTeamRolesParams) WriteToRequest ¶
func (o *SetTeamRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetTeamRolesReader ¶
type SetTeamRolesReader struct {
// contains filtered or unexported fields
}
SetTeamRolesReader is a Reader for the SetTeamRoles structure.
func (*SetTeamRolesReader) ReadResponse ¶
func (o *SetTeamRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetUserRolesBadRequest ¶
type SetUserRolesBadRequest struct {
Payload *models.ErrorResponseBody
}
SetUserRolesBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewSetUserRolesBadRequest ¶
func NewSetUserRolesBadRequest() *SetUserRolesBadRequest
NewSetUserRolesBadRequest creates a SetUserRolesBadRequest with default headers values
func (*SetUserRolesBadRequest) Error ¶
func (o *SetUserRolesBadRequest) Error() string
func (*SetUserRolesBadRequest) GetPayload ¶
func (o *SetUserRolesBadRequest) GetPayload() *models.ErrorResponseBody
type SetUserRolesForbidden ¶
type SetUserRolesForbidden struct {
Payload *models.ErrorResponseBody
}
SetUserRolesForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewSetUserRolesForbidden ¶
func NewSetUserRolesForbidden() *SetUserRolesForbidden
NewSetUserRolesForbidden creates a SetUserRolesForbidden with default headers values
func (*SetUserRolesForbidden) Error ¶
func (o *SetUserRolesForbidden) Error() string
func (*SetUserRolesForbidden) GetPayload ¶
func (o *SetUserRolesForbidden) GetPayload() *models.ErrorResponseBody
type SetUserRolesInternalServerError ¶
type SetUserRolesInternalServerError struct {
Payload *models.ErrorResponseBody
}
SetUserRolesInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewSetUserRolesInternalServerError ¶
func NewSetUserRolesInternalServerError() *SetUserRolesInternalServerError
NewSetUserRolesInternalServerError creates a SetUserRolesInternalServerError with default headers values
func (*SetUserRolesInternalServerError) Error ¶
func (o *SetUserRolesInternalServerError) Error() string
func (*SetUserRolesInternalServerError) GetPayload ¶
func (o *SetUserRolesInternalServerError) GetPayload() *models.ErrorResponseBody
type SetUserRolesNotFound ¶
type SetUserRolesNotFound struct {
Payload *models.ErrorResponseBody
}
SetUserRolesNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewSetUserRolesNotFound ¶
func NewSetUserRolesNotFound() *SetUserRolesNotFound
NewSetUserRolesNotFound creates a SetUserRolesNotFound with default headers values
func (*SetUserRolesNotFound) Error ¶
func (o *SetUserRolesNotFound) Error() string
func (*SetUserRolesNotFound) GetPayload ¶
func (o *SetUserRolesNotFound) GetPayload() *models.ErrorResponseBody
type SetUserRolesOK ¶
type SetUserRolesOK struct {
Payload *models.SuccessResponseBody
}
SetUserRolesOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewSetUserRolesOK ¶
func NewSetUserRolesOK() *SetUserRolesOK
NewSetUserRolesOK creates a SetUserRolesOK with default headers values
func (*SetUserRolesOK) Error ¶
func (o *SetUserRolesOK) Error() string
func (*SetUserRolesOK) GetPayload ¶
func (o *SetUserRolesOK) GetPayload() *models.SuccessResponseBody
type SetUserRolesParams ¶
type SetUserRolesParams struct { // Body. Body *models.SetUserRolesCommand // UserID. // // Format: int64 UserID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetUserRolesParams contains all the parameters to send to the API endpoint
for the set user roles operation. Typically these are written to a http.Request.
func NewSetUserRolesParams ¶
func NewSetUserRolesParams() *SetUserRolesParams
NewSetUserRolesParams creates a new SetUserRolesParams 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 NewSetUserRolesParamsWithContext ¶
func NewSetUserRolesParamsWithContext(ctx context.Context) *SetUserRolesParams
NewSetUserRolesParamsWithContext creates a new SetUserRolesParams object with the ability to set a context for a request.
func NewSetUserRolesParamsWithHTTPClient ¶
func NewSetUserRolesParamsWithHTTPClient(client *http.Client) *SetUserRolesParams
NewSetUserRolesParamsWithHTTPClient creates a new SetUserRolesParams object with the ability to set a custom HTTPClient for a request.
func NewSetUserRolesParamsWithTimeout ¶
func NewSetUserRolesParamsWithTimeout(timeout time.Duration) *SetUserRolesParams
NewSetUserRolesParamsWithTimeout creates a new SetUserRolesParams object with the ability to set a timeout on a request.
func (*SetUserRolesParams) SetBody ¶
func (o *SetUserRolesParams) SetBody(body *models.SetUserRolesCommand)
SetBody adds the body to the set user roles params
func (*SetUserRolesParams) SetContext ¶
func (o *SetUserRolesParams) SetContext(ctx context.Context)
SetContext adds the context to the set user roles params
func (*SetUserRolesParams) SetDefaults ¶
func (o *SetUserRolesParams) SetDefaults()
SetDefaults hydrates default values in the set user roles params (not the query body).
All values with no default are reset to their zero value.
func (*SetUserRolesParams) SetHTTPClient ¶
func (o *SetUserRolesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set user roles params
func (*SetUserRolesParams) SetTimeout ¶
func (o *SetUserRolesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set user roles params
func (*SetUserRolesParams) SetUserID ¶
func (o *SetUserRolesParams) SetUserID(userID int64)
SetUserID adds the userId to the set user roles params
func (*SetUserRolesParams) WithBody ¶
func (o *SetUserRolesParams) WithBody(body *models.SetUserRolesCommand) *SetUserRolesParams
WithBody adds the body to the set user roles params
func (*SetUserRolesParams) WithContext ¶
func (o *SetUserRolesParams) WithContext(ctx context.Context) *SetUserRolesParams
WithContext adds the context to the set user roles params
func (*SetUserRolesParams) WithDefaults ¶
func (o *SetUserRolesParams) WithDefaults() *SetUserRolesParams
WithDefaults hydrates default values in the set user roles params (not the query body).
All values with no default are reset to their zero value.
func (*SetUserRolesParams) WithHTTPClient ¶
func (o *SetUserRolesParams) WithHTTPClient(client *http.Client) *SetUserRolesParams
WithHTTPClient adds the HTTPClient to the set user roles params
func (*SetUserRolesParams) WithTimeout ¶
func (o *SetUserRolesParams) WithTimeout(timeout time.Duration) *SetUserRolesParams
WithTimeout adds the timeout to the set user roles params
func (*SetUserRolesParams) WithUserID ¶
func (o *SetUserRolesParams) WithUserID(userID int64) *SetUserRolesParams
WithUserID adds the userID to the set user roles params
func (*SetUserRolesParams) WriteToRequest ¶
func (o *SetUserRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetUserRolesReader ¶
type SetUserRolesReader struct {
// contains filtered or unexported fields
}
SetUserRolesReader is a Reader for the SetUserRoles structure.
func (*SetUserRolesReader) ReadResponse ¶
func (o *SetUserRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateRoleBadRequest ¶
type UpdateRoleBadRequest struct {
Payload *models.ErrorResponseBody
}
UpdateRoleBadRequest describes a response with status code 400, with default header values.
BadRequestError is returned when the request is invalid and it cannot be processed.
func NewUpdateRoleBadRequest ¶
func NewUpdateRoleBadRequest() *UpdateRoleBadRequest
NewUpdateRoleBadRequest creates a UpdateRoleBadRequest with default headers values
func (*UpdateRoleBadRequest) Error ¶
func (o *UpdateRoleBadRequest) Error() string
func (*UpdateRoleBadRequest) GetPayload ¶
func (o *UpdateRoleBadRequest) GetPayload() *models.ErrorResponseBody
type UpdateRoleForbidden ¶
type UpdateRoleForbidden struct {
Payload *models.ErrorResponseBody
}
UpdateRoleForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewUpdateRoleForbidden ¶
func NewUpdateRoleForbidden() *UpdateRoleForbidden
NewUpdateRoleForbidden creates a UpdateRoleForbidden with default headers values
func (*UpdateRoleForbidden) Error ¶
func (o *UpdateRoleForbidden) Error() string
func (*UpdateRoleForbidden) GetPayload ¶
func (o *UpdateRoleForbidden) GetPayload() *models.ErrorResponseBody
type UpdateRoleInternalServerError ¶
type UpdateRoleInternalServerError struct {
Payload *models.ErrorResponseBody
}
UpdateRoleInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewUpdateRoleInternalServerError ¶
func NewUpdateRoleInternalServerError() *UpdateRoleInternalServerError
NewUpdateRoleInternalServerError creates a UpdateRoleInternalServerError with default headers values
func (*UpdateRoleInternalServerError) Error ¶
func (o *UpdateRoleInternalServerError) Error() string
func (*UpdateRoleInternalServerError) GetPayload ¶
func (o *UpdateRoleInternalServerError) GetPayload() *models.ErrorResponseBody
type UpdateRoleNotFound ¶
type UpdateRoleNotFound struct {
Payload *models.ErrorResponseBody
}
UpdateRoleNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewUpdateRoleNotFound ¶
func NewUpdateRoleNotFound() *UpdateRoleNotFound
NewUpdateRoleNotFound creates a UpdateRoleNotFound with default headers values
func (*UpdateRoleNotFound) Error ¶
func (o *UpdateRoleNotFound) Error() string
func (*UpdateRoleNotFound) GetPayload ¶
func (o *UpdateRoleNotFound) GetPayload() *models.ErrorResponseBody
type UpdateRoleOK ¶
UpdateRoleOK describes a response with status code 200, with default header values.
(empty)
func NewUpdateRoleOK ¶
func NewUpdateRoleOK() *UpdateRoleOK
NewUpdateRoleOK creates a UpdateRoleOK with default headers values
func (*UpdateRoleOK) Error ¶
func (o *UpdateRoleOK) Error() string
func (*UpdateRoleOK) GetPayload ¶
func (o *UpdateRoleOK) GetPayload() *models.RoleDTO
type UpdateRoleParams ¶
type UpdateRoleParams struct { // Body. Body *models.UpdateRoleCommand // RoleUID. RoleUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateRoleParams contains all the parameters to send to the API endpoint
for the update role operation. Typically these are written to a http.Request.
func NewUpdateRoleParams ¶
func NewUpdateRoleParams() *UpdateRoleParams
NewUpdateRoleParams creates a new UpdateRoleParams 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 NewUpdateRoleParamsWithContext ¶
func NewUpdateRoleParamsWithContext(ctx context.Context) *UpdateRoleParams
NewUpdateRoleParamsWithContext creates a new UpdateRoleParams object with the ability to set a context for a request.
func NewUpdateRoleParamsWithHTTPClient ¶
func NewUpdateRoleParamsWithHTTPClient(client *http.Client) *UpdateRoleParams
NewUpdateRoleParamsWithHTTPClient creates a new UpdateRoleParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateRoleParamsWithTimeout ¶
func NewUpdateRoleParamsWithTimeout(timeout time.Duration) *UpdateRoleParams
NewUpdateRoleParamsWithTimeout creates a new UpdateRoleParams object with the ability to set a timeout on a request.
func (*UpdateRoleParams) SetBody ¶
func (o *UpdateRoleParams) SetBody(body *models.UpdateRoleCommand)
SetBody adds the body to the update role params
func (*UpdateRoleParams) SetContext ¶
func (o *UpdateRoleParams) SetContext(ctx context.Context)
SetContext adds the context to the update role params
func (*UpdateRoleParams) SetDefaults ¶
func (o *UpdateRoleParams) SetDefaults()
SetDefaults hydrates default values in the update role params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateRoleParams) SetHTTPClient ¶
func (o *UpdateRoleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update role params
func (*UpdateRoleParams) SetRoleUID ¶
func (o *UpdateRoleParams) SetRoleUID(roleUID string)
SetRoleUID adds the roleUid to the update role params
func (*UpdateRoleParams) SetTimeout ¶
func (o *UpdateRoleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update role params
func (*UpdateRoleParams) WithBody ¶
func (o *UpdateRoleParams) WithBody(body *models.UpdateRoleCommand) *UpdateRoleParams
WithBody adds the body to the update role params
func (*UpdateRoleParams) WithContext ¶
func (o *UpdateRoleParams) WithContext(ctx context.Context) *UpdateRoleParams
WithContext adds the context to the update role params
func (*UpdateRoleParams) WithDefaults ¶
func (o *UpdateRoleParams) WithDefaults() *UpdateRoleParams
WithDefaults hydrates default values in the update role params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateRoleParams) WithHTTPClient ¶
func (o *UpdateRoleParams) WithHTTPClient(client *http.Client) *UpdateRoleParams
WithHTTPClient adds the HTTPClient to the update role params
func (*UpdateRoleParams) WithRoleUID ¶
func (o *UpdateRoleParams) WithRoleUID(roleUID string) *UpdateRoleParams
WithRoleUID adds the roleUID to the update role params
func (*UpdateRoleParams) WithTimeout ¶
func (o *UpdateRoleParams) WithTimeout(timeout time.Duration) *UpdateRoleParams
WithTimeout adds the timeout to the update role params
func (*UpdateRoleParams) WriteToRequest ¶
func (o *UpdateRoleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateRoleReader ¶
type UpdateRoleReader struct {
// contains filtered or unexported fields
}
UpdateRoleReader is a Reader for the UpdateRole structure.
func (*UpdateRoleReader) ReadResponse ¶
func (o *UpdateRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- access_control_client.go
- add_team_role_parameters.go
- add_team_role_responses.go
- add_user_role_parameters.go
- add_user_role_responses.go
- create_role_parameters.go
- create_role_responses.go
- delete_role_parameters.go
- delete_role_responses.go
- get_access_control_status_parameters.go
- get_access_control_status_responses.go
- get_role_assignments_parameters.go
- get_role_assignments_responses.go
- get_role_parameters.go
- get_role_responses.go
- list_roles_parameters.go
- list_roles_responses.go
- list_team_roles_parameters.go
- list_team_roles_responses.go
- list_user_roles_parameters.go
- list_user_roles_responses.go
- remove_team_role_parameters.go
- remove_team_role_responses.go
- remove_user_role_parameters.go
- remove_user_role_responses.go
- set_role_assignments_parameters.go
- set_role_assignments_responses.go
- set_team_roles_parameters.go
- set_team_roles_responses.go
- set_user_roles_parameters.go
- set_user_roles_responses.go
- update_role_parameters.go
- update_role_responses.go