Class: Google::Apis::DriveactivityV2::PermissionChange
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::PermissionChange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/driveactivity_v2/classes.rb,
generated/google/apis/driveactivity_v2/representations.rb,
generated/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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PermissionChange
Returns a new instance of PermissionChange
937 938 939 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 937 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
930 931 932 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 930 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
935 936 937 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 935 def @removed_permissions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
942 943 944 945 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 942 def update!(**args) @added_permissions = args[:added_permissions] if args.key?(:added_permissions) @removed_permissions = args[:removed_permissions] if args.key?(:removed_permissions) end |