google-apis-firebaseappcheck_v1beta 0.25.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b2c6223816902b4429d1c9fb7a7c22f5ac6b43964f8723b1c52bff498a53253
4
- data.tar.gz: 63fc739d1e21c9ac4560c09adc53f37017cdad19383d5ee97ec95ec77ff37041
3
+ metadata.gz: d08101c78c4d515bec5a78f17b4ef39a1251a1278c9ab9fd26b5ecbadbfad0f9
4
+ data.tar.gz: ae576a3e50337c28d93182a34785cc1ae7b247f9a046a9742d06483aa11221d5
5
5
  SHA512:
6
- metadata.gz: 42eeb82c14cfe8e31008fee0a5c55e616b212c3f214001c1979518c05426d39e3f72132e073e0e0051b2eaafc82030985d67167ed8e723e9d2636bda05a0e575
7
- data.tar.gz: 131e7bda6b3bc02704a41a3801771ddf3bd2d5268ff49812a43aa682413add8c0623c03ec83b97aeea7580e074c99ff9c102971615427da05b869aa91b223a2a
6
+ metadata.gz: a9fc8d26c6cc1e8eb4da203a3d4816bba3280a9a401380bb7b23940391c1dab3960a0ddb243947d3180d8ac7153d9e968a38145a1de50d0dafbf51c1d3879eb4
7
+ data.tar.gz: 61a8c6fa5ccd2f609118b7c24aad7650e93342957486a6fde86c2965a87ce509879c073988e32235d074f9827aad4ec104aa97a129a7cac730ece4131e45d35a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-firebaseappcheck_v1beta
2
2
 
3
+ ### v0.27.0 (2023-05-21)
4
+
5
+ * Regenerated from discovery document revision 20230515
6
+
7
+ ### v0.26.0 (2023-04-30)
8
+
9
+ * Regenerated from discovery document revision 20230425
10
+
3
11
  ### v0.25.0 (2023-04-02)
4
12
 
5
13
  * Regenerated from discovery document revision 20230327
@@ -1157,6 +1157,52 @@ module Google
1157
1157
  end
1158
1158
  end
1159
1159
 
1160
+ # Request message for the VerifyAppCheckToken method.
1161
+ class GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenRequest
1162
+ include Google::Apis::Core::Hashable
1163
+
1164
+ # Required. The App Check token to verify. App Check tokens exchanged from the
1165
+ # SafetyNet provider are not supported; an HTTP 400 error will be returned.
1166
+ # Corresponds to the JSON property `appCheckToken`
1167
+ # @return [String]
1168
+ attr_accessor :app_check_token
1169
+
1170
+ def initialize(**args)
1171
+ update!(**args)
1172
+ end
1173
+
1174
+ # Update properties of this object
1175
+ def update!(**args)
1176
+ @app_check_token = args[:app_check_token] if args.key?(:app_check_token)
1177
+ end
1178
+ end
1179
+
1180
+ # Response message for the VerifyAppCheckToken method.
1181
+ class GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse
1182
+ include Google::Apis::Core::Hashable
1183
+
1184
+ # Whether this token was already consumed. If this is the first time this method
1185
+ # has seen the given App Check token, this field will be omitted from the
1186
+ # response. The given token will then be marked as `already_consumed` (set to `
1187
+ # true`) for all future invocations of this method for that token. Note that if
1188
+ # the given App Check token is invalid, an HTTP 403 error is returned instead of
1189
+ # a response containing this field, regardless whether the token was already
1190
+ # consumed.
1191
+ # Corresponds to the JSON property `alreadyConsumed`
1192
+ # @return [Boolean]
1193
+ attr_accessor :already_consumed
1194
+ alias_method :already_consumed?, :already_consumed
1195
+
1196
+ def initialize(**args)
1197
+ update!(**args)
1198
+ end
1199
+
1200
+ # Update properties of this object
1201
+ def update!(**args)
1202
+ @already_consumed = args[:already_consumed] if args.key?(:already_consumed)
1203
+ end
1204
+ end
1205
+
1160
1206
  # A generic empty message that you can re-use to avoid defining duplicated empty
1161
1207
  # messages in your APIs. A typical example is to use it as the request or the
1162
1208
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -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.25.0"
19
+ GEM_VERSION = "0.27.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 = "20230327"
25
+ REVISION = "20230515"
26
26
  end
27
27
  end
28
28
  end
@@ -262,6 +262,18 @@ module Google
262
262
  include Google::Apis::Core::JsonObjectSupport
263
263
  end
264
264
 
265
+ class GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenRequest
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
265
277
  class GoogleProtobufEmpty
266
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
279
 
@@ -599,6 +611,20 @@ module Google
599
611
  end
600
612
  end
601
613
 
614
+ class GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenRequest
615
+ # @private
616
+ class Representation < Google::Apis::Core::JsonRepresentation
617
+ property :app_check_token, as: 'appCheckToken'
618
+ end
619
+ end
620
+
621
+ class GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse
622
+ # @private
623
+ class Representation < Google::Apis::Core::JsonRepresentation
624
+ property :already_consumed, as: 'alreadyConsumed'
625
+ end
626
+ end
627
+
602
628
  class GoogleProtobufEmpty
603
629
  # @private
604
630
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -84,6 +84,63 @@ module Google
84
84
  execute_or_queue_command(command, &block)
85
85
  end
86
86
 
87
+ # Verifies the given App Check token and returns token usage signals that
88
+ # callers may act upon. This method currently only supports App Check tokens
89
+ # exchanged from the following attestation providers: * Play Integrity API * App
90
+ # Attest * DeviceCheck (`DCDevice` tokens) * reCAPTCHA Enterprise * reCAPTCHA v3
91
+ # * Custom providers App Check tokens exchanged from debug secrets are also
92
+ # supported. Calling this method on an otherwise valid App Check token with an
93
+ # unsupported provider will cause an HTTP 400 error to be returned. Returns
94
+ # whether this token was already consumed before this call. If this is the first
95
+ # time this method has seen the given App Check token, the field `
96
+ # already_consumed` in the response will be absent. The given token will then be
97
+ # marked as `already_consumed` (set to `true`) for all future invocations of
98
+ # this method for that token. Note that if the given App Check token is invalid,
99
+ # an HTTP 403 error is returned instead of a response object, regardless whether
100
+ # the token was already consumed. Currently, when evaluating whether an App
101
+ # Check token was already consumed, only calls to this exact method are counted.
102
+ # Use of the App Check token elsewhere will not mark the token as being already
103
+ # consumed. The caller must have the [`firebaseappcheck.appCheckTokens.verify`](
104
+ # https://firebase.google.com/docs/projects/iam/permissions#app-check)
105
+ # permission to call this method. This permission is part of the [Firebase App
106
+ # Check Token Verifier role](https://firebase.google.com/docs/projects/iam/roles-
107
+ # predefined-product#app-check).
108
+ # @param [String] project
109
+ # Required. The relative resource name of the project for which the token was
110
+ # minted, in the format: ``` projects/`project_number` ``` If necessary, the `
111
+ # project_number` element can be replaced with the project ID of the Firebase
112
+ # project. Learn more about using project identifiers in Google's [AIP 2510](
113
+ # https://google.aip.dev/cloud/2510) standard.
114
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenRequest] google_firebase_appcheck_v1beta_verify_app_check_token_request_object
115
+ # @param [String] fields
116
+ # Selector specifying which fields to include in a partial response.
117
+ # @param [String] quota_user
118
+ # Available to use for quota purposes for server-side applications. Can be any
119
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
120
+ # @param [Google::Apis::RequestOptions] options
121
+ # Request-specific options
122
+ #
123
+ # @yield [result, err] Result & error if block supplied
124
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse] parsed result object
125
+ # @yieldparam err [StandardError] error object if request failed
126
+ #
127
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse]
128
+ #
129
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
130
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
131
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
132
+ def verify_project_app_check_token(project, google_firebase_appcheck_v1beta_verify_app_check_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
133
+ command = make_simple_command(:post, 'v1beta/{+project}:verifyAppCheckToken', options)
134
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenRequest::Representation
135
+ command.request_object = google_firebase_appcheck_v1beta_verify_app_check_token_request_object
136
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse::Representation
137
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse
138
+ command.params['project'] = project unless project.nil?
139
+ command.query['fields'] = fields unless fields.nil?
140
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
141
+ execute_or_queue_command(command, &block)
142
+ end
143
+
87
144
  # Accepts an App Attest assertion and an artifact previously obtained from
88
145
  # ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns
89
146
  # an AppCheckToken.
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.25.0
4
+ version: 0.27.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-04-02 00:00:00.000000000 Z
11
+ date: 2023-05-21 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.25.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseappcheck_v1beta/v0.27.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: []