View Source GoogleApi.DriveActivity.V2.Model.Permission (google_api_drive_activity v0.8.0)

The permission setting of an object.

Attributes

  • allowDiscovery (type: boolean(), default: nil) - If true, the item can be discovered (e.g. in the user's "Shared with me" collection) without needing a link to the item.
  • anyone (type: GoogleApi.DriveActivity.V2.Model.Anyone.t, default: nil) - If set, this permission applies to anyone, even logged out users.
  • domain (type: GoogleApi.DriveActivity.V2.Model.Domain.t, default: nil) - The domain to whom this permission applies.
  • group (type: GoogleApi.DriveActivity.V2.Model.Group.t, default: nil) - The group to whom this permission applies.
  • role (type: String.t, default: nil) - Indicates the Google Drive permissions role. The role determines a user's ability to read, write, and comment on items.
  • user (type: GoogleApi.DriveActivity.V2.Model.User.t, default: nil) - The user to whom this permission applies.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.DriveActivity.V2.Model.Permission{
  allowDiscovery: boolean() | nil,
  anyone: GoogleApi.DriveActivity.V2.Model.Anyone.t() | nil,
  domain: GoogleApi.DriveActivity.V2.Model.Domain.t() | nil,
  group: GoogleApi.DriveActivity.V2.Model.Group.t() | nil,
  role: String.t() | nil,
  user: GoogleApi.DriveActivity.V2.Model.User.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.