role_service

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for role service API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new role service API client.

func (*Client) DeleteRole

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

DeleteRole deletes a role by ID

func (*Client) GetRole

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

GetRole gets a role by ID

func (*Client) SearchRoles

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

SearchRoles searches roles

func (*Client) SetRole

func (a *Client) SetRole(params *SetRoleParams) (*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 DeleteRoleOK

type DeleteRoleOK struct {
	Payload *models.IdmRole
}

DeleteRoleOK handles this case 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

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 values initialized.

func NewDeleteRoleParamsWithContext

func NewDeleteRoleParamsWithContext(ctx context.Context) *DeleteRoleParams

NewDeleteRoleParamsWithContext creates a new DeleteRoleParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 GetRoleOK

type GetRoleOK struct {
	Payload *models.IdmRole
}

GetRoleOK handles this case 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

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.

	*/
	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*/
	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 values initialized.

func NewGetRoleParamsWithContext

func NewGetRoleParamsWithContext(ctx context.Context) *GetRoleParams

NewGetRoleParamsWithContext creates a new GetRoleParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 SearchRolesOK

type SearchRolesOK struct {
	Payload *models.RestRolesCollection
}

SearchRolesOK handles this case 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

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 values initialized.

func NewSearchRolesParamsWithContext

func NewSearchRolesParamsWithContext(ctx context.Context) *SearchRolesParams

NewSearchRolesParamsWithContext creates a new SearchRolesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 SetRoleOK

type SetRoleOK struct {
	Payload *models.IdmRole
}

SetRoleOK handles this case 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

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 values initialized.

func NewSetRoleParamsWithContext

func NewSetRoleParamsWithContext(ctx context.Context) *SetRoleParams

NewSetRoleParamsWithContext creates a new SetRoleParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.

Jump to

Keyboard shortcuts

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