Class: Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TeamDrivePermissionDetail

Returns a new instance of TeamDrivePermissionDetail.



3057
3058
3059
# File 'lib/google/apis/drive_v3/classes.rb', line 3057

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

Instance Attribute Details

#inheritedBoolean Also known as: inherited?

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

Returns:

  • (Boolean)


3039
3040
3041
# File 'lib/google/apis/drive_v3/classes.rb', line 3039

def inherited
  @inherited
end

#inherited_fromString

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

Returns:

  • (String)


3045
3046
3047
# File 'lib/google/apis/drive_v3/classes.rb', line 3045

def inherited_from
  @inherited_from
end

#roleString

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

Returns:

  • (String)


3050
3051
3052
# File 'lib/google/apis/drive_v3/classes.rb', line 3050

def role
  @role
end

#team_drive_permission_typeString

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

Returns:

  • (String)


3055
3056
3057
# File 'lib/google/apis/drive_v3/classes.rb', line 3055

def team_drive_permission_type
  @team_drive_permission_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3062
3063
3064
3065
3066
3067
# File 'lib/google/apis/drive_v3/classes.rb', line 3062

def update!(**args)
  @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