Class: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ExchangeAppAttestAttestationRequest

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 ExchangeAppAttestAttestation method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseAppcheckV1ExchangeAppAttestAttestationRequest

Returns a new instance of GoogleFirebaseAppcheckV1ExchangeAppAttestAttestationRequest.



439
440
441
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 439

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

Instance Attribute Details

#attestation_statementString

Required. The App Attest statement returned by the client-side App Attest API. This is a base64url encoded CBOR object in the JSON response. Corresponds to the JSON property attestationStatement NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


415
416
417
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 415

def attestation_statement
  @attestation_statement
end

#challengeString

Required. A one-time challenge returned by an immediately prior call to GenerateAppAttestChallenge. Corresponds to the JSON property challenge NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


422
423
424
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 422

def challenge
  @challenge
end

#key_idString

Required. The key ID generated by App Attest for the client app. Corresponds to the JSON property keyId NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


428
429
430
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 428

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


436
437
438
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 436

def limited_use
  @limited_use
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



444
445
446
447
448
449
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 444

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