Class: Google::Apis::FirebasedataconnectV1::Impersonation

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

Instance Method Summary collapse

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_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>)


705
706
707
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 705

def auth_claims
  @auth_claims
end

#include_debug_detailsBoolean Also known as: include_debug_details?

Optional. If set, include debug details in GraphQL error extensions. Corresponds to the JSON property includeDebugDetails

Returns:

  • (Boolean)


710
711
712
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 710

def include_debug_details
  @include_debug_details
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)


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