google-apis-firebaseappcheck_v1beta 0.24.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: 9a604f84e1aaa11ad04f2aa1f826c679f4a1a98ed8d8191509e12bcb2e8139c7
4
- data.tar.gz: 48858b9baf92abc69578ee74666b0dd8c19694b812ad204fec3a5ae68ed7c4e4
3
+ metadata.gz: 30e089fbe2f696033a336fcc53dfc13e274a213327332875f3f2f9ed81c31f83
4
+ data.tar.gz: 519876da57b05b6655e9a4c29c193fc14f527522bedd489f2d1c1c40ae314be6
5
5
  SHA512:
6
- metadata.gz: b8ad9344f6d7857dae26557b37010be7909ef09cfbf43d415896240a5d578f19b5eb6c125247d77c425a6fd22dcf5e8a3e90261ff46b0bf39439a004ba600472
7
- data.tar.gz: 2e4f96a2daf4bab4c89b9f55cf17c8648456889b2fb583d560d4fd83db0deda3b0c3469335102567e95c1096fd9b7c77af1f2c0dbd51a31c9674deda87339069
6
+ metadata.gz: bc02c474fe5bad635df00f199e048c1b67bb1b7058cf5f5190bdfe92b80004f1ef3f10d3182a1822fe63d07f6c2fb7881b464c4e813bc1eabd1d0d4307deda1e
7
+ data.tar.gz: d38855d7357f1738e1ee6aded892a357cc64cbd1422d523d4ff68f3d1985f5ae5df2e5e23c21b10938e0bf8c08153cc081fc8bf43b00155878339a3e1f3e7daf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.25.0 (2023-04-02)
8
+
9
+ * Regenerated from discovery document revision 20230327
10
+
3
11
  ### v0.24.0 (2023-02-19)
4
12
 
5
13
  * Regenerated using generator version 0.12.0
@@ -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.24.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 = "20220513"
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.
@@ -1602,8 +1654,8 @@ module Google
1602
1654
  # @param [Fixnum] page_size
1603
1655
  # The maximum number of Services to return in the response. Only explicitly
1604
1656
  # configured services are returned. The server may return fewer than this at its
1605
- # own discretion. If no value is specified (or too large a value is specified),
1606
- # the server will impose its own limit.
1657
+ # own discretion. If no value is specified or set to zero (or too large a value
1658
+ # is specified), the server will impose its own limit.
1607
1659
  # @param [String] page_token
1608
1660
  # Token returned from a previous call to ListServices indicating where in the
1609
1661
  # set of Services to resume listing. Provide this to retrieve the subsequent
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.24.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-02-19 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.24.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: []