Class: Google::Apis::SheetsV4::Editors

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb

Overview

The editors of a protected range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Editors

Returns a new instance of Editors.


3412
3413
3414
# File 'generated/google/apis/sheets_v4/classes.rb', line 3412

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#domain_users_can_editBoolean Also known as: domain_users_can_edit?

True if anyone in the document's domain has edit access to the protected range. Domain protection is only supported on documents within a domain. Corresponds to the JSON property domainUsersCanEdit

Returns:

  • (Boolean)

3409
3410
3411
# File 'generated/google/apis/sheets_v4/classes.rb', line 3409

def domain_users_can_edit
  @domain_users_can_edit
end

#groupsArray<String>

The email addresses of groups with edit access to the protected range. Corresponds to the JSON property groups

Returns:

  • (Array<String>)

3403
3404
3405
# File 'generated/google/apis/sheets_v4/classes.rb', line 3403

def groups
  @groups
end

#usersArray<String>

The email addresses of users with edit access to the protected range. Corresponds to the JSON property users

Returns:

  • (Array<String>)

3398
3399
3400
# File 'generated/google/apis/sheets_v4/classes.rb', line 3398

def users
  @users
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3417
3418
3419
3420
3421
# File 'generated/google/apis/sheets_v4/classes.rb', line 3417

def update!(**args)
  @users = args[:users] if args.key?(:users)
  @groups = args[:groups] if args.key?(:groups)
  @domain_users_can_edit = args[:domain_users_can_edit] if args.key?(:domain_users_can_edit)
end