access_control

package
v0.0.0-...-4958bdd Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 12 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) Code

func (o *AddTeamRoleBadRequest) Code() int

Code gets the status code for the add team role bad request response

func (*AddTeamRoleBadRequest) Error

func (o *AddTeamRoleBadRequest) Error() string

func (*AddTeamRoleBadRequest) GetPayload

func (*AddTeamRoleBadRequest) IsClientError

func (o *AddTeamRoleBadRequest) IsClientError() bool

IsClientError returns true when this add team role bad request response has a 4xx status code

func (*AddTeamRoleBadRequest) IsCode

func (o *AddTeamRoleBadRequest) IsCode(code int) bool

IsCode returns true when this add team role bad request response a status code equal to that given

func (*AddTeamRoleBadRequest) IsRedirect

func (o *AddTeamRoleBadRequest) IsRedirect() bool

IsRedirect returns true when this add team role bad request response has a 3xx status code

func (*AddTeamRoleBadRequest) IsServerError

func (o *AddTeamRoleBadRequest) IsServerError() bool

IsServerError returns true when this add team role bad request response has a 5xx status code

func (*AddTeamRoleBadRequest) IsSuccess

func (o *AddTeamRoleBadRequest) IsSuccess() bool

IsSuccess returns true when this add team role bad request response has a 2xx status code

func (*AddTeamRoleBadRequest) String

func (o *AddTeamRoleBadRequest) String() string

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

func (o *AddTeamRoleForbidden) Code() int

Code gets the status code for the add team role forbidden response

func (*AddTeamRoleForbidden) Error

func (o *AddTeamRoleForbidden) Error() string

func (*AddTeamRoleForbidden) GetPayload

func (*AddTeamRoleForbidden) IsClientError

func (o *AddTeamRoleForbidden) IsClientError() bool

IsClientError returns true when this add team role forbidden response has a 4xx status code

func (*AddTeamRoleForbidden) IsCode

func (o *AddTeamRoleForbidden) IsCode(code int) bool

IsCode returns true when this add team role forbidden response a status code equal to that given

func (*AddTeamRoleForbidden) IsRedirect

func (o *AddTeamRoleForbidden) IsRedirect() bool

IsRedirect returns true when this add team role forbidden response has a 3xx status code

func (*AddTeamRoleForbidden) IsServerError

func (o *AddTeamRoleForbidden) IsServerError() bool

IsServerError returns true when this add team role forbidden response has a 5xx status code

func (*AddTeamRoleForbidden) IsSuccess

func (o *AddTeamRoleForbidden) IsSuccess() bool

IsSuccess returns true when this add team role forbidden response has a 2xx status code

func (*AddTeamRoleForbidden) String

func (o *AddTeamRoleForbidden) String() string

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

Code gets the status code for the add team role internal server error response

func (*AddTeamRoleInternalServerError) Error

func (*AddTeamRoleInternalServerError) GetPayload

func (*AddTeamRoleInternalServerError) IsClientError

func (o *AddTeamRoleInternalServerError) IsClientError() bool

IsClientError returns true when this add team role internal server error response has a 4xx status code

func (*AddTeamRoleInternalServerError) IsCode

func (o *AddTeamRoleInternalServerError) IsCode(code int) bool

IsCode returns true when this add team role internal server error response a status code equal to that given

func (*AddTeamRoleInternalServerError) IsRedirect

func (o *AddTeamRoleInternalServerError) IsRedirect() bool

IsRedirect returns true when this add team role internal server error response has a 3xx status code

func (*AddTeamRoleInternalServerError) IsServerError

func (o *AddTeamRoleInternalServerError) IsServerError() bool

IsServerError returns true when this add team role internal server error response has a 5xx status code

func (*AddTeamRoleInternalServerError) IsSuccess

func (o *AddTeamRoleInternalServerError) IsSuccess() bool

IsSuccess returns true when this add team role internal server error response has a 2xx status code

func (*AddTeamRoleInternalServerError) String

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

func (o *AddTeamRoleNotFound) Code() int

Code gets the status code for the add team role not found response

func (*AddTeamRoleNotFound) Error

func (o *AddTeamRoleNotFound) Error() string

func (*AddTeamRoleNotFound) GetPayload

func (o *AddTeamRoleNotFound) GetPayload() *models.ErrorResponseBody

func (*AddTeamRoleNotFound) IsClientError

func (o *AddTeamRoleNotFound) IsClientError() bool

IsClientError returns true when this add team role not found response has a 4xx status code

func (*AddTeamRoleNotFound) IsCode

func (o *AddTeamRoleNotFound) IsCode(code int) bool

IsCode returns true when this add team role not found response a status code equal to that given

func (*AddTeamRoleNotFound) IsRedirect

func (o *AddTeamRoleNotFound) IsRedirect() bool

IsRedirect returns true when this add team role not found response has a 3xx status code

func (*AddTeamRoleNotFound) IsServerError

func (o *AddTeamRoleNotFound) IsServerError() bool

IsServerError returns true when this add team role not found response has a 5xx status code

func (*AddTeamRoleNotFound) IsSuccess

func (o *AddTeamRoleNotFound) IsSuccess() bool

IsSuccess returns true when this add team role not found response has a 2xx status code

func (*AddTeamRoleNotFound) String

func (o *AddTeamRoleNotFound) String() string

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

func (o *AddTeamRoleOK) Code() int

Code gets the status code for the add team role Ok response

func (*AddTeamRoleOK) Error

func (o *AddTeamRoleOK) Error() string

func (*AddTeamRoleOK) GetPayload

func (o *AddTeamRoleOK) GetPayload() *models.SuccessResponseBody

func (*AddTeamRoleOK) IsClientError

func (o *AddTeamRoleOK) IsClientError() bool

IsClientError returns true when this add team role Ok response has a 4xx status code

func (*AddTeamRoleOK) IsCode

func (o *AddTeamRoleOK) IsCode(code int) bool

IsCode returns true when this add team role Ok response a status code equal to that given

func (*AddTeamRoleOK) IsRedirect

func (o *AddTeamRoleOK) IsRedirect() bool

IsRedirect returns true when this add team role Ok response has a 3xx status code

func (*AddTeamRoleOK) IsServerError

func (o *AddTeamRoleOK) IsServerError() bool

IsServerError returns true when this add team role Ok response has a 5xx status code

func (*AddTeamRoleOK) IsSuccess

func (o *AddTeamRoleOK) IsSuccess() bool

IsSuccess returns true when this add team role Ok response has a 2xx status code

func (*AddTeamRoleOK) String

func (o *AddTeamRoleOK) String() string

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

func (o *AddUserRoleForbidden) Code() int

Code gets the status code for the add user role forbidden response

func (*AddUserRoleForbidden) Error

func (o *AddUserRoleForbidden) Error() string

func (*AddUserRoleForbidden) GetPayload

func (*AddUserRoleForbidden) IsClientError

func (o *AddUserRoleForbidden) IsClientError() bool

IsClientError returns true when this add user role forbidden response has a 4xx status code

func (*AddUserRoleForbidden) IsCode

func (o *AddUserRoleForbidden) IsCode(code int) bool

IsCode returns true when this add user role forbidden response a status code equal to that given

func (*AddUserRoleForbidden) IsRedirect

func (o *AddUserRoleForbidden) IsRedirect() bool

IsRedirect returns true when this add user role forbidden response has a 3xx status code

func (*AddUserRoleForbidden) IsServerError

func (o *AddUserRoleForbidden) IsServerError() bool

IsServerError returns true when this add user role forbidden response has a 5xx status code

func (*AddUserRoleForbidden) IsSuccess

func (o *AddUserRoleForbidden) IsSuccess() bool

IsSuccess returns true when this add user role forbidden response has a 2xx status code

func (*AddUserRoleForbidden) String

func (o *AddUserRoleForbidden) String() string

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

Code gets the status code for the add user role internal server error response

func (*AddUserRoleInternalServerError) Error

func (*AddUserRoleInternalServerError) GetPayload

func (*AddUserRoleInternalServerError) IsClientError

func (o *AddUserRoleInternalServerError) IsClientError() bool

IsClientError returns true when this add user role internal server error response has a 4xx status code

func (*AddUserRoleInternalServerError) IsCode

func (o *AddUserRoleInternalServerError) IsCode(code int) bool

IsCode returns true when this add user role internal server error response a status code equal to that given

func (*AddUserRoleInternalServerError) IsRedirect

func (o *AddUserRoleInternalServerError) IsRedirect() bool

IsRedirect returns true when this add user role internal server error response has a 3xx status code

func (*AddUserRoleInternalServerError) IsServerError

func (o *AddUserRoleInternalServerError) IsServerError() bool

IsServerError returns true when this add user role internal server error response has a 5xx status code

func (*AddUserRoleInternalServerError) IsSuccess

func (o *AddUserRoleInternalServerError) IsSuccess() bool

IsSuccess returns true when this add user role internal server error response has a 2xx status code

func (*AddUserRoleInternalServerError) String

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

func (o *AddUserRoleNotFound) Code() int

Code gets the status code for the add user role not found response

func (*AddUserRoleNotFound) Error

func (o *AddUserRoleNotFound) Error() string

func (*AddUserRoleNotFound) GetPayload

func (o *AddUserRoleNotFound) GetPayload() *models.ErrorResponseBody

func (*AddUserRoleNotFound) IsClientError

func (o *AddUserRoleNotFound) IsClientError() bool

IsClientError returns true when this add user role not found response has a 4xx status code

func (*AddUserRoleNotFound) IsCode

func (o *AddUserRoleNotFound) IsCode(code int) bool

IsCode returns true when this add user role not found response a status code equal to that given

func (*AddUserRoleNotFound) IsRedirect

func (o *AddUserRoleNotFound) IsRedirect() bool

IsRedirect returns true when this add user role not found response has a 3xx status code

func (*AddUserRoleNotFound) IsServerError

func (o *AddUserRoleNotFound) IsServerError() bool

IsServerError returns true when this add user role not found response has a 5xx status code

func (*AddUserRoleNotFound) IsSuccess

func (o *AddUserRoleNotFound) IsSuccess() bool

IsSuccess returns true when this add user role not found response has a 2xx status code

func (*AddUserRoleNotFound) String

func (o *AddUserRoleNotFound) String() string

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

func (o *AddUserRoleOK) Code() int

Code gets the status code for the add user role Ok response

func (*AddUserRoleOK) Error

func (o *AddUserRoleOK) Error() string

func (*AddUserRoleOK) GetPayload

func (o *AddUserRoleOK) GetPayload() *models.SuccessResponseBody

func (*AddUserRoleOK) IsClientError

func (o *AddUserRoleOK) IsClientError() bool

IsClientError returns true when this add user role Ok response has a 4xx status code

func (*AddUserRoleOK) IsCode

func (o *AddUserRoleOK) IsCode(code int) bool

IsCode returns true when this add user role Ok response a status code equal to that given

func (*AddUserRoleOK) IsRedirect

func (o *AddUserRoleOK) IsRedirect() bool

IsRedirect returns true when this add user role Ok response has a 3xx status code

func (*AddUserRoleOK) IsServerError

func (o *AddUserRoleOK) IsServerError() bool

IsServerError returns true when this add user role Ok response has a 5xx status code

func (*AddUserRoleOK) IsSuccess

func (o *AddUserRoleOK) IsSuccess() bool

IsSuccess returns true when this add user role Ok response has a 2xx status code

func (*AddUserRoleOK) String

func (o *AddUserRoleOK) String() string

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(teamID int64, body *models.AddTeamRoleCommand, 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) AddTeamRoleWithParams

func (a *Client) AddTeamRoleWithParams(params *AddTeamRoleParams, opts ...ClientOption) (*AddTeamRoleOK, error)

func (*Client) AddUserRole

func (a *Client) AddUserRole(userID int64, body *models.AddUserRoleCommand, 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) AddUserRoleWithParams

func (a *Client) AddUserRoleWithParams(params *AddUserRoleParams, opts ...ClientOption) (*AddUserRoleOK, error)

func (*Client) CreateRole

func (a *Client) CreateRole(body *models.CreateRoleForm, 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) CreateRoleWithParams

func (a *Client) CreateRoleWithParams(params *CreateRoleParams, opts ...ClientOption) (*CreateRoleCreated, error)

func (*Client) DeleteRole

func (a *Client) DeleteRole(params *DeleteRoleParams, opts ...ClientOption) (*DeleteRoleOK, error)

func (*Client) GetAccessControlStatus

func (a *Client) GetAccessControlStatus(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) GetAccessControlStatusWithParams

func (a *Client) GetAccessControlStatusWithParams(params *GetAccessControlStatusParams, opts ...ClientOption) (*GetAccessControlStatusOK, error)

func (*Client) GetResourceDescription

func (a *Client) GetResourceDescription(resource string, opts ...ClientOption) (*GetResourceDescriptionOK, error)

GetResourceDescription gets a description of a resource s access control properties

func (*Client) GetResourceDescriptionWithParams

func (a *Client) GetResourceDescriptionWithParams(params *GetResourceDescriptionParams, opts ...ClientOption) (*GetResourceDescriptionOK, error)

func (*Client) GetResourcePermissions

func (a *Client) GetResourcePermissions(resourceID string, resource string, opts ...ClientOption) (*GetResourcePermissionsOK, error)

GetResourcePermissions gets permissions for a resource

func (*Client) GetResourcePermissionsWithParams

func (a *Client) GetResourcePermissionsWithParams(params *GetResourcePermissionsParams, opts ...ClientOption) (*GetResourcePermissionsOK, error)

func (*Client) GetRole

func (a *Client) GetRole(roleUID string, 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(roleUID string, 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) GetRoleAssignmentsWithParams

func (a *Client) GetRoleAssignmentsWithParams(params *GetRoleAssignmentsParams, opts ...ClientOption) (*GetRoleAssignmentsOK, error)

func (*Client) GetRoleWithParams

func (a *Client) GetRoleWithParams(params *GetRoleParams, opts ...ClientOption) (*GetRoleOK, error)

func (*Client) ListRoles

func (a *Client) ListRoles(params *ListRolesParams, opts ...ClientOption) (*ListRolesOK, error)

func (*Client) ListTeamRoles

func (a *Client) ListTeamRoles(teamID int64, 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) ListTeamRolesWithParams

func (a *Client) ListTeamRolesWithParams(params *ListTeamRolesParams, opts ...ClientOption) (*ListTeamRolesOK, error)

func (*Client) ListTeamsRoles

func (a *Client) ListTeamsRoles(body *models.RolesSearchQuery, opts ...ClientOption) (*ListTeamsRolesOK, error)

ListTeamsRoles lists roles assigned to multiple teams

Lists the roles that have been directly assigned to the given teams.

You need to have a permission with action `teams.roles:read` and scope `teams:id:*`.

func (*Client) ListTeamsRolesWithParams

func (a *Client) ListTeamsRolesWithParams(params *ListTeamsRolesParams, opts ...ClientOption) (*ListTeamsRolesOK, error)

func (*Client) ListUserRoles

func (a *Client) ListUserRoles(userID int64, 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) ListUserRolesWithParams

func (a *Client) ListUserRolesWithParams(params *ListUserRolesParams, opts ...ClientOption) (*ListUserRolesOK, error)

func (*Client) ListUsersRoles

func (a *Client) ListUsersRoles(body *models.RolesSearchQuery, opts ...ClientOption) (*ListUsersRolesOK, error)

ListUsersRoles lists roles assigned to multiple users

Lists the roles that have been directly assigned to the given users. 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:*`.

func (*Client) ListUsersRolesWithParams

func (a *Client) ListUsersRolesWithParams(params *ListUsersRolesParams, opts ...ClientOption) (*ListUsersRolesOK, error)

func (*Client) RemoveTeamRole

func (a *Client) RemoveTeamRole(teamID int64, roleUID string, 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) RemoveTeamRoleWithParams

func (a *Client) RemoveTeamRoleWithParams(params *RemoveTeamRoleParams, opts ...ClientOption) (*RemoveTeamRoleOK, error)

func (*Client) RemoveUserRole

func (a *Client) RemoveUserRole(params *RemoveUserRoleParams, opts ...ClientOption) (*RemoveUserRoleOK, error)

func (*Client) SetResourcePermissions

func (a *Client) SetResourcePermissions(params *SetResourcePermissionsParams, opts ...ClientOption) (*SetResourcePermissionsOK, error)

func (*Client) SetResourcePermissionsForTeam

func (a *Client) SetResourcePermissionsForTeam(params *SetResourcePermissionsForTeamParams, opts ...ClientOption) (*SetResourcePermissionsForTeamOK, error)

func (*Client) SetResourcePermissionsForUser

func (a *Client) SetResourcePermissionsForUser(params *SetResourcePermissionsForUserParams, opts ...ClientOption) (*SetResourcePermissionsForUserOK, error)

func (*Client) SetRoleAssignments

func (a *Client) SetRoleAssignments(roleUID string, body *models.SetRoleAssignmentsCommand, 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) SetRoleAssignmentsWithParams

func (a *Client) SetRoleAssignmentsWithParams(params *SetRoleAssignmentsParams, opts ...ClientOption) (*SetRoleAssignmentsOK, error)

func (*Client) SetTeamRoles

func (a *Client) SetTeamRoles(teamID int64, 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) SetTeamRolesWithParams

func (a *Client) SetTeamRolesWithParams(params *SetTeamRolesParams, opts ...ClientOption) (*SetTeamRolesOK, error)

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) SetUserRoles

func (a *Client) SetUserRoles(userID int64, body *models.SetUserRolesCommand, 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) SetUserRolesWithParams

func (a *Client) SetUserRolesWithParams(params *SetUserRolesParams, opts ...ClientOption) (*SetUserRolesOK, error)

func (*Client) UpdateRole

func (a *Client) UpdateRole(roleUID string, body *models.UpdateRoleCommand, 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.

func (*Client) UpdateRoleWithParams

func (a *Client) UpdateRoleWithParams(params *UpdateRoleParams, opts ...ClientOption) (*UpdateRoleOK, error)

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

func WithAuthInfo

func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption

WithAuthInfo changes the transport on the client

type ClientService

type ClientService interface {
	AddTeamRole(teamID int64, body *models.AddTeamRoleCommand, opts ...ClientOption) (*AddTeamRoleOK, error)
	AddTeamRoleWithParams(params *AddTeamRoleParams, opts ...ClientOption) (*AddTeamRoleOK, error)

	AddUserRole(userID int64, body *models.AddUserRoleCommand, opts ...ClientOption) (*AddUserRoleOK, error)
	AddUserRoleWithParams(params *AddUserRoleParams, opts ...ClientOption) (*AddUserRoleOK, error)

	CreateRole(body *models.CreateRoleForm, opts ...ClientOption) (*CreateRoleCreated, error)
	CreateRoleWithParams(params *CreateRoleParams, opts ...ClientOption) (*CreateRoleCreated, error)

	DeleteRole(params *DeleteRoleParams, opts ...ClientOption) (*DeleteRoleOK, error)

	GetAccessControlStatus(opts ...ClientOption) (*GetAccessControlStatusOK, error)
	GetAccessControlStatusWithParams(params *GetAccessControlStatusParams, opts ...ClientOption) (*GetAccessControlStatusOK, error)

	GetResourceDescription(resource string, opts ...ClientOption) (*GetResourceDescriptionOK, error)
	GetResourceDescriptionWithParams(params *GetResourceDescriptionParams, opts ...ClientOption) (*GetResourceDescriptionOK, error)

	GetResourcePermissions(resourceID string, resource string, opts ...ClientOption) (*GetResourcePermissionsOK, error)
	GetResourcePermissionsWithParams(params *GetResourcePermissionsParams, opts ...ClientOption) (*GetResourcePermissionsOK, error)

	GetRole(roleUID string, opts ...ClientOption) (*GetRoleOK, error)
	GetRoleWithParams(params *GetRoleParams, opts ...ClientOption) (*GetRoleOK, error)

	GetRoleAssignments(roleUID string, opts ...ClientOption) (*GetRoleAssignmentsOK, error)
	GetRoleAssignmentsWithParams(params *GetRoleAssignmentsParams, opts ...ClientOption) (*GetRoleAssignmentsOK, error)

	ListRoles(params *ListRolesParams, opts ...ClientOption) (*ListRolesOK, error)

	ListTeamRoles(teamID int64, opts ...ClientOption) (*ListTeamRolesOK, error)
	ListTeamRolesWithParams(params *ListTeamRolesParams, opts ...ClientOption) (*ListTeamRolesOK, error)

	ListTeamsRoles(body *models.RolesSearchQuery, opts ...ClientOption) (*ListTeamsRolesOK, error)
	ListTeamsRolesWithParams(params *ListTeamsRolesParams, opts ...ClientOption) (*ListTeamsRolesOK, error)

	ListUserRoles(userID int64, opts ...ClientOption) (*ListUserRolesOK, error)
	ListUserRolesWithParams(params *ListUserRolesParams, opts ...ClientOption) (*ListUserRolesOK, error)

	ListUsersRoles(body *models.RolesSearchQuery, opts ...ClientOption) (*ListUsersRolesOK, error)
	ListUsersRolesWithParams(params *ListUsersRolesParams, opts ...ClientOption) (*ListUsersRolesOK, error)

	RemoveTeamRole(teamID int64, roleUID string, opts ...ClientOption) (*RemoveTeamRoleOK, error)
	RemoveTeamRoleWithParams(params *RemoveTeamRoleParams, opts ...ClientOption) (*RemoveTeamRoleOK, error)

	RemoveUserRole(params *RemoveUserRoleParams, opts ...ClientOption) (*RemoveUserRoleOK, error)

	SetResourcePermissions(params *SetResourcePermissionsParams, opts ...ClientOption) (*SetResourcePermissionsOK, error)

	SetResourcePermissionsForBuiltInRole(params *SetResourcePermissionsForBuiltInRoleParams, opts ...ClientOption) (*SetResourcePermissionsForBuiltInRoleOK, error)

	SetResourcePermissionsForTeam(params *SetResourcePermissionsForTeamParams, opts ...ClientOption) (*SetResourcePermissionsForTeamOK, error)

	SetResourcePermissionsForUser(params *SetResourcePermissionsForUserParams, opts ...ClientOption) (*SetResourcePermissionsForUserOK, error)

	SetRoleAssignments(roleUID string, body *models.SetRoleAssignmentsCommand, opts ...ClientOption) (*SetRoleAssignmentsOK, error)
	SetRoleAssignmentsWithParams(params *SetRoleAssignmentsParams, opts ...ClientOption) (*SetRoleAssignmentsOK, error)

	SetTeamRoles(teamID int64, opts ...ClientOption) (*SetTeamRolesOK, error)
	SetTeamRolesWithParams(params *SetTeamRolesParams, opts ...ClientOption) (*SetTeamRolesOK, error)

	SetUserRoles(userID int64, body *models.SetUserRolesCommand, opts ...ClientOption) (*SetUserRolesOK, error)
	SetUserRolesWithParams(params *SetUserRolesParams, opts ...ClientOption) (*SetUserRolesOK, error)

	UpdateRole(roleUID string, body *models.UpdateRoleCommand, opts ...ClientOption) (*UpdateRoleOK, error)
	UpdateRoleWithParams(params *UpdateRoleParams, 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) Code

func (o *CreateRoleBadRequest) Code() int

Code gets the status code for the create role bad request response

func (*CreateRoleBadRequest) Error

func (o *CreateRoleBadRequest) Error() string

func (*CreateRoleBadRequest) GetPayload

func (*CreateRoleBadRequest) IsClientError

func (o *CreateRoleBadRequest) IsClientError() bool

IsClientError returns true when this create role bad request response has a 4xx status code

func (*CreateRoleBadRequest) IsCode

func (o *CreateRoleBadRequest) IsCode(code int) bool

IsCode returns true when this create role bad request response a status code equal to that given

func (*CreateRoleBadRequest) IsRedirect

func (o *CreateRoleBadRequest) IsRedirect() bool

IsRedirect returns true when this create role bad request response has a 3xx status code

func (*CreateRoleBadRequest) IsServerError

func (o *CreateRoleBadRequest) IsServerError() bool

IsServerError returns true when this create role bad request response has a 5xx status code

func (*CreateRoleBadRequest) IsSuccess

func (o *CreateRoleBadRequest) IsSuccess() bool

IsSuccess returns true when this create role bad request response has a 2xx status code

func (*CreateRoleBadRequest) String

func (o *CreateRoleBadRequest) String() string

type 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) Code

func (o *CreateRoleCreated) Code() int

Code gets the status code for the create role created response

func (*CreateRoleCreated) Error

func (o *CreateRoleCreated) Error() string

func (*CreateRoleCreated) GetPayload

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

func (*CreateRoleCreated) IsClientError

func (o *CreateRoleCreated) IsClientError() bool

IsClientError returns true when this create role created response has a 4xx status code

func (*CreateRoleCreated) IsCode

func (o *CreateRoleCreated) IsCode(code int) bool

IsCode returns true when this create role created response a status code equal to that given

func (*CreateRoleCreated) IsRedirect

func (o *CreateRoleCreated) IsRedirect() bool

IsRedirect returns true when this create role created response has a 3xx status code

func (*CreateRoleCreated) IsServerError

func (o *CreateRoleCreated) IsServerError() bool

IsServerError returns true when this create role created response has a 5xx status code

func (*CreateRoleCreated) IsSuccess

func (o *CreateRoleCreated) IsSuccess() bool

IsSuccess returns true when this create role created response has a 2xx status code

func (*CreateRoleCreated) String

func (o *CreateRoleCreated) String() string

type CreateRoleForbidden

type CreateRoleForbidden struct {
	Payload *models.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) Code

func (o *CreateRoleForbidden) Code() int

Code gets the status code for the create role forbidden response

func (*CreateRoleForbidden) Error

func (o *CreateRoleForbidden) Error() string

func (*CreateRoleForbidden) GetPayload

func (o *CreateRoleForbidden) GetPayload() *models.ErrorResponseBody

func (*CreateRoleForbidden) IsClientError

func (o *CreateRoleForbidden) IsClientError() bool

IsClientError returns true when this create role forbidden response has a 4xx status code

func (*CreateRoleForbidden) IsCode

func (o *CreateRoleForbidden) IsCode(code int) bool

IsCode returns true when this create role forbidden response a status code equal to that given

func (*CreateRoleForbidden) IsRedirect

func (o *CreateRoleForbidden) IsRedirect() bool

IsRedirect returns true when this create role forbidden response has a 3xx status code

func (*CreateRoleForbidden) IsServerError

func (o *CreateRoleForbidden) IsServerError() bool

IsServerError returns true when this create role forbidden response has a 5xx status code

func (*CreateRoleForbidden) IsSuccess

func (o *CreateRoleForbidden) IsSuccess() bool

IsSuccess returns true when this create role forbidden response has a 2xx status code

func (*CreateRoleForbidden) String

func (o *CreateRoleForbidden) String() string

type CreateRoleInternalServerError

type CreateRoleInternalServerError struct {
	Payload *models.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) Code

Code gets the status code for the create role internal server error response

func (*CreateRoleInternalServerError) Error

func (*CreateRoleInternalServerError) GetPayload

func (*CreateRoleInternalServerError) IsClientError

func (o *CreateRoleInternalServerError) IsClientError() bool

IsClientError returns true when this create role internal server error response has a 4xx status code

func (*CreateRoleInternalServerError) IsCode

func (o *CreateRoleInternalServerError) IsCode(code int) bool

IsCode returns true when this create role internal server error response a status code equal to that given

func (*CreateRoleInternalServerError) IsRedirect

func (o *CreateRoleInternalServerError) IsRedirect() bool

IsRedirect returns true when this create role internal server error response has a 3xx status code

func (*CreateRoleInternalServerError) IsServerError

func (o *CreateRoleInternalServerError) IsServerError() bool

IsServerError returns true when this create role internal server error response has a 5xx status code

func (*CreateRoleInternalServerError) IsSuccess

func (o *CreateRoleInternalServerError) IsSuccess() bool

IsSuccess returns true when this create role internal server error response has a 2xx status code

func (*CreateRoleInternalServerError) String

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

func (o *DeleteRoleBadRequest) Code() int

Code gets the status code for the delete role bad request response

func (*DeleteRoleBadRequest) Error

func (o *DeleteRoleBadRequest) Error() string

func (*DeleteRoleBadRequest) GetPayload

func (*DeleteRoleBadRequest) IsClientError

func (o *DeleteRoleBadRequest) IsClientError() bool

IsClientError returns true when this delete role bad request response has a 4xx status code

func (*DeleteRoleBadRequest) IsCode

func (o *DeleteRoleBadRequest) IsCode(code int) bool

IsCode returns true when this delete role bad request response a status code equal to that given

func (*DeleteRoleBadRequest) IsRedirect

func (o *DeleteRoleBadRequest) IsRedirect() bool

IsRedirect returns true when this delete role bad request response has a 3xx status code

func (*DeleteRoleBadRequest) IsServerError

func (o *DeleteRoleBadRequest) IsServerError() bool

IsServerError returns true when this delete role bad request response has a 5xx status code

func (*DeleteRoleBadRequest) IsSuccess

func (o *DeleteRoleBadRequest) IsSuccess() bool

IsSuccess returns true when this delete role bad request response has a 2xx status code

func (*DeleteRoleBadRequest) String

func (o *DeleteRoleBadRequest) String() string

type DeleteRoleForbidden

type DeleteRoleForbidden struct {
	Payload *models.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) Code

func (o *DeleteRoleForbidden) Code() int

Code gets the status code for the delete role forbidden response

func (*DeleteRoleForbidden) Error

func (o *DeleteRoleForbidden) Error() string

func (*DeleteRoleForbidden) GetPayload

func (o *DeleteRoleForbidden) GetPayload() *models.ErrorResponseBody

func (*DeleteRoleForbidden) IsClientError

func (o *DeleteRoleForbidden) IsClientError() bool

IsClientError returns true when this delete role forbidden response has a 4xx status code

func (*DeleteRoleForbidden) IsCode

func (o *DeleteRoleForbidden) IsCode(code int) bool

IsCode returns true when this delete role forbidden response a status code equal to that given

func (*DeleteRoleForbidden) IsRedirect

func (o *DeleteRoleForbidden) IsRedirect() bool

IsRedirect returns true when this delete role forbidden response has a 3xx status code

func (*DeleteRoleForbidden) IsServerError

func (o *DeleteRoleForbidden) IsServerError() bool

IsServerError returns true when this delete role forbidden response has a 5xx status code

func (*DeleteRoleForbidden) IsSuccess

func (o *DeleteRoleForbidden) IsSuccess() bool

IsSuccess returns true when this delete role forbidden response has a 2xx status code

func (*DeleteRoleForbidden) String

func (o *DeleteRoleForbidden) String() string

type DeleteRoleInternalServerError

type DeleteRoleInternalServerError struct {
	Payload *models.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) Code

Code gets the status code for the delete role internal server error response

func (*DeleteRoleInternalServerError) Error

func (*DeleteRoleInternalServerError) GetPayload

func (*DeleteRoleInternalServerError) IsClientError

func (o *DeleteRoleInternalServerError) IsClientError() bool

IsClientError returns true when this delete role internal server error response has a 4xx status code

func (*DeleteRoleInternalServerError) IsCode

func (o *DeleteRoleInternalServerError) IsCode(code int) bool

IsCode returns true when this delete role internal server error response a status code equal to that given

func (*DeleteRoleInternalServerError) IsRedirect

func (o *DeleteRoleInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete role internal server error response has a 3xx status code

func (*DeleteRoleInternalServerError) IsServerError

func (o *DeleteRoleInternalServerError) IsServerError() bool

IsServerError returns true when this delete role internal server error response has a 5xx status code

func (*DeleteRoleInternalServerError) IsSuccess

func (o *DeleteRoleInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete role internal server error response has a 2xx status code

func (*DeleteRoleInternalServerError) String

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

func (o *DeleteRoleOK) Code() int

Code gets the status code for the delete role Ok response

func (*DeleteRoleOK) Error

func (o *DeleteRoleOK) Error() string

func (*DeleteRoleOK) GetPayload

func (o *DeleteRoleOK) GetPayload() *models.SuccessResponseBody

func (*DeleteRoleOK) IsClientError

func (o *DeleteRoleOK) IsClientError() bool

IsClientError returns true when this delete role Ok response has a 4xx status code

func (*DeleteRoleOK) IsCode

func (o *DeleteRoleOK) IsCode(code int) bool

IsCode returns true when this delete role Ok response a status code equal to that given

func (*DeleteRoleOK) IsRedirect

func (o *DeleteRoleOK) IsRedirect() bool

IsRedirect returns true when this delete role Ok response has a 3xx status code

func (*DeleteRoleOK) IsServerError

func (o *DeleteRoleOK) IsServerError() bool

IsServerError returns true when this delete role Ok response has a 5xx status code

func (*DeleteRoleOK) IsSuccess

func (o *DeleteRoleOK) IsSuccess() bool

IsSuccess returns true when this delete role Ok response has a 2xx status code

func (*DeleteRoleOK) String

func (o *DeleteRoleOK) String() string

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

Code gets the status code for the get access control status forbidden response

func (*GetAccessControlStatusForbidden) Error

func (*GetAccessControlStatusForbidden) GetPayload

func (*GetAccessControlStatusForbidden) IsClientError

func (o *GetAccessControlStatusForbidden) IsClientError() bool

IsClientError returns true when this get access control status forbidden response has a 4xx status code

func (*GetAccessControlStatusForbidden) IsCode

func (o *GetAccessControlStatusForbidden) IsCode(code int) bool

IsCode returns true when this get access control status forbidden response a status code equal to that given

func (*GetAccessControlStatusForbidden) IsRedirect

func (o *GetAccessControlStatusForbidden) IsRedirect() bool

IsRedirect returns true when this get access control status forbidden response has a 3xx status code

func (*GetAccessControlStatusForbidden) IsServerError

func (o *GetAccessControlStatusForbidden) IsServerError() bool

IsServerError returns true when this get access control status forbidden response has a 5xx status code

func (*GetAccessControlStatusForbidden) IsSuccess

func (o *GetAccessControlStatusForbidden) IsSuccess() bool

IsSuccess returns true when this get access control status forbidden response has a 2xx status code

func (*GetAccessControlStatusForbidden) String

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

Code gets the status code for the get access control status internal server error response

func (*GetAccessControlStatusInternalServerError) Error

func (*GetAccessControlStatusInternalServerError) GetPayload

func (*GetAccessControlStatusInternalServerError) IsClientError

IsClientError returns true when this get access control status internal server error response has a 4xx status code

func (*GetAccessControlStatusInternalServerError) IsCode

IsCode returns true when this get access control status internal server error response a status code equal to that given

func (*GetAccessControlStatusInternalServerError) IsRedirect

IsRedirect returns true when this get access control status internal server error response has a 3xx status code

func (*GetAccessControlStatusInternalServerError) IsServerError

IsServerError returns true when this get access control status internal server error response has a 5xx status code

func (*GetAccessControlStatusInternalServerError) IsSuccess

IsSuccess returns true when this get access control status internal server error response has a 2xx status code

func (*GetAccessControlStatusInternalServerError) String

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

Code gets the status code for the get access control status not found response

func (*GetAccessControlStatusNotFound) Error

func (*GetAccessControlStatusNotFound) GetPayload

func (*GetAccessControlStatusNotFound) IsClientError

func (o *GetAccessControlStatusNotFound) IsClientError() bool

IsClientError returns true when this get access control status not found response has a 4xx status code

func (*GetAccessControlStatusNotFound) IsCode

func (o *GetAccessControlStatusNotFound) IsCode(code int) bool

IsCode returns true when this get access control status not found response a status code equal to that given

func (*GetAccessControlStatusNotFound) IsRedirect

func (o *GetAccessControlStatusNotFound) IsRedirect() bool

IsRedirect returns true when this get access control status not found response has a 3xx status code

func (*GetAccessControlStatusNotFound) IsServerError

func (o *GetAccessControlStatusNotFound) IsServerError() bool

IsServerError returns true when this get access control status not found response has a 5xx status code

func (*GetAccessControlStatusNotFound) IsSuccess

func (o *GetAccessControlStatusNotFound) IsSuccess() bool

IsSuccess returns true when this get access control status not found response has a 2xx status code

func (*GetAccessControlStatusNotFound) String

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

func (o *GetAccessControlStatusOK) Code() int

Code gets the status code for the get access control status Ok response

func (*GetAccessControlStatusOK) Error

func (o *GetAccessControlStatusOK) Error() string

func (*GetAccessControlStatusOK) GetPayload

func (o *GetAccessControlStatusOK) GetPayload() models.Status

func (*GetAccessControlStatusOK) IsClientError

func (o *GetAccessControlStatusOK) IsClientError() bool

IsClientError returns true when this get access control status Ok response has a 4xx status code

func (*GetAccessControlStatusOK) IsCode

func (o *GetAccessControlStatusOK) IsCode(code int) bool

IsCode returns true when this get access control status Ok response a status code equal to that given

func (*GetAccessControlStatusOK) IsRedirect

func (o *GetAccessControlStatusOK) IsRedirect() bool

IsRedirect returns true when this get access control status Ok response has a 3xx status code

func (*GetAccessControlStatusOK) IsServerError

func (o *GetAccessControlStatusOK) IsServerError() bool

IsServerError returns true when this get access control status Ok response has a 5xx status code

func (*GetAccessControlStatusOK) IsSuccess

func (o *GetAccessControlStatusOK) IsSuccess() bool

IsSuccess returns true when this get access control status Ok response has a 2xx status code

func (*GetAccessControlStatusOK) String

func (o *GetAccessControlStatusOK) String() string

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 GetResourceDescriptionForbidden

type GetResourceDescriptionForbidden struct {
	Payload *models.ErrorResponseBody
}

GetResourceDescriptionForbidden 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 NewGetResourceDescriptionForbidden

func NewGetResourceDescriptionForbidden() *GetResourceDescriptionForbidden

NewGetResourceDescriptionForbidden creates a GetResourceDescriptionForbidden with default headers values

func (*GetResourceDescriptionForbidden) Code

Code gets the status code for the get resource description forbidden response

func (*GetResourceDescriptionForbidden) Error

func (*GetResourceDescriptionForbidden) GetPayload

func (*GetResourceDescriptionForbidden) IsClientError

func (o *GetResourceDescriptionForbidden) IsClientError() bool

IsClientError returns true when this get resource description forbidden response has a 4xx status code

func (*GetResourceDescriptionForbidden) IsCode

func (o *GetResourceDescriptionForbidden) IsCode(code int) bool

IsCode returns true when this get resource description forbidden response a status code equal to that given

func (*GetResourceDescriptionForbidden) IsRedirect

func (o *GetResourceDescriptionForbidden) IsRedirect() bool

IsRedirect returns true when this get resource description forbidden response has a 3xx status code

func (*GetResourceDescriptionForbidden) IsServerError

func (o *GetResourceDescriptionForbidden) IsServerError() bool

IsServerError returns true when this get resource description forbidden response has a 5xx status code

func (*GetResourceDescriptionForbidden) IsSuccess

func (o *GetResourceDescriptionForbidden) IsSuccess() bool

IsSuccess returns true when this get resource description forbidden response has a 2xx status code

func (*GetResourceDescriptionForbidden) String

type GetResourceDescriptionInternalServerError

type GetResourceDescriptionInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetResourceDescriptionInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetResourceDescriptionInternalServerError

func NewGetResourceDescriptionInternalServerError() *GetResourceDescriptionInternalServerError

NewGetResourceDescriptionInternalServerError creates a GetResourceDescriptionInternalServerError with default headers values

func (*GetResourceDescriptionInternalServerError) Code

Code gets the status code for the get resource description internal server error response

func (*GetResourceDescriptionInternalServerError) Error

func (*GetResourceDescriptionInternalServerError) GetPayload

func (*GetResourceDescriptionInternalServerError) IsClientError

IsClientError returns true when this get resource description internal server error response has a 4xx status code

func (*GetResourceDescriptionInternalServerError) IsCode

IsCode returns true when this get resource description internal server error response a status code equal to that given

func (*GetResourceDescriptionInternalServerError) IsRedirect

IsRedirect returns true when this get resource description internal server error response has a 3xx status code

func (*GetResourceDescriptionInternalServerError) IsServerError

IsServerError returns true when this get resource description internal server error response has a 5xx status code

func (*GetResourceDescriptionInternalServerError) IsSuccess

IsSuccess returns true when this get resource description internal server error response has a 2xx status code

func (*GetResourceDescriptionInternalServerError) String

type GetResourceDescriptionOK

type GetResourceDescriptionOK struct {
	Payload *models.Description
}

GetResourceDescriptionOK describes a response with status code 200, with default header values.

(empty)

func NewGetResourceDescriptionOK

func NewGetResourceDescriptionOK() *GetResourceDescriptionOK

NewGetResourceDescriptionOK creates a GetResourceDescriptionOK with default headers values

func (*GetResourceDescriptionOK) Code

func (o *GetResourceDescriptionOK) Code() int

Code gets the status code for the get resource description Ok response

func (*GetResourceDescriptionOK) Error

func (o *GetResourceDescriptionOK) Error() string

func (*GetResourceDescriptionOK) GetPayload

func (o *GetResourceDescriptionOK) GetPayload() *models.Description

func (*GetResourceDescriptionOK) IsClientError

func (o *GetResourceDescriptionOK) IsClientError() bool

IsClientError returns true when this get resource description Ok response has a 4xx status code

func (*GetResourceDescriptionOK) IsCode

func (o *GetResourceDescriptionOK) IsCode(code int) bool

IsCode returns true when this get resource description Ok response a status code equal to that given

func (*GetResourceDescriptionOK) IsRedirect

func (o *GetResourceDescriptionOK) IsRedirect() bool

IsRedirect returns true when this get resource description Ok response has a 3xx status code

func (*GetResourceDescriptionOK) IsServerError

func (o *GetResourceDescriptionOK) IsServerError() bool

IsServerError returns true when this get resource description Ok response has a 5xx status code

func (*GetResourceDescriptionOK) IsSuccess

func (o *GetResourceDescriptionOK) IsSuccess() bool

IsSuccess returns true when this get resource description Ok response has a 2xx status code

func (*GetResourceDescriptionOK) String

func (o *GetResourceDescriptionOK) String() string

type GetResourceDescriptionParams

type GetResourceDescriptionParams struct {

	// Resource.
	Resource string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetResourceDescriptionParams contains all the parameters to send to the API endpoint

for the get resource description operation.

Typically these are written to a http.Request.

func NewGetResourceDescriptionParams

func NewGetResourceDescriptionParams() *GetResourceDescriptionParams

NewGetResourceDescriptionParams creates a new GetResourceDescriptionParams 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 NewGetResourceDescriptionParamsWithContext

func NewGetResourceDescriptionParamsWithContext(ctx context.Context) *GetResourceDescriptionParams

NewGetResourceDescriptionParamsWithContext creates a new GetResourceDescriptionParams object with the ability to set a context for a request.

func NewGetResourceDescriptionParamsWithHTTPClient

func NewGetResourceDescriptionParamsWithHTTPClient(client *http.Client) *GetResourceDescriptionParams

NewGetResourceDescriptionParamsWithHTTPClient creates a new GetResourceDescriptionParams object with the ability to set a custom HTTPClient for a request.

func NewGetResourceDescriptionParamsWithTimeout

func NewGetResourceDescriptionParamsWithTimeout(timeout time.Duration) *GetResourceDescriptionParams

NewGetResourceDescriptionParamsWithTimeout creates a new GetResourceDescriptionParams object with the ability to set a timeout on a request.

func (*GetResourceDescriptionParams) SetContext

func (o *GetResourceDescriptionParams) SetContext(ctx context.Context)

SetContext adds the context to the get resource description params

func (*GetResourceDescriptionParams) SetDefaults

func (o *GetResourceDescriptionParams) SetDefaults()

SetDefaults hydrates default values in the get resource description params (not the query body).

All values with no default are reset to their zero value.

func (*GetResourceDescriptionParams) SetHTTPClient

func (o *GetResourceDescriptionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get resource description params

func (*GetResourceDescriptionParams) SetResource

func (o *GetResourceDescriptionParams) SetResource(resource string)

SetResource adds the resource to the get resource description params

func (*GetResourceDescriptionParams) SetTimeout

func (o *GetResourceDescriptionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get resource description params

func (*GetResourceDescriptionParams) WithContext

WithContext adds the context to the get resource description params

func (*GetResourceDescriptionParams) WithDefaults

WithDefaults hydrates default values in the get resource description params (not the query body).

All values with no default are reset to their zero value.

func (*GetResourceDescriptionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get resource description params

func (*GetResourceDescriptionParams) WithResource

WithResource adds the resource to the get resource description params

func (*GetResourceDescriptionParams) WithTimeout

WithTimeout adds the timeout to the get resource description params

func (*GetResourceDescriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetResourceDescriptionReader

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

GetResourceDescriptionReader is a Reader for the GetResourceDescription structure.

func (*GetResourceDescriptionReader) ReadResponse

func (o *GetResourceDescriptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetResourcePermissionsForbidden

type GetResourcePermissionsForbidden struct {
	Payload *models.ErrorResponseBody
}

GetResourcePermissionsForbidden 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 NewGetResourcePermissionsForbidden

func NewGetResourcePermissionsForbidden() *GetResourcePermissionsForbidden

NewGetResourcePermissionsForbidden creates a GetResourcePermissionsForbidden with default headers values

func (*GetResourcePermissionsForbidden) Code

Code gets the status code for the get resource permissions forbidden response

func (*GetResourcePermissionsForbidden) Error

func (*GetResourcePermissionsForbidden) GetPayload

func (*GetResourcePermissionsForbidden) IsClientError

func (o *GetResourcePermissionsForbidden) IsClientError() bool

IsClientError returns true when this get resource permissions forbidden response has a 4xx status code

func (*GetResourcePermissionsForbidden) IsCode

func (o *GetResourcePermissionsForbidden) IsCode(code int) bool

IsCode returns true when this get resource permissions forbidden response a status code equal to that given

func (*GetResourcePermissionsForbidden) IsRedirect

func (o *GetResourcePermissionsForbidden) IsRedirect() bool

IsRedirect returns true when this get resource permissions forbidden response has a 3xx status code

func (*GetResourcePermissionsForbidden) IsServerError

func (o *GetResourcePermissionsForbidden) IsServerError() bool

IsServerError returns true when this get resource permissions forbidden response has a 5xx status code

func (*GetResourcePermissionsForbidden) IsSuccess

func (o *GetResourcePermissionsForbidden) IsSuccess() bool

IsSuccess returns true when this get resource permissions forbidden response has a 2xx status code

func (*GetResourcePermissionsForbidden) String

type GetResourcePermissionsInternalServerError

type GetResourcePermissionsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetResourcePermissionsInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetResourcePermissionsInternalServerError

func NewGetResourcePermissionsInternalServerError() *GetResourcePermissionsInternalServerError

NewGetResourcePermissionsInternalServerError creates a GetResourcePermissionsInternalServerError with default headers values

func (*GetResourcePermissionsInternalServerError) Code

Code gets the status code for the get resource permissions internal server error response

func (*GetResourcePermissionsInternalServerError) Error

func (*GetResourcePermissionsInternalServerError) GetPayload

func (*GetResourcePermissionsInternalServerError) IsClientError

IsClientError returns true when this get resource permissions internal server error response has a 4xx status code

func (*GetResourcePermissionsInternalServerError) IsCode

IsCode returns true when this get resource permissions internal server error response a status code equal to that given

func (*GetResourcePermissionsInternalServerError) IsRedirect

IsRedirect returns true when this get resource permissions internal server error response has a 3xx status code

func (*GetResourcePermissionsInternalServerError) IsServerError

IsServerError returns true when this get resource permissions internal server error response has a 5xx status code

func (*GetResourcePermissionsInternalServerError) IsSuccess

IsSuccess returns true when this get resource permissions internal server error response has a 2xx status code

func (*GetResourcePermissionsInternalServerError) String

type GetResourcePermissionsNotFound

type GetResourcePermissionsNotFound struct {
	Payload *models.ErrorResponseBody
}

GetResourcePermissionsNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewGetResourcePermissionsNotFound

func NewGetResourcePermissionsNotFound() *GetResourcePermissionsNotFound

NewGetResourcePermissionsNotFound creates a GetResourcePermissionsNotFound with default headers values

func (*GetResourcePermissionsNotFound) Code

Code gets the status code for the get resource permissions not found response

func (*GetResourcePermissionsNotFound) Error

func (*GetResourcePermissionsNotFound) GetPayload

func (*GetResourcePermissionsNotFound) IsClientError

func (o *GetResourcePermissionsNotFound) IsClientError() bool

IsClientError returns true when this get resource permissions not found response has a 4xx status code

func (*GetResourcePermissionsNotFound) IsCode

func (o *GetResourcePermissionsNotFound) IsCode(code int) bool

IsCode returns true when this get resource permissions not found response a status code equal to that given

func (*GetResourcePermissionsNotFound) IsRedirect

func (o *GetResourcePermissionsNotFound) IsRedirect() bool

IsRedirect returns true when this get resource permissions not found response has a 3xx status code

func (*GetResourcePermissionsNotFound) IsServerError

func (o *GetResourcePermissionsNotFound) IsServerError() bool

IsServerError returns true when this get resource permissions not found response has a 5xx status code

func (*GetResourcePermissionsNotFound) IsSuccess

func (o *GetResourcePermissionsNotFound) IsSuccess() bool

IsSuccess returns true when this get resource permissions not found response has a 2xx status code

func (*GetResourcePermissionsNotFound) String

type GetResourcePermissionsOK

type GetResourcePermissionsOK struct {
	Payload []*models.ResourcePermissionDTO
}

GetResourcePermissionsOK describes a response with status code 200, with default header values.

(empty)

func NewGetResourcePermissionsOK

func NewGetResourcePermissionsOK() *GetResourcePermissionsOK

NewGetResourcePermissionsOK creates a GetResourcePermissionsOK with default headers values

func (*GetResourcePermissionsOK) Code

func (o *GetResourcePermissionsOK) Code() int

Code gets the status code for the get resource permissions Ok response

func (*GetResourcePermissionsOK) Error

func (o *GetResourcePermissionsOK) Error() string

func (*GetResourcePermissionsOK) GetPayload

func (*GetResourcePermissionsOK) IsClientError

func (o *GetResourcePermissionsOK) IsClientError() bool

IsClientError returns true when this get resource permissions Ok response has a 4xx status code

func (*GetResourcePermissionsOK) IsCode

func (o *GetResourcePermissionsOK) IsCode(code int) bool

IsCode returns true when this get resource permissions Ok response a status code equal to that given

func (*GetResourcePermissionsOK) IsRedirect

func (o *GetResourcePermissionsOK) IsRedirect() bool

IsRedirect returns true when this get resource permissions Ok response has a 3xx status code

func (*GetResourcePermissionsOK) IsServerError

func (o *GetResourcePermissionsOK) IsServerError() bool

IsServerError returns true when this get resource permissions Ok response has a 5xx status code

func (*GetResourcePermissionsOK) IsSuccess

func (o *GetResourcePermissionsOK) IsSuccess() bool

IsSuccess returns true when this get resource permissions Ok response has a 2xx status code

func (*GetResourcePermissionsOK) String

func (o *GetResourcePermissionsOK) String() string

type GetResourcePermissionsParams

type GetResourcePermissionsParams struct {

	// Resource.
	Resource string

	// ResourceID.
	ResourceID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetResourcePermissionsParams contains all the parameters to send to the API endpoint

for the get resource permissions operation.

Typically these are written to a http.Request.

func NewGetResourcePermissionsParams

func NewGetResourcePermissionsParams() *GetResourcePermissionsParams

NewGetResourcePermissionsParams creates a new GetResourcePermissionsParams 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 NewGetResourcePermissionsParamsWithContext

func NewGetResourcePermissionsParamsWithContext(ctx context.Context) *GetResourcePermissionsParams

NewGetResourcePermissionsParamsWithContext creates a new GetResourcePermissionsParams object with the ability to set a context for a request.

func NewGetResourcePermissionsParamsWithHTTPClient

func NewGetResourcePermissionsParamsWithHTTPClient(client *http.Client) *GetResourcePermissionsParams

NewGetResourcePermissionsParamsWithHTTPClient creates a new GetResourcePermissionsParams object with the ability to set a custom HTTPClient for a request.

func NewGetResourcePermissionsParamsWithTimeout

func NewGetResourcePermissionsParamsWithTimeout(timeout time.Duration) *GetResourcePermissionsParams

NewGetResourcePermissionsParamsWithTimeout creates a new GetResourcePermissionsParams object with the ability to set a timeout on a request.

func (*GetResourcePermissionsParams) SetContext

func (o *GetResourcePermissionsParams) SetContext(ctx context.Context)

SetContext adds the context to the get resource permissions params

func (*GetResourcePermissionsParams) SetDefaults

func (o *GetResourcePermissionsParams) SetDefaults()

SetDefaults hydrates default values in the get resource permissions params (not the query body).

All values with no default are reset to their zero value.

func (*GetResourcePermissionsParams) SetHTTPClient

func (o *GetResourcePermissionsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get resource permissions params

func (*GetResourcePermissionsParams) SetResource

func (o *GetResourcePermissionsParams) SetResource(resource string)

SetResource adds the resource to the get resource permissions params

func (*GetResourcePermissionsParams) SetResourceID

func (o *GetResourcePermissionsParams) SetResourceID(resourceID string)

SetResourceID adds the resourceId to the get resource permissions params

func (*GetResourcePermissionsParams) SetTimeout

func (o *GetResourcePermissionsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get resource permissions params

func (*GetResourcePermissionsParams) WithContext

WithContext adds the context to the get resource permissions params

func (*GetResourcePermissionsParams) WithDefaults

WithDefaults hydrates default values in the get resource permissions params (not the query body).

All values with no default are reset to their zero value.

func (*GetResourcePermissionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get resource permissions params

func (*GetResourcePermissionsParams) WithResource

WithResource adds the resource to the get resource permissions params

func (*GetResourcePermissionsParams) WithResourceID

func (o *GetResourcePermissionsParams) WithResourceID(resourceID string) *GetResourcePermissionsParams

WithResourceID adds the resourceID to the get resource permissions params

func (*GetResourcePermissionsParams) WithTimeout

WithTimeout adds the timeout to the get resource permissions params

func (*GetResourcePermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetResourcePermissionsReader

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

GetResourcePermissionsReader is a Reader for the GetResourcePermissions structure.

func (*GetResourcePermissionsReader) ReadResponse

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

func (o *GetRoleAssignmentsForbidden) Code() int

Code gets the status code for the get role assignments forbidden response

func (*GetRoleAssignmentsForbidden) Error

func (*GetRoleAssignmentsForbidden) GetPayload

func (*GetRoleAssignmentsForbidden) IsClientError

func (o *GetRoleAssignmentsForbidden) IsClientError() bool

IsClientError returns true when this get role assignments forbidden response has a 4xx status code

func (*GetRoleAssignmentsForbidden) IsCode

func (o *GetRoleAssignmentsForbidden) IsCode(code int) bool

IsCode returns true when this get role assignments forbidden response a status code equal to that given

func (*GetRoleAssignmentsForbidden) IsRedirect

func (o *GetRoleAssignmentsForbidden) IsRedirect() bool

IsRedirect returns true when this get role assignments forbidden response has a 3xx status code

func (*GetRoleAssignmentsForbidden) IsServerError

func (o *GetRoleAssignmentsForbidden) IsServerError() bool

IsServerError returns true when this get role assignments forbidden response has a 5xx status code

func (*GetRoleAssignmentsForbidden) IsSuccess

func (o *GetRoleAssignmentsForbidden) IsSuccess() bool

IsSuccess returns true when this get role assignments forbidden response has a 2xx status code

func (*GetRoleAssignmentsForbidden) String

func (o *GetRoleAssignmentsForbidden) String() string

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

Code gets the status code for the get role assignments internal server error response

func (*GetRoleAssignmentsInternalServerError) Error

func (*GetRoleAssignmentsInternalServerError) GetPayload

func (*GetRoleAssignmentsInternalServerError) IsClientError

func (o *GetRoleAssignmentsInternalServerError) IsClientError() bool

IsClientError returns true when this get role assignments internal server error response has a 4xx status code

func (*GetRoleAssignmentsInternalServerError) IsCode

IsCode returns true when this get role assignments internal server error response a status code equal to that given

func (*GetRoleAssignmentsInternalServerError) IsRedirect

IsRedirect returns true when this get role assignments internal server error response has a 3xx status code

func (*GetRoleAssignmentsInternalServerError) IsServerError

func (o *GetRoleAssignmentsInternalServerError) IsServerError() bool

IsServerError returns true when this get role assignments internal server error response has a 5xx status code

func (*GetRoleAssignmentsInternalServerError) IsSuccess

IsSuccess returns true when this get role assignments internal server error response has a 2xx status code

func (*GetRoleAssignmentsInternalServerError) String

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

func (o *GetRoleAssignmentsNotFound) Code() int

Code gets the status code for the get role assignments not found response

func (*GetRoleAssignmentsNotFound) Error

func (*GetRoleAssignmentsNotFound) GetPayload

func (*GetRoleAssignmentsNotFound) IsClientError

func (o *GetRoleAssignmentsNotFound) IsClientError() bool

IsClientError returns true when this get role assignments not found response has a 4xx status code

func (*GetRoleAssignmentsNotFound) IsCode

func (o *GetRoleAssignmentsNotFound) IsCode(code int) bool

IsCode returns true when this get role assignments not found response a status code equal to that given

func (*GetRoleAssignmentsNotFound) IsRedirect

func (o *GetRoleAssignmentsNotFound) IsRedirect() bool

IsRedirect returns true when this get role assignments not found response has a 3xx status code

func (*GetRoleAssignmentsNotFound) IsServerError

func (o *GetRoleAssignmentsNotFound) IsServerError() bool

IsServerError returns true when this get role assignments not found response has a 5xx status code

func (*GetRoleAssignmentsNotFound) IsSuccess

func (o *GetRoleAssignmentsNotFound) IsSuccess() bool

IsSuccess returns true when this get role assignments not found response has a 2xx status code

func (*GetRoleAssignmentsNotFound) String

func (o *GetRoleAssignmentsNotFound) String() string

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

func (o *GetRoleAssignmentsOK) Code() int

Code gets the status code for the get role assignments Ok response

func (*GetRoleAssignmentsOK) Error

func (o *GetRoleAssignmentsOK) Error() string

func (*GetRoleAssignmentsOK) GetPayload

func (*GetRoleAssignmentsOK) IsClientError

func (o *GetRoleAssignmentsOK) IsClientError() bool

IsClientError returns true when this get role assignments Ok response has a 4xx status code

func (*GetRoleAssignmentsOK) IsCode

func (o *GetRoleAssignmentsOK) IsCode(code int) bool

IsCode returns true when this get role assignments Ok response a status code equal to that given

func (*GetRoleAssignmentsOK) IsRedirect

func (o *GetRoleAssignmentsOK) IsRedirect() bool

IsRedirect returns true when this get role assignments Ok response has a 3xx status code

func (*GetRoleAssignmentsOK) IsServerError

func (o *GetRoleAssignmentsOK) IsServerError() bool

IsServerError returns true when this get role assignments Ok response has a 5xx status code

func (*GetRoleAssignmentsOK) IsSuccess

func (o *GetRoleAssignmentsOK) IsSuccess() bool

IsSuccess returns true when this get role assignments Ok response has a 2xx status code

func (*GetRoleAssignmentsOK) String

func (o *GetRoleAssignmentsOK) String() string

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

func (o *GetRoleForbidden) Code() int

Code gets the status code for the get role forbidden response

func (*GetRoleForbidden) Error

func (o *GetRoleForbidden) Error() string

func (*GetRoleForbidden) GetPayload

func (o *GetRoleForbidden) GetPayload() *models.ErrorResponseBody

func (*GetRoleForbidden) IsClientError

func (o *GetRoleForbidden) IsClientError() bool

IsClientError returns true when this get role forbidden response has a 4xx status code

func (*GetRoleForbidden) IsCode

func (o *GetRoleForbidden) IsCode(code int) bool

IsCode returns true when this get role forbidden response a status code equal to that given

func (*GetRoleForbidden) IsRedirect

func (o *GetRoleForbidden) IsRedirect() bool

IsRedirect returns true when this get role forbidden response has a 3xx status code

func (*GetRoleForbidden) IsServerError

func (o *GetRoleForbidden) IsServerError() bool

IsServerError returns true when this get role forbidden response has a 5xx status code

func (*GetRoleForbidden) IsSuccess

func (o *GetRoleForbidden) IsSuccess() bool

IsSuccess returns true when this get role forbidden response has a 2xx status code

func (*GetRoleForbidden) String

func (o *GetRoleForbidden) String() string

type GetRoleInternalServerError

type GetRoleInternalServerError struct {
	Payload *models.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) Code

func (o *GetRoleInternalServerError) Code() int

Code gets the status code for the get role internal server error response

func (*GetRoleInternalServerError) Error

func (*GetRoleInternalServerError) GetPayload

func (*GetRoleInternalServerError) IsClientError

func (o *GetRoleInternalServerError) IsClientError() bool

IsClientError returns true when this get role internal server error response has a 4xx status code

func (*GetRoleInternalServerError) IsCode

func (o *GetRoleInternalServerError) IsCode(code int) bool

IsCode returns true when this get role internal server error response a status code equal to that given

func (*GetRoleInternalServerError) IsRedirect

func (o *GetRoleInternalServerError) IsRedirect() bool

IsRedirect returns true when this get role internal server error response has a 3xx status code

func (*GetRoleInternalServerError) IsServerError

func (o *GetRoleInternalServerError) IsServerError() bool

IsServerError returns true when this get role internal server error response has a 5xx status code

func (*GetRoleInternalServerError) IsSuccess

func (o *GetRoleInternalServerError) IsSuccess() bool

IsSuccess returns true when this get role internal server error response has a 2xx status code

func (*GetRoleInternalServerError) String

func (o *GetRoleInternalServerError) String() string

type 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) Code

func (o *GetRoleOK) Code() int

Code gets the status code for the get role Ok response

func (*GetRoleOK) Error

func (o *GetRoleOK) Error() string

func (*GetRoleOK) GetPayload

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

func (*GetRoleOK) IsClientError

func (o *GetRoleOK) IsClientError() bool

IsClientError returns true when this get role Ok response has a 4xx status code

func (*GetRoleOK) IsCode

func (o *GetRoleOK) IsCode(code int) bool

IsCode returns true when this get role Ok response a status code equal to that given

func (*GetRoleOK) IsRedirect

func (o *GetRoleOK) IsRedirect() bool

IsRedirect returns true when this get role Ok response has a 3xx status code

func (*GetRoleOK) IsServerError

func (o *GetRoleOK) IsServerError() bool

IsServerError returns true when this get role Ok response has a 5xx status code

func (*GetRoleOK) IsSuccess

func (o *GetRoleOK) IsSuccess() bool

IsSuccess returns true when this get role Ok response has a 2xx status code

func (*GetRoleOK) String

func (o *GetRoleOK) String() string

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

func (o *ListRolesForbidden) Code() int

Code gets the status code for the list roles forbidden response

func (*ListRolesForbidden) Error

func (o *ListRolesForbidden) Error() string

func (*ListRolesForbidden) GetPayload

func (o *ListRolesForbidden) GetPayload() *models.ErrorResponseBody

func (*ListRolesForbidden) IsClientError

func (o *ListRolesForbidden) IsClientError() bool

IsClientError returns true when this list roles forbidden response has a 4xx status code

func (*ListRolesForbidden) IsCode

func (o *ListRolesForbidden) IsCode(code int) bool

IsCode returns true when this list roles forbidden response a status code equal to that given

func (*ListRolesForbidden) IsRedirect

func (o *ListRolesForbidden) IsRedirect() bool

IsRedirect returns true when this list roles forbidden response has a 3xx status code

func (*ListRolesForbidden) IsServerError

func (o *ListRolesForbidden) IsServerError() bool

IsServerError returns true when this list roles forbidden response has a 5xx status code

func (*ListRolesForbidden) IsSuccess

func (o *ListRolesForbidden) IsSuccess() bool

IsSuccess returns true when this list roles forbidden response has a 2xx status code

func (*ListRolesForbidden) String

func (o *ListRolesForbidden) String() string

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

Code gets the status code for the list roles internal server error response

func (*ListRolesInternalServerError) Error

func (*ListRolesInternalServerError) GetPayload

func (*ListRolesInternalServerError) IsClientError

func (o *ListRolesInternalServerError) IsClientError() bool

IsClientError returns true when this list roles internal server error response has a 4xx status code

func (*ListRolesInternalServerError) IsCode

func (o *ListRolesInternalServerError) IsCode(code int) bool

IsCode returns true when this list roles internal server error response a status code equal to that given

func (*ListRolesInternalServerError) IsRedirect

func (o *ListRolesInternalServerError) IsRedirect() bool

IsRedirect returns true when this list roles internal server error response has a 3xx status code

func (*ListRolesInternalServerError) IsServerError

func (o *ListRolesInternalServerError) IsServerError() bool

IsServerError returns true when this list roles internal server error response has a 5xx status code

func (*ListRolesInternalServerError) IsSuccess

func (o *ListRolesInternalServerError) IsSuccess() bool

IsSuccess returns true when this list roles internal server error response has a 2xx status code

func (*ListRolesInternalServerError) String

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

func (o *ListRolesOK) Code() int

Code gets the status code for the list roles Ok response

func (*ListRolesOK) Error

func (o *ListRolesOK) Error() string

func (*ListRolesOK) GetPayload

func (o *ListRolesOK) GetPayload() []*models.RoleDTO

func (*ListRolesOK) IsClientError

func (o *ListRolesOK) IsClientError() bool

IsClientError returns true when this list roles Ok response has a 4xx status code

func (*ListRolesOK) IsCode

func (o *ListRolesOK) IsCode(code int) bool

IsCode returns true when this list roles Ok response a status code equal to that given

func (*ListRolesOK) IsRedirect

func (o *ListRolesOK) IsRedirect() bool

IsRedirect returns true when this list roles Ok response has a 3xx status code

func (*ListRolesOK) IsServerError

func (o *ListRolesOK) IsServerError() bool

IsServerError returns true when this list roles Ok response has a 5xx status code

func (*ListRolesOK) IsSuccess

func (o *ListRolesOK) IsSuccess() bool

IsSuccess returns true when this list roles Ok response has a 2xx status code

func (*ListRolesOK) String

func (o *ListRolesOK) String() string

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

func (o *ListTeamRolesBadRequest) Code() int

Code gets the status code for the list team roles bad request response

func (*ListTeamRolesBadRequest) Error

func (o *ListTeamRolesBadRequest) Error() string

func (*ListTeamRolesBadRequest) GetPayload

func (*ListTeamRolesBadRequest) IsClientError

func (o *ListTeamRolesBadRequest) IsClientError() bool

IsClientError returns true when this list team roles bad request response has a 4xx status code

func (*ListTeamRolesBadRequest) IsCode

func (o *ListTeamRolesBadRequest) IsCode(code int) bool

IsCode returns true when this list team roles bad request response a status code equal to that given

func (*ListTeamRolesBadRequest) IsRedirect

func (o *ListTeamRolesBadRequest) IsRedirect() bool

IsRedirect returns true when this list team roles bad request response has a 3xx status code

func (*ListTeamRolesBadRequest) IsServerError

func (o *ListTeamRolesBadRequest) IsServerError() bool

IsServerError returns true when this list team roles bad request response has a 5xx status code

func (*ListTeamRolesBadRequest) IsSuccess

func (o *ListTeamRolesBadRequest) IsSuccess() bool

IsSuccess returns true when this list team roles bad request response has a 2xx status code

func (*ListTeamRolesBadRequest) String

func (o *ListTeamRolesBadRequest) String() string

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

func (o *ListTeamRolesForbidden) Code() int

Code gets the status code for the list team roles forbidden response

func (*ListTeamRolesForbidden) Error

func (o *ListTeamRolesForbidden) Error() string

func (*ListTeamRolesForbidden) GetPayload

func (*ListTeamRolesForbidden) IsClientError

func (o *ListTeamRolesForbidden) IsClientError() bool

IsClientError returns true when this list team roles forbidden response has a 4xx status code

func (*ListTeamRolesForbidden) IsCode

func (o *ListTeamRolesForbidden) IsCode(code int) bool

IsCode returns true when this list team roles forbidden response a status code equal to that given

func (*ListTeamRolesForbidden) IsRedirect

func (o *ListTeamRolesForbidden) IsRedirect() bool

IsRedirect returns true when this list team roles forbidden response has a 3xx status code

func (*ListTeamRolesForbidden) IsServerError

func (o *ListTeamRolesForbidden) IsServerError() bool

IsServerError returns true when this list team roles forbidden response has a 5xx status code

func (*ListTeamRolesForbidden) IsSuccess

func (o *ListTeamRolesForbidden) IsSuccess() bool

IsSuccess returns true when this list team roles forbidden response has a 2xx status code

func (*ListTeamRolesForbidden) String

func (o *ListTeamRolesForbidden) String() string

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

Code gets the status code for the list team roles internal server error response

func (*ListTeamRolesInternalServerError) Error

func (*ListTeamRolesInternalServerError) GetPayload

func (*ListTeamRolesInternalServerError) IsClientError

func (o *ListTeamRolesInternalServerError) IsClientError() bool

IsClientError returns true when this list team roles internal server error response has a 4xx status code

func (*ListTeamRolesInternalServerError) IsCode

func (o *ListTeamRolesInternalServerError) IsCode(code int) bool

IsCode returns true when this list team roles internal server error response a status code equal to that given

func (*ListTeamRolesInternalServerError) IsRedirect

func (o *ListTeamRolesInternalServerError) IsRedirect() bool

IsRedirect returns true when this list team roles internal server error response has a 3xx status code

func (*ListTeamRolesInternalServerError) IsServerError

func (o *ListTeamRolesInternalServerError) IsServerError() bool

IsServerError returns true when this list team roles internal server error response has a 5xx status code

func (*ListTeamRolesInternalServerError) IsSuccess

func (o *ListTeamRolesInternalServerError) IsSuccess() bool

IsSuccess returns true when this list team roles internal server error response has a 2xx status code

func (*ListTeamRolesInternalServerError) String

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

func (o *ListTeamRolesOK) Code() int

Code gets the status code for the list team roles Ok response

func (*ListTeamRolesOK) Error

func (o *ListTeamRolesOK) Error() string

func (*ListTeamRolesOK) GetPayload

func (o *ListTeamRolesOK) GetPayload() *models.SuccessResponseBody

func (*ListTeamRolesOK) IsClientError

func (o *ListTeamRolesOK) IsClientError() bool

IsClientError returns true when this list team roles Ok response has a 4xx status code

func (*ListTeamRolesOK) IsCode

func (o *ListTeamRolesOK) IsCode(code int) bool

IsCode returns true when this list team roles Ok response a status code equal to that given

func (*ListTeamRolesOK) IsRedirect

func (o *ListTeamRolesOK) IsRedirect() bool

IsRedirect returns true when this list team roles Ok response has a 3xx status code

func (*ListTeamRolesOK) IsServerError

func (o *ListTeamRolesOK) IsServerError() bool

IsServerError returns true when this list team roles Ok response has a 5xx status code

func (*ListTeamRolesOK) IsSuccess

func (o *ListTeamRolesOK) IsSuccess() bool

IsSuccess returns true when this list team roles Ok response has a 2xx status code

func (*ListTeamRolesOK) String

func (o *ListTeamRolesOK) String() string

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 ListTeamsRolesBadRequest

type ListTeamsRolesBadRequest struct {
	Payload *models.ErrorResponseBody
}

ListTeamsRolesBadRequest 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 NewListTeamsRolesBadRequest

func NewListTeamsRolesBadRequest() *ListTeamsRolesBadRequest

NewListTeamsRolesBadRequest creates a ListTeamsRolesBadRequest with default headers values

func (*ListTeamsRolesBadRequest) Code

func (o *ListTeamsRolesBadRequest) Code() int

Code gets the status code for the list teams roles bad request response

func (*ListTeamsRolesBadRequest) Error

func (o *ListTeamsRolesBadRequest) Error() string

func (*ListTeamsRolesBadRequest) GetPayload

func (*ListTeamsRolesBadRequest) IsClientError

func (o *ListTeamsRolesBadRequest) IsClientError() bool

IsClientError returns true when this list teams roles bad request response has a 4xx status code

func (*ListTeamsRolesBadRequest) IsCode

func (o *ListTeamsRolesBadRequest) IsCode(code int) bool

IsCode returns true when this list teams roles bad request response a status code equal to that given

func (*ListTeamsRolesBadRequest) IsRedirect

func (o *ListTeamsRolesBadRequest) IsRedirect() bool

IsRedirect returns true when this list teams roles bad request response has a 3xx status code

func (*ListTeamsRolesBadRequest) IsServerError

func (o *ListTeamsRolesBadRequest) IsServerError() bool

IsServerError returns true when this list teams roles bad request response has a 5xx status code

func (*ListTeamsRolesBadRequest) IsSuccess

func (o *ListTeamsRolesBadRequest) IsSuccess() bool

IsSuccess returns true when this list teams roles bad request response has a 2xx status code

func (*ListTeamsRolesBadRequest) String

func (o *ListTeamsRolesBadRequest) String() string

type ListTeamsRolesForbidden

type ListTeamsRolesForbidden struct {
	Payload *models.ErrorResponseBody
}

ListTeamsRolesForbidden 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 NewListTeamsRolesForbidden

func NewListTeamsRolesForbidden() *ListTeamsRolesForbidden

NewListTeamsRolesForbidden creates a ListTeamsRolesForbidden with default headers values

func (*ListTeamsRolesForbidden) Code

func (o *ListTeamsRolesForbidden) Code() int

Code gets the status code for the list teams roles forbidden response

func (*ListTeamsRolesForbidden) Error

func (o *ListTeamsRolesForbidden) Error() string

func (*ListTeamsRolesForbidden) GetPayload

func (*ListTeamsRolesForbidden) IsClientError

func (o *ListTeamsRolesForbidden) IsClientError() bool

IsClientError returns true when this list teams roles forbidden response has a 4xx status code

func (*ListTeamsRolesForbidden) IsCode

func (o *ListTeamsRolesForbidden) IsCode(code int) bool

IsCode returns true when this list teams roles forbidden response a status code equal to that given

func (*ListTeamsRolesForbidden) IsRedirect

func (o *ListTeamsRolesForbidden) IsRedirect() bool

IsRedirect returns true when this list teams roles forbidden response has a 3xx status code

func (*ListTeamsRolesForbidden) IsServerError

func (o *ListTeamsRolesForbidden) IsServerError() bool

IsServerError returns true when this list teams roles forbidden response has a 5xx status code

func (*ListTeamsRolesForbidden) IsSuccess

func (o *ListTeamsRolesForbidden) IsSuccess() bool

IsSuccess returns true when this list teams roles forbidden response has a 2xx status code

func (*ListTeamsRolesForbidden) String

func (o *ListTeamsRolesForbidden) String() string

type ListTeamsRolesInternalServerError

type ListTeamsRolesInternalServerError struct {
	Payload *models.ErrorResponseBody
}

ListTeamsRolesInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewListTeamsRolesInternalServerError

func NewListTeamsRolesInternalServerError() *ListTeamsRolesInternalServerError

NewListTeamsRolesInternalServerError creates a ListTeamsRolesInternalServerError with default headers values

func (*ListTeamsRolesInternalServerError) Code

Code gets the status code for the list teams roles internal server error response

func (*ListTeamsRolesInternalServerError) Error

func (*ListTeamsRolesInternalServerError) GetPayload

func (*ListTeamsRolesInternalServerError) IsClientError

func (o *ListTeamsRolesInternalServerError) IsClientError() bool

IsClientError returns true when this list teams roles internal server error response has a 4xx status code

func (*ListTeamsRolesInternalServerError) IsCode

func (o *ListTeamsRolesInternalServerError) IsCode(code int) bool

IsCode returns true when this list teams roles internal server error response a status code equal to that given

func (*ListTeamsRolesInternalServerError) IsRedirect

func (o *ListTeamsRolesInternalServerError) IsRedirect() bool

IsRedirect returns true when this list teams roles internal server error response has a 3xx status code

func (*ListTeamsRolesInternalServerError) IsServerError

func (o *ListTeamsRolesInternalServerError) IsServerError() bool

IsServerError returns true when this list teams roles internal server error response has a 5xx status code

func (*ListTeamsRolesInternalServerError) IsSuccess

func (o *ListTeamsRolesInternalServerError) IsSuccess() bool

IsSuccess returns true when this list teams roles internal server error response has a 2xx status code

func (*ListTeamsRolesInternalServerError) String

type ListTeamsRolesOK

type ListTeamsRolesOK struct {
	Payload map[string][]models.RoleDTO
}

ListTeamsRolesOK describes a response with status code 200, with default header values.

(empty)

func NewListTeamsRolesOK

func NewListTeamsRolesOK() *ListTeamsRolesOK

NewListTeamsRolesOK creates a ListTeamsRolesOK with default headers values

func (*ListTeamsRolesOK) Code

func (o *ListTeamsRolesOK) Code() int

Code gets the status code for the list teams roles Ok response

func (*ListTeamsRolesOK) Error

func (o *ListTeamsRolesOK) Error() string

func (*ListTeamsRolesOK) GetPayload

func (o *ListTeamsRolesOK) GetPayload() map[string][]models.RoleDTO

func (*ListTeamsRolesOK) IsClientError

func (o *ListTeamsRolesOK) IsClientError() bool

IsClientError returns true when this list teams roles Ok response has a 4xx status code

func (*ListTeamsRolesOK) IsCode

func (o *ListTeamsRolesOK) IsCode(code int) bool

IsCode returns true when this list teams roles Ok response a status code equal to that given

func (*ListTeamsRolesOK) IsRedirect

func (o *ListTeamsRolesOK) IsRedirect() bool

IsRedirect returns true when this list teams roles Ok response has a 3xx status code

func (*ListTeamsRolesOK) IsServerError

func (o *ListTeamsRolesOK) IsServerError() bool

IsServerError returns true when this list teams roles Ok response has a 5xx status code

func (*ListTeamsRolesOK) IsSuccess

func (o *ListTeamsRolesOK) IsSuccess() bool

IsSuccess returns true when this list teams roles Ok response has a 2xx status code

func (*ListTeamsRolesOK) String

func (o *ListTeamsRolesOK) String() string

type ListTeamsRolesParams

type ListTeamsRolesParams struct {

	// Body.
	Body *models.RolesSearchQuery

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListTeamsRolesParams contains all the parameters to send to the API endpoint

for the list teams roles operation.

Typically these are written to a http.Request.

func NewListTeamsRolesParams

func NewListTeamsRolesParams() *ListTeamsRolesParams

NewListTeamsRolesParams creates a new ListTeamsRolesParams 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 NewListTeamsRolesParamsWithContext

func NewListTeamsRolesParamsWithContext(ctx context.Context) *ListTeamsRolesParams

NewListTeamsRolesParamsWithContext creates a new ListTeamsRolesParams object with the ability to set a context for a request.

func NewListTeamsRolesParamsWithHTTPClient

func NewListTeamsRolesParamsWithHTTPClient(client *http.Client) *ListTeamsRolesParams

NewListTeamsRolesParamsWithHTTPClient creates a new ListTeamsRolesParams object with the ability to set a custom HTTPClient for a request.

func NewListTeamsRolesParamsWithTimeout

func NewListTeamsRolesParamsWithTimeout(timeout time.Duration) *ListTeamsRolesParams

NewListTeamsRolesParamsWithTimeout creates a new ListTeamsRolesParams object with the ability to set a timeout on a request.

func (*ListTeamsRolesParams) SetBody

func (o *ListTeamsRolesParams) SetBody(body *models.RolesSearchQuery)

SetBody adds the body to the list teams roles params

func (*ListTeamsRolesParams) SetContext

func (o *ListTeamsRolesParams) SetContext(ctx context.Context)

SetContext adds the context to the list teams roles params

func (*ListTeamsRolesParams) SetDefaults

func (o *ListTeamsRolesParams) SetDefaults()

SetDefaults hydrates default values in the list teams roles params (not the query body).

All values with no default are reset to their zero value.

func (*ListTeamsRolesParams) SetHTTPClient

func (o *ListTeamsRolesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list teams roles params

func (*ListTeamsRolesParams) SetTimeout

func (o *ListTeamsRolesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list teams roles params

func (*ListTeamsRolesParams) WithBody

WithBody adds the body to the list teams roles params

func (*ListTeamsRolesParams) WithContext

WithContext adds the context to the list teams roles params

func (*ListTeamsRolesParams) WithDefaults

func (o *ListTeamsRolesParams) WithDefaults() *ListTeamsRolesParams

WithDefaults hydrates default values in the list teams roles params (not the query body).

All values with no default are reset to their zero value.

func (*ListTeamsRolesParams) WithHTTPClient

func (o *ListTeamsRolesParams) WithHTTPClient(client *http.Client) *ListTeamsRolesParams

WithHTTPClient adds the HTTPClient to the list teams roles params

func (*ListTeamsRolesParams) WithTimeout

func (o *ListTeamsRolesParams) WithTimeout(timeout time.Duration) *ListTeamsRolesParams

WithTimeout adds the timeout to the list teams roles params

func (*ListTeamsRolesParams) WriteToRequest

func (o *ListTeamsRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListTeamsRolesReader

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

ListTeamsRolesReader is a Reader for the ListTeamsRoles structure.

func (*ListTeamsRolesReader) ReadResponse

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

func (o *ListUserRolesBadRequest) Code() int

Code gets the status code for the list user roles bad request response

func (*ListUserRolesBadRequest) Error

func (o *ListUserRolesBadRequest) Error() string

func (*ListUserRolesBadRequest) GetPayload

func (*ListUserRolesBadRequest) IsClientError

func (o *ListUserRolesBadRequest) IsClientError() bool

IsClientError returns true when this list user roles bad request response has a 4xx status code

func (*ListUserRolesBadRequest) IsCode

func (o *ListUserRolesBadRequest) IsCode(code int) bool

IsCode returns true when this list user roles bad request response a status code equal to that given

func (*ListUserRolesBadRequest) IsRedirect

func (o *ListUserRolesBadRequest) IsRedirect() bool

IsRedirect returns true when this list user roles bad request response has a 3xx status code

func (*ListUserRolesBadRequest) IsServerError

func (o *ListUserRolesBadRequest) IsServerError() bool

IsServerError returns true when this list user roles bad request response has a 5xx status code

func (*ListUserRolesBadRequest) IsSuccess

func (o *ListUserRolesBadRequest) IsSuccess() bool

IsSuccess returns true when this list user roles bad request response has a 2xx status code

func (*ListUserRolesBadRequest) String

func (o *ListUserRolesBadRequest) String() string

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

func (o *ListUserRolesForbidden) Code() int

Code gets the status code for the list user roles forbidden response

func (*ListUserRolesForbidden) Error

func (o *ListUserRolesForbidden) Error() string

func (*ListUserRolesForbidden) GetPayload

func (*ListUserRolesForbidden) IsClientError

func (o *ListUserRolesForbidden) IsClientError() bool

IsClientError returns true when this list user roles forbidden response has a 4xx status code

func (*ListUserRolesForbidden) IsCode

func (o *ListUserRolesForbidden) IsCode(code int) bool

IsCode returns true when this list user roles forbidden response a status code equal to that given

func (*ListUserRolesForbidden) IsRedirect

func (o *ListUserRolesForbidden) IsRedirect() bool

IsRedirect returns true when this list user roles forbidden response has a 3xx status code

func (*ListUserRolesForbidden) IsServerError

func (o *ListUserRolesForbidden) IsServerError() bool

IsServerError returns true when this list user roles forbidden response has a 5xx status code

func (*ListUserRolesForbidden) IsSuccess

func (o *ListUserRolesForbidden) IsSuccess() bool

IsSuccess returns true when this list user roles forbidden response has a 2xx status code

func (*ListUserRolesForbidden) String

func (o *ListUserRolesForbidden) String() string

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

Code gets the status code for the list user roles internal server error response

func (*ListUserRolesInternalServerError) Error

func (*ListUserRolesInternalServerError) GetPayload

func (*ListUserRolesInternalServerError) IsClientError

func (o *ListUserRolesInternalServerError) IsClientError() bool

IsClientError returns true when this list user roles internal server error response has a 4xx status code

func (*ListUserRolesInternalServerError) IsCode

func (o *ListUserRolesInternalServerError) IsCode(code int) bool

IsCode returns true when this list user roles internal server error response a status code equal to that given

func (*ListUserRolesInternalServerError) IsRedirect

func (o *ListUserRolesInternalServerError) IsRedirect() bool

IsRedirect returns true when this list user roles internal server error response has a 3xx status code

func (*ListUserRolesInternalServerError) IsServerError

func (o *ListUserRolesInternalServerError) IsServerError() bool

IsServerError returns true when this list user roles internal server error response has a 5xx status code

func (*ListUserRolesInternalServerError) IsSuccess

func (o *ListUserRolesInternalServerError) IsSuccess() bool

IsSuccess returns true when this list user roles internal server error response has a 2xx status code

func (*ListUserRolesInternalServerError) String

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

func (o *ListUserRolesOK) Code() int

Code gets the status code for the list user roles Ok response

func (*ListUserRolesOK) Error

func (o *ListUserRolesOK) Error() string

func (*ListUserRolesOK) GetPayload

func (o *ListUserRolesOK) GetPayload() []*models.RoleDTO

func (*ListUserRolesOK) IsClientError

func (o *ListUserRolesOK) IsClientError() bool

IsClientError returns true when this list user roles Ok response has a 4xx status code

func (*ListUserRolesOK) IsCode

func (o *ListUserRolesOK) IsCode(code int) bool

IsCode returns true when this list user roles Ok response a status code equal to that given

func (*ListUserRolesOK) IsRedirect

func (o *ListUserRolesOK) IsRedirect() bool

IsRedirect returns true when this list user roles Ok response has a 3xx status code

func (*ListUserRolesOK) IsServerError

func (o *ListUserRolesOK) IsServerError() bool

IsServerError returns true when this list user roles Ok response has a 5xx status code

func (*ListUserRolesOK) IsSuccess

func (o *ListUserRolesOK) IsSuccess() bool

IsSuccess returns true when this list user roles Ok response has a 2xx status code

func (*ListUserRolesOK) String

func (o *ListUserRolesOK) String() string

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 ListUsersRolesBadRequest

type ListUsersRolesBadRequest struct {
	Payload *models.ErrorResponseBody
}

ListUsersRolesBadRequest 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 NewListUsersRolesBadRequest

func NewListUsersRolesBadRequest() *ListUsersRolesBadRequest

NewListUsersRolesBadRequest creates a ListUsersRolesBadRequest with default headers values

func (*ListUsersRolesBadRequest) Code

func (o *ListUsersRolesBadRequest) Code() int

Code gets the status code for the list users roles bad request response

func (*ListUsersRolesBadRequest) Error

func (o *ListUsersRolesBadRequest) Error() string

func (*ListUsersRolesBadRequest) GetPayload

func (*ListUsersRolesBadRequest) IsClientError

func (o *ListUsersRolesBadRequest) IsClientError() bool

IsClientError returns true when this list users roles bad request response has a 4xx status code

func (*ListUsersRolesBadRequest) IsCode

func (o *ListUsersRolesBadRequest) IsCode(code int) bool

IsCode returns true when this list users roles bad request response a status code equal to that given

func (*ListUsersRolesBadRequest) IsRedirect

func (o *ListUsersRolesBadRequest) IsRedirect() bool

IsRedirect returns true when this list users roles bad request response has a 3xx status code

func (*ListUsersRolesBadRequest) IsServerError

func (o *ListUsersRolesBadRequest) IsServerError() bool

IsServerError returns true when this list users roles bad request response has a 5xx status code

func (*ListUsersRolesBadRequest) IsSuccess

func (o *ListUsersRolesBadRequest) IsSuccess() bool

IsSuccess returns true when this list users roles bad request response has a 2xx status code

func (*ListUsersRolesBadRequest) String

func (o *ListUsersRolesBadRequest) String() string

type ListUsersRolesForbidden

type ListUsersRolesForbidden struct {
	Payload *models.ErrorResponseBody
}

ListUsersRolesForbidden 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 NewListUsersRolesForbidden

func NewListUsersRolesForbidden() *ListUsersRolesForbidden

NewListUsersRolesForbidden creates a ListUsersRolesForbidden with default headers values

func (*ListUsersRolesForbidden) Code

func (o *ListUsersRolesForbidden) Code() int

Code gets the status code for the list users roles forbidden response

func (*ListUsersRolesForbidden) Error

func (o *ListUsersRolesForbidden) Error() string

func (*ListUsersRolesForbidden) GetPayload

func (*ListUsersRolesForbidden) IsClientError

func (o *ListUsersRolesForbidden) IsClientError() bool

IsClientError returns true when this list users roles forbidden response has a 4xx status code

func (*ListUsersRolesForbidden) IsCode

func (o *ListUsersRolesForbidden) IsCode(code int) bool

IsCode returns true when this list users roles forbidden response a status code equal to that given

func (*ListUsersRolesForbidden) IsRedirect

func (o *ListUsersRolesForbidden) IsRedirect() bool

IsRedirect returns true when this list users roles forbidden response has a 3xx status code

func (*ListUsersRolesForbidden) IsServerError

func (o *ListUsersRolesForbidden) IsServerError() bool

IsServerError returns true when this list users roles forbidden response has a 5xx status code

func (*ListUsersRolesForbidden) IsSuccess

func (o *ListUsersRolesForbidden) IsSuccess() bool

IsSuccess returns true when this list users roles forbidden response has a 2xx status code

func (*ListUsersRolesForbidden) String

func (o *ListUsersRolesForbidden) String() string

type ListUsersRolesInternalServerError

type ListUsersRolesInternalServerError struct {
	Payload *models.ErrorResponseBody
}

ListUsersRolesInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewListUsersRolesInternalServerError

func NewListUsersRolesInternalServerError() *ListUsersRolesInternalServerError

NewListUsersRolesInternalServerError creates a ListUsersRolesInternalServerError with default headers values

func (*ListUsersRolesInternalServerError) Code

Code gets the status code for the list users roles internal server error response

func (*ListUsersRolesInternalServerError) Error

func (*ListUsersRolesInternalServerError) GetPayload

func (*ListUsersRolesInternalServerError) IsClientError

func (o *ListUsersRolesInternalServerError) IsClientError() bool

IsClientError returns true when this list users roles internal server error response has a 4xx status code

func (*ListUsersRolesInternalServerError) IsCode

func (o *ListUsersRolesInternalServerError) IsCode(code int) bool

IsCode returns true when this list users roles internal server error response a status code equal to that given

func (*ListUsersRolesInternalServerError) IsRedirect

func (o *ListUsersRolesInternalServerError) IsRedirect() bool

IsRedirect returns true when this list users roles internal server error response has a 3xx status code

func (*ListUsersRolesInternalServerError) IsServerError

func (o *ListUsersRolesInternalServerError) IsServerError() bool

IsServerError returns true when this list users roles internal server error response has a 5xx status code

func (*ListUsersRolesInternalServerError) IsSuccess

func (o *ListUsersRolesInternalServerError) IsSuccess() bool

IsSuccess returns true when this list users roles internal server error response has a 2xx status code

func (*ListUsersRolesInternalServerError) String

type ListUsersRolesOK

type ListUsersRolesOK struct {
	Payload map[string][]models.RoleDTO
}

ListUsersRolesOK describes a response with status code 200, with default header values.

(empty)

func NewListUsersRolesOK

func NewListUsersRolesOK() *ListUsersRolesOK

NewListUsersRolesOK creates a ListUsersRolesOK with default headers values

func (*ListUsersRolesOK) Code

func (o *ListUsersRolesOK) Code() int

Code gets the status code for the list users roles Ok response

func (*ListUsersRolesOK) Error

func (o *ListUsersRolesOK) Error() string

func (*ListUsersRolesOK) GetPayload

func (o *ListUsersRolesOK) GetPayload() map[string][]models.RoleDTO

func (*ListUsersRolesOK) IsClientError

func (o *ListUsersRolesOK) IsClientError() bool

IsClientError returns true when this list users roles Ok response has a 4xx status code

func (*ListUsersRolesOK) IsCode

func (o *ListUsersRolesOK) IsCode(code int) bool

IsCode returns true when this list users roles Ok response a status code equal to that given

func (*ListUsersRolesOK) IsRedirect

func (o *ListUsersRolesOK) IsRedirect() bool

IsRedirect returns true when this list users roles Ok response has a 3xx status code

func (*ListUsersRolesOK) IsServerError

func (o *ListUsersRolesOK) IsServerError() bool

IsServerError returns true when this list users roles Ok response has a 5xx status code

func (*ListUsersRolesOK) IsSuccess

func (o *ListUsersRolesOK) IsSuccess() bool

IsSuccess returns true when this list users roles Ok response has a 2xx status code

func (*ListUsersRolesOK) String

func (o *ListUsersRolesOK) String() string

type ListUsersRolesParams

type ListUsersRolesParams struct {

	// Body.
	Body *models.RolesSearchQuery

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListUsersRolesParams contains all the parameters to send to the API endpoint

for the list users roles operation.

Typically these are written to a http.Request.

func NewListUsersRolesParams

func NewListUsersRolesParams() *ListUsersRolesParams

NewListUsersRolesParams creates a new ListUsersRolesParams 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 NewListUsersRolesParamsWithContext

func NewListUsersRolesParamsWithContext(ctx context.Context) *ListUsersRolesParams

NewListUsersRolesParamsWithContext creates a new ListUsersRolesParams object with the ability to set a context for a request.

func NewListUsersRolesParamsWithHTTPClient

func NewListUsersRolesParamsWithHTTPClient(client *http.Client) *ListUsersRolesParams

NewListUsersRolesParamsWithHTTPClient creates a new ListUsersRolesParams object with the ability to set a custom HTTPClient for a request.

func NewListUsersRolesParamsWithTimeout

func NewListUsersRolesParamsWithTimeout(timeout time.Duration) *ListUsersRolesParams

NewListUsersRolesParamsWithTimeout creates a new ListUsersRolesParams object with the ability to set a timeout on a request.

func (*ListUsersRolesParams) SetBody

func (o *ListUsersRolesParams) SetBody(body *models.RolesSearchQuery)

SetBody adds the body to the list users roles params

func (*ListUsersRolesParams) SetContext

func (o *ListUsersRolesParams) SetContext(ctx context.Context)

SetContext adds the context to the list users roles params

func (*ListUsersRolesParams) SetDefaults

func (o *ListUsersRolesParams) SetDefaults()

SetDefaults hydrates default values in the list users roles params (not the query body).

All values with no default are reset to their zero value.

func (*ListUsersRolesParams) SetHTTPClient

func (o *ListUsersRolesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list users roles params

func (*ListUsersRolesParams) SetTimeout

func (o *ListUsersRolesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list users roles params

func (*ListUsersRolesParams) WithBody

WithBody adds the body to the list users roles params

func (*ListUsersRolesParams) WithContext

WithContext adds the context to the list users roles params

func (*ListUsersRolesParams) WithDefaults

func (o *ListUsersRolesParams) WithDefaults() *ListUsersRolesParams

WithDefaults hydrates default values in the list users roles params (not the query body).

All values with no default are reset to their zero value.

func (*ListUsersRolesParams) WithHTTPClient

func (o *ListUsersRolesParams) WithHTTPClient(client *http.Client) *ListUsersRolesParams

WithHTTPClient adds the HTTPClient to the list users roles params

func (*ListUsersRolesParams) WithTimeout

func (o *ListUsersRolesParams) WithTimeout(timeout time.Duration) *ListUsersRolesParams

WithTimeout adds the timeout to the list users roles params

func (*ListUsersRolesParams) WriteToRequest

func (o *ListUsersRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListUsersRolesReader

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

ListUsersRolesReader is a Reader for the ListUsersRoles structure.

func (*ListUsersRolesReader) ReadResponse

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

func (o *RemoveTeamRoleBadRequest) Code() int

Code gets the status code for the remove team role bad request response

func (*RemoveTeamRoleBadRequest) Error

func (o *RemoveTeamRoleBadRequest) Error() string

func (*RemoveTeamRoleBadRequest) GetPayload

func (*RemoveTeamRoleBadRequest) IsClientError

func (o *RemoveTeamRoleBadRequest) IsClientError() bool

IsClientError returns true when this remove team role bad request response has a 4xx status code

func (*RemoveTeamRoleBadRequest) IsCode

func (o *RemoveTeamRoleBadRequest) IsCode(code int) bool

IsCode returns true when this remove team role bad request response a status code equal to that given

func (*RemoveTeamRoleBadRequest) IsRedirect

func (o *RemoveTeamRoleBadRequest) IsRedirect() bool

IsRedirect returns true when this remove team role bad request response has a 3xx status code

func (*RemoveTeamRoleBadRequest) IsServerError

func (o *RemoveTeamRoleBadRequest) IsServerError() bool

IsServerError returns true when this remove team role bad request response has a 5xx status code

func (*RemoveTeamRoleBadRequest) IsSuccess

func (o *RemoveTeamRoleBadRequest) IsSuccess() bool

IsSuccess returns true when this remove team role bad request response has a 2xx status code

func (*RemoveTeamRoleBadRequest) String

func (o *RemoveTeamRoleBadRequest) String() string

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

func (o *RemoveTeamRoleForbidden) Code() int

Code gets the status code for the remove team role forbidden response

func (*RemoveTeamRoleForbidden) Error

func (o *RemoveTeamRoleForbidden) Error() string

func (*RemoveTeamRoleForbidden) GetPayload

func (*RemoveTeamRoleForbidden) IsClientError

func (o *RemoveTeamRoleForbidden) IsClientError() bool

IsClientError returns true when this remove team role forbidden response has a 4xx status code

func (*RemoveTeamRoleForbidden) IsCode

func (o *RemoveTeamRoleForbidden) IsCode(code int) bool

IsCode returns true when this remove team role forbidden response a status code equal to that given

func (*RemoveTeamRoleForbidden) IsRedirect

func (o *RemoveTeamRoleForbidden) IsRedirect() bool

IsRedirect returns true when this remove team role forbidden response has a 3xx status code

func (*RemoveTeamRoleForbidden) IsServerError

func (o *RemoveTeamRoleForbidden) IsServerError() bool

IsServerError returns true when this remove team role forbidden response has a 5xx status code

func (*RemoveTeamRoleForbidden) IsSuccess

func (o *RemoveTeamRoleForbidden) IsSuccess() bool

IsSuccess returns true when this remove team role forbidden response has a 2xx status code

func (*RemoveTeamRoleForbidden) String

func (o *RemoveTeamRoleForbidden) String() string

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

Code gets the status code for the remove team role internal server error response

func (*RemoveTeamRoleInternalServerError) Error

func (*RemoveTeamRoleInternalServerError) GetPayload

func (*RemoveTeamRoleInternalServerError) IsClientError

func (o *RemoveTeamRoleInternalServerError) IsClientError() bool

IsClientError returns true when this remove team role internal server error response has a 4xx status code

func (*RemoveTeamRoleInternalServerError) IsCode

func (o *RemoveTeamRoleInternalServerError) IsCode(code int) bool

IsCode returns true when this remove team role internal server error response a status code equal to that given

func (*RemoveTeamRoleInternalServerError) IsRedirect

func (o *RemoveTeamRoleInternalServerError) IsRedirect() bool

IsRedirect returns true when this remove team role internal server error response has a 3xx status code

func (*RemoveTeamRoleInternalServerError) IsServerError

func (o *RemoveTeamRoleInternalServerError) IsServerError() bool

IsServerError returns true when this remove team role internal server error response has a 5xx status code

func (*RemoveTeamRoleInternalServerError) IsSuccess

func (o *RemoveTeamRoleInternalServerError) IsSuccess() bool

IsSuccess returns true when this remove team role internal server error response has a 2xx status code

func (*RemoveTeamRoleInternalServerError) String

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

func (o *RemoveTeamRoleNotFound) Code() int

Code gets the status code for the remove team role not found response

func (*RemoveTeamRoleNotFound) Error

func (o *RemoveTeamRoleNotFound) Error() string

func (*RemoveTeamRoleNotFound) GetPayload

func (*RemoveTeamRoleNotFound) IsClientError

func (o *RemoveTeamRoleNotFound) IsClientError() bool

IsClientError returns true when this remove team role not found response has a 4xx status code

func (*RemoveTeamRoleNotFound) IsCode

func (o *RemoveTeamRoleNotFound) IsCode(code int) bool

IsCode returns true when this remove team role not found response a status code equal to that given

func (*RemoveTeamRoleNotFound) IsRedirect

func (o *RemoveTeamRoleNotFound) IsRedirect() bool

IsRedirect returns true when this remove team role not found response has a 3xx status code

func (*RemoveTeamRoleNotFound) IsServerError

func (o *RemoveTeamRoleNotFound) IsServerError() bool

IsServerError returns true when this remove team role not found response has a 5xx status code

func (*RemoveTeamRoleNotFound) IsSuccess

func (o *RemoveTeamRoleNotFound) IsSuccess() bool

IsSuccess returns true when this remove team role not found response has a 2xx status code

func (*RemoveTeamRoleNotFound) String

func (o *RemoveTeamRoleNotFound) String() string

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

func (o *RemoveTeamRoleOK) Code() int

Code gets the status code for the remove team role Ok response

func (*RemoveTeamRoleOK) Error

func (o *RemoveTeamRoleOK) Error() string

func (*RemoveTeamRoleOK) GetPayload

func (o *RemoveTeamRoleOK) GetPayload() *models.SuccessResponseBody

func (*RemoveTeamRoleOK) IsClientError

func (o *RemoveTeamRoleOK) IsClientError() bool

IsClientError returns true when this remove team role Ok response has a 4xx status code

func (*RemoveTeamRoleOK) IsCode

func (o *RemoveTeamRoleOK) IsCode(code int) bool

IsCode returns true when this remove team role Ok response a status code equal to that given

func (*RemoveTeamRoleOK) IsRedirect

func (o *RemoveTeamRoleOK) IsRedirect() bool

IsRedirect returns true when this remove team role Ok response has a 3xx status code

func (*RemoveTeamRoleOK) IsServerError

func (o *RemoveTeamRoleOK) IsServerError() bool

IsServerError returns true when this remove team role Ok response has a 5xx status code

func (*RemoveTeamRoleOK) IsSuccess

func (o *RemoveTeamRoleOK) IsSuccess() bool

IsSuccess returns true when this remove team role Ok response has a 2xx status code

func (*RemoveTeamRoleOK) String

func (o *RemoveTeamRoleOK) String() string

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

func (o *RemoveUserRoleBadRequest) Code() int

Code gets the status code for the remove user role bad request response

func (*RemoveUserRoleBadRequest) Error

func (o *RemoveUserRoleBadRequest) Error() string

func (*RemoveUserRoleBadRequest) GetPayload

func (*RemoveUserRoleBadRequest) IsClientError

func (o *RemoveUserRoleBadRequest) IsClientError() bool

IsClientError returns true when this remove user role bad request response has a 4xx status code

func (*RemoveUserRoleBadRequest) IsCode

func (o *RemoveUserRoleBadRequest) IsCode(code int) bool

IsCode returns true when this remove user role bad request response a status code equal to that given

func (*RemoveUserRoleBadRequest) IsRedirect

func (o *RemoveUserRoleBadRequest) IsRedirect() bool

IsRedirect returns true when this remove user role bad request response has a 3xx status code

func (*RemoveUserRoleBadRequest) IsServerError

func (o *RemoveUserRoleBadRequest) IsServerError() bool

IsServerError returns true when this remove user role bad request response has a 5xx status code

func (*RemoveUserRoleBadRequest) IsSuccess

func (o *RemoveUserRoleBadRequest) IsSuccess() bool

IsSuccess returns true when this remove user role bad request response has a 2xx status code

func (*RemoveUserRoleBadRequest) String

func (o *RemoveUserRoleBadRequest) String() string

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

func (o *RemoveUserRoleForbidden) Code() int

Code gets the status code for the remove user role forbidden response

func (*RemoveUserRoleForbidden) Error

func (o *RemoveUserRoleForbidden) Error() string

func (*RemoveUserRoleForbidden) GetPayload

func (*RemoveUserRoleForbidden) IsClientError

func (o *RemoveUserRoleForbidden) IsClientError() bool

IsClientError returns true when this remove user role forbidden response has a 4xx status code

func (*RemoveUserRoleForbidden) IsCode

func (o *RemoveUserRoleForbidden) IsCode(code int) bool

IsCode returns true when this remove user role forbidden response a status code equal to that given

func (*RemoveUserRoleForbidden) IsRedirect

func (o *RemoveUserRoleForbidden) IsRedirect() bool

IsRedirect returns true when this remove user role forbidden response has a 3xx status code

func (*RemoveUserRoleForbidden) IsServerError

func (o *RemoveUserRoleForbidden) IsServerError() bool

IsServerError returns true when this remove user role forbidden response has a 5xx status code

func (*RemoveUserRoleForbidden) IsSuccess

func (o *RemoveUserRoleForbidden) IsSuccess() bool

IsSuccess returns true when this remove user role forbidden response has a 2xx status code

func (*RemoveUserRoleForbidden) String

func (o *RemoveUserRoleForbidden) String() string

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

Code gets the status code for the remove user role internal server error response

func (*RemoveUserRoleInternalServerError) Error

func (*RemoveUserRoleInternalServerError) GetPayload

func (*RemoveUserRoleInternalServerError) IsClientError

func (o *RemoveUserRoleInternalServerError) IsClientError() bool

IsClientError returns true when this remove user role internal server error response has a 4xx status code

func (*RemoveUserRoleInternalServerError) IsCode

func (o *RemoveUserRoleInternalServerError) IsCode(code int) bool

IsCode returns true when this remove user role internal server error response a status code equal to that given

func (*RemoveUserRoleInternalServerError) IsRedirect

func (o *RemoveUserRoleInternalServerError) IsRedirect() bool

IsRedirect returns true when this remove user role internal server error response has a 3xx status code

func (*RemoveUserRoleInternalServerError) IsServerError

func (o *RemoveUserRoleInternalServerError) IsServerError() bool

IsServerError returns true when this remove user role internal server error response has a 5xx status code

func (*RemoveUserRoleInternalServerError) IsSuccess

func (o *RemoveUserRoleInternalServerError) IsSuccess() bool

IsSuccess returns true when this remove user role internal server error response has a 2xx status code

func (*RemoveUserRoleInternalServerError) String

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

func (o *RemoveUserRoleNotFound) Code() int

Code gets the status code for the remove user role not found response

func (*RemoveUserRoleNotFound) Error

func (o *RemoveUserRoleNotFound) Error() string

func (*RemoveUserRoleNotFound) GetPayload

func (*RemoveUserRoleNotFound) IsClientError

func (o *RemoveUserRoleNotFound) IsClientError() bool

IsClientError returns true when this remove user role not found response has a 4xx status code

func (*RemoveUserRoleNotFound) IsCode

func (o *RemoveUserRoleNotFound) IsCode(code int) bool

IsCode returns true when this remove user role not found response a status code equal to that given

func (*RemoveUserRoleNotFound) IsRedirect

func (o *RemoveUserRoleNotFound) IsRedirect() bool

IsRedirect returns true when this remove user role not found response has a 3xx status code

func (*RemoveUserRoleNotFound) IsServerError

func (o *RemoveUserRoleNotFound) IsServerError() bool

IsServerError returns true when this remove user role not found response has a 5xx status code

func (*RemoveUserRoleNotFound) IsSuccess

func (o *RemoveUserRoleNotFound) IsSuccess() bool

IsSuccess returns true when this remove user role not found response has a 2xx status code

func (*RemoveUserRoleNotFound) String

func (o *RemoveUserRoleNotFound) String() string

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

func (o *RemoveUserRoleOK) Code() int

Code gets the status code for the remove user role Ok response

func (*RemoveUserRoleOK) Error

func (o *RemoveUserRoleOK) Error() string

func (*RemoveUserRoleOK) GetPayload

func (o *RemoveUserRoleOK) GetPayload() *models.SuccessResponseBody

func (*RemoveUserRoleOK) IsClientError

func (o *RemoveUserRoleOK) IsClientError() bool

IsClientError returns true when this remove user role Ok response has a 4xx status code

func (*RemoveUserRoleOK) IsCode

func (o *RemoveUserRoleOK) IsCode(code int) bool

IsCode returns true when this remove user role Ok response a status code equal to that given

func (*RemoveUserRoleOK) IsRedirect

func (o *RemoveUserRoleOK) IsRedirect() bool

IsRedirect returns true when this remove user role Ok response has a 3xx status code

func (*RemoveUserRoleOK) IsServerError

func (o *RemoveUserRoleOK) IsServerError() bool

IsServerError returns true when this remove user role Ok response has a 5xx status code

func (*RemoveUserRoleOK) IsSuccess

func (o *RemoveUserRoleOK) IsSuccess() bool

IsSuccess returns true when this remove user role Ok response has a 2xx status code

func (*RemoveUserRoleOK) String

func (o *RemoveUserRoleOK) String() string

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 SetResourcePermissionsBadRequest

type SetResourcePermissionsBadRequest struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsBadRequest 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 NewSetResourcePermissionsBadRequest

func NewSetResourcePermissionsBadRequest() *SetResourcePermissionsBadRequest

NewSetResourcePermissionsBadRequest creates a SetResourcePermissionsBadRequest with default headers values

func (*SetResourcePermissionsBadRequest) Code

Code gets the status code for the set resource permissions bad request response

func (*SetResourcePermissionsBadRequest) Error

func (*SetResourcePermissionsBadRequest) GetPayload

func (*SetResourcePermissionsBadRequest) IsClientError

func (o *SetResourcePermissionsBadRequest) IsClientError() bool

IsClientError returns true when this set resource permissions bad request response has a 4xx status code

func (*SetResourcePermissionsBadRequest) IsCode

func (o *SetResourcePermissionsBadRequest) IsCode(code int) bool

IsCode returns true when this set resource permissions bad request response a status code equal to that given

func (*SetResourcePermissionsBadRequest) IsRedirect

func (o *SetResourcePermissionsBadRequest) IsRedirect() bool

IsRedirect returns true when this set resource permissions bad request response has a 3xx status code

func (*SetResourcePermissionsBadRequest) IsServerError

func (o *SetResourcePermissionsBadRequest) IsServerError() bool

IsServerError returns true when this set resource permissions bad request response has a 5xx status code

func (*SetResourcePermissionsBadRequest) IsSuccess

func (o *SetResourcePermissionsBadRequest) IsSuccess() bool

IsSuccess returns true when this set resource permissions bad request response has a 2xx status code

func (*SetResourcePermissionsBadRequest) String

type SetResourcePermissionsForBuiltInRoleBadRequest

type SetResourcePermissionsForBuiltInRoleBadRequest struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForBuiltInRoleBadRequest 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 NewSetResourcePermissionsForBuiltInRoleBadRequest

func NewSetResourcePermissionsForBuiltInRoleBadRequest() *SetResourcePermissionsForBuiltInRoleBadRequest

NewSetResourcePermissionsForBuiltInRoleBadRequest creates a SetResourcePermissionsForBuiltInRoleBadRequest with default headers values

func (*SetResourcePermissionsForBuiltInRoleBadRequest) Code

Code gets the status code for the set resource permissions for built in role bad request response

func (*SetResourcePermissionsForBuiltInRoleBadRequest) Error

func (*SetResourcePermissionsForBuiltInRoleBadRequest) GetPayload

func (*SetResourcePermissionsForBuiltInRoleBadRequest) IsClientError

IsClientError returns true when this set resource permissions for built in role bad request response has a 4xx status code

func (*SetResourcePermissionsForBuiltInRoleBadRequest) IsCode

IsCode returns true when this set resource permissions for built in role bad request response a status code equal to that given

func (*SetResourcePermissionsForBuiltInRoleBadRequest) IsRedirect

IsRedirect returns true when this set resource permissions for built in role bad request response has a 3xx status code

func (*SetResourcePermissionsForBuiltInRoleBadRequest) IsServerError

IsServerError returns true when this set resource permissions for built in role bad request response has a 5xx status code

func (*SetResourcePermissionsForBuiltInRoleBadRequest) IsSuccess

IsSuccess returns true when this set resource permissions for built in role bad request response has a 2xx status code

func (*SetResourcePermissionsForBuiltInRoleBadRequest) String

type SetResourcePermissionsForBuiltInRoleForbidden

type SetResourcePermissionsForBuiltInRoleForbidden struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForBuiltInRoleForbidden 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 NewSetResourcePermissionsForBuiltInRoleForbidden

func NewSetResourcePermissionsForBuiltInRoleForbidden() *SetResourcePermissionsForBuiltInRoleForbidden

NewSetResourcePermissionsForBuiltInRoleForbidden creates a SetResourcePermissionsForBuiltInRoleForbidden with default headers values

func (*SetResourcePermissionsForBuiltInRoleForbidden) Code

Code gets the status code for the set resource permissions for built in role forbidden response

func (*SetResourcePermissionsForBuiltInRoleForbidden) Error

func (*SetResourcePermissionsForBuiltInRoleForbidden) GetPayload

func (*SetResourcePermissionsForBuiltInRoleForbidden) IsClientError

IsClientError returns true when this set resource permissions for built in role forbidden response has a 4xx status code

func (*SetResourcePermissionsForBuiltInRoleForbidden) IsCode

IsCode returns true when this set resource permissions for built in role forbidden response a status code equal to that given

func (*SetResourcePermissionsForBuiltInRoleForbidden) IsRedirect

IsRedirect returns true when this set resource permissions for built in role forbidden response has a 3xx status code

func (*SetResourcePermissionsForBuiltInRoleForbidden) IsServerError

IsServerError returns true when this set resource permissions for built in role forbidden response has a 5xx status code

func (*SetResourcePermissionsForBuiltInRoleForbidden) IsSuccess

IsSuccess returns true when this set resource permissions for built in role forbidden response has a 2xx status code

func (*SetResourcePermissionsForBuiltInRoleForbidden) String

type SetResourcePermissionsForBuiltInRoleInternalServerError

type SetResourcePermissionsForBuiltInRoleInternalServerError struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForBuiltInRoleInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewSetResourcePermissionsForBuiltInRoleInternalServerError

func NewSetResourcePermissionsForBuiltInRoleInternalServerError() *SetResourcePermissionsForBuiltInRoleInternalServerError

NewSetResourcePermissionsForBuiltInRoleInternalServerError creates a SetResourcePermissionsForBuiltInRoleInternalServerError with default headers values

func (*SetResourcePermissionsForBuiltInRoleInternalServerError) Code

Code gets the status code for the set resource permissions for built in role internal server error response

func (*SetResourcePermissionsForBuiltInRoleInternalServerError) Error

func (*SetResourcePermissionsForBuiltInRoleInternalServerError) GetPayload

func (*SetResourcePermissionsForBuiltInRoleInternalServerError) IsClientError

IsClientError returns true when this set resource permissions for built in role internal server error response has a 4xx status code

func (*SetResourcePermissionsForBuiltInRoleInternalServerError) IsCode

IsCode returns true when this set resource permissions for built in role internal server error response a status code equal to that given

func (*SetResourcePermissionsForBuiltInRoleInternalServerError) IsRedirect

IsRedirect returns true when this set resource permissions for built in role internal server error response has a 3xx status code

func (*SetResourcePermissionsForBuiltInRoleInternalServerError) IsServerError

IsServerError returns true when this set resource permissions for built in role internal server error response has a 5xx status code

func (*SetResourcePermissionsForBuiltInRoleInternalServerError) IsSuccess

IsSuccess returns true when this set resource permissions for built in role internal server error response has a 2xx status code

func (*SetResourcePermissionsForBuiltInRoleInternalServerError) String

type SetResourcePermissionsForBuiltInRoleNotFound

type SetResourcePermissionsForBuiltInRoleNotFound struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForBuiltInRoleNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewSetResourcePermissionsForBuiltInRoleNotFound

func NewSetResourcePermissionsForBuiltInRoleNotFound() *SetResourcePermissionsForBuiltInRoleNotFound

NewSetResourcePermissionsForBuiltInRoleNotFound creates a SetResourcePermissionsForBuiltInRoleNotFound with default headers values

func (*SetResourcePermissionsForBuiltInRoleNotFound) Code

Code gets the status code for the set resource permissions for built in role not found response

func (*SetResourcePermissionsForBuiltInRoleNotFound) Error

func (*SetResourcePermissionsForBuiltInRoleNotFound) GetPayload

func (*SetResourcePermissionsForBuiltInRoleNotFound) IsClientError

IsClientError returns true when this set resource permissions for built in role not found response has a 4xx status code

func (*SetResourcePermissionsForBuiltInRoleNotFound) IsCode

IsCode returns true when this set resource permissions for built in role not found response a status code equal to that given

func (*SetResourcePermissionsForBuiltInRoleNotFound) IsRedirect

IsRedirect returns true when this set resource permissions for built in role not found response has a 3xx status code

func (*SetResourcePermissionsForBuiltInRoleNotFound) IsServerError

IsServerError returns true when this set resource permissions for built in role not found response has a 5xx status code

func (*SetResourcePermissionsForBuiltInRoleNotFound) IsSuccess

IsSuccess returns true when this set resource permissions for built in role not found response has a 2xx status code

func (*SetResourcePermissionsForBuiltInRoleNotFound) String

type SetResourcePermissionsForBuiltInRoleOK

type SetResourcePermissionsForBuiltInRoleOK struct {
	Payload *models.SuccessResponseBody
}

SetResourcePermissionsForBuiltInRoleOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewSetResourcePermissionsForBuiltInRoleOK

func NewSetResourcePermissionsForBuiltInRoleOK() *SetResourcePermissionsForBuiltInRoleOK

NewSetResourcePermissionsForBuiltInRoleOK creates a SetResourcePermissionsForBuiltInRoleOK with default headers values

func (*SetResourcePermissionsForBuiltInRoleOK) Code

Code gets the status code for the set resource permissions for built in role Ok response

func (*SetResourcePermissionsForBuiltInRoleOK) Error

func (*SetResourcePermissionsForBuiltInRoleOK) GetPayload

func (*SetResourcePermissionsForBuiltInRoleOK) IsClientError

func (o *SetResourcePermissionsForBuiltInRoleOK) IsClientError() bool

IsClientError returns true when this set resource permissions for built in role Ok response has a 4xx status code

func (*SetResourcePermissionsForBuiltInRoleOK) IsCode

IsCode returns true when this set resource permissions for built in role Ok response a status code equal to that given

func (*SetResourcePermissionsForBuiltInRoleOK) IsRedirect

IsRedirect returns true when this set resource permissions for built in role Ok response has a 3xx status code

func (*SetResourcePermissionsForBuiltInRoleOK) IsServerError

func (o *SetResourcePermissionsForBuiltInRoleOK) IsServerError() bool

IsServerError returns true when this set resource permissions for built in role Ok response has a 5xx status code

func (*SetResourcePermissionsForBuiltInRoleOK) IsSuccess

IsSuccess returns true when this set resource permissions for built in role Ok response has a 2xx status code

func (*SetResourcePermissionsForBuiltInRoleOK) String

type SetResourcePermissionsForBuiltInRoleParams

type SetResourcePermissionsForBuiltInRoleParams struct {

	// Body.
	Body *models.SetPermissionCommand

	// BuiltInRole.
	BuiltInRole string

	// Resource.
	Resource string

	// ResourceID.
	ResourceID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SetResourcePermissionsForBuiltInRoleParams contains all the parameters to send to the API endpoint

for the set resource permissions for built in role operation.

Typically these are written to a http.Request.

func NewSetResourcePermissionsForBuiltInRoleParams

func NewSetResourcePermissionsForBuiltInRoleParams() *SetResourcePermissionsForBuiltInRoleParams

NewSetResourcePermissionsForBuiltInRoleParams creates a new SetResourcePermissionsForBuiltInRoleParams 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 NewSetResourcePermissionsForBuiltInRoleParamsWithContext

func NewSetResourcePermissionsForBuiltInRoleParamsWithContext(ctx context.Context) *SetResourcePermissionsForBuiltInRoleParams

NewSetResourcePermissionsForBuiltInRoleParamsWithContext creates a new SetResourcePermissionsForBuiltInRoleParams object with the ability to set a context for a request.

func NewSetResourcePermissionsForBuiltInRoleParamsWithHTTPClient

func NewSetResourcePermissionsForBuiltInRoleParamsWithHTTPClient(client *http.Client) *SetResourcePermissionsForBuiltInRoleParams

NewSetResourcePermissionsForBuiltInRoleParamsWithHTTPClient creates a new SetResourcePermissionsForBuiltInRoleParams object with the ability to set a custom HTTPClient for a request.

func NewSetResourcePermissionsForBuiltInRoleParamsWithTimeout

func NewSetResourcePermissionsForBuiltInRoleParamsWithTimeout(timeout time.Duration) *SetResourcePermissionsForBuiltInRoleParams

NewSetResourcePermissionsForBuiltInRoleParamsWithTimeout creates a new SetResourcePermissionsForBuiltInRoleParams object with the ability to set a timeout on a request.

func (*SetResourcePermissionsForBuiltInRoleParams) SetBody

SetBody adds the body to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) SetBuiltInRole

func (o *SetResourcePermissionsForBuiltInRoleParams) SetBuiltInRole(builtInRole string)

SetBuiltInRole adds the builtInRole to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) SetContext

SetContext adds the context to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) SetDefaults

SetDefaults hydrates default values in the set resource permissions for built in role params (not the query body).

All values with no default are reset to their zero value.

func (*SetResourcePermissionsForBuiltInRoleParams) SetHTTPClient

func (o *SetResourcePermissionsForBuiltInRoleParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) SetResource

func (o *SetResourcePermissionsForBuiltInRoleParams) SetResource(resource string)

SetResource adds the resource to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) SetResourceID

func (o *SetResourcePermissionsForBuiltInRoleParams) SetResourceID(resourceID string)

SetResourceID adds the resourceId to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) SetTimeout

SetTimeout adds the timeout to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) WithBody

WithBody adds the body to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) WithBuiltInRole

WithBuiltInRole adds the builtInRole to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) WithContext

WithContext adds the context to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) WithDefaults

WithDefaults hydrates default values in the set resource permissions for built in role params (not the query body).

All values with no default are reset to their zero value.

func (*SetResourcePermissionsForBuiltInRoleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) WithResource

WithResource adds the resource to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) WithResourceID

WithResourceID adds the resourceID to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) WithTimeout

WithTimeout adds the timeout to the set resource permissions for built in role params

func (*SetResourcePermissionsForBuiltInRoleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetResourcePermissionsForBuiltInRoleReader

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

SetResourcePermissionsForBuiltInRoleReader is a Reader for the SetResourcePermissionsForBuiltInRole structure.

func (*SetResourcePermissionsForBuiltInRoleReader) ReadResponse

func (o *SetResourcePermissionsForBuiltInRoleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SetResourcePermissionsForTeamBadRequest

type SetResourcePermissionsForTeamBadRequest struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForTeamBadRequest 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 NewSetResourcePermissionsForTeamBadRequest

func NewSetResourcePermissionsForTeamBadRequest() *SetResourcePermissionsForTeamBadRequest

NewSetResourcePermissionsForTeamBadRequest creates a SetResourcePermissionsForTeamBadRequest with default headers values

func (*SetResourcePermissionsForTeamBadRequest) Code

Code gets the status code for the set resource permissions for team bad request response

func (*SetResourcePermissionsForTeamBadRequest) Error

func (*SetResourcePermissionsForTeamBadRequest) GetPayload

func (*SetResourcePermissionsForTeamBadRequest) IsClientError

func (o *SetResourcePermissionsForTeamBadRequest) IsClientError() bool

IsClientError returns true when this set resource permissions for team bad request response has a 4xx status code

func (*SetResourcePermissionsForTeamBadRequest) IsCode

IsCode returns true when this set resource permissions for team bad request response a status code equal to that given

func (*SetResourcePermissionsForTeamBadRequest) IsRedirect

IsRedirect returns true when this set resource permissions for team bad request response has a 3xx status code

func (*SetResourcePermissionsForTeamBadRequest) IsServerError

func (o *SetResourcePermissionsForTeamBadRequest) IsServerError() bool

IsServerError returns true when this set resource permissions for team bad request response has a 5xx status code

func (*SetResourcePermissionsForTeamBadRequest) IsSuccess

IsSuccess returns true when this set resource permissions for team bad request response has a 2xx status code

func (*SetResourcePermissionsForTeamBadRequest) String

type SetResourcePermissionsForTeamForbidden

type SetResourcePermissionsForTeamForbidden struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForTeamForbidden 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 NewSetResourcePermissionsForTeamForbidden

func NewSetResourcePermissionsForTeamForbidden() *SetResourcePermissionsForTeamForbidden

NewSetResourcePermissionsForTeamForbidden creates a SetResourcePermissionsForTeamForbidden with default headers values

func (*SetResourcePermissionsForTeamForbidden) Code

Code gets the status code for the set resource permissions for team forbidden response

func (*SetResourcePermissionsForTeamForbidden) Error

func (*SetResourcePermissionsForTeamForbidden) GetPayload

func (*SetResourcePermissionsForTeamForbidden) IsClientError

func (o *SetResourcePermissionsForTeamForbidden) IsClientError() bool

IsClientError returns true when this set resource permissions for team forbidden response has a 4xx status code

func (*SetResourcePermissionsForTeamForbidden) IsCode

IsCode returns true when this set resource permissions for team forbidden response a status code equal to that given

func (*SetResourcePermissionsForTeamForbidden) IsRedirect

IsRedirect returns true when this set resource permissions for team forbidden response has a 3xx status code

func (*SetResourcePermissionsForTeamForbidden) IsServerError

func (o *SetResourcePermissionsForTeamForbidden) IsServerError() bool

IsServerError returns true when this set resource permissions for team forbidden response has a 5xx status code

func (*SetResourcePermissionsForTeamForbidden) IsSuccess

IsSuccess returns true when this set resource permissions for team forbidden response has a 2xx status code

func (*SetResourcePermissionsForTeamForbidden) String

type SetResourcePermissionsForTeamInternalServerError

type SetResourcePermissionsForTeamInternalServerError struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForTeamInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewSetResourcePermissionsForTeamInternalServerError

func NewSetResourcePermissionsForTeamInternalServerError() *SetResourcePermissionsForTeamInternalServerError

NewSetResourcePermissionsForTeamInternalServerError creates a SetResourcePermissionsForTeamInternalServerError with default headers values

func (*SetResourcePermissionsForTeamInternalServerError) Code

Code gets the status code for the set resource permissions for team internal server error response

func (*SetResourcePermissionsForTeamInternalServerError) Error

func (*SetResourcePermissionsForTeamInternalServerError) GetPayload

func (*SetResourcePermissionsForTeamInternalServerError) IsClientError

IsClientError returns true when this set resource permissions for team internal server error response has a 4xx status code

func (*SetResourcePermissionsForTeamInternalServerError) IsCode

IsCode returns true when this set resource permissions for team internal server error response a status code equal to that given

func (*SetResourcePermissionsForTeamInternalServerError) IsRedirect

IsRedirect returns true when this set resource permissions for team internal server error response has a 3xx status code

func (*SetResourcePermissionsForTeamInternalServerError) IsServerError

IsServerError returns true when this set resource permissions for team internal server error response has a 5xx status code

func (*SetResourcePermissionsForTeamInternalServerError) IsSuccess

IsSuccess returns true when this set resource permissions for team internal server error response has a 2xx status code

func (*SetResourcePermissionsForTeamInternalServerError) String

type SetResourcePermissionsForTeamNotFound

type SetResourcePermissionsForTeamNotFound struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForTeamNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewSetResourcePermissionsForTeamNotFound

func NewSetResourcePermissionsForTeamNotFound() *SetResourcePermissionsForTeamNotFound

NewSetResourcePermissionsForTeamNotFound creates a SetResourcePermissionsForTeamNotFound with default headers values

func (*SetResourcePermissionsForTeamNotFound) Code

Code gets the status code for the set resource permissions for team not found response

func (*SetResourcePermissionsForTeamNotFound) Error

func (*SetResourcePermissionsForTeamNotFound) GetPayload

func (*SetResourcePermissionsForTeamNotFound) IsClientError

func (o *SetResourcePermissionsForTeamNotFound) IsClientError() bool

IsClientError returns true when this set resource permissions for team not found response has a 4xx status code

func (*SetResourcePermissionsForTeamNotFound) IsCode

IsCode returns true when this set resource permissions for team not found response a status code equal to that given

func (*SetResourcePermissionsForTeamNotFound) IsRedirect

IsRedirect returns true when this set resource permissions for team not found response has a 3xx status code

func (*SetResourcePermissionsForTeamNotFound) IsServerError

func (o *SetResourcePermissionsForTeamNotFound) IsServerError() bool

IsServerError returns true when this set resource permissions for team not found response has a 5xx status code

func (*SetResourcePermissionsForTeamNotFound) IsSuccess

IsSuccess returns true when this set resource permissions for team not found response has a 2xx status code

func (*SetResourcePermissionsForTeamNotFound) String

type SetResourcePermissionsForTeamOK

type SetResourcePermissionsForTeamOK struct {
	Payload *models.SuccessResponseBody
}

SetResourcePermissionsForTeamOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewSetResourcePermissionsForTeamOK

func NewSetResourcePermissionsForTeamOK() *SetResourcePermissionsForTeamOK

NewSetResourcePermissionsForTeamOK creates a SetResourcePermissionsForTeamOK with default headers values

func (*SetResourcePermissionsForTeamOK) Code

Code gets the status code for the set resource permissions for team Ok response

func (*SetResourcePermissionsForTeamOK) Error

func (*SetResourcePermissionsForTeamOK) GetPayload

func (*SetResourcePermissionsForTeamOK) IsClientError

func (o *SetResourcePermissionsForTeamOK) IsClientError() bool

IsClientError returns true when this set resource permissions for team Ok response has a 4xx status code

func (*SetResourcePermissionsForTeamOK) IsCode

func (o *SetResourcePermissionsForTeamOK) IsCode(code int) bool

IsCode returns true when this set resource permissions for team Ok response a status code equal to that given

func (*SetResourcePermissionsForTeamOK) IsRedirect

func (o *SetResourcePermissionsForTeamOK) IsRedirect() bool

IsRedirect returns true when this set resource permissions for team Ok response has a 3xx status code

func (*SetResourcePermissionsForTeamOK) IsServerError

func (o *SetResourcePermissionsForTeamOK) IsServerError() bool

IsServerError returns true when this set resource permissions for team Ok response has a 5xx status code

func (*SetResourcePermissionsForTeamOK) IsSuccess

func (o *SetResourcePermissionsForTeamOK) IsSuccess() bool

IsSuccess returns true when this set resource permissions for team Ok response has a 2xx status code

func (*SetResourcePermissionsForTeamOK) String

type SetResourcePermissionsForTeamParams

type SetResourcePermissionsForTeamParams struct {

	// Body.
	Body *models.SetPermissionCommand

	// Resource.
	Resource string

	// ResourceID.
	ResourceID string

	// TeamID.
	//
	// Format: int64
	TeamID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SetResourcePermissionsForTeamParams contains all the parameters to send to the API endpoint

for the set resource permissions for team operation.

Typically these are written to a http.Request.

func NewSetResourcePermissionsForTeamParams

func NewSetResourcePermissionsForTeamParams() *SetResourcePermissionsForTeamParams

NewSetResourcePermissionsForTeamParams creates a new SetResourcePermissionsForTeamParams 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 NewSetResourcePermissionsForTeamParamsWithContext

func NewSetResourcePermissionsForTeamParamsWithContext(ctx context.Context) *SetResourcePermissionsForTeamParams

NewSetResourcePermissionsForTeamParamsWithContext creates a new SetResourcePermissionsForTeamParams object with the ability to set a context for a request.

func NewSetResourcePermissionsForTeamParamsWithHTTPClient

func NewSetResourcePermissionsForTeamParamsWithHTTPClient(client *http.Client) *SetResourcePermissionsForTeamParams

NewSetResourcePermissionsForTeamParamsWithHTTPClient creates a new SetResourcePermissionsForTeamParams object with the ability to set a custom HTTPClient for a request.

func NewSetResourcePermissionsForTeamParamsWithTimeout

func NewSetResourcePermissionsForTeamParamsWithTimeout(timeout time.Duration) *SetResourcePermissionsForTeamParams

NewSetResourcePermissionsForTeamParamsWithTimeout creates a new SetResourcePermissionsForTeamParams object with the ability to set a timeout on a request.

func (*SetResourcePermissionsForTeamParams) SetBody

SetBody adds the body to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) SetContext

SetContext adds the context to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) SetDefaults

func (o *SetResourcePermissionsForTeamParams) SetDefaults()

SetDefaults hydrates default values in the set resource permissions for team params (not the query body).

All values with no default are reset to their zero value.

func (*SetResourcePermissionsForTeamParams) SetHTTPClient

func (o *SetResourcePermissionsForTeamParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) SetResource

func (o *SetResourcePermissionsForTeamParams) SetResource(resource string)

SetResource adds the resource to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) SetResourceID

func (o *SetResourcePermissionsForTeamParams) SetResourceID(resourceID string)

SetResourceID adds the resourceId to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) SetTeamID

func (o *SetResourcePermissionsForTeamParams) SetTeamID(teamID int64)

SetTeamID adds the teamId to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) SetTimeout

func (o *SetResourcePermissionsForTeamParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) WithBody

WithBody adds the body to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) WithContext

WithContext adds the context to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) WithDefaults

WithDefaults hydrates default values in the set resource permissions for team params (not the query body).

All values with no default are reset to their zero value.

func (*SetResourcePermissionsForTeamParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) WithResource

WithResource adds the resource to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) WithResourceID

WithResourceID adds the resourceID to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) WithTeamID

WithTeamID adds the teamID to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) WithTimeout

WithTimeout adds the timeout to the set resource permissions for team params

func (*SetResourcePermissionsForTeamParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetResourcePermissionsForTeamReader

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

SetResourcePermissionsForTeamReader is a Reader for the SetResourcePermissionsForTeam structure.

func (*SetResourcePermissionsForTeamReader) ReadResponse

func (o *SetResourcePermissionsForTeamReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SetResourcePermissionsForUserBadRequest

type SetResourcePermissionsForUserBadRequest struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForUserBadRequest 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 NewSetResourcePermissionsForUserBadRequest

func NewSetResourcePermissionsForUserBadRequest() *SetResourcePermissionsForUserBadRequest

NewSetResourcePermissionsForUserBadRequest creates a SetResourcePermissionsForUserBadRequest with default headers values

func (*SetResourcePermissionsForUserBadRequest) Code

Code gets the status code for the set resource permissions for user bad request response

func (*SetResourcePermissionsForUserBadRequest) Error

func (*SetResourcePermissionsForUserBadRequest) GetPayload

func (*SetResourcePermissionsForUserBadRequest) IsClientError

func (o *SetResourcePermissionsForUserBadRequest) IsClientError() bool

IsClientError returns true when this set resource permissions for user bad request response has a 4xx status code

func (*SetResourcePermissionsForUserBadRequest) IsCode

IsCode returns true when this set resource permissions for user bad request response a status code equal to that given

func (*SetResourcePermissionsForUserBadRequest) IsRedirect

IsRedirect returns true when this set resource permissions for user bad request response has a 3xx status code

func (*SetResourcePermissionsForUserBadRequest) IsServerError

func (o *SetResourcePermissionsForUserBadRequest) IsServerError() bool

IsServerError returns true when this set resource permissions for user bad request response has a 5xx status code

func (*SetResourcePermissionsForUserBadRequest) IsSuccess

IsSuccess returns true when this set resource permissions for user bad request response has a 2xx status code

func (*SetResourcePermissionsForUserBadRequest) String

type SetResourcePermissionsForUserForbidden

type SetResourcePermissionsForUserForbidden struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForUserForbidden 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 NewSetResourcePermissionsForUserForbidden

func NewSetResourcePermissionsForUserForbidden() *SetResourcePermissionsForUserForbidden

NewSetResourcePermissionsForUserForbidden creates a SetResourcePermissionsForUserForbidden with default headers values

func (*SetResourcePermissionsForUserForbidden) Code

Code gets the status code for the set resource permissions for user forbidden response

func (*SetResourcePermissionsForUserForbidden) Error

func (*SetResourcePermissionsForUserForbidden) GetPayload

func (*SetResourcePermissionsForUserForbidden) IsClientError

func (o *SetResourcePermissionsForUserForbidden) IsClientError() bool

IsClientError returns true when this set resource permissions for user forbidden response has a 4xx status code

func (*SetResourcePermissionsForUserForbidden) IsCode

IsCode returns true when this set resource permissions for user forbidden response a status code equal to that given

func (*SetResourcePermissionsForUserForbidden) IsRedirect

IsRedirect returns true when this set resource permissions for user forbidden response has a 3xx status code

func (*SetResourcePermissionsForUserForbidden) IsServerError

func (o *SetResourcePermissionsForUserForbidden) IsServerError() bool

IsServerError returns true when this set resource permissions for user forbidden response has a 5xx status code

func (*SetResourcePermissionsForUserForbidden) IsSuccess

IsSuccess returns true when this set resource permissions for user forbidden response has a 2xx status code

func (*SetResourcePermissionsForUserForbidden) String

type SetResourcePermissionsForUserInternalServerError

type SetResourcePermissionsForUserInternalServerError struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForUserInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewSetResourcePermissionsForUserInternalServerError

func NewSetResourcePermissionsForUserInternalServerError() *SetResourcePermissionsForUserInternalServerError

NewSetResourcePermissionsForUserInternalServerError creates a SetResourcePermissionsForUserInternalServerError with default headers values

func (*SetResourcePermissionsForUserInternalServerError) Code

Code gets the status code for the set resource permissions for user internal server error response

func (*SetResourcePermissionsForUserInternalServerError) Error

func (*SetResourcePermissionsForUserInternalServerError) GetPayload

func (*SetResourcePermissionsForUserInternalServerError) IsClientError

IsClientError returns true when this set resource permissions for user internal server error response has a 4xx status code

func (*SetResourcePermissionsForUserInternalServerError) IsCode

IsCode returns true when this set resource permissions for user internal server error response a status code equal to that given

func (*SetResourcePermissionsForUserInternalServerError) IsRedirect

IsRedirect returns true when this set resource permissions for user internal server error response has a 3xx status code

func (*SetResourcePermissionsForUserInternalServerError) IsServerError

IsServerError returns true when this set resource permissions for user internal server error response has a 5xx status code

func (*SetResourcePermissionsForUserInternalServerError) IsSuccess

IsSuccess returns true when this set resource permissions for user internal server error response has a 2xx status code

func (*SetResourcePermissionsForUserInternalServerError) String

type SetResourcePermissionsForUserNotFound

type SetResourcePermissionsForUserNotFound struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForUserNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewSetResourcePermissionsForUserNotFound

func NewSetResourcePermissionsForUserNotFound() *SetResourcePermissionsForUserNotFound

NewSetResourcePermissionsForUserNotFound creates a SetResourcePermissionsForUserNotFound with default headers values

func (*SetResourcePermissionsForUserNotFound) Code

Code gets the status code for the set resource permissions for user not found response

func (*SetResourcePermissionsForUserNotFound) Error

func (*SetResourcePermissionsForUserNotFound) GetPayload

func (*SetResourcePermissionsForUserNotFound) IsClientError

func (o *SetResourcePermissionsForUserNotFound) IsClientError() bool

IsClientError returns true when this set resource permissions for user not found response has a 4xx status code

func (*SetResourcePermissionsForUserNotFound) IsCode

IsCode returns true when this set resource permissions for user not found response a status code equal to that given

func (*SetResourcePermissionsForUserNotFound) IsRedirect

IsRedirect returns true when this set resource permissions for user not found response has a 3xx status code

func (*SetResourcePermissionsForUserNotFound) IsServerError

func (o *SetResourcePermissionsForUserNotFound) IsServerError() bool

IsServerError returns true when this set resource permissions for user not found response has a 5xx status code

func (*SetResourcePermissionsForUserNotFound) IsSuccess

IsSuccess returns true when this set resource permissions for user not found response has a 2xx status code

func (*SetResourcePermissionsForUserNotFound) String

type SetResourcePermissionsForUserOK

type SetResourcePermissionsForUserOK struct {
	Payload *models.SuccessResponseBody
}

SetResourcePermissionsForUserOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewSetResourcePermissionsForUserOK

func NewSetResourcePermissionsForUserOK() *SetResourcePermissionsForUserOK

NewSetResourcePermissionsForUserOK creates a SetResourcePermissionsForUserOK with default headers values

func (*SetResourcePermissionsForUserOK) Code

Code gets the status code for the set resource permissions for user Ok response

func (*SetResourcePermissionsForUserOK) Error

func (*SetResourcePermissionsForUserOK) GetPayload

func (*SetResourcePermissionsForUserOK) IsClientError

func (o *SetResourcePermissionsForUserOK) IsClientError() bool

IsClientError returns true when this set resource permissions for user Ok response has a 4xx status code

func (*SetResourcePermissionsForUserOK) IsCode

func (o *SetResourcePermissionsForUserOK) IsCode(code int) bool

IsCode returns true when this set resource permissions for user Ok response a status code equal to that given

func (*SetResourcePermissionsForUserOK) IsRedirect

func (o *SetResourcePermissionsForUserOK) IsRedirect() bool

IsRedirect returns true when this set resource permissions for user Ok response has a 3xx status code

func (*SetResourcePermissionsForUserOK) IsServerError

func (o *SetResourcePermissionsForUserOK) IsServerError() bool

IsServerError returns true when this set resource permissions for user Ok response has a 5xx status code

func (*SetResourcePermissionsForUserOK) IsSuccess

func (o *SetResourcePermissionsForUserOK) IsSuccess() bool

IsSuccess returns true when this set resource permissions for user Ok response has a 2xx status code

func (*SetResourcePermissionsForUserOK) String

type SetResourcePermissionsForUserParams

type SetResourcePermissionsForUserParams struct {

	// Body.
	Body *models.SetPermissionCommand

	// Resource.
	Resource string

	// ResourceID.
	ResourceID string

	// UserID.
	//
	// Format: int64
	UserID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SetResourcePermissionsForUserParams contains all the parameters to send to the API endpoint

for the set resource permissions for user operation.

Typically these are written to a http.Request.

func NewSetResourcePermissionsForUserParams

func NewSetResourcePermissionsForUserParams() *SetResourcePermissionsForUserParams

NewSetResourcePermissionsForUserParams creates a new SetResourcePermissionsForUserParams 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 NewSetResourcePermissionsForUserParamsWithContext

func NewSetResourcePermissionsForUserParamsWithContext(ctx context.Context) *SetResourcePermissionsForUserParams

NewSetResourcePermissionsForUserParamsWithContext creates a new SetResourcePermissionsForUserParams object with the ability to set a context for a request.

func NewSetResourcePermissionsForUserParamsWithHTTPClient

func NewSetResourcePermissionsForUserParamsWithHTTPClient(client *http.Client) *SetResourcePermissionsForUserParams

NewSetResourcePermissionsForUserParamsWithHTTPClient creates a new SetResourcePermissionsForUserParams object with the ability to set a custom HTTPClient for a request.

func NewSetResourcePermissionsForUserParamsWithTimeout

func NewSetResourcePermissionsForUserParamsWithTimeout(timeout time.Duration) *SetResourcePermissionsForUserParams

NewSetResourcePermissionsForUserParamsWithTimeout creates a new SetResourcePermissionsForUserParams object with the ability to set a timeout on a request.

func (*SetResourcePermissionsForUserParams) SetBody

SetBody adds the body to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) SetContext

SetContext adds the context to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) SetDefaults

func (o *SetResourcePermissionsForUserParams) SetDefaults()

SetDefaults hydrates default values in the set resource permissions for user params (not the query body).

All values with no default are reset to their zero value.

func (*SetResourcePermissionsForUserParams) SetHTTPClient

func (o *SetResourcePermissionsForUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) SetResource

func (o *SetResourcePermissionsForUserParams) SetResource(resource string)

SetResource adds the resource to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) SetResourceID

func (o *SetResourcePermissionsForUserParams) SetResourceID(resourceID string)

SetResourceID adds the resourceId to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) SetTimeout

func (o *SetResourcePermissionsForUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) SetUserID

func (o *SetResourcePermissionsForUserParams) SetUserID(userID int64)

SetUserID adds the userId to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) WithBody

WithBody adds the body to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) WithContext

WithContext adds the context to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) WithDefaults

WithDefaults hydrates default values in the set resource permissions for user params (not the query body).

All values with no default are reset to their zero value.

func (*SetResourcePermissionsForUserParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) WithResource

WithResource adds the resource to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) WithResourceID

WithResourceID adds the resourceID to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) WithTimeout

WithTimeout adds the timeout to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) WithUserID

WithUserID adds the userID to the set resource permissions for user params

func (*SetResourcePermissionsForUserParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetResourcePermissionsForUserReader

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

SetResourcePermissionsForUserReader is a Reader for the SetResourcePermissionsForUser structure.

func (*SetResourcePermissionsForUserReader) ReadResponse

func (o *SetResourcePermissionsForUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SetResourcePermissionsForbidden

type SetResourcePermissionsForbidden struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsForbidden 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 NewSetResourcePermissionsForbidden

func NewSetResourcePermissionsForbidden() *SetResourcePermissionsForbidden

NewSetResourcePermissionsForbidden creates a SetResourcePermissionsForbidden with default headers values

func (*SetResourcePermissionsForbidden) Code

Code gets the status code for the set resource permissions forbidden response

func (*SetResourcePermissionsForbidden) Error

func (*SetResourcePermissionsForbidden) GetPayload

func (*SetResourcePermissionsForbidden) IsClientError

func (o *SetResourcePermissionsForbidden) IsClientError() bool

IsClientError returns true when this set resource permissions forbidden response has a 4xx status code

func (*SetResourcePermissionsForbidden) IsCode

func (o *SetResourcePermissionsForbidden) IsCode(code int) bool

IsCode returns true when this set resource permissions forbidden response a status code equal to that given

func (*SetResourcePermissionsForbidden) IsRedirect

func (o *SetResourcePermissionsForbidden) IsRedirect() bool

IsRedirect returns true when this set resource permissions forbidden response has a 3xx status code

func (*SetResourcePermissionsForbidden) IsServerError

func (o *SetResourcePermissionsForbidden) IsServerError() bool

IsServerError returns true when this set resource permissions forbidden response has a 5xx status code

func (*SetResourcePermissionsForbidden) IsSuccess

func (o *SetResourcePermissionsForbidden) IsSuccess() bool

IsSuccess returns true when this set resource permissions forbidden response has a 2xx status code

func (*SetResourcePermissionsForbidden) String

type SetResourcePermissionsInternalServerError

type SetResourcePermissionsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewSetResourcePermissionsInternalServerError

func NewSetResourcePermissionsInternalServerError() *SetResourcePermissionsInternalServerError

NewSetResourcePermissionsInternalServerError creates a SetResourcePermissionsInternalServerError with default headers values

func (*SetResourcePermissionsInternalServerError) Code

Code gets the status code for the set resource permissions internal server error response

func (*SetResourcePermissionsInternalServerError) Error

func (*SetResourcePermissionsInternalServerError) GetPayload

func (*SetResourcePermissionsInternalServerError) IsClientError

IsClientError returns true when this set resource permissions internal server error response has a 4xx status code

func (*SetResourcePermissionsInternalServerError) IsCode

IsCode returns true when this set resource permissions internal server error response a status code equal to that given

func (*SetResourcePermissionsInternalServerError) IsRedirect

IsRedirect returns true when this set resource permissions internal server error response has a 3xx status code

func (*SetResourcePermissionsInternalServerError) IsServerError

IsServerError returns true when this set resource permissions internal server error response has a 5xx status code

func (*SetResourcePermissionsInternalServerError) IsSuccess

IsSuccess returns true when this set resource permissions internal server error response has a 2xx status code

func (*SetResourcePermissionsInternalServerError) String

type SetResourcePermissionsNotFound

type SetResourcePermissionsNotFound struct {
	Payload *models.ErrorResponseBody
}

SetResourcePermissionsNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewSetResourcePermissionsNotFound

func NewSetResourcePermissionsNotFound() *SetResourcePermissionsNotFound

NewSetResourcePermissionsNotFound creates a SetResourcePermissionsNotFound with default headers values

func (*SetResourcePermissionsNotFound) Code

Code gets the status code for the set resource permissions not found response

func (*SetResourcePermissionsNotFound) Error

func (*SetResourcePermissionsNotFound) GetPayload

func (*SetResourcePermissionsNotFound) IsClientError

func (o *SetResourcePermissionsNotFound) IsClientError() bool

IsClientError returns true when this set resource permissions not found response has a 4xx status code

func (*SetResourcePermissionsNotFound) IsCode

func (o *SetResourcePermissionsNotFound) IsCode(code int) bool

IsCode returns true when this set resource permissions not found response a status code equal to that given

func (*SetResourcePermissionsNotFound) IsRedirect

func (o *SetResourcePermissionsNotFound) IsRedirect() bool

IsRedirect returns true when this set resource permissions not found response has a 3xx status code

func (*SetResourcePermissionsNotFound) IsServerError

func (o *SetResourcePermissionsNotFound) IsServerError() bool

IsServerError returns true when this set resource permissions not found response has a 5xx status code

func (*SetResourcePermissionsNotFound) IsSuccess

func (o *SetResourcePermissionsNotFound) IsSuccess() bool

IsSuccess returns true when this set resource permissions not found response has a 2xx status code

func (*SetResourcePermissionsNotFound) String

type SetResourcePermissionsOK

type SetResourcePermissionsOK struct {
	Payload *models.SuccessResponseBody
}

SetResourcePermissionsOK describes a response with status code 200, with default header values.

An OKResponse is returned if the request was successful.

func NewSetResourcePermissionsOK

func NewSetResourcePermissionsOK() *SetResourcePermissionsOK

NewSetResourcePermissionsOK creates a SetResourcePermissionsOK with default headers values

func (*SetResourcePermissionsOK) Code

func (o *SetResourcePermissionsOK) Code() int

Code gets the status code for the set resource permissions Ok response

func (*SetResourcePermissionsOK) Error

func (o *SetResourcePermissionsOK) Error() string

func (*SetResourcePermissionsOK) GetPayload

func (*SetResourcePermissionsOK) IsClientError

func (o *SetResourcePermissionsOK) IsClientError() bool

IsClientError returns true when this set resource permissions Ok response has a 4xx status code

func (*SetResourcePermissionsOK) IsCode

func (o *SetResourcePermissionsOK) IsCode(code int) bool

IsCode returns true when this set resource permissions Ok response a status code equal to that given

func (*SetResourcePermissionsOK) IsRedirect

func (o *SetResourcePermissionsOK) IsRedirect() bool

IsRedirect returns true when this set resource permissions Ok response has a 3xx status code

func (*SetResourcePermissionsOK) IsServerError

func (o *SetResourcePermissionsOK) IsServerError() bool

IsServerError returns true when this set resource permissions Ok response has a 5xx status code

func (*SetResourcePermissionsOK) IsSuccess

func (o *SetResourcePermissionsOK) IsSuccess() bool

IsSuccess returns true when this set resource permissions Ok response has a 2xx status code

func (*SetResourcePermissionsOK) String

func (o *SetResourcePermissionsOK) String() string

type SetResourcePermissionsParams

type SetResourcePermissionsParams struct {

	// Body.
	Body *models.SetPermissionsCommand

	// Resource.
	Resource string

	// ResourceID.
	ResourceID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SetResourcePermissionsParams contains all the parameters to send to the API endpoint

for the set resource permissions operation.

Typically these are written to a http.Request.

func NewSetResourcePermissionsParams

func NewSetResourcePermissionsParams() *SetResourcePermissionsParams

NewSetResourcePermissionsParams creates a new SetResourcePermissionsParams 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 NewSetResourcePermissionsParamsWithContext

func NewSetResourcePermissionsParamsWithContext(ctx context.Context) *SetResourcePermissionsParams

NewSetResourcePermissionsParamsWithContext creates a new SetResourcePermissionsParams object with the ability to set a context for a request.

func NewSetResourcePermissionsParamsWithHTTPClient

func NewSetResourcePermissionsParamsWithHTTPClient(client *http.Client) *SetResourcePermissionsParams

NewSetResourcePermissionsParamsWithHTTPClient creates a new SetResourcePermissionsParams object with the ability to set a custom HTTPClient for a request.

func NewSetResourcePermissionsParamsWithTimeout

func NewSetResourcePermissionsParamsWithTimeout(timeout time.Duration) *SetResourcePermissionsParams

NewSetResourcePermissionsParamsWithTimeout creates a new SetResourcePermissionsParams object with the ability to set a timeout on a request.

func (*SetResourcePermissionsParams) SetBody

SetBody adds the body to the set resource permissions params

func (*SetResourcePermissionsParams) SetContext

func (o *SetResourcePermissionsParams) SetContext(ctx context.Context)

SetContext adds the context to the set resource permissions params

func (*SetResourcePermissionsParams) SetDefaults

func (o *SetResourcePermissionsParams) SetDefaults()

SetDefaults hydrates default values in the set resource permissions params (not the query body).

All values with no default are reset to their zero value.

func (*SetResourcePermissionsParams) SetHTTPClient

func (o *SetResourcePermissionsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the set resource permissions params

func (*SetResourcePermissionsParams) SetResource

func (o *SetResourcePermissionsParams) SetResource(resource string)

SetResource adds the resource to the set resource permissions params

func (*SetResourcePermissionsParams) SetResourceID

func (o *SetResourcePermissionsParams) SetResourceID(resourceID string)

SetResourceID adds the resourceId to the set resource permissions params

func (*SetResourcePermissionsParams) SetTimeout

func (o *SetResourcePermissionsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the set resource permissions params

func (*SetResourcePermissionsParams) WithBody

WithBody adds the body to the set resource permissions params

func (*SetResourcePermissionsParams) WithContext

WithContext adds the context to the set resource permissions params

func (*SetResourcePermissionsParams) WithDefaults

WithDefaults hydrates default values in the set resource permissions params (not the query body).

All values with no default are reset to their zero value.

func (*SetResourcePermissionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set resource permissions params

func (*SetResourcePermissionsParams) WithResource

WithResource adds the resource to the set resource permissions params

func (*SetResourcePermissionsParams) WithResourceID

func (o *SetResourcePermissionsParams) WithResourceID(resourceID string) *SetResourcePermissionsParams

WithResourceID adds the resourceID to the set resource permissions params

func (*SetResourcePermissionsParams) WithTimeout

WithTimeout adds the timeout to the set resource permissions params

func (*SetResourcePermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetResourcePermissionsReader

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

SetResourcePermissionsReader is a Reader for the SetResourcePermissions structure.

func (*SetResourcePermissionsReader) ReadResponse

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

func (o *SetRoleAssignmentsForbidden) Code() int

Code gets the status code for the set role assignments forbidden response

func (*SetRoleAssignmentsForbidden) Error

func (*SetRoleAssignmentsForbidden) GetPayload

func (*SetRoleAssignmentsForbidden) IsClientError

func (o *SetRoleAssignmentsForbidden) IsClientError() bool

IsClientError returns true when this set role assignments forbidden response has a 4xx status code

func (*SetRoleAssignmentsForbidden) IsCode

func (o *SetRoleAssignmentsForbidden) IsCode(code int) bool

IsCode returns true when this set role assignments forbidden response a status code equal to that given

func (*SetRoleAssignmentsForbidden) IsRedirect

func (o *SetRoleAssignmentsForbidden) IsRedirect() bool

IsRedirect returns true when this set role assignments forbidden response has a 3xx status code

func (*SetRoleAssignmentsForbidden) IsServerError

func (o *SetRoleAssignmentsForbidden) IsServerError() bool

IsServerError returns true when this set role assignments forbidden response has a 5xx status code

func (*SetRoleAssignmentsForbidden) IsSuccess

func (o *SetRoleAssignmentsForbidden) IsSuccess() bool

IsSuccess returns true when this set role assignments forbidden response has a 2xx status code

func (*SetRoleAssignmentsForbidden) String

func (o *SetRoleAssignmentsForbidden) String() string

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

Code gets the status code for the set role assignments internal server error response

func (*SetRoleAssignmentsInternalServerError) Error

func (*SetRoleAssignmentsInternalServerError) GetPayload

func (*SetRoleAssignmentsInternalServerError) IsClientError

func (o *SetRoleAssignmentsInternalServerError) IsClientError() bool

IsClientError returns true when this set role assignments internal server error response has a 4xx status code

func (*SetRoleAssignmentsInternalServerError) IsCode

IsCode returns true when this set role assignments internal server error response a status code equal to that given

func (*SetRoleAssignmentsInternalServerError) IsRedirect

IsRedirect returns true when this set role assignments internal server error response has a 3xx status code

func (*SetRoleAssignmentsInternalServerError) IsServerError

func (o *SetRoleAssignmentsInternalServerError) IsServerError() bool

IsServerError returns true when this set role assignments internal server error response has a 5xx status code

func (*SetRoleAssignmentsInternalServerError) IsSuccess

IsSuccess returns true when this set role assignments internal server error response has a 2xx status code

func (*SetRoleAssignmentsInternalServerError) String

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

func (o *SetRoleAssignmentsNotFound) Code() int

Code gets the status code for the set role assignments not found response

func (*SetRoleAssignmentsNotFound) Error

func (*SetRoleAssignmentsNotFound) GetPayload

func (*SetRoleAssignmentsNotFound) IsClientError

func (o *SetRoleAssignmentsNotFound) IsClientError() bool

IsClientError returns true when this set role assignments not found response has a 4xx status code

func (*SetRoleAssignmentsNotFound) IsCode

func (o *SetRoleAssignmentsNotFound) IsCode(code int) bool

IsCode returns true when this set role assignments not found response a status code equal to that given

func (*SetRoleAssignmentsNotFound) IsRedirect

func (o *SetRoleAssignmentsNotFound) IsRedirect() bool

IsRedirect returns true when this set role assignments not found response has a 3xx status code

func (*SetRoleAssignmentsNotFound) IsServerError

func (o *SetRoleAssignmentsNotFound) IsServerError() bool

IsServerError returns true when this set role assignments not found response has a 5xx status code

func (*SetRoleAssignmentsNotFound) IsSuccess

func (o *SetRoleAssignmentsNotFound) IsSuccess() bool

IsSuccess returns true when this set role assignments not found response has a 2xx status code

func (*SetRoleAssignmentsNotFound) String

func (o *SetRoleAssignmentsNotFound) String() string

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

func (o *SetRoleAssignmentsOK) Code() int

Code gets the status code for the set role assignments Ok response

func (*SetRoleAssignmentsOK) Error

func (o *SetRoleAssignmentsOK) Error() string

func (*SetRoleAssignmentsOK) GetPayload

func (*SetRoleAssignmentsOK) IsClientError

func (o *SetRoleAssignmentsOK) IsClientError() bool

IsClientError returns true when this set role assignments Ok response has a 4xx status code

func (*SetRoleAssignmentsOK) IsCode

func (o *SetRoleAssignmentsOK) IsCode(code int) bool

IsCode returns true when this set role assignments Ok response a status code equal to that given

func (*SetRoleAssignmentsOK) IsRedirect

func (o *SetRoleAssignmentsOK) IsRedirect() bool

IsRedirect returns true when this set role assignments Ok response has a 3xx status code

func (*SetRoleAssignmentsOK) IsServerError

func (o *SetRoleAssignmentsOK) IsServerError() bool

IsServerError returns true when this set role assignments Ok response has a 5xx status code

func (*SetRoleAssignmentsOK) IsSuccess

func (o *SetRoleAssignmentsOK) IsSuccess() bool

IsSuccess returns true when this set role assignments Ok response has a 2xx status code

func (*SetRoleAssignmentsOK) String

func (o *SetRoleAssignmentsOK) String() string

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

func (o *SetTeamRolesBadRequest) Code() int

Code gets the status code for the set team roles bad request response

func (*SetTeamRolesBadRequest) Error

func (o *SetTeamRolesBadRequest) Error() string

func (*SetTeamRolesBadRequest) GetPayload

func (*SetTeamRolesBadRequest) IsClientError

func (o *SetTeamRolesBadRequest) IsClientError() bool

IsClientError returns true when this set team roles bad request response has a 4xx status code

func (*SetTeamRolesBadRequest) IsCode

func (o *SetTeamRolesBadRequest) IsCode(code int) bool

IsCode returns true when this set team roles bad request response a status code equal to that given

func (*SetTeamRolesBadRequest) IsRedirect

func (o *SetTeamRolesBadRequest) IsRedirect() bool

IsRedirect returns true when this set team roles bad request response has a 3xx status code

func (*SetTeamRolesBadRequest) IsServerError

func (o *SetTeamRolesBadRequest) IsServerError() bool

IsServerError returns true when this set team roles bad request response has a 5xx status code

func (*SetTeamRolesBadRequest) IsSuccess

func (o *SetTeamRolesBadRequest) IsSuccess() bool

IsSuccess returns true when this set team roles bad request response has a 2xx status code

func (*SetTeamRolesBadRequest) String

func (o *SetTeamRolesBadRequest) String() string

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

func (o *SetTeamRolesForbidden) Code() int

Code gets the status code for the set team roles forbidden response

func (*SetTeamRolesForbidden) Error

func (o *SetTeamRolesForbidden) Error() string

func (*SetTeamRolesForbidden) GetPayload

func (*SetTeamRolesForbidden) IsClientError

func (o *SetTeamRolesForbidden) IsClientError() bool

IsClientError returns true when this set team roles forbidden response has a 4xx status code

func (*SetTeamRolesForbidden) IsCode

func (o *SetTeamRolesForbidden) IsCode(code int) bool

IsCode returns true when this set team roles forbidden response a status code equal to that given

func (*SetTeamRolesForbidden) IsRedirect

func (o *SetTeamRolesForbidden) IsRedirect() bool

IsRedirect returns true when this set team roles forbidden response has a 3xx status code

func (*SetTeamRolesForbidden) IsServerError

func (o *SetTeamRolesForbidden) IsServerError() bool

IsServerError returns true when this set team roles forbidden response has a 5xx status code

func (*SetTeamRolesForbidden) IsSuccess

func (o *SetTeamRolesForbidden) IsSuccess() bool

IsSuccess returns true when this set team roles forbidden response has a 2xx status code

func (*SetTeamRolesForbidden) String

func (o *SetTeamRolesForbidden) String() string

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

Code gets the status code for the set team roles internal server error response

func (*SetTeamRolesInternalServerError) Error

func (*SetTeamRolesInternalServerError) GetPayload

func (*SetTeamRolesInternalServerError) IsClientError

func (o *SetTeamRolesInternalServerError) IsClientError() bool

IsClientError returns true when this set team roles internal server error response has a 4xx status code

func (*SetTeamRolesInternalServerError) IsCode

func (o *SetTeamRolesInternalServerError) IsCode(code int) bool

IsCode returns true when this set team roles internal server error response a status code equal to that given

func (*SetTeamRolesInternalServerError) IsRedirect

func (o *SetTeamRolesInternalServerError) IsRedirect() bool

IsRedirect returns true when this set team roles internal server error response has a 3xx status code

func (*SetTeamRolesInternalServerError) IsServerError

func (o *SetTeamRolesInternalServerError) IsServerError() bool

IsServerError returns true when this set team roles internal server error response has a 5xx status code

func (*SetTeamRolesInternalServerError) IsSuccess

func (o *SetTeamRolesInternalServerError) IsSuccess() bool

IsSuccess returns true when this set team roles internal server error response has a 2xx status code

func (*SetTeamRolesInternalServerError) String

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

func (o *SetTeamRolesNotFound) Code() int

Code gets the status code for the set team roles not found response

func (*SetTeamRolesNotFound) Error

func (o *SetTeamRolesNotFound) Error() string

func (*SetTeamRolesNotFound) GetPayload

func (*SetTeamRolesNotFound) IsClientError

func (o *SetTeamRolesNotFound) IsClientError() bool

IsClientError returns true when this set team roles not found response has a 4xx status code

func (*SetTeamRolesNotFound) IsCode

func (o *SetTeamRolesNotFound) IsCode(code int) bool

IsCode returns true when this set team roles not found response a status code equal to that given

func (*SetTeamRolesNotFound) IsRedirect

func (o *SetTeamRolesNotFound) IsRedirect() bool

IsRedirect returns true when this set team roles not found response has a 3xx status code

func (*SetTeamRolesNotFound) IsServerError

func (o *SetTeamRolesNotFound) IsServerError() bool

IsServerError returns true when this set team roles not found response has a 5xx status code

func (*SetTeamRolesNotFound) IsSuccess

func (o *SetTeamRolesNotFound) IsSuccess() bool

IsSuccess returns true when this set team roles not found response has a 2xx status code

func (*SetTeamRolesNotFound) String

func (o *SetTeamRolesNotFound) String() string

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

func (o *SetTeamRolesOK) Code() int

Code gets the status code for the set team roles Ok response

func (*SetTeamRolesOK) Error

func (o *SetTeamRolesOK) Error() string

func (*SetTeamRolesOK) GetPayload

func (o *SetTeamRolesOK) GetPayload() *models.SuccessResponseBody

func (*SetTeamRolesOK) IsClientError

func (o *SetTeamRolesOK) IsClientError() bool

IsClientError returns true when this set team roles Ok response has a 4xx status code

func (*SetTeamRolesOK) IsCode

func (o *SetTeamRolesOK) IsCode(code int) bool

IsCode returns true when this set team roles Ok response a status code equal to that given

func (*SetTeamRolesOK) IsRedirect

func (o *SetTeamRolesOK) IsRedirect() bool

IsRedirect returns true when this set team roles Ok response has a 3xx status code

func (*SetTeamRolesOK) IsServerError

func (o *SetTeamRolesOK) IsServerError() bool

IsServerError returns true when this set team roles Ok response has a 5xx status code

func (*SetTeamRolesOK) IsSuccess

func (o *SetTeamRolesOK) IsSuccess() bool

IsSuccess returns true when this set team roles Ok response has a 2xx status code

func (*SetTeamRolesOK) String

func (o *SetTeamRolesOK) String() string

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

func (o *SetUserRolesBadRequest) Code() int

Code gets the status code for the set user roles bad request response

func (*SetUserRolesBadRequest) Error

func (o *SetUserRolesBadRequest) Error() string

func (*SetUserRolesBadRequest) GetPayload

func (*SetUserRolesBadRequest) IsClientError

func (o *SetUserRolesBadRequest) IsClientError() bool

IsClientError returns true when this set user roles bad request response has a 4xx status code

func (*SetUserRolesBadRequest) IsCode

func (o *SetUserRolesBadRequest) IsCode(code int) bool

IsCode returns true when this set user roles bad request response a status code equal to that given

func (*SetUserRolesBadRequest) IsRedirect

func (o *SetUserRolesBadRequest) IsRedirect() bool

IsRedirect returns true when this set user roles bad request response has a 3xx status code

func (*SetUserRolesBadRequest) IsServerError

func (o *SetUserRolesBadRequest) IsServerError() bool

IsServerError returns true when this set user roles bad request response has a 5xx status code

func (*SetUserRolesBadRequest) IsSuccess

func (o *SetUserRolesBadRequest) IsSuccess() bool

IsSuccess returns true when this set user roles bad request response has a 2xx status code

func (*SetUserRolesBadRequest) String

func (o *SetUserRolesBadRequest) String() string

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

func (o *SetUserRolesForbidden) Code() int

Code gets the status code for the set user roles forbidden response

func (*SetUserRolesForbidden) Error

func (o *SetUserRolesForbidden) Error() string

func (*SetUserRolesForbidden) GetPayload

func (*SetUserRolesForbidden) IsClientError

func (o *SetUserRolesForbidden) IsClientError() bool

IsClientError returns true when this set user roles forbidden response has a 4xx status code

func (*SetUserRolesForbidden) IsCode

func (o *SetUserRolesForbidden) IsCode(code int) bool

IsCode returns true when this set user roles forbidden response a status code equal to that given

func (*SetUserRolesForbidden) IsRedirect

func (o *SetUserRolesForbidden) IsRedirect() bool

IsRedirect returns true when this set user roles forbidden response has a 3xx status code

func (*SetUserRolesForbidden) IsServerError

func (o *SetUserRolesForbidden) IsServerError() bool

IsServerError returns true when this set user roles forbidden response has a 5xx status code

func (*SetUserRolesForbidden) IsSuccess

func (o *SetUserRolesForbidden) IsSuccess() bool

IsSuccess returns true when this set user roles forbidden response has a 2xx status code

func (*SetUserRolesForbidden) String

func (o *SetUserRolesForbidden) String() string

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

Code gets the status code for the set user roles internal server error response

func (*SetUserRolesInternalServerError) Error

func (*SetUserRolesInternalServerError) GetPayload

func (*SetUserRolesInternalServerError) IsClientError

func (o *SetUserRolesInternalServerError) IsClientError() bool

IsClientError returns true when this set user roles internal server error response has a 4xx status code

func (*SetUserRolesInternalServerError) IsCode

func (o *SetUserRolesInternalServerError) IsCode(code int) bool

IsCode returns true when this set user roles internal server error response a status code equal to that given

func (*SetUserRolesInternalServerError) IsRedirect

func (o *SetUserRolesInternalServerError) IsRedirect() bool

IsRedirect returns true when this set user roles internal server error response has a 3xx status code

func (*SetUserRolesInternalServerError) IsServerError

func (o *SetUserRolesInternalServerError) IsServerError() bool

IsServerError returns true when this set user roles internal server error response has a 5xx status code

func (*SetUserRolesInternalServerError) IsSuccess

func (o *SetUserRolesInternalServerError) IsSuccess() bool

IsSuccess returns true when this set user roles internal server error response has a 2xx status code

func (*SetUserRolesInternalServerError) String

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

func (o *SetUserRolesNotFound) Code() int

Code gets the status code for the set user roles not found response

func (*SetUserRolesNotFound) Error

func (o *SetUserRolesNotFound) Error() string

func (*SetUserRolesNotFound) GetPayload

func (*SetUserRolesNotFound) IsClientError

func (o *SetUserRolesNotFound) IsClientError() bool

IsClientError returns true when this set user roles not found response has a 4xx status code

func (*SetUserRolesNotFound) IsCode

func (o *SetUserRolesNotFound) IsCode(code int) bool

IsCode returns true when this set user roles not found response a status code equal to that given

func (*SetUserRolesNotFound) IsRedirect

func (o *SetUserRolesNotFound) IsRedirect() bool

IsRedirect returns true when this set user roles not found response has a 3xx status code

func (*SetUserRolesNotFound) IsServerError

func (o *SetUserRolesNotFound) IsServerError() bool

IsServerError returns true when this set user roles not found response has a 5xx status code

func (*SetUserRolesNotFound) IsSuccess

func (o *SetUserRolesNotFound) IsSuccess() bool

IsSuccess returns true when this set user roles not found response has a 2xx status code

func (*SetUserRolesNotFound) String

func (o *SetUserRolesNotFound) String() string

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

func (o *SetUserRolesOK) Code() int

Code gets the status code for the set user roles Ok response

func (*SetUserRolesOK) Error

func (o *SetUserRolesOK) Error() string

func (*SetUserRolesOK) GetPayload

func (o *SetUserRolesOK) GetPayload() *models.SuccessResponseBody

func (*SetUserRolesOK) IsClientError

func (o *SetUserRolesOK) IsClientError() bool

IsClientError returns true when this set user roles Ok response has a 4xx status code

func (*SetUserRolesOK) IsCode

func (o *SetUserRolesOK) IsCode(code int) bool

IsCode returns true when this set user roles Ok response a status code equal to that given

func (*SetUserRolesOK) IsRedirect

func (o *SetUserRolesOK) IsRedirect() bool

IsRedirect returns true when this set user roles Ok response has a 3xx status code

func (*SetUserRolesOK) IsServerError

func (o *SetUserRolesOK) IsServerError() bool

IsServerError returns true when this set user roles Ok response has a 5xx status code

func (*SetUserRolesOK) IsSuccess

func (o *SetUserRolesOK) IsSuccess() bool

IsSuccess returns true when this set user roles Ok response has a 2xx status code

func (*SetUserRolesOK) String

func (o *SetUserRolesOK) String() string

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

func (o *UpdateRoleBadRequest) Code() int

Code gets the status code for the update role bad request response

func (*UpdateRoleBadRequest) Error

func (o *UpdateRoleBadRequest) Error() string

func (*UpdateRoleBadRequest) GetPayload

func (*UpdateRoleBadRequest) IsClientError

func (o *UpdateRoleBadRequest) IsClientError() bool

IsClientError returns true when this update role bad request response has a 4xx status code

func (*UpdateRoleBadRequest) IsCode

func (o *UpdateRoleBadRequest) IsCode(code int) bool

IsCode returns true when this update role bad request response a status code equal to that given

func (*UpdateRoleBadRequest) IsRedirect

func (o *UpdateRoleBadRequest) IsRedirect() bool

IsRedirect returns true when this update role bad request response has a 3xx status code

func (*UpdateRoleBadRequest) IsServerError

func (o *UpdateRoleBadRequest) IsServerError() bool

IsServerError returns true when this update role bad request response has a 5xx status code

func (*UpdateRoleBadRequest) IsSuccess

func (o *UpdateRoleBadRequest) IsSuccess() bool

IsSuccess returns true when this update role bad request response has a 2xx status code

func (*UpdateRoleBadRequest) String

func (o *UpdateRoleBadRequest) String() string

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

func (o *UpdateRoleForbidden) Code() int

Code gets the status code for the update role forbidden response

func (*UpdateRoleForbidden) Error

func (o *UpdateRoleForbidden) Error() string

func (*UpdateRoleForbidden) GetPayload

func (o *UpdateRoleForbidden) GetPayload() *models.ErrorResponseBody

func (*UpdateRoleForbidden) IsClientError

func (o *UpdateRoleForbidden) IsClientError() bool

IsClientError returns true when this update role forbidden response has a 4xx status code

func (*UpdateRoleForbidden) IsCode

func (o *UpdateRoleForbidden) IsCode(code int) bool

IsCode returns true when this update role forbidden response a status code equal to that given

func (*UpdateRoleForbidden) IsRedirect

func (o *UpdateRoleForbidden) IsRedirect() bool

IsRedirect returns true when this update role forbidden response has a 3xx status code

func (*UpdateRoleForbidden) IsServerError

func (o *UpdateRoleForbidden) IsServerError() bool

IsServerError returns true when this update role forbidden response has a 5xx status code

func (*UpdateRoleForbidden) IsSuccess

func (o *UpdateRoleForbidden) IsSuccess() bool

IsSuccess returns true when this update role forbidden response has a 2xx status code

func (*UpdateRoleForbidden) String

func (o *UpdateRoleForbidden) String() string

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

Code gets the status code for the update role internal server error response

func (*UpdateRoleInternalServerError) Error

func (*UpdateRoleInternalServerError) GetPayload

func (*UpdateRoleInternalServerError) IsClientError

func (o *UpdateRoleInternalServerError) IsClientError() bool

IsClientError returns true when this update role internal server error response has a 4xx status code

func (*UpdateRoleInternalServerError) IsCode

func (o *UpdateRoleInternalServerError) IsCode(code int) bool

IsCode returns true when this update role internal server error response a status code equal to that given

func (*UpdateRoleInternalServerError) IsRedirect

func (o *UpdateRoleInternalServerError) IsRedirect() bool

IsRedirect returns true when this update role internal server error response has a 3xx status code

func (*UpdateRoleInternalServerError) IsServerError

func (o *UpdateRoleInternalServerError) IsServerError() bool

IsServerError returns true when this update role internal server error response has a 5xx status code

func (*UpdateRoleInternalServerError) IsSuccess

func (o *UpdateRoleInternalServerError) IsSuccess() bool

IsSuccess returns true when this update role internal server error response has a 2xx status code

func (*UpdateRoleInternalServerError) String

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

func (o *UpdateRoleNotFound) Code() int

Code gets the status code for the update role not found response

func (*UpdateRoleNotFound) Error

func (o *UpdateRoleNotFound) Error() string

func (*UpdateRoleNotFound) GetPayload

func (o *UpdateRoleNotFound) GetPayload() *models.ErrorResponseBody

func (*UpdateRoleNotFound) IsClientError

func (o *UpdateRoleNotFound) IsClientError() bool

IsClientError returns true when this update role not found response has a 4xx status code

func (*UpdateRoleNotFound) IsCode

func (o *UpdateRoleNotFound) IsCode(code int) bool

IsCode returns true when this update role not found response a status code equal to that given

func (*UpdateRoleNotFound) IsRedirect

func (o *UpdateRoleNotFound) IsRedirect() bool

IsRedirect returns true when this update role not found response has a 3xx status code

func (*UpdateRoleNotFound) IsServerError

func (o *UpdateRoleNotFound) IsServerError() bool

IsServerError returns true when this update role not found response has a 5xx status code

func (*UpdateRoleNotFound) IsSuccess

func (o *UpdateRoleNotFound) IsSuccess() bool

IsSuccess returns true when this update role not found response has a 2xx status code

func (*UpdateRoleNotFound) String

func (o *UpdateRoleNotFound) String() string

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

func (o *UpdateRoleOK) Code() int

Code gets the status code for the update role Ok response

func (*UpdateRoleOK) Error

func (o *UpdateRoleOK) Error() string

func (*UpdateRoleOK) GetPayload

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

func (*UpdateRoleOK) IsClientError

func (o *UpdateRoleOK) IsClientError() bool

IsClientError returns true when this update role Ok response has a 4xx status code

func (*UpdateRoleOK) IsCode

func (o *UpdateRoleOK) IsCode(code int) bool

IsCode returns true when this update role Ok response a status code equal to that given

func (*UpdateRoleOK) IsRedirect

func (o *UpdateRoleOK) IsRedirect() bool

IsRedirect returns true when this update role Ok response has a 3xx status code

func (*UpdateRoleOK) IsServerError

func (o *UpdateRoleOK) IsServerError() bool

IsServerError returns true when this update role Ok response has a 5xx status code

func (*UpdateRoleOK) IsSuccess

func (o *UpdateRoleOK) IsSuccess() bool

IsSuccess returns true when this update role Ok response has a 2xx status code

func (*UpdateRoleOK) String

func (o *UpdateRoleOK) String() string

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.

Source Files

Jump to

Keyboard shortcuts

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