Class: Google::Apis::FirebasedataconnectV1beta::Impersonation

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

Instance Method Summary collapse

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_claimsHash<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

Returns:

  • (Hash<String,Object>)


482
483
484
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 482

def auth_claims
  @auth_claims
end

#unauthenticatedBoolean Also known as: unauthenticated?

Evaluate the auth policy as an unauthenticated request. Can only be set to true. Corresponds to the JSON property unauthenticated

Returns:

  • (Boolean)


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