Class: Google::Apis::DriveactivityV2::Permission
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::Permission
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/driveactivity_v2/classes.rb,
lib/google/apis/driveactivity_v2/representations.rb,
lib/google/apis/driveactivity_v2/representations.rb
Overview
The permission setting of an object.
Instance Attribute Summary collapse
-
#allow_discovery ⇒ Boolean
(also: #allow_discovery?)
If true, the item can be discovered (e.g. in the user's "Shared with me" collection) without needing a link to the item.
-
#anyone ⇒ Google::Apis::DriveactivityV2::Anyone
Represents any user (including a logged out user).
-
#domain ⇒ Google::Apis::DriveactivityV2::Domain
Information about a domain.
-
#group ⇒ Google::Apis::DriveactivityV2::Group
Information about a group.
-
#role ⇒ String
Indicates the Google Drive permissions role.
-
#user ⇒ Google::Apis::DriveactivityV2::User
Information about an end user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Permission
constructor
A new instance of Permission.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Permission
Returns a new instance of Permission.
1235 1236 1237 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1235 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_discovery ⇒ Boolean Also known as: allow_discovery?
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
1205 1206 1207 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1205 def allow_discovery @allow_discovery end |
#anyone ⇒ Google::Apis::DriveactivityV2::Anyone
Represents any user (including a logged out user).
Corresponds to the JSON property anyone
1211 1212 1213 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1211 def anyone @anyone end |
#domain ⇒ Google::Apis::DriveactivityV2::Domain
Information about a domain.
Corresponds to the JSON property domain
1216 1217 1218 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1216 def domain @domain end |
#group ⇒ Google::Apis::DriveactivityV2::Group
Information about a group.
Corresponds to the JSON property group
1221 1222 1223 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1221 def group @group end |
#role ⇒ String
Indicates the Google Drive permissions role. The role determines a user's ability to read,
write, and comment on items.
Corresponds to the JSON property role
1228 1229 1230 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1228 def role @role end |
#user ⇒ Google::Apis::DriveactivityV2::User
Information about an end user.
Corresponds to the JSON property user
1233 1234 1235 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1233 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1240 1241 1242 1243 1244 1245 1246 1247 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1240 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 |