Class: Google::Apis::DriveV2::Permission::TeamDrivePermissionDetail

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TeamDrivePermissionDetail

Returns a new instance of TeamDrivePermissionDetail.



3305
3306
3307
# File 'generated/google/apis/drive_v2/classes.rb', line 3305

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

Instance Attribute Details

#additional_rolesArray<String>

Deprecated - use permissionDetails/additionalRoles instead. Corresponds to the JSON property additionalRoles

Returns:

  • (Array<String>)


3282
3283
3284
# File 'generated/google/apis/drive_v2/classes.rb', line 3282

def additional_roles
  @additional_roles
end

#inheritedBoolean Also known as: inherited?

Deprecated - use permissionDetails/inherited instead. Corresponds to the JSON property inherited

Returns:

  • (Boolean)


3287
3288
3289
# File 'generated/google/apis/drive_v2/classes.rb', line 3287

def inherited
  @inherited
end

#inherited_fromString

Deprecated - use permissionDetails/inheritedFrom instead. Corresponds to the JSON property inheritedFrom

Returns:

  • (String)


3293
3294
3295
# File 'generated/google/apis/drive_v2/classes.rb', line 3293

def inherited_from
  @inherited_from
end

#roleString

Deprecated - use permissionDetails/role instead. Corresponds to the JSON property role

Returns:

  • (String)


3298
3299
3300
# File 'generated/google/apis/drive_v2/classes.rb', line 3298

def role
  @role
end

#team_drive_permission_typeString

Deprecated - use permissionDetails/permissionType instead. Corresponds to the JSON property teamDrivePermissionType

Returns:

  • (String)


3303
3304
3305
# File 'generated/google/apis/drive_v2/classes.rb', line 3303

def team_drive_permission_type
  @team_drive_permission_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3310
3311
3312
3313
3314
3315
3316
# File 'generated/google/apis/drive_v2/classes.rb', line 3310

def update!(**args)
  @additional_roles = args[:additional_roles] if args.key?(:additional_roles)
  @inherited = args[:inherited] if args.key?(:inherited)
  @inherited_from = args[:inherited_from] if args.key?(:inherited_from)
  @role = args[:role] if args.key?(:role)
  @team_drive_permission_type = args[:team_drive_permission_type] if args.key?(:team_drive_permission_type)
end