roles

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package roles contains methods related to Roles

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RolesV1

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

RolesV1 represents a custom type struct

func (*RolesV1) ListRoles

func (r *RolesV1) ListRoles() (
	*models.ListRolesResponse, *apiutils.APIError)

ListRoles Returns a list of roles that can be assigned to users, either while inviting users using the

[POST /users](#operation/create-user) API, or by updating the user using the
[PATCH /users/{user_id}](#operation/update-user) API.

func (*RolesV1) ReadRole

func (r *RolesV1) ReadRole(
	roleId string) (
	*models.ReadRoleResponse, *apiutils.APIError)

ReadRole Returns a representation of the specified role.

type RolesV1Client

type RolesV1Client interface {
	// ListRoles Returns a list of roles that can be assigned to users, either while inviting users using the
	//  [POST /users](#operation/create-user) API, or by updating the user using the
	//  [PATCH /users/{user_id}](#operation/update-user) API.
	ListRoles() (
		*models.ListRolesResponse, *apiutils.APIError)

	// ReadRole Returns a representation of the specified role.
	ReadRole(
		roleId string) (
		*models.ReadRoleResponse, *apiutils.APIError)
}

RolesV1Client represents a custom type interface

func NewRolesV1

func NewRolesV1(config config.Config) RolesV1Client

NewRolesV1 returns RolesV1Client

Jump to

Keyboard shortcuts

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