google-apis-firebaseappcheck_v1beta 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1979253eba1c54429fcb21cead287c569b1809335d35369c6c915132ae9e4929
4
- data.tar.gz: c44f89320409d4d4ed5e7f54c1dab3d3c1989398f252061eb3221e5782b071a8
3
+ metadata.gz: 0d2e62548eb22f40454ee9acba58efc083faf52d9533c94bc527c2db465835f4
4
+ data.tar.gz: 07f29c46f49debfa98eba4322d6f76f6786d374aa4f3f94f6240f1bba0e3239e
5
5
  SHA512:
6
- metadata.gz: e65042dfe62b9df264ad19ada5371a0a076091d386333e808dd501b539980782c40298928b4cd891c5d44a7c34d928a3661d66523cb8a74454243962d5be6b9d
7
- data.tar.gz: 6a891550f2b7e560034a25eb00fa5788230ed68cbdceda8931204259b4d651d2f18b50ea7b84d6c374a3a12c31a6ceadeb1bf4e3b5952c6ab3f8a679ef2dd9d4
6
+ metadata.gz: 8b1642dd07e96fdf0d20a692fea07ebe3ea2b00713a360c0f88a25554dc658e0861270c5149736468f235a991ecb083d26df8c631d8be5bd10e3ddea38b7cc43
7
+ data.tar.gz: e035e214978f01fca0fd1928596b403860b705d775651091a1521854df286cc111506318a679263998ac1432271054a85efd41870c5962fb80f5131121b4d42b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-firebaseappcheck_v1beta
2
2
 
3
+ ### v0.12.0 (2022-03-15)
4
+
5
+ * Regenerated from discovery document revision 20220311
6
+
3
7
  ### v0.11.0 (2022-01-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20220116
@@ -22,34 +22,6 @@ module Google
22
22
  module Apis
23
23
  module FirebaseappcheckV1beta
24
24
 
25
- # Response message for the GenerateAppAttestChallenge method.
26
- class GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse
27
- include Google::Apis::Core::Hashable
28
-
29
- # A one-time use challenge for the client to pass to the App Attest API.
30
- # Corresponds to the JSON property `challenge`
31
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
32
- # @return [String]
33
- attr_accessor :challenge
34
-
35
- # The duration from the time this challenge is minted until its expiration. This
36
- # field is intended to ease client-side token management, since the client may
37
- # have clock skew, but is still able to accurately measure a duration.
38
- # Corresponds to the JSON property `ttl`
39
- # @return [String]
40
- attr_accessor :ttl
41
-
42
- def initialize(**args)
43
- update!(**args)
44
- end
45
-
46
- # Update properties of this object
47
- def update!(**args)
48
- @challenge = args[:challenge] if args.key?(:challenge)
49
- @ttl = args[:ttl] if args.key?(:ttl)
50
- end
51
- end
52
-
53
25
  # An app's App Attest configuration object. This configuration controls certain
54
26
  # properties of the App Check token returned by ExchangeAppAttestAttestation and
55
27
  # ExchangeAppAttestAssertion, such as its ttl. Note that the Team ID registered
@@ -84,6 +56,44 @@ module Google
84
56
  end
85
57
  end
86
58
 
59
+ # Encapsulates an *App Check token*, which are used to access Firebase services
60
+ # protected by App Check.
61
+ class GoogleFirebaseAppcheckV1betaAppCheckToken
62
+ include Google::Apis::Core::Hashable
63
+
64
+ # An App Check token. App Check tokens are signed [JWTs](https://tools.ietf.org/
65
+ # html/rfc7519) containing claims that identify the attested app and Firebase
66
+ # project. This token is used to access Firebase services protected by App Check.
67
+ # Corresponds to the JSON property `attestationToken`
68
+ # @return [String]
69
+ attr_accessor :attestation_token
70
+
71
+ # An App Check token. App Check tokens are signed [JWTs](https://tools.ietf.org/
72
+ # html/rfc7519) containing claims that identify the attested app and Firebase
73
+ # project. This token is used to access Firebase services protected by App Check.
74
+ # Corresponds to the JSON property `token`
75
+ # @return [String]
76
+ attr_accessor :token
77
+
78
+ # The duration from the time this token is minted until its expiration. This
79
+ # field is intended to ease client-side token management, since the client may
80
+ # have clock skew, but is still able to accurately measure a duration.
81
+ # Corresponds to the JSON property `ttl`
82
+ # @return [String]
83
+ attr_accessor :ttl
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @attestation_token = args[:attestation_token] if args.key?(:attestation_token)
92
+ @token = args[:token] if args.key?(:token)
93
+ @ttl = args[:ttl] if args.key?(:ttl)
94
+ end
95
+ end
96
+
87
97
  # Encapsulates an *App Check token*, which are used to access Firebase services
88
98
  # protected by App Check.
89
99
  class GoogleFirebaseAppcheckV1betaAttestationTokenResponse
@@ -432,6 +442,12 @@ module Google
432
442
  class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
433
443
  include Google::Apis::Core::Hashable
434
444
 
445
+ # Encapsulates an *App Check token*, which are used to access Firebase services
446
+ # protected by App Check.
447
+ # Corresponds to the JSON property `appCheckToken`
448
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
449
+ attr_accessor :app_check_token
450
+
435
451
  # An artifact that can be used in future calls to ExchangeAppAttestAssertion.
436
452
  # Corresponds to the JSON property `artifact`
437
453
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
@@ -450,6 +466,7 @@ module Google
450
466
 
451
467
  # Update properties of this object
452
468
  def update!(**args)
469
+ @app_check_token = args[:app_check_token] if args.key?(:app_check_token)
453
470
  @artifact = args[:artifact] if args.key?(:artifact)
454
471
  @attestation_token = args[:attestation_token] if args.key?(:attestation_token)
455
472
  end
@@ -557,6 +574,26 @@ module Google
557
574
  end
558
575
  end
559
576
 
577
+ # Request message for the ExchangeRecaptchaV3Token method.
578
+ class GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest
579
+ include Google::Apis::Core::Hashable
580
+
581
+ # Required. The reCAPTCHA token as returned by the [reCAPTCHA v3 JavaScript API](
582
+ # https://developers.google.com/recaptcha/docs/v3).
583
+ # Corresponds to the JSON property `recaptchaV3Token`
584
+ # @return [String]
585
+ attr_accessor :recaptcha_v3_token
586
+
587
+ def initialize(**args)
588
+ update!(**args)
589
+ end
590
+
591
+ # Update properties of this object
592
+ def update!(**args)
593
+ @recaptcha_v3_token = args[:recaptcha_v3_token] if args.key?(:recaptcha_v3_token)
594
+ end
595
+ end
596
+
560
597
  # Request message for the ExchangeSafetyNetToken method.
561
598
  class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
562
599
  include Google::Apis::Core::Hashable
@@ -590,6 +627,34 @@ module Google
590
627
  end
591
628
  end
592
629
 
630
+ # Response message for the GenerateAppAttestChallenge method.
631
+ class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
632
+ include Google::Apis::Core::Hashable
633
+
634
+ # A one-time use challenge for the client to pass to the App Attest API.
635
+ # Corresponds to the JSON property `challenge`
636
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
637
+ # @return [String]
638
+ attr_accessor :challenge
639
+
640
+ # The duration from the time this challenge is minted until its expiration. This
641
+ # field is intended to ease client-side token management, since the client may
642
+ # have clock skew, but is still able to accurately measure a duration.
643
+ # Corresponds to the JSON property `ttl`
644
+ # @return [String]
645
+ attr_accessor :ttl
646
+
647
+ def initialize(**args)
648
+ update!(**args)
649
+ end
650
+
651
+ # Update properties of this object
652
+ def update!(**args)
653
+ @challenge = args[:challenge] if args.key?(:challenge)
654
+ @ttl = args[:ttl] if args.key?(:ttl)
655
+ end
656
+ end
657
+
593
658
  # Response message for the ListDebugTokens method.
594
659
  class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
595
660
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FirebaseappcheckV1beta
18
18
  # Version of the google-apis-firebaseappcheck_v1beta gem
19
- GEM_VERSION = "0.11.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220116"
25
+ REVISION = "20220311"
26
26
  end
27
27
  end
28
28
  end
@@ -22,13 +22,13 @@ module Google
22
22
  module Apis
23
23
  module FirebaseappcheckV1beta
24
24
 
25
- class GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse
25
+ class GoogleFirebaseAppcheckV1betaAppAttestConfig
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class GoogleFirebaseAppcheckV1betaAppAttestConfig
31
+ class GoogleFirebaseAppcheckV1betaAppCheckToken
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
@@ -142,6 +142,12 @@ module Google
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
+ class GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
145
151
  class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
146
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
153
 
@@ -154,6 +160,12 @@ module Google
154
160
  include Google::Apis::Core::JsonObjectSupport
155
161
  end
156
162
 
163
+ class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
157
169
  class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
158
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
171
 
@@ -214,19 +226,20 @@ module Google
214
226
  include Google::Apis::Core::JsonObjectSupport
215
227
  end
216
228
 
217
- class GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse
229
+ class GoogleFirebaseAppcheckV1betaAppAttestConfig
218
230
  # @private
219
231
  class Representation < Google::Apis::Core::JsonRepresentation
220
- property :challenge, :base64 => true, as: 'challenge'
221
- property :ttl, as: 'ttl'
232
+ property :name, as: 'name'
233
+ property :token_ttl, as: 'tokenTtl'
222
234
  end
223
235
  end
224
236
 
225
- class GoogleFirebaseAppcheckV1betaAppAttestConfig
237
+ class GoogleFirebaseAppcheckV1betaAppCheckToken
226
238
  # @private
227
239
  class Representation < Google::Apis::Core::JsonRepresentation
228
- property :name, as: 'name'
229
- property :token_ttl, as: 'tokenTtl'
240
+ property :attestation_token, as: 'attestationToken'
241
+ property :token, as: 'token'
242
+ property :ttl, as: 'ttl'
230
243
  end
231
244
  end
232
245
 
@@ -336,6 +349,8 @@ module Google
336
349
  class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
337
350
  # @private
338
351
  class Representation < Google::Apis::Core::JsonRepresentation
352
+ property :app_check_token, as: 'appCheckToken', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
353
+
339
354
  property :artifact, :base64 => true, as: 'artifact'
340
355
  property :attestation_token, as: 'attestationToken', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
341
356
 
@@ -377,6 +392,13 @@ module Google
377
392
  end
378
393
  end
379
394
 
395
+ class GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest
396
+ # @private
397
+ class Representation < Google::Apis::Core::JsonRepresentation
398
+ property :recaptcha_v3_token, as: 'recaptchaV3Token'
399
+ end
400
+ end
401
+
380
402
  class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
381
403
  # @private
382
404
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -390,6 +412,14 @@ module Google
390
412
  end
391
413
  end
392
414
 
415
+ class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
416
+ # @private
417
+ class Representation < Google::Apis::Core::JsonRepresentation
418
+ property :challenge, :base64 => true, as: 'challenge'
419
+ property :ttl, as: 'ttl'
420
+ end
421
+ end
422
+
393
423
  class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
394
424
  # @private
395
425
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -86,7 +86,7 @@ module Google
86
86
 
87
87
  # Accepts an App Attest assertion and an artifact previously obtained from
88
88
  # ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns
89
- # an App Check token encapsulated in an AttestationTokenResponse.
89
+ # an AppCheckToken.
90
90
  # @param [String] app
91
91
  # Required. The relative resource name of the iOS app, in the format: ```
92
92
  # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
@@ -103,10 +103,10 @@ module Google
103
103
  # Request-specific options
104
104
  #
105
105
  # @yield [result, err] Result & error if block supplied
106
- # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
106
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
107
107
  # @yieldparam err [StandardError] error object if request failed
108
108
  #
109
- # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
109
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
110
110
  #
111
111
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
112
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
@@ -115,8 +115,8 @@ module Google
115
115
  command = make_simple_command(:post, 'v1beta/{+app}:exchangeAppAttestAssertion', options)
116
116
  command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest::Representation
117
117
  command.request_object = google_firebase_appcheck_v1beta_exchange_app_attest_assertion_request_object
118
- command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
119
- command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
118
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
119
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
120
120
  command.params['app'] = app unless app.nil?
121
121
  command.query['fields'] = fields unless fields.nil?
122
122
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -125,10 +125,10 @@ module Google
125
125
 
126
126
  # Accepts an App Attest CBOR attestation and verifies it with Apple using your
127
127
  # preconfigured team and bundle IDs. If valid, returns an attestation artifact
128
- # that can later be exchanged for an AttestationTokenResponse using
128
+ # that can later be exchanged for an AppCheckToken using
129
129
  # ExchangeAppAttestAssertion. For convenience and performance, this method's
130
- # response object will also contain an App Check token encapsulated in an
131
- # AttestationTokenResponse (if the verification is successful).
130
+ # response object will also contain an AppCheckToken (if the verification is
131
+ # successful).
132
132
  # @param [String] app
133
133
  # Required. The relative resource name of the iOS app, in the format: ```
134
134
  # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
@@ -166,8 +166,7 @@ module Google
166
166
  end
167
167
 
168
168
  # Validates a custom token signed using your project's Admin SDK service account
169
- # credentials. If valid, returns an App Check token encapsulated in an
170
- # AttestationTokenResponse.
169
+ # credentials. If valid, returns an AppCheckToken.
171
170
  # @param [String] app
172
171
  # Required. The relative resource name of the app, in the format: ``` projects/`
173
172
  # project_number`/apps/`app_id` ``` If necessary, the `project_number` element
@@ -184,10 +183,10 @@ module Google
184
183
  # Request-specific options
185
184
  #
186
185
  # @yield [result, err] Result & error if block supplied
187
- # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
186
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
188
187
  # @yieldparam err [StandardError] error object if request failed
189
188
  #
190
- # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
189
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
191
190
  #
192
191
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
192
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
@@ -196,8 +195,8 @@ module Google
196
195
  command = make_simple_command(:post, 'v1beta/{+app}:exchangeCustomToken', options)
197
196
  command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest::Representation
198
197
  command.request_object = google_firebase_appcheck_v1beta_exchange_custom_token_request_object
199
- command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
200
- command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
198
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
199
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
201
200
  command.params['app'] = app unless app.nil?
202
201
  command.query['fields'] = fields unless fields.nil?
203
202
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -205,9 +204,9 @@ module Google
205
204
  end
206
205
 
207
206
  # Validates a debug token secret that you have previously created using
208
- # CreateDebugToken. If valid, returns an App Check token encapsulated in an
209
- # AttestationTokenResponse. Note that a restrictive quota is enforced on this
210
- # method to prevent accidental exposure of the app to abuse.
207
+ # CreateDebugToken. If valid, returns an AppCheckToken. Note that a restrictive
208
+ # quota is enforced on this method to prevent accidental exposure of the app to
209
+ # abuse.
211
210
  # @param [String] app
212
211
  # Required. The relative resource name of the app, in the format: ``` projects/`
213
212
  # project_number`/apps/`app_id` ``` If necessary, the `project_number` element
@@ -224,10 +223,10 @@ module Google
224
223
  # Request-specific options
225
224
  #
226
225
  # @yield [result, err] Result & error if block supplied
227
- # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
226
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
228
227
  # @yieldparam err [StandardError] error object if request failed
229
228
  #
230
- # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
229
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
231
230
  #
232
231
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
233
232
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
@@ -236,8 +235,8 @@ module Google
236
235
  command = make_simple_command(:post, 'v1beta/{+app}:exchangeDebugToken', options)
237
236
  command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest::Representation
238
237
  command.request_object = google_firebase_appcheck_v1beta_exchange_debug_token_request_object
239
- command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
240
- command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
238
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
239
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
241
240
  command.params['app'] = app unless app.nil?
242
241
  command.query['fields'] = fields unless fields.nil?
243
242
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -246,8 +245,7 @@ module Google
246
245
 
247
246
  # Accepts a [`device_token`](https://developer.apple.com/documentation/
248
247
  # devicecheck/dcdevice) issued by DeviceCheck, and attempts to validate it with
249
- # Apple. If valid, returns an App Check token encapsulated in an
250
- # AttestationTokenResponse.
248
+ # Apple. If valid, returns an AppCheckToken.
251
249
  # @param [String] app
252
250
  # Required. The relative resource name of the iOS app, in the format: ```
253
251
  # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
@@ -264,10 +262,10 @@ module Google
264
262
  # Request-specific options
265
263
  #
266
264
  # @yield [result, err] Result & error if block supplied
267
- # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
265
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
268
266
  # @yieldparam err [StandardError] error object if request failed
269
267
  #
270
- # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
268
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
271
269
  #
272
270
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
273
271
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
@@ -276,8 +274,8 @@ module Google
276
274
  command = make_simple_command(:post, 'v1beta/{+app}:exchangeDeviceCheckToken', options)
277
275
  command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest::Representation
278
276
  command.request_object = google_firebase_appcheck_v1beta_exchange_device_check_token_request_object
279
- command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
280
- command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
277
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
278
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
281
279
  command.params['app'] = app unless app.nil?
282
280
  command.query['fields'] = fields unless fields.nil?
283
281
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -286,7 +284,7 @@ module Google
286
284
 
287
285
  # Validates a [reCAPTCHA Enterprise response token](https://cloud.google.com/
288
286
  # recaptcha-enterprise/docs/create-assessment#retrieve_token). If valid, returns
289
- # an App Check token encapsulated in an AttestationTokenResponse.
287
+ # an App Check token AppCheckToken.
290
288
  # @param [String] app
291
289
  # Required. The relative resource name of the web app, in the format: ```
292
290
  # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
@@ -303,10 +301,10 @@ module Google
303
301
  # Request-specific options
304
302
  #
305
303
  # @yield [result, err] Result & error if block supplied
306
- # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
304
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
307
305
  # @yieldparam err [StandardError] error object if request failed
308
306
  #
309
- # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
307
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
310
308
  #
311
309
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
312
310
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
@@ -315,8 +313,8 @@ module Google
315
313
  command = make_simple_command(:post, 'v1beta/{+app}:exchangeRecaptchaEnterpriseToken', options)
316
314
  command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest::Representation
317
315
  command.request_object = google_firebase_appcheck_v1beta_exchange_recaptcha_enterprise_token_request_object
318
- command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
319
- command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
316
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
317
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
320
318
  command.params['app'] = app unless app.nil?
321
319
  command.query['fields'] = fields unless fields.nil?
322
320
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -324,8 +322,7 @@ module Google
324
322
  end
325
323
 
326
324
  # Validates a [reCAPTCHA v3 response token](https://developers.google.com/
327
- # recaptcha/docs/v3). If valid, returns an App Check token encapsulated in an
328
- # AttestationTokenResponse.
325
+ # recaptcha/docs/v3). If valid, returns an AppCheckToken.
329
326
  # @param [String] app
330
327
  # Required. The relative resource name of the web app, in the format: ```
331
328
  # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
@@ -342,10 +339,10 @@ module Google
342
339
  # Request-specific options
343
340
  #
344
341
  # @yield [result, err] Result & error if block supplied
345
- # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
342
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
346
343
  # @yieldparam err [StandardError] error object if request failed
347
344
  #
348
- # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
345
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
349
346
  #
350
347
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
351
348
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
@@ -354,8 +351,46 @@ module Google
354
351
  command = make_simple_command(:post, 'v1beta/{+app}:exchangeRecaptchaToken', options)
355
352
  command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest::Representation
356
353
  command.request_object = google_firebase_appcheck_v1beta_exchange_recaptcha_token_request_object
357
- command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
358
- command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
354
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
355
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
356
+ command.params['app'] = app unless app.nil?
357
+ command.query['fields'] = fields unless fields.nil?
358
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
359
+ execute_or_queue_command(command, &block)
360
+ end
361
+
362
+ # Validates a [reCAPTCHA v3 response token](https://developers.google.com/
363
+ # recaptcha/docs/v3). If valid, returns an AppCheckToken.
364
+ # @param [String] app
365
+ # Required. The relative resource name of the web app, in the format: ```
366
+ # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
367
+ # element can be replaced with the project ID of the Firebase project. Learn
368
+ # more about using project identifiers in Google's [AIP 2510](https://google.aip.
369
+ # dev/cloud/2510) standard.
370
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest] google_firebase_appcheck_v1beta_exchange_recaptcha_v3_token_request_object
371
+ # @param [String] fields
372
+ # Selector specifying which fields to include in a partial response.
373
+ # @param [String] quota_user
374
+ # Available to use for quota purposes for server-side applications. Can be any
375
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
376
+ # @param [Google::Apis::RequestOptions] options
377
+ # Request-specific options
378
+ #
379
+ # @yield [result, err] Result & error if block supplied
380
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
381
+ # @yieldparam err [StandardError] error object if request failed
382
+ #
383
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
384
+ #
385
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
386
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
387
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
388
+ def exchange_project_app_recaptcha_v3_token(app, google_firebase_appcheck_v1beta_exchange_recaptcha_v3_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
389
+ command = make_simple_command(:post, 'v1beta/{+app}:exchangeRecaptchaV3Token', options)
390
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest::Representation
391
+ command.request_object = google_firebase_appcheck_v1beta_exchange_recaptcha_v3_token_request_object
392
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
393
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
359
394
  command.params['app'] = app unless app.nil?
360
395
  command.query['fields'] = fields unless fields.nil?
361
396
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -363,8 +398,7 @@ module Google
363
398
  end
364
399
 
365
400
  # Validates a [SafetyNet token](https://developer.android.com/training/safetynet/
366
- # attestation#request-attestation-step). If valid, returns an App Check token
367
- # encapsulated in an AttestationTokenResponse.
401
+ # attestation#request-attestation-step). If valid, returns an AppCheckToken.
368
402
  # @param [String] app
369
403
  # Required. The relative resource name of the Android app, in the format: ```
370
404
  # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
@@ -381,10 +415,10 @@ module Google
381
415
  # Request-specific options
382
416
  #
383
417
  # @yield [result, err] Result & error if block supplied
384
- # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
418
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
385
419
  # @yieldparam err [StandardError] error object if request failed
386
420
  #
387
- # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
421
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
388
422
  #
389
423
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
390
424
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
@@ -393,8 +427,8 @@ module Google
393
427
  command = make_simple_command(:post, 'v1beta/{+app}:exchangeSafetyNetToken', options)
394
428
  command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest::Representation
395
429
  command.request_object = google_firebase_appcheck_v1beta_exchange_safety_net_token_request_object
396
- command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
397
- command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
430
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
431
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
398
432
  command.params['app'] = app unless app.nil?
399
433
  command.query['fields'] = fields unless fields.nil?
400
434
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -420,10 +454,10 @@ module Google
420
454
  # Request-specific options
421
455
  #
422
456
  # @yield [result, err] Result & error if block supplied
423
- # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse] parsed result object
457
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse] parsed result object
424
458
  # @yieldparam err [StandardError] error object if request failed
425
459
  #
426
- # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse]
460
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse]
427
461
  #
428
462
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
429
463
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
@@ -432,8 +466,8 @@ module Google
432
466
  command = make_simple_command(:post, 'v1beta/{+app}:generateAppAttestChallenge', options)
433
467
  command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest::Representation
434
468
  command.request_object = google_firebase_appcheck_v1beta_generate_app_attest_challenge_request_object
435
- command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse::Representation
436
- command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse
469
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse::Representation
470
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
437
471
  command.params['app'] = app unless app.nil?
438
472
  command.query['fields'] = fields unless fields.nil?
439
473
  command.query['quotaUser'] = quota_user unless quota_user.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firebaseappcheck_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-24 00:00:00.000000000 Z
11
+ date: 2022-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseappcheck_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.12.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseappcheck_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []