role_service

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for role service API

func (*Client) DeleteRole

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

DeleteRole deletes a role by ID

func (*Client) GetRole

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

GetRole gets a role by ID

func (*Client) SearchRoles

func (a *Client) SearchRoles(params *SearchRolesParams, opts ...ClientOption) (*SearchRolesOK, error)

SearchRoles searches roles

func (*Client) SetRole

func (a *Client) SetRole(params *SetRoleParams, opts ...ClientOption) (*SetRoleOK, error)

SetRole creates or update a role

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteRole(params *DeleteRoleParams, opts ...ClientOption) (*DeleteRoleOK, error)

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

	SearchRoles(params *SearchRolesParams, opts ...ClientOption) (*SearchRolesOK, error)

	SetRole(params *SetRoleParams, opts ...ClientOption) (*SetRoleOK, 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 role service API client.

type DeleteRoleForbidden

type DeleteRoleForbidden struct {
	Payload *models.RestError
}

DeleteRoleForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewDeleteRoleForbidden

func NewDeleteRoleForbidden() *DeleteRoleForbidden

NewDeleteRoleForbidden creates a DeleteRoleForbidden with default headers values

func (*DeleteRoleForbidden) Code added in v4.0.1

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.RestError

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.RestError
}

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

An internal error occurred in the backend

func NewDeleteRoleInternalServerError

func NewDeleteRoleInternalServerError() *DeleteRoleInternalServerError

NewDeleteRoleInternalServerError creates a DeleteRoleInternalServerError with default headers values

func (*DeleteRoleInternalServerError) Code added in v4.0.1

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 DeleteRoleNotFound

type DeleteRoleNotFound struct {
	Payload *models.RestError
}

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

Resource does not exist in the system

func NewDeleteRoleNotFound

func NewDeleteRoleNotFound() *DeleteRoleNotFound

NewDeleteRoleNotFound creates a DeleteRoleNotFound with default headers values

func (*DeleteRoleNotFound) Code added in v4.0.1

func (o *DeleteRoleNotFound) Code() int

Code gets the status code for the delete role not found response

func (*DeleteRoleNotFound) Error

func (o *DeleteRoleNotFound) Error() string

func (*DeleteRoleNotFound) GetPayload

func (o *DeleteRoleNotFound) GetPayload() *models.RestError

func (*DeleteRoleNotFound) IsClientError

func (o *DeleteRoleNotFound) IsClientError() bool

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

func (*DeleteRoleNotFound) IsCode

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

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

func (*DeleteRoleNotFound) IsRedirect

func (o *DeleteRoleNotFound) IsRedirect() bool

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

func (*DeleteRoleNotFound) IsServerError

func (o *DeleteRoleNotFound) IsServerError() bool

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

func (*DeleteRoleNotFound) IsSuccess

func (o *DeleteRoleNotFound) IsSuccess() bool

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

func (*DeleteRoleNotFound) String

func (o *DeleteRoleNotFound) String() string

type DeleteRoleOK

type DeleteRoleOK struct {
	Payload *models.IdmRole
}

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

A successful response.

func NewDeleteRoleOK

func NewDeleteRoleOK() *DeleteRoleOK

NewDeleteRoleOK creates a DeleteRoleOK with default headers values

func (*DeleteRoleOK) Code added in v4.0.1

func (o *DeleteRoleOK) Code() int

Code gets the status code for the delete role o k response

func (*DeleteRoleOK) Error

func (o *DeleteRoleOK) Error() string

func (*DeleteRoleOK) GetPayload

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

func (*DeleteRoleOK) IsClientError

func (o *DeleteRoleOK) IsClientError() bool

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

func (*DeleteRoleOK) IsCode

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

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

func (*DeleteRoleOK) IsRedirect

func (o *DeleteRoleOK) IsRedirect() bool

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

func (*DeleteRoleOK) IsServerError

func (o *DeleteRoleOK) IsServerError() bool

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

func (*DeleteRoleOK) IsSuccess

func (o *DeleteRoleOK) IsSuccess() bool

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

func (*DeleteRoleOK) String

func (o *DeleteRoleOK) String() string

type DeleteRoleParams

type DeleteRoleParams struct {

	/* AutoApplies.

	   List of profiles (standard, shared, admin) on which the role will be automatically applied
	*/
	AutoApplies []string

	/* ForceOverride.

	   Is used in a stack of roles, this one will always be applied last.
	*/
	ForceOverride *bool

	/* GroupRole.

	   Whether this role is attached to a Group object
	*/
	GroupRole *bool

	/* IsTeam.

	   Whether this role represents a user team or not
	*/
	IsTeam *bool

	/* Label.

	   Label of this role
	*/
	Label *string

	/* LastUpdated.

	   Last modification date of the role

	   Format: int32
	*/
	LastUpdated *int32

	/* PoliciesContextEditable.

	   Whether the policies resolve into an editable state
	*/
	PoliciesContextEditable *bool

	/* UserRole.

	   Whether this role is attached to a User object
	*/
	UserRole *bool

	/* UUID.

	   Unique identifier of this role
	*/
	UUID 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) SetAutoApplies

func (o *DeleteRoleParams) SetAutoApplies(autoApplies []string)

SetAutoApplies adds the autoApplies to the delete role params

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

func (o *DeleteRoleParams) SetForceOverride(forceOverride *bool)

SetForceOverride adds the forceOverride to the delete role params

func (*DeleteRoleParams) SetGroupRole

func (o *DeleteRoleParams) SetGroupRole(groupRole *bool)

SetGroupRole adds the groupRole 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) SetIsTeam

func (o *DeleteRoleParams) SetIsTeam(isTeam *bool)

SetIsTeam adds the isTeam to the delete role params

func (*DeleteRoleParams) SetLabel

func (o *DeleteRoleParams) SetLabel(label *string)

SetLabel adds the label to the delete role params

func (*DeleteRoleParams) SetLastUpdated

func (o *DeleteRoleParams) SetLastUpdated(lastUpdated *int32)

SetLastUpdated adds the lastUpdated to the delete role params

func (*DeleteRoleParams) SetPoliciesContextEditable

func (o *DeleteRoleParams) SetPoliciesContextEditable(policiesContextEditable *bool)

SetPoliciesContextEditable adds the policiesContextEditable 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) SetUUID

func (o *DeleteRoleParams) SetUUID(uuid string)

SetUUID adds the uuid to the delete role params

func (*DeleteRoleParams) SetUserRole

func (o *DeleteRoleParams) SetUserRole(userRole *bool)

SetUserRole adds the userRole to the delete role params

func (*DeleteRoleParams) WithAutoApplies

func (o *DeleteRoleParams) WithAutoApplies(autoApplies []string) *DeleteRoleParams

WithAutoApplies adds the autoApplies 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) WithForceOverride

func (o *DeleteRoleParams) WithForceOverride(forceOverride *bool) *DeleteRoleParams

WithForceOverride adds the forceOverride to the delete role params

func (*DeleteRoleParams) WithGroupRole

func (o *DeleteRoleParams) WithGroupRole(groupRole *bool) *DeleteRoleParams

WithGroupRole adds the groupRole 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) WithIsTeam

func (o *DeleteRoleParams) WithIsTeam(isTeam *bool) *DeleteRoleParams

WithIsTeam adds the isTeam to the delete role params

func (*DeleteRoleParams) WithLabel

func (o *DeleteRoleParams) WithLabel(label *string) *DeleteRoleParams

WithLabel adds the label to the delete role params

func (*DeleteRoleParams) WithLastUpdated

func (o *DeleteRoleParams) WithLastUpdated(lastUpdated *int32) *DeleteRoleParams

WithLastUpdated adds the lastUpdated to the delete role params

func (*DeleteRoleParams) WithPoliciesContextEditable

func (o *DeleteRoleParams) WithPoliciesContextEditable(policiesContextEditable *bool) *DeleteRoleParams

WithPoliciesContextEditable adds the policiesContextEditable 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) WithUUID

func (o *DeleteRoleParams) WithUUID(uuid string) *DeleteRoleParams

WithUUID adds the uuid to the delete role params

func (*DeleteRoleParams) WithUserRole

func (o *DeleteRoleParams) WithUserRole(userRole *bool) *DeleteRoleParams

WithUserRole adds the userRole to the delete role params

func (*DeleteRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRoleReader

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

DeleteRoleReader is a Reader for the DeleteRole structure.

func (*DeleteRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRoleUnauthorized

type DeleteRoleUnauthorized struct {
}

DeleteRoleUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewDeleteRoleUnauthorized

func NewDeleteRoleUnauthorized() *DeleteRoleUnauthorized

NewDeleteRoleUnauthorized creates a DeleteRoleUnauthorized with default headers values

func (*DeleteRoleUnauthorized) Code added in v4.0.1

func (o *DeleteRoleUnauthorized) Code() int

Code gets the status code for the delete role unauthorized response

func (*DeleteRoleUnauthorized) Error

func (o *DeleteRoleUnauthorized) Error() string

func (*DeleteRoleUnauthorized) IsClientError

func (o *DeleteRoleUnauthorized) IsClientError() bool

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

func (*DeleteRoleUnauthorized) IsCode

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

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

func (*DeleteRoleUnauthorized) IsRedirect

func (o *DeleteRoleUnauthorized) IsRedirect() bool

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

func (*DeleteRoleUnauthorized) IsServerError

func (o *DeleteRoleUnauthorized) IsServerError() bool

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

func (*DeleteRoleUnauthorized) IsSuccess

func (o *DeleteRoleUnauthorized) IsSuccess() bool

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

func (*DeleteRoleUnauthorized) String

func (o *DeleteRoleUnauthorized) String() string

type GetRoleForbidden

type GetRoleForbidden struct {
	Payload *models.RestError
}

GetRoleForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewGetRoleForbidden

func NewGetRoleForbidden() *GetRoleForbidden

NewGetRoleForbidden creates a GetRoleForbidden with default headers values

func (*GetRoleForbidden) Code added in v4.0.1

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.RestError

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.RestError
}

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

An internal error occurred in the backend

func NewGetRoleInternalServerError

func NewGetRoleInternalServerError() *GetRoleInternalServerError

NewGetRoleInternalServerError creates a GetRoleInternalServerError with default headers values

func (*GetRoleInternalServerError) Code added in v4.0.1

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 (o *GetRoleInternalServerError) GetPayload() *models.RestError

func (*GetRoleInternalServerError) IsClientError

func (o *GetRoleInternalServerError) IsClientError() bool

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

func (*GetRoleInternalServerError) IsCode

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

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

func (*GetRoleInternalServerError) IsRedirect

func (o *GetRoleInternalServerError) IsRedirect() bool

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

func (*GetRoleInternalServerError) IsServerError

func (o *GetRoleInternalServerError) IsServerError() bool

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

func (*GetRoleInternalServerError) IsSuccess

func (o *GetRoleInternalServerError) IsSuccess() bool

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

func (*GetRoleInternalServerError) String

func (o *GetRoleInternalServerError) String() string

type GetRoleNotFound

type GetRoleNotFound struct {
	Payload *models.RestError
}

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

Resource does not exist in the system

func NewGetRoleNotFound

func NewGetRoleNotFound() *GetRoleNotFound

NewGetRoleNotFound creates a GetRoleNotFound with default headers values

func (*GetRoleNotFound) Code added in v4.0.1

func (o *GetRoleNotFound) Code() int

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

func (*GetRoleNotFound) Error

func (o *GetRoleNotFound) Error() string

func (*GetRoleNotFound) GetPayload

func (o *GetRoleNotFound) GetPayload() *models.RestError

func (*GetRoleNotFound) IsClientError

func (o *GetRoleNotFound) IsClientError() bool

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

func (*GetRoleNotFound) IsCode

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

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

func (*GetRoleNotFound) IsRedirect

func (o *GetRoleNotFound) IsRedirect() bool

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

func (*GetRoleNotFound) IsServerError

func (o *GetRoleNotFound) IsServerError() bool

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

func (*GetRoleNotFound) IsSuccess

func (o *GetRoleNotFound) IsSuccess() bool

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

func (*GetRoleNotFound) String

func (o *GetRoleNotFound) String() string

type GetRoleOK

type GetRoleOK struct {
	Payload *models.IdmRole
}

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

A successful response.

func NewGetRoleOK

func NewGetRoleOK() *GetRoleOK

NewGetRoleOK creates a GetRoleOK with default headers values

func (*GetRoleOK) Code added in v4.0.1

func (o *GetRoleOK) Code() int

Code gets the status code for the get role o k response

func (*GetRoleOK) Error

func (o *GetRoleOK) Error() string

func (*GetRoleOK) GetPayload

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

func (*GetRoleOK) IsClientError

func (o *GetRoleOK) IsClientError() bool

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

func (*GetRoleOK) IsCode

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

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

func (*GetRoleOK) IsRedirect

func (o *GetRoleOK) IsRedirect() bool

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

func (*GetRoleOK) IsServerError

func (o *GetRoleOK) IsServerError() bool

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

func (*GetRoleOK) IsSuccess

func (o *GetRoleOK) IsSuccess() bool

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

func (*GetRoleOK) String

func (o *GetRoleOK) String() string

type GetRoleParams

type GetRoleParams struct {

	/* AutoApplies.

	   List of profiles (standard, shared, admin) on which the role will be automatically applied
	*/
	AutoApplies []string

	/* ForceOverride.

	   Is used in a stack of roles, this one will always be applied last.
	*/
	ForceOverride *bool

	/* GroupRole.

	   Whether this role is attached to a Group object
	*/
	GroupRole *bool

	/* IsTeam.

	   Whether this role represents a user team or not
	*/
	IsTeam *bool

	/* Label.

	   Label of this role
	*/
	Label *string

	/* LastUpdated.

	   Last modification date of the role

	   Format: int32
	*/
	LastUpdated *int32

	/* PoliciesContextEditable.

	   Whether the policies resolve into an editable state
	*/
	PoliciesContextEditable *bool

	/* UserRole.

	   Whether this role is attached to a User object
	*/
	UserRole *bool

	/* UUID.

	   Unique identifier of this role
	*/
	UUID 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) SetAutoApplies

func (o *GetRoleParams) SetAutoApplies(autoApplies []string)

SetAutoApplies adds the autoApplies to the get role params

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

func (o *GetRoleParams) SetForceOverride(forceOverride *bool)

SetForceOverride adds the forceOverride to the get role params

func (*GetRoleParams) SetGroupRole

func (o *GetRoleParams) SetGroupRole(groupRole *bool)

SetGroupRole adds the groupRole to the get role params

func (*GetRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get role params

func (*GetRoleParams) SetIsTeam

func (o *GetRoleParams) SetIsTeam(isTeam *bool)

SetIsTeam adds the isTeam to the get role params

func (*GetRoleParams) SetLabel

func (o *GetRoleParams) SetLabel(label *string)

SetLabel adds the label to the get role params

func (*GetRoleParams) SetLastUpdated

func (o *GetRoleParams) SetLastUpdated(lastUpdated *int32)

SetLastUpdated adds the lastUpdated to the get role params

func (*GetRoleParams) SetPoliciesContextEditable

func (o *GetRoleParams) SetPoliciesContextEditable(policiesContextEditable *bool)

SetPoliciesContextEditable adds the policiesContextEditable 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) SetUUID

func (o *GetRoleParams) SetUUID(uuid string)

SetUUID adds the uuid to the get role params

func (*GetRoleParams) SetUserRole

func (o *GetRoleParams) SetUserRole(userRole *bool)

SetUserRole adds the userRole to the get role params

func (*GetRoleParams) WithAutoApplies

func (o *GetRoleParams) WithAutoApplies(autoApplies []string) *GetRoleParams

WithAutoApplies adds the autoApplies 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) WithForceOverride

func (o *GetRoleParams) WithForceOverride(forceOverride *bool) *GetRoleParams

WithForceOverride adds the forceOverride to the get role params

func (*GetRoleParams) WithGroupRole

func (o *GetRoleParams) WithGroupRole(groupRole *bool) *GetRoleParams

WithGroupRole adds the groupRole to the get role params

func (*GetRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get role params

func (*GetRoleParams) WithIsTeam

func (o *GetRoleParams) WithIsTeam(isTeam *bool) *GetRoleParams

WithIsTeam adds the isTeam to the get role params

func (*GetRoleParams) WithLabel

func (o *GetRoleParams) WithLabel(label *string) *GetRoleParams

WithLabel adds the label to the get role params

func (*GetRoleParams) WithLastUpdated

func (o *GetRoleParams) WithLastUpdated(lastUpdated *int32) *GetRoleParams

WithLastUpdated adds the lastUpdated to the get role params

func (*GetRoleParams) WithPoliciesContextEditable

func (o *GetRoleParams) WithPoliciesContextEditable(policiesContextEditable *bool) *GetRoleParams

WithPoliciesContextEditable adds the policiesContextEditable 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) WithUUID

func (o *GetRoleParams) WithUUID(uuid string) *GetRoleParams

WithUUID adds the uuid to the get role params

func (*GetRoleParams) WithUserRole

func (o *GetRoleParams) WithUserRole(userRole *bool) *GetRoleParams

WithUserRole adds the userRole to the get role params

func (*GetRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRoleReader

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

GetRoleReader is a Reader for the GetRole structure.

func (*GetRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRoleUnauthorized

type GetRoleUnauthorized struct {
}

GetRoleUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewGetRoleUnauthorized

func NewGetRoleUnauthorized() *GetRoleUnauthorized

NewGetRoleUnauthorized creates a GetRoleUnauthorized with default headers values

func (*GetRoleUnauthorized) Code added in v4.0.1

func (o *GetRoleUnauthorized) Code() int

Code gets the status code for the get role unauthorized response

func (*GetRoleUnauthorized) Error

func (o *GetRoleUnauthorized) Error() string

func (*GetRoleUnauthorized) IsClientError

func (o *GetRoleUnauthorized) IsClientError() bool

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

func (*GetRoleUnauthorized) IsCode

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

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

func (*GetRoleUnauthorized) IsRedirect

func (o *GetRoleUnauthorized) IsRedirect() bool

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

func (*GetRoleUnauthorized) IsServerError

func (o *GetRoleUnauthorized) IsServerError() bool

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

func (*GetRoleUnauthorized) IsSuccess

func (o *GetRoleUnauthorized) IsSuccess() bool

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

func (*GetRoleUnauthorized) String

func (o *GetRoleUnauthorized) String() string

type SearchRolesForbidden

type SearchRolesForbidden struct {
	Payload *models.RestError
}

SearchRolesForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewSearchRolesForbidden

func NewSearchRolesForbidden() *SearchRolesForbidden

NewSearchRolesForbidden creates a SearchRolesForbidden with default headers values

func (*SearchRolesForbidden) Code added in v4.0.1

func (o *SearchRolesForbidden) Code() int

Code gets the status code for the search roles forbidden response

func (*SearchRolesForbidden) Error

func (o *SearchRolesForbidden) Error() string

func (*SearchRolesForbidden) GetPayload

func (o *SearchRolesForbidden) GetPayload() *models.RestError

func (*SearchRolesForbidden) IsClientError

func (o *SearchRolesForbidden) IsClientError() bool

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

func (*SearchRolesForbidden) IsCode

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

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

func (*SearchRolesForbidden) IsRedirect

func (o *SearchRolesForbidden) IsRedirect() bool

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

func (*SearchRolesForbidden) IsServerError

func (o *SearchRolesForbidden) IsServerError() bool

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

func (*SearchRolesForbidden) IsSuccess

func (o *SearchRolesForbidden) IsSuccess() bool

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

func (*SearchRolesForbidden) String

func (o *SearchRolesForbidden) String() string

type SearchRolesInternalServerError

type SearchRolesInternalServerError struct {
	Payload *models.RestError
}

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

An internal error occurred in the backend

func NewSearchRolesInternalServerError

func NewSearchRolesInternalServerError() *SearchRolesInternalServerError

NewSearchRolesInternalServerError creates a SearchRolesInternalServerError with default headers values

func (*SearchRolesInternalServerError) Code added in v4.0.1

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

func (*SearchRolesInternalServerError) Error

func (*SearchRolesInternalServerError) GetPayload

func (*SearchRolesInternalServerError) IsClientError

func (o *SearchRolesInternalServerError) IsClientError() bool

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

func (*SearchRolesInternalServerError) IsCode

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

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

func (*SearchRolesInternalServerError) IsRedirect

func (o *SearchRolesInternalServerError) IsRedirect() bool

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

func (*SearchRolesInternalServerError) IsServerError

func (o *SearchRolesInternalServerError) IsServerError() bool

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

func (*SearchRolesInternalServerError) IsSuccess

func (o *SearchRolesInternalServerError) IsSuccess() bool

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

func (*SearchRolesInternalServerError) String

type SearchRolesNotFound

type SearchRolesNotFound struct {
	Payload *models.RestError
}

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

Resource does not exist in the system

func NewSearchRolesNotFound

func NewSearchRolesNotFound() *SearchRolesNotFound

NewSearchRolesNotFound creates a SearchRolesNotFound with default headers values

func (*SearchRolesNotFound) Code added in v4.0.1

func (o *SearchRolesNotFound) Code() int

Code gets the status code for the search roles not found response

func (*SearchRolesNotFound) Error

func (o *SearchRolesNotFound) Error() string

func (*SearchRolesNotFound) GetPayload

func (o *SearchRolesNotFound) GetPayload() *models.RestError

func (*SearchRolesNotFound) IsClientError

func (o *SearchRolesNotFound) IsClientError() bool

IsClientError returns true when this search roles not found response has a 4xx status code

func (*SearchRolesNotFound) IsCode

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

IsCode returns true when this search roles not found response a status code equal to that given

func (*SearchRolesNotFound) IsRedirect

func (o *SearchRolesNotFound) IsRedirect() bool

IsRedirect returns true when this search roles not found response has a 3xx status code

func (*SearchRolesNotFound) IsServerError

func (o *SearchRolesNotFound) IsServerError() bool

IsServerError returns true when this search roles not found response has a 5xx status code

func (*SearchRolesNotFound) IsSuccess

func (o *SearchRolesNotFound) IsSuccess() bool

IsSuccess returns true when this search roles not found response has a 2xx status code

func (*SearchRolesNotFound) String

func (o *SearchRolesNotFound) String() string

type SearchRolesOK

type SearchRolesOK struct {
	Payload *models.RestRolesCollection
}

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

A successful response.

func NewSearchRolesOK

func NewSearchRolesOK() *SearchRolesOK

NewSearchRolesOK creates a SearchRolesOK with default headers values

func (*SearchRolesOK) Code added in v4.0.1

func (o *SearchRolesOK) Code() int

Code gets the status code for the search roles o k response

func (*SearchRolesOK) Error

func (o *SearchRolesOK) Error() string

func (*SearchRolesOK) GetPayload

func (o *SearchRolesOK) GetPayload() *models.RestRolesCollection

func (*SearchRolesOK) IsClientError

func (o *SearchRolesOK) IsClientError() bool

IsClientError returns true when this search roles o k response has a 4xx status code

func (*SearchRolesOK) IsCode

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

IsCode returns true when this search roles o k response a status code equal to that given

func (*SearchRolesOK) IsRedirect

func (o *SearchRolesOK) IsRedirect() bool

IsRedirect returns true when this search roles o k response has a 3xx status code

func (*SearchRolesOK) IsServerError

func (o *SearchRolesOK) IsServerError() bool

IsServerError returns true when this search roles o k response has a 5xx status code

func (*SearchRolesOK) IsSuccess

func (o *SearchRolesOK) IsSuccess() bool

IsSuccess returns true when this search roles o k response has a 2xx status code

func (*SearchRolesOK) String

func (o *SearchRolesOK) String() string

type SearchRolesParams

type SearchRolesParams struct {

	// Body.
	Body *models.RestSearchRoleRequest

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

SearchRolesParams contains all the parameters to send to the API endpoint

for the search roles operation.

Typically these are written to a http.Request.

func NewSearchRolesParams

func NewSearchRolesParams() *SearchRolesParams

NewSearchRolesParams creates a new SearchRolesParams 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 NewSearchRolesParamsWithContext

func NewSearchRolesParamsWithContext(ctx context.Context) *SearchRolesParams

NewSearchRolesParamsWithContext creates a new SearchRolesParams object with the ability to set a context for a request.

func NewSearchRolesParamsWithHTTPClient

func NewSearchRolesParamsWithHTTPClient(client *http.Client) *SearchRolesParams

NewSearchRolesParamsWithHTTPClient creates a new SearchRolesParams object with the ability to set a custom HTTPClient for a request.

func NewSearchRolesParamsWithTimeout

func NewSearchRolesParamsWithTimeout(timeout time.Duration) *SearchRolesParams

NewSearchRolesParamsWithTimeout creates a new SearchRolesParams object with the ability to set a timeout on a request.

func (*SearchRolesParams) SetBody

SetBody adds the body to the search roles params

func (*SearchRolesParams) SetContext

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

SetContext adds the context to the search roles params

func (*SearchRolesParams) SetDefaults

func (o *SearchRolesParams) SetDefaults()

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

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

func (*SearchRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search roles params

func (*SearchRolesParams) SetTimeout

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

SetTimeout adds the timeout to the search roles params

func (*SearchRolesParams) WithBody

WithBody adds the body to the search roles params

func (*SearchRolesParams) WithContext

func (o *SearchRolesParams) WithContext(ctx context.Context) *SearchRolesParams

WithContext adds the context to the search roles params

func (*SearchRolesParams) WithDefaults

func (o *SearchRolesParams) WithDefaults() *SearchRolesParams

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

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

func (*SearchRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search roles params

func (*SearchRolesParams) WithTimeout

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

WithTimeout adds the timeout to the search roles params

func (*SearchRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchRolesReader

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

SearchRolesReader is a Reader for the SearchRoles structure.

func (*SearchRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchRolesUnauthorized

type SearchRolesUnauthorized struct {
}

SearchRolesUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewSearchRolesUnauthorized

func NewSearchRolesUnauthorized() *SearchRolesUnauthorized

NewSearchRolesUnauthorized creates a SearchRolesUnauthorized with default headers values

func (*SearchRolesUnauthorized) Code added in v4.0.1

func (o *SearchRolesUnauthorized) Code() int

Code gets the status code for the search roles unauthorized response

func (*SearchRolesUnauthorized) Error

func (o *SearchRolesUnauthorized) Error() string

func (*SearchRolesUnauthorized) IsClientError

func (o *SearchRolesUnauthorized) IsClientError() bool

IsClientError returns true when this search roles unauthorized response has a 4xx status code

func (*SearchRolesUnauthorized) IsCode

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

IsCode returns true when this search roles unauthorized response a status code equal to that given

func (*SearchRolesUnauthorized) IsRedirect

func (o *SearchRolesUnauthorized) IsRedirect() bool

IsRedirect returns true when this search roles unauthorized response has a 3xx status code

func (*SearchRolesUnauthorized) IsServerError

func (o *SearchRolesUnauthorized) IsServerError() bool

IsServerError returns true when this search roles unauthorized response has a 5xx status code

func (*SearchRolesUnauthorized) IsSuccess

func (o *SearchRolesUnauthorized) IsSuccess() bool

IsSuccess returns true when this search roles unauthorized response has a 2xx status code

func (*SearchRolesUnauthorized) String

func (o *SearchRolesUnauthorized) String() string

type SetRoleBody

type SetRoleBody struct {

	// List of profiles (standard, shared, admin) on which the role will be automatically applied
	AutoApplies []string `json:"AutoApplies"`

	// Is used in a stack of roles, this one will always be applied last.
	ForceOverride bool `json:"ForceOverride,omitempty"`

	// Whether this role is attached to a Group object
	GroupRole bool `json:"GroupRole,omitempty"`

	// Whether this role represents a user team or not
	IsTeam bool `json:"IsTeam,omitempty"`

	// Label of this role
	Label string `json:"Label,omitempty"`

	// Last modification date of the role
	LastUpdated int32 `json:"LastUpdated,omitempty"`

	// List of policies for securing this role access
	Policies []*models.ServiceResourcePolicy `json:"Policies"`

	// Whether the policies resolve into an editable state
	PoliciesContextEditable bool `json:"PoliciesContextEditable,omitempty"`

	// Whether this role is attached to a User object
	UserRole bool `json:"UserRole,omitempty"`
}

SetRoleBody Role represents a generic set of permissions that can be applied to any users or groups. swagger:model SetRoleBody

func (*SetRoleBody) ContextValidate

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

ContextValidate validate this set role body based on the context it is used

func (*SetRoleBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SetRoleBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SetRoleBody) Validate

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

Validate validates this set role body

type SetRoleForbidden

type SetRoleForbidden struct {
	Payload *models.RestError
}

SetRoleForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewSetRoleForbidden

func NewSetRoleForbidden() *SetRoleForbidden

NewSetRoleForbidden creates a SetRoleForbidden with default headers values

func (*SetRoleForbidden) Code added in v4.0.1

func (o *SetRoleForbidden) Code() int

Code gets the status code for the set role forbidden response

func (*SetRoleForbidden) Error

func (o *SetRoleForbidden) Error() string

func (*SetRoleForbidden) GetPayload

func (o *SetRoleForbidden) GetPayload() *models.RestError

func (*SetRoleForbidden) IsClientError

func (o *SetRoleForbidden) IsClientError() bool

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

func (*SetRoleForbidden) IsCode

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

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

func (*SetRoleForbidden) IsRedirect

func (o *SetRoleForbidden) IsRedirect() bool

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

func (*SetRoleForbidden) IsServerError

func (o *SetRoleForbidden) IsServerError() bool

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

func (*SetRoleForbidden) IsSuccess

func (o *SetRoleForbidden) IsSuccess() bool

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

func (*SetRoleForbidden) String

func (o *SetRoleForbidden) String() string

type SetRoleInternalServerError

type SetRoleInternalServerError struct {
	Payload *models.RestError
}

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

An internal error occurred in the backend

func NewSetRoleInternalServerError

func NewSetRoleInternalServerError() *SetRoleInternalServerError

NewSetRoleInternalServerError creates a SetRoleInternalServerError with default headers values

func (*SetRoleInternalServerError) Code added in v4.0.1

func (o *SetRoleInternalServerError) Code() int

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

func (*SetRoleInternalServerError) Error

func (*SetRoleInternalServerError) GetPayload

func (o *SetRoleInternalServerError) GetPayload() *models.RestError

func (*SetRoleInternalServerError) IsClientError

func (o *SetRoleInternalServerError) IsClientError() bool

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

func (*SetRoleInternalServerError) IsCode

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

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

func (*SetRoleInternalServerError) IsRedirect

func (o *SetRoleInternalServerError) IsRedirect() bool

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

func (*SetRoleInternalServerError) IsServerError

func (o *SetRoleInternalServerError) IsServerError() bool

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

func (*SetRoleInternalServerError) IsSuccess

func (o *SetRoleInternalServerError) IsSuccess() bool

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

func (*SetRoleInternalServerError) String

func (o *SetRoleInternalServerError) String() string

type SetRoleNotFound

type SetRoleNotFound struct {
	Payload *models.RestError
}

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

Resource does not exist in the system

func NewSetRoleNotFound

func NewSetRoleNotFound() *SetRoleNotFound

NewSetRoleNotFound creates a SetRoleNotFound with default headers values

func (*SetRoleNotFound) Code added in v4.0.1

func (o *SetRoleNotFound) Code() int

Code gets the status code for the set role not found response

func (*SetRoleNotFound) Error

func (o *SetRoleNotFound) Error() string

func (*SetRoleNotFound) GetPayload

func (o *SetRoleNotFound) GetPayload() *models.RestError

func (*SetRoleNotFound) IsClientError

func (o *SetRoleNotFound) IsClientError() bool

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

func (*SetRoleNotFound) IsCode

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

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

func (*SetRoleNotFound) IsRedirect

func (o *SetRoleNotFound) IsRedirect() bool

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

func (*SetRoleNotFound) IsServerError

func (o *SetRoleNotFound) IsServerError() bool

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

func (*SetRoleNotFound) IsSuccess

func (o *SetRoleNotFound) IsSuccess() bool

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

func (*SetRoleNotFound) String

func (o *SetRoleNotFound) String() string

type SetRoleOK

type SetRoleOK struct {
	Payload *models.IdmRole
}

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

A successful response.

func NewSetRoleOK

func NewSetRoleOK() *SetRoleOK

NewSetRoleOK creates a SetRoleOK with default headers values

func (*SetRoleOK) Code added in v4.0.1

func (o *SetRoleOK) Code() int

Code gets the status code for the set role o k response

func (*SetRoleOK) Error

func (o *SetRoleOK) Error() string

func (*SetRoleOK) GetPayload

func (o *SetRoleOK) GetPayload() *models.IdmRole

func (*SetRoleOK) IsClientError

func (o *SetRoleOK) IsClientError() bool

IsClientError returns true when this set role o k response has a 4xx status code

func (*SetRoleOK) IsCode

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

IsCode returns true when this set role o k response a status code equal to that given

func (*SetRoleOK) IsRedirect

func (o *SetRoleOK) IsRedirect() bool

IsRedirect returns true when this set role o k response has a 3xx status code

func (*SetRoleOK) IsServerError

func (o *SetRoleOK) IsServerError() bool

IsServerError returns true when this set role o k response has a 5xx status code

func (*SetRoleOK) IsSuccess

func (o *SetRoleOK) IsSuccess() bool

IsSuccess returns true when this set role o k response has a 2xx status code

func (*SetRoleOK) String

func (o *SetRoleOK) String() string

type SetRoleParams

type SetRoleParams struct {

	/* UUID.

	   Unique identifier of this role
	*/
	UUID string

	// Body.
	Body SetRoleBody

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

SetRoleParams contains all the parameters to send to the API endpoint

for the set role operation.

Typically these are written to a http.Request.

func NewSetRoleParams

func NewSetRoleParams() *SetRoleParams

NewSetRoleParams creates a new SetRoleParams 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 NewSetRoleParamsWithContext

func NewSetRoleParamsWithContext(ctx context.Context) *SetRoleParams

NewSetRoleParamsWithContext creates a new SetRoleParams object with the ability to set a context for a request.

func NewSetRoleParamsWithHTTPClient

func NewSetRoleParamsWithHTTPClient(client *http.Client) *SetRoleParams

NewSetRoleParamsWithHTTPClient creates a new SetRoleParams object with the ability to set a custom HTTPClient for a request.

func NewSetRoleParamsWithTimeout

func NewSetRoleParamsWithTimeout(timeout time.Duration) *SetRoleParams

NewSetRoleParamsWithTimeout creates a new SetRoleParams object with the ability to set a timeout on a request.

func (*SetRoleParams) SetBody

func (o *SetRoleParams) SetBody(body SetRoleBody)

SetBody adds the body to the set role params

func (*SetRoleParams) SetContext

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

SetContext adds the context to the set role params

func (*SetRoleParams) SetDefaults

func (o *SetRoleParams) SetDefaults()

SetDefaults hydrates default values in the set role params (not the query body).

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

func (*SetRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set role params

func (*SetRoleParams) SetTimeout

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

SetTimeout adds the timeout to the set role params

func (*SetRoleParams) SetUUID

func (o *SetRoleParams) SetUUID(uuid string)

SetUUID adds the uuid to the set role params

func (*SetRoleParams) WithBody

func (o *SetRoleParams) WithBody(body SetRoleBody) *SetRoleParams

WithBody adds the body to the set role params

func (*SetRoleParams) WithContext

func (o *SetRoleParams) WithContext(ctx context.Context) *SetRoleParams

WithContext adds the context to the set role params

func (*SetRoleParams) WithDefaults

func (o *SetRoleParams) WithDefaults() *SetRoleParams

WithDefaults hydrates default values in the set role params (not the query body).

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

func (*SetRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set role params

func (*SetRoleParams) WithTimeout

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

WithTimeout adds the timeout to the set role params

func (*SetRoleParams) WithUUID

func (o *SetRoleParams) WithUUID(uuid string) *SetRoleParams

WithUUID adds the uuid to the set role params

func (*SetRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SetRoleReader

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

SetRoleReader is a Reader for the SetRole structure.

func (*SetRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetRoleUnauthorized

type SetRoleUnauthorized struct {
}

SetRoleUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewSetRoleUnauthorized

func NewSetRoleUnauthorized() *SetRoleUnauthorized

NewSetRoleUnauthorized creates a SetRoleUnauthorized with default headers values

func (*SetRoleUnauthorized) Code added in v4.0.1

func (o *SetRoleUnauthorized) Code() int

Code gets the status code for the set role unauthorized response

func (*SetRoleUnauthorized) Error

func (o *SetRoleUnauthorized) Error() string

func (*SetRoleUnauthorized) IsClientError

func (o *SetRoleUnauthorized) IsClientError() bool

IsClientError returns true when this set role unauthorized response has a 4xx status code

func (*SetRoleUnauthorized) IsCode

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

IsCode returns true when this set role unauthorized response a status code equal to that given

func (*SetRoleUnauthorized) IsRedirect

func (o *SetRoleUnauthorized) IsRedirect() bool

IsRedirect returns true when this set role unauthorized response has a 3xx status code

func (*SetRoleUnauthorized) IsServerError

func (o *SetRoleUnauthorized) IsServerError() bool

IsServerError returns true when this set role unauthorized response has a 5xx status code

func (*SetRoleUnauthorized) IsSuccess

func (o *SetRoleUnauthorized) IsSuccess() bool

IsSuccess returns true when this set role unauthorized response has a 2xx status code

func (*SetRoleUnauthorized) String

func (o *SetRoleUnauthorized) String() string

Jump to

Keyboard shortcuts

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