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

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

Defined Under Namespace

Classes: RoleSet

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdditionalRoleInfo

Returns a new instance of AdditionalRoleInfo.



229
230
231
# File 'lib/google/apis/drive_v2/classes.rb', line 229

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

Instance Attribute Details

#role_setsArray<Google::Apis::DriveV2::About::AdditionalRoleInfo::RoleSet>

The supported additional roles per primary role. Corresponds to the JSON property roleSets



222
223
224
# File 'lib/google/apis/drive_v2/classes.rb', line 222

def role_sets
  @role_sets
end

#typeString

The content type that this additional role info applies to. Corresponds to the JSON property type

Returns:

  • (String)


227
228
229
# File 'lib/google/apis/drive_v2/classes.rb', line 227

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



234
235
236
237
# File 'lib/google/apis/drive_v2/classes.rb', line 234

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