Class: Google::Apis::FirebasedataconnectV1beta::Impersonation
- Inherits:
-
Object
- Object
- Google::Apis::FirebasedataconnectV1beta::Impersonation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebasedataconnect_v1beta/classes.rb,
lib/google/apis/firebasedataconnect_v1beta/representations.rb,
lib/google/apis/firebasedataconnect_v1beta/representations.rb
Overview
Impersonation configures the Firebase Auth context to impersonate.
Instance Attribute Summary collapse
-
#auth_claims ⇒ Hash<String,Object>
Evaluate the auth policy with a customized JWT auth token.
-
#unauthenticated ⇒ Boolean
(also: #unauthenticated?)
Evaluate the auth policy as an unauthenticated request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Impersonation
constructor
A new instance of Impersonation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Impersonation
Returns a new instance of Impersonation.
491 492 493 |
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 491 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auth_claims ⇒ Hash<String,Object>
Evaluate the auth policy with a customized JWT auth token. Should follow the
Firebase Auth token format. https://firebase.google.com/docs/rules/rules-and-
auth For example: a verified user may have auth_claims of "sub": , "
email_verified": true
Corresponds to the JSON property authClaims
482 483 484 |
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 482 def auth_claims @auth_claims end |
#unauthenticated ⇒ Boolean Also known as: unauthenticated?
Evaluate the auth policy as an unauthenticated request. Can only be set to
true.
Corresponds to the JSON property unauthenticated
488 489 490 |
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 488 def unauthenticated @unauthenticated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
496 497 498 499 |
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 496 def update!(**args) @auth_claims = args[:auth_claims] if args.key?(:auth_claims) @unauthenticated = args[:unauthenticated] if args.key?(:unauthenticated) end |