google-apis-firebaseappcheck_v1beta 0.1.0 → 0.5.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 +18 -0
- data/lib/google/apis/firebaseappcheck_v1beta.rb +1 -1
- data/lib/google/apis/firebaseappcheck_v1beta/classes.rb +270 -2
- data/lib/google/apis/firebaseappcheck_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/firebaseappcheck_v1beta/representations.rb +129 -0
- data/lib/google/apis/firebaseappcheck_v1beta/service.rb +327 -0
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a45c368a19f5db8386e290d518ead660d3a2ddeeb8a668b8bb2ff940e58aa16c
|
4
|
+
data.tar.gz: 41850a84c3f1b35e514e79e1e0ad8f26d0e8b348bbb32af8e56463854dad5fde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a40e38419e2f756176f08733f11776ce907826108e48ba6e0b4603b3434f1d51d61fcd4bd701ac5abfda3c528904d681a3d9eed55370b10db6bb13190b115ce
|
7
|
+
data.tar.gz: 96b23cd8ea24a50c22ad7373125d3478b060e78bd7b2396cfa49741678570d4e8fd1b77a7743ada440312d6e5246015783e2eae59aac7553187aa276da754199
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Release history for google-apis-firebaseappcheck_v1beta
|
2
2
|
|
3
|
+
### v0.5.0 (2021-08-18)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210813
|
6
|
+
|
7
|
+
### v0.4.0 (2021-07-14)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210712
|
10
|
+
|
11
|
+
### v0.3.0 (2021-06-30)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210625
|
14
|
+
* Regenerated using generator version 0.4.0
|
15
|
+
|
16
|
+
### v0.2.0 (2021-06-24)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210621
|
19
|
+
* Regenerated using generator version 0.3.0
|
20
|
+
|
3
21
|
### v0.1.0 (2021-05-27)
|
4
22
|
|
5
23
|
* Regenerated from discovery document revision 20210524
|
@@ -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
|
@@ -22,6 +22,70 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module FirebaseappcheckV1beta
|
24
24
|
|
25
|
+
# Response object for GenerateAppAttestChallenge
|
26
|
+
class GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# A one time use challenge for the client to pass to Apple's 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 it is expired. This
|
36
|
+
# field is intended to ease client-side token management, since the device may
|
37
|
+
# have clock skew, but is still able to accurately measure a duration. This
|
38
|
+
# expiration is intended to minimize the replay window within which a single
|
39
|
+
# challenge may be reused. See AIP 142 for naming of this field.
|
40
|
+
# Corresponds to the JSON property `ttl`
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :ttl
|
43
|
+
|
44
|
+
def initialize(**args)
|
45
|
+
update!(**args)
|
46
|
+
end
|
47
|
+
|
48
|
+
# Update properties of this object
|
49
|
+
def update!(**args)
|
50
|
+
@challenge = args[:challenge] if args.key?(:challenge)
|
51
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
52
|
+
end
|
53
|
+
end
|
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
|
+
|
25
89
|
# Encapsulates an *App Check token*, which are used to access Firebase services
|
26
90
|
# protected by App Check.
|
27
91
|
class GoogleFirebaseAppcheckV1betaAttestationTokenResponse
|
@@ -52,6 +116,25 @@ module Google
|
|
52
116
|
end
|
53
117
|
end
|
54
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
|
+
|
55
138
|
# Response message for the BatchGetDeviceCheckConfigs method.
|
56
139
|
class GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse
|
57
140
|
include Google::Apis::Core::Hashable
|
@@ -90,6 +173,25 @@ module Google
|
|
90
173
|
end
|
91
174
|
end
|
92
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
|
+
|
93
195
|
# Request message for the BatchUpdateServices method.
|
94
196
|
class GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest
|
95
197
|
include Google::Apis::Core::Hashable
|
@@ -179,7 +281,11 @@ module Google
|
|
179
281
|
|
180
282
|
# An app's DeviceCheck configuration object. This configuration is used by
|
181
283
|
# ExchangeDeviceCheckToken to validate device tokens issued to apps by
|
182
|
-
# 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).
|
183
289
|
class GoogleFirebaseAppcheckV1betaDeviceCheckConfig
|
184
290
|
include Google::Apis::Core::Hashable
|
185
291
|
|
@@ -211,6 +317,13 @@ module Google
|
|
211
317
|
attr_accessor :private_key_set
|
212
318
|
alias_method :private_key_set?, :private_key_set
|
213
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
|
+
|
214
327
|
def initialize(**args)
|
215
328
|
update!(**args)
|
216
329
|
end
|
@@ -221,6 +334,105 @@ module Google
|
|
221
334
|
@name = args[:name] if args.key?(:name)
|
222
335
|
@private_key = args[:private_key] if args.key?(:private_key)
|
223
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)
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
# Request message for ExchangeAppAttestAssertion
|
342
|
+
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest
|
343
|
+
include Google::Apis::Core::Hashable
|
344
|
+
|
345
|
+
# The artifact previously returned by ExchangeAppAttestAttestation.
|
346
|
+
# Corresponds to the JSON property `artifact`
|
347
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
348
|
+
# @return [String]
|
349
|
+
attr_accessor :artifact
|
350
|
+
|
351
|
+
# The CBOR encoded assertion provided by the Apple App Attest SDK.
|
352
|
+
# Corresponds to the JSON property `assertion`
|
353
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
354
|
+
# @return [String]
|
355
|
+
attr_accessor :assertion
|
356
|
+
|
357
|
+
# A one time challenge returned by GenerateAppAttestChallenge.
|
358
|
+
# Corresponds to the JSON property `challenge`
|
359
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
360
|
+
# @return [String]
|
361
|
+
attr_accessor :challenge
|
362
|
+
|
363
|
+
def initialize(**args)
|
364
|
+
update!(**args)
|
365
|
+
end
|
366
|
+
|
367
|
+
# Update properties of this object
|
368
|
+
def update!(**args)
|
369
|
+
@artifact = args[:artifact] if args.key?(:artifact)
|
370
|
+
@assertion = args[:assertion] if args.key?(:assertion)
|
371
|
+
@challenge = args[:challenge] if args.key?(:challenge)
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
375
|
+
# Request message for ExchangeAppAttestAttestation
|
376
|
+
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest
|
377
|
+
include Google::Apis::Core::Hashable
|
378
|
+
|
379
|
+
# The App Attest statement as returned by Apple's client-side App Attest API.
|
380
|
+
# This is the CBOR object returned by Apple, which will be Base64 encoded in the
|
381
|
+
# JSON API.
|
382
|
+
# Corresponds to the JSON property `attestationStatement`
|
383
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
384
|
+
# @return [String]
|
385
|
+
attr_accessor :attestation_statement
|
386
|
+
|
387
|
+
# The challenge previously generated by the FAC backend.
|
388
|
+
# Corresponds to the JSON property `challenge`
|
389
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
390
|
+
# @return [String]
|
391
|
+
attr_accessor :challenge
|
392
|
+
|
393
|
+
# The key ID generated by App Attest for the client app.
|
394
|
+
# Corresponds to the JSON property `keyId`
|
395
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
396
|
+
# @return [String]
|
397
|
+
attr_accessor :key_id
|
398
|
+
|
399
|
+
def initialize(**args)
|
400
|
+
update!(**args)
|
401
|
+
end
|
402
|
+
|
403
|
+
# Update properties of this object
|
404
|
+
def update!(**args)
|
405
|
+
@attestation_statement = args[:attestation_statement] if args.key?(:attestation_statement)
|
406
|
+
@challenge = args[:challenge] if args.key?(:challenge)
|
407
|
+
@key_id = args[:key_id] if args.key?(:key_id)
|
408
|
+
end
|
409
|
+
end
|
410
|
+
|
411
|
+
# Response message for ExchangeAppAttestAttestation and
|
412
|
+
# ExchangeAppAttestDebugAttestation
|
413
|
+
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
|
414
|
+
include Google::Apis::Core::Hashable
|
415
|
+
|
416
|
+
# An artifact that should be passed back during the Assertion flow.
|
417
|
+
# Corresponds to the JSON property `artifact`
|
418
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
419
|
+
# @return [String]
|
420
|
+
attr_accessor :artifact
|
421
|
+
|
422
|
+
# Encapsulates an *App Check token*, which are used to access Firebase services
|
423
|
+
# protected by App Check.
|
424
|
+
# Corresponds to the JSON property `attestationToken`
|
425
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
|
426
|
+
attr_accessor :attestation_token
|
427
|
+
|
428
|
+
def initialize(**args)
|
429
|
+
update!(**args)
|
430
|
+
end
|
431
|
+
|
432
|
+
# Update properties of this object
|
433
|
+
def update!(**args)
|
434
|
+
@artifact = args[:artifact] if args.key?(:artifact)
|
435
|
+
@attestation_token = args[:attestation_token] if args.key?(:attestation_token)
|
224
436
|
end
|
225
437
|
end
|
226
438
|
|
@@ -325,6 +537,19 @@ module Google
|
|
325
537
|
end
|
326
538
|
end
|
327
539
|
|
540
|
+
# Request message for GenerateAppAttestChallenge
|
541
|
+
class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest
|
542
|
+
include Google::Apis::Core::Hashable
|
543
|
+
|
544
|
+
def initialize(**args)
|
545
|
+
update!(**args)
|
546
|
+
end
|
547
|
+
|
548
|
+
# Update properties of this object
|
549
|
+
def update!(**args)
|
550
|
+
end
|
551
|
+
end
|
552
|
+
|
328
553
|
# Response message for the ListDebugTokens method.
|
329
554
|
class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
|
330
555
|
include Google::Apis::Core::Hashable
|
@@ -461,7 +686,8 @@ module Google
|
|
461
686
|
|
462
687
|
# An app's reCAPTCHA v3 configuration object. This configuration is used by
|
463
688
|
# ExchangeRecaptchaToken to validate reCAPTCHA tokens issued to apps by
|
464
|
-
# reCAPTCHA v3.
|
689
|
+
# reCAPTCHA v3. It also controls certain properties of the returned App Check
|
690
|
+
# token, such as its ttl.
|
465
691
|
class GoogleFirebaseAppcheckV1betaRecaptchaConfig
|
466
692
|
include Google::Apis::Core::Hashable
|
467
693
|
|
@@ -486,6 +712,13 @@ module Google
|
|
486
712
|
attr_accessor :site_secret_set
|
487
713
|
alias_method :site_secret_set?, :site_secret_set
|
488
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
|
+
|
489
722
|
def initialize(**args)
|
490
723
|
update!(**args)
|
491
724
|
end
|
@@ -495,6 +728,41 @@ module Google
|
|
495
728
|
@name = args[:name] if args.key?(:name)
|
496
729
|
@site_secret = args[:site_secret] if args.key?(:site_secret)
|
497
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)
|
498
766
|
end
|
499
767
|
end
|
500
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.5.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 = "20210813"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,12 +22,30 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module FirebaseappcheckV1beta
|
24
24
|
|
25
|
+
class GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class GoogleFirebaseAppcheckV1betaAppAttestConfig
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
25
37
|
class GoogleFirebaseAppcheckV1betaAttestationTokenResponse
|
26
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
39
|
|
28
40
|
include Google::Apis::Core::JsonObjectSupport
|
29
41
|
end
|
30
42
|
|
43
|
+
class GoogleFirebaseAppcheckV1betaBatchGetAppAttestConfigsResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
31
49
|
class GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse
|
32
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
51
|
|
@@ -40,6 +58,12 @@ module Google
|
|
40
58
|
include Google::Apis::Core::JsonObjectSupport
|
41
59
|
end
|
42
60
|
|
61
|
+
class GoogleFirebaseAppcheckV1betaBatchGetSafetyNetConfigsResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
43
67
|
class GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest
|
44
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
69
|
|
@@ -64,6 +88,24 @@ module Google
|
|
64
88
|
include Google::Apis::Core::JsonObjectSupport
|
65
89
|
end
|
66
90
|
|
91
|
+
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
67
109
|
class GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest
|
68
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
111
|
|
@@ -94,6 +136,12 @@ module Google
|
|
94
136
|
include Google::Apis::Core::JsonObjectSupport
|
95
137
|
end
|
96
138
|
|
139
|
+
class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
97
145
|
class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
|
98
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
147
|
|
@@ -124,6 +172,12 @@ module Google
|
|
124
172
|
include Google::Apis::Core::JsonObjectSupport
|
125
173
|
end
|
126
174
|
|
175
|
+
class GoogleFirebaseAppcheckV1betaSafetyNetConfig
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
127
181
|
class GoogleFirebaseAppcheckV1betaService
|
128
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
183
|
|
@@ -142,6 +196,22 @@ module Google
|
|
142
196
|
include Google::Apis::Core::JsonObjectSupport
|
143
197
|
end
|
144
198
|
|
199
|
+
class GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse
|
200
|
+
# @private
|
201
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
202
|
+
property :challenge, :base64 => true, as: 'challenge'
|
203
|
+
property :ttl, as: 'ttl'
|
204
|
+
end
|
205
|
+
end
|
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
|
+
|
145
215
|
class GoogleFirebaseAppcheckV1betaAttestationTokenResponse
|
146
216
|
# @private
|
147
217
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -150,6 +220,14 @@ module Google
|
|
150
220
|
end
|
151
221
|
end
|
152
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
|
+
|
153
231
|
class GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse
|
154
232
|
# @private
|
155
233
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -166,6 +244,14 @@ module Google
|
|
166
244
|
end
|
167
245
|
end
|
168
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
|
+
|
169
255
|
class GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest
|
170
256
|
# @private
|
171
257
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -199,6 +285,34 @@ module Google
|
|
199
285
|
property :name, as: 'name'
|
200
286
|
property :private_key, as: 'privateKey'
|
201
287
|
property :private_key_set, as: 'privateKeySet'
|
288
|
+
property :token_ttl, as: 'tokenTtl'
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest
|
293
|
+
# @private
|
294
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
295
|
+
property :artifact, :base64 => true, as: 'artifact'
|
296
|
+
property :assertion, :base64 => true, as: 'assertion'
|
297
|
+
property :challenge, :base64 => true, as: 'challenge'
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest
|
302
|
+
# @private
|
303
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
304
|
+
property :attestation_statement, :base64 => true, as: 'attestationStatement'
|
305
|
+
property :challenge, :base64 => true, as: 'challenge'
|
306
|
+
property :key_id, :base64 => true, as: 'keyId'
|
307
|
+
end
|
308
|
+
end
|
309
|
+
|
310
|
+
class GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
|
311
|
+
# @private
|
312
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
313
|
+
property :artifact, :base64 => true, as: 'artifact'
|
314
|
+
property :attestation_token, as: 'attestationToken', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
|
315
|
+
|
202
316
|
end
|
203
317
|
end
|
204
318
|
|
@@ -237,6 +351,12 @@ module Google
|
|
237
351
|
end
|
238
352
|
end
|
239
353
|
|
354
|
+
class GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest
|
355
|
+
# @private
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
240
360
|
class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
|
241
361
|
# @private
|
242
362
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -281,6 +401,15 @@ module Google
|
|
281
401
|
property :name, as: 'name'
|
282
402
|
property :site_secret, as: 'siteSecret'
|
283
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'
|
284
413
|
end
|
285
414
|
end
|
286
415
|
|
@@ -94,6 +94,80 @@ module Google
|
|
94
94
|
execute_or_queue_command(command, &block)
|
95
95
|
end
|
96
96
|
|
97
|
+
# Accepts a AppAttest Artifact and Assertion, and uses the developer's
|
98
|
+
# preconfigured auth token to verify the token with Apple. Returns an
|
99
|
+
# AttestationToken with the App ID as specified by the `app` field included as
|
100
|
+
# attested claims.
|
101
|
+
# @param [String] app
|
102
|
+
# Required. The full resource name to the iOS App. Format: "projects/`project_id`
|
103
|
+
# /apps/`app_id`"
|
104
|
+
# @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest] google_firebase_appcheck_v1beta_exchange_app_attest_assertion_request_object
|
105
|
+
# @param [String] fields
|
106
|
+
# Selector specifying which fields to include in a partial response.
|
107
|
+
# @param [String] quota_user
|
108
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
109
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
110
|
+
# @param [Google::Apis::RequestOptions] options
|
111
|
+
# Request-specific options
|
112
|
+
#
|
113
|
+
# @yield [result, err] Result & error if block supplied
|
114
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
|
115
|
+
# @yieldparam err [StandardError] error object if request failed
|
116
|
+
#
|
117
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
|
118
|
+
#
|
119
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
120
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
121
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
122
|
+
def exchange_project_app_app_attest_assertion(app, google_firebase_appcheck_v1beta_exchange_app_attest_assertion_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
123
|
+
command = make_simple_command(:post, 'v1beta/{+app}:exchangeAppAttestAssertion', options)
|
124
|
+
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest::Representation
|
125
|
+
command.request_object = google_firebase_appcheck_v1beta_exchange_app_attest_assertion_request_object
|
126
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
|
127
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
|
128
|
+
command.params['app'] = app unless app.nil?
|
129
|
+
command.query['fields'] = fields unless fields.nil?
|
130
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
131
|
+
execute_or_queue_command(command, &block)
|
132
|
+
end
|
133
|
+
|
134
|
+
# Accepts a AppAttest CBOR Attestation, and uses the developer's preconfigured
|
135
|
+
# team and bundle IDs to verify the token with Apple. Returns an Attestation
|
136
|
+
# Artifact that can later be exchanged for an AttestationToken in
|
137
|
+
# ExchangeAppAttestAssertion.
|
138
|
+
# @param [String] app
|
139
|
+
# Required. The full resource name to the iOS App. Format: "projects/`project_id`
|
140
|
+
# /apps/`app_id`"
|
141
|
+
# @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest] google_firebase_appcheck_v1beta_exchange_app_attest_attestation_request_object
|
142
|
+
# @param [String] fields
|
143
|
+
# Selector specifying which fields to include in a partial response.
|
144
|
+
# @param [String] quota_user
|
145
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
146
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
147
|
+
# @param [Google::Apis::RequestOptions] options
|
148
|
+
# Request-specific options
|
149
|
+
#
|
150
|
+
# @yield [result, err] Result & error if block supplied
|
151
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse] parsed result object
|
152
|
+
# @yieldparam err [StandardError] error object if request failed
|
153
|
+
#
|
154
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse]
|
155
|
+
#
|
156
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
157
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
158
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
159
|
+
def exchange_project_app_app_attest_attestation(app, google_firebase_appcheck_v1beta_exchange_app_attest_attestation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
160
|
+
command = make_simple_command(:post, 'v1beta/{+app}:exchangeAppAttestAttestation', options)
|
161
|
+
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest::Representation
|
162
|
+
command.request_object = google_firebase_appcheck_v1beta_exchange_app_attest_attestation_request_object
|
163
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse::Representation
|
164
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
|
165
|
+
command.params['app'] = app unless app.nil?
|
166
|
+
command.query['fields'] = fields unless fields.nil?
|
167
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
168
|
+
execute_or_queue_command(command, &block)
|
169
|
+
end
|
170
|
+
|
97
171
|
# Validates a custom token signed using your project's Admin SDK service account
|
98
172
|
# credentials. If valid, returns an App Check token encapsulated in an
|
99
173
|
# AttestationTokenResponse.
|
@@ -291,6 +365,150 @@ module Google
|
|
291
365
|
execute_or_queue_command(command, &block)
|
292
366
|
end
|
293
367
|
|
368
|
+
# Initiates the App Attest flow by generating a challenge which will be used as
|
369
|
+
# a type of nonce for this attestation.
|
370
|
+
# @param [String] app
|
371
|
+
# Required. The full resource name to the iOS App. Format: "projects/`project_id`
|
372
|
+
# /apps/`app_id`"
|
373
|
+
# @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest] google_firebase_appcheck_v1beta_generate_app_attest_challenge_request_object
|
374
|
+
# @param [String] fields
|
375
|
+
# Selector specifying which fields to include in a partial response.
|
376
|
+
# @param [String] quota_user
|
377
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
378
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
379
|
+
# @param [Google::Apis::RequestOptions] options
|
380
|
+
# Request-specific options
|
381
|
+
#
|
382
|
+
# @yield [result, err] Result & error if block supplied
|
383
|
+
# @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse] parsed result object
|
384
|
+
# @yieldparam err [StandardError] error object if request failed
|
385
|
+
#
|
386
|
+
# @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse]
|
387
|
+
#
|
388
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
389
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
390
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
391
|
+
def generate_project_app_app_attest_challenge(app, google_firebase_appcheck_v1beta_generate_app_attest_challenge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
392
|
+
command = make_simple_command(:post, 'v1beta/{+app}:generateAppAttestChallenge', options)
|
393
|
+
command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest::Representation
|
394
|
+
command.request_object = google_firebase_appcheck_v1beta_generate_app_attest_challenge_request_object
|
395
|
+
command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse::Representation
|
396
|
+
command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse
|
397
|
+
command.params['app'] = app unless app.nil?
|
398
|
+
command.query['fields'] = fields unless fields.nil?
|
399
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
400
|
+
execute_or_queue_command(command, &block)
|
401
|
+
end
|
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
|
+
|
294
512
|
# Creates a new DebugToken for the specified app. For security reasons, after
|
295
513
|
# the creation operation completes, the `token` field cannot be updated or
|
296
514
|
# retrieved, but you can revoke the debug token using DeleteDebugToken. Each app
|
@@ -706,6 +924,115 @@ module Google
|
|
706
924
|
execute_or_queue_command(command, &block)
|
707
925
|
end
|
708
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
|
+
|
709
1036
|
# Updates the specified Service configurations atomically.
|
710
1037
|
# @param [String] parent
|
711
1038
|
# Required. The parent project name shared by all Service configurations being
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.5.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-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Firebase App Check API V1beta. Simple
|
28
34
|
REST clients are Ruby client libraries that provide access to Google services via
|
29
35
|
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-firebaseappcheck_v1beta/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.5.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-firebaseappcheck_v1beta
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|