Class: Google::Apis::WalletobjectsV1::Permission

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Permission

Returns a new instance of Permission.



6502
6503
6504
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6502

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

Instance Attribute Details

#email_addressString

The email address of the user, group, or service account to which this permission refers to. Corresponds to the JSON property emailAddress

Returns:

  • (String)


6495
6496
6497
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6495

def email_address
  @email_address
end

#roleString

The role granted by this permission. Corresponds to the JSON property role

Returns:

  • (String)


6500
6501
6502
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6500

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6507
6508
6509
6510
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6507

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