Class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest

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

Request message for the ExchangeAppAttestAssertion method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest

Returns a new instance of GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest.



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

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

Instance Attribute Details

#artifactString

Required. The artifact returned by a previous call to ExchangeAppAttestAttestation. Corresponds to the JSON property artifact NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


416
417
418
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 416

def artifact
  @artifact
end

#assertionString

Required. The CBOR-encoded assertion returned by the client-side App Attest API. Corresponds to the JSON property assertion NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


423
424
425
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 423

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


430
431
432
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 430

def challenge
  @challenge
end

#limited_useBoolean Also known as: limited_use?

Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false. Corresponds to the JSON property limitedUse

Returns:

  • (Boolean)


436
437
438
# File 'lib/google/apis/firebaseappcheck_v1beta/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_v1beta/classes.rb', line 444

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