role_service

package
v3.0.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 11 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) Error

func (o *DeleteRoleForbidden) Error() string

func (*DeleteRoleForbidden) GetPayload

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

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

func (*DeleteRoleInternalServerError) GetPayload

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

func (o *DeleteRoleNotFound) Error() string

func (*DeleteRoleNotFound) GetPayload

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

type DeleteRoleOK

type DeleteRoleOK struct {
	Payload *models.IdmRole
}
DeleteRoleOK describes a response with status code 200, with default header values.

DeleteRoleOK delete role o k

func NewDeleteRoleOK

func NewDeleteRoleOK() *DeleteRoleOK

NewDeleteRoleOK creates a DeleteRoleOK with default headers values

func (*DeleteRoleOK) Error

func (o *DeleteRoleOK) Error() string

func (*DeleteRoleOK) GetPayload

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

type DeleteRoleParams

type DeleteRoleParams struct {

	// UUID.
	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) SetContext

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

SetContext adds the context to the delete role params

func (*DeleteRoleParams) SetDefaults

func (o *DeleteRoleParams) SetDefaults()

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

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

func (*DeleteRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete role params

func (*DeleteRoleParams) 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) WithContext

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

WithContext adds the context to the delete role params

func (*DeleteRoleParams) WithDefaults

func (o *DeleteRoleParams) WithDefaults() *DeleteRoleParams

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

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

func (*DeleteRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete role params

func (*DeleteRoleParams) 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) 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) Error

func (o *DeleteRoleUnauthorized) Error() 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) Error

func (o *GetRoleForbidden) Error() string

func (*GetRoleForbidden) GetPayload

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

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

func (*GetRoleInternalServerError) GetPayload

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

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

func (o *GetRoleNotFound) Error() string

func (*GetRoleNotFound) GetPayload

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

type GetRoleOK

type GetRoleOK struct {
	Payload *models.IdmRole
}
GetRoleOK describes a response with status code 200, with default header values.

GetRoleOK get role o k

func NewGetRoleOK

func NewGetRoleOK() *GetRoleOK

NewGetRoleOK creates a GetRoleOK with default headers values

func (*GetRoleOK) Error

func (o *GetRoleOK) Error() string

func (*GetRoleOK) GetPayload

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

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.

	   Format: boolean
	*/
	ForceOverride *bool

	/* GroupRole.

	   Whether this role is attached to a Group object.

	   Format: boolean
	*/
	GroupRole *bool

	/* IsTeam.

	   Whether this role represents a user team or not.

	   Format: boolean
	*/
	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.

	   Format: boolean
	*/
	PoliciesContextEditable *bool

	/* UserRole.

	   Whether this role is attached to a User object.

	   Format: boolean
	*/
	UserRole *bool

	// UUID.
	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) Error

func (o *GetRoleUnauthorized) Error() 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) Error

func (o *SearchRolesForbidden) Error() string

func (*SearchRolesForbidden) GetPayload

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

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

func (*SearchRolesInternalServerError) GetPayload

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

func (o *SearchRolesNotFound) Error() string

func (*SearchRolesNotFound) GetPayload

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

type SearchRolesOK

type SearchRolesOK struct {
	Payload *models.RestRolesCollection
}
SearchRolesOK describes a response with status code 200, with default header values.

SearchRolesOK search roles o k

func NewSearchRolesOK

func NewSearchRolesOK() *SearchRolesOK

NewSearchRolesOK creates a SearchRolesOK with default headers values

func (*SearchRolesOK) Error

func (o *SearchRolesOK) Error() string

func (*SearchRolesOK) GetPayload

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

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

func (o *SearchRolesUnauthorized) Error() string

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

func (o *SetRoleForbidden) Error() string

func (*SetRoleForbidden) GetPayload

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

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

func (*SetRoleInternalServerError) GetPayload

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

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

func (o *SetRoleNotFound) Error() string

func (*SetRoleNotFound) GetPayload

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

type SetRoleOK

type SetRoleOK struct {
	Payload *models.IdmRole
}
SetRoleOK describes a response with status code 200, with default header values.

SetRoleOK set role o k

func NewSetRoleOK

func NewSetRoleOK() *SetRoleOK

NewSetRoleOK creates a SetRoleOK with default headers values

func (*SetRoleOK) Error

func (o *SetRoleOK) Error() string

func (*SetRoleOK) GetPayload

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

type SetRoleParams

type SetRoleParams struct {

	// UUID.
	UUID string

	// Body.
	Body *models.IdmRole

	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 *models.IdmRole)

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 *models.IdmRole) *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) Error

func (o *SetRoleUnauthorized) Error() string

Jump to

Keyboard shortcuts

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