Class: Google::Apis::FirebasedataconnectV1::Impersonation
- Inherits:
-
Object
- Object
- Google::Apis::FirebasedataconnectV1::Impersonation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebasedataconnect_v1/classes.rb,
lib/google/apis/firebasedataconnect_v1/representations.rb,
lib/google/apis/firebasedataconnect_v1/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.
-
#include_debug_details ⇒ Boolean
(also: #include_debug_details?)
Optional.
-
#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.
720 721 722 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 720 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
705 706 707 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 705 def auth_claims @auth_claims end |
#include_debug_details ⇒ Boolean Also known as: include_debug_details?
Optional. If set, include debug details in GraphQL error extensions.
Corresponds to the JSON property includeDebugDetails
710 711 712 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 710 def include_debug_details @include_debug_details 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
717 718 719 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 717 def unauthenticated @unauthenticated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
725 726 727 728 729 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 725 def update!(**args) @auth_claims = args[:auth_claims] if args.key?(:auth_claims) @include_debug_details = args[:include_debug_details] if args.key?(:include_debug_details) @unauthenticated = args[:unauthenticated] if args.key?(:unauthenticated) end |