View Source GoogleApi.Drive.V3.Model.ContentRestriction (google_api_drive v0.25.0)

A restriction for accessing the content of the file.

Attributes

  • readOnly (type: boolean(), default: nil) - Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
  • reason (type: String.t, default: nil) - Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
  • restrictingUser (type: GoogleApi.Drive.V3.Model.User.t, default: nil) - The user who set the content restriction. Only populated if readOnly is true.
  • restrictionTime (type: DateTime.t, default: nil) - The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
  • type (type: String.t, default: nil) - The type of the content restriction. Currently the only possible value is globalContentRestriction.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Drive.V3.Model.ContentRestriction{
  readOnly: boolean() | nil,
  reason: String.t() | nil,
  restrictingUser: GoogleApi.Drive.V3.Model.User.t() | nil,
  restrictionTime: DateTime.t() | nil,
  type: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.