Class: Google::Apis::AppsactivityV1::PermissionChange
- Inherits:
-
Object
- Object
- Google::Apis::AppsactivityV1::PermissionChange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/appsactivity_v1/classes.rb,
generated/google/apis/appsactivity_v1/representations.rb,
generated/google/apis/appsactivity_v1/representations.rb
Overview
Contains information about a Drive object's permissions that changed as a result of a permissionChange type event.
Instance Attribute Summary collapse
-
#added_permissions ⇒ Array<Google::Apis::AppsactivityV1::Permission>
Lists all Permission objects added.
-
#removed_permissions ⇒ Array<Google::Apis::AppsactivityV1::Permission>
Lists all Permission objects removed.
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.
278 279 280 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 278 def initialize(**args) update!(**args) end |
Instance Attribute Details
#added_permissions ⇒ Array<Google::Apis::AppsactivityV1::Permission>
Lists all Permission objects added.
Corresponds to the JSON property addedPermissions
271 272 273 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 271 def @added_permissions end |
#removed_permissions ⇒ Array<Google::Apis::AppsactivityV1::Permission>
Lists all Permission objects removed.
Corresponds to the JSON property removedPermissions
276 277 278 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 276 def @removed_permissions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
283 284 285 286 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 283 def update!(**args) @added_permissions = args[:added_permissions] if args.key?(:added_permissions) @removed_permissions = args[:removed_permissions] if args.key?(:removed_permissions) end |