google-apis-firebaseappcheck_v1beta 0.27.0 → 0.28.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d08101c78c4d515bec5a78f17b4ef39a1251a1278c9ab9fd26b5ecbadbfad0f9
4
- data.tar.gz: ae576a3e50337c28d93182a34785cc1ae7b247f9a046a9742d06483aa11221d5
3
+ metadata.gz: e64fc6286e5717dbd6787bfc9200f9ada8f408cd3486866399cde4ede0e89b47
4
+ data.tar.gz: 6d33ba05daf706aaa8b652a9cbceeee7b53852716e8d2db08f9346b8ec16e8f4
5
5
  SHA512:
6
- metadata.gz: a9fc8d26c6cc1e8eb4da203a3d4816bba3280a9a401380bb7b23940391c1dab3960a0ddb243947d3180d8ac7153d9e968a38145a1de50d0dafbf51c1d3879eb4
7
- data.tar.gz: 61a8c6fa5ccd2f609118b7c24aad7650e93342957486a6fde86c2965a87ce509879c073988e32235d074f9827aad4ec104aa97a129a7cac730ece4131e45d35a
6
+ metadata.gz: 23f7d060761dcb02b1879edcdeeea4d93836f1b4bef1beb45f250c35bb735dfa766f0832deb053cc88cc7ec64eef764cdba562ae58fa2fa0284e5d5230d181cc
7
+ data.tar.gz: 03173b0b0f42599efa4e69e58119e382271dd9f3a766bb56e32cb6c648b57b56ccbbdfae392949a01748d22a0105a643df390ee37d54f173c859bd798cd760af
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-firebaseappcheck_v1beta
2
2
 
3
+ ### v0.28.0 (2023-06-04)
4
+
5
+ * Regenerated from discovery document revision 20230529
6
+
3
7
  ### v0.27.0 (2023-05-21)
4
8
 
5
9
  * Regenerated from discovery document revision 20230515
@@ -429,6 +429,13 @@ module Google
429
429
  # @return [String]
430
430
  attr_accessor :challenge
431
431
 
432
+ # Forces a short-lived token with a 5 minute TTL. Useful when the client wishes
433
+ # to impose stricter TTL requirements for this exchange. Default: false.
434
+ # Corresponds to the JSON property `limitedUse`
435
+ # @return [Boolean]
436
+ attr_accessor :limited_use
437
+ alias_method :limited_use?, :limited_use
438
+
432
439
  def initialize(**args)
433
440
  update!(**args)
434
441
  end
@@ -438,6 +445,7 @@ module Google
438
445
  @artifact = args[:artifact] if args.key?(:artifact)
439
446
  @assertion = args[:assertion] if args.key?(:assertion)
440
447
  @challenge = args[:challenge] if args.key?(:challenge)
448
+ @limited_use = args[:limited_use] if args.key?(:limited_use)
441
449
  end
442
450
  end
443
451
 
@@ -465,6 +473,13 @@ module Google
465
473
  # @return [String]
466
474
  attr_accessor :key_id
467
475
 
476
+ # Forces a short-lived token with a 5 minute TTL. Useful when the client wishes
477
+ # to impose stricter TTL requirements for this exchange. Default: false.
478
+ # Corresponds to the JSON property `limitedUse`
479
+ # @return [Boolean]
480
+ attr_accessor :limited_use
481
+ alias_method :limited_use?, :limited_use
482
+
468
483
  def initialize(**args)
469
484
  update!(**args)
470
485
  end
@@ -474,6 +489,7 @@ module Google
474
489
  @attestation_statement = args[:attestation_statement] if args.key?(:attestation_statement)
475
490
  @challenge = args[:challenge] if args.key?(:challenge)
476
491
  @key_id = args[:key_id] if args.key?(:key_id)
492
+ @limited_use = args[:limited_use] if args.key?(:limited_use)
477
493
  end
478
494
  end
479
495
 
@@ -521,6 +537,13 @@ module Google
521
537
  # @return [String]
522
538
  attr_accessor :custom_token
523
539
 
540
+ # Forces a short-lived token with a 5 minute TTL. Useful when the client wishes
541
+ # to impose stricter TTL requirements for this exchange. Default: false.
542
+ # Corresponds to the JSON property `limitedUse`
543
+ # @return [Boolean]
544
+ attr_accessor :limited_use
545
+ alias_method :limited_use?, :limited_use
546
+
524
547
  def initialize(**args)
525
548
  update!(**args)
526
549
  end
@@ -528,6 +551,7 @@ module Google
528
551
  # Update properties of this object
529
552
  def update!(**args)
530
553
  @custom_token = args[:custom_token] if args.key?(:custom_token)
554
+ @limited_use = args[:limited_use] if args.key?(:limited_use)
531
555
  end
532
556
  end
533
557
 
@@ -541,6 +565,13 @@ module Google
541
565
  # @return [String]
542
566
  attr_accessor :debug_token
543
567
 
568
+ # Forces a short-lived token with a 5 minute TTL. Useful when the client wishes
569
+ # to impose stricter TTL requirements for this exchange. Default: false.
570
+ # Corresponds to the JSON property `limitedUse`
571
+ # @return [Boolean]
572
+ attr_accessor :limited_use
573
+ alias_method :limited_use?, :limited_use
574
+
544
575
  def initialize(**args)
545
576
  update!(**args)
546
577
  end
@@ -548,6 +579,7 @@ module Google
548
579
  # Update properties of this object
549
580
  def update!(**args)
550
581
  @debug_token = args[:debug_token] if args.key?(:debug_token)
582
+ @limited_use = args[:limited_use] if args.key?(:limited_use)
551
583
  end
552
584
  end
553
585
 
@@ -562,6 +594,13 @@ module Google
562
594
  # @return [String]
563
595
  attr_accessor :device_token
564
596
 
597
+ # Forces a short-lived token with a 5 minute TTL. Useful when the client wishes
598
+ # to impose stricter TTL requirements for this exchange. Default: false.
599
+ # Corresponds to the JSON property `limitedUse`
600
+ # @return [Boolean]
601
+ attr_accessor :limited_use
602
+ alias_method :limited_use?, :limited_use
603
+
565
604
  def initialize(**args)
566
605
  update!(**args)
567
606
  end
@@ -569,6 +608,7 @@ module Google
569
608
  # Update properties of this object
570
609
  def update!(**args)
571
610
  @device_token = args[:device_token] if args.key?(:device_token)
611
+ @limited_use = args[:limited_use] if args.key?(:limited_use)
572
612
  end
573
613
  end
574
614
 
@@ -576,6 +616,13 @@ module Google
576
616
  class GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest
577
617
  include Google::Apis::Core::Hashable
578
618
 
619
+ # Forces a short-lived token with a 5 minute TTL. Useful when the client wishes
620
+ # to impose stricter TTL requirements for this exchange. Default: false.
621
+ # Corresponds to the JSON property `limitedUse`
622
+ # @return [Boolean]
623
+ attr_accessor :limited_use
624
+ alias_method :limited_use?, :limited_use
625
+
579
626
  # Required. The [integrity verdict response token from Play Integrity](https://
580
627
  # developer.android.com/google/play/integrity/verdict#decrypt-verify) issued to
581
628
  # your app.
@@ -589,6 +636,7 @@ module Google
589
636
 
590
637
  # Update properties of this object
591
638
  def update!(**args)
639
+ @limited_use = args[:limited_use] if args.key?(:limited_use)
592
640
  @play_integrity_token = args[:play_integrity_token] if args.key?(:play_integrity_token)
593
641
  end
594
642
  end
@@ -597,6 +645,13 @@ module Google
597
645
  class GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest
598
646
  include Google::Apis::Core::Hashable
599
647
 
648
+ # Forces a short-lived token with a 5 minute TTL. Useful when the client wishes
649
+ # to impose stricter TTL requirements for this exchange. Default: false.
650
+ # Corresponds to the JSON property `limitedUse`
651
+ # @return [Boolean]
652
+ attr_accessor :limited_use
653
+ alias_method :limited_use?, :limited_use
654
+
600
655
  # Required. The reCAPTCHA token as returned by the [reCAPTCHA Enterprise
601
656
  # JavaScript API](https://cloud.google.com/recaptcha-enterprise/docs/instrument-
602
657
  # web-pages).
@@ -610,6 +665,7 @@ module Google
610
665
 
611
666
  # Update properties of this object
612
667
  def update!(**args)
668
+ @limited_use = args[:limited_use] if args.key?(:limited_use)
613
669
  @recaptcha_enterprise_token = args[:recaptcha_enterprise_token] if args.key?(:recaptcha_enterprise_token)
614
670
  end
615
671
  end
@@ -638,6 +694,13 @@ module Google
638
694
  class GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest
639
695
  include Google::Apis::Core::Hashable
640
696
 
697
+ # Forces a short-lived token with a 5 minute TTL. Useful when the client wishes
698
+ # to impose stricter TTL requirements for this exchange. Default: false.
699
+ # Corresponds to the JSON property `limitedUse`
700
+ # @return [Boolean]
701
+ attr_accessor :limited_use
702
+ alias_method :limited_use?, :limited_use
703
+
641
704
  # Required. The reCAPTCHA token as returned by the [reCAPTCHA v3 JavaScript API](
642
705
  # https://developers.google.com/recaptcha/docs/v3).
643
706
  # Corresponds to the JSON property `recaptchaV3Token`
@@ -650,6 +713,7 @@ module Google
650
713
 
651
714
  # Update properties of this object
652
715
  def update!(**args)
716
+ @limited_use = args[:limited_use] if args.key?(:limited_use)
653
717
  @recaptcha_v3_token = args[:recaptcha_v3_token] if args.key?(:recaptcha_v3_token)
654
718
  end
655
719
  end
@@ -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.27.0"
19
+ GEM_VERSION = "0.28.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230515"
25
+ REVISION = "20230529"
26
26
  end
27
27
  end
28
28
  end
@@ -404,6 +404,7 @@ module Google
404
404
  property :artifact, :base64 => true, as: 'artifact'
405
405
  property :assertion, :base64 => true, as: 'assertion'
406
406
  property :challenge, :base64 => true, as: 'challenge'
407
+ property :limited_use, as: 'limitedUse'
407
408
  end
408
409
  end
409
410
 
@@ -413,6 +414,7 @@ module Google
413
414
  property :attestation_statement, :base64 => true, as: 'attestationStatement'
414
415
  property :challenge, :base64 => true, as: 'challenge'
415
416
  property :key_id, :base64 => true, as: 'keyId'
417
+ property :limited_use, as: 'limitedUse'
416
418
  end
417
419
  end
418
420
 
@@ -431,6 +433,7 @@ module Google
431
433
  # @private
432
434
  class Representation < Google::Apis::Core::JsonRepresentation
433
435
  property :custom_token, as: 'customToken'
436
+ property :limited_use, as: 'limitedUse'
434
437
  end
435
438
  end
436
439
 
@@ -438,6 +441,7 @@ module Google
438
441
  # @private
439
442
  class Representation < Google::Apis::Core::JsonRepresentation
440
443
  property :debug_token, as: 'debugToken'
444
+ property :limited_use, as: 'limitedUse'
441
445
  end
442
446
  end
443
447
 
@@ -445,12 +449,14 @@ module Google
445
449
  # @private
446
450
  class Representation < Google::Apis::Core::JsonRepresentation
447
451
  property :device_token, as: 'deviceToken'
452
+ property :limited_use, as: 'limitedUse'
448
453
  end
449
454
  end
450
455
 
451
456
  class GoogleFirebaseAppcheckV1betaExchangePlayIntegrityTokenRequest
452
457
  # @private
453
458
  class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :limited_use, as: 'limitedUse'
454
460
  property :play_integrity_token, as: 'playIntegrityToken'
455
461
  end
456
462
  end
@@ -458,6 +464,7 @@ module Google
458
464
  class GoogleFirebaseAppcheckV1betaExchangeRecaptchaEnterpriseTokenRequest
459
465
  # @private
460
466
  class Representation < Google::Apis::Core::JsonRepresentation
467
+ property :limited_use, as: 'limitedUse'
461
468
  property :recaptcha_enterprise_token, as: 'recaptchaEnterpriseToken'
462
469
  end
463
470
  end
@@ -472,6 +479,7 @@ module Google
472
479
  class GoogleFirebaseAppcheckV1betaExchangeRecaptchaV3TokenRequest
473
480
  # @private
474
481
  class Representation < Google::Apis::Core::JsonRepresentation
482
+ property :limited_use, as: 'limitedUse'
475
483
  property :recaptcha_v3_token, as: 'recaptchaV3Token'
476
484
  end
477
485
  end
@@ -84,6 +84,126 @@ module Google
84
84
  execute_or_queue_command(command, &block)
85
85
  end
86
86
 
87
+ # Accepts an App Attest assertion and an artifact previously obtained from
88
+ # ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns
89
+ # an AppCheckToken.
90
+ # @param [String] app
91
+ # Required. The relative resource name of the iOS app, in the format: ```
92
+ # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
93
+ # element can be replaced with the project ID of the Firebase project. Learn
94
+ # more about using project identifiers in Google's [AIP 2510](https://google.aip.
95
+ # dev/cloud/2510) standard.
96
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest] google_firebase_appcheck_v1beta_exchange_app_attest_assertion_request_object
97
+ # @param [String] fields
98
+ # Selector specifying which fields to include in a partial response.
99
+ # @param [String] quota_user
100
+ # Available to use for quota purposes for server-side applications. Can be any
101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
102
+ # @param [Google::Apis::RequestOptions] options
103
+ # Request-specific options
104
+ #
105
+ # @yield [result, err] Result & error if block supplied
106
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken] parsed result object
107
+ # @yieldparam err [StandardError] error object if request failed
108
+ #
109
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken]
110
+ #
111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
114
+ def exchange_oauth_client_app_attest_assertion(app, google_firebase_appcheck_v1beta_exchange_app_attest_assertion_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
115
+ command = make_simple_command(:post, 'v1beta/{+app}:exchangeAppAttestAssertion', options)
116
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAssertionRequest::Representation
117
+ command.request_object = google_firebase_appcheck_v1beta_exchange_app_attest_assertion_request_object
118
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken::Representation
119
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppCheckToken
120
+ command.params['app'] = app unless app.nil?
121
+ command.query['fields'] = fields unless fields.nil?
122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
123
+ execute_or_queue_command(command, &block)
124
+ end
125
+
126
+ # Accepts an App Attest CBOR attestation and verifies it with Apple using your
127
+ # preconfigured team and bundle IDs. If valid, returns an attestation artifact
128
+ # that can later be exchanged for an AppCheckToken using
129
+ # ExchangeAppAttestAssertion. For convenience and performance, this method's
130
+ # response object will also contain an AppCheckToken (if the verification is
131
+ # successful).
132
+ # @param [String] app
133
+ # Required. The relative resource name of the iOS app, in the format: ```
134
+ # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
135
+ # element can be replaced with the project ID of the Firebase project. Learn
136
+ # more about using project identifiers in Google's [AIP 2510](https://google.aip.
137
+ # dev/cloud/2510) standard.
138
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest] google_firebase_appcheck_v1beta_exchange_app_attest_attestation_request_object
139
+ # @param [String] fields
140
+ # Selector specifying which fields to include in a partial response.
141
+ # @param [String] quota_user
142
+ # Available to use for quota purposes for server-side applications. Can be any
143
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
144
+ # @param [Google::Apis::RequestOptions] options
145
+ # Request-specific options
146
+ #
147
+ # @yield [result, err] Result & error if block supplied
148
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse] parsed result object
149
+ # @yieldparam err [StandardError] error object if request failed
150
+ #
151
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse]
152
+ #
153
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
154
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
155
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
156
+ def exchange_oauth_client_app_attest_attestation(app, google_firebase_appcheck_v1beta_exchange_app_attest_attestation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
157
+ command = make_simple_command(:post, 'v1beta/{+app}:exchangeAppAttestAttestation', options)
158
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationRequest::Representation
159
+ command.request_object = google_firebase_appcheck_v1beta_exchange_app_attest_attestation_request_object
160
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse::Representation
161
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeAppAttestAttestationResponse
162
+ command.params['app'] = app unless app.nil?
163
+ command.query['fields'] = fields unless fields.nil?
164
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
165
+ execute_or_queue_command(command, &block)
166
+ end
167
+
168
+ # Generates a challenge that protects the integrity of an immediately following
169
+ # call to ExchangeAppAttestAttestation or ExchangeAppAttestAssertion. A
170
+ # challenge should not be reused for multiple calls.
171
+ # @param [String] app
172
+ # Required. The relative resource name of the iOS app, in the format: ```
173
+ # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
174
+ # element can be replaced with the project ID of the Firebase project. Learn
175
+ # more about using project identifiers in Google's [AIP 2510](https://google.aip.
176
+ # dev/cloud/2510) standard.
177
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest] google_firebase_appcheck_v1beta_generate_app_attest_challenge_request_object
178
+ # @param [String] fields
179
+ # Selector specifying which fields to include in a partial response.
180
+ # @param [String] quota_user
181
+ # Available to use for quota purposes for server-side applications. Can be any
182
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
183
+ # @param [Google::Apis::RequestOptions] options
184
+ # Request-specific options
185
+ #
186
+ # @yield [result, err] Result & error if block supplied
187
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse] parsed result object
188
+ # @yieldparam err [StandardError] error object if request failed
189
+ #
190
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse]
191
+ #
192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
195
+ def generate_oauth_client_app_attest_challenge(app, google_firebase_appcheck_v1beta_generate_app_attest_challenge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
196
+ command = make_simple_command(:post, 'v1beta/{+app}:generateAppAttestChallenge', options)
197
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeRequest::Representation
198
+ command.request_object = google_firebase_appcheck_v1beta_generate_app_attest_challenge_request_object
199
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse::Representation
200
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaGenerateAppAttestChallengeResponse
201
+ command.params['app'] = app unless app.nil?
202
+ command.query['fields'] = fields unless fields.nil?
203
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
204
+ execute_or_queue_command(command, &block)
205
+ end
206
+
87
207
  # Verifies the given App Check token and returns token usage signals that
88
208
  # callers may act upon. This method currently only supports App Check tokens
89
209
  # exchanged from the following attestation providers: * Play Integrity API * App
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.27.0
4
+ version: 0.28.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: 2023-05-21 00:00:00.000000000 Z
11
+ date: 2023-06-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/main/generated/google-apis-firebaseappcheck_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.27.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.28.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseappcheck_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []