google-apis-firebaseappcheck_v1beta 0.51.0 → 0.52.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: 1169bca8721cecb301df4099489e66dc1c76e8d5328fcbec39d8c082ae2a081e
4
- data.tar.gz: 68f3dd6ffc61f3860a2a54a6f9feced38c546c54978f1845246661be7cdab01c
3
+ metadata.gz: ba2ac6ef45c388e7dcda1499b96d794bc7560faa0e8cbbfd9119798f9f2a91f9
4
+ data.tar.gz: 8e7dfb0096cbef4f1e4a6e91c380fd1e7598bd84223c022c7829ba388401c5ed
5
5
  SHA512:
6
- metadata.gz: eba0d182cd454a6cbd238d5593fdd0b889e60234dc1305a911422003032b0174f214c5d6f1c20fa5d18fe8b382a99caf72b5b3e7b275b26a256a1a9cea8e20a3
7
- data.tar.gz: f9bd48b14f0b8ddf3793edaae8c4e0056e543a427bcfcc520e025bc36b119ed1a26d7d68901315661458d65133482dd71faf4dee9d1a04cb08aa2c0bd913947c
6
+ metadata.gz: 756144dd6539bd7d9fd0953bdc6e21dbf270878e3dd0990b0761f536d33a5b953a16c4ca004e7448b25f1f8fa6138cace4672e0beff1b3144a1a8a6b371453e4
7
+ data.tar.gz: aed95e4363789bd025b2c7587e1b228153d1dfdd1e630890d6692ed7ae65805617650c6c9c4ace10506a59720489af4c8767bdd6398b1e753c0c7bdd7d13d50c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-firebaseappcheck_v1beta
2
2
 
3
+ ### v0.52.0 (2026-08-30)
4
+
5
+ * Regenerated from discovery document revision 20260822
6
+
3
7
  ### v0.51.0 (2026-08-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20260717
@@ -886,6 +886,32 @@ module Google
886
886
  end
887
887
  end
888
888
 
889
+ # Configuration for a limited-use App Check token.
890
+ class GoogleFirebaseAppcheckV1betaLimitedUseConfig
891
+ include Google::Apis::Core::Hashable
892
+
893
+ # Optional. Specifies the desired `jti` claim (Section 4.1.7 of RFC 7519) in the
894
+ # returned App Check token. Limited-use App Check tokens with the same `jti`
895
+ # will be counted as the same token for the purposes of replay protection. The
896
+ # size of this field is limited to 500 bytes. If specified, its length must be
897
+ # at least 16 bytes. If this field is omitted or is empty, a randomly generated `
898
+ # jti` claim with length between 16 and 500 bytes (inclusive) will be used in
899
+ # the returned App Check token. Leaving this field empty is only recommended if
900
+ # your custom attestation provider itself is not vulnerable to replay attacks.
901
+ # Corresponds to the JSON property `jti`
902
+ # @return [String]
903
+ attr_accessor :jti
904
+
905
+ def initialize(**args)
906
+ update!(**args)
907
+ end
908
+
909
+ # Update properties of this object
910
+ def update!(**args)
911
+ @jti = args[:jti] if args.key?(:jti)
912
+ end
913
+ end
914
+
889
915
  # Response message for the ListDebugTokens method.
890
916
  class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
891
917
  include Google::Apis::Core::Hashable
@@ -973,6 +999,66 @@ module Google
973
999
  end
974
1000
  end
975
1001
 
1002
+ # Request message for the MintAppCheckToken method.
1003
+ class GoogleFirebaseAppcheckV1betaMintAppCheckTokenRequest
1004
+ include Google::Apis::Core::Hashable
1005
+
1006
+ # Configuration for a limited-use App Check token.
1007
+ # Corresponds to the JSON property `limitedUseConfig`
1008
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaLimitedUseConfig]
1009
+ attr_accessor :limited_use_config
1010
+
1011
+ # Optional. If specified, the returned App Check token will be a session token,
1012
+ # valid for the specified duration. Must be between 30 minutes and 7 days,
1013
+ # inclusive.
1014
+ # Corresponds to the JSON property `tokenTtl`
1015
+ # @return [String]
1016
+ attr_accessor :token_ttl
1017
+
1018
+ def initialize(**args)
1019
+ update!(**args)
1020
+ end
1021
+
1022
+ # Update properties of this object
1023
+ def update!(**args)
1024
+ @limited_use_config = args[:limited_use_config] if args.key?(:limited_use_config)
1025
+ @token_ttl = args[:token_ttl] if args.key?(:token_ttl)
1026
+ end
1027
+ end
1028
+
1029
+ # Response message for the MintAppCheckToken method.
1030
+ class GoogleFirebaseAppcheckV1betaMintAppCheckTokenResponse
1031
+ include Google::Apis::Core::Hashable
1032
+
1033
+ # The App Check token, used to access backend services protected by App Check.
1034
+ # App Check tokens are signed [JWTs](https://tools.ietf.org/html/rfc7519)
1035
+ # containing claims that identify the attested app and GCP project. This token
1036
+ # is used to access Google services protected by App Check. These tokens can
1037
+ # also be [verified by your own custom backends](https://firebase.google.com/
1038
+ # docs/app-check/custom-resource-backend) using the Firebase Admin SDK or third-
1039
+ # party libraries.
1040
+ # Corresponds to the JSON property `token`
1041
+ # @return [String]
1042
+ attr_accessor :token
1043
+
1044
+ # The duration from the time this token is minted until its expiration. This
1045
+ # field is intended to ease client-side token management, since the client may
1046
+ # have clock skew, but is still able to accurately measure a duration.
1047
+ # Corresponds to the JSON property `ttl`
1048
+ # @return [String]
1049
+ attr_accessor :ttl
1050
+
1051
+ def initialize(**args)
1052
+ update!(**args)
1053
+ end
1054
+
1055
+ # Update properties of this object
1056
+ def update!(**args)
1057
+ @token = args[:token] if args.key?(:token)
1058
+ @ttl = args[:ttl] if args.key?(:ttl)
1059
+ end
1060
+ end
1061
+
976
1062
  # An app's Play Integrity configuration object. This configuration controls
977
1063
  # certain properties of the `AppCheckToken` returned by
978
1064
  # ExchangePlayIntegrityToken, such as its ttl. Note that your registered SHA-256
@@ -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.51.0"
19
+ GEM_VERSION = "0.52.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260717"
25
+ REVISION = "20260822"
26
26
  end
27
27
  end
28
28
  end
@@ -196,6 +196,12 @@ module Google
196
196
  include Google::Apis::Core::JsonObjectSupport
197
197
  end
198
198
 
199
+ class GoogleFirebaseAppcheckV1betaLimitedUseConfig
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
199
205
  class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
200
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
207
 
@@ -214,6 +220,18 @@ module Google
214
220
  include Google::Apis::Core::JsonObjectSupport
215
221
  end
216
222
 
223
+ class GoogleFirebaseAppcheckV1betaMintAppCheckTokenRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class GoogleFirebaseAppcheckV1betaMintAppCheckTokenResponse
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
217
235
  class GoogleFirebaseAppcheckV1betaPlayIntegrityConfig
218
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
237
 
@@ -560,6 +578,13 @@ module Google
560
578
  end
561
579
  end
562
580
 
581
+ class GoogleFirebaseAppcheckV1betaLimitedUseConfig
582
+ # @private
583
+ class Representation < Google::Apis::Core::JsonRepresentation
584
+ property :jti, as: 'jti'
585
+ end
586
+ end
587
+
563
588
  class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
564
589
  # @private
565
590
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -587,6 +612,23 @@ module Google
587
612
  end
588
613
  end
589
614
 
615
+ class GoogleFirebaseAppcheckV1betaMintAppCheckTokenRequest
616
+ # @private
617
+ class Representation < Google::Apis::Core::JsonRepresentation
618
+ property :limited_use_config, as: 'limitedUseConfig', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaLimitedUseConfig, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaLimitedUseConfig::Representation
619
+
620
+ property :token_ttl, as: 'tokenTtl'
621
+ end
622
+ end
623
+
624
+ class GoogleFirebaseAppcheckV1betaMintAppCheckTokenResponse
625
+ # @private
626
+ class Representation < Google::Apis::Core::JsonRepresentation
627
+ property :token, as: 'token'
628
+ property :ttl, as: 'ttl'
629
+ end
630
+ end
631
+
590
632
  class GoogleFirebaseAppcheckV1betaPlayIntegrityConfig
591
633
  # @private
592
634
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -783,6 +783,48 @@ module Google
783
783
  execute_or_queue_command(command, &block)
784
784
  end
785
785
 
786
+ # Mints a new App Check token for the specified Firebase App. This method is
787
+ # intended to be called from a privileged environment where the caller can be
788
+ # authorized via Cloud IAM; for example, using a service account. To call this
789
+ # method, the caller must have the [`firebaseappcheck.googleapis.com/tokens.mint`
790
+ # ](https://firebase.google.com/docs/projects/iam/permissions#app-check)
791
+ # permission. Returns a MintAppCheckTokenResponse.
792
+ # @param [String] app
793
+ # Required. The relative resource name of the app, in the format: ``` projects/`
794
+ # project_number`/apps/`app_id` ``` If necessary, the `project_number` element
795
+ # can be replaced with the project ID of the Firebase project. Learn more about
796
+ # using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/
797
+ # 2510) standard.
798
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaMintAppCheckTokenRequest] google_firebase_appcheck_v1beta_mint_app_check_token_request_object
799
+ # @param [String] fields
800
+ # Selector specifying which fields to include in a partial response.
801
+ # @param [String] quota_user
802
+ # Available to use for quota purposes for server-side applications. Can be any
803
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
804
+ # @param [Google::Apis::RequestOptions] options
805
+ # Request-specific options
806
+ #
807
+ # @yield [result, err] Result & error if block supplied
808
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaMintAppCheckTokenResponse] parsed result object
809
+ # @yieldparam err [StandardError] error object if request failed
810
+ #
811
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaMintAppCheckTokenResponse]
812
+ #
813
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
814
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
815
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
816
+ def mint_project_app_app_check_token(app, google_firebase_appcheck_v1beta_mint_app_check_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
817
+ command = make_simple_command(:post, 'v1beta/{+app}:mintAppCheckToken', options)
818
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaMintAppCheckTokenRequest::Representation
819
+ command.request_object = google_firebase_appcheck_v1beta_mint_app_check_token_request_object
820
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaMintAppCheckTokenResponse::Representation
821
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaMintAppCheckTokenResponse
822
+ command.params['app'] = app unless app.nil?
823
+ command.query['fields'] = fields unless fields.nil?
824
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
825
+ execute_or_queue_command(command, &block)
826
+ end
827
+
786
828
  # Atomically gets the AppAttestConfigs for the specified list of apps.
787
829
  # @param [String] parent
788
830
  # Required. The parent project name shared by all AppAttestConfigs being
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firebaseappcheck_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.51.0
4
+ version: 0.52.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseappcheck_v1beta/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.51.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.52.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseappcheck_v1beta
62
62
  rdoc_options: []
63
63
  require_paths: