Class: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1ExchangeDeviceCheckTokenRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseAppcheckV1ExchangeDeviceCheckTokenRequest

Returns a new instance of GoogleFirebaseAppcheckV1ExchangeDeviceCheckTokenRequest.



559
560
561
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 559

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

Instance Attribute Details

#device_tokenString

Required. The device_token as returned by Apple's client-side DeviceCheck API. This is the base64 encoded Data (Swift) or NSData (ObjC) object. Corresponds to the JSON property deviceToken

Returns:

  • (String)


548
549
550
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 548

def device_token
  @device_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)


556
557
558
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 556

def limited_use
  @limited_use
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



564
565
566
567
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 564

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