Class: Google::Apis::DriveactivityV2::PermissionChange
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::PermissionChange
- 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
A change of the permission setting on an item.
Instance Attribute Summary collapse
-
#added_permissions ⇒ Array<Google::Apis::DriveactivityV2::Permission>
The set of permissions added by this change.
-
#removed_permissions ⇒ Array<Google::Apis::DriveactivityV2::Permission>
The set of permissions removed by this change.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PermissionChange
constructor
A new instance of PermissionChange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PermissionChange
Returns a new instance of PermissionChange.
1264 1265 1266 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1264 def initialize(**args) update!(**args) end |
Instance Attribute Details
#added_permissions ⇒ Array<Google::Apis::DriveactivityV2::Permission>
The set of permissions added by this change.
Corresponds to the JSON property addedPermissions
1257 1258 1259 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1257 def @added_permissions end |
#removed_permissions ⇒ Array<Google::Apis::DriveactivityV2::Permission>
The set of permissions removed by this change.
Corresponds to the JSON property removedPermissions
1262 1263 1264 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1262 def @removed_permissions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1269 1270 1271 1272 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1269 def update!(**args) @added_permissions = args[:added_permissions] if args.key?(:added_permissions) @removed_permissions = args[:removed_permissions] if args.key?(:removed_permissions) end |