google-apis-firebaseappcheck_v1beta 0.25.0 → 0.26.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: 30e089fbe2f696033a336fcc53dfc13e274a213327332875f3f2f9ed81c31f83
4
+ data.tar.gz: 519876da57b05b6655e9a4c29c193fc14f527522bedd489f2d1c1c40ae314be6
5
5
  SHA512:
6
- metadata.gz: 42eeb82c14cfe8e31008fee0a5c55e616b212c3f214001c1979518c05426d39e3f72132e073e0e0051b2eaafc82030985d67167ed8e723e9d2636bda05a0e575
7
- data.tar.gz: 131e7bda6b3bc02704a41a3801771ddf3bd2d5268ff49812a43aa682413add8c0623c03ec83b97aeea7580e074c99ff9c102971615427da05b869aa91b223a2a
6
+ metadata.gz: bc02c474fe5bad635df00f199e048c1b67bb1b7058cf5f5190bdfe92b80004f1ef3f10d3182a1822fe63d07f6c2fb7881b464c4e813bc1eabd1d0d4307deda1e
7
+ data.tar.gz: d38855d7357f1738e1ee6aded892a357cc64cbd1422d523d4ff68f3d1985f5ae5df2e5e23c21b10938e0bf8c08153cc081fc8bf43b00155878339a3e1f3e7daf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-firebaseappcheck_v1beta
2
2
 
3
+ ### v0.26.0 (2023-04-30)
4
+
5
+ * Regenerated from discovery document revision 20230425
6
+
3
7
  ### v0.25.0 (2023-04-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20230327
@@ -1157,6 +1157,50 @@ 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.
1165
+ # Corresponds to the JSON property `appCheckToken`
1166
+ # @return [String]
1167
+ attr_accessor :app_check_token
1168
+
1169
+ def initialize(**args)
1170
+ update!(**args)
1171
+ end
1172
+
1173
+ # Update properties of this object
1174
+ def update!(**args)
1175
+ @app_check_token = args[:app_check_token] if args.key?(:app_check_token)
1176
+ end
1177
+ end
1178
+
1179
+ # Response message for the VerifyAppCheckToken method.
1180
+ class GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse
1181
+ include Google::Apis::Core::Hashable
1182
+
1183
+ # Whether this token was already consumed. If this is the first time this method
1184
+ # has seen the given App Check token, this field will contain the value `false`.
1185
+ # The given token will then be marked as `already_consumed` for all future
1186
+ # invocations of this method for that token. Note that if the given App Check
1187
+ # token is invalid, an HTTP 403 error is returned instead of a response
1188
+ # containing this field, regardless whether the token was already consumed.
1189
+ # Corresponds to the JSON property `alreadyConsumed`
1190
+ # @return [Boolean]
1191
+ attr_accessor :already_consumed
1192
+ alias_method :already_consumed?, :already_consumed
1193
+
1194
+ def initialize(**args)
1195
+ update!(**args)
1196
+ end
1197
+
1198
+ # Update properties of this object
1199
+ def update!(**args)
1200
+ @already_consumed = args[:already_consumed] if args.key?(:already_consumed)
1201
+ end
1202
+ end
1203
+
1160
1204
  # A generic empty message that you can re-use to avoid defining duplicated empty
1161
1205
  # messages in your APIs. A typical example is to use it as the request or the
1162
1206
  # 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.26.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 = "20230425"
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,58 @@ 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` will contain the value `false`. The given token will then be
97
+ # marked as `already_consumed` for all future invocations of this method for
98
+ # that token. Note that if the given App Check token is invalid, an HTTP 403
99
+ # error is returned instead of a response object, regardless whether the token
100
+ # was already consumed. Currently, when evaluating whether an App Check token
101
+ # was already consumed, only calls to this exact method are counted. Use of the
102
+ # App Check token elsewhere will not mark the token as being already consumed.
103
+ # @param [String] project
104
+ # Required. The relative resource name of the project for which the token was
105
+ # minted, in the format: ``` projects/`project_number` ``` If necessary, the `
106
+ # project_number` element can be replaced with the project ID of the Firebase
107
+ # project. Learn more about using project identifiers in Google's [AIP 2510](
108
+ # https://google.aip.dev/cloud/2510) standard.
109
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenRequest] google_firebase_appcheck_v1beta_verify_app_check_token_request_object
110
+ # @param [String] fields
111
+ # Selector specifying which fields to include in a partial response.
112
+ # @param [String] quota_user
113
+ # Available to use for quota purposes for server-side applications. Can be any
114
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
115
+ # @param [Google::Apis::RequestOptions] options
116
+ # Request-specific options
117
+ #
118
+ # @yield [result, err] Result & error if block supplied
119
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse] parsed result object
120
+ # @yieldparam err [StandardError] error object if request failed
121
+ #
122
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse]
123
+ #
124
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
125
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
126
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
127
+ 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)
128
+ command = make_simple_command(:post, 'v1beta/{+project}:verifyAppCheckToken', options)
129
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenRequest::Representation
130
+ command.request_object = google_firebase_appcheck_v1beta_verify_app_check_token_request_object
131
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse::Representation
132
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaVerifyAppCheckTokenResponse
133
+ command.params['project'] = project unless project.nil?
134
+ command.query['fields'] = fields unless fields.nil?
135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
136
+ execute_or_queue_command(command, &block)
137
+ end
138
+
87
139
  # Accepts an App Attest assertion and an artifact previously obtained from
88
140
  # ExchangeAppAttestAttestation and verifies those with Apple. If valid, returns
89
141
  # 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.26.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-14 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.26.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: []