access_control

package
v0.0.0-...-d4d7cce Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

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

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 (*AddTeamRoleInternalServerError) GetPayload

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

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

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 (*AddUserRoleInternalServerError) GetPayload

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

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

type CreateRoleCreated

type CreateRoleCreated struct {
	Payload *models.RoleDTO
}

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 (*CreateRoleInternalServerError) GetPayload

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

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

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 (*DeleteRoleInternalServerError) GetPayload

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 (*GetAccessControlStatusForbidden) GetPayload

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 (*GetAccessControlStatusInternalServerError) GetPayload

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 (*GetAccessControlStatusNotFound) GetPayload

type GetAccessControlStatusOK

type GetAccessControlStatusOK struct {
	Payload models.Status
}

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

WithContext adds the context to the get access control status params

func (*GetAccessControlStatusParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get access control status params

func (*GetAccessControlStatusParams) WithTimeout

WithTimeout adds the timeout to the get access control status params

func (*GetAccessControlStatusParams) WriteToRequest

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 (*GetRoleAssignmentsForbidden) GetPayload

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 (*GetRoleAssignmentsInternalServerError) GetPayload

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 (*GetRoleAssignmentsNotFound) GetPayload

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

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

WithContext adds the context to the get role assignments params

func (*GetRoleAssignmentsParams) WithDefaults

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

WithTimeout adds the timeout to the get role assignments params

func (*GetRoleAssignmentsParams) WriteToRequest

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 (*GetRoleInternalServerError) GetPayload

type GetRoleOK

type GetRoleOK struct {
	Payload *models.RoleDTO
}

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

func (o *GetRoleOK) Error() string

func (*GetRoleOK) GetPayload

func (o *GetRoleOK) GetPayload() *models.RoleDTO

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 (*ListRolesInternalServerError) GetPayload

type ListRolesOK

type ListRolesOK struct {
	Payload []*models.RoleDTO
}

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

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

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 (*ListTeamRolesInternalServerError) GetPayload

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

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

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

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 (*ListUserRolesInternalServerError) GetPayload

type ListUserRolesOK

type ListUserRolesOK struct {
	Payload []*models.RoleDTO
}

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

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

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

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 (*RemoveTeamRoleInternalServerError) GetPayload

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

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

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

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

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 (*RemoveUserRoleInternalServerError) GetPayload

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

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

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 (*SetRoleAssignmentsForbidden) GetPayload

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 (*SetRoleAssignmentsInternalServerError) GetPayload

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 (*SetRoleAssignmentsNotFound) GetPayload

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

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

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

WithBody adds the body to the set role assignments params

func (*SetRoleAssignmentsParams) WithContext

WithContext adds the context to the set role assignments params

func (*SetRoleAssignmentsParams) WithDefaults

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

WithTimeout adds the timeout to the set role assignments params

func (*SetRoleAssignmentsParams) WriteToRequest

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

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

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 (*SetTeamRolesInternalServerError) GetPayload

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

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

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

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

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 (*SetUserRolesInternalServerError) GetPayload

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

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

WithBody adds the body to the set user roles params

func (*SetUserRolesParams) WithContext

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

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 (*UpdateRoleInternalServerError) GetPayload

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

type UpdateRoleOK struct {
	Payload *models.RoleDTO
}

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

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.

Jump to

Keyboard shortcuts

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