google-apis-firebaseappcheck_v1beta 0.3.0 → 0.7.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 +16 -0
- data/lib/google/apis/firebaseappcheck_v1beta/classes.rb +138 -16
- data/lib/google/apis/firebaseappcheck_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/firebaseappcheck_v1beta/representations.rb +58 -0
- data/lib/google/apis/firebaseappcheck_v1beta/service.rb +220 -1
- data/lib/google/apis/firebaseappcheck_v1beta.rb +1 -1
- 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: 6b277cc22a7a5e38f10ae593366a656a5dbd0acfafca5be1542777283c9705d8
|
4
|
+
data.tar.gz: b1f286b30a62ec1e5743095d4475914d1ae7c86264c2e9fe7567fcfeb5ae3cb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d159bbd586f8425b7987f2a8bb2e7fb66ef5756d94bdf35be3f05210487d42fc1f9e7225342298c4596fdab31c182e834a33759c7f5f3b209d68878ec1279a49
|
7
|
+
data.tar.gz: 5f4cdd0cca7414d40a9f114f6db2664ed09f6e1247846a509576ca09d6a1eaa7feb20e8d4fc917e2e15952a1a584c2cf6aefefb4bcfbb1f48d06ea5fc874c368
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-firebaseappcheck_v1beta
|
2
2
|
|
3
|
+
### v0.7.0 (2021-09-29)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210924
|
6
|
+
|
7
|
+
### v0.6.0 (2021-09-15)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210910
|
10
|
+
|
11
|
+
### v0.5.0 (2021-08-18)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210813
|
14
|
+
|
15
|
+
### v0.4.0 (2021-07-14)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210712
|
18
|
+
|
3
19
|
### v0.3.0 (2021-06-30)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210625
|
@@ -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
|
@@ -245,6 +317,13 @@ module Google
|
|
245
317
|
attr_accessor :private_key_set
|
246
318
|
alias_method :private_key_set?, :private_key_set
|
247
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
|
+
|
248
327
|
def initialize(**args)
|
249
328
|
update!(**args)
|
250
329
|
end
|
@@ -255,6 +334,7 @@ module Google
|
|
255
334
|
@name = args[:name] if args.key?(:name)
|
256
335
|
@private_key = args[:private_key] if args.key?(:private_key)
|
257
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)
|
258
338
|
end
|
259
339
|
end
|
260
340
|
|
@@ -296,21 +376,21 @@ module Google
|
|
296
376
|
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest
|
297
377
|
include Google::Apis::Core::Hashable
|
298
378
|
|
299
|
-
# The App Attest statement as returned by Apple's client-side App
|
300
|
-
# This is the CBOR object returned by Apple, which will be Base64
|
301
|
-
# 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.
|
302
382
|
# Corresponds to the JSON property `attestationStatement`
|
303
383
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
304
384
|
# @return [String]
|
305
385
|
attr_accessor :attestation_statement
|
306
386
|
|
307
|
-
# The challenge previously generated by the FAC backend.
|
387
|
+
# Required. The challenge previously generated by the FAC backend.
|
308
388
|
# Corresponds to the JSON property `challenge`
|
309
389
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
310
390
|
# @return [String]
|
311
391
|
attr_accessor :challenge
|
312
392
|
|
313
|
-
# The key ID generated by App Attest for the client app.
|
393
|
+
# Required. The key ID generated by App Attest for the client app.
|
314
394
|
# Corresponds to the JSON property `keyId`
|
315
395
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
316
396
|
# @return [String]
|
@@ -360,7 +440,7 @@ module Google
|
|
360
440
|
class GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest
|
361
441
|
include Google::Apis::Core::Hashable
|
362
442
|
|
363
|
-
# 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
|
364
444
|
# credentials.
|
365
445
|
# Corresponds to the JSON property `customToken`
|
366
446
|
# @return [String]
|
@@ -380,8 +460,8 @@ module Google
|
|
380
460
|
class GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest
|
381
461
|
include Google::Apis::Core::Hashable
|
382
462
|
|
383
|
-
# A debug token secret. This string must match a debug token secret
|
384
|
-
# created using CreateDebugToken.
|
463
|
+
# Required. A debug token secret. This string must match a debug token secret
|
464
|
+
# previously created using CreateDebugToken.
|
385
465
|
# Corresponds to the JSON property `debugToken`
|
386
466
|
# @return [String]
|
387
467
|
attr_accessor :debug_token
|
@@ -400,9 +480,9 @@ module Google
|
|
400
480
|
class GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest
|
401
481
|
include Google::Apis::Core::Hashable
|
402
482
|
|
403
|
-
# The `device_token` as returned by Apple's client-side [DeviceCheck
|
404
|
-
#
|
405
|
-
# 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.
|
406
486
|
# Corresponds to the JSON property `deviceToken`
|
407
487
|
# @return [String]
|
408
488
|
attr_accessor :device_token
|
@@ -421,8 +501,8 @@ module Google
|
|
421
501
|
class GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest
|
422
502
|
include Google::Apis::Core::Hashable
|
423
503
|
|
424
|
-
# The reCAPTCHA token as returned by the [reCAPTCHA v3 JavaScript API](
|
425
|
-
# 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).
|
426
506
|
# Corresponds to the JSON property `recaptchaToken`
|
427
507
|
# @return [String]
|
428
508
|
attr_accessor :recaptcha_token
|
@@ -441,8 +521,8 @@ module Google
|
|
441
521
|
class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
|
442
522
|
include Google::Apis::Core::Hashable
|
443
523
|
|
444
|
-
# The [SafetyNet attestation response](https://developer.android.com/
|
445
|
-
# 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.
|
446
526
|
# Corresponds to the JSON property `safetyNetToken`
|
447
527
|
# @return [String]
|
448
528
|
attr_accessor :safety_net_token
|
@@ -632,6 +712,13 @@ module Google
|
|
632
712
|
attr_accessor :site_secret_set
|
633
713
|
alias_method :site_secret_set?, :site_secret_set
|
634
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
|
+
|
635
722
|
def initialize(**args)
|
636
723
|
update!(**args)
|
637
724
|
end
|
@@ -641,6 +728,41 @@ module Google
|
|
641
728
|
@name = args[:name] if args.key?(:name)
|
642
729
|
@site_secret = args[:site_secret] if args.key?(:site_secret)
|
643
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)
|
644
766
|
end
|
645
767
|
end
|
646
768
|
|
@@ -658,7 +780,7 @@ module Google
|
|
658
780
|
# the `service_id` element must be a supported service ID. Currently, the
|
659
781
|
# following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud
|
660
782
|
# Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime
|
661
|
-
# Database)
|
783
|
+
# Database) * `firestore.googleapis.com` (Cloud Firestore)
|
662
784
|
# Corresponds to the JSON property `name`
|
663
785
|
# @return [String]
|
664
786
|
attr_accessor :name
|
@@ -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.7.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210924"
|
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
|
@@ -858,6 +1076,7 @@ module Google
|
|
858
1076
|
# service_id` element must be a supported service ID. Currently, the following
|
859
1077
|
# service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage
|
860
1078
|
# for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database)
|
1079
|
+
# * `firestore.googleapis.com` (Cloud Firestore)
|
861
1080
|
# @param [String] fields
|
862
1081
|
# Selector specifying which fields to include in a partial response.
|
863
1082
|
# @param [String] quota_user
|
@@ -938,7 +1157,7 @@ module Google
|
|
938
1157
|
# the `service_id` element must be a supported service ID. Currently, the
|
939
1158
|
# following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud
|
940
1159
|
# Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime
|
941
|
-
# Database)
|
1160
|
+
# Database) * `firestore.googleapis.com` (Cloud Firestore)
|
942
1161
|
# @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService] google_firebase_appcheck_v1beta_service_object
|
943
1162
|
# @param [String] update_mask
|
944
1163
|
# Required. A comma-separated list of names of fields in the Service to update.
|
@@ -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.7.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-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/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.7.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: []
|