Class: Google::Apis::AppsactivityV1::PermissionChange

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_permissionsArray<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
  @added_permissions
end

#removed_permissionsArray<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
  @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