Class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse

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

Overview

Response message for the GenerateAppAttestChallenge method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse

Returns a new instance of GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse.



841
842
843
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 841

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

Instance Attribute Details

#challengeString

A one-time use challenge for the client to pass to the App Attest API. Corresponds to the JSON property challenge NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


832
833
834
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 832

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)


839
840
841
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 839

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



846
847
848
849
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 846

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