class Google::Apis::DriveactivityV2::Permission
The permission setting of an object.
Attributes
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]
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]
Represents any user (including a logged out user). Corresponds to the JSON property `anyone` @return [Google::Apis::DriveactivityV2::Anyone]
Information about a domain. Corresponds to the JSON property `domain` @return [Google::Apis::DriveactivityV2::Domain]
Information about a group. Corresponds to the JSON property `group` @return [Google::Apis::DriveactivityV2::Group]
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]
Information about an end user. Corresponds to the JSON property `user` @return [Google::Apis::DriveactivityV2::User]
Public Class Methods
# File lib/google/apis/driveactivity_v2/classes.rb, line 1032 def initialize(**args) update!(**args) end
Public Instance Methods
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