google-apis-firebaseappcheck_v1beta 0.2.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/google/apis/firebaseappcheck_v1beta/classes.rb +146 -18
- data/lib/google/apis/firebaseappcheck_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/firebaseappcheck_v1beta/representations.rb +58 -0
- data/lib/google/apis/firebaseappcheck_v1beta/service.rb +218 -0
- data/lib/google/apis/firebaseappcheck_v1beta.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1225f13f52c3104fc5501297d65930310555c94d6916173cf8605803240efd97
|
4
|
+
data.tar.gz: 4e59333e9e6b3a2fb78eb9fef6c55c3eb5028bdc26d6b8cfb7986676c55397ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ace216a1c1ec8534804ce5d263fdcd03e4064679410b90dbe98c47fe73a1680a58b6729b5c91118884676ba1430890533640769647dd140368e97bd7f343ffc
|
7
|
+
data.tar.gz: 71d863ec996db6b69024a6a95977030ae07286da0e5e504a4ac81dbc0f69e33574b9e76665814d3308ebf88f0ddffa93246e01567f309c115fde35b106b9a015
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-firebaseappcheck_v1beta
|
2
2
|
|
3
|
+
### v0.6.0 (2021-09-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210910
|
6
|
+
|
7
|
+
### v0.5.0 (2021-08-18)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210813
|
10
|
+
|
11
|
+
### v0.4.0 (2021-07-14)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210712
|
14
|
+
|
15
|
+
### v0.3.0 (2021-06-30)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210625
|
18
|
+
* Regenerated using generator version 0.4.0
|
19
|
+
|
3
20
|
### v0.2.0 (2021-06-24)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210621
|
@@ -52,6 +52,40 @@ module Google
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
+
# An app's App Attest configuration object. This configuration controls certain
|
56
|
+
# properties of the App Check token returned by ExchangeAppAttestAttestation and
|
57
|
+
# ExchangeAppAttestAttestation, such as its ttl. Note that the Team ID
|
58
|
+
# registered with your app is used as part of the validation process. Please
|
59
|
+
# register it via the Firebase Console or programmatically via the [Firebase
|
60
|
+
# Management Service](https://firebase.google.com/docs/projects/api/reference/
|
61
|
+
# rest/v1beta1/projects.iosApps/patch).
|
62
|
+
class GoogleFirebaseAppcheckV1betaAppAttestConfig
|
63
|
+
include Google::Apis::Core::Hashable
|
64
|
+
|
65
|
+
# Required. The relative resource name of the App Attest configuration object,
|
66
|
+
# in the format: ``` projects/`project_number`/apps/`app_id`/appAttestConfig ```
|
67
|
+
# Corresponds to the JSON property `name`
|
68
|
+
# @return [String]
|
69
|
+
attr_accessor :name
|
70
|
+
|
71
|
+
# Specifies the duration for which App Check tokens exchanged from App Attest
|
72
|
+
# artifacts will be valid. If unset, a default value of 1 hour is assumed. Must
|
73
|
+
# be between 30 minutes and 7 days, inclusive.
|
74
|
+
# Corresponds to the JSON property `tokenTtl`
|
75
|
+
# @return [String]
|
76
|
+
attr_accessor :token_ttl
|
77
|
+
|
78
|
+
def initialize(**args)
|
79
|
+
update!(**args)
|
80
|
+
end
|
81
|
+
|
82
|
+
# Update properties of this object
|
83
|
+
def update!(**args)
|
84
|
+
@name = args[:name] if args.key?(:name)
|
85
|
+
@token_ttl = args[:token_ttl] if args.key?(:token_ttl)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
55
89
|
# Encapsulates an *App Check token*, which are used to access Firebase services
|
56
90
|
# protected by App Check.
|
57
91
|
class GoogleFirebaseAppcheckV1betaAttestationTokenResponse
|
@@ -82,6 +116,25 @@ module Google
|
|
82
116
|
end
|
83
117
|
end
|
84
118
|
|
119
|
+
# Response message for the BatchGetAppAttestConfigs method.
|
120
|
+
class GoogleFirebaseAppcheckV1betaBatchGetAppAttestConfigsResponse
|
121
|
+
include Google::Apis::Core::Hashable
|
122
|
+
|
123
|
+
# AppAttestConfigs retrieved.
|
124
|
+
# Corresponds to the JSON property `configs`
|
125
|
+
# @return [Array<Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig>]
|
126
|
+
attr_accessor :configs
|
127
|
+
|
128
|
+
def initialize(**args)
|
129
|
+
update!(**args)
|
130
|
+
end
|
131
|
+
|
132
|
+
# Update properties of this object
|
133
|
+
def update!(**args)
|
134
|
+
@configs = args[:configs] if args.key?(:configs)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
85
138
|
# Response message for the BatchGetDeviceCheckConfigs method.
|
86
139
|
class GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse
|
87
140
|
include Google::Apis::Core::Hashable
|
@@ -120,6 +173,25 @@ module Google
|
|
120
173
|
end
|
121
174
|
end
|
122
175
|
|
176
|
+
# Response message for the BatchGetSafetyNetConfigs method.
|
177
|
+
class GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse
|
178
|
+
include Google::Apis::Core::Hashable
|
179
|
+
|
180
|
+
# SafetyNetConfigs retrieved.
|
181
|
+
# Corresponds to the JSON property `configs`
|
182
|
+
# @return [Array<Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig>]
|
183
|
+
attr_accessor :configs
|
184
|
+
|
185
|
+
def initialize(**args)
|
186
|
+
update!(**args)
|
187
|
+
end
|
188
|
+
|
189
|
+
# Update properties of this object
|
190
|
+
def update!(**args)
|
191
|
+
@configs = args[:configs] if args.key?(:configs)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
123
195
|
# Request message for the BatchUpdateServices method.
|
124
196
|
class GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest
|
125
197
|
include Google::Apis::Core::Hashable
|
@@ -209,7 +281,11 @@ module Google
|
|
209
281
|
|
210
282
|
# An app's DeviceCheck configuration object. This configuration is used by
|
211
283
|
# ExchangeDeviceCheckToken to validate device tokens issued to apps by
|
212
|
-
# DeviceCheck.
|
284
|
+
# DeviceCheck. It also controls certain properties of the returned App Check
|
285
|
+
# token, such as its ttl. Note that the Team ID registered with your app is used
|
286
|
+
# as part of the validation process. Please register it via the Firebase Console
|
287
|
+
# or programmatically via the [Firebase Management Service](https://firebase.
|
288
|
+
# google.com/docs/projects/api/reference/rest/v1beta1/projects.iosApps/patch).
|
213
289
|
class GoogleFirebaseAppcheckV1betaDeviceCheckConfig
|
214
290
|
include Google::Apis::Core::Hashable
|
215
291
|
|
@@ -241,6 +317,13 @@ module Google
|
|
241
317
|
attr_accessor :private_key_set
|
242
318
|
alias_method :private_key_set?, :private_key_set
|
243
319
|
|
320
|
+
# Specifies the duration for which App Check tokens exchanged from DeviceCheck
|
321
|
+
# tokens will be valid. If unset, a default value of 1 hour is assumed. Must be
|
322
|
+
# between 30 minutes and 7 days, inclusive.
|
323
|
+
# Corresponds to the JSON property `tokenTtl`
|
324
|
+
# @return [String]
|
325
|
+
attr_accessor :token_ttl
|
326
|
+
|
244
327
|
def initialize(**args)
|
245
328
|
update!(**args)
|
246
329
|
end
|
@@ -251,6 +334,7 @@ module Google
|
|
251
334
|
@name = args[:name] if args.key?(:name)
|
252
335
|
@private_key = args[:private_key] if args.key?(:private_key)
|
253
336
|
@private_key_set = args[:private_key_set] if args.key?(:private_key_set)
|
337
|
+
@token_ttl = args[:token_ttl] if args.key?(:token_ttl)
|
254
338
|
end
|
255
339
|
end
|
256
340
|
|
@@ -292,21 +376,21 @@ module Google
|
|
292
376
|
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest
|
293
377
|
include Google::Apis::Core::Hashable
|
294
378
|
|
295
|
-
# The App Attest statement as returned by Apple's client-side App
|
296
|
-
# This is the CBOR object returned by Apple, which will be Base64
|
297
|
-
# JSON API.
|
379
|
+
# Required. The App Attest statement as returned by Apple's client-side App
|
380
|
+
# Attest API. This is the CBOR object returned by Apple, which will be Base64
|
381
|
+
# encoded in the JSON API.
|
298
382
|
# Corresponds to the JSON property `attestationStatement`
|
299
383
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
300
384
|
# @return [String]
|
301
385
|
attr_accessor :attestation_statement
|
302
386
|
|
303
|
-
# The challenge previously generated by the FAC backend.
|
387
|
+
# Required. The challenge previously generated by the FAC backend.
|
304
388
|
# Corresponds to the JSON property `challenge`
|
305
389
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
306
390
|
# @return [String]
|
307
391
|
attr_accessor :challenge
|
308
392
|
|
309
|
-
# The key ID generated by App Attest for the client app.
|
393
|
+
# Required. The key ID generated by App Attest for the client app.
|
310
394
|
# Corresponds to the JSON property `keyId`
|
311
395
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
312
396
|
# @return [String]
|
@@ -324,7 +408,8 @@ module Google
|
|
324
408
|
end
|
325
409
|
end
|
326
410
|
|
327
|
-
# Response message for ExchangeAppAttestAttestation
|
411
|
+
# Response message for ExchangeAppAttestAttestation and
|
412
|
+
# ExchangeAppAttestDebugAttestation
|
328
413
|
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
|
329
414
|
include Google::Apis::Core::Hashable
|
330
415
|
|
@@ -355,7 +440,7 @@ module Google
|
|
355
440
|
class GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest
|
356
441
|
include Google::Apis::Core::Hashable
|
357
442
|
|
358
|
-
# A custom token signed using your project's Admin SDK service account
|
443
|
+
# Required. A custom token signed using your project's Admin SDK service account
|
359
444
|
# credentials.
|
360
445
|
# Corresponds to the JSON property `customToken`
|
361
446
|
# @return [String]
|
@@ -375,8 +460,8 @@ module Google
|
|
375
460
|
class GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest
|
376
461
|
include Google::Apis::Core::Hashable
|
377
462
|
|
378
|
-
# A debug token secret. This string must match a debug token secret
|
379
|
-
# created using CreateDebugToken.
|
463
|
+
# Required. A debug token secret. This string must match a debug token secret
|
464
|
+
# previously created using CreateDebugToken.
|
380
465
|
# Corresponds to the JSON property `debugToken`
|
381
466
|
# @return [String]
|
382
467
|
attr_accessor :debug_token
|
@@ -395,9 +480,9 @@ module Google
|
|
395
480
|
class GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest
|
396
481
|
include Google::Apis::Core::Hashable
|
397
482
|
|
398
|
-
# The `device_token` as returned by Apple's client-side [DeviceCheck
|
399
|
-
#
|
400
|
-
# encoded `Data` (Swift) or `NSData` (ObjC) object.
|
483
|
+
# Required. The `device_token` as returned by Apple's client-side [DeviceCheck
|
484
|
+
# API](https://developer.apple.com/documentation/devicecheck/dcdevice). This is
|
485
|
+
# the Base64 encoded `Data` (Swift) or `NSData` (ObjC) object.
|
401
486
|
# Corresponds to the JSON property `deviceToken`
|
402
487
|
# @return [String]
|
403
488
|
attr_accessor :device_token
|
@@ -416,8 +501,8 @@ module Google
|
|
416
501
|
class GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest
|
417
502
|
include Google::Apis::Core::Hashable
|
418
503
|
|
419
|
-
# The reCAPTCHA token as returned by the [reCAPTCHA v3 JavaScript API](
|
420
|
-
# developers.google.com/recaptcha/docs/v3).
|
504
|
+
# Required. The reCAPTCHA token as returned by the [reCAPTCHA v3 JavaScript API](
|
505
|
+
# https://developers.google.com/recaptcha/docs/v3).
|
421
506
|
# Corresponds to the JSON property `recaptchaToken`
|
422
507
|
# @return [String]
|
423
508
|
attr_accessor :recaptcha_token
|
@@ -436,8 +521,8 @@ module Google
|
|
436
521
|
class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
|
437
522
|
include Google::Apis::Core::Hashable
|
438
523
|
|
439
|
-
# The [SafetyNet attestation response](https://developer.android.com/
|
440
|
-
# safetynet/attestation#request-attestation-step) issued to your app.
|
524
|
+
# Required. The [SafetyNet attestation response](https://developer.android.com/
|
525
|
+
# training/safetynet/attestation#request-attestation-step) issued to your app.
|
441
526
|
# Corresponds to the JSON property `safetyNetToken`
|
442
527
|
# @return [String]
|
443
528
|
attr_accessor :safety_net_token
|
@@ -601,7 +686,8 @@ module Google
|
|
601
686
|
|
602
687
|
# An app's reCAPTCHA v3 configuration object. This configuration is used by
|
603
688
|
# ExchangeRecaptchaToken to validate reCAPTCHA tokens issued to apps by
|
604
|
-
# reCAPTCHA v3.
|
689
|
+
# reCAPTCHA v3. It also controls certain properties of the returned App Check
|
690
|
+
# token, such as its ttl.
|
605
691
|
class GoogleFirebaseAppcheckV1betaRecaptchaConfig
|
606
692
|
include Google::Apis::Core::Hashable
|
607
693
|
|
@@ -626,6 +712,13 @@ module Google
|
|
626
712
|
attr_accessor :site_secret_set
|
627
713
|
alias_method :site_secret_set?, :site_secret_set
|
628
714
|
|
715
|
+
# Specifies the duration for which App Check tokens exchanged from reCAPTCHA
|
716
|
+
# tokens will be valid. If unset, a default value of 1 day is assumed. Must be
|
717
|
+
# between 30 minutes and 7 days, inclusive.
|
718
|
+
# Corresponds to the JSON property `tokenTtl`
|
719
|
+
# @return [String]
|
720
|
+
attr_accessor :token_ttl
|
721
|
+
|
629
722
|
def initialize(**args)
|
630
723
|
update!(**args)
|
631
724
|
end
|
@@ -635,6 +728,41 @@ module Google
|
|
635
728
|
@name = args[:name] if args.key?(:name)
|
636
729
|
@site_secret = args[:site_secret] if args.key?(:site_secret)
|
637
730
|
@site_secret_set = args[:site_secret_set] if args.key?(:site_secret_set)
|
731
|
+
@token_ttl = args[:token_ttl] if args.key?(:token_ttl)
|
732
|
+
end
|
733
|
+
end
|
734
|
+
|
735
|
+
# An app's SafetyNet configuration object. This configuration controls certain
|
736
|
+
# properties of the App Check token returned by ExchangeSafetyNetToken, such as
|
737
|
+
# its ttl. Note that your registered SHA-256 certificate fingerprints are used
|
738
|
+
# to validate tokens issued by SafetyNet; please register them via the Firebase
|
739
|
+
# Console or programmatically via the [Firebase Management Service](https://
|
740
|
+
# firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.
|
741
|
+
# androidApps.sha/create).
|
742
|
+
class GoogleFirebaseAppcheckV1betaSafetyNetConfig
|
743
|
+
include Google::Apis::Core::Hashable
|
744
|
+
|
745
|
+
# Required. The relative resource name of the SafetyNet configuration object, in
|
746
|
+
# the format: ``` projects/`project_number`/apps/`app_id`/safetyNetConfig ```
|
747
|
+
# Corresponds to the JSON property `name`
|
748
|
+
# @return [String]
|
749
|
+
attr_accessor :name
|
750
|
+
|
751
|
+
# Specifies the duration for which App Check tokens exchanged from SafetyNet
|
752
|
+
# tokens will be valid. If unset, a default value of 1 hour is assumed. Must be
|
753
|
+
# between 30 minutes and 7 days, inclusive.
|
754
|
+
# Corresponds to the JSON property `tokenTtl`
|
755
|
+
# @return [String]
|
756
|
+
attr_accessor :token_ttl
|
757
|
+
|
758
|
+
def initialize(**args)
|
759
|
+
update!(**args)
|
760
|
+
end
|
761
|
+
|
762
|
+
# Update properties of this object
|
763
|
+
def update!(**args)
|
764
|
+
@name = args[:name] if args.key?(:name)
|
765
|
+
@token_ttl = args[:token_ttl] if args.key?(:token_ttl)
|
638
766
|
end
|
639
767
|
end
|
640
768
|
|
@@ -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.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210910"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,12 +28,24 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class GoogleFirebaseAppcheckV1betaAppAttestConfig
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
31
37
|
class GoogleFirebaseAppcheckV1betaAttestationTokenResponse
|
32
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
39
|
|
34
40
|
include Google::Apis::Core::JsonObjectSupport
|
35
41
|
end
|
36
42
|
|
43
|
+
class GoogleFirebaseAppcheckV1betaBatchGetAppAttestConfigsResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
37
49
|
class GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse
|
38
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
51
|
|
@@ -46,6 +58,12 @@ module Google
|
|
46
58
|
include Google::Apis::Core::JsonObjectSupport
|
47
59
|
end
|
48
60
|
|
61
|
+
class GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
49
67
|
class GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest
|
50
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
69
|
|
@@ -154,6 +172,12 @@ module Google
|
|
154
172
|
include Google::Apis::Core::JsonObjectSupport
|
155
173
|
end
|
156
174
|
|
175
|
+
class GoogleFirebaseAppcheckV1betaSafetyNetConfig
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
157
181
|
class GoogleFirebaseAppcheckV1betaService
|
158
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
183
|
|
@@ -180,6 +204,14 @@ module Google
|
|
180
204
|
end
|
181
205
|
end
|
182
206
|
|
207
|
+
class GoogleFirebaseAppcheckV1betaAppAttestConfig
|
208
|
+
# @private
|
209
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
210
|
+
property :name, as: 'name'
|
211
|
+
property :token_ttl, as: 'tokenTtl'
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
183
215
|
class GoogleFirebaseAppcheckV1betaAttestationTokenResponse
|
184
216
|
# @private
|
185
217
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -188,6 +220,14 @@ module Google
|
|
188
220
|
end
|
189
221
|
end
|
190
222
|
|
223
|
+
class GoogleFirebaseAppcheckV1betaBatchGetAppAttestConfigsResponse
|
224
|
+
# @private
|
225
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
226
|
+
collection :configs, as: 'configs', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig::Representation
|
227
|
+
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
191
231
|
class GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse
|
192
232
|
# @private
|
193
233
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -204,6 +244,14 @@ module Google
|
|
204
244
|
end
|
205
245
|
end
|
206
246
|
|
247
|
+
class GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse
|
248
|
+
# @private
|
249
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
250
|
+
collection :configs, as: 'configs', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig::Representation
|
251
|
+
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
207
255
|
class GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest
|
208
256
|
# @private
|
209
257
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -237,6 +285,7 @@ module Google
|
|
237
285
|
property :name, as: 'name'
|
238
286
|
property :private_key, as: 'privateKey'
|
239
287
|
property :private_key_set, as: 'privateKeySet'
|
288
|
+
property :token_ttl, as: 'tokenTtl'
|
240
289
|
end
|
241
290
|
end
|
242
291
|
|
@@ -352,6 +401,15 @@ module Google
|
|
352
401
|
property :name, as: 'name'
|
353
402
|
property :site_secret, as: 'siteSecret'
|
354
403
|
property :site_secret_set, as: 'siteSecretSet'
|
404
|
+
property :token_ttl, as: 'tokenTtl'
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
class GoogleFirebaseAppcheckV1betaSafetyNetConfig
|
409
|
+
# @private
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
411
|
+
property :name, as: 'name'
|
412
|
+
property :token_ttl, as: 'tokenTtl'
|
355
413
|
end
|
356
414
|
end
|
357
415
|
|
@@ -400,6 +400,115 @@ module Google
|
|
400
400
|
execute_or_queue_command(command, &block)
|
401
401
|
end
|
402
402
|
|
403
|
+
# Gets the AppAttestConfigs for the specified list of apps atomically.
|
404
|
+
# @param [String] parent
|
405
|
+
# Required. The parent project name shared by all AppAttestConfigs being
|
406
|
+
# retrieved, in the format ``` projects/`project_number` ``` The parent
|
407
|
+
# collection in the `name` field of any resource being retrieved must match this
|
408
|
+
# field, or the entire batch fails.
|
409
|
+
# @param [Array<String>, String] names
|
410
|
+
# Required. The relative resource names of the AppAttestConfigs to retrieve, in
|
411
|
+
# the format ``` projects/`project_number`/apps/`app_id`/appAttestConfig ``` A
|
412
|
+
# maximum of 100 objects can be retrieved in a batch.
|
413
|
+
# @param [String] fields
|
414
|
+
# Selector specifying which fields to include in a partial response.
|
415
|
+
# @param [String] quota_user
|
416
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
417
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
418
|
+
# @param [Google::Apis::RequestOptions] options
|
419
|
+
# Request-specific options
|
420
|
+
#
|
421
|
+
# @yield [result, err] Result & error if block supplied
|
422
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetAppAttestConfigsResponse] parsed result object
|
423
|
+
# @yieldparam err [StandardError] error object if request failed
|
424
|
+
#
|
425
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetAppAttestConfigsResponse]
|
426
|
+
#
|
427
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
428
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
429
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
430
|
+
def batch_project_app_app_attest_config_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
|
431
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/apps/-/appAttestConfig:batchGet', options)
|
432
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetAppAttestConfigsResponse::Representation
|
433
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetAppAttestConfigsResponse
|
434
|
+
command.params['parent'] = parent unless parent.nil?
|
435
|
+
command.query['names'] = names unless names.nil?
|
436
|
+
command.query['fields'] = fields unless fields.nil?
|
437
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
438
|
+
execute_or_queue_command(command, &block)
|
439
|
+
end
|
440
|
+
|
441
|
+
# Gets the AppAttestConfig for the specified app.
|
442
|
+
# @param [String] name
|
443
|
+
# Required. The relative resource name of the AppAttestConfig, in the format: ```
|
444
|
+
# projects/`project_number`/apps/`app_id`/appAttestConfig ```
|
445
|
+
# @param [String] fields
|
446
|
+
# Selector specifying which fields to include in a partial response.
|
447
|
+
# @param [String] quota_user
|
448
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
449
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
450
|
+
# @param [Google::Apis::RequestOptions] options
|
451
|
+
# Request-specific options
|
452
|
+
#
|
453
|
+
# @yield [result, err] Result & error if block supplied
|
454
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig] parsed result object
|
455
|
+
# @yieldparam err [StandardError] error object if request failed
|
456
|
+
#
|
457
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig]
|
458
|
+
#
|
459
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
460
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
461
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
462
|
+
def get_project_app_app_attest_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
463
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
464
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig::Representation
|
465
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig
|
466
|
+
command.params['name'] = name unless name.nil?
|
467
|
+
command.query['fields'] = fields unless fields.nil?
|
468
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
469
|
+
execute_or_queue_command(command, &block)
|
470
|
+
end
|
471
|
+
|
472
|
+
# Updates the AppAttestConfig for the specified app. While this configuration is
|
473
|
+
# incomplete or invalid, the app will be unable to exchange AppAttest tokens for
|
474
|
+
# App Check tokens.
|
475
|
+
# @param [String] name
|
476
|
+
# Required. The relative resource name of the App Attest configuration object,
|
477
|
+
# in the format: ``` projects/`project_number`/apps/`app_id`/appAttestConfig ```
|
478
|
+
# @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig] google_firebase_appcheck_v1beta_app_attest_config_object
|
479
|
+
# @param [String] update_mask
|
480
|
+
# Required. A comma-separated list of names of fields in the AppAttestConfig
|
481
|
+
# Gets to update. Example: `token_ttl`.
|
482
|
+
# @param [String] fields
|
483
|
+
# Selector specifying which fields to include in a partial response.
|
484
|
+
# @param [String] quota_user
|
485
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
486
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
487
|
+
# @param [Google::Apis::RequestOptions] options
|
488
|
+
# Request-specific options
|
489
|
+
#
|
490
|
+
# @yield [result, err] Result & error if block supplied
|
491
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig] parsed result object
|
492
|
+
# @yieldparam err [StandardError] error object if request failed
|
493
|
+
#
|
494
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig]
|
495
|
+
#
|
496
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
497
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
498
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
499
|
+
def patch_project_app_app_attest_config(name, google_firebase_appcheck_v1beta_app_attest_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
500
|
+
command = make_simple_command(:patch, 'v1beta/{+name}', options)
|
501
|
+
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig::Representation
|
502
|
+
command.request_object = google_firebase_appcheck_v1beta_app_attest_config_object
|
503
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig::Representation
|
504
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestConfig
|
505
|
+
command.params['name'] = name unless name.nil?
|
506
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
507
|
+
command.query['fields'] = fields unless fields.nil?
|
508
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
509
|
+
execute_or_queue_command(command, &block)
|
510
|
+
end
|
511
|
+
|
403
512
|
# Creates a new DebugToken for the specified app. For security reasons, after
|
404
513
|
# the creation operation completes, the `token` field cannot be updated or
|
405
514
|
# retrieved, but you can revoke the debug token using DeleteDebugToken. Each app
|
@@ -815,6 +924,115 @@ module Google
|
|
815
924
|
execute_or_queue_command(command, &block)
|
816
925
|
end
|
817
926
|
|
927
|
+
# Gets the SafetyNetConfigs for the specified list of apps atomically.
|
928
|
+
# @param [String] parent
|
929
|
+
# Required. The parent project name shared by all SafetyNetConfigs being
|
930
|
+
# retrieved, in the format ``` projects/`project_number` ``` The parent
|
931
|
+
# collection in the `name` field of any resource being retrieved must match this
|
932
|
+
# field, or the entire batch fails.
|
933
|
+
# @param [Array<String>, String] names
|
934
|
+
# Required. The relative resource names of the SafetyNetConfigs to retrieve, in
|
935
|
+
# the format ``` projects/`project_number`/apps/`app_id`/safetyNetConfig ``` A
|
936
|
+
# maximum of 100 objects can be retrieved in a batch.
|
937
|
+
# @param [String] fields
|
938
|
+
# Selector specifying which fields to include in a partial response.
|
939
|
+
# @param [String] quota_user
|
940
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
941
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
942
|
+
# @param [Google::Apis::RequestOptions] options
|
943
|
+
# Request-specific options
|
944
|
+
#
|
945
|
+
# @yield [result, err] Result & error if block supplied
|
946
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse] parsed result object
|
947
|
+
# @yieldparam err [StandardError] error object if request failed
|
948
|
+
#
|
949
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse]
|
950
|
+
#
|
951
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
952
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
953
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
954
|
+
def batch_project_app_safety_net_config_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
|
955
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/apps/-/safetyNetConfig:batchGet', options)
|
956
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse::Representation
|
957
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse
|
958
|
+
command.params['parent'] = parent unless parent.nil?
|
959
|
+
command.query['names'] = names unless names.nil?
|
960
|
+
command.query['fields'] = fields unless fields.nil?
|
961
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
962
|
+
execute_or_queue_command(command, &block)
|
963
|
+
end
|
964
|
+
|
965
|
+
# Gets the SafetyNetConfig for the specified app.
|
966
|
+
# @param [String] name
|
967
|
+
# Required. The relative resource name of the SafetyNetConfig, in the format: ```
|
968
|
+
# projects/`project_number`/apps/`app_id`/safetyNetConfig ```
|
969
|
+
# @param [String] fields
|
970
|
+
# Selector specifying which fields to include in a partial response.
|
971
|
+
# @param [String] quota_user
|
972
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
973
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
974
|
+
# @param [Google::Apis::RequestOptions] options
|
975
|
+
# Request-specific options
|
976
|
+
#
|
977
|
+
# @yield [result, err] Result & error if block supplied
|
978
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig] parsed result object
|
979
|
+
# @yieldparam err [StandardError] error object if request failed
|
980
|
+
#
|
981
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig]
|
982
|
+
#
|
983
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
984
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
985
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
986
|
+
def get_project_app_safety_net_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
987
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
988
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig::Representation
|
989
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig
|
990
|
+
command.params['name'] = name unless name.nil?
|
991
|
+
command.query['fields'] = fields unless fields.nil?
|
992
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
993
|
+
execute_or_queue_command(command, &block)
|
994
|
+
end
|
995
|
+
|
996
|
+
# Updates the SafetyNetConfig for the specified app. While this configuration is
|
997
|
+
# incomplete or invalid, the app will be unable to exchange SafetyNet tokens for
|
998
|
+
# App Check tokens.
|
999
|
+
# @param [String] name
|
1000
|
+
# Required. The relative resource name of the SafetyNet configuration object, in
|
1001
|
+
# the format: ``` projects/`project_number`/apps/`app_id`/safetyNetConfig ```
|
1002
|
+
# @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig] google_firebase_appcheck_v1beta_safety_net_config_object
|
1003
|
+
# @param [String] update_mask
|
1004
|
+
# Required. A comma-separated list of names of fields in the SafetyNetConfig
|
1005
|
+
# Gets to update. Example: `token_ttl`.
|
1006
|
+
# @param [String] fields
|
1007
|
+
# Selector specifying which fields to include in a partial response.
|
1008
|
+
# @param [String] quota_user
|
1009
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1010
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1011
|
+
# @param [Google::Apis::RequestOptions] options
|
1012
|
+
# Request-specific options
|
1013
|
+
#
|
1014
|
+
# @yield [result, err] Result & error if block supplied
|
1015
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig] parsed result object
|
1016
|
+
# @yieldparam err [StandardError] error object if request failed
|
1017
|
+
#
|
1018
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig]
|
1019
|
+
#
|
1020
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1021
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1022
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1023
|
+
def patch_project_app_safety_net_config(name, google_firebase_appcheck_v1beta_safety_net_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1024
|
+
command = make_simple_command(:patch, 'v1beta/{+name}', options)
|
1025
|
+
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig::Representation
|
1026
|
+
command.request_object = google_firebase_appcheck_v1beta_safety_net_config_object
|
1027
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig::Representation
|
1028
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig
|
1029
|
+
command.params['name'] = name unless name.nil?
|
1030
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1031
|
+
command.query['fields'] = fields unless fields.nil?
|
1032
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1033
|
+
execute_or_queue_command(command, &block)
|
1034
|
+
end
|
1035
|
+
|
818
1036
|
# Updates the specified Service configurations atomically.
|
819
1037
|
# @param [String] parent
|
820
1038
|
# Required. The parent project name shared by all Service configurations being
|
@@ -40,7 +40,7 @@ module Google
|
|
40
40
|
# This is NOT the gem version.
|
41
41
|
VERSION = 'V1beta'
|
42
42
|
|
43
|
-
# See, edit, configure, and delete your Google Cloud
|
43
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
44
44
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
45
45
|
|
46
46
|
# View and administer all your Firebase data and settings
|
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.6.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: 2021-
|
11
|
+
date: 2021-09-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.
|
19
|
+
version: '0.4'
|
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.
|
29
|
+
version: '0.4'
|
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/master/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.6.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-firebaseappcheck_v1beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|