Class: Google::Apis::IamV1::PermissionDelta

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/iam_v1/classes.rb,
generated/google/apis/iam_v1/representations.rb,
generated/google/apis/iam_v1/representations.rb

Overview

A PermissionDelta message to record the added_permissions and removed_permissions inside a role.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PermissionDelta

Returns a new instance of PermissionDelta.



836
837
838
# File 'generated/google/apis/iam_v1/classes.rb', line 836

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

Instance Attribute Details

#added_permissionsArray<String>

Added permissions. Corresponds to the JSON property addedPermissions

Returns:

  • (Array<String>)


829
830
831
# File 'generated/google/apis/iam_v1/classes.rb', line 829

def added_permissions
  @added_permissions
end

#removed_permissionsArray<String>

Removed permissions. Corresponds to the JSON property removedPermissions

Returns:

  • (Array<String>)


834
835
836
# File 'generated/google/apis/iam_v1/classes.rb', line 834

def removed_permissions
  @removed_permissions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



841
842
843
844
# File 'generated/google/apis/iam_v1/classes.rb', line 841

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