Class: Google::Apis::DriveV2::About::AdditionalRoleInfo::RoleSet

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RoleSet

Returns a new instance of RoleSet.

[View source]

253
254
255
# File 'lib/google/apis/drive_v2/classes.rb', line 253

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

Instance Attribute Details

#additional_rolesArray<String>

The supported additional roles with the primary role. Corresponds to the JSON property additionalRoles

Returns:

  • (Array<String>)

246
247
248
# File 'lib/google/apis/drive_v2/classes.rb', line 246

def additional_roles
  @additional_roles
end

#primary_roleString

A primary permission role. Corresponds to the JSON property primaryRole

Returns:

  • (String)

251
252
253
# File 'lib/google/apis/drive_v2/classes.rb', line 251

def primary_role
  @primary_role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

258
259
260
261
# File 'lib/google/apis/drive_v2/classes.rb', line 258

def update!(**args)
  @additional_roles = args[:additional_roles] if args.key?(:additional_roles)
  @primary_role = args[:primary_role] if args.key?(:primary_role)
end