google-apis-firebaseappcheck_v1beta 0.16.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23a4e70a0d38e97eff9a924c90dbb582f29d52dc50c80778fc170e3c7d645a78
4
- data.tar.gz: afba054872b4f7158658bbac94d64e4024105994b41666fc7f2bdf4169a4404e
3
+ metadata.gz: d44958e952e0f1520cf7d3650e93b77750c02a4734637cf3afa3dae0e366ab26
4
+ data.tar.gz: ed46b6c78bb3aa9ac934124252ed94344ddea1f9928d22bdc6d50672ae21b061
5
5
  SHA512:
6
- metadata.gz: 011addb2cfe5d4c4618bbbf053bb33f395a9bda9d0b46ea2c51f850e59c2f01d0b8e3f32c9081f382277f20ba838b7686135c20630fab53872b763b9492f680d
7
- data.tar.gz: f8562e8b37242b3b9bee118b60280766f3f7f90e70c97cdb88044d06a2e112196d2f6f71c10499e08375c561a6227a8dbaf84bd8fb5396bbeb984d70846b47b2
6
+ metadata.gz: ea4053588c9a45379e5a902615bdc67067af5e6b6993100adf8335df873daee265c2085cf124309e639c3909a715d086c7c611c8cbff2dce1ae7dd32fe9fb72e
7
+ data.tar.gz: '09139c2170eff13b179ac5a8f62ccf35016f1a4e537bc77bf182c2a472d6ad5a7f61b9f77d47c27b34d48b2ee59aa91f14da5149fd526505c55ff814d79e4b99'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-firebaseappcheck_v1beta
2
2
 
3
+ ### v0.19.0 (2022-06-04)
4
+
5
+ * Regenerated using generator version 0.5.0
6
+
7
+ ### v0.18.0 (2022-05-21)
8
+
9
+ * Regenerated from discovery document revision 20220513
10
+
11
+ ### v0.17.0 (2022-05-03)
12
+
13
+ * Regenerated from discovery document revision 20220425
14
+
3
15
  ### v0.16.0 (2022-04-12)
4
16
 
5
17
  * Regenerated from discovery document revision 20220408
@@ -23,7 +23,7 @@ module Google
23
23
  module FirebaseappcheckV1beta
24
24
 
25
25
  # An app's App Attest configuration object. This configuration controls certain
26
- # properties of the App Check token returned by ExchangeAppAttestAttestation and
26
+ # properties of the `AppCheckToken` returned by ExchangeAppAttestAttestation and
27
27
  # ExchangeAppAttestAssertion, such as its ttl. Note that the Team ID registered
28
28
  # with your app is used as part of the validation process. Please register it
29
29
  # via the Firebase Console or programmatically via the [Firebase Management
@@ -162,6 +162,25 @@ module Google
162
162
  end
163
163
  end
164
164
 
165
+ # Response message for the BatchGetPlayIntegrityConfigs method.
166
+ class GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse
167
+ include Google::Apis::Core::Hashable
168
+
169
+ # PlayIntegrityConfigs retrieved.
170
+ # Corresponds to the JSON property `configs`
171
+ # @return [Array<Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig>]
172
+ attr_accessor :configs
173
+
174
+ def initialize(**args)
175
+ update!(**args)
176
+ end
177
+
178
+ # Update properties of this object
179
+ def update!(**args)
180
+ @configs = args[:configs] if args.key?(:configs)
181
+ end
182
+ end
183
+
165
184
  # Response message for the BatchGetRecaptchaConfigs method.
166
185
  class GoogleFirebaseAppcheckV1betaBatchGetRecaptchaConfigsResponse
167
186
  include Google::Apis::Core::Hashable
@@ -327,11 +346,12 @@ module Google
327
346
 
328
347
  # An app's DeviceCheck configuration object. This configuration is used by
329
348
  # ExchangeDeviceCheckToken to validate device tokens issued to apps by
330
- # DeviceCheck. It also controls certain properties of the returned App Check
331
- # token, such as its ttl. Note that the Team ID registered with your app is used
332
- # as part of the validation process. Please register it via the Firebase Console
333
- # or programmatically via the [Firebase Management Service](https://firebase.
334
- # google.com/docs/projects/api/reference/rest/v1beta1/projects.iosApps/patch).
349
+ # DeviceCheck. It also controls certain properties of the returned `
350
+ # AppCheckToken`, such as its ttl. Note that the Team ID registered with your
351
+ # app is used as part of the validation process. Please register it via the
352
+ # Firebase Console or programmatically via the [Firebase Management Service](
353
+ # https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.
354
+ # iosApps/patch).
335
355
  class GoogleFirebaseAppcheckV1betaDeviceCheckConfig
336
356
  include Google::Apis::Core::Hashable
337
357
 
@@ -552,6 +572,27 @@ module Google
552
572
  end
553
573
  end
554
574
 
575
+ # Request message for the ExchangePlayIntegrityToken method.
576
+ class GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest
577
+ include Google::Apis::Core::Hashable
578
+
579
+ # Required. The [integrity verdict response token from Play Integrity](https://
580
+ # developer.android.com/google/play/integrity/verdict#decrypt-verify) issued to
581
+ # your app.
582
+ # Corresponds to the JSON property `playIntegrityToken`
583
+ # @return [String]
584
+ attr_accessor :play_integrity_token
585
+
586
+ def initialize(**args)
587
+ update!(**args)
588
+ end
589
+
590
+ # Update properties of this object
591
+ def update!(**args)
592
+ @play_integrity_token = args[:play_integrity_token] if args.key?(:play_integrity_token)
593
+ end
594
+ end
595
+
555
596
  # Request message for the ExchangeRecaptchaEnterpriseToken method.
556
597
  class GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest
557
598
  include Google::Apis::Core::Hashable
@@ -674,6 +715,48 @@ module Google
674
715
  end
675
716
  end
676
717
 
718
+ # Request message for the GeneratePlayIntegrityChallenge method.
719
+ class GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeRequest
720
+ include Google::Apis::Core::Hashable
721
+
722
+ def initialize(**args)
723
+ update!(**args)
724
+ end
725
+
726
+ # Update properties of this object
727
+ def update!(**args)
728
+ end
729
+ end
730
+
731
+ # Response message for the GeneratePlayIntegrityChallenge method.
732
+ class GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse
733
+ include Google::Apis::Core::Hashable
734
+
735
+ # A one-time use [challenge](https://developer.android.com/google/play/integrity/
736
+ # verdict#protect-against-replay-attacks) for the client to pass to the Play
737
+ # Integrity API.
738
+ # Corresponds to the JSON property `challenge`
739
+ # @return [String]
740
+ attr_accessor :challenge
741
+
742
+ # The duration from the time this challenge is minted until its expiration. This
743
+ # field is intended to ease client-side token management, since the client may
744
+ # have clock skew, but is still able to accurately measure a duration.
745
+ # Corresponds to the JSON property `ttl`
746
+ # @return [String]
747
+ attr_accessor :ttl
748
+
749
+ def initialize(**args)
750
+ update!(**args)
751
+ end
752
+
753
+ # Update properties of this object
754
+ def update!(**args)
755
+ @challenge = args[:challenge] if args.key?(:challenge)
756
+ @ttl = args[:ttl] if args.key?(:ttl)
757
+ end
758
+ end
759
+
677
760
  # Response message for the ListDebugTokens method.
678
761
  class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
679
762
  include Google::Apis::Core::Hashable
@@ -732,6 +815,41 @@ module Google
732
815
  end
733
816
  end
734
817
 
818
+ # An app's Play Integrity configuration object. This configuration controls
819
+ # certain properties of the `AppCheckToken` returned by
820
+ # ExchangePlayIntegrityToken, such as its ttl. Note that your registered SHA-256
821
+ # certificate fingerprints are used to validate tokens issued by the Play
822
+ # Integrity API; please register them via the Firebase Console or
823
+ # programmatically via the [Firebase Management Service](https://firebase.google.
824
+ # com/docs/projects/api/reference/rest/v1beta1/projects.androidApps.sha/create).
825
+ class GoogleFirebaseAppcheckV1betaPlayIntegrityConfig
826
+ include Google::Apis::Core::Hashable
827
+
828
+ # Required. The relative resource name of the Play Integrity configuration
829
+ # object, in the format: ``` projects/`project_number`/apps/`app_id`/
830
+ # playIntegrityConfig ```
831
+ # Corresponds to the JSON property `name`
832
+ # @return [String]
833
+ attr_accessor :name
834
+
835
+ # Specifies the duration for which App Check tokens exchanged from Play
836
+ # Integrity tokens will be valid. If unset, a default value of 1 hour is assumed.
837
+ # Must be between 30 minutes and 7 days, inclusive.
838
+ # Corresponds to the JSON property `tokenTtl`
839
+ # @return [String]
840
+ attr_accessor :token_ttl
841
+
842
+ def initialize(**args)
843
+ update!(**args)
844
+ end
845
+
846
+ # Update properties of this object
847
+ def update!(**args)
848
+ @name = args[:name] if args.key?(:name)
849
+ @token_ttl = args[:token_ttl] if args.key?(:token_ttl)
850
+ end
851
+ end
852
+
735
853
  # A JWK as specified by [section 4 of RFC 7517](https://tools.ietf.org/html/
736
854
  # rfc7517#section-4) and [section 6.3.1 of RFC 7518](https://tools.ietf.org/html/
737
855
  # rfc7518#section-6.3.1).
@@ -810,8 +928,8 @@ module Google
810
928
 
811
929
  # An app's reCAPTCHA v3 configuration object. This configuration is used by
812
930
  # ExchangeRecaptchaToken to validate reCAPTCHA tokens issued to apps by
813
- # reCAPTCHA v3. It also controls certain properties of the returned App Check
814
- # token, such as its ttl.
931
+ # reCAPTCHA v3. It also controls certain properties of the returned `
932
+ # AppCheckToken`, such as its ttl.
815
933
  class GoogleFirebaseAppcheckV1betaRecaptchaConfig
816
934
  include Google::Apis::Core::Hashable
817
935
 
@@ -859,7 +977,7 @@ module Google
859
977
  # An app's reCAPTCHA Enterprise configuration object. This configuration is used
860
978
  # by ExchangeRecaptchaEnterpriseToken to validate reCAPTCHA tokens issued to
861
979
  # apps by reCAPTCHA Enterprise. It also controls certain properties of the
862
- # returned App Check token, such as its ttl.
980
+ # returned `AppCheckToken`, such as its ttl.
863
981
  class GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig
864
982
  include Google::Apis::Core::Hashable
865
983
 
@@ -901,8 +1019,8 @@ module Google
901
1019
 
902
1020
  # An app's reCAPTCHA v3 configuration object. This configuration is used by
903
1021
  # 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.
1022
+ # reCAPTCHA v3. It also controls certain properties of the returned `
1023
+ # AppCheckToken`, such as its ttl.
906
1024
  class GoogleFirebaseAppcheckV1betaRecaptchaV3Config
907
1025
  include Google::Apis::Core::Hashable
908
1026
 
@@ -949,7 +1067,7 @@ module Google
949
1067
  end
950
1068
 
951
1069
  # An app's SafetyNet configuration object. This configuration controls certain
952
- # properties of the App Check token returned by ExchangeSafetyNetToken, such as
1070
+ # properties of the `AppCheckToken` returned by ExchangeSafetyNetToken, such as
953
1071
  # its ttl. Note that your registered SHA-256 certificate fingerprints are used
954
1072
  # to validate tokens issued by SafetyNet; please register them via the Firebase
955
1073
  # Console or programmatically via the [Firebase Management Service](https://
@@ -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.16.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220408"
25
+ REVISION = "20220513"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class GoogleFirebaseAppcheckV1betaBatchGetRecaptchaConfigsResponse
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -136,6 +142,12 @@ module Google
136
142
  include Google::Apis::Core::JsonObjectSupport
137
143
  end
138
144
 
145
+ class GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
139
151
  class GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest
140
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
153
 
@@ -172,6 +184,18 @@ module Google
172
184
  include Google::Apis::Core::JsonObjectSupport
173
185
  end
174
186
 
187
+ class GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
175
199
  class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
176
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
201
 
@@ -184,6 +208,12 @@ module Google
184
208
  include Google::Apis::Core::JsonObjectSupport
185
209
  end
186
210
 
211
+ class GoogleFirebaseAppcheckV1betaPlayIntegrityConfig
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
187
217
  class GoogleFirebaseAppcheckV1betaPublicJwk
188
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
219
 
@@ -279,6 +309,14 @@ module Google
279
309
  end
280
310
  end
281
311
 
312
+ class GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse
313
+ # @private
314
+ class Representation < Google::Apis::Core::JsonRepresentation
315
+ collection :configs, as: 'configs', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig::Representation
316
+
317
+ end
318
+ end
319
+
282
320
  class GoogleFirebaseAppcheckV1betaBatchGetRecaptchaConfigsResponse
283
321
  # @private
284
322
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -398,6 +436,13 @@ module Google
398
436
  end
399
437
  end
400
438
 
439
+ class GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest
440
+ # @private
441
+ class Representation < Google::Apis::Core::JsonRepresentation
442
+ property :play_integrity_token, as: 'playIntegrityToken'
443
+ end
444
+ end
445
+
401
446
  class GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest
402
447
  # @private
403
448
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -440,6 +485,20 @@ module Google
440
485
  end
441
486
  end
442
487
 
488
+ class GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeRequest
489
+ # @private
490
+ class Representation < Google::Apis::Core::JsonRepresentation
491
+ end
492
+ end
493
+
494
+ class GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse
495
+ # @private
496
+ class Representation < Google::Apis::Core::JsonRepresentation
497
+ property :challenge, as: 'challenge'
498
+ property :ttl, as: 'ttl'
499
+ end
500
+ end
501
+
443
502
  class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
444
503
  # @private
445
504
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -458,6 +517,14 @@ module Google
458
517
  end
459
518
  end
460
519
 
520
+ class GoogleFirebaseAppcheckV1betaPlayIntegrityConfig
521
+ # @private
522
+ class Representation < Google::Apis::Core::JsonRepresentation
523
+ property :name, as: 'name'
524
+ property :token_ttl, as: 'tokenTtl'
525
+ end
526
+ end
527
+
461
528
  class GoogleFirebaseAppcheckV1betaPublicJwk
462
529
  # @private
463
530
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -282,6 +282,45 @@ module Google
282
282
  execute_or_queue_command(command, &block)
283
283
  end
284
284
 
285
+ # Validates an [integrity verdict response token from Play Integrity](https://
286
+ # developer.android.com/google/play/integrity/verdict#decrypt-verify). If valid,
287
+ # returns an AppCheckToken.
288
+ # @param [String] app
289
+ # Required. The relative resource name of the Android app, in the format: ```
290
+ # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
291
+ # element can be replaced with the project ID of the Firebase project. Learn
292
+ # more about using project identifiers in Google's [AIP 2510](https://google.aip.
293
+ # dev/cloud/2510) standard.
294
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest] google_firebase_appcheck_v1beta_exchange_play_integrity_token_request_object
295
+ # @param [String] fields
296
+ # Selector specifying which fields to include in a partial response.
297
+ # @param [String] quota_user
298
+ # Available to use for quota purposes for server-side applications. Can be any
299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
300
+ # @param [Google::Apis::RequestOptions] options
301
+ # Request-specific options
302
+ #
303
+ # @yield [result, err] Result & error if block supplied
304
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
305
+ # @yieldparam err [StandardError] error object if request failed
306
+ #
307
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
308
+ #
309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
312
+ def exchange_project_app_play_integrity_token(app, google_firebase_appcheck_v1beta_exchange_play_integrity_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
313
+ command = make_simple_command(:post, 'v1beta/{+app}:exchangePlayIntegrityToken', options)
314
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest::Representation
315
+ command.request_object = google_firebase_appcheck_v1beta_exchange_play_integrity_token_request_object
316
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
317
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
318
+ command.params['app'] = app unless app.nil?
319
+ command.query['fields'] = fields unless fields.nil?
320
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
321
+ execute_or_queue_command(command, &block)
322
+ end
323
+
285
324
  # Validates a [reCAPTCHA Enterprise response token](https://cloud.google.com/
286
325
  # recaptcha-enterprise/docs/create-assessment#retrieve_token). If valid, returns
287
326
  # an App Check token AppCheckToken.
@@ -474,6 +513,47 @@ module Google
474
513
  execute_or_queue_command(command, &block)
475
514
  end
476
515
 
516
+ # Generates a challenge that protects the integrity of an immediately following
517
+ # integrity verdict request to the Play Integrity API. The next call to
518
+ # ExchangePlayIntegrityToken using the resulting integrity token will verify the
519
+ # presence and validity of the challenge. A challenge should not be reused for
520
+ # multiple calls.
521
+ # @param [String] app
522
+ # Required. The relative resource name of the app, in the format: ``` projects/`
523
+ # project_number`/apps/`app_id` ``` If necessary, the `project_number` element
524
+ # can be replaced with the project ID of the Firebase project. Learn more about
525
+ # using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/
526
+ # 2510) standard.
527
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeRequest] google_firebase_appcheck_v1beta_generate_play_integrity_challenge_request_object
528
+ # @param [String] fields
529
+ # Selector specifying which fields to include in a partial response.
530
+ # @param [String] quota_user
531
+ # Available to use for quota purposes for server-side applications. Can be any
532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
533
+ # @param [Google::Apis::RequestOptions] options
534
+ # Request-specific options
535
+ #
536
+ # @yield [result, err] Result & error if block supplied
537
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse] parsed result object
538
+ # @yieldparam err [StandardError] error object if request failed
539
+ #
540
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse]
541
+ #
542
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
543
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
544
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
545
+ def generate_project_app_play_integrity_challenge(app, google_firebase_appcheck_v1beta_generate_play_integrity_challenge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
546
+ command = make_simple_command(:post, 'v1beta/{+app}:generatePlayIntegrityChallenge', options)
547
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeRequest::Representation
548
+ command.request_object = google_firebase_appcheck_v1beta_generate_play_integrity_challenge_request_object
549
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse::Representation
550
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse
551
+ command.params['app'] = app unless app.nil?
552
+ command.query['fields'] = fields unless fields.nil?
553
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
554
+ execute_or_queue_command(command, &block)
555
+ end
556
+
477
557
  # Atomically gets the AppAttestConfigs for the specified list of apps.
478
558
  # @param [String] parent
479
559
  # Required. The parent project name shared by all AppAttestConfigs being
@@ -886,6 +966,116 @@ module Google
886
966
  execute_or_queue_command(command, &block)
887
967
  end
888
968
 
969
+ # Atomically gets the PlayIntegrityConfigs for the specified list of apps.
970
+ # @param [String] parent
971
+ # Required. The parent project name shared by all PlayIntegrityConfigs being
972
+ # retrieved, in the format ``` projects/`project_number` ``` The parent
973
+ # collection in the `name` field of any resource being retrieved must match this
974
+ # field, or the entire batch fails.
975
+ # @param [Array<String>, String] names
976
+ # Required. The relative resource names of the PlayIntegrityConfigs to retrieve,
977
+ # in the format ``` projects/`project_number`/apps/`app_id`/playIntegrityConfig `
978
+ # `` A maximum of 100 objects can be retrieved in a batch.
979
+ # @param [String] fields
980
+ # Selector specifying which fields to include in a partial response.
981
+ # @param [String] quota_user
982
+ # Available to use for quota purposes for server-side applications. Can be any
983
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
984
+ # @param [Google::Apis::RequestOptions] options
985
+ # Request-specific options
986
+ #
987
+ # @yield [result, err] Result & error if block supplied
988
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse] parsed result object
989
+ # @yieldparam err [StandardError] error object if request failed
990
+ #
991
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse]
992
+ #
993
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
994
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
995
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
996
+ def batch_project_app_play_integrity_config_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
997
+ command = make_simple_command(:get, 'v1beta/{+parent}/apps/-/playIntegrityConfig:batchGet', options)
998
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse::Representation
999
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse
1000
+ command.params['parent'] = parent unless parent.nil?
1001
+ command.query['names'] = names unless names.nil?
1002
+ command.query['fields'] = fields unless fields.nil?
1003
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1004
+ execute_or_queue_command(command, &block)
1005
+ end
1006
+
1007
+ # Gets the PlayIntegrityConfig for the specified app.
1008
+ # @param [String] name
1009
+ # Required. The relative resource name of the PlayIntegrityConfig, in the format:
1010
+ # ``` projects/`project_number`/apps/`app_id`/playIntegrityConfig ```
1011
+ # @param [String] fields
1012
+ # Selector specifying which fields to include in a partial response.
1013
+ # @param [String] quota_user
1014
+ # Available to use for quota purposes for server-side applications. Can be any
1015
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1016
+ # @param [Google::Apis::RequestOptions] options
1017
+ # Request-specific options
1018
+ #
1019
+ # @yield [result, err] Result & error if block supplied
1020
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig] parsed result object
1021
+ # @yieldparam err [StandardError] error object if request failed
1022
+ #
1023
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig]
1024
+ #
1025
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1026
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1027
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1028
+ def get_project_app_play_integrity_config(name, fields: nil, quota_user: nil, options: nil, &block)
1029
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
1030
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig::Representation
1031
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig
1032
+ command.params['name'] = name unless name.nil?
1033
+ command.query['fields'] = fields unless fields.nil?
1034
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1035
+ execute_or_queue_command(command, &block)
1036
+ end
1037
+
1038
+ # Updates the PlayIntegrityConfig for the specified app. While this
1039
+ # configuration is incomplete or invalid, the app will be unable to exchange
1040
+ # Play Integrity tokens for App Check tokens.
1041
+ # @param [String] name
1042
+ # Required. The relative resource name of the Play Integrity configuration
1043
+ # object, in the format: ``` projects/`project_number`/apps/`app_id`/
1044
+ # playIntegrityConfig ```
1045
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig] google_firebase_appcheck_v1beta_play_integrity_config_object
1046
+ # @param [String] update_mask
1047
+ # Required. A comma-separated list of names of fields in the PlayIntegrityConfig
1048
+ # Gets to update. Example: `token_ttl`.
1049
+ # @param [String] fields
1050
+ # Selector specifying which fields to include in a partial response.
1051
+ # @param [String] quota_user
1052
+ # Available to use for quota purposes for server-side applications. Can be any
1053
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1054
+ # @param [Google::Apis::RequestOptions] options
1055
+ # Request-specific options
1056
+ #
1057
+ # @yield [result, err] Result & error if block supplied
1058
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig] parsed result object
1059
+ # @yieldparam err [StandardError] error object if request failed
1060
+ #
1061
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig]
1062
+ #
1063
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1064
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1065
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1066
+ def patch_project_app_play_integrity_config(name, google_firebase_appcheck_v1beta_play_integrity_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1067
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
1068
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig::Representation
1069
+ command.request_object = google_firebase_appcheck_v1beta_play_integrity_config_object
1070
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig::Representation
1071
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig
1072
+ command.params['name'] = name unless name.nil?
1073
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1074
+ command.query['fields'] = fields unless fields.nil?
1075
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1076
+ execute_or_queue_command(command, &block)
1077
+ end
1078
+
889
1079
  # Atomically gets the RecaptchaConfigs for the specified list of apps. For
890
1080
  # security reasons, the `site_secret` field is never populated in the response.
891
1081
  # @param [String] parent
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.16.0
4
+ version: 0.19.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-04-18 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.19.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Firebase App Check API V1beta