A role determines what actions allowed to be performed by users on a project.

Hierarchy (View Summary)

Constructors

  • Parameters

    • data: any

      Raw role data received from the server. For more information, see Open Cloud Projects API.

    • projectId: string

      Owner project ID.

    • httpClient: IHttpClient

      HTTP client instance used to send requests to the REST API server.

    Returns Role

Properties

headers: HeadersInit

Endpoint-specific HTTP headers for the GET, POST, PUT and DELETE requests. You can add custom headers at any time.

path: string

Endpoint API path relative to the REST API server URL.

Accessors

  • get data(): any
  • Raw role data received from the server. For more information, see Open Cloud Projects API.

    Returns any

  • get description(): string
  • Role description.

    Returns string

  • get name(): string
  • Role name.

    Returns string

Methods

  • Reloads role data from the server.

    Returns Promise<Role>

  • Deletes a role from the project.

    Returns Promise<any>

    Returns the raw data of a deleted role. For more information, see Open Cloud Projects API.

  • Saves role properties changes to the server. Call this method to update role data on the server after any property changes.

    Returns Promise<Role>

  • Updates role data on the server.

    Parameters

    Returns Promise<Role>