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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TeamDrivePermissionDetail

Returns a new instance of TeamDrivePermissionDetail.



3820
3821
3822
# File 'lib/google/apis/drive_v2/classes.rb', line 3820

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

Instance Attribute Details

#additional_rolesArray<String>

Output only. Deprecated: Use permissionDetails/additionalRoles instead. Corresponds to the JSON property additionalRoles

Returns:

  • (Array<String>)


3797
3798
3799
# File 'lib/google/apis/drive_v2/classes.rb', line 3797

def additional_roles
  @additional_roles
end

#inheritedBoolean Also known as: inherited?

Output only. Deprecated: Use permissionDetails/inherited instead. Corresponds to the JSON property inherited

Returns:

  • (Boolean)


3802
3803
3804
# File 'lib/google/apis/drive_v2/classes.rb', line 3802

def inherited
  @inherited
end

#inherited_fromString

Output only. Deprecated: Use permissionDetails/inheritedFrom instead. Corresponds to the JSON property inheritedFrom

Returns:

  • (String)


3808
3809
3810
# File 'lib/google/apis/drive_v2/classes.rb', line 3808

def inherited_from
  @inherited_from
end

#roleString

Output only. Deprecated: Use permissionDetails/role instead. Corresponds to the JSON property role

Returns:

  • (String)


3813
3814
3815
# File 'lib/google/apis/drive_v2/classes.rb', line 3813

def role
  @role
end

#team_drive_permission_typeString

Output only. Deprecated: Use permissionDetails/permissionType instead. Corresponds to the JSON property teamDrivePermissionType

Returns:

  • (String)


3818
3819
3820
# File 'lib/google/apis/drive_v2/classes.rb', line 3818

def team_drive_permission_type
  @team_drive_permission_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3825
3826
3827
3828
3829
3830
3831
# File 'lib/google/apis/drive_v2/classes.rb', line 3825

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