Class: Google::Apis::IamV1::PermissionDelta
- Inherits:
-
Object
- Object
- Google::Apis::IamV1::PermissionDelta
- 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
-
#added_permissions ⇒ Array<String>
Added permissions.
-
#removed_permissions ⇒ Array<String>
Removed permissions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PermissionDelta
constructor
A new instance of PermissionDelta.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_permissions ⇒ Array<String>
Added permissions.
Corresponds to the JSON property addedPermissions
829 830 831 |
# File 'generated/google/apis/iam_v1/classes.rb', line 829 def @added_permissions end |
#removed_permissions ⇒ Array<String>
Removed permissions.
Corresponds to the JSON property removedPermissions
834 835 836 |
# File 'generated/google/apis/iam_v1/classes.rb', line 834 def @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 |