google-apis-firebaseappcheck_v1beta 0.10.0 → 0.13.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 +13 -0
- data/lib/google/apis/firebaseappcheck_v1beta/classes.rb +94 -30
- data/lib/google/apis/firebaseappcheck_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/firebaseappcheck_v1beta/representations.rb +38 -8
- data/lib/google/apis/firebaseappcheck_v1beta/service.rb +90 -57
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92ea483c616ff5168b7912af06a5fd1275734b724ac71ba7ae03586f6ed6a3c2
|
4
|
+
data.tar.gz: 37fa8fa441f4fcea401194cd817d822dac858a400e790cc37be90a5279e6def1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c38119f463be59ed2e1ccf1923491e0753c34b059886f6bf363b6ac4d6ba011a75aa5550bb4db15c7c3a2d9b8a8af78c4b2d050c5d6211927bd5893e9b52ac3
|
7
|
+
data.tar.gz: ae71e61a7c7ad6a8190f62e448d1eeec01dd0243c543a3bfbf7b48fc47c3161e702331474786c700f35df8fd99f9050dfff22d9d233a1684442133682d9131ad
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-firebaseappcheck_v1beta
|
2
2
|
|
3
|
+
### v0.13.0 (2022-03-22)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220318
|
6
|
+
|
7
|
+
### v0.12.0 (2022-03-15)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220311
|
10
|
+
|
11
|
+
### v0.11.0 (2022-01-19)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220116
|
14
|
+
* Regenerated using generator version 0.4.1
|
15
|
+
|
3
16
|
### v0.10.0 (2021-12-14)
|
4
17
|
|
5
18
|
* Unspecified changes
|
@@ -22,34 +22,6 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module FirebaseappcheckV1beta
|
24
24
|
|
25
|
-
# Response message for the GenerateAppAttestChallenge method.
|
26
|
-
class GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse
|
27
|
-
include Google::Apis::Core::Hashable
|
28
|
-
|
29
|
-
# A one-time use challenge for the client to pass to the App Attest API.
|
30
|
-
# Corresponds to the JSON property `challenge`
|
31
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
32
|
-
# @return [String]
|
33
|
-
attr_accessor :challenge
|
34
|
-
|
35
|
-
# The duration from the time this challenge is minted until its expiration. This
|
36
|
-
# field is intended to ease client-side token management, since the client may
|
37
|
-
# have clock skew, but is still able to accurately measure a duration.
|
38
|
-
# Corresponds to the JSON property `ttl`
|
39
|
-
# @return [String]
|
40
|
-
attr_accessor :ttl
|
41
|
-
|
42
|
-
def initialize(**args)
|
43
|
-
update!(**args)
|
44
|
-
end
|
45
|
-
|
46
|
-
# Update properties of this object
|
47
|
-
def update!(**args)
|
48
|
-
@challenge = args[:challenge] if args.key?(:challenge)
|
49
|
-
@ttl = args[:ttl] if args.key?(:ttl)
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
25
|
# An app's App Attest configuration object. This configuration controls certain
|
54
26
|
# properties of the App Check token returned by ExchangeAppAttestAttestation and
|
55
27
|
# ExchangeAppAttestAssertion, such as its ttl. Note that the Team ID registered
|
@@ -84,6 +56,44 @@ module Google
|
|
84
56
|
end
|
85
57
|
end
|
86
58
|
|
59
|
+
# Encapsulates an *App Check token*, which are used to access Firebase services
|
60
|
+
# protected by App Check.
|
61
|
+
class GoogleFirebaseAppcheckV1betaAppCheckToken
|
62
|
+
include Google::Apis::Core::Hashable
|
63
|
+
|
64
|
+
# An App Check token. App Check tokens are signed [JWTs](https://tools.ietf.org/
|
65
|
+
# html/rfc7519) containing claims that identify the attested app and Firebase
|
66
|
+
# project. This token is used to access Firebase services protected by App Check.
|
67
|
+
# Corresponds to the JSON property `attestationToken`
|
68
|
+
# @return [String]
|
69
|
+
attr_accessor :attestation_token
|
70
|
+
|
71
|
+
# An App Check token. App Check tokens are signed [JWTs](https://tools.ietf.org/
|
72
|
+
# html/rfc7519) containing claims that identify the attested app and Firebase
|
73
|
+
# project. This token is used to access Firebase services protected by App Check.
|
74
|
+
# Corresponds to the JSON property `token`
|
75
|
+
# @return [String]
|
76
|
+
attr_accessor :token
|
77
|
+
|
78
|
+
# The duration from the time this token is minted until its expiration. This
|
79
|
+
# field is intended to ease client-side token management, since the client may
|
80
|
+
# have clock skew, but is still able to accurately measure a duration.
|
81
|
+
# Corresponds to the JSON property `ttl`
|
82
|
+
# @return [String]
|
83
|
+
attr_accessor :ttl
|
84
|
+
|
85
|
+
def initialize(**args)
|
86
|
+
update!(**args)
|
87
|
+
end
|
88
|
+
|
89
|
+
# Update properties of this object
|
90
|
+
def update!(**args)
|
91
|
+
@attestation_token = args[:attestation_token] if args.key?(:attestation_token)
|
92
|
+
@token = args[:token] if args.key?(:token)
|
93
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
87
97
|
# Encapsulates an *App Check token*, which are used to access Firebase services
|
88
98
|
# protected by App Check.
|
89
99
|
class GoogleFirebaseAppcheckV1betaAttestationTokenResponse
|
@@ -432,6 +442,12 @@ module Google
|
|
432
442
|
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
|
433
443
|
include Google::Apis::Core::Hashable
|
434
444
|
|
445
|
+
# Encapsulates an *App Check token*, which are used to access Firebase services
|
446
|
+
# protected by App Check.
|
447
|
+
# Corresponds to the JSON property `appCheckToken`
|
448
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
|
449
|
+
attr_accessor :app_check_token
|
450
|
+
|
435
451
|
# An artifact that can be used in future calls to ExchangeAppAttestAssertion.
|
436
452
|
# Corresponds to the JSON property `artifact`
|
437
453
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
@@ -450,6 +466,7 @@ module Google
|
|
450
466
|
|
451
467
|
# Update properties of this object
|
452
468
|
def update!(**args)
|
469
|
+
@app_check_token = args[:app_check_token] if args.key?(:app_check_token)
|
453
470
|
@artifact = args[:artifact] if args.key?(:artifact)
|
454
471
|
@attestation_token = args[:attestation_token] if args.key?(:attestation_token)
|
455
472
|
end
|
@@ -557,6 +574,26 @@ module Google
|
|
557
574
|
end
|
558
575
|
end
|
559
576
|
|
577
|
+
# Request message for the ExchangeRecaptchaV3Token method.
|
578
|
+
class GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest
|
579
|
+
include Google::Apis::Core::Hashable
|
580
|
+
|
581
|
+
# Required. The reCAPTCHA token as returned by the [reCAPTCHA v3 JavaScript API](
|
582
|
+
# https://developers.google.com/recaptcha/docs/v3).
|
583
|
+
# Corresponds to the JSON property `recaptchaV3Token`
|
584
|
+
# @return [String]
|
585
|
+
attr_accessor :recaptcha_v3_token
|
586
|
+
|
587
|
+
def initialize(**args)
|
588
|
+
update!(**args)
|
589
|
+
end
|
590
|
+
|
591
|
+
# Update properties of this object
|
592
|
+
def update!(**args)
|
593
|
+
@recaptcha_v3_token = args[:recaptcha_v3_token] if args.key?(:recaptcha_v3_token)
|
594
|
+
end
|
595
|
+
end
|
596
|
+
|
560
597
|
# Request message for the ExchangeSafetyNetToken method.
|
561
598
|
class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
|
562
599
|
include Google::Apis::Core::Hashable
|
@@ -590,6 +627,34 @@ module Google
|
|
590
627
|
end
|
591
628
|
end
|
592
629
|
|
630
|
+
# Response message for the GenerateAppAttestChallenge method.
|
631
|
+
class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
|
632
|
+
include Google::Apis::Core::Hashable
|
633
|
+
|
634
|
+
# A one-time use challenge for the client to pass to the App Attest API.
|
635
|
+
# Corresponds to the JSON property `challenge`
|
636
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
637
|
+
# @return [String]
|
638
|
+
attr_accessor :challenge
|
639
|
+
|
640
|
+
# The duration from the time this challenge is minted until its expiration. This
|
641
|
+
# field is intended to ease client-side token management, since the client may
|
642
|
+
# have clock skew, but is still able to accurately measure a duration.
|
643
|
+
# Corresponds to the JSON property `ttl`
|
644
|
+
# @return [String]
|
645
|
+
attr_accessor :ttl
|
646
|
+
|
647
|
+
def initialize(**args)
|
648
|
+
update!(**args)
|
649
|
+
end
|
650
|
+
|
651
|
+
# Update properties of this object
|
652
|
+
def update!(**args)
|
653
|
+
@challenge = args[:challenge] if args.key?(:challenge)
|
654
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
655
|
+
end
|
656
|
+
end
|
657
|
+
|
593
658
|
# Response message for the ListDebugTokens method.
|
594
659
|
class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
|
595
660
|
include Google::Apis::Core::Hashable
|
@@ -909,8 +974,7 @@ module Google
|
|
909
974
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
910
975
|
# messages in your APIs. A typical example is to use it as the request or the
|
911
976
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
912
|
-
# protobuf.Empty) returns (google.protobuf.Empty); `
|
913
|
-
# `Empty` is empty JSON object ````.
|
977
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
914
978
|
class GoogleProtobufEmpty
|
915
979
|
include Google::Apis::Core::Hashable
|
916
980
|
|
@@ -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.13.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220318"
|
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
|
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
|
31
|
+
class GoogleFirebaseAppcheckV1betaAppCheckToken
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -142,6 +142,12 @@ module Google
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
143
143
|
end
|
144
144
|
|
145
|
+
class GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
145
151
|
class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
|
146
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
153
|
|
@@ -154,6 +160,12 @@ module Google
|
|
154
160
|
include Google::Apis::Core::JsonObjectSupport
|
155
161
|
end
|
156
162
|
|
163
|
+
class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
157
169
|
class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
|
158
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
171
|
|
@@ -214,19 +226,20 @@ module Google
|
|
214
226
|
include Google::Apis::Core::JsonObjectSupport
|
215
227
|
end
|
216
228
|
|
217
|
-
class
|
229
|
+
class GoogleFirebaseAppcheckV1betaAppAttestConfig
|
218
230
|
# @private
|
219
231
|
class Representation < Google::Apis::Core::JsonRepresentation
|
220
|
-
property :
|
221
|
-
property :
|
232
|
+
property :name, as: 'name'
|
233
|
+
property :token_ttl, as: 'tokenTtl'
|
222
234
|
end
|
223
235
|
end
|
224
236
|
|
225
|
-
class
|
237
|
+
class GoogleFirebaseAppcheckV1betaAppCheckToken
|
226
238
|
# @private
|
227
239
|
class Representation < Google::Apis::Core::JsonRepresentation
|
228
|
-
property :
|
229
|
-
property :
|
240
|
+
property :attestation_token, as: 'attestationToken'
|
241
|
+
property :token, as: 'token'
|
242
|
+
property :ttl, as: 'ttl'
|
230
243
|
end
|
231
244
|
end
|
232
245
|
|
@@ -336,6 +349,8 @@ module Google
|
|
336
349
|
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
|
337
350
|
# @private
|
338
351
|
class Representation < Google::Apis::Core::JsonRepresentation
|
352
|
+
property :app_check_token, as: 'appCheckToken', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
|
353
|
+
|
339
354
|
property :artifact, :base64 => true, as: 'artifact'
|
340
355
|
property :attestation_token, as: 'attestationToken', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
|
341
356
|
|
@@ -377,6 +392,13 @@ module Google
|
|
377
392
|
end
|
378
393
|
end
|
379
394
|
|
395
|
+
class GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest
|
396
|
+
# @private
|
397
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
398
|
+
property :recaptcha_v3_token, as: 'recaptchaV3Token'
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
380
402
|
class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
|
381
403
|
# @private
|
382
404
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -390,6 +412,14 @@ module Google
|
|
390
412
|
end
|
391
413
|
end
|
392
414
|
|
415
|
+
class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
|
416
|
+
# @private
|
417
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
418
|
+
property :challenge, :base64 => true, as: 'challenge'
|
419
|
+
property :ttl, as: 'ttl'
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
393
423
|
class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
|
394
424
|
# @private
|
395
425
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -86,7 +86,7 @@ module Google
|
|
86
86
|
|
87
87
|
# Accepts an App Attest assertion and an artifact previously obtained from
|
88
88
|
# ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns
|
89
|
-
# an
|
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::
|
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::
|
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,20 +115,19 @@ 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::
|
119
|
-
command.response_class = Google::Apis::FirebaseappcheckV1beta::
|
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?
|
123
123
|
execute_or_queue_command(command, &block)
|
124
124
|
end
|
125
125
|
|
126
|
-
# Accepts an App Attest CBOR attestation and verifies it with Apple using
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
# token encapsulated in an AttestationTokenResponse (if the verification is
|
126
|
+
# Accepts an App Attest CBOR attestation and verifies it with Apple using your
|
127
|
+
# preconfigured team and bundle IDs. If valid, returns an attestation artifact
|
128
|
+
# that can later be exchanged for an AppCheckToken using
|
129
|
+
# ExchangeAppAttestAssertion. For convenience and performance, this method's
|
130
|
+
# response object will also contain an AppCheckToken (if the verification is
|
132
131
|
# successful).
|
133
132
|
# @param [String] app
|
134
133
|
# Required. The relative resource name of the iOS app, in the format: ```
|
@@ -167,8 +166,7 @@ module Google
|
|
167
166
|
end
|
168
167
|
|
169
168
|
# Validates a custom token signed using your project's Admin SDK service account
|
170
|
-
# credentials. If valid, returns an
|
171
|
-
# AttestationTokenResponse.
|
169
|
+
# credentials. If valid, returns an AppCheckToken.
|
172
170
|
# @param [String] app
|
173
171
|
# Required. The relative resource name of the app, in the format: ``` projects/`
|
174
172
|
# project_number`/apps/`app_id` ``` If necessary, the `project_number` element
|
@@ -185,10 +183,10 @@ module Google
|
|
185
183
|
# Request-specific options
|
186
184
|
#
|
187
185
|
# @yield [result, err] Result & error if block supplied
|
188
|
-
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::
|
186
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
|
189
187
|
# @yieldparam err [StandardError] error object if request failed
|
190
188
|
#
|
191
|
-
# @return [Google::Apis::FirebaseappcheckV1beta::
|
189
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
|
192
190
|
#
|
193
191
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
194
192
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -197,8 +195,8 @@ module Google
|
|
197
195
|
command = make_simple_command(:post, 'v1beta/{+app}:exchangeCustomToken', options)
|
198
196
|
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest::Representation
|
199
197
|
command.request_object = google_firebase_appcheck_v1beta_exchange_custom_token_request_object
|
200
|
-
command.response_representation = Google::Apis::FirebaseappcheckV1beta::
|
201
|
-
command.response_class = Google::Apis::FirebaseappcheckV1beta::
|
198
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
|
199
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
|
202
200
|
command.params['app'] = app unless app.nil?
|
203
201
|
command.query['fields'] = fields unless fields.nil?
|
204
202
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -206,9 +204,9 @@ module Google
|
|
206
204
|
end
|
207
205
|
|
208
206
|
# Validates a debug token secret that you have previously created using
|
209
|
-
# CreateDebugToken. If valid, returns an
|
210
|
-
#
|
211
|
-
#
|
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.
|
212
210
|
# @param [String] app
|
213
211
|
# Required. The relative resource name of the app, in the format: ``` projects/`
|
214
212
|
# project_number`/apps/`app_id` ``` If necessary, the `project_number` element
|
@@ -225,10 +223,10 @@ module Google
|
|
225
223
|
# Request-specific options
|
226
224
|
#
|
227
225
|
# @yield [result, err] Result & error if block supplied
|
228
|
-
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::
|
226
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
|
229
227
|
# @yieldparam err [StandardError] error object if request failed
|
230
228
|
#
|
231
|
-
# @return [Google::Apis::FirebaseappcheckV1beta::
|
229
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
|
232
230
|
#
|
233
231
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
234
232
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -237,8 +235,8 @@ module Google
|
|
237
235
|
command = make_simple_command(:post, 'v1beta/{+app}:exchangeDebugToken', options)
|
238
236
|
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest::Representation
|
239
237
|
command.request_object = google_firebase_appcheck_v1beta_exchange_debug_token_request_object
|
240
|
-
command.response_representation = Google::Apis::FirebaseappcheckV1beta::
|
241
|
-
command.response_class = Google::Apis::FirebaseappcheckV1beta::
|
238
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
|
239
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
|
242
240
|
command.params['app'] = app unless app.nil?
|
243
241
|
command.query['fields'] = fields unless fields.nil?
|
244
242
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -247,8 +245,7 @@ module Google
|
|
247
245
|
|
248
246
|
# Accepts a [`device_token`](https://developer.apple.com/documentation/
|
249
247
|
# devicecheck/dcdevice) issued by DeviceCheck, and attempts to validate it with
|
250
|
-
# Apple. If valid, returns an
|
251
|
-
# AttestationTokenResponse.
|
248
|
+
# Apple. If valid, returns an AppCheckToken.
|
252
249
|
# @param [String] app
|
253
250
|
# Required. The relative resource name of the iOS app, in the format: ```
|
254
251
|
# projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
|
@@ -265,10 +262,10 @@ module Google
|
|
265
262
|
# Request-specific options
|
266
263
|
#
|
267
264
|
# @yield [result, err] Result & error if block supplied
|
268
|
-
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::
|
265
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
|
269
266
|
# @yieldparam err [StandardError] error object if request failed
|
270
267
|
#
|
271
|
-
# @return [Google::Apis::FirebaseappcheckV1beta::
|
268
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
|
272
269
|
#
|
273
270
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
274
271
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -277,8 +274,8 @@ module Google
|
|
277
274
|
command = make_simple_command(:post, 'v1beta/{+app}:exchangeDeviceCheckToken', options)
|
278
275
|
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest::Representation
|
279
276
|
command.request_object = google_firebase_appcheck_v1beta_exchange_device_check_token_request_object
|
280
|
-
command.response_representation = Google::Apis::FirebaseappcheckV1beta::
|
281
|
-
command.response_class = Google::Apis::FirebaseappcheckV1beta::
|
277
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
|
278
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
|
282
279
|
command.params['app'] = app unless app.nil?
|
283
280
|
command.query['fields'] = fields unless fields.nil?
|
284
281
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -287,7 +284,7 @@ module Google
|
|
287
284
|
|
288
285
|
# Validates a [reCAPTCHA Enterprise response token](https://cloud.google.com/
|
289
286
|
# recaptcha-enterprise/docs/create-assessment#retrieve_token). If valid, returns
|
290
|
-
# an App Check token
|
287
|
+
# an App Check token AppCheckToken.
|
291
288
|
# @param [String] app
|
292
289
|
# Required. The relative resource name of the web app, in the format: ```
|
293
290
|
# projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
|
@@ -304,10 +301,10 @@ module Google
|
|
304
301
|
# Request-specific options
|
305
302
|
#
|
306
303
|
# @yield [result, err] Result & error if block supplied
|
307
|
-
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::
|
304
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
|
308
305
|
# @yieldparam err [StandardError] error object if request failed
|
309
306
|
#
|
310
|
-
# @return [Google::Apis::FirebaseappcheckV1beta::
|
307
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
|
311
308
|
#
|
312
309
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
313
310
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -316,8 +313,8 @@ module Google
|
|
316
313
|
command = make_simple_command(:post, 'v1beta/{+app}:exchangeRecaptchaEnterpriseToken', options)
|
317
314
|
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest::Representation
|
318
315
|
command.request_object = google_firebase_appcheck_v1beta_exchange_recaptcha_enterprise_token_request_object
|
319
|
-
command.response_representation = Google::Apis::FirebaseappcheckV1beta::
|
320
|
-
command.response_class = Google::Apis::FirebaseappcheckV1beta::
|
316
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
|
317
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
|
321
318
|
command.params['app'] = app unless app.nil?
|
322
319
|
command.query['fields'] = fields unless fields.nil?
|
323
320
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -325,8 +322,7 @@ module Google
|
|
325
322
|
end
|
326
323
|
|
327
324
|
# Validates a [reCAPTCHA v3 response token](https://developers.google.com/
|
328
|
-
# recaptcha/docs/v3). If valid, returns an
|
329
|
-
# AttestationTokenResponse.
|
325
|
+
# recaptcha/docs/v3). If valid, returns an AppCheckToken.
|
330
326
|
# @param [String] app
|
331
327
|
# Required. The relative resource name of the web app, in the format: ```
|
332
328
|
# projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
|
@@ -343,10 +339,10 @@ module Google
|
|
343
339
|
# Request-specific options
|
344
340
|
#
|
345
341
|
# @yield [result, err] Result & error if block supplied
|
346
|
-
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::
|
342
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
|
347
343
|
# @yieldparam err [StandardError] error object if request failed
|
348
344
|
#
|
349
|
-
# @return [Google::Apis::FirebaseappcheckV1beta::
|
345
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
|
350
346
|
#
|
351
347
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
352
348
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -355,8 +351,46 @@ module Google
|
|
355
351
|
command = make_simple_command(:post, 'v1beta/{+app}:exchangeRecaptchaToken', options)
|
356
352
|
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest::Representation
|
357
353
|
command.request_object = google_firebase_appcheck_v1beta_exchange_recaptcha_token_request_object
|
358
|
-
command.response_representation = Google::Apis::FirebaseappcheckV1beta::
|
359
|
-
command.response_class = Google::Apis::FirebaseappcheckV1beta::
|
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
|
360
394
|
command.params['app'] = app unless app.nil?
|
361
395
|
command.query['fields'] = fields unless fields.nil?
|
362
396
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -364,8 +398,7 @@ module Google
|
|
364
398
|
end
|
365
399
|
|
366
400
|
# Validates a [SafetyNet token](https://developer.android.com/training/safetynet/
|
367
|
-
# attestation#request-attestation-step). If valid, returns an
|
368
|
-
# encapsulated in an AttestationTokenResponse.
|
401
|
+
# attestation#request-attestation-step). If valid, returns an AppCheckToken.
|
369
402
|
# @param [String] app
|
370
403
|
# Required. The relative resource name of the Android app, in the format: ```
|
371
404
|
# projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
|
@@ -382,10 +415,10 @@ module Google
|
|
382
415
|
# Request-specific options
|
383
416
|
#
|
384
417
|
# @yield [result, err] Result & error if block supplied
|
385
|
-
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::
|
418
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
|
386
419
|
# @yieldparam err [StandardError] error object if request failed
|
387
420
|
#
|
388
|
-
# @return [Google::Apis::FirebaseappcheckV1beta::
|
421
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
|
389
422
|
#
|
390
423
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
391
424
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -394,8 +427,8 @@ module Google
|
|
394
427
|
command = make_simple_command(:post, 'v1beta/{+app}:exchangeSafetyNetToken', options)
|
395
428
|
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest::Representation
|
396
429
|
command.request_object = google_firebase_appcheck_v1beta_exchange_safety_net_token_request_object
|
397
|
-
command.response_representation = Google::Apis::FirebaseappcheckV1beta::
|
398
|
-
command.response_class = Google::Apis::FirebaseappcheckV1beta::
|
430
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
|
431
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
|
399
432
|
command.params['app'] = app unless app.nil?
|
400
433
|
command.query['fields'] = fields unless fields.nil?
|
401
434
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -421,10 +454,10 @@ module Google
|
|
421
454
|
# Request-specific options
|
422
455
|
#
|
423
456
|
# @yield [result, err] Result & error if block supplied
|
424
|
-
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::
|
457
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse] parsed result object
|
425
458
|
# @yieldparam err [StandardError] error object if request failed
|
426
459
|
#
|
427
|
-
# @return [Google::Apis::FirebaseappcheckV1beta::
|
460
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse]
|
428
461
|
#
|
429
462
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
430
463
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -433,15 +466,15 @@ module Google
|
|
433
466
|
command = make_simple_command(:post, 'v1beta/{+app}:generateAppAttestChallenge', options)
|
434
467
|
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest::Representation
|
435
468
|
command.request_object = google_firebase_appcheck_v1beta_generate_app_attest_challenge_request_object
|
436
|
-
command.response_representation = Google::Apis::FirebaseappcheckV1beta::
|
437
|
-
command.response_class = Google::Apis::FirebaseappcheckV1beta::
|
469
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse::Representation
|
470
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
|
438
471
|
command.params['app'] = app unless app.nil?
|
439
472
|
command.query['fields'] = fields unless fields.nil?
|
440
473
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
441
474
|
execute_or_queue_command(command, &block)
|
442
475
|
end
|
443
476
|
|
444
|
-
#
|
477
|
+
# Atomically gets the AppAttestConfigs for the specified list of apps.
|
445
478
|
# @param [String] parent
|
446
479
|
# Required. The parent project name shared by all AppAttestConfigs being
|
447
480
|
# retrieved, in the format ``` projects/`project_number` ``` The parent
|
@@ -740,7 +773,7 @@ module Google
|
|
740
773
|
execute_or_queue_command(command, &block)
|
741
774
|
end
|
742
775
|
|
743
|
-
#
|
776
|
+
# Atomically gets the DeviceCheckConfigs for the specified list of apps. For
|
744
777
|
# security reasons, the `private_key` field is never populated in the response.
|
745
778
|
# @param [String] parent
|
746
779
|
# Required. The parent project name shared by all DeviceCheckConfigs being
|
@@ -853,7 +886,7 @@ module Google
|
|
853
886
|
execute_or_queue_command(command, &block)
|
854
887
|
end
|
855
888
|
|
856
|
-
#
|
889
|
+
# Atomically gets the RecaptchaConfigs for the specified list of apps. For
|
857
890
|
# security reasons, the `site_secret` field is never populated in the response.
|
858
891
|
# @param [String] parent
|
859
892
|
# Required. The parent project name shared by all RecaptchaConfigs being
|
@@ -965,7 +998,7 @@ module Google
|
|
965
998
|
execute_or_queue_command(command, &block)
|
966
999
|
end
|
967
1000
|
|
968
|
-
#
|
1001
|
+
# Atomically gets the RecaptchaEnterpriseConfigs for the specified list of apps.
|
969
1002
|
# @param [String] parent
|
970
1003
|
# Required. The parent project name shared by all RecaptchaEnterpriseConfigs
|
971
1004
|
# being retrieved, in the format ``` projects/`project_number` ``` The parent
|
@@ -1077,7 +1110,7 @@ module Google
|
|
1077
1110
|
execute_or_queue_command(command, &block)
|
1078
1111
|
end
|
1079
1112
|
|
1080
|
-
#
|
1113
|
+
# Atomically gets the SafetyNetConfigs for the specified list of apps.
|
1081
1114
|
# @param [String] parent
|
1082
1115
|
# Required. The parent project name shared by all SafetyNetConfigs being
|
1083
1116
|
# retrieved, in the format ``` projects/`project_number` ``` The parent
|
@@ -1186,7 +1219,7 @@ module Google
|
|
1186
1219
|
execute_or_queue_command(command, &block)
|
1187
1220
|
end
|
1188
1221
|
|
1189
|
-
#
|
1222
|
+
# Atomically updates the specified Service configurations.
|
1190
1223
|
# @param [String] parent
|
1191
1224
|
# Required. The parent project name shared by all Service configurations being
|
1192
1225
|
# updated, in the format ``` projects/`project_number` ``` The parent collection
|
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.13.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-03-28 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.13.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.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Firebase App Check API V1beta
|