Class: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1GeneratePlayIntegrityChallengeResponse

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

Response message for the GeneratePlayIntegrityChallenge method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseAppcheckV1GeneratePlayIntegrityChallengeResponse

Returns a new instance of GoogleFirebaseAppcheckV1GeneratePlayIntegrityChallengeResponse.



802
803
804
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 802

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

Instance Attribute Details

#challengeString

A one-time use challenge for the client to pass to the Play Integrity API. Corresponds to the JSON property challenge

Returns:

  • (String)


793
794
795
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 793

def challenge
  @challenge
end

#ttlString

The duration from the time this challenge is minted until its expiration. This field is intended to ease client-side token management, since the client may have clock skew, but is still able to accurately measure a duration. Corresponds to the JSON property ttl

Returns:

  • (String)


800
801
802
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 800

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



807
808
809
810
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 807

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