Class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest
- Inherits:
-
Object
- Object
- Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest
- 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 ExchangeDeviceCheckToken method.
Instance Attribute Summary collapse
-
#device_token ⇒ String
Required.
-
#limited_use ⇒ Boolean
(also: #limited_use?)
Forces a short-lived token with a 5 minute TTL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest
constructor
A new instance of GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest
Returns a new instance of GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest.
604 605 606 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 604 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_token ⇒ String
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
595 596 597 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 595 def device_token @device_token end |
#limited_use ⇒ Boolean 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
601 602 603 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 601 def limited_use @limited_use end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
609 610 611 612 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 609 def update!(**args) @device_token = args[:device_token] if args.key?(:device_token) @limited_use = args[:limited_use] if args.key?(:limited_use) end |