Class: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ExchangeCustomTokenRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebaseappcheck_v1/classes.rb,
lib/google/apis/firebaseappcheck_v1/representations.rb,
lib/google/apis/firebaseappcheck_v1/representations.rb

Overview

Request message for the ExchangeCustomToken method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseAppcheckV1ExchangeCustomTokenRequest

Returns a new instance of GoogleFirebaseAppcheckV1ExchangeCustomTokenRequest.



498
499
500
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 498

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

Instance Attribute Details

#custom_tokenString

Required. A custom token signed using your project's Admin SDK service account credentials. Corresponds to the JSON property customToken

Returns:

  • (String)


487
488
489
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 487

def custom_token
  @custom_token
end

#limited_useBoolean Also known as: limited_use?

Specifies whether this attestation is for use in a limited use (true) or * session based* (false) context. To enable this attestation to be used with the replay protection feature, set this to true. The default value is false. Corresponds to the JSON property limitedUse

Returns:

  • (Boolean)


495
496
497
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 495

def limited_use
  @limited_use
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



503
504
505
506
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 503

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