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

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

Overview

The editors of a protected range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Editors

Returns a new instance of Editors.



5430
5431
5432
# File 'lib/google/apis/sheets_v4/classes.rb', line 5430

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)


5417
5418
5419
# File 'lib/google/apis/sheets_v4/classes.rb', line 5417

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>)


5423
5424
5425
# File 'lib/google/apis/sheets_v4/classes.rb', line 5423

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>)


5428
5429
5430
# File 'lib/google/apis/sheets_v4/classes.rb', line 5428

def users
  @users
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5435
5436
5437
5438
5439
# File 'lib/google/apis/sheets_v4/classes.rb', line 5435

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