google-apis-playdeveloperreporting_v1alpha1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,704 @@
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 PlaydeveloperreportingV1alpha1
23
+ # Google Play Developer Reporting API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/playdeveloperreporting_v1alpha1'
29
+ #
30
+ # Playdeveloperreporting = Google::Apis::PlaydeveloperreportingV1alpha1 # Alias the module
31
+ # service = Playdeveloperreporting::PlaydeveloperreportingService.new
32
+ #
33
+ # @see https://developers.google.com/play/developer/reporting
34
+ class PlaydeveloperreportingService < 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://playdeveloperreporting.googleapis.com/', '',
47
+ client_name: 'google-apis-playdeveloperreporting_v1alpha1',
48
+ client_version: Google::Apis::PlaydeveloperreportingV1alpha1::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Lists anomalies in any of the datasets.
53
+ # @param [String] parent
54
+ # Required. Parent app for which anomalies were detected. Format: apps/`app`
55
+ # @param [String] filter
56
+ # Filtering criteria for anomalies. For basic filter guidance, please check:
57
+ # https://google.aip.dev/160. **Supported functions:** * `activeBetween(
58
+ # startTime, endTime)`: If specified, only list anomalies that were active in
59
+ # between `startTime` (inclusive) and `endTime` (exclusive). Both parameters are
60
+ # expected to conform to an RFC-3339 formatted string (e.g. `2012-04-21T11:30:00-
61
+ # 04:00`). UTC offsets are supported. Both `startTime` and `endTime` accept the
62
+ # special value `UNBOUNDED`, to signify intervals with no lower or upper bound,
63
+ # respectively. Examples: * `activeBetween("2021-04-21T11:30:00Z", "2021-07-
64
+ # 21T00:00:00Z")` * `activeBetween(UNBOUNDED, "2021-11-21T00:00:00-04:00")` * `
65
+ # activeBetween("2021-07-21T00:00:00-04:00", UNBOUNDED)`
66
+ # @param [Fixnum] page_size
67
+ # Maximum size of the returned data. If unspecified, at most 10 anomalies will
68
+ # be returned. The maximum value is 100; values above 100 will be coerced to 100.
69
+ # @param [String] page_token
70
+ # A page token, received from a previous `ListErrorReports` call. Provide this
71
+ # to retrieve the subsequent page. When paginating, all other parameters
72
+ # provided to `ListErrorReports` must match the call that provided the page
73
+ # token.
74
+ # @param [String] fields
75
+ # Selector specifying which fields to include in a partial response.
76
+ # @param [String] quota_user
77
+ # Available to use for quota purposes for server-side applications. Can be any
78
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
79
+ # @param [Google::Apis::RequestOptions] options
80
+ # Request-specific options
81
+ #
82
+ # @yield [result, err] Result & error if block supplied
83
+ # @yieldparam result [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1ListAnomaliesResponse] parsed result object
84
+ # @yieldparam err [StandardError] error object if request failed
85
+ #
86
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1ListAnomaliesResponse]
87
+ #
88
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
89
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
90
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
91
+ def list_anomalies(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
92
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/anomalies', options)
93
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1ListAnomaliesResponse::Representation
94
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1ListAnomaliesResponse
95
+ command.params['parent'] = parent unless parent.nil?
96
+ command.query['filter'] = filter unless filter.nil?
97
+ command.query['pageSize'] = page_size unless page_size.nil?
98
+ command.query['pageToken'] = page_token unless page_token.nil?
99
+ command.query['fields'] = fields unless fields.nil?
100
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
101
+ execute_or_queue_command(command, &block)
102
+ end
103
+
104
+ # Describes the properties of the metric set.
105
+ # @param [String] name
106
+ # Required. The resource name. Format: apps/`app`/anrRateMetricSet
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::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1AnrRateMetricSet] parsed result object
117
+ # @yieldparam err [StandardError] error object if request failed
118
+ #
119
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1AnrRateMetricSet]
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 get_vital_anrrate(name, fields: nil, quota_user: nil, options: nil, &block)
125
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
126
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1AnrRateMetricSet::Representation
127
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1AnrRateMetricSet
128
+ command.params['name'] = name unless name.nil?
129
+ command.query['fields'] = fields unless fields.nil?
130
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
131
+ execute_or_queue_command(command, &block)
132
+ end
133
+
134
+ # Queries the metrics in the metric set.
135
+ # @param [String] name
136
+ # Required. The resource name. Format: apps/`app`/anrRateMetricSet
137
+ # @param [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryAnrRateMetricSetRequest] google_play_developer_reporting_v1alpha1_query_anr_rate_metric_set_request_object
138
+ # @param [String] fields
139
+ # Selector specifying which fields to include in a partial response.
140
+ # @param [String] quota_user
141
+ # Available to use for quota purposes for server-side applications. Can be any
142
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
143
+ # @param [Google::Apis::RequestOptions] options
144
+ # Request-specific options
145
+ #
146
+ # @yield [result, err] Result & error if block supplied
147
+ # @yieldparam result [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryAnrRateMetricSetResponse] parsed result object
148
+ # @yieldparam err [StandardError] error object if request failed
149
+ #
150
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryAnrRateMetricSetResponse]
151
+ #
152
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
153
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
154
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
155
+ def query_vital_anrrate(name, google_play_developer_reporting_v1alpha1_query_anr_rate_metric_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
156
+ command = make_simple_command(:post, 'v1alpha1/{+name}:query', options)
157
+ command.request_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryAnrRateMetricSetRequest::Representation
158
+ command.request_object = google_play_developer_reporting_v1alpha1_query_anr_rate_metric_set_request_object
159
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryAnrRateMetricSetResponse::Representation
160
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryAnrRateMetricSetResponse
161
+ command.params['name'] = name unless name.nil?
162
+ command.query['fields'] = fields unless fields.nil?
163
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
164
+ execute_or_queue_command(command, &block)
165
+ end
166
+
167
+ # Describes the properties of the metric set.
168
+ # @param [String] name
169
+ # Required. The resource name. Format: apps/`app`/crashRateMetricSet
170
+ # @param [String] fields
171
+ # Selector specifying which fields to include in a partial response.
172
+ # @param [String] quota_user
173
+ # Available to use for quota purposes for server-side applications. Can be any
174
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
175
+ # @param [Google::Apis::RequestOptions] options
176
+ # Request-specific options
177
+ #
178
+ # @yield [result, err] Result & error if block supplied
179
+ # @yieldparam result [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1CrashRateMetricSet] parsed result object
180
+ # @yieldparam err [StandardError] error object if request failed
181
+ #
182
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1CrashRateMetricSet]
183
+ #
184
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
185
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
186
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
187
+ def get_vital_crashrate(name, fields: nil, quota_user: nil, options: nil, &block)
188
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
189
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1CrashRateMetricSet::Representation
190
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1CrashRateMetricSet
191
+ command.params['name'] = name unless name.nil?
192
+ command.query['fields'] = fields unless fields.nil?
193
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
194
+ execute_or_queue_command(command, &block)
195
+ end
196
+
197
+ # Queries the metrics in the metric set.
198
+ # @param [String] name
199
+ # Required. The resource name. Format: apps/`app`/crashRateMetricSet
200
+ # @param [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryCrashRateMetricSetRequest] google_play_developer_reporting_v1alpha1_query_crash_rate_metric_set_request_object
201
+ # @param [String] fields
202
+ # Selector specifying which fields to include in a partial response.
203
+ # @param [String] quota_user
204
+ # Available to use for quota purposes for server-side applications. Can be any
205
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
206
+ # @param [Google::Apis::RequestOptions] options
207
+ # Request-specific options
208
+ #
209
+ # @yield [result, err] Result & error if block supplied
210
+ # @yieldparam result [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryCrashRateMetricSetResponse] parsed result object
211
+ # @yieldparam err [StandardError] error object if request failed
212
+ #
213
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryCrashRateMetricSetResponse]
214
+ #
215
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
216
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
217
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
218
+ def query_vital_crashrate(name, google_play_developer_reporting_v1alpha1_query_crash_rate_metric_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
219
+ command = make_simple_command(:post, 'v1alpha1/{+name}:query', options)
220
+ command.request_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryCrashRateMetricSetRequest::Representation
221
+ command.request_object = google_play_developer_reporting_v1alpha1_query_crash_rate_metric_set_request_object
222
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryCrashRateMetricSetResponse::Representation
223
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryCrashRateMetricSetResponse
224
+ command.params['name'] = name unless name.nil?
225
+ command.query['fields'] = fields unless fields.nil?
226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
227
+ execute_or_queue_command(command, &block)
228
+ end
229
+
230
+ # Describes the properties of the metrics set.
231
+ # @param [String] name
232
+ # Required. Name of the errors metric set. Format: apps/`app`/
233
+ # errorCountMetricSet
234
+ # @param [String] fields
235
+ # Selector specifying which fields to include in a partial response.
236
+ # @param [String] quota_user
237
+ # Available to use for quota purposes for server-side applications. Can be any
238
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
239
+ # @param [Google::Apis::RequestOptions] options
240
+ # Request-specific options
241
+ #
242
+ # @yield [result, err] Result & error if block supplied
243
+ # @yieldparam result [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1ErrorCountMetricSet] parsed result object
244
+ # @yieldparam err [StandardError] error object if request failed
245
+ #
246
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1ErrorCountMetricSet]
247
+ #
248
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
249
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
250
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
251
+ def get_vital_error_count(name, fields: nil, quota_user: nil, options: nil, &block)
252
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
253
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1ErrorCountMetricSet::Representation
254
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1ErrorCountMetricSet
255
+ command.params['name'] = name unless name.nil?
256
+ command.query['fields'] = fields unless fields.nil?
257
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
258
+ execute_or_queue_command(command, &block)
259
+ end
260
+
261
+ # Queries the metrics in the metrics set.
262
+ # @param [String] name
263
+ # Required. The resource name. Format: apps/`app`/errorCountMetricSet
264
+ # @param [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryErrorCountMetricSetRequest] google_play_developer_reporting_v1alpha1_query_error_count_metric_set_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::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryErrorCountMetricSetResponse] parsed result object
275
+ # @yieldparam err [StandardError] error object if request failed
276
+ #
277
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryErrorCountMetricSetResponse]
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 query_vital_error_count(name, google_play_developer_reporting_v1alpha1_query_error_count_metric_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
283
+ command = make_simple_command(:post, 'v1alpha1/{+name}:query', options)
284
+ command.request_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryErrorCountMetricSetRequest::Representation
285
+ command.request_object = google_play_developer_reporting_v1alpha1_query_error_count_metric_set_request_object
286
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryErrorCountMetricSetResponse::Representation
287
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryErrorCountMetricSetResponse
288
+ command.params['name'] = name unless name.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
+ # Searches all error issues in which reports have been grouped.
295
+ # @param [String] parent
296
+ # Required. Parent resource of the error issues, indicating the application for
297
+ # which they were received. Format: apps/`app`
298
+ # @param [String] filter
299
+ # A selection predicate to retrieve only a subset of the issues. Counts in the
300
+ # returned error issues will only reflect occurrences that matched the filter.
301
+ # For filtering basics, please check [AIP-160](https://google.aip.dev/160). **
302
+ # Supported field names:** * `apiLevel`: Matches error issues that occurred in
303
+ # the requested Android versions (specified as the numeric API level) only.
304
+ # Example: `apiLevel = 28 OR apiLevel = 29`. * `versionCode`: Matches error
305
+ # issues that occurred in the requested app version codes only. Example: `
306
+ # versionCode = 123 OR versionCode = 456`. * `deviceModel`: Matches error issues
307
+ # that occurred in the requested devices. Example: `deviceModel = "walleye" OR
308
+ # deviceModel = "marlin"`. * `deviceType`: Matches error issues that occurred in
309
+ # the requested device types. Example: `deviceType = "PHONE"`. * `errorIssueType`
310
+ # : Matches error issues of the requested types only. Valid candidates: `CRASH`,
311
+ # `ANR`. Example: `errorIssueType = CRASH OR errorIssueType = ANR`. ** Supported
312
+ # operators:** * Comparison operators: The only supported comparison operator is
313
+ # equality. The filtered field must appear on the left hand side of the
314
+ # comparison. * Logical Operators: Logical operators `AND` and `OR` can be used
315
+ # to build complex filters following a conjunctive normal form (CNF), i.e.,
316
+ # conjunctions of disjunctions. The `OR` operator takes precedence over `AND` so
317
+ # the use of parenthesis is not necessary when building CNF. The `OR` operator
318
+ # is only supported to build disjunctions that apply to the same field, e.g., `
319
+ # versionCode = 123 OR errorIssueType = ANR` is not a valid filter. ** Examples *
320
+ # * Some valid filtering expressions: * `versionCode = 123 AND errorIssueType =
321
+ # ANR` * `versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` * `
322
+ # versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)`
323
+ # @param [Fixnum] interval_end_time_day
324
+ # Required. Day of month. Must be from 1 to 31 and valid for the year and month.
325
+ # @param [Fixnum] interval_end_time_hours
326
+ # Required. Hours of day in 24 hour format. Should be from 0 to 23. An API may
327
+ # choose to allow the value "24:00:00" for scenarios like business closing time.
328
+ # @param [Fixnum] interval_end_time_minutes
329
+ # Required. Minutes of hour of day. Must be from 0 to 59.
330
+ # @param [Fixnum] interval_end_time_month
331
+ # Required. Month of year. Must be from 1 to 12.
332
+ # @param [Fixnum] interval_end_time_nanos
333
+ # Required. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
334
+ # @param [Fixnum] interval_end_time_seconds
335
+ # Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
336
+ # API may allow the value 60 if it allows leap-seconds.
337
+ # @param [String] interval_end_time_time_zone_id
338
+ # IANA Time Zone Database time zone, e.g. "America/New_York".
339
+ # @param [String] interval_end_time_time_zone_version
340
+ # Optional. IANA Time Zone Database version number, e.g. "2019a".
341
+ # @param [String] interval_end_time_utc_offset
342
+ # UTC offset. Must be whole seconds, between -18 hours and +18 hours. For
343
+ # example, a UTC offset of -4:00 would be represented as ` seconds: -14400 `.
344
+ # @param [Fixnum] interval_end_time_year
345
+ # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime
346
+ # without a year.
347
+ # @param [Fixnum] interval_start_time_day
348
+ # Required. Day of month. Must be from 1 to 31 and valid for the year and month.
349
+ # @param [Fixnum] interval_start_time_hours
350
+ # Required. Hours of day in 24 hour format. Should be from 0 to 23. An API may
351
+ # choose to allow the value "24:00:00" for scenarios like business closing time.
352
+ # @param [Fixnum] interval_start_time_minutes
353
+ # Required. Minutes of hour of day. Must be from 0 to 59.
354
+ # @param [Fixnum] interval_start_time_month
355
+ # Required. Month of year. Must be from 1 to 12.
356
+ # @param [Fixnum] interval_start_time_nanos
357
+ # Required. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
358
+ # @param [Fixnum] interval_start_time_seconds
359
+ # Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
360
+ # API may allow the value 60 if it allows leap-seconds.
361
+ # @param [String] interval_start_time_time_zone_id
362
+ # IANA Time Zone Database time zone, e.g. "America/New_York".
363
+ # @param [String] interval_start_time_time_zone_version
364
+ # Optional. IANA Time Zone Database version number, e.g. "2019a".
365
+ # @param [String] interval_start_time_utc_offset
366
+ # UTC offset. Must be whole seconds, between -18 hours and +18 hours. For
367
+ # example, a UTC offset of -4:00 would be represented as ` seconds: -14400 `.
368
+ # @param [Fixnum] interval_start_time_year
369
+ # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime
370
+ # without a year.
371
+ # @param [Fixnum] page_size
372
+ # The maximum number of error issues to return. The service may return fewer
373
+ # than this value. If unspecified, at most 50 error issues will be returned. The
374
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
375
+ # @param [String] page_token
376
+ # A page token, received from a previous call. Provide this to retrieve the
377
+ # subsequent page. When paginating, all other parameters provided to the request
378
+ # must match the call that provided the page token.
379
+ # @param [String] fields
380
+ # Selector specifying which fields to include in a partial response.
381
+ # @param [String] quota_user
382
+ # Available to use for quota purposes for server-side applications. Can be any
383
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
384
+ # @param [Google::Apis::RequestOptions] options
385
+ # Request-specific options
386
+ #
387
+ # @yield [result, err] Result & error if block supplied
388
+ # @yieldparam result [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse] parsed result object
389
+ # @yieldparam err [StandardError] error object if request failed
390
+ #
391
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse]
392
+ #
393
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
394
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
395
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
396
+ def search_vital_error_issues(parent, filter: nil, interval_end_time_day: nil, interval_end_time_hours: nil, interval_end_time_minutes: nil, interval_end_time_month: nil, interval_end_time_nanos: nil, interval_end_time_seconds: nil, interval_end_time_time_zone_id: nil, interval_end_time_time_zone_version: nil, interval_end_time_utc_offset: nil, interval_end_time_year: nil, interval_start_time_day: nil, interval_start_time_hours: nil, interval_start_time_minutes: nil, interval_start_time_month: nil, interval_start_time_nanos: nil, interval_start_time_seconds: nil, interval_start_time_time_zone_id: nil, interval_start_time_time_zone_version: nil, interval_start_time_utc_offset: nil, interval_start_time_year: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
397
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/errorIssues:search', options)
398
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse::Representation
399
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1SearchErrorIssuesResponse
400
+ command.params['parent'] = parent unless parent.nil?
401
+ command.query['filter'] = filter unless filter.nil?
402
+ command.query['interval.endTime.day'] = interval_end_time_day unless interval_end_time_day.nil?
403
+ command.query['interval.endTime.hours'] = interval_end_time_hours unless interval_end_time_hours.nil?
404
+ command.query['interval.endTime.minutes'] = interval_end_time_minutes unless interval_end_time_minutes.nil?
405
+ command.query['interval.endTime.month'] = interval_end_time_month unless interval_end_time_month.nil?
406
+ command.query['interval.endTime.nanos'] = interval_end_time_nanos unless interval_end_time_nanos.nil?
407
+ command.query['interval.endTime.seconds'] = interval_end_time_seconds unless interval_end_time_seconds.nil?
408
+ command.query['interval.endTime.timeZone.id'] = interval_end_time_time_zone_id unless interval_end_time_time_zone_id.nil?
409
+ command.query['interval.endTime.timeZone.version'] = interval_end_time_time_zone_version unless interval_end_time_time_zone_version.nil?
410
+ command.query['interval.endTime.utcOffset'] = interval_end_time_utc_offset unless interval_end_time_utc_offset.nil?
411
+ command.query['interval.endTime.year'] = interval_end_time_year unless interval_end_time_year.nil?
412
+ command.query['interval.startTime.day'] = interval_start_time_day unless interval_start_time_day.nil?
413
+ command.query['interval.startTime.hours'] = interval_start_time_hours unless interval_start_time_hours.nil?
414
+ command.query['interval.startTime.minutes'] = interval_start_time_minutes unless interval_start_time_minutes.nil?
415
+ command.query['interval.startTime.month'] = interval_start_time_month unless interval_start_time_month.nil?
416
+ command.query['interval.startTime.nanos'] = interval_start_time_nanos unless interval_start_time_nanos.nil?
417
+ command.query['interval.startTime.seconds'] = interval_start_time_seconds unless interval_start_time_seconds.nil?
418
+ command.query['interval.startTime.timeZone.id'] = interval_start_time_time_zone_id unless interval_start_time_time_zone_id.nil?
419
+ command.query['interval.startTime.timeZone.version'] = interval_start_time_time_zone_version unless interval_start_time_time_zone_version.nil?
420
+ command.query['interval.startTime.utcOffset'] = interval_start_time_utc_offset unless interval_start_time_utc_offset.nil?
421
+ command.query['interval.startTime.year'] = interval_start_time_year unless interval_start_time_year.nil?
422
+ command.query['pageSize'] = page_size unless page_size.nil?
423
+ command.query['pageToken'] = page_token unless page_token.nil?
424
+ command.query['fields'] = fields unless fields.nil?
425
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
426
+ execute_or_queue_command(command, &block)
427
+ end
428
+
429
+ # Searches all error reports received for an app.
430
+ # @param [String] parent
431
+ # Required. Parent resource of the reports, indicating the application for which
432
+ # they were received. Format: apps/`app`
433
+ # @param [String] filter
434
+ # A selection predicate to retrieve only a subset of the reports. For filtering
435
+ # basics, please check [AIP-160](https://google.aip.dev/160). ** Supported field
436
+ # names:** * `apiLevel`: Matches error reports that occurred in the requested
437
+ # Android versions (specified as the numeric API level) only. Example: `apiLevel
438
+ # = 28 OR apiLevel = 29`. * `versionCode`: Matches error reports that occurred
439
+ # in the requested app version codes only. Example: `versionCode = 123 OR
440
+ # versionCode = 456`. * `deviceModel`: Matches error reports that occurred in
441
+ # the requested devices. Example: `deviceModel = "walleye" OR deviceModel = "
442
+ # marlin"`. * `deviceType`: Matches error reports that occurred in the requested
443
+ # device types. Example: `deviceType = "PHONE"`. * `errorIssueType`: Matches
444
+ # error reports of the requested types only. Valid candidates: `JAVA_CRASH`, `
445
+ # NATIVE_CRASH`, `ANR`. Example: `errorIssueType = JAVA_CRASH OR errorIssueType =
446
+ # NATIVE_CRASH`. * `errorIssueId`: Matches error reports belonging to the
447
+ # requested error issue ids only. Example: `errorIssueId = 1234 OR errorIssueId =
448
+ # 4567`. ** Supported operators:** * Comparison operators: The only supported
449
+ # comparison operator is equality. The filtered field must appear on the left
450
+ # hand side of the comparison. * Logical Operators: Logical operators `AND` and `
451
+ # OR` can be used to build complex filters following a conjunctive normal form (
452
+ # CNF), i.e., conjunctions of disjunctions. The `OR` operator takes precedence
453
+ # over `AND` so the use of parenthesis is not necessary when building CNF. The `
454
+ # OR` operator is only supported to build disjunctions that apply to the same
455
+ # field, e.g., `versionCode = 123 OR versionCode = ANR`. The filter expression `
456
+ # versionCode = 123 OR errorIssueType = ANR` is not valid. ** Examples ** Some
457
+ # valid filtering expressions: * `versionCode = 123 AND errorIssueType = ANR` * `
458
+ # versionCode = 123 AND errorIssueType = OR errorIssueType = CRASH` * `
459
+ # versionCode = 123 AND (errorIssueType = OR errorIssueType = CRASH)`
460
+ # @param [Fixnum] interval_end_time_day
461
+ # Required. Day of month. Must be from 1 to 31 and valid for the year and month.
462
+ # @param [Fixnum] interval_end_time_hours
463
+ # Required. Hours of day in 24 hour format. Should be from 0 to 23. An API may
464
+ # choose to allow the value "24:00:00" for scenarios like business closing time.
465
+ # @param [Fixnum] interval_end_time_minutes
466
+ # Required. Minutes of hour of day. Must be from 0 to 59.
467
+ # @param [Fixnum] interval_end_time_month
468
+ # Required. Month of year. Must be from 1 to 12.
469
+ # @param [Fixnum] interval_end_time_nanos
470
+ # Required. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
471
+ # @param [Fixnum] interval_end_time_seconds
472
+ # Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
473
+ # API may allow the value 60 if it allows leap-seconds.
474
+ # @param [String] interval_end_time_time_zone_id
475
+ # IANA Time Zone Database time zone, e.g. "America/New_York".
476
+ # @param [String] interval_end_time_time_zone_version
477
+ # Optional. IANA Time Zone Database version number, e.g. "2019a".
478
+ # @param [String] interval_end_time_utc_offset
479
+ # UTC offset. Must be whole seconds, between -18 hours and +18 hours. For
480
+ # example, a UTC offset of -4:00 would be represented as ` seconds: -14400 `.
481
+ # @param [Fixnum] interval_end_time_year
482
+ # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime
483
+ # without a year.
484
+ # @param [Fixnum] interval_start_time_day
485
+ # Required. Day of month. Must be from 1 to 31 and valid for the year and month.
486
+ # @param [Fixnum] interval_start_time_hours
487
+ # Required. Hours of day in 24 hour format. Should be from 0 to 23. An API may
488
+ # choose to allow the value "24:00:00" for scenarios like business closing time.
489
+ # @param [Fixnum] interval_start_time_minutes
490
+ # Required. Minutes of hour of day. Must be from 0 to 59.
491
+ # @param [Fixnum] interval_start_time_month
492
+ # Required. Month of year. Must be from 1 to 12.
493
+ # @param [Fixnum] interval_start_time_nanos
494
+ # Required. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
495
+ # @param [Fixnum] interval_start_time_seconds
496
+ # Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
497
+ # API may allow the value 60 if it allows leap-seconds.
498
+ # @param [String] interval_start_time_time_zone_id
499
+ # IANA Time Zone Database time zone, e.g. "America/New_York".
500
+ # @param [String] interval_start_time_time_zone_version
501
+ # Optional. IANA Time Zone Database version number, e.g. "2019a".
502
+ # @param [String] interval_start_time_utc_offset
503
+ # UTC offset. Must be whole seconds, between -18 hours and +18 hours. For
504
+ # example, a UTC offset of -4:00 would be represented as ` seconds: -14400 `.
505
+ # @param [Fixnum] interval_start_time_year
506
+ # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime
507
+ # without a year.
508
+ # @param [Fixnum] page_size
509
+ # The maximum number of reports to return. The service may return fewer than
510
+ # this value. If unspecified, at most 50 reports will be returned. The maximum
511
+ # value is 1000; values above 1000 will be coerced to 1000.
512
+ # @param [String] page_token
513
+ # A page token, received from a previous `SearchErrorReports` call. Provide this
514
+ # to retrieve the subsequent page. When paginating, all other parameters
515
+ # provided to `SearchErrorReports` must match the call that provided the page
516
+ # token.
517
+ # @param [String] fields
518
+ # Selector specifying which fields to include in a partial response.
519
+ # @param [String] quota_user
520
+ # Available to use for quota purposes for server-side applications. Can be any
521
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
522
+ # @param [Google::Apis::RequestOptions] options
523
+ # Request-specific options
524
+ #
525
+ # @yield [result, err] Result & error if block supplied
526
+ # @yieldparam result [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse] parsed result object
527
+ # @yieldparam err [StandardError] error object if request failed
528
+ #
529
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse]
530
+ #
531
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
532
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
533
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
534
+ def search_vital_error_reports(parent, filter: nil, interval_end_time_day: nil, interval_end_time_hours: nil, interval_end_time_minutes: nil, interval_end_time_month: nil, interval_end_time_nanos: nil, interval_end_time_seconds: nil, interval_end_time_time_zone_id: nil, interval_end_time_time_zone_version: nil, interval_end_time_utc_offset: nil, interval_end_time_year: nil, interval_start_time_day: nil, interval_start_time_hours: nil, interval_start_time_minutes: nil, interval_start_time_month: nil, interval_start_time_nanos: nil, interval_start_time_seconds: nil, interval_start_time_time_zone_id: nil, interval_start_time_time_zone_version: nil, interval_start_time_utc_offset: nil, interval_start_time_year: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
535
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/errorReports:search', options)
536
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse::Representation
537
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1SearchErrorReportsResponse
538
+ command.params['parent'] = parent unless parent.nil?
539
+ command.query['filter'] = filter unless filter.nil?
540
+ command.query['interval.endTime.day'] = interval_end_time_day unless interval_end_time_day.nil?
541
+ command.query['interval.endTime.hours'] = interval_end_time_hours unless interval_end_time_hours.nil?
542
+ command.query['interval.endTime.minutes'] = interval_end_time_minutes unless interval_end_time_minutes.nil?
543
+ command.query['interval.endTime.month'] = interval_end_time_month unless interval_end_time_month.nil?
544
+ command.query['interval.endTime.nanos'] = interval_end_time_nanos unless interval_end_time_nanos.nil?
545
+ command.query['interval.endTime.seconds'] = interval_end_time_seconds unless interval_end_time_seconds.nil?
546
+ command.query['interval.endTime.timeZone.id'] = interval_end_time_time_zone_id unless interval_end_time_time_zone_id.nil?
547
+ command.query['interval.endTime.timeZone.version'] = interval_end_time_time_zone_version unless interval_end_time_time_zone_version.nil?
548
+ command.query['interval.endTime.utcOffset'] = interval_end_time_utc_offset unless interval_end_time_utc_offset.nil?
549
+ command.query['interval.endTime.year'] = interval_end_time_year unless interval_end_time_year.nil?
550
+ command.query['interval.startTime.day'] = interval_start_time_day unless interval_start_time_day.nil?
551
+ command.query['interval.startTime.hours'] = interval_start_time_hours unless interval_start_time_hours.nil?
552
+ command.query['interval.startTime.minutes'] = interval_start_time_minutes unless interval_start_time_minutes.nil?
553
+ command.query['interval.startTime.month'] = interval_start_time_month unless interval_start_time_month.nil?
554
+ command.query['interval.startTime.nanos'] = interval_start_time_nanos unless interval_start_time_nanos.nil?
555
+ command.query['interval.startTime.seconds'] = interval_start_time_seconds unless interval_start_time_seconds.nil?
556
+ command.query['interval.startTime.timeZone.id'] = interval_start_time_time_zone_id unless interval_start_time_time_zone_id.nil?
557
+ command.query['interval.startTime.timeZone.version'] = interval_start_time_time_zone_version unless interval_start_time_time_zone_version.nil?
558
+ command.query['interval.startTime.utcOffset'] = interval_start_time_utc_offset unless interval_start_time_utc_offset.nil?
559
+ command.query['interval.startTime.year'] = interval_start_time_year unless interval_start_time_year.nil?
560
+ command.query['pageSize'] = page_size unless page_size.nil?
561
+ command.query['pageToken'] = page_token unless page_token.nil?
562
+ command.query['fields'] = fields unless fields.nil?
563
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
564
+ execute_or_queue_command(command, &block)
565
+ end
566
+
567
+ # Describes the properties of the metric set.
568
+ # @param [String] name
569
+ # Required. The resource name. Format: apps/`app`/excessiveWakeupRateMetricSet
570
+ # @param [String] fields
571
+ # Selector specifying which fields to include in a partial response.
572
+ # @param [String] quota_user
573
+ # Available to use for quota purposes for server-side applications. Can be any
574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
575
+ # @param [Google::Apis::RequestOptions] options
576
+ # Request-specific options
577
+ #
578
+ # @yield [result, err] Result & error if block supplied
579
+ # @yieldparam result [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet] parsed result object
580
+ # @yieldparam err [StandardError] error object if request failed
581
+ #
582
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet]
583
+ #
584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
587
+ def get_vital_excessivewakeuprate(name, fields: nil, quota_user: nil, options: nil, &block)
588
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
589
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet::Representation
590
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1ExcessiveWakeupRateMetricSet
591
+ command.params['name'] = name unless name.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
+ # Queries the metrics in the metric set.
598
+ # @param [String] name
599
+ # Required. The resource name. Format: apps/`app`/excessiveWakeupRateMetricSet
600
+ # @param [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetRequest] google_play_developer_reporting_v1alpha1_query_excessive_wakeup_rate_metric_set_request_object
601
+ # @param [String] fields
602
+ # Selector specifying which fields to include in a partial response.
603
+ # @param [String] quota_user
604
+ # Available to use for quota purposes for server-side applications. Can be any
605
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
606
+ # @param [Google::Apis::RequestOptions] options
607
+ # Request-specific options
608
+ #
609
+ # @yield [result, err] Result & error if block supplied
610
+ # @yieldparam result [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetResponse] parsed result object
611
+ # @yieldparam err [StandardError] error object if request failed
612
+ #
613
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetResponse]
614
+ #
615
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
616
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
617
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
618
+ def query_vital_excessivewakeuprate(name, google_play_developer_reporting_v1alpha1_query_excessive_wakeup_rate_metric_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
619
+ command = make_simple_command(:post, 'v1alpha1/{+name}:query', options)
620
+ command.request_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetRequest::Representation
621
+ command.request_object = google_play_developer_reporting_v1alpha1_query_excessive_wakeup_rate_metric_set_request_object
622
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetResponse::Representation
623
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryExcessiveWakeupRateMetricSetResponse
624
+ command.params['name'] = name unless name.nil?
625
+ command.query['fields'] = fields unless fields.nil?
626
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
627
+ execute_or_queue_command(command, &block)
628
+ end
629
+
630
+ # Describes the properties of the metric set.
631
+ # @param [String] name
632
+ # Required. The resource name. Format: apps/`app`/
633
+ # stuckBackgroundWakelockRateMetricSet
634
+ # @param [String] fields
635
+ # Selector specifying which fields to include in a partial response.
636
+ # @param [String] quota_user
637
+ # Available to use for quota purposes for server-side applications. Can be any
638
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
639
+ # @param [Google::Apis::RequestOptions] options
640
+ # Request-specific options
641
+ #
642
+ # @yield [result, err] Result & error if block supplied
643
+ # @yieldparam result [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet] parsed result object
644
+ # @yieldparam err [StandardError] error object if request failed
645
+ #
646
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet]
647
+ #
648
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
649
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
650
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
651
+ def get_vital_stuckbackgroundwakelockrate(name, fields: nil, quota_user: nil, options: nil, &block)
652
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
653
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet::Representation
654
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1StuckBackgroundWakelockRateMetricSet
655
+ command.params['name'] = name unless name.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
+ # Queries the metrics in the metric set.
662
+ # @param [String] name
663
+ # Required. The resource name. Format: apps/`app`/
664
+ # stuckBackgroundWakelockRateMetricSet
665
+ # @param [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetRequest] google_play_developer_reporting_v1alpha1_query_stuck_background_wakelock_rate_metric_set_request_object
666
+ # @param [String] fields
667
+ # Selector specifying which fields to include in a partial response.
668
+ # @param [String] quota_user
669
+ # Available to use for quota purposes for server-side applications. Can be any
670
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
671
+ # @param [Google::Apis::RequestOptions] options
672
+ # Request-specific options
673
+ #
674
+ # @yield [result, err] Result & error if block supplied
675
+ # @yieldparam result [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetResponse] parsed result object
676
+ # @yieldparam err [StandardError] error object if request failed
677
+ #
678
+ # @return [Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetResponse]
679
+ #
680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
683
+ def query_vital_stuckbackgroundwakelockrate(name, google_play_developer_reporting_v1alpha1_query_stuck_background_wakelock_rate_metric_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
684
+ command = make_simple_command(:post, 'v1alpha1/{+name}:query', options)
685
+ command.request_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetRequest::Representation
686
+ command.request_object = google_play_developer_reporting_v1alpha1_query_stuck_background_wakelock_rate_metric_set_request_object
687
+ command.response_representation = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetResponse::Representation
688
+ command.response_class = Google::Apis::PlaydeveloperreportingV1alpha1::GooglePlayDeveloperReportingV1alpha1QueryStuckBackgroundWakelockRateMetricSetResponse
689
+ command.params['name'] = name unless name.nil?
690
+ command.query['fields'] = fields unless fields.nil?
691
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
692
+ execute_or_queue_command(command, &block)
693
+ end
694
+
695
+ protected
696
+
697
+ def apply_command_defaults(command)
698
+ command.query['key'] = key unless key.nil?
699
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
700
+ end
701
+ end
702
+ end
703
+ end
704
+ end