Class: Google::Apis::DriveactivityV2::PermissionChange

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

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



937
938
939
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 937

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#added_permissionsArray<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
  @added_permissions
end

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