class Google::Apis::DriveactivityV2::Permission

The permission setting of an object.

Attributes

allow_discovery[RW]

If true, the item can be discovered (e.g. in the user's “Shared with me” collection) without needing a link to the item. Corresponds to the JSON property `allowDiscovery` @return [Boolean]

allow_discovery?[RW]

If true, the item can be discovered (e.g. in the user's “Shared with me” collection) without needing a link to the item. Corresponds to the JSON property `allowDiscovery` @return [Boolean]

anyone[RW]

Represents any user (including a logged out user). Corresponds to the JSON property `anyone` @return [Google::Apis::DriveactivityV2::Anyone]

domain[RW]

Information about a domain. Corresponds to the JSON property `domain` @return [Google::Apis::DriveactivityV2::Domain]

group[RW]

Information about a group. Corresponds to the JSON property `group` @return [Google::Apis::DriveactivityV2::Group]

role[RW]

Indicates the [Google Drive permissions role](developers.google.com/ drive/web/manage-sharing#roles). The role determines a user's ability to read, write, and comment on items. Corresponds to the JSON property `role` @return [String]

user[RW]

Information about an end user. Corresponds to the JSON property `user` @return [Google::Apis::DriveactivityV2::User]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/driveactivity_v2/classes.rb, line 1037
def update!(**args)
  @allow_discovery = args[:allow_discovery] if args.key?(:allow_discovery)
  @anyone = args[:anyone] if args.key?(:anyone)
  @domain = args[:domain] if args.key?(:domain)
  @group = args[:group] if args.key?(:group)
  @role = args[:role] if args.key?(:role)
  @user = args[:user] if args.key?(:user)
end