google-apis-firebaseappcheck_v1beta 0.1.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.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module FirebaseappcheckV1beta
18
+ # Version of the google-apis-firebaseappcheck_v1beta gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.2.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20210524"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,311 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module FirebaseappcheckV1beta
24
+
25
+ class GoogleFirebaseAppcheckV1betaAttestationTokenResponse
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GoogleFirebaseAppcheckV1betaBatchGetRecaptchaConfigsResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleFirebaseAppcheckV1betaBatchUpdateServicesResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleFirebaseAppcheckV1betaDebugToken
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GoogleFirebaseAppcheckV1betaDeviceCheckConfig
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GoogleFirebaseAppcheckV1betaListServicesResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleFirebaseAppcheckV1betaPublicJwk
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleFirebaseAppcheckV1betaPublicJwkSet
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class GoogleFirebaseAppcheckV1betaRecaptchaConfig
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class GoogleFirebaseAppcheckV1betaService
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleFirebaseAppcheckV1betaUpdateServiceRequest
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class GoogleProtobufEmpty
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class GoogleFirebaseAppcheckV1betaAttestationTokenResponse
146
+ # @private
147
+ class Representation < Google::Apis::Core::JsonRepresentation
148
+ property :attestation_token, as: 'attestationToken'
149
+ property :ttl, as: 'ttl'
150
+ end
151
+ end
152
+
153
+ class GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse
154
+ # @private
155
+ class Representation < Google::Apis::Core::JsonRepresentation
156
+ collection :configs, as: 'configs', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDeviceCheckConfig, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDeviceCheckConfig::Representation
157
+
158
+ end
159
+ end
160
+
161
+ class GoogleFirebaseAppcheckV1betaBatchGetRecaptchaConfigsResponse
162
+ # @private
163
+ class Representation < Google::Apis::Core::JsonRepresentation
164
+ collection :configs, as: 'configs', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig::Representation
165
+
166
+ end
167
+ end
168
+
169
+ class GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ collection :requests, as: 'requests', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaUpdateServiceRequest, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaUpdateServiceRequest::Representation
173
+
174
+ property :update_mask, as: 'updateMask'
175
+ end
176
+ end
177
+
178
+ class GoogleFirebaseAppcheckV1betaBatchUpdateServicesResponse
179
+ # @private
180
+ class Representation < Google::Apis::Core::JsonRepresentation
181
+ collection :services, as: 'services', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService::Representation
182
+
183
+ end
184
+ end
185
+
186
+ class GoogleFirebaseAppcheckV1betaDebugToken
187
+ # @private
188
+ class Representation < Google::Apis::Core::JsonRepresentation
189
+ property :display_name, as: 'displayName'
190
+ property :name, as: 'name'
191
+ property :token, as: 'token'
192
+ end
193
+ end
194
+
195
+ class GoogleFirebaseAppcheckV1betaDeviceCheckConfig
196
+ # @private
197
+ class Representation < Google::Apis::Core::JsonRepresentation
198
+ property :key_id, as: 'keyId'
199
+ property :name, as: 'name'
200
+ property :private_key, as: 'privateKey'
201
+ property :private_key_set, as: 'privateKeySet'
202
+ end
203
+ end
204
+
205
+ class GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ property :custom_token, as: 'customToken'
209
+ end
210
+ end
211
+
212
+ class GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest
213
+ # @private
214
+ class Representation < Google::Apis::Core::JsonRepresentation
215
+ property :debug_token, as: 'debugToken'
216
+ end
217
+ end
218
+
219
+ class GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest
220
+ # @private
221
+ class Representation < Google::Apis::Core::JsonRepresentation
222
+ property :device_token, as: 'deviceToken'
223
+ end
224
+ end
225
+
226
+ class GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest
227
+ # @private
228
+ class Representation < Google::Apis::Core::JsonRepresentation
229
+ property :recaptcha_token, as: 'recaptchaToken'
230
+ end
231
+ end
232
+
233
+ class GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest
234
+ # @private
235
+ class Representation < Google::Apis::Core::JsonRepresentation
236
+ property :safety_net_token, as: 'safetyNetToken'
237
+ end
238
+ end
239
+
240
+ class GoogleFirebaseAppcheckV1betaListDebugTokensResponse
241
+ # @private
242
+ class Representation < Google::Apis::Core::JsonRepresentation
243
+ collection :debug_tokens, as: 'debugTokens', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken::Representation
244
+
245
+ property :next_page_token, as: 'nextPageToken'
246
+ end
247
+ end
248
+
249
+ class GoogleFirebaseAppcheckV1betaListServicesResponse
250
+ # @private
251
+ class Representation < Google::Apis::Core::JsonRepresentation
252
+ property :next_page_token, as: 'nextPageToken'
253
+ collection :services, as: 'services', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService::Representation
254
+
255
+ end
256
+ end
257
+
258
+ class GoogleFirebaseAppcheckV1betaPublicJwk
259
+ # @private
260
+ class Representation < Google::Apis::Core::JsonRepresentation
261
+ property :alg, as: 'alg'
262
+ property :e, as: 'e'
263
+ property :kid, as: 'kid'
264
+ property :kty, as: 'kty'
265
+ property :n, as: 'n'
266
+ property :use, as: 'use'
267
+ end
268
+ end
269
+
270
+ class GoogleFirebaseAppcheckV1betaPublicJwkSet
271
+ # @private
272
+ class Representation < Google::Apis::Core::JsonRepresentation
273
+ collection :keys, as: 'keys', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPublicJwk, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPublicJwk::Representation
274
+
275
+ end
276
+ end
277
+
278
+ class GoogleFirebaseAppcheckV1betaRecaptchaConfig
279
+ # @private
280
+ class Representation < Google::Apis::Core::JsonRepresentation
281
+ property :name, as: 'name'
282
+ property :site_secret, as: 'siteSecret'
283
+ property :site_secret_set, as: 'siteSecretSet'
284
+ end
285
+ end
286
+
287
+ class GoogleFirebaseAppcheckV1betaService
288
+ # @private
289
+ class Representation < Google::Apis::Core::JsonRepresentation
290
+ property :enforcement_mode, as: 'enforcementMode'
291
+ property :name, as: 'name'
292
+ end
293
+ end
294
+
295
+ class GoogleFirebaseAppcheckV1betaUpdateServiceRequest
296
+ # @private
297
+ class Representation < Google::Apis::Core::JsonRepresentation
298
+ property :service, as: 'service', class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService, decorator: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService::Representation
299
+
300
+ property :update_mask, as: 'updateMask'
301
+ end
302
+ end
303
+
304
+ class GoogleProtobufEmpty
305
+ # @private
306
+ class Representation < Google::Apis::Core::JsonRepresentation
307
+ end
308
+ end
309
+ end
310
+ end
311
+ end
@@ -0,0 +1,876 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module FirebaseappcheckV1beta
23
+ # Firebase App Check API
24
+ #
25
+ # App Check works alongside other Firebase services to help protect your backend
26
+ # resources from abuse, such as billing fraud or phishing. With App Check,
27
+ # devices running your app will use an app or device attestation provider that
28
+ # attests to one or both of the following: * Requests originate from your
29
+ # authentic app * Requests originate from an authentic, untampered device This
30
+ # attestation is attached to every request your app makes to your Firebase
31
+ # backend resources. The Firebase App Check REST API allows you to manage your
32
+ # App Check configurations programmatically. It also allows you to exchange
33
+ # attestation material for App Check tokens directly without using a Firebase
34
+ # SDK. Finally, it allows you to obtain the public key set necessary to validate
35
+ # an App Check token yourself. [Learn more about App Check](https://firebase.
36
+ # google.com/docs/app-check).
37
+ #
38
+ # @example
39
+ # require 'google/apis/firebaseappcheck_v1beta'
40
+ #
41
+ # Firebaseappcheck = Google::Apis::FirebaseappcheckV1beta # Alias the module
42
+ # service = Firebaseappcheck::FirebaseappcheckService.new
43
+ #
44
+ # @see https://firebase.google.com/docs/app-check
45
+ class FirebaseappcheckService < Google::Apis::Core::BaseService
46
+ # @return [String]
47
+ # API key. Your API key identifies your project and provides you with API access,
48
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
49
+ attr_accessor :key
50
+
51
+ # @return [String]
52
+ # Available to use for quota purposes for server-side applications. Can be any
53
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54
+ attr_accessor :quota_user
55
+
56
+ def initialize
57
+ super('https://firebaseappcheck.googleapis.com/', '',
58
+ client_name: 'google-apis-firebaseappcheck_v1beta',
59
+ client_version: Google::Apis::FirebaseappcheckV1beta::GEM_VERSION)
60
+ @batch_path = 'batch'
61
+ end
62
+
63
+ # Returns a public JWK set as specified by [RFC 7517](https://tools.ietf.org/
64
+ # html/rfc7517) that can be used to verify App Check tokens. Exactly one of the
65
+ # public keys in the returned set will successfully validate any App Check token
66
+ # that is currently valid.
67
+ # @param [String] name
68
+ # Required. The relative resource name to the public JWK set. Must always be
69
+ # exactly the string `jwks`.
70
+ # @param [String] fields
71
+ # Selector specifying which fields to include in a partial response.
72
+ # @param [String] quota_user
73
+ # Available to use for quota purposes for server-side applications. Can be any
74
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
75
+ # @param [Google::Apis::RequestOptions] options
76
+ # Request-specific options
77
+ #
78
+ # @yield [result, err] Result & error if block supplied
79
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPublicJwkSet] parsed result object
80
+ # @yieldparam err [StandardError] error object if request failed
81
+ #
82
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPublicJwkSet]
83
+ #
84
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
85
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
86
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
87
+ def get_jwk(name, fields: nil, quota_user: nil, options: nil, &block)
88
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
89
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPublicJwkSet::Representation
90
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaPublicJwkSet
91
+ command.params['name'] = name unless name.nil?
92
+ command.query['fields'] = fields unless fields.nil?
93
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
94
+ execute_or_queue_command(command, &block)
95
+ end
96
+
97
+ # Validates a custom token signed using your project's Admin SDK service account
98
+ # credentials. If valid, returns an App Check token encapsulated in an
99
+ # AttestationTokenResponse.
100
+ # @param [String] app
101
+ # Required. The relative resource name of the app, in the format: ``` projects/`
102
+ # project_number`/apps/`app_id` ``` If necessary, the `project_number` element
103
+ # can be replaced with the project ID of the Firebase project. Learn more about
104
+ # using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/
105
+ # 2510) standard.
106
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest] google_firebase_appcheck_v1beta_exchange_custom_token_request_object
107
+ # @param [String] fields
108
+ # Selector specifying which fields to include in a partial response.
109
+ # @param [String] quota_user
110
+ # Available to use for quota purposes for server-side applications. Can be any
111
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
112
+ # @param [Google::Apis::RequestOptions] options
113
+ # Request-specific options
114
+ #
115
+ # @yield [result, err] Result & error if block supplied
116
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
117
+ # @yieldparam err [StandardError] error object if request failed
118
+ #
119
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
120
+ #
121
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
122
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
123
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
124
+ def exchange_project_app_custom_token(app, google_firebase_appcheck_v1beta_exchange_custom_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
125
+ command = make_simple_command(:post, 'v1beta/{+app}:exchangeCustomToken', options)
126
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeCustomTokenRequest::Representation
127
+ command.request_object = google_firebase_appcheck_v1beta_exchange_custom_token_request_object
128
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
129
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
130
+ command.params['app'] = app unless app.nil?
131
+ command.query['fields'] = fields unless fields.nil?
132
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
133
+ execute_or_queue_command(command, &block)
134
+ end
135
+
136
+ # Validates a debug token secret that you have previously created using
137
+ # CreateDebugToken. If valid, returns an App Check token encapsulated in an
138
+ # AttestationTokenResponse. Note that a restrictive quota is enforced on this
139
+ # method to prevent accidental exposure of the app to abuse.
140
+ # @param [String] app
141
+ # Required. The relative resource name of the app, in the format: ``` projects/`
142
+ # project_number`/apps/`app_id` ``` If necessary, the `project_number` element
143
+ # can be replaced with the project ID of the Firebase project. Learn more about
144
+ # using project identifiers in Google's [AIP 2510](https://google.aip.dev/cloud/
145
+ # 2510) standard.
146
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest] google_firebase_appcheck_v1beta_exchange_debug_token_request_object
147
+ # @param [String] fields
148
+ # Selector specifying which fields to include in a partial response.
149
+ # @param [String] quota_user
150
+ # Available to use for quota purposes for server-side applications. Can be any
151
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
152
+ # @param [Google::Apis::RequestOptions] options
153
+ # Request-specific options
154
+ #
155
+ # @yield [result, err] Result & error if block supplied
156
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
157
+ # @yieldparam err [StandardError] error object if request failed
158
+ #
159
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
160
+ #
161
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
162
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
163
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
164
+ def exchange_project_app_debug_token(app, google_firebase_appcheck_v1beta_exchange_debug_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
165
+ command = make_simple_command(:post, 'v1beta/{+app}:exchangeDebugToken', options)
166
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeDebugTokenRequest::Representation
167
+ command.request_object = google_firebase_appcheck_v1beta_exchange_debug_token_request_object
168
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
169
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
170
+ command.params['app'] = app unless app.nil?
171
+ command.query['fields'] = fields unless fields.nil?
172
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
173
+ execute_or_queue_command(command, &block)
174
+ end
175
+
176
+ # Accepts a [`device_token`](https://developer.apple.com/documentation/
177
+ # devicecheck/dcdevice) issued by DeviceCheck, and attempts to validate it with
178
+ # Apple. If valid, returns an App Check token encapsulated in an
179
+ # AttestationTokenResponse.
180
+ # @param [String] app
181
+ # Required. The relative resource name of the iOS app, in the format: ```
182
+ # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
183
+ # element can be replaced with the project ID of the Firebase project. Learn
184
+ # more about using project identifiers in Google's [AIP 2510](https://google.aip.
185
+ # dev/cloud/2510) standard.
186
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest] google_firebase_appcheck_v1beta_exchange_device_check_token_request_object
187
+ # @param [String] fields
188
+ # Selector specifying which fields to include in a partial response.
189
+ # @param [String] quota_user
190
+ # Available to use for quota purposes for server-side applications. Can be any
191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192
+ # @param [Google::Apis::RequestOptions] options
193
+ # Request-specific options
194
+ #
195
+ # @yield [result, err] Result & error if block supplied
196
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
197
+ # @yieldparam err [StandardError] error object if request failed
198
+ #
199
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
200
+ #
201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
204
+ def exchange_project_app_device_check_token(app, google_firebase_appcheck_v1beta_exchange_device_check_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
205
+ command = make_simple_command(:post, 'v1beta/{+app}:exchangeDeviceCheckToken', options)
206
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeDeviceCheckTokenRequest::Representation
207
+ command.request_object = google_firebase_appcheck_v1beta_exchange_device_check_token_request_object
208
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
209
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
210
+ command.params['app'] = app unless app.nil?
211
+ command.query['fields'] = fields unless fields.nil?
212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
213
+ execute_or_queue_command(command, &block)
214
+ end
215
+
216
+ # Validates a [reCAPTCHA v3 response token](https://developers.google.com/
217
+ # recaptcha/docs/v3). If valid, returns an App Check token encapsulated in an
218
+ # AttestationTokenResponse.
219
+ # @param [String] app
220
+ # Required. The relative resource name of the web app, in the format: ```
221
+ # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
222
+ # element can be replaced with the project ID of the Firebase project. Learn
223
+ # more about using project identifiers in Google's [AIP 2510](https://google.aip.
224
+ # dev/cloud/2510) standard.
225
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest] google_firebase_appcheck_v1beta_exchange_recaptcha_token_request_object
226
+ # @param [String] fields
227
+ # Selector specifying which fields to include in a partial response.
228
+ # @param [String] quota_user
229
+ # Available to use for quota purposes for server-side applications. Can be any
230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
231
+ # @param [Google::Apis::RequestOptions] options
232
+ # Request-specific options
233
+ #
234
+ # @yield [result, err] Result & error if block supplied
235
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
236
+ # @yieldparam err [StandardError] error object if request failed
237
+ #
238
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
239
+ #
240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
243
+ def exchange_project_app_recaptcha_token(app, google_firebase_appcheck_v1beta_exchange_recaptcha_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
244
+ command = make_simple_command(:post, 'v1beta/{+app}:exchangeRecaptchaToken', options)
245
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeRecaptchaTokenRequest::Representation
246
+ command.request_object = google_firebase_appcheck_v1beta_exchange_recaptcha_token_request_object
247
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
248
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
249
+ command.params['app'] = app unless app.nil?
250
+ command.query['fields'] = fields unless fields.nil?
251
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
252
+ execute_or_queue_command(command, &block)
253
+ end
254
+
255
+ # Validates a [SafetyNet token](https://developer.android.com/training/safetynet/
256
+ # attestation#request-attestation-step). If valid, returns an App Check token
257
+ # encapsulated in an AttestationTokenResponse.
258
+ # @param [String] app
259
+ # Required. The relative resource name of the Android app, in the format: ```
260
+ # projects/`project_number`/apps/`app_id` ``` If necessary, the `project_number`
261
+ # element can be replaced with the project ID of the Firebase project. Learn
262
+ # more about using project identifiers in Google's [AIP 2510](https://google.aip.
263
+ # dev/cloud/2510) standard.
264
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest] google_firebase_appcheck_v1beta_exchange_safety_net_token_request_object
265
+ # @param [String] fields
266
+ # Selector specifying which fields to include in a partial response.
267
+ # @param [String] quota_user
268
+ # Available to use for quota purposes for server-side applications. Can be any
269
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
270
+ # @param [Google::Apis::RequestOptions] options
271
+ # Request-specific options
272
+ #
273
+ # @yield [result, err] Result & error if block supplied
274
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse] parsed result object
275
+ # @yieldparam err [StandardError] error object if request failed
276
+ #
277
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse]
278
+ #
279
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
282
+ def exchange_project_app_safety_net_token(app, google_firebase_appcheck_v1beta_exchange_safety_net_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
283
+ command = make_simple_command(:post, 'v1beta/{+app}:exchangeSafetyNetToken', options)
284
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaExchangeSafetyNetTokenRequest::Representation
285
+ command.request_object = google_firebase_appcheck_v1beta_exchange_safety_net_token_request_object
286
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse::Representation
287
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAttestationTokenResponse
288
+ command.params['app'] = app unless app.nil?
289
+ command.query['fields'] = fields unless fields.nil?
290
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
291
+ execute_or_queue_command(command, &block)
292
+ end
293
+
294
+ # Creates a new DebugToken for the specified app. For security reasons, after
295
+ # the creation operation completes, the `token` field cannot be updated or
296
+ # retrieved, but you can revoke the debug token using DeleteDebugToken. Each app
297
+ # can have a maximum of 20 debug tokens.
298
+ # @param [String] parent
299
+ # Required. The relative resource name of the parent app in which the specified
300
+ # DebugToken will be created, in the format: ``` projects/`project_number`/apps/`
301
+ # app_id` ```
302
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken] google_firebase_appcheck_v1beta_debug_token_object
303
+ # @param [String] fields
304
+ # Selector specifying which fields to include in a partial response.
305
+ # @param [String] quota_user
306
+ # Available to use for quota purposes for server-side applications. Can be any
307
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
308
+ # @param [Google::Apis::RequestOptions] options
309
+ # Request-specific options
310
+ #
311
+ # @yield [result, err] Result & error if block supplied
312
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken] parsed result object
313
+ # @yieldparam err [StandardError] error object if request failed
314
+ #
315
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken]
316
+ #
317
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
318
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
319
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
320
+ def create_project_app_debug_token(parent, google_firebase_appcheck_v1beta_debug_token_object = nil, fields: nil, quota_user: nil, options: nil, &block)
321
+ command = make_simple_command(:post, 'v1beta/{+parent}/debugTokens', options)
322
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken::Representation
323
+ command.request_object = google_firebase_appcheck_v1beta_debug_token_object
324
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken::Representation
325
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken
326
+ command.params['parent'] = parent unless parent.nil?
327
+ command.query['fields'] = fields unless fields.nil?
328
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
329
+ execute_or_queue_command(command, &block)
330
+ end
331
+
332
+ # Deletes the specified DebugToken. A deleted debug token cannot be used to
333
+ # exchange for an App Check token. Use this method when you suspect the secret `
334
+ # token` has been compromised or when you no longer need the debug token.
335
+ # @param [String] name
336
+ # Required. The relative resource name of the DebugToken to delete, in the
337
+ # format: ``` projects/`project_number`/apps/`app_id`/debugTokens/`
338
+ # debug_token_id` ```
339
+ # @param [String] fields
340
+ # Selector specifying which fields to include in a partial response.
341
+ # @param [String] quota_user
342
+ # Available to use for quota purposes for server-side applications. Can be any
343
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
344
+ # @param [Google::Apis::RequestOptions] options
345
+ # Request-specific options
346
+ #
347
+ # @yield [result, err] Result & error if block supplied
348
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleProtobufEmpty] parsed result object
349
+ # @yieldparam err [StandardError] error object if request failed
350
+ #
351
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleProtobufEmpty]
352
+ #
353
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
354
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
355
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
356
+ def delete_project_app_debug_token(name, fields: nil, quota_user: nil, options: nil, &block)
357
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
358
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleProtobufEmpty::Representation
359
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleProtobufEmpty
360
+ command.params['name'] = name unless name.nil?
361
+ command.query['fields'] = fields unless fields.nil?
362
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
363
+ execute_or_queue_command(command, &block)
364
+ end
365
+
366
+ # Gets the specified DebugToken. For security reasons, the `token` field is
367
+ # never populated in the response.
368
+ # @param [String] name
369
+ # Required. The relative resource name of the debug token, in the format: ```
370
+ # projects/`project_number`/apps/`app_id`/debugTokens/`debug_token_id` ```
371
+ # @param [String] fields
372
+ # Selector specifying which fields to include in a partial response.
373
+ # @param [String] quota_user
374
+ # Available to use for quota purposes for server-side applications. Can be any
375
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
376
+ # @param [Google::Apis::RequestOptions] options
377
+ # Request-specific options
378
+ #
379
+ # @yield [result, err] Result & error if block supplied
380
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken] parsed result object
381
+ # @yieldparam err [StandardError] error object if request failed
382
+ #
383
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken]
384
+ #
385
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
386
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
387
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
388
+ def get_project_app_debug_token(name, fields: nil, quota_user: nil, options: nil, &block)
389
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
390
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken::Representation
391
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken
392
+ command.params['name'] = name unless name.nil?
393
+ command.query['fields'] = fields unless fields.nil?
394
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
395
+ execute_or_queue_command(command, &block)
396
+ end
397
+
398
+ # Lists all DebugTokens for the specified app. For security reasons, the `token`
399
+ # field is never populated in the response.
400
+ # @param [String] parent
401
+ # Required. The relative resource name of the parent app for which to list each
402
+ # associated DebugToken, in the format: ``` projects/`project_number`/apps/`
403
+ # app_id` ```
404
+ # @param [Fixnum] page_size
405
+ # The maximum number of DebugTokens to return in the response. Note that an app
406
+ # can have at most 20 debug tokens. The server may return fewer than this at its
407
+ # own discretion. If no value is specified (or too large a value is specified),
408
+ # the server will impose its own limit.
409
+ # @param [String] page_token
410
+ # Token returned from a previous call to ListDebugTokens indicating where in the
411
+ # set of DebugTokens to resume listing. Provide this to retrieve the subsequent
412
+ # page. When paginating, all other parameters provided to ListDebugTokens must
413
+ # match the call that provided the page token; if they do not match, the result
414
+ # is undefined.
415
+ # @param [String] fields
416
+ # Selector specifying which fields to include in a partial response.
417
+ # @param [String] quota_user
418
+ # Available to use for quota purposes for server-side applications. Can be any
419
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
420
+ # @param [Google::Apis::RequestOptions] options
421
+ # Request-specific options
422
+ #
423
+ # @yield [result, err] Result & error if block supplied
424
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaListDebugTokensResponse] parsed result object
425
+ # @yieldparam err [StandardError] error object if request failed
426
+ #
427
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaListDebugTokensResponse]
428
+ #
429
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
430
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
431
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
432
+ def list_project_app_debug_tokens(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
433
+ command = make_simple_command(:get, 'v1beta/{+parent}/debugTokens', options)
434
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaListDebugTokensResponse::Representation
435
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaListDebugTokensResponse
436
+ command.params['parent'] = parent unless parent.nil?
437
+ command.query['pageSize'] = page_size unless page_size.nil?
438
+ command.query['pageToken'] = page_token unless page_token.nil?
439
+ command.query['fields'] = fields unless fields.nil?
440
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
441
+ execute_or_queue_command(command, &block)
442
+ end
443
+
444
+ # Updates the specified DebugToken. For security reasons, the `token` field
445
+ # cannot be updated, nor will it be populated in the response, but you can
446
+ # revoke the debug token using DeleteDebugToken.
447
+ # @param [String] name
448
+ # The relative resource name of the debug token, in the format: ``` projects/`
449
+ # project_number`/apps/`app_id`/debugTokens/`debug_token_id` ```
450
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken] google_firebase_appcheck_v1beta_debug_token_object
451
+ # @param [String] update_mask
452
+ # Required. A comma-separated list of names of fields in the DebugToken to
453
+ # update. Example: `display_name`.
454
+ # @param [String] fields
455
+ # Selector specifying which fields to include in a partial response.
456
+ # @param [String] quota_user
457
+ # Available to use for quota purposes for server-side applications. Can be any
458
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
459
+ # @param [Google::Apis::RequestOptions] options
460
+ # Request-specific options
461
+ #
462
+ # @yield [result, err] Result & error if block supplied
463
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken] parsed result object
464
+ # @yieldparam err [StandardError] error object if request failed
465
+ #
466
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken]
467
+ #
468
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
469
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
470
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
471
+ def patch_project_app_debug_token(name, google_firebase_appcheck_v1beta_debug_token_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
472
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
473
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken::Representation
474
+ command.request_object = google_firebase_appcheck_v1beta_debug_token_object
475
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken::Representation
476
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDebugToken
477
+ command.params['name'] = name unless name.nil?
478
+ command.query['updateMask'] = update_mask unless update_mask.nil?
479
+ command.query['fields'] = fields unless fields.nil?
480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
481
+ execute_or_queue_command(command, &block)
482
+ end
483
+
484
+ # Gets the DeviceCheckConfigs for the specified list of apps atomically. For
485
+ # security reasons, the `private_key` field is never populated in the response.
486
+ # @param [String] parent
487
+ # Required. The parent project name shared by all DeviceCheckConfigs being
488
+ # retrieved, in the format ``` projects/`project_number` ``` The parent
489
+ # collection in the `name` field of any resource being retrieved must match this
490
+ # field, or the entire batch fails.
491
+ # @param [Array<String>, String] names
492
+ # Required. The relative resource names of the DeviceCheckConfigs to retrieve,
493
+ # in the format ``` projects/`project_number`/apps/`app_id`/deviceCheckConfig ```
494
+ # A maximum of 100 objects can be retrieved in a batch.
495
+ # @param [String] fields
496
+ # Selector specifying which fields to include in a partial response.
497
+ # @param [String] quota_user
498
+ # Available to use for quota purposes for server-side applications. Can be any
499
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
500
+ # @param [Google::Apis::RequestOptions] options
501
+ # Request-specific options
502
+ #
503
+ # @yield [result, err] Result & error if block supplied
504
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse] parsed result object
505
+ # @yieldparam err [StandardError] error object if request failed
506
+ #
507
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse]
508
+ #
509
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
510
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
511
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
512
+ def batch_project_app_device_check_config_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
513
+ command = make_simple_command(:get, 'v1beta/{+parent}/apps/-/deviceCheckConfig:batchGet', options)
514
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse::Representation
515
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetDeviceCheckConfigsResponse
516
+ command.params['parent'] = parent unless parent.nil?
517
+ command.query['names'] = names unless names.nil?
518
+ command.query['fields'] = fields unless fields.nil?
519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
520
+ execute_or_queue_command(command, &block)
521
+ end
522
+
523
+ # Gets the DeviceCheckConfig for the specified app. For security reasons, the `
524
+ # private_key` field is never populated in the response.
525
+ # @param [String] name
526
+ # Required. The relative resource name of the DeviceCheckConfig, in the format: `
527
+ # `` projects/`project_number`/apps/`app_id`/deviceCheckConfig ```
528
+ # @param [String] fields
529
+ # Selector specifying which fields to include in a partial response.
530
+ # @param [String] quota_user
531
+ # Available to use for quota purposes for server-side applications. Can be any
532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
533
+ # @param [Google::Apis::RequestOptions] options
534
+ # Request-specific options
535
+ #
536
+ # @yield [result, err] Result & error if block supplied
537
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDeviceCheckConfig] parsed result object
538
+ # @yieldparam err [StandardError] error object if request failed
539
+ #
540
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDeviceCheckConfig]
541
+ #
542
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
543
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
544
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
545
+ def get_project_app_device_check_config(name, fields: nil, quota_user: nil, options: nil, &block)
546
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
547
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDeviceCheckConfig::Representation
548
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDeviceCheckConfig
549
+ command.params['name'] = name unless name.nil?
550
+ command.query['fields'] = fields unless fields.nil?
551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
552
+ execute_or_queue_command(command, &block)
553
+ end
554
+
555
+ # Updates the DeviceCheckConfig for the specified app. While this configuration
556
+ # is incomplete or invalid, the app will be unable to exchange DeviceCheck
557
+ # tokens for App Check tokens. For security reasons, the `private_key` field is
558
+ # never populated in the response.
559
+ # @param [String] name
560
+ # Required. The relative resource name of the DeviceCheck configuration object,
561
+ # in the format: ``` projects/`project_number`/apps/`app_id`/deviceCheckConfig ``
562
+ # `
563
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDeviceCheckConfig] google_firebase_appcheck_v1beta_device_check_config_object
564
+ # @param [String] update_mask
565
+ # Required. A comma-separated list of names of fields in the DeviceCheckConfig
566
+ # Gets to update. Example: `key_id,private_key`.
567
+ # @param [String] fields
568
+ # Selector specifying which fields to include in a partial response.
569
+ # @param [String] quota_user
570
+ # Available to use for quota purposes for server-side applications. Can be any
571
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
572
+ # @param [Google::Apis::RequestOptions] options
573
+ # Request-specific options
574
+ #
575
+ # @yield [result, err] Result & error if block supplied
576
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDeviceCheckConfig] parsed result object
577
+ # @yieldparam err [StandardError] error object if request failed
578
+ #
579
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDeviceCheckConfig]
580
+ #
581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
584
+ def patch_project_app_device_check_config(name, google_firebase_appcheck_v1beta_device_check_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
585
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
586
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDeviceCheckConfig::Representation
587
+ command.request_object = google_firebase_appcheck_v1beta_device_check_config_object
588
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDeviceCheckConfig::Representation
589
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaDeviceCheckConfig
590
+ command.params['name'] = name unless name.nil?
591
+ command.query['updateMask'] = update_mask unless update_mask.nil?
592
+ command.query['fields'] = fields unless fields.nil?
593
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
594
+ execute_or_queue_command(command, &block)
595
+ end
596
+
597
+ # Gets the RecaptchaConfigs for the specified list of apps atomically. For
598
+ # security reasons, the `site_secret` field is never populated in the response.
599
+ # @param [String] parent
600
+ # Required. The parent project name shared by all RecaptchaConfigs being
601
+ # retrieved, in the format ``` projects/`project_number` ``` The parent
602
+ # collection in the `name` field of any resource being retrieved must match this
603
+ # field, or the entire batch fails.
604
+ # @param [Array<String>, String] names
605
+ # Required. The relative resource names of the RecaptchaConfigs to retrieve, in
606
+ # the format: ``` projects/`project_number`/apps/`app_id`/recaptchaConfig ``` A
607
+ # maximum of 100 objects can be retrieved in a batch.
608
+ # @param [String] fields
609
+ # Selector specifying which fields to include in a partial response.
610
+ # @param [String] quota_user
611
+ # Available to use for quota purposes for server-side applications. Can be any
612
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
613
+ # @param [Google::Apis::RequestOptions] options
614
+ # Request-specific options
615
+ #
616
+ # @yield [result, err] Result & error if block supplied
617
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetRecaptchaConfigsResponse] parsed result object
618
+ # @yieldparam err [StandardError] error object if request failed
619
+ #
620
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetRecaptchaConfigsResponse]
621
+ #
622
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
623
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
624
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
625
+ def batch_project_app_recaptcha_config_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
626
+ command = make_simple_command(:get, 'v1beta/{+parent}/apps/-/recaptchaConfig:batchGet', options)
627
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetRecaptchaConfigsResponse::Representation
628
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchGetRecaptchaConfigsResponse
629
+ command.params['parent'] = parent unless parent.nil?
630
+ command.query['names'] = names unless names.nil?
631
+ command.query['fields'] = fields unless fields.nil?
632
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
633
+ execute_or_queue_command(command, &block)
634
+ end
635
+
636
+ # Gets the RecaptchaConfig for the specified app. For security reasons, the `
637
+ # site_secret` field is never populated in the response.
638
+ # @param [String] name
639
+ # Required. The relative resource name of the RecaptchaConfig, in the format: ```
640
+ # projects/`project_number`/apps/`app_id`/recaptchaConfig ```
641
+ # @param [String] fields
642
+ # Selector specifying which fields to include in a partial response.
643
+ # @param [String] quota_user
644
+ # Available to use for quota purposes for server-side applications. Can be any
645
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
646
+ # @param [Google::Apis::RequestOptions] options
647
+ # Request-specific options
648
+ #
649
+ # @yield [result, err] Result & error if block supplied
650
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig] parsed result object
651
+ # @yieldparam err [StandardError] error object if request failed
652
+ #
653
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig]
654
+ #
655
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
656
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
657
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
658
+ def get_project_app_recaptcha_config(name, fields: nil, quota_user: nil, options: nil, &block)
659
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
660
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig::Representation
661
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig
662
+ command.params['name'] = name unless name.nil?
663
+ command.query['fields'] = fields unless fields.nil?
664
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
665
+ execute_or_queue_command(command, &block)
666
+ end
667
+
668
+ # Updates the RecaptchaConfig for the specified app. While this configuration is
669
+ # incomplete or invalid, the app will be unable to exchange reCAPTCHA tokens for
670
+ # App Check tokens. For security reasons, the `site_secret` field is never
671
+ # populated in the response.
672
+ # @param [String] name
673
+ # Required. The relative resource name of the reCAPTCHA v3 configuration object,
674
+ # in the format: ``` projects/`project_number`/apps/`app_id`/recaptchaConfig ```
675
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig] google_firebase_appcheck_v1beta_recaptcha_config_object
676
+ # @param [String] update_mask
677
+ # Required. A comma-separated list of names of fields in the RecaptchaConfig to
678
+ # update. Example: `site_secret`.
679
+ # @param [String] fields
680
+ # Selector specifying which fields to include in a partial response.
681
+ # @param [String] quota_user
682
+ # Available to use for quota purposes for server-side applications. Can be any
683
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
684
+ # @param [Google::Apis::RequestOptions] options
685
+ # Request-specific options
686
+ #
687
+ # @yield [result, err] Result & error if block supplied
688
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig] parsed result object
689
+ # @yieldparam err [StandardError] error object if request failed
690
+ #
691
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig]
692
+ #
693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
696
+ def patch_project_app_recaptcha_config(name, google_firebase_appcheck_v1beta_recaptcha_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
697
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
698
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig::Representation
699
+ command.request_object = google_firebase_appcheck_v1beta_recaptcha_config_object
700
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig::Representation
701
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaRecaptchaConfig
702
+ command.params['name'] = name unless name.nil?
703
+ command.query['updateMask'] = update_mask unless update_mask.nil?
704
+ command.query['fields'] = fields unless fields.nil?
705
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
706
+ execute_or_queue_command(command, &block)
707
+ end
708
+
709
+ # Updates the specified Service configurations atomically.
710
+ # @param [String] parent
711
+ # Required. The parent project name shared by all Service configurations being
712
+ # updated, in the format ``` projects/`project_number` ``` The parent collection
713
+ # in the `name` field of any resource being updated must match this field, or
714
+ # the entire batch fails.
715
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest] google_firebase_appcheck_v1beta_batch_update_services_request_object
716
+ # @param [String] fields
717
+ # Selector specifying which fields to include in a partial response.
718
+ # @param [String] quota_user
719
+ # Available to use for quota purposes for server-side applications. Can be any
720
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
721
+ # @param [Google::Apis::RequestOptions] options
722
+ # Request-specific options
723
+ #
724
+ # @yield [result, err] Result & error if block supplied
725
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchUpdateServicesResponse] parsed result object
726
+ # @yieldparam err [StandardError] error object if request failed
727
+ #
728
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchUpdateServicesResponse]
729
+ #
730
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
731
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
732
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
733
+ def batch_project_service_update(parent, google_firebase_appcheck_v1beta_batch_update_services_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
734
+ command = make_simple_command(:post, 'v1beta/{+parent}/services:batchUpdate', options)
735
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchUpdateServicesRequest::Representation
736
+ command.request_object = google_firebase_appcheck_v1beta_batch_update_services_request_object
737
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchUpdateServicesResponse::Representation
738
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaBatchUpdateServicesResponse
739
+ command.params['parent'] = parent unless parent.nil?
740
+ command.query['fields'] = fields unless fields.nil?
741
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
742
+ execute_or_queue_command(command, &block)
743
+ end
744
+
745
+ # Gets the Service configuration for the specified service name.
746
+ # @param [String] name
747
+ # Required. The relative resource name of the Service to retrieve, in the format:
748
+ # ``` projects/`project_number`/services/`service_id` ``` Note that the `
749
+ # service_id` element must be a supported service ID. Currently, the following
750
+ # service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage
751
+ # for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database)
752
+ # @param [String] fields
753
+ # Selector specifying which fields to include in a partial response.
754
+ # @param [String] quota_user
755
+ # Available to use for quota purposes for server-side applications. Can be any
756
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
757
+ # @param [Google::Apis::RequestOptions] options
758
+ # Request-specific options
759
+ #
760
+ # @yield [result, err] Result & error if block supplied
761
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService] parsed result object
762
+ # @yieldparam err [StandardError] error object if request failed
763
+ #
764
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService]
765
+ #
766
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
769
+ def get_project_service(name, fields: nil, quota_user: nil, options: nil, &block)
770
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
771
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService::Representation
772
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService
773
+ command.params['name'] = name unless name.nil?
774
+ command.query['fields'] = fields unless fields.nil?
775
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
776
+ execute_or_queue_command(command, &block)
777
+ end
778
+
779
+ # Lists all Service configurations for the specified project. Only Services
780
+ # which were explicitly configured using UpdateService or BatchUpdateServices
781
+ # will be returned.
782
+ # @param [String] parent
783
+ # Required. The relative resource name of the parent project for which to list
784
+ # each associated Service, in the format: ``` projects/`project_number` ```
785
+ # @param [Fixnum] page_size
786
+ # The maximum number of Services to return in the response. Only explicitly
787
+ # configured services are returned. The server may return fewer than this at its
788
+ # own discretion. If no value is specified (or too large a value is specified),
789
+ # the server will impose its own limit.
790
+ # @param [String] page_token
791
+ # Token returned from a previous call to ListServices indicating where in the
792
+ # set of Services to resume listing. Provide this to retrieve the subsequent
793
+ # page. When paginating, all other parameters provided to ListServices must
794
+ # match the call that provided the page token; if they do not match, the result
795
+ # is undefined.
796
+ # @param [String] fields
797
+ # Selector specifying which fields to include in a partial response.
798
+ # @param [String] quota_user
799
+ # Available to use for quota purposes for server-side applications. Can be any
800
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
801
+ # @param [Google::Apis::RequestOptions] options
802
+ # Request-specific options
803
+ #
804
+ # @yield [result, err] Result & error if block supplied
805
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaListServicesResponse] parsed result object
806
+ # @yieldparam err [StandardError] error object if request failed
807
+ #
808
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaListServicesResponse]
809
+ #
810
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
811
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
812
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
813
+ def list_project_services(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
814
+ command = make_simple_command(:get, 'v1beta/{+parent}/services', options)
815
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaListServicesResponse::Representation
816
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaListServicesResponse
817
+ command.params['parent'] = parent unless parent.nil?
818
+ command.query['pageSize'] = page_size unless page_size.nil?
819
+ command.query['pageToken'] = page_token unless page_token.nil?
820
+ command.query['fields'] = fields unless fields.nil?
821
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
822
+ execute_or_queue_command(command, &block)
823
+ end
824
+
825
+ # Updates the specified Service configuration.
826
+ # @param [String] name
827
+ # Required. The relative resource name of the service configuration object, in
828
+ # the format: ``` projects/`project_number`/services/`service_id` ``` Note that
829
+ # the `service_id` element must be a supported service ID. Currently, the
830
+ # following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud
831
+ # Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime
832
+ # Database)
833
+ # @param [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService] google_firebase_appcheck_v1beta_service_object
834
+ # @param [String] update_mask
835
+ # Required. A comma-separated list of names of fields in the Service to update.
836
+ # Example: `enforcement_mode`.
837
+ # @param [String] fields
838
+ # Selector specifying which fields to include in a partial response.
839
+ # @param [String] quota_user
840
+ # Available to use for quota purposes for server-side applications. Can be any
841
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
842
+ # @param [Google::Apis::RequestOptions] options
843
+ # Request-specific options
844
+ #
845
+ # @yield [result, err] Result & error if block supplied
846
+ # @yieldparam result [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService] parsed result object
847
+ # @yieldparam err [StandardError] error object if request failed
848
+ #
849
+ # @return [Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService]
850
+ #
851
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
852
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
853
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
854
+ def patch_project_service(name, google_firebase_appcheck_v1beta_service_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
855
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
856
+ command.request_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService::Representation
857
+ command.request_object = google_firebase_appcheck_v1beta_service_object
858
+ command.response_representation = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService::Representation
859
+ command.response_class = Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaService
860
+ command.params['name'] = name unless name.nil?
861
+ command.query['updateMask'] = update_mask unless update_mask.nil?
862
+ command.query['fields'] = fields unless fields.nil?
863
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
864
+ execute_or_queue_command(command, &block)
865
+ end
866
+
867
+ protected
868
+
869
+ def apply_command_defaults(command)
870
+ command.query['key'] = key unless key.nil?
871
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
872
+ end
873
+ end
874
+ end
875
+ end
876
+ end