google_api_apps_activity v0.7.0 GoogleApi.AppsActivity.V1.Model.Permission View Source

Contains information about the permissions and type of access allowed with regards to a Google Drive object. This is a subset of the fields contained in a corresponding Drive Permissions object.

Attributes

  • name (type: String.t, default: nil) - The name of the user or group the permission applies to.
  • permissionId (type: String.t, default: nil) - The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource.
  • role (type: String.t, default: nil) - Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.
  • type (type: String.t, default: nil) - Indicates how widely permissions are granted.
  • user (type: GoogleApi.AppsActivity.V1.Model.User.t, default: nil) - The user's information if the type is USER.
  • withLink (type: boolean(), default: nil) - Whether the permission requires a link to the file.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.AppsActivity.V1.Model.Permission{
  name: String.t(),
  permissionId: String.t(),
  role: String.t(),
  type: String.t(),
  user: GoogleApi.AppsActivity.V1.Model.User.t(),
  withLink: boolean()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.