class Google::Apis::DriveV2::Permission::PermissionDetail

Attributes

additional_roles[RW]

Additional roles for this user. Only commenter is currently possible, though more may be supported in the future. Corresponds to the JSON property `additionalRoles` @return [Array<String>]

inherited[RW]

Whether this permission is inherited. This field is always populated. This is an output-only field. Corresponds to the JSON property `inherited` @return [Boolean]

inherited?[RW]

Whether this permission is inherited. This field is always populated. This is an output-only field. Corresponds to the JSON property `inherited` @return [Boolean]

inherited_from[RW]

The ID of the item from which this permission is inherited. This is an output- only field. Corresponds to the JSON property `inheritedFrom` @return [String]

permission_type[RW]

The permission type for this user. While new values may be added in future, the following are currently possible:

  • file

  • member

Corresponds to the JSON property `permissionType` @return [String]

role[RW]

The primary role for this user. While new values may be added in the future, the following are currently possible:

  • organizer

  • fileOrganizer

  • writer

  • reader

Corresponds to the JSON property `role` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/drive_v2/classes.rb, line 3319
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/drive_v2/classes.rb, line 3324
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)
  @permission_type = args[:permission_type] if args.key?(:permission_type)
  @role = args[:role] if args.key?(:role)
end