google-apis-firebaseappcheck_v1beta 0.11.0 → 0.14.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: 829078b00b66daf8edfb4ebd535b57ca186e492633d97871de4319d3ba4c212c
4
+ data.tar.gz: '069236db7bde12d3402afe0af8f2c7d290bb3cc0a9fcd54641a53ff886eb2951'
5
5
  SHA512:
6
- metadata.gz: e65042dfe62b9df264ad19ada5371a0a076091d386333e808dd501b539980782c40298928b4cd891c5d44a7c34d928a3661d66523cb8a74454243962d5be6b9d
7
- data.tar.gz: 6a891550f2b7e560034a25eb00fa5788230ed68cbdceda8931204259b4d651d2f18b50ea7b84d6c374a3a12c31a6ceadeb1bf4e3b5952c6ab3f8a679ef2dd9d4
6
+ metadata.gz: cf014e9a00f9c3792007cc424e100d7e2c746533b4ad2c66d47a84e178cde586c9c9b352a451264f64fa005a67573a8d7d4b392cf7c10956d7e5f2a37b1d7961
7
+ data.tar.gz: 78c7a3ee48bd85cb2cef36a2b76db83eb4bd68da99b79d0e61f07876321f85595ba0c9282316bbb114909381c1dadfd5dc5e4f2baacdaf99a61eb53ed264994b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-firebaseappcheck_v1beta
2
2
 
3
+ ### v0.14.0 (2022-03-29)
4
+
5
+ * Regenerated from discovery document revision 20220325
6
+
7
+ ### v0.13.0 (2022-03-22)
8
+
9
+ * Regenerated from discovery document revision 20220318
10
+
11
+ ### v0.12.0 (2022-03-15)
12
+
13
+ * Regenerated from discovery document revision 20220311
14
+
3
15
  ### v0.11.0 (2022-01-19)
4
16
 
5
17
  * 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
@@ -190,6 +200,25 @@ module Google
190
200
  end
191
201
  end
192
202
 
203
+ # Response message for the BatchGetRecaptchaV3Configs method.
204
+ class GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse
205
+ include Google::Apis::Core::Hashable
206
+
207
+ # RecaptchaV3Configs retrieved.
208
+ # Corresponds to the JSON property `configs`
209
+ # @return [Array<Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config>]
210
+ attr_accessor :configs
211
+
212
+ def initialize(**args)
213
+ update!(**args)
214
+ end
215
+
216
+ # Update properties of this object
217
+ def update!(**args)
218
+ @configs = args[:configs] if args.key?(:configs)
219
+ end
220
+ end
221
+
193
222
  # Response message for the BatchGetSafetyNetConfigs method.
194
223
  class GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse
195
224
  include Google::Apis::Core::Hashable
@@ -432,6 +461,12 @@ module Google
432
461
  class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
433
462
  include Google::Apis::Core::Hashable
434
463
 
464
+ # Encapsulates an *App Check token*, which are used to access Firebase services
465
+ # protected by App Check.
466
+ # Corresponds to the JSON property `appCheckToken`
467
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
468
+ attr_accessor :app_check_token
469
+
435
470
  # An artifact that can be used in future calls to ExchangeAppAttestAssertion.
436
471
  # Corresponds to the JSON property `artifact`
437
472
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
@@ -450,6 +485,7 @@ module Google
450
485
 
451
486
  # Update properties of this object
452
487
  def update!(**args)
488
+ @app_check_token = args[:app_check_token] if args.key?(:app_check_token)
453
489
  @artifact = args[:artifact] if args.key?(:artifact)
454
490
  @attestation_token = args[:attestation_token] if args.key?(:attestation_token)
455
491
  end
@@ -557,6 +593,26 @@ module Google
557
593
  end
558
594
  end
559
595
 
596
+ # Request message for the ExchangeRecaptchaV3Token method.
597
+ class GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest
598
+ include Google::Apis::Core::Hashable
599
+
600
+ # Required. The reCAPTCHA token as returned by the [reCAPTCHA v3 JavaScript API](
601
+ # https://developers.google.com/recaptcha/docs/v3).
602
+ # Corresponds to the JSON property `recaptchaV3Token`
603
+ # @return [String]
604
+ attr_accessor :recaptcha_v3_token
605
+
606
+ def initialize(**args)
607
+ update!(**args)
608
+ end
609
+
610
+ # Update properties of this object
611
+ def update!(**args)
612
+ @recaptcha_v3_token = args[:recaptcha_v3_token] if args.key?(:recaptcha_v3_token)
613
+ end
614
+ end
615
+
560
616
  # Request message for the ExchangeSafetyNetToken method.
561
617
  class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
562
618
  include Google::Apis::Core::Hashable
@@ -590,6 +646,34 @@ module Google
590
646
  end
591
647
  end
592
648
 
649
+ # Response message for the GenerateAppAttestChallenge method.
650
+ class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
651
+ include Google::Apis::Core::Hashable
652
+
653
+ # A one-time use challenge for the client to pass to the App Attest API.
654
+ # Corresponds to the JSON property `challenge`
655
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
656
+ # @return [String]
657
+ attr_accessor :challenge
658
+
659
+ # The duration from the time this challenge is minted until its expiration. This
660
+ # field is intended to ease client-side token management, since the client may
661
+ # have clock skew, but is still able to accurately measure a duration.
662
+ # Corresponds to the JSON property `ttl`
663
+ # @return [String]
664
+ attr_accessor :ttl
665
+
666
+ def initialize(**args)
667
+ update!(**args)
668
+ end
669
+
670
+ # Update properties of this object
671
+ def update!(**args)
672
+ @challenge = args[:challenge] if args.key?(:challenge)
673
+ @ttl = args[:ttl] if args.key?(:ttl)
674
+ end
675
+ end
676
+
593
677
  # Response message for the ListDebugTokens method.
594
678
  class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
595
679
  include Google::Apis::Core::Hashable
@@ -815,6 +899,55 @@ module Google
815
899
  end
816
900
  end
817
901
 
902
+ # An app's reCAPTCHA v3 configuration object. This configuration is used by
903
+ # ExchangeRecaptchaV3Token to validate reCAPTCHA tokens issued to apps by
904
+ # reCAPTCHA v3. It also controls certain properties of the returned App Check
905
+ # token, such as its ttl.
906
+ class GoogleFirebaseAppcheckV1betaRecaptchaV3Config
907
+ include Google::Apis::Core::Hashable
908
+
909
+ # Required. The relative resource name of the reCAPTCHA v3 configuration object,
910
+ # in the format: ``` projects/`project_number`/apps/`app_id`/recaptchaV3Config ``
911
+ # `
912
+ # Corresponds to the JSON property `name`
913
+ # @return [String]
914
+ attr_accessor :name
915
+
916
+ # Required. Input only. The site secret used to identify your service for
917
+ # reCAPTCHA v3 verification. For security reasons, this field will never be
918
+ # populated in any response.
919
+ # Corresponds to the JSON property `siteSecret`
920
+ # @return [String]
921
+ attr_accessor :site_secret
922
+
923
+ # Output only. Whether the `site_secret` field was previously set. Since we will
924
+ # never return the `site_secret` field, this field is the only way to find out
925
+ # whether it was previously set.
926
+ # Corresponds to the JSON property `siteSecretSet`
927
+ # @return [Boolean]
928
+ attr_accessor :site_secret_set
929
+ alias_method :site_secret_set?, :site_secret_set
930
+
931
+ # Specifies the duration for which App Check tokens exchanged from reCAPTCHA
932
+ # tokens will be valid. If unset, a default value of 1 day is assumed. Must be
933
+ # between 30 minutes and 7 days, inclusive.
934
+ # Corresponds to the JSON property `tokenTtl`
935
+ # @return [String]
936
+ attr_accessor :token_ttl
937
+
938
+ def initialize(**args)
939
+ update!(**args)
940
+ end
941
+
942
+ # Update properties of this object
943
+ def update!(**args)
944
+ @name = args[:name] if args.key?(:name)
945
+ @site_secret = args[:site_secret] if args.key?(:site_secret)
946
+ @site_secret_set = args[:site_secret_set] if args.key?(:site_secret_set)
947
+ @token_ttl = args[:token_ttl] if args.key?(:token_ttl)
948
+ end
949
+ end
950
+
818
951
  # An app's SafetyNet configuration object. This configuration controls certain
819
952
  # properties of the App Check token returned by ExchangeSafetyNetToken, such as
820
953
  # its ttl. Note that your registered SHA-256 certificate fingerprints are used
@@ -909,8 +1042,7 @@ module Google
909
1042
  # A generic empty message that you can re-use to avoid defining duplicated empty
910
1043
  # messages in your APIs. A typical example is to use it as the request or the
911
1044
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
912
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
913
- # `Empty` is empty JSON object ````.
1045
+ # protobuf.Empty) returns (google.protobuf.Empty); `
914
1046
  class GoogleProtobufEmpty
915
1047
  include Google::Apis::Core::Hashable
916
1048
 
@@ -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.14.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 = "20220325"
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
@@ -64,6 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
@@ -142,6 +148,12 @@ module Google
142
148
  include Google::Apis::Core::JsonObjectSupport
143
149
  end
144
150
 
151
+ class GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
145
157
  class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
146
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
159
 
@@ -154,6 +166,12 @@ module Google
154
166
  include Google::Apis::Core::JsonObjectSupport
155
167
  end
156
168
 
169
+ class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
157
175
  class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
158
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
177
 
@@ -190,6 +208,12 @@ module Google
190
208
  include Google::Apis::Core::JsonObjectSupport
191
209
  end
192
210
 
211
+ class GoogleFirebaseAppcheckV1betaRecaptchaV3Config
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
193
217
  class GoogleFirebaseAppcheckV1betaSafetyNetConfig
194
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
219
 
@@ -214,19 +238,20 @@ module Google
214
238
  include Google::Apis::Core::JsonObjectSupport
215
239
  end
216
240
 
217
- class GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse
241
+ class GoogleFirebaseAppcheckV1betaAppAttestConfig
218
242
  # @private
219
243
  class Representation < Google::Apis::Core::JsonRepresentation
220
- property :challenge, :base64 => true, as: 'challenge'
221
- property :ttl, as: 'ttl'
244
+ property :name, as: 'name'
245
+ property :token_ttl, as: 'tokenTtl'
222
246
  end
223
247
  end
224
248
 
225
- class GoogleFirebaseAppcheckV1betaAppAttestConfig
249
+ class GoogleFirebaseAppcheckV1betaAppCheckToken
226
250
  # @private
227
251
  class Representation < Google::Apis::Core::JsonRepresentation
228
- property :name, as: 'name'
229
- property :token_ttl, as: 'tokenTtl'
252
+ property :attestation_token, as: 'attestationToken'
253
+ property :token, as: 'token'
254
+ property :ttl, as: 'ttl'
230
255
  end
231
256
  end
232
257
 
@@ -270,6 +295,14 @@ module Google
270
295
  end
271
296
  end
272
297
 
298
+ class GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse
299
+ # @private
300
+ class Representation < Google::Apis::Core::JsonRepresentation
301
+ collection :configs, as: 'configs', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config::Representation
302
+
303
+ end
304
+ end
305
+
273
306
  class GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse
274
307
  # @private
275
308
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -336,6 +369,8 @@ module Google
336
369
  class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
337
370
  # @private
338
371
  class Representation < Google::Apis::Core::JsonRepresentation
372
+ property :app_check_token, as: 'appCheckToken', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
373
+
339
374
  property :artifact, :base64 => true, as: 'artifact'
340
375
  property :attestation_token, as: 'attestationToken', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
341
376
 
@@ -377,6 +412,13 @@ module Google
377
412
  end
378
413
  end
379
414
 
415
+ class GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest
416
+ # @private
417
+ class Representation < Google::Apis::Core::JsonRepresentation
418
+ property :recaptcha_v3_token, as: 'recaptchaV3Token'
419
+ end
420
+ end
421
+
380
422
  class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
381
423
  # @private
382
424
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -390,6 +432,14 @@ module Google
390
432
  end
391
433
  end
392
434
 
435
+ class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
436
+ # @private
437
+ class Representation < Google::Apis::Core::JsonRepresentation
438
+ property :challenge, :base64 => true, as: 'challenge'
439
+ property :ttl, as: 'ttl'
440
+ end
441
+ end
442
+
393
443
  class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
394
444
  # @private
395
445
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -447,6 +497,16 @@ module Google
447
497
  end
448
498
  end
449
499
 
500
+ class GoogleFirebaseAppcheckV1betaRecaptchaV3Config
501
+ # @private
502
+ class Representation < Google::Apis::Core::JsonRepresentation
503
+ property :name, as: 'name'
504
+ property :site_secret, as: 'siteSecret'
505
+ property :site_secret_set, as: 'siteSecretSet'
506
+ property :token_ttl, as: 'tokenTtl'
507
+ end
508
+ end
509
+
450
510
  class GoogleFirebaseAppcheckV1betaSafetyNetConfig
451
511
  # @private
452
512
  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?
@@ -1076,6 +1110,119 @@ module Google
1076
1110
  execute_or_queue_command(command, &block)
1077
1111
  end
1078
1112
 
1113
+ # Atomically gets the RecaptchaV3Configs for the specified list of apps. For
1114
+ # security reasons, the `site_secret` field is never populated in the response.
1115
+ # @param [String] parent
1116
+ # Required. The parent project name shared by all RecaptchaV3Configs being
1117
+ # retrieved, in the format ``` projects/`project_number` ``` The parent
1118
+ # collection in the `name` field of any resource being retrieved must match this
1119
+ # field, or the entire batch fails.
1120
+ # @param [Array<String>, String] names
1121
+ # Required. The relative resource names of the RecaptchaV3Configs to retrieve,
1122
+ # in the format: ``` projects/`project_number`/apps/`app_id`/recaptchaV3Config ``
1123
+ # ` A maximum of 100 objects can be retrieved in a batch.
1124
+ # @param [String] fields
1125
+ # Selector specifying which fields to include in a partial response.
1126
+ # @param [String] quota_user
1127
+ # Available to use for quota purposes for server-side applications. Can be any
1128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1129
+ # @param [Google::Apis::RequestOptions] options
1130
+ # Request-specific options
1131
+ #
1132
+ # @yield [result, err] Result & error if block supplied
1133
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse] parsed result object
1134
+ # @yieldparam err [StandardError] error object if request failed
1135
+ #
1136
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse]
1137
+ #
1138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1141
+ def batch_project_app_recaptcha_v3_config_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
1142
+ command = make_simple_command(:get, 'v1beta/{+parent}/apps/-/recaptchaV3Config:batchGet', options)
1143
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse::Representation
1144
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetRecaptchaV3ConfigsResponse
1145
+ command.params['parent'] = parent unless parent.nil?
1146
+ command.query['names'] = names unless names.nil?
1147
+ command.query['fields'] = fields unless fields.nil?
1148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1149
+ execute_or_queue_command(command, &block)
1150
+ end
1151
+
1152
+ # Gets the RecaptchaV3Config for the specified app. For security reasons, the `
1153
+ # site_secret` field is never populated in the response.
1154
+ # @param [String] name
1155
+ # Required. The relative resource name of the RecaptchaV3Config, in the format: `
1156
+ # `` projects/`project_number`/apps/`app_id`/recaptchaV3Config ```
1157
+ # @param [String] fields
1158
+ # Selector specifying which fields to include in a partial response.
1159
+ # @param [String] quota_user
1160
+ # Available to use for quota purposes for server-side applications. Can be any
1161
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1162
+ # @param [Google::Apis::RequestOptions] options
1163
+ # Request-specific options
1164
+ #
1165
+ # @yield [result, err] Result & error if block supplied
1166
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config] parsed result object
1167
+ # @yieldparam err [StandardError] error object if request failed
1168
+ #
1169
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config]
1170
+ #
1171
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1172
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1173
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1174
+ def get_project_app_recaptcha_v3_config(name, fields: nil, quota_user: nil, options: nil, &block)
1175
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
1176
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config::Representation
1177
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config
1178
+ command.params['name'] = name unless name.nil?
1179
+ command.query['fields'] = fields unless fields.nil?
1180
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1181
+ execute_or_queue_command(command, &block)
1182
+ end
1183
+
1184
+ # Updates the RecaptchaV3Config for the specified app. While this configuration
1185
+ # is incomplete or invalid, the app will be unable to exchange reCAPTCHA V3
1186
+ # tokens for App Check tokens. For security reasons, the `site_secret` field is
1187
+ # never populated in the response.
1188
+ # @param [String] name
1189
+ # Required. The relative resource name of the reCAPTCHA v3 configuration object,
1190
+ # in the format: ``` projects/`project_number`/apps/`app_id`/recaptchaV3Config ``
1191
+ # `
1192
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config] google_firebase_appcheck_v1beta_recaptcha_v3_config_object
1193
+ # @param [String] update_mask
1194
+ # Required. A comma-separated list of names of fields in the RecaptchaV3Config
1195
+ # to update. Example: `site_secret`.
1196
+ # @param [String] fields
1197
+ # Selector specifying which fields to include in a partial response.
1198
+ # @param [String] quota_user
1199
+ # Available to use for quota purposes for server-side applications. Can be any
1200
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1201
+ # @param [Google::Apis::RequestOptions] options
1202
+ # Request-specific options
1203
+ #
1204
+ # @yield [result, err] Result & error if block supplied
1205
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config] parsed result object
1206
+ # @yieldparam err [StandardError] error object if request failed
1207
+ #
1208
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config]
1209
+ #
1210
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1211
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1212
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1213
+ def patch_project_app_recaptcha_v3_config(name, google_firebase_appcheck_v1beta_recaptcha_v3_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1214
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
1215
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config::Representation
1216
+ command.request_object = google_firebase_appcheck_v1beta_recaptcha_v3_config_object
1217
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config::Representation
1218
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaV3Config
1219
+ command.params['name'] = name unless name.nil?
1220
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1221
+ command.query['fields'] = fields unless fields.nil?
1222
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1223
+ execute_or_queue_command(command, &block)
1224
+ end
1225
+
1079
1226
  # Atomically gets the SafetyNetConfigs for the specified list of apps.
1080
1227
  # @param [String] parent
1081
1228
  # Required. The parent project name shared by all SafetyNetConfigs being
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.14.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-04-04 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.14.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: []