Class: Google::Apis::IamV2::GoogleIamAdminV1AuditDataPermissionDelta

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/iam_v2/classes.rb,
lib/google/apis/iam_v2/representations.rb,
lib/google/apis/iam_v2/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) ⇒ GoogleIamAdminV1AuditDataPermissionDelta

Returns a new instance of GoogleIamAdminV1AuditDataPermissionDelta.



147
148
149
# File 'lib/google/apis/iam_v2/classes.rb', line 147

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

Instance Attribute Details

#added_permissionsArray<String>

Added permissions. Corresponds to the JSON property addedPermissions

Returns:

  • (Array<String>)


140
141
142
# File 'lib/google/apis/iam_v2/classes.rb', line 140

def added_permissions
  @added_permissions
end

#removed_permissionsArray<String>

Removed permissions. Corresponds to the JSON property removedPermissions

Returns:

  • (Array<String>)


145
146
147
# File 'lib/google/apis/iam_v2/classes.rb', line 145

def removed_permissions
  @removed_permissions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



152
153
154
155
# File 'lib/google/apis/iam_v2/classes.rb', line 152

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