google-apis-firebaseappdistribution_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1041 @@
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 FirebaseappdistributionV1
23
+ # Firebase App Distribution API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/firebaseappdistribution_v1'
29
+ #
30
+ # Firebaseappdistribution = Google::Apis::FirebaseappdistributionV1 # Alias the module
31
+ # service = Firebaseappdistribution::FirebaseAppDistributionService.new
32
+ #
33
+ # @see https://firebase.google.com/products/app-distribution
34
+ class FirebaseAppDistributionService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://firebaseappdistribution.googleapis.com/', '',
47
+ client_name: 'google-apis-firebaseappdistribution_v1',
48
+ client_version: Google::Apis::FirebaseappdistributionV1::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Uploads a binary. Uploading a binary can result in a new release being created,
53
+ # an update to an existing release, or a no-op if a release with the same
54
+ # binary already exists.
55
+ # @param [String] app
56
+ # The name of the app resource. Format: `projects/`project_number`/apps/`app_id``
57
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1UploadReleaseRequest] google_firebase_appdistro_v1_upload_release_request_object
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [IO, String] upload_source
64
+ # IO stream or filename containing content to upload
65
+ # @param [String] content_type
66
+ # Content type of the uploaded content.
67
+ # @param [Google::Apis::RequestOptions] options
68
+ # Request-specific options
69
+ #
70
+ # @yield [result, err] Result & error if block supplied
71
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleLongrunningOperation] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleLongrunningOperation]
75
+ #
76
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
79
+ def upload_medium(app, google_firebase_appdistro_v1_upload_release_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
80
+ if upload_source.nil?
81
+ command = make_simple_command(:post, 'v1/{+app}/releases:upload', options)
82
+ else
83
+ command = make_upload_command(:post, 'v1/{+app}/releases:upload', options)
84
+ command.upload_source = upload_source
85
+ command.upload_content_type = content_type
86
+ end
87
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1UploadReleaseRequest::Representation
88
+ command.request_object = google_firebase_appdistro_v1_upload_release_request_object
89
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleLongrunningOperation::Representation
90
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleLongrunningOperation
91
+ command.params['app'] = app unless app.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
+ # Gets Android App Bundle (AAB) information for a Firebase app.
98
+ # @param [String] name
99
+ # Required. The name of the `AabInfo` resource to retrieve. Format: `projects/`
100
+ # project_number`/apps/`app_id`/aabInfo`
101
+ # @param [String] fields
102
+ # Selector specifying which fields to include in a partial response.
103
+ # @param [String] quota_user
104
+ # Available to use for quota purposes for server-side applications. Can be any
105
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
106
+ # @param [Google::Apis::RequestOptions] options
107
+ # Request-specific options
108
+ #
109
+ # @yield [result, err] Result & error if block supplied
110
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1AabInfo] parsed result object
111
+ # @yieldparam err [StandardError] error object if request failed
112
+ #
113
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1AabInfo]
114
+ #
115
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
118
+ def get_project_app_aab_info(name, fields: nil, quota_user: nil, options: nil, &block)
119
+ command = make_simple_command(:get, 'v1/{+name}', options)
120
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1AabInfo::Representation
121
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1AabInfo
122
+ command.params['name'] = name unless name.nil?
123
+ command.query['fields'] = fields unless fields.nil?
124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
125
+ execute_or_queue_command(command, &block)
126
+ end
127
+
128
+ # Deletes releases. A maximum of 100 releases can be deleted per request.
129
+ # @param [String] parent
130
+ # Required. The name of the app resource, which is the parent of the release
131
+ # resources. Format: `projects/`project_number`/apps/`app_id``
132
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest] google_firebase_appdistro_v1_batch_delete_releases_request_object
133
+ # @param [String] fields
134
+ # Selector specifying which fields to include in a partial response.
135
+ # @param [String] quota_user
136
+ # Available to use for quota purposes for server-side applications. Can be any
137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
138
+ # @param [Google::Apis::RequestOptions] options
139
+ # Request-specific options
140
+ #
141
+ # @yield [result, err] Result & error if block supplied
142
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty] parsed result object
143
+ # @yieldparam err [StandardError] error object if request failed
144
+ #
145
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty]
146
+ #
147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
150
+ def batch_project_app_release_delete(parent, google_firebase_appdistro_v1_batch_delete_releases_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
151
+ command = make_simple_command(:post, 'v1/{+parent}/releases:batchDelete', options)
152
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchDeleteReleasesRequest::Representation
153
+ command.request_object = google_firebase_appdistro_v1_batch_delete_releases_request_object
154
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty::Representation
155
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty
156
+ command.params['parent'] = parent unless parent.nil?
157
+ command.query['fields'] = fields unless fields.nil?
158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
159
+ execute_or_queue_command(command, &block)
160
+ end
161
+
162
+ # Distributes a release to testers. This call does the following: 1. Creates
163
+ # testers for the specified emails, if none exist. 2. Adds the testers and
164
+ # groups to the release. 3. Sends new testers an invitation email. 4. Sends
165
+ # existing testers a new release email. The request will fail with a `
166
+ # INVALID_ARGUMENT` if it contains a group that doesn't exist.
167
+ # @param [String] name
168
+ # Required. The name of the release resource to distribute. Format: `projects/`
169
+ # project_number`/apps/`app_id`/releases/`release_id``
170
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1DistributeReleaseRequest] google_firebase_appdistro_v1_distribute_release_request_object
171
+ # @param [String] fields
172
+ # Selector specifying which fields to include in a partial response.
173
+ # @param [String] quota_user
174
+ # Available to use for quota purposes for server-side applications. Can be any
175
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
176
+ # @param [Google::Apis::RequestOptions] options
177
+ # Request-specific options
178
+ #
179
+ # @yield [result, err] Result & error if block supplied
180
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1DistributeReleaseResponse] parsed result object
181
+ # @yieldparam err [StandardError] error object if request failed
182
+ #
183
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1DistributeReleaseResponse]
184
+ #
185
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
186
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
187
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
188
+ def distribute_project_app_release(name, google_firebase_appdistro_v1_distribute_release_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
189
+ command = make_simple_command(:post, 'v1/{+name}:distribute', options)
190
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1DistributeReleaseRequest::Representation
191
+ command.request_object = google_firebase_appdistro_v1_distribute_release_request_object
192
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1DistributeReleaseResponse::Representation
193
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1DistributeReleaseResponse
194
+ command.params['name'] = name unless name.nil?
195
+ command.query['fields'] = fields unless fields.nil?
196
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
197
+ execute_or_queue_command(command, &block)
198
+ end
199
+
200
+ # Gets a release.
201
+ # @param [String] name
202
+ # Required. The name of the release resource to retrieve. Format: projects/`
203
+ # project_number`/apps/`app_id`/releases/`release_id`
204
+ # @param [String] fields
205
+ # Selector specifying which fields to include in a partial response.
206
+ # @param [String] quota_user
207
+ # Available to use for quota purposes for server-side applications. Can be any
208
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
209
+ # @param [Google::Apis::RequestOptions] options
210
+ # Request-specific options
211
+ #
212
+ # @yield [result, err] Result & error if block supplied
213
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Release] parsed result object
214
+ # @yieldparam err [StandardError] error object if request failed
215
+ #
216
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Release]
217
+ #
218
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
219
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
220
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
221
+ def get_project_app_release(name, fields: nil, quota_user: nil, options: nil, &block)
222
+ command = make_simple_command(:get, 'v1/{+name}', options)
223
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Release::Representation
224
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Release
225
+ command.params['name'] = name unless name.nil?
226
+ command.query['fields'] = fields unless fields.nil?
227
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
228
+ execute_or_queue_command(command, &block)
229
+ end
230
+
231
+ # Lists releases. By default, sorts by `createTime` in descending order.
232
+ # @param [String] parent
233
+ # Required. The name of the app resource, which is the parent of the release
234
+ # resources. Format: `projects/`project_number`/apps/`app_id``
235
+ # @param [String] filter
236
+ # The expression to filter releases listed in the response. To learn more about
237
+ # filtering, refer to [Google's AIP-160 standard](http://aip.dev/160). Supported
238
+ # fields: - `releaseNotes.text` supports `=` (can contain a wildcard character (`
239
+ # *`) at the beginning or end of the string) - `createTime` supports `<`, `<=`, `
240
+ # >` and `>=`, and expects an RFC-3339 formatted string Examples: - `createTime <
241
+ # = "2021-09-08T00:00:00+04:00"` - `releaseNotes.text="fixes" AND createTime >= "
242
+ # 2021-09-08T00:00:00.0Z"` - `releaseNotes.text="*v1.0.0-rc*"`
243
+ # @param [String] order_by
244
+ # The fields used to order releases. Supported fields: - `createTime` To specify
245
+ # descending order for a field, append a "desc" suffix, for example, `createTime
246
+ # desc`. If this parameter is not set, releases are ordered by `createTime` in
247
+ # descending order.
248
+ # @param [Fixnum] page_size
249
+ # The maximum number of releases to return. The service may return fewer than
250
+ # this value. The valid range is [1-100]; If unspecified (0), at most 25
251
+ # releases are returned. Values above 100 are coerced to 100.
252
+ # @param [String] page_token
253
+ # A page token, received from a previous `ListReleases` call. Provide this to
254
+ # retrieve the subsequent page. When paginating, all other parameters provided
255
+ # to `ListReleases` must match the call that provided the page token.
256
+ # @param [String] fields
257
+ # Selector specifying which fields to include in a partial response.
258
+ # @param [String] quota_user
259
+ # Available to use for quota purposes for server-side applications. Can be any
260
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
261
+ # @param [Google::Apis::RequestOptions] options
262
+ # Request-specific options
263
+ #
264
+ # @yield [result, err] Result & error if block supplied
265
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListReleasesResponse] parsed result object
266
+ # @yieldparam err [StandardError] error object if request failed
267
+ #
268
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListReleasesResponse]
269
+ #
270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
273
+ def list_project_app_releases(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
274
+ command = make_simple_command(:get, 'v1/{+parent}/releases', options)
275
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListReleasesResponse::Representation
276
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListReleasesResponse
277
+ command.params['parent'] = parent unless parent.nil?
278
+ command.query['filter'] = filter unless filter.nil?
279
+ command.query['orderBy'] = order_by unless order_by.nil?
280
+ command.query['pageSize'] = page_size unless page_size.nil?
281
+ command.query['pageToken'] = page_token unless page_token.nil?
282
+ command.query['fields'] = fields unless fields.nil?
283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
284
+ execute_or_queue_command(command, &block)
285
+ end
286
+
287
+ # Updates a release.
288
+ # @param [String] name
289
+ # The name of the release resource. Format: `projects/`project_number`/apps/`
290
+ # app_id`/releases/`release_id``
291
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Release] google_firebase_appdistro_v1_release_object
292
+ # @param [String] update_mask
293
+ # The list of fields to update.
294
+ # @param [String] fields
295
+ # Selector specifying which fields to include in a partial response.
296
+ # @param [String] quota_user
297
+ # Available to use for quota purposes for server-side applications. Can be any
298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
299
+ # @param [Google::Apis::RequestOptions] options
300
+ # Request-specific options
301
+ #
302
+ # @yield [result, err] Result & error if block supplied
303
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Release] parsed result object
304
+ # @yieldparam err [StandardError] error object if request failed
305
+ #
306
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Release]
307
+ #
308
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
309
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
310
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
311
+ def patch_project_app_release(name, google_firebase_appdistro_v1_release_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
312
+ command = make_simple_command(:patch, 'v1/{+name}', options)
313
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Release::Representation
314
+ command.request_object = google_firebase_appdistro_v1_release_object
315
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Release::Representation
316
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Release
317
+ command.params['name'] = name unless name.nil?
318
+ command.query['updateMask'] = update_mask unless update_mask.nil?
319
+ command.query['fields'] = fields unless fields.nil?
320
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
321
+ execute_or_queue_command(command, &block)
322
+ end
323
+
324
+ # Deletes a feedback report.
325
+ # @param [String] name
326
+ # Required. The name of the feedback report to delete. Format: projects/`
327
+ # project_number`/apps/`app`/releases/`release`/feedbackReports/`feedback_report`
328
+ # @param [String] fields
329
+ # Selector specifying which fields to include in a partial response.
330
+ # @param [String] quota_user
331
+ # Available to use for quota purposes for server-side applications. Can be any
332
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
333
+ # @param [Google::Apis::RequestOptions] options
334
+ # Request-specific options
335
+ #
336
+ # @yield [result, err] Result & error if block supplied
337
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty] parsed result object
338
+ # @yieldparam err [StandardError] error object if request failed
339
+ #
340
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty]
341
+ #
342
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
343
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
344
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
345
+ def delete_project_app_release_feedback_report(name, fields: nil, quota_user: nil, options: nil, &block)
346
+ command = make_simple_command(:delete, 'v1/{+name}', options)
347
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty::Representation
348
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty
349
+ command.params['name'] = name unless name.nil?
350
+ command.query['fields'] = fields unless fields.nil?
351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
352
+ execute_or_queue_command(command, &block)
353
+ end
354
+
355
+ # Gets a feedback report.
356
+ # @param [String] name
357
+ # Required. The name of the feedback report to retrieve. Format: projects/`
358
+ # project_number`/apps/`app`/releases/`release`/feedbackReports/`feedback_report`
359
+ # @param [String] fields
360
+ # Selector specifying which fields to include in a partial response.
361
+ # @param [String] quota_user
362
+ # Available to use for quota purposes for server-side applications. Can be any
363
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
364
+ # @param [Google::Apis::RequestOptions] options
365
+ # Request-specific options
366
+ #
367
+ # @yield [result, err] Result & error if block supplied
368
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1FeedbackReport] parsed result object
369
+ # @yieldparam err [StandardError] error object if request failed
370
+ #
371
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1FeedbackReport]
372
+ #
373
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
374
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
375
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
376
+ def get_project_app_release_feedback_report(name, fields: nil, quota_user: nil, options: nil, &block)
377
+ command = make_simple_command(:get, 'v1/{+name}', options)
378
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1FeedbackReport::Representation
379
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1FeedbackReport
380
+ command.params['name'] = name unless name.nil?
381
+ command.query['fields'] = fields unless fields.nil?
382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
383
+ execute_or_queue_command(command, &block)
384
+ end
385
+
386
+ # Lists feedback reports. By default, sorts by `createTime` in descending order.
387
+ # @param [String] parent
388
+ # Required. The name of the release resource, which is the parent of the
389
+ # feedback report resources. Format: `projects/`project_number`/apps/`app`/
390
+ # releases/`release``
391
+ # @param [String] filter
392
+ # The expression to filter feedback reports listed in the response. To learn
393
+ # more about filtering, refer to [Google's AIP-160 standard](http://aip.dev/160).
394
+ # Supported fields: - `tester` - `createTime` supports `<`, `<=`, `>` and `>=`,
395
+ # and expects an RFC-3339 formatted string Example: - `createTime <= "2023-03-
396
+ # 10T00:00:00+04:00"` - `tester = "projects/-/testers/*@example.com"`
397
+ # @param [String] order_by
398
+ # The fields used to order releases. Supported fields: - `createTime` - `tester`
399
+ # To specify descending order for a field, append a "desc" suffix, for example, `
400
+ # createTime desc`. If this parameter is not set, releases are ordered by `
401
+ # createTime` in descending order.
402
+ # @param [Fixnum] page_size
403
+ # The maximum number of feedback reports to return. The service may return fewer
404
+ # than this value. The valid range is [1-100]; If unspecified (0), at most 25
405
+ # feedback reports are returned. Values above 100 are coerced to 100.
406
+ # @param [String] page_token
407
+ # A page token, received from a previous `ListFeedbackReports` call. Provide
408
+ # this to retrieve the subsequent page. When paginating, all other parameters
409
+ # provided to `ListFeedbackReports` must match the call that provided the page
410
+ # token.
411
+ # @param [String] fields
412
+ # Selector specifying which fields to include in a partial response.
413
+ # @param [String] quota_user
414
+ # Available to use for quota purposes for server-side applications. Can be any
415
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
416
+ # @param [Google::Apis::RequestOptions] options
417
+ # Request-specific options
418
+ #
419
+ # @yield [result, err] Result & error if block supplied
420
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListFeedbackReportsResponse] parsed result object
421
+ # @yieldparam err [StandardError] error object if request failed
422
+ #
423
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListFeedbackReportsResponse]
424
+ #
425
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
426
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
427
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
428
+ def list_project_app_release_feedback_reports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
429
+ command = make_simple_command(:get, 'v1/{+parent}/feedbackReports', options)
430
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListFeedbackReportsResponse::Representation
431
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListFeedbackReportsResponse
432
+ command.params['parent'] = parent unless parent.nil?
433
+ command.query['filter'] = filter unless filter.nil?
434
+ command.query['orderBy'] = order_by unless order_by.nil?
435
+ command.query['pageSize'] = page_size unless page_size.nil?
436
+ command.query['pageToken'] = page_token unless page_token.nil?
437
+ command.query['fields'] = fields unless fields.nil?
438
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
439
+ execute_or_queue_command(command, &block)
440
+ end
441
+
442
+ # Starts asynchronous cancellation on a long-running operation. The server makes
443
+ # a best effort to cancel the operation, but success is not guaranteed. If the
444
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
445
+ # Clients can use Operations.GetOperation or other methods to check whether the
446
+ # cancellation succeeded or whether the operation completed despite cancellation.
447
+ # On successful cancellation, the operation is not deleted; instead, it becomes
448
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
449
+ # corresponding to `Code.CANCELLED`.
450
+ # @param [String] name
451
+ # The name of the operation resource to be cancelled.
452
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
453
+ # @param [String] fields
454
+ # Selector specifying which fields to include in a partial response.
455
+ # @param [String] quota_user
456
+ # Available to use for quota purposes for server-side applications. Can be any
457
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
458
+ # @param [Google::Apis::RequestOptions] options
459
+ # Request-specific options
460
+ #
461
+ # @yield [result, err] Result & error if block supplied
462
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty] parsed result object
463
+ # @yieldparam err [StandardError] error object if request failed
464
+ #
465
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty]
466
+ #
467
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
468
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
469
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
470
+ def cancel_project_app_release_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
471
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
472
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleLongrunningCancelOperationRequest::Representation
473
+ command.request_object = google_longrunning_cancel_operation_request_object
474
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty::Representation
475
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty
476
+ command.params['name'] = name unless name.nil?
477
+ command.query['fields'] = fields unless fields.nil?
478
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
479
+ execute_or_queue_command(command, &block)
480
+ end
481
+
482
+ # Deletes a long-running operation. This method indicates that the client is no
483
+ # longer interested in the operation result. It does not cancel the operation.
484
+ # If the server doesn't support this method, it returns `google.rpc.Code.
485
+ # UNIMPLEMENTED`.
486
+ # @param [String] name
487
+ # The name of the operation resource to be deleted.
488
+ # @param [String] fields
489
+ # Selector specifying which fields to include in a partial response.
490
+ # @param [String] quota_user
491
+ # Available to use for quota purposes for server-side applications. Can be any
492
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
493
+ # @param [Google::Apis::RequestOptions] options
494
+ # Request-specific options
495
+ #
496
+ # @yield [result, err] Result & error if block supplied
497
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty] parsed result object
498
+ # @yieldparam err [StandardError] error object if request failed
499
+ #
500
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty]
501
+ #
502
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
503
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
504
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
505
+ def delete_project_app_release_operation(name, fields: nil, quota_user: nil, options: nil, &block)
506
+ command = make_simple_command(:delete, 'v1/{+name}', options)
507
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty::Representation
508
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty
509
+ command.params['name'] = name unless name.nil?
510
+ command.query['fields'] = fields unless fields.nil?
511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
512
+ execute_or_queue_command(command, &block)
513
+ end
514
+
515
+ # Gets the latest state of a long-running operation. Clients can use this method
516
+ # to poll the operation result at intervals as recommended by the API service.
517
+ # @param [String] name
518
+ # The name of the operation resource.
519
+ # @param [String] fields
520
+ # Selector specifying which fields to include in a partial response.
521
+ # @param [String] quota_user
522
+ # Available to use for quota purposes for server-side applications. Can be any
523
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
524
+ # @param [Google::Apis::RequestOptions] options
525
+ # Request-specific options
526
+ #
527
+ # @yield [result, err] Result & error if block supplied
528
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleLongrunningOperation] parsed result object
529
+ # @yieldparam err [StandardError] error object if request failed
530
+ #
531
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleLongrunningOperation]
532
+ #
533
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
534
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
535
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
536
+ def get_project_app_release_operation(name, fields: nil, quota_user: nil, options: nil, &block)
537
+ command = make_simple_command(:get, 'v1/{+name}', options)
538
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleLongrunningOperation::Representation
539
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleLongrunningOperation
540
+ command.params['name'] = name unless name.nil?
541
+ command.query['fields'] = fields unless fields.nil?
542
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
543
+ execute_or_queue_command(command, &block)
544
+ end
545
+
546
+ # Lists operations that match the specified filter in the request. If the server
547
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
548
+ # @param [String] name
549
+ # The name of the operation's parent resource.
550
+ # @param [String] filter
551
+ # The standard list filter.
552
+ # @param [Fixnum] page_size
553
+ # The standard list page size.
554
+ # @param [String] page_token
555
+ # The standard list page token.
556
+ # @param [String] fields
557
+ # Selector specifying which fields to include in a partial response.
558
+ # @param [String] quota_user
559
+ # Available to use for quota purposes for server-side applications. Can be any
560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
561
+ # @param [Google::Apis::RequestOptions] options
562
+ # Request-specific options
563
+ #
564
+ # @yield [result, err] Result & error if block supplied
565
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleLongrunningListOperationsResponse] parsed result object
566
+ # @yieldparam err [StandardError] error object if request failed
567
+ #
568
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleLongrunningListOperationsResponse]
569
+ #
570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
573
+ def list_project_app_release_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
574
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
575
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleLongrunningListOperationsResponse::Representation
576
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleLongrunningListOperationsResponse
577
+ command.params['name'] = name unless name.nil?
578
+ command.query['filter'] = filter unless filter.nil?
579
+ command.query['pageSize'] = page_size unless page_size.nil?
580
+ command.query['pageToken'] = page_token unless page_token.nil?
581
+ command.query['fields'] = fields unless fields.nil?
582
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
583
+ execute_or_queue_command(command, &block)
584
+ end
585
+
586
+ # Waits until the specified long-running operation is done or reaches at most a
587
+ # specified timeout, returning the latest state. If the operation is already
588
+ # done, the latest state is immediately returned. If the timeout specified is
589
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
590
+ # the server does not support this method, it returns `google.rpc.Code.
591
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
592
+ # the latest state before the specified timeout (including immediately), meaning
593
+ # even an immediate response is no guarantee that the operation is done.
594
+ # @param [String] name
595
+ # The name of the operation resource to wait on.
596
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleLongrunningWaitOperationRequest] google_longrunning_wait_operation_request_object
597
+ # @param [String] fields
598
+ # Selector specifying which fields to include in a partial response.
599
+ # @param [String] quota_user
600
+ # Available to use for quota purposes for server-side applications. Can be any
601
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
602
+ # @param [Google::Apis::RequestOptions] options
603
+ # Request-specific options
604
+ #
605
+ # @yield [result, err] Result & error if block supplied
606
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleLongrunningOperation] parsed result object
607
+ # @yieldparam err [StandardError] error object if request failed
608
+ #
609
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleLongrunningOperation]
610
+ #
611
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
612
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
613
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
614
+ def wait_project_app_release_operation(name, google_longrunning_wait_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
615
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
616
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleLongrunningWaitOperationRequest::Representation
617
+ command.request_object = google_longrunning_wait_operation_request_object
618
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleLongrunningOperation::Representation
619
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleLongrunningOperation
620
+ command.params['name'] = name unless name.nil?
621
+ command.query['fields'] = fields unless fields.nil?
622
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
623
+ execute_or_queue_command(command, &block)
624
+ end
625
+
626
+ # Batch adds members to a group. The testers will gain access to all releases
627
+ # that the groups have access to.
628
+ # @param [String] group
629
+ # Required. The name of the group resource to which testers are added. Format: `
630
+ # projects/`project_number`/groups/`group_alias``
631
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchJoinGroupRequest] google_firebase_appdistro_v1_batch_join_group_request_object
632
+ # @param [String] fields
633
+ # Selector specifying which fields to include in a partial response.
634
+ # @param [String] quota_user
635
+ # Available to use for quota purposes for server-side applications. Can be any
636
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
637
+ # @param [Google::Apis::RequestOptions] options
638
+ # Request-specific options
639
+ #
640
+ # @yield [result, err] Result & error if block supplied
641
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty] parsed result object
642
+ # @yieldparam err [StandardError] error object if request failed
643
+ #
644
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty]
645
+ #
646
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
647
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
648
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
649
+ def batch_project_group_join(group, google_firebase_appdistro_v1_batch_join_group_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
650
+ command = make_simple_command(:post, 'v1/{+group}:batchJoin', options)
651
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchJoinGroupRequest::Representation
652
+ command.request_object = google_firebase_appdistro_v1_batch_join_group_request_object
653
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty::Representation
654
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty
655
+ command.params['group'] = group unless group.nil?
656
+ command.query['fields'] = fields unless fields.nil?
657
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
658
+ execute_or_queue_command(command, &block)
659
+ end
660
+
661
+ # Batch removed members from a group. The testers will lose access to all
662
+ # releases that the groups have access to.
663
+ # @param [String] group
664
+ # Required. The name of the group resource from which testers are removed.
665
+ # Format: `projects/`project_number`/groups/`group_alias``
666
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchLeaveGroupRequest] google_firebase_appdistro_v1_batch_leave_group_request_object
667
+ # @param [String] fields
668
+ # Selector specifying which fields to include in a partial response.
669
+ # @param [String] quota_user
670
+ # Available to use for quota purposes for server-side applications. Can be any
671
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
672
+ # @param [Google::Apis::RequestOptions] options
673
+ # Request-specific options
674
+ #
675
+ # @yield [result, err] Result & error if block supplied
676
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty] parsed result object
677
+ # @yieldparam err [StandardError] error object if request failed
678
+ #
679
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty]
680
+ #
681
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
682
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
683
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
684
+ def batch_project_group_leave(group, google_firebase_appdistro_v1_batch_leave_group_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
685
+ command = make_simple_command(:post, 'v1/{+group}:batchLeave', options)
686
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchLeaveGroupRequest::Representation
687
+ command.request_object = google_firebase_appdistro_v1_batch_leave_group_request_object
688
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty::Representation
689
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty
690
+ command.params['group'] = group unless group.nil?
691
+ command.query['fields'] = fields unless fields.nil?
692
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
693
+ execute_or_queue_command(command, &block)
694
+ end
695
+
696
+ # Create a group.
697
+ # @param [String] parent
698
+ # Required. The name of the project resource, which is the parent of the group
699
+ # resource. Format: `projects/`project_number``
700
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group] google_firebase_appdistro_v1_group_object
701
+ # @param [String] group_id
702
+ # Optional. The "alias" to use for the group, which will become the final
703
+ # component of the group's resource name. This value must be unique per project.
704
+ # The field is named `groupId` to comply with AIP guidance for user-specified
705
+ # IDs. This value should be 4-63 characters, and valid characters are `/a-z-/`.
706
+ # If not set, it will be generated based on the display name.
707
+ # @param [String] fields
708
+ # Selector specifying which fields to include in a partial response.
709
+ # @param [String] quota_user
710
+ # Available to use for quota purposes for server-side applications. Can be any
711
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
712
+ # @param [Google::Apis::RequestOptions] options
713
+ # Request-specific options
714
+ #
715
+ # @yield [result, err] Result & error if block supplied
716
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group] parsed result object
717
+ # @yieldparam err [StandardError] error object if request failed
718
+ #
719
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group]
720
+ #
721
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
722
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
723
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
724
+ def create_project_group(parent, google_firebase_appdistro_v1_group_object = nil, group_id: nil, fields: nil, quota_user: nil, options: nil, &block)
725
+ command = make_simple_command(:post, 'v1/{+parent}/groups', options)
726
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group::Representation
727
+ command.request_object = google_firebase_appdistro_v1_group_object
728
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group::Representation
729
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group
730
+ command.params['parent'] = parent unless parent.nil?
731
+ command.query['groupId'] = group_id unless group_id.nil?
732
+ command.query['fields'] = fields unless fields.nil?
733
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
734
+ execute_or_queue_command(command, &block)
735
+ end
736
+
737
+ # Delete a group.
738
+ # @param [String] name
739
+ # Required. The name of the group resource. Format: `projects/`project_number`/
740
+ # groups/`group_alias``
741
+ # @param [String] fields
742
+ # Selector specifying which fields to include in a partial response.
743
+ # @param [String] quota_user
744
+ # Available to use for quota purposes for server-side applications. Can be any
745
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
746
+ # @param [Google::Apis::RequestOptions] options
747
+ # Request-specific options
748
+ #
749
+ # @yield [result, err] Result & error if block supplied
750
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty] parsed result object
751
+ # @yieldparam err [StandardError] error object if request failed
752
+ #
753
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty]
754
+ #
755
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
756
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
757
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
758
+ def delete_project_group(name, fields: nil, quota_user: nil, options: nil, &block)
759
+ command = make_simple_command(:delete, 'v1/{+name}', options)
760
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty::Representation
761
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleProtobufEmpty
762
+ command.params['name'] = name unless name.nil?
763
+ command.query['fields'] = fields unless fields.nil?
764
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
765
+ execute_or_queue_command(command, &block)
766
+ end
767
+
768
+ # Get a group.
769
+ # @param [String] name
770
+ # Required. The name of the group resource to retrieve. Format: `projects/`
771
+ # project_number`/groups/`group_alias``
772
+ # @param [String] fields
773
+ # Selector specifying which fields to include in a partial response.
774
+ # @param [String] quota_user
775
+ # Available to use for quota purposes for server-side applications. Can be any
776
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
777
+ # @param [Google::Apis::RequestOptions] options
778
+ # Request-specific options
779
+ #
780
+ # @yield [result, err] Result & error if block supplied
781
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group] parsed result object
782
+ # @yieldparam err [StandardError] error object if request failed
783
+ #
784
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group]
785
+ #
786
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
787
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
788
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
789
+ def get_project_group(name, fields: nil, quota_user: nil, options: nil, &block)
790
+ command = make_simple_command(:get, 'v1/{+name}', options)
791
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group::Representation
792
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group
793
+ command.params['name'] = name unless name.nil?
794
+ command.query['fields'] = fields unless fields.nil?
795
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
796
+ execute_or_queue_command(command, &block)
797
+ end
798
+
799
+ # List groups.
800
+ # @param [String] parent
801
+ # Required. The name of the project resource, which is the parent of the group
802
+ # resources. Format: `projects/`project_number``
803
+ # @param [Fixnum] page_size
804
+ # Optional. The maximum number of groups to return. The service may return fewer
805
+ # than this value. The valid range is [1-100]; If unspecified (0), at most 25
806
+ # groups are returned. Values above 100 are coerced to 100.
807
+ # @param [String] page_token
808
+ # Optional. A page token, received from a previous `ListGroups` call. Provide
809
+ # this to retrieve the subsequent page. When paginating, all other parameters
810
+ # provided to `ListGroups` must match the call that provided the page token.
811
+ # @param [String] fields
812
+ # Selector specifying which fields to include in a partial response.
813
+ # @param [String] quota_user
814
+ # Available to use for quota purposes for server-side applications. Can be any
815
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
816
+ # @param [Google::Apis::RequestOptions] options
817
+ # Request-specific options
818
+ #
819
+ # @yield [result, err] Result & error if block supplied
820
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListGroupsResponse] parsed result object
821
+ # @yieldparam err [StandardError] error object if request failed
822
+ #
823
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListGroupsResponse]
824
+ #
825
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
826
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
827
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
828
+ def list_project_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
829
+ command = make_simple_command(:get, 'v1/{+parent}/groups', options)
830
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListGroupsResponse::Representation
831
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListGroupsResponse
832
+ command.params['parent'] = parent unless parent.nil?
833
+ command.query['pageSize'] = page_size unless page_size.nil?
834
+ command.query['pageToken'] = page_token unless page_token.nil?
835
+ command.query['fields'] = fields unless fields.nil?
836
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
837
+ execute_or_queue_command(command, &block)
838
+ end
839
+
840
+ # Update a group.
841
+ # @param [String] name
842
+ # The name of the group resource. Format: `projects/`project_number`/groups/`
843
+ # group_alias``
844
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group] google_firebase_appdistro_v1_group_object
845
+ # @param [String] update_mask
846
+ # The list of fields to update.
847
+ # @param [String] fields
848
+ # Selector specifying which fields to include in a partial response.
849
+ # @param [String] quota_user
850
+ # Available to use for quota purposes for server-side applications. Can be any
851
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
852
+ # @param [Google::Apis::RequestOptions] options
853
+ # Request-specific options
854
+ #
855
+ # @yield [result, err] Result & error if block supplied
856
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group] parsed result object
857
+ # @yieldparam err [StandardError] error object if request failed
858
+ #
859
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group]
860
+ #
861
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
862
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
863
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
864
+ def patch_project_group(name, google_firebase_appdistro_v1_group_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
865
+ command = make_simple_command(:patch, 'v1/{+name}', options)
866
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group::Representation
867
+ command.request_object = google_firebase_appdistro_v1_group_object
868
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group::Representation
869
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Group
870
+ command.params['name'] = name unless name.nil?
871
+ command.query['updateMask'] = update_mask unless update_mask.nil?
872
+ command.query['fields'] = fields unless fields.nil?
873
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
874
+ execute_or_queue_command(command, &block)
875
+ end
876
+
877
+ # Batch adds testers. This call adds testers for the specified emails if they
878
+ # don't already exist. Returns all testers specified in the request, including
879
+ # newly created and previously existing testers. This action is idempotent.
880
+ # @param [String] project
881
+ # Required. The name of the project resource. Format: `projects/`project_number``
882
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchAddTestersRequest] google_firebase_appdistro_v1_batch_add_testers_request_object
883
+ # @param [String] fields
884
+ # Selector specifying which fields to include in a partial response.
885
+ # @param [String] quota_user
886
+ # Available to use for quota purposes for server-side applications. Can be any
887
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
888
+ # @param [Google::Apis::RequestOptions] options
889
+ # Request-specific options
890
+ #
891
+ # @yield [result, err] Result & error if block supplied
892
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchAddTestersResponse] parsed result object
893
+ # @yieldparam err [StandardError] error object if request failed
894
+ #
895
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchAddTestersResponse]
896
+ #
897
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
898
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
899
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
900
+ def batch_project_tester_add(project, google_firebase_appdistro_v1_batch_add_testers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
901
+ command = make_simple_command(:post, 'v1/{+project}/testers:batchAdd', options)
902
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchAddTestersRequest::Representation
903
+ command.request_object = google_firebase_appdistro_v1_batch_add_testers_request_object
904
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchAddTestersResponse::Representation
905
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchAddTestersResponse
906
+ command.params['project'] = project unless project.nil?
907
+ command.query['fields'] = fields unless fields.nil?
908
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
909
+ execute_or_queue_command(command, &block)
910
+ end
911
+
912
+ # Batch removes testers. If found, this call deletes testers for the specified
913
+ # emails. Returns all deleted testers.
914
+ # @param [String] project
915
+ # Required. The name of the project resource. Format: `projects/`project_number``
916
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchRemoveTestersRequest] google_firebase_appdistro_v1_batch_remove_testers_request_object
917
+ # @param [String] fields
918
+ # Selector specifying which fields to include in a partial response.
919
+ # @param [String] quota_user
920
+ # Available to use for quota purposes for server-side applications. Can be any
921
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
922
+ # @param [Google::Apis::RequestOptions] options
923
+ # Request-specific options
924
+ #
925
+ # @yield [result, err] Result & error if block supplied
926
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchRemoveTestersResponse] parsed result object
927
+ # @yieldparam err [StandardError] error object if request failed
928
+ #
929
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchRemoveTestersResponse]
930
+ #
931
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
932
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
933
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
934
+ def batch_project_tester_remove(project, google_firebase_appdistro_v1_batch_remove_testers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
935
+ command = make_simple_command(:post, 'v1/{+project}/testers:batchRemove', options)
936
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchRemoveTestersRequest::Representation
937
+ command.request_object = google_firebase_appdistro_v1_batch_remove_testers_request_object
938
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchRemoveTestersResponse::Representation
939
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1BatchRemoveTestersResponse
940
+ command.params['project'] = project unless project.nil?
941
+ command.query['fields'] = fields unless fields.nil?
942
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
943
+ execute_or_queue_command(command, &block)
944
+ end
945
+
946
+ # Lists testers and their resource ids.
947
+ # @param [String] parent
948
+ # Required. The name of the project resource, which is the parent of the tester
949
+ # resources. Format: `projects/`project_number``
950
+ # @param [String] filter
951
+ # Optional. The expression to filter testers listed in the response. To learn
952
+ # more about filtering, refer to [Google's AIP-160 standard](http://aip.dev/160).
953
+ # Supported fields: - `name` - `displayName` - `groups` Example: - `name = "
954
+ # projects/-/testers/*@example.com"` - `displayName = "Joe Sixpack"` - `groups =
955
+ # "projects/*/groups/qa-team"`
956
+ # @param [Fixnum] page_size
957
+ # Optional. The maximum number of testers to return. The service may return
958
+ # fewer than this value. The valid range is [1-1000]; If unspecified (0), at
959
+ # most 10 testers are returned. Values above 1000 are coerced to 1000.
960
+ # @param [String] page_token
961
+ # Optional. A page token, received from a previous `ListTesters` call. Provide
962
+ # this to retrieve the subsequent page. When paginating, all other parameters
963
+ # provided to `ListTesters` must match the call that provided the page token.
964
+ # @param [String] fields
965
+ # Selector specifying which fields to include in a partial response.
966
+ # @param [String] quota_user
967
+ # Available to use for quota purposes for server-side applications. Can be any
968
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
969
+ # @param [Google::Apis::RequestOptions] options
970
+ # Request-specific options
971
+ #
972
+ # @yield [result, err] Result & error if block supplied
973
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListTestersResponse] parsed result object
974
+ # @yieldparam err [StandardError] error object if request failed
975
+ #
976
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListTestersResponse]
977
+ #
978
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
979
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
980
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
981
+ def list_project_testers(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
982
+ command = make_simple_command(:get, 'v1/{+parent}/testers', options)
983
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListTestersResponse::Representation
984
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1ListTestersResponse
985
+ command.params['parent'] = parent unless parent.nil?
986
+ command.query['filter'] = filter unless filter.nil?
987
+ command.query['pageSize'] = page_size unless page_size.nil?
988
+ command.query['pageToken'] = page_token unless page_token.nil?
989
+ command.query['fields'] = fields unless fields.nil?
990
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
991
+ execute_or_queue_command(command, &block)
992
+ end
993
+
994
+ # Update a tester. If the testers joins a group they gain access to all releases
995
+ # that the group has access to.
996
+ # @param [String] name
997
+ # The name of the tester resource. Format: `projects/`project_number`/testers/`
998
+ # email_address``
999
+ # @param [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Tester] google_firebase_appdistro_v1_tester_object
1000
+ # @param [String] update_mask
1001
+ # The list of fields to update.
1002
+ # @param [String] fields
1003
+ # Selector specifying which fields to include in a partial response.
1004
+ # @param [String] quota_user
1005
+ # Available to use for quota purposes for server-side applications. Can be any
1006
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1007
+ # @param [Google::Apis::RequestOptions] options
1008
+ # Request-specific options
1009
+ #
1010
+ # @yield [result, err] Result & error if block supplied
1011
+ # @yieldparam result [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Tester] parsed result object
1012
+ # @yieldparam err [StandardError] error object if request failed
1013
+ #
1014
+ # @return [Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Tester]
1015
+ #
1016
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1017
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1018
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1019
+ def patch_project_tester(name, google_firebase_appdistro_v1_tester_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1020
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1021
+ command.request_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Tester::Representation
1022
+ command.request_object = google_firebase_appdistro_v1_tester_object
1023
+ command.response_representation = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Tester::Representation
1024
+ command.response_class = Google::Apis::FirebaseappdistributionV1::GoogleFirebaseAppdistroV1Tester
1025
+ command.params['name'] = name unless name.nil?
1026
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1027
+ command.query['fields'] = fields unless fields.nil?
1028
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1029
+ execute_or_queue_command(command, &block)
1030
+ end
1031
+
1032
+ protected
1033
+
1034
+ def apply_command_defaults(command)
1035
+ command.query['key'] = key unless key.nil?
1036
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1037
+ end
1038
+ end
1039
+ end
1040
+ end
1041
+ end