google_api_sheets v0.2.0 GoogleApi.Sheets.V4.Model.ProtectedRange View Source

A protected range.

Attributes

  • description (String.t): The description of this protected range. Defaults to: null.
  • editors (Editors): The users and groups with edit access to the protected range. This field is only visible to users with edit access to the protected range and the document. Editors are not supported with warning_only protection. Defaults to: null.
  • namedRangeId (String.t): The named range this protected range is backed by, if any. When writing, only one of range or named_range_id may be set. Defaults to: null.
  • protectedRangeId (integer()): The ID of the protected range. This field is read-only. Defaults to: null.
  • range (GridRange): The range that is being protected. The range may be fully unbounded, in which case this is considered a protected sheet. When writing, only one of range or named_range_id may be set. Defaults to: null.
  • requestingUserCanEdit (boolean()): True if the user who requested this protected range can edit the protected area. This field is read-only. Defaults to: null.
  • unprotectedRanges ([GridRange]): The list of unprotected ranges within a protected sheet. Unprotected ranges are only supported on protected sheets. Defaults to: null.
  • warningOnly (boolean()): True if this protected range will show a warning when editing. Warning-based protection means that every user can edit data in the protected range, except editing will prompt a warning asking the user to confirm the edit. When writing: if this field is true, then editors is ignored. Additionally, if this field is changed from true to false and the `editors` field is not set (nor included in the field mask), then the editors will be set to all the editors in the document. Defaults to: null.

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.Sheets.V4.Model.ProtectedRange{
  description: any(),
  editors: GoogleApi.Sheets.V4.Model.Editors.t(),
  namedRangeId: any(),
  protectedRangeId: any(),
  range: GoogleApi.Sheets.V4.Model.GridRange.t(),
  requestingUserCanEdit: any(),
  unprotectedRanges: [GoogleApi.Sheets.V4.Model.GridRange.t()],
  warningOnly: any()
}

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.