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

Constructor Details

#initialize(**args) ⇒ PermissionChange

Returns a new instance of PermissionChange.



1060
1061
1062
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1060

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



1053
1054
1055
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1053

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



1058
1059
1060
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1058

def removed_permissions
  @removed_permissions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1065
1066
1067
1068
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1065

def update!(**args)
  @added_permissions = args[:added_permissions] if args.key?(:added_permissions)
  @removed_permissions = args[:removed_permissions] if args.key?(:removed_permissions)
end