google-apis-firebaseappcheck_v1beta 0.16.0 → 0.17.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/firebaseappcheck_v1beta/classes.rb +136 -17
- data/lib/google/apis/firebaseappcheck_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/firebaseappcheck_v1beta/representations.rb +67 -0
- data/lib/google/apis/firebaseappcheck_v1beta/service.rb +206 -10
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40d21f46b85ab089e7ba759e2b6e45aa36c363552b2c6f4f3d7bcad7d55259b3
|
4
|
+
data.tar.gz: dc0e6b315bae593bc0dddfd994ec4321d2f0ae48220f2bd222b3c0dd98ff6075
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0da783c57814c07ca6b369338bc23abec9c2b7e0d868ea24016724d8762c85521d6ba2dccb6a4488e771afee96c0b8b2e33582032e5329644a1d694889bc4315
|
7
|
+
data.tar.gz: 1285bb7d50b5fbc53b148b862aa14c47de572aa858cbcb265c668d465216227b9e1a96940fe2714e9da35c3e986544ab48c7351095cd505e4f2508e25fffdea1
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
@@ -61,9 +61,10 @@ module Google
|
|
61
61
|
class GoogleFirebaseAppcheckV1betaAppCheckToken
|
62
62
|
include Google::Apis::Core::Hashable
|
63
63
|
|
64
|
-
# An App Check token. App Check tokens
|
65
|
-
# html/rfc7519) containing claims that
|
66
|
-
# project. This token is used to access
|
64
|
+
# This field has been renamed to `token`. An App Check token. App Check tokens
|
65
|
+
# are signed [JWTs](https://tools.ietf.org/html/rfc7519) containing claims that
|
66
|
+
# identify the attested app and Firebase project. This token is used to access
|
67
|
+
# Firebase services protected by App Check.
|
67
68
|
# Corresponds to the JSON property `attestationToken`
|
68
69
|
# @return [String]
|
69
70
|
attr_accessor :attestation_token
|
@@ -162,6 +163,25 @@ module Google
|
|
162
163
|
end
|
163
164
|
end
|
164
165
|
|
166
|
+
# Response message for the BatchGetPlayIntegrityConfigs method.
|
167
|
+
class GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse
|
168
|
+
include Google::Apis::Core::Hashable
|
169
|
+
|
170
|
+
# PlayIntegrityConfigs retrieved.
|
171
|
+
# Corresponds to the JSON property `configs`
|
172
|
+
# @return [Array<Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig>]
|
173
|
+
attr_accessor :configs
|
174
|
+
|
175
|
+
def initialize(**args)
|
176
|
+
update!(**args)
|
177
|
+
end
|
178
|
+
|
179
|
+
# Update properties of this object
|
180
|
+
def update!(**args)
|
181
|
+
@configs = args[:configs] if args.key?(:configs)
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
165
185
|
# Response message for the BatchGetRecaptchaConfigs method.
|
166
186
|
class GoogleFirebaseAppcheckV1betaBatchGetRecaptchaConfigsResponse
|
167
187
|
include Google::Apis::Core::Hashable
|
@@ -327,11 +347,12 @@ module Google
|
|
327
347
|
|
328
348
|
# An app's DeviceCheck configuration object. This configuration is used by
|
329
349
|
# ExchangeDeviceCheckToken to validate device tokens issued to apps by
|
330
|
-
# DeviceCheck. It also controls certain properties of the returned
|
331
|
-
#
|
332
|
-
# as part of the validation process. Please register it via the
|
333
|
-
# or programmatically via the [Firebase Management Service](
|
334
|
-
# google.com/docs/projects/api/reference/rest/v1beta1/projects.
|
350
|
+
# DeviceCheck. It also controls certain properties of the returned `
|
351
|
+
# AppCheckToken`, such as its ttl. Note that the Team ID registered with your
|
352
|
+
# app is used as part of the validation process. Please register it via the
|
353
|
+
# Firebase Console or programmatically via the [Firebase Management Service](
|
354
|
+
# https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.
|
355
|
+
# iosApps/patch).
|
335
356
|
class GoogleFirebaseAppcheckV1betaDeviceCheckConfig
|
336
357
|
include Google::Apis::Core::Hashable
|
337
358
|
|
@@ -552,6 +573,27 @@ module Google
|
|
552
573
|
end
|
553
574
|
end
|
554
575
|
|
576
|
+
# Request message for the ExchangePlayIntegrityToken method.
|
577
|
+
class GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest
|
578
|
+
include Google::Apis::Core::Hashable
|
579
|
+
|
580
|
+
# Required. The [integrity verdict response token from Play Integrity](https://
|
581
|
+
# developer.android.com/google/play/integrity/verdict#decrypt-verify) issued to
|
582
|
+
# your app.
|
583
|
+
# Corresponds to the JSON property `playIntegrityToken`
|
584
|
+
# @return [String]
|
585
|
+
attr_accessor :play_integrity_token
|
586
|
+
|
587
|
+
def initialize(**args)
|
588
|
+
update!(**args)
|
589
|
+
end
|
590
|
+
|
591
|
+
# Update properties of this object
|
592
|
+
def update!(**args)
|
593
|
+
@play_integrity_token = args[:play_integrity_token] if args.key?(:play_integrity_token)
|
594
|
+
end
|
595
|
+
end
|
596
|
+
|
555
597
|
# Request message for the ExchangeRecaptchaEnterpriseToken method.
|
556
598
|
class GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest
|
557
599
|
include Google::Apis::Core::Hashable
|
@@ -674,6 +716,48 @@ module Google
|
|
674
716
|
end
|
675
717
|
end
|
676
718
|
|
719
|
+
# Request message for the GeneratePlayIntegrityChallenge method.
|
720
|
+
class GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeRequest
|
721
|
+
include Google::Apis::Core::Hashable
|
722
|
+
|
723
|
+
def initialize(**args)
|
724
|
+
update!(**args)
|
725
|
+
end
|
726
|
+
|
727
|
+
# Update properties of this object
|
728
|
+
def update!(**args)
|
729
|
+
end
|
730
|
+
end
|
731
|
+
|
732
|
+
# Response message for the GeneratePlayIntegrityChallenge method.
|
733
|
+
class GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse
|
734
|
+
include Google::Apis::Core::Hashable
|
735
|
+
|
736
|
+
# A one-time use [challenge](https://developer.android.com/google/play/integrity/
|
737
|
+
# verdict#protect-against-replay-attacks) for the client to pass to the Play
|
738
|
+
# Integrity API.
|
739
|
+
# Corresponds to the JSON property `challenge`
|
740
|
+
# @return [String]
|
741
|
+
attr_accessor :challenge
|
742
|
+
|
743
|
+
# The duration from the time this challenge is minted until its expiration. This
|
744
|
+
# field is intended to ease client-side token management, since the client may
|
745
|
+
# have clock skew, but is still able to accurately measure a duration.
|
746
|
+
# Corresponds to the JSON property `ttl`
|
747
|
+
# @return [String]
|
748
|
+
attr_accessor :ttl
|
749
|
+
|
750
|
+
def initialize(**args)
|
751
|
+
update!(**args)
|
752
|
+
end
|
753
|
+
|
754
|
+
# Update properties of this object
|
755
|
+
def update!(**args)
|
756
|
+
@challenge = args[:challenge] if args.key?(:challenge)
|
757
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
758
|
+
end
|
759
|
+
end
|
760
|
+
|
677
761
|
# Response message for the ListDebugTokens method.
|
678
762
|
class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
|
679
763
|
include Google::Apis::Core::Hashable
|
@@ -732,6 +816,41 @@ module Google
|
|
732
816
|
end
|
733
817
|
end
|
734
818
|
|
819
|
+
# An app's Play Integrity configuration object. This configuration controls
|
820
|
+
# certain properties of the `AppCheckToken` returned by
|
821
|
+
# ExchangePlayIntegrityToken, such as its ttl. Note that your registered SHA-256
|
822
|
+
# certificate fingerprints are used to validate tokens issued by the Play
|
823
|
+
# Integrity API; please register them via the Firebase Console or
|
824
|
+
# programmatically via the [Firebase Management Service](https://firebase.google.
|
825
|
+
# com/docs/projects/api/reference/rest/v1beta1/projects.androidApps.sha/create).
|
826
|
+
class GoogleFirebaseAppcheckV1betaPlayIntegrityConfig
|
827
|
+
include Google::Apis::Core::Hashable
|
828
|
+
|
829
|
+
# Required. The relative resource name of the Play Integrity configuration
|
830
|
+
# object, in the format: ``` projects/`project_number`/apps/`app_id`/
|
831
|
+
# playIntegrityConfig ```
|
832
|
+
# Corresponds to the JSON property `name`
|
833
|
+
# @return [String]
|
834
|
+
attr_accessor :name
|
835
|
+
|
836
|
+
# Specifies the duration for which App Check tokens exchanged from Play
|
837
|
+
# Integrity tokens will be valid. If unset, a default value of 1 hour is assumed.
|
838
|
+
# Must be between 30 minutes and 7 days, inclusive.
|
839
|
+
# Corresponds to the JSON property `tokenTtl`
|
840
|
+
# @return [String]
|
841
|
+
attr_accessor :token_ttl
|
842
|
+
|
843
|
+
def initialize(**args)
|
844
|
+
update!(**args)
|
845
|
+
end
|
846
|
+
|
847
|
+
# Update properties of this object
|
848
|
+
def update!(**args)
|
849
|
+
@name = args[:name] if args.key?(:name)
|
850
|
+
@token_ttl = args[:token_ttl] if args.key?(:token_ttl)
|
851
|
+
end
|
852
|
+
end
|
853
|
+
|
735
854
|
# A JWK as specified by [section 4 of RFC 7517](https://tools.ietf.org/html/
|
736
855
|
# rfc7517#section-4) and [section 6.3.1 of RFC 7518](https://tools.ietf.org/html/
|
737
856
|
# rfc7518#section-6.3.1).
|
@@ -808,10 +927,10 @@ module Google
|
|
808
927
|
end
|
809
928
|
end
|
810
929
|
|
811
|
-
#
|
812
|
-
#
|
813
|
-
# reCAPTCHA
|
814
|
-
#
|
930
|
+
# This REST resource has been renamed to RecaptchaV3Config. An app's reCAPTCHA
|
931
|
+
# v3 configuration object. This configuration is used by ExchangeRecaptchaToken
|
932
|
+
# to validate reCAPTCHA tokens issued to apps by reCAPTCHA v3. It also controls
|
933
|
+
# certain properties of the returned `AppCheckToken`, such as its ttl.
|
815
934
|
class GoogleFirebaseAppcheckV1betaRecaptchaConfig
|
816
935
|
include Google::Apis::Core::Hashable
|
817
936
|
|
@@ -859,7 +978,7 @@ module Google
|
|
859
978
|
# An app's reCAPTCHA Enterprise configuration object. This configuration is used
|
860
979
|
# by ExchangeRecaptchaEnterpriseToken to validate reCAPTCHA tokens issued to
|
861
980
|
# apps by reCAPTCHA Enterprise. It also controls certain properties of the
|
862
|
-
# returned
|
981
|
+
# returned `AppCheckToken`, such as its ttl.
|
863
982
|
class GoogleFirebaseAppcheckV1betaRecaptchaEnterpriseConfig
|
864
983
|
include Google::Apis::Core::Hashable
|
865
984
|
|
@@ -901,8 +1020,8 @@ module Google
|
|
901
1020
|
|
902
1021
|
# An app's reCAPTCHA v3 configuration object. This configuration is used by
|
903
1022
|
# ExchangeRecaptchaV3Token to validate reCAPTCHA tokens issued to apps by
|
904
|
-
# reCAPTCHA v3. It also controls certain properties of the returned
|
905
|
-
#
|
1023
|
+
# reCAPTCHA v3. It also controls certain properties of the returned `
|
1024
|
+
# AppCheckToken`, such as its ttl.
|
906
1025
|
class GoogleFirebaseAppcheckV1betaRecaptchaV3Config
|
907
1026
|
include Google::Apis::Core::Hashable
|
908
1027
|
|
@@ -949,7 +1068,7 @@ module Google
|
|
949
1068
|
end
|
950
1069
|
|
951
1070
|
# An app's SafetyNet configuration object. This configuration controls certain
|
952
|
-
# properties of the
|
1071
|
+
# properties of the `AppCheckToken` returned by ExchangeSafetyNetToken, such as
|
953
1072
|
# its ttl. Note that your registered SHA-256 certificate fingerprints are used
|
954
1073
|
# to validate tokens issued by SafetyNet; please register them via the Firebase
|
955
1074
|
# 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.
|
19
|
+
GEM_VERSION = "0.17.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 = "
|
25
|
+
REVISION = "20220425"
|
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.
|
@@ -321,8 +360,9 @@ module Google
|
|
321
360
|
execute_or_queue_command(command, &block)
|
322
361
|
end
|
323
362
|
|
324
|
-
#
|
325
|
-
# recaptcha/docs/v3).
|
363
|
+
# This method has been renamed to ExchangeRecaptchaV3Token. Validates a [
|
364
|
+
# reCAPTCHA v3 response token](https://developers.google.com/recaptcha/docs/v3).
|
365
|
+
# If valid, returns an AppCheckToken.
|
326
366
|
# @param [String] app
|
327
367
|
# Required. The relative resource name of the web app, in the format: ```
|
328
368
|
# projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
|
@@ -474,6 +514,47 @@ module Google
|
|
474
514
|
execute_or_queue_command(command, &block)
|
475
515
|
end
|
476
516
|
|
517
|
+
# Generates a challenge that protects the integrity of an immediately following
|
518
|
+
# integrity verdict request to the Play Integrity API. The next call to
|
519
|
+
# ExchangePlayIntegrityToken using the resulting integrity token will verify the
|
520
|
+
# presence and validity of the challenge. A challenge should not be reused for
|
521
|
+
# multiple calls.
|
522
|
+
# @param [String] app
|
523
|
+
# Required. The relative resource name of the app, in the format: ``` projects/`
|
524
|
+
# project_number`/apps/`app_id` ``` If necessary, the `project_number` element
|
525
|
+
# can be replaced with the project ID of the Firebase project. Learn more about
|
526
|
+
# using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/
|
527
|
+
# 2510) standard.
|
528
|
+
# @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeRequest] google_firebase_appcheck_v1beta_generate_play_integrity_challenge_request_object
|
529
|
+
# @param [String] fields
|
530
|
+
# Selector specifying which fields to include in a partial response.
|
531
|
+
# @param [String] quota_user
|
532
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
533
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
534
|
+
# @param [Google::Apis::RequestOptions] options
|
535
|
+
# Request-specific options
|
536
|
+
#
|
537
|
+
# @yield [result, err] Result & error if block supplied
|
538
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse] parsed result object
|
539
|
+
# @yieldparam err [StandardError] error object if request failed
|
540
|
+
#
|
541
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse]
|
542
|
+
#
|
543
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
544
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
545
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
546
|
+
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)
|
547
|
+
command = make_simple_command(:post, 'v1beta/{+app}:generatePlayIntegrityChallenge', options)
|
548
|
+
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeRequest::Representation
|
549
|
+
command.request_object = google_firebase_appcheck_v1beta_generate_play_integrity_challenge_request_object
|
550
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse::Representation
|
551
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGeneratePlayIntegrityChallengeResponse
|
552
|
+
command.params['app'] = app unless app.nil?
|
553
|
+
command.query['fields'] = fields unless fields.nil?
|
554
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
555
|
+
execute_or_queue_command(command, &block)
|
556
|
+
end
|
557
|
+
|
477
558
|
# Atomically gets the AppAttestConfigs for the specified list of apps.
|
478
559
|
# @param [String] parent
|
479
560
|
# Required. The parent project name shared by all AppAttestConfigs being
|
@@ -886,8 +967,120 @@ module Google
|
|
886
967
|
execute_or_queue_command(command, &block)
|
887
968
|
end
|
888
969
|
|
889
|
-
# Atomically gets the
|
890
|
-
#
|
970
|
+
# Atomically gets the PlayIntegrityConfigs for the specified list of apps.
|
971
|
+
# @param [String] parent
|
972
|
+
# Required. The parent project name shared by all PlayIntegrityConfigs being
|
973
|
+
# retrieved, in the format ``` projects/`project_number` ``` The parent
|
974
|
+
# collection in the `name` field of any resource being retrieved must match this
|
975
|
+
# field, or the entire batch fails.
|
976
|
+
# @param [Array<String>, String] names
|
977
|
+
# Required. The relative resource names of the PlayIntegrityConfigs to retrieve,
|
978
|
+
# in the format ``` projects/`project_number`/apps/`app_id`/playIntegrityConfig `
|
979
|
+
# `` A maximum of 100 objects can be retrieved in a batch.
|
980
|
+
# @param [String] fields
|
981
|
+
# Selector specifying which fields to include in a partial response.
|
982
|
+
# @param [String] quota_user
|
983
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
984
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
985
|
+
# @param [Google::Apis::RequestOptions] options
|
986
|
+
# Request-specific options
|
987
|
+
#
|
988
|
+
# @yield [result, err] Result & error if block supplied
|
989
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse] parsed result object
|
990
|
+
# @yieldparam err [StandardError] error object if request failed
|
991
|
+
#
|
992
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse]
|
993
|
+
#
|
994
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
995
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
996
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
997
|
+
def batch_project_app_play_integrity_config_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
|
998
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/apps/-/playIntegrityConfig:batchGet', options)
|
999
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse::Representation
|
1000
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetPlayIntegrityConfigsResponse
|
1001
|
+
command.params['parent'] = parent unless parent.nil?
|
1002
|
+
command.query['names'] = names unless names.nil?
|
1003
|
+
command.query['fields'] = fields unless fields.nil?
|
1004
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1005
|
+
execute_or_queue_command(command, &block)
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
# Gets the PlayIntegrityConfig for the specified app.
|
1009
|
+
# @param [String] name
|
1010
|
+
# Required. The relative resource name of the PlayIntegrityConfig, in the format:
|
1011
|
+
# ``` projects/`project_number`/apps/`app_id`/playIntegrityConfig ```
|
1012
|
+
# @param [String] fields
|
1013
|
+
# Selector specifying which fields to include in a partial response.
|
1014
|
+
# @param [String] quota_user
|
1015
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1016
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1017
|
+
# @param [Google::Apis::RequestOptions] options
|
1018
|
+
# Request-specific options
|
1019
|
+
#
|
1020
|
+
# @yield [result, err] Result & error if block supplied
|
1021
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig] parsed result object
|
1022
|
+
# @yieldparam err [StandardError] error object if request failed
|
1023
|
+
#
|
1024
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig]
|
1025
|
+
#
|
1026
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1027
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1028
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1029
|
+
def get_project_app_play_integrity_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
1030
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
1031
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig::Representation
|
1032
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig
|
1033
|
+
command.params['name'] = name unless name.nil?
|
1034
|
+
command.query['fields'] = fields unless fields.nil?
|
1035
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1036
|
+
execute_or_queue_command(command, &block)
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
# Updates the PlayIntegrityConfig for the specified app. While this
|
1040
|
+
# configuration is incomplete or invalid, the app will be unable to exchange
|
1041
|
+
# Play Integrity tokens for App Check tokens.
|
1042
|
+
# @param [String] name
|
1043
|
+
# Required. The relative resource name of the Play Integrity configuration
|
1044
|
+
# object, in the format: ``` projects/`project_number`/apps/`app_id`/
|
1045
|
+
# playIntegrityConfig ```
|
1046
|
+
# @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig] google_firebase_appcheck_v1beta_play_integrity_config_object
|
1047
|
+
# @param [String] update_mask
|
1048
|
+
# Required. A comma-separated list of names of fields in the PlayIntegrityConfig
|
1049
|
+
# Gets to update. Example: `token_ttl`.
|
1050
|
+
# @param [String] fields
|
1051
|
+
# Selector specifying which fields to include in a partial response.
|
1052
|
+
# @param [String] quota_user
|
1053
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1054
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1055
|
+
# @param [Google::Apis::RequestOptions] options
|
1056
|
+
# Request-specific options
|
1057
|
+
#
|
1058
|
+
# @yield [result, err] Result & error if block supplied
|
1059
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig] parsed result object
|
1060
|
+
# @yieldparam err [StandardError] error object if request failed
|
1061
|
+
#
|
1062
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig]
|
1063
|
+
#
|
1064
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1065
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1066
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1067
|
+
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)
|
1068
|
+
command = make_simple_command(:patch, 'v1beta/{+name}', options)
|
1069
|
+
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig::Representation
|
1070
|
+
command.request_object = google_firebase_appcheck_v1beta_play_integrity_config_object
|
1071
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig::Representation
|
1072
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPlayIntegrityConfig
|
1073
|
+
command.params['name'] = name unless name.nil?
|
1074
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1075
|
+
command.query['fields'] = fields unless fields.nil?
|
1076
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1077
|
+
execute_or_queue_command(command, &block)
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
# The RecaptchaConfig REST resource has been renamed to RecaptchaV3Config.
|
1081
|
+
# Please use BatchGetRecaptchaV3Configs instead. Atomically gets the
|
1082
|
+
# RecaptchaConfigs for the specified list of apps. For security reasons, the `
|
1083
|
+
# site_secret` field is never populated in the response.
|
891
1084
|
# @param [String] parent
|
892
1085
|
# Required. The parent project name shared by all RecaptchaConfigs being
|
893
1086
|
# retrieved, in the format ``` projects/`project_number` ``` The parent
|
@@ -925,8 +1118,10 @@ module Google
|
|
925
1118
|
execute_or_queue_command(command, &block)
|
926
1119
|
end
|
927
1120
|
|
928
|
-
#
|
929
|
-
#
|
1121
|
+
# The RecaptchaConfig REST resource has been renamed to RecaptchaV3Config.
|
1122
|
+
# Please use GetRecaptchaV3Config instead. Gets the RecaptchaConfig for the
|
1123
|
+
# specified app. For security reasons, the `site_secret` field is never
|
1124
|
+
# populated in the response.
|
930
1125
|
# @param [String] name
|
931
1126
|
# Required. The relative resource name of the RecaptchaConfig, in the format: ```
|
932
1127
|
# projects/`project_number`/apps/`app_id`/recaptchaConfig ```
|
@@ -957,10 +1152,11 @@ module Google
|
|
957
1152
|
execute_or_queue_command(command, &block)
|
958
1153
|
end
|
959
1154
|
|
960
|
-
#
|
961
|
-
#
|
962
|
-
#
|
963
|
-
#
|
1155
|
+
# The RecaptchaConfig REST resource has been renamed to RecaptchaV3Config.
|
1156
|
+
# Please use UpdateRecaptchaV3Config instead. Updates the RecaptchaConfig for
|
1157
|
+
# the specified app. While this configuration is incomplete or invalid, the app
|
1158
|
+
# will be unable to exchange reCAPTCHA tokens for App Check tokens. For security
|
1159
|
+
# reasons, the `site_secret` field is never populated in the response.
|
964
1160
|
# @param [String] name
|
965
1161
|
# Required. The relative resource name of the reCAPTCHA v3 configuration object,
|
966
1162
|
# in the format: ``` projects/`project_number`/apps/`app_id`/recaptchaConfig ```
|
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.
|
4
|
+
version: 0.17.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-
|
11
|
+
date: 2022-05-09 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.17.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: []
|