View Source GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission (google_api_drive_labels v0.2.0)

The permission that applies to a principal (user, group, audience) on a label.

Attributes

  • audience (type: String.t, default: nil) - Audience to grant a role to. The magic value of audiences/default may be used to apply the role to the default audience in the context of the organization that owns the Label.
  • email (type: String.t, default: nil) - Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.
  • group (type: String.t, default: nil) - Group resource name.
  • name (type: String.t, default: nil) - Resource name of this permission.
  • person (type: String.t, default: nil) - Person resource name.
  • role (type: String.t, default: nil) - The role the principal should have.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.DriveLabels.V2.Model.GoogleAppsDriveLabelsV2LabelPermission{
  audience: String.t() | nil,
  email: String.t() | nil,
  group: String.t() | nil,
  name: String.t() | nil,
  person: String.t() | nil,
  role: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.