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 backend services protected by App Check.
Instance Attribute Summary collapse
-
#attestation_token ⇒ String
The App Check token.
-
#token ⇒ String
The 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.
91 92 93 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 91 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attestation_token ⇒ String
The App Check token. App Check tokens are signed JWTs containing claims that identify the attested app and GCP project.
This token is used to access Google services protected by App Check. These
tokens can also be verified by your own custom backends using the Firebase Admin
SDK or third-party libraries.
Corresponds to the JSON property attestationToken
72 73 74 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 72 def attestation_token @attestation_token end |
#token ⇒ String
The App Check token. App Check tokens are signed JWTs containing claims that identify the attested app and GCP project.
This token is used to access Google services protected by App Check. These
tokens can also be verified by your own custom backends using the Firebase Admin
SDK or third-party libraries.
Corresponds to the JSON property token
82 83 84 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 82 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
89 90 91 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 89 def ttl @ttl end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
96 97 98 99 100 |
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 96 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 |