Class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
- Inherits:
-
Object
- Object
- Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
- 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
Encapsulates an App Check token, which are used to access Firebase services protected by App Check.
Instance Attribute Summary collapse
-
#attestation_token ⇒ String
This field has been renamed to
token. -
#token ⇒ String
An App Check token.
-
#ttl ⇒ String
The duration from the time this token is minted until its expiration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFirebaseAppcheckV1betaAppCheckToken
constructor
A new instance of GoogleFirebaseAppcheckV1betaAppCheckToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFirebaseAppcheckV1betaAppCheckToken
Returns a new instance of GoogleFirebaseAppcheckV1betaAppCheckToken.
86 87 88 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 86 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attestation_token ⇒ String
This field has been renamed to token. An App Check token. App Check tokens
are signed JWTs containing claims that
identify the attested app and Firebase project. This token is used to access
Firebase services protected by App Check.
Corresponds to the JSON property attestationToken
70 71 72 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 70 def attestation_token @attestation_token end |
#token ⇒ String
An App Check token. App Check tokens are signed JWTs containing claims that identify the attested app and Firebase
project. This token is used to access Firebase services protected by App Check.
Corresponds to the JSON property token
77 78 79 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 77 def token @token end |
#ttl ⇒ String
The duration from the time this token 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
84 85 86 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 84 def ttl @ttl end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
91 92 93 94 95 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 91 def update!(**args) @attestation_token = args[:attestation_token] if args.key?(:attestation_token) @token = args[:token] if args.key?(:token) @ttl = args[:ttl] if args.key?(:ttl) end |