Class: Google::Apis::WalletobjectsV1::Permission
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::Permission
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb
Instance Attribute Summary collapse
-
#email_address ⇒ String
The email address of the user, group, or service account to which this permission refers to.
-
#role ⇒ String
The role granted by this permission.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Permission
constructor
A new instance of Permission.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Permission
Returns a new instance of Permission.
6547 6548 6549 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6547 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email_address ⇒ String
The email address of the user, group, or service account to which this
permission refers to.
Corresponds to the JSON property emailAddress
6540 6541 6542 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6540 def email_address @email_address end |
#role ⇒ String
The role granted by this permission.
Corresponds to the JSON property role
6545 6546 6547 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6545 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6552 6553 6554 6555 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6552 def update!(**args) @email_address = args[:email_address] if args.key?(:email_address) @role = args[:role] if args.key?(:role) end |