OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis_beta.clouderrorreporting.v1beta1; | 3 library googleapis_beta.clouderrorreporting.v1beta1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 * Request parameters: | 103 * Request parameters: |
104 * | 104 * |
105 * [projectName] - [Required] The resource name of the Google Cloud Platform | 105 * [projectName] - [Required] The resource name of the Google Cloud Platform |
106 * project. Written | 106 * project. Written |
107 * as `projects/` plus the | 107 * as `projects/` plus the |
108 * [Google Cloud Platform project | 108 * [Google Cloud Platform project |
109 * ID](https://support.google.com/cloud/answer/6158840). | 109 * ID](https://support.google.com/cloud/answer/6158840). |
110 * Example: `projects/my-project-123`. | 110 * Example: `projects/my-project-123`. |
111 * Value must have pattern "^projects/[^/]+$". | 111 * Value must have pattern "^projects/[^/]+$". |
112 * | 112 * |
113 * [pageToken] - [Optional] A `next_page_token` provided by a previous | |
114 * response. | |
115 * | |
116 * [serviceFilter_service] - [Optional] The exact value to match against | |
117 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). | |
118 * | |
119 * [pageSize] - [Optional] The maximum number of results to return per | 113 * [pageSize] - [Optional] The maximum number of results to return per |
120 * response. | 114 * response. |
121 * | 115 * |
122 * [serviceFilter_version] - [Optional] The exact value to match against | 116 * [serviceFilter_version] - [Optional] The exact value to match against |
123 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). | 117 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). |
124 * | 118 * |
125 * [serviceFilter_resourceType] - [Optional] The exact value to match against | 119 * [serviceFilter_resourceType] - [Optional] The exact value to match against |
126 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). | 120 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). |
127 * | 121 * |
128 * [timeRange_period] - Restricts the query to the specified time range. | 122 * [timeRange_period] - Restricts the query to the specified time range. |
129 * Possible string values are: | 123 * Possible string values are: |
130 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. | 124 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. |
131 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. | 125 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. |
132 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. | 126 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. |
133 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. | 127 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. |
134 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. | 128 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. |
135 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. | 129 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. |
136 * | 130 * |
137 * [groupId] - [Required] The group for which events shall be returned. | 131 * [groupId] - [Required] The group for which events shall be returned. |
138 * | 132 * |
| 133 * [serviceFilter_service] - [Optional] The exact value to match against |
| 134 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). |
| 135 * |
| 136 * [pageToken] - [Optional] A `next_page_token` provided by a previous |
| 137 * response. |
| 138 * |
139 * Completes with a [ListEventsResponse]. | 139 * Completes with a [ListEventsResponse]. |
140 * | 140 * |
141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
142 * error. | 142 * error. |
143 * | 143 * |
144 * If the used [http.Client] completes with an error when making a REST call, | 144 * If the used [http.Client] completes with an error when making a REST call, |
145 * this method will complete with the same error. | 145 * this method will complete with the same error. |
146 */ | 146 */ |
147 async.Future<ListEventsResponse> list(core.String projectName, {core.String pa
geToken, core.String serviceFilter_service, core.int pageSize, core.String servi
ceFilter_version, core.String serviceFilter_resourceType, core.String timeRange_
period, core.String groupId}) { | 147 async.Future<ListEventsResponse> list(core.String projectName, {core.int pageS
ize, core.String serviceFilter_version, core.String serviceFilter_resourceType,
core.String timeRange_period, core.String groupId, core.String serviceFilter_ser
vice, core.String pageToken}) { |
148 var _url = null; | 148 var _url = null; |
149 var _queryParams = new core.Map(); | 149 var _queryParams = new core.Map(); |
150 var _uploadMedia = null; | 150 var _uploadMedia = null; |
151 var _uploadOptions = null; | 151 var _uploadOptions = null; |
152 var _downloadOptions = commons.DownloadOptions.Metadata; | 152 var _downloadOptions = commons.DownloadOptions.Metadata; |
153 var _body = null; | 153 var _body = null; |
154 | 154 |
155 if (projectName == null) { | 155 if (projectName == null) { |
156 throw new core.ArgumentError("Parameter projectName is required."); | 156 throw new core.ArgumentError("Parameter projectName is required."); |
157 } | 157 } |
158 if (pageToken != null) { | |
159 _queryParams["pageToken"] = [pageToken]; | |
160 } | |
161 if (serviceFilter_service != null) { | |
162 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | |
163 } | |
164 if (pageSize != null) { | 158 if (pageSize != null) { |
165 _queryParams["pageSize"] = ["${pageSize}"]; | 159 _queryParams["pageSize"] = ["${pageSize}"]; |
166 } | 160 } |
167 if (serviceFilter_version != null) { | 161 if (serviceFilter_version != null) { |
168 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | 162 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
169 } | 163 } |
170 if (serviceFilter_resourceType != null) { | 164 if (serviceFilter_resourceType != null) { |
171 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | 165 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
172 } | 166 } |
173 if (timeRange_period != null) { | 167 if (timeRange_period != null) { |
174 _queryParams["timeRange.period"] = [timeRange_period]; | 168 _queryParams["timeRange.period"] = [timeRange_period]; |
175 } | 169 } |
176 if (groupId != null) { | 170 if (groupId != null) { |
177 _queryParams["groupId"] = [groupId]; | 171 _queryParams["groupId"] = [groupId]; |
178 } | 172 } |
| 173 if (serviceFilter_service != null) { |
| 174 _queryParams["serviceFilter.service"] = [serviceFilter_service]; |
| 175 } |
| 176 if (pageToken != null) { |
| 177 _queryParams["pageToken"] = [pageToken]; |
| 178 } |
179 | 179 |
180 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/events'; | 180 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/events'; |
181 | 181 |
182 var _response = _requester.request(_url, | 182 var _response = _requester.request(_url, |
183 "GET", | 183 "GET", |
184 body: _body, | 184 body: _body, |
185 queryParams: _queryParams, | 185 queryParams: _queryParams, |
186 uploadOptions: _uploadOptions, | 186 uploadOptions: _uploadOptions, |
187 uploadMedia: _uploadMedia, | 187 uploadMedia: _uploadMedia, |
188 downloadOptions: _downloadOptions); | 188 downloadOptions: _downloadOptions); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 * | 263 * |
264 * [projectName] - [Required] The resource name of the Google Cloud Platform | 264 * [projectName] - [Required] The resource name of the Google Cloud Platform |
265 * project. Written | 265 * project. Written |
266 * as <code>projects/</code> plus the | 266 * as <code>projects/</code> plus the |
267 * <a href="https://support.google.com/cloud/answer/6158840">Google Cloud | 267 * <a href="https://support.google.com/cloud/answer/6158840">Google Cloud |
268 * Platform project ID</a>. | 268 * Platform project ID</a>. |
269 * | 269 * |
270 * Example: <code>projects/my-project-123</code>. | 270 * Example: <code>projects/my-project-123</code>. |
271 * Value must have pattern "^projects/[^/]+$". | 271 * Value must have pattern "^projects/[^/]+$". |
272 * | 272 * |
| 273 * [timeRange_period] - Restricts the query to the specified time range. |
| 274 * Possible string values are: |
| 275 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. |
| 276 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. |
| 277 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. |
| 278 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. |
| 279 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. |
| 280 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. |
| 281 * |
| 282 * [alignment] - [Optional] The alignment of the timed counts to be returned. |
| 283 * Default is `ALIGNMENT_EQUAL_AT_END`. |
| 284 * Possible string values are: |
| 285 * - "ERROR_COUNT_ALIGNMENT_UNSPECIFIED" : A |
| 286 * ERROR_COUNT_ALIGNMENT_UNSPECIFIED. |
| 287 * - "ALIGNMENT_EQUAL_ROUNDED" : A ALIGNMENT_EQUAL_ROUNDED. |
| 288 * - "ALIGNMENT_EQUAL_AT_END" : A ALIGNMENT_EQUAL_AT_END. |
| 289 * |
| 290 * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these |
| 291 * IDs. |
| 292 * |
273 * [serviceFilter_service] - [Optional] The exact value to match against | 293 * [serviceFilter_service] - [Optional] The exact value to match against |
274 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). | 294 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). |
275 * | 295 * |
276 * [pageSize] - [Optional] The maximum number of results to return per | 296 * [pageSize] - [Optional] The maximum number of results to return per |
277 * response. | 297 * response. |
278 * Default is 20. | 298 * Default is 20. |
279 * | 299 * |
| 300 * [serviceFilter_version] - [Optional] The exact value to match against |
| 301 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). |
| 302 * |
280 * [order] - [Optional] The sort order in which the results are returned. | 303 * [order] - [Optional] The sort order in which the results are returned. |
281 * Default is `COUNT_DESC`. | 304 * Default is `COUNT_DESC`. |
282 * Possible string values are: | 305 * Possible string values are: |
283 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. | 306 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. |
284 * - "COUNT_DESC" : A COUNT_DESC. | 307 * - "COUNT_DESC" : A COUNT_DESC. |
285 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. | 308 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. |
286 * - "CREATED_DESC" : A CREATED_DESC. | 309 * - "CREATED_DESC" : A CREATED_DESC. |
287 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. | 310 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. |
288 * | 311 * |
289 * [serviceFilter_version] - [Optional] The exact value to match against | |
290 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). | |
291 * | |
292 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned | 312 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned |
293 * if rounded | 313 * if rounded |
294 * alignment is chosen. Default is 00:00 UTC. | 314 * alignment is chosen. Default is 00:00 UTC. |
295 * | 315 * |
296 * [serviceFilter_resourceType] - [Optional] The exact value to match against | 316 * [serviceFilter_resourceType] - [Optional] The exact value to match against |
297 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). | 317 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). |
298 * | 318 * |
299 * [timedCountDuration] - [Optional] The preferred duration for a single | 319 * [timedCountDuration] - [Optional] The preferred duration for a single |
300 * returned `TimedCount`. | 320 * returned `TimedCount`. |
301 * If not set, no timed counts are returned. | 321 * If not set, no timed counts are returned. |
302 * | 322 * |
303 * [pageToken] - [Optional] A `next_page_token` provided by a previous | 323 * [pageToken] - [Optional] A `next_page_token` provided by a previous |
304 * response. To view | 324 * response. To view |
305 * additional results, pass this token along with the identical query | 325 * additional results, pass this token along with the identical query |
306 * parameters as the first request. | 326 * parameters as the first request. |
307 * | 327 * |
308 * [timeRange_period] - Restricts the query to the specified time range. | |
309 * Possible string values are: | |
310 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. | |
311 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. | |
312 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. | |
313 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. | |
314 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. | |
315 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. | |
316 * | |
317 * [alignment] - [Optional] The alignment of the timed counts to be returned. | |
318 * Default is `ALIGNMENT_EQUAL_AT_END`. | |
319 * Possible string values are: | |
320 * - "ERROR_COUNT_ALIGNMENT_UNSPECIFIED" : A | |
321 * ERROR_COUNT_ALIGNMENT_UNSPECIFIED. | |
322 * - "ALIGNMENT_EQUAL_ROUNDED" : A ALIGNMENT_EQUAL_ROUNDED. | |
323 * - "ALIGNMENT_EQUAL_AT_END" : A ALIGNMENT_EQUAL_AT_END. | |
324 * | |
325 * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these | |
326 * IDs. | |
327 * | |
328 * Completes with a [ListGroupStatsResponse]. | 328 * Completes with a [ListGroupStatsResponse]. |
329 * | 329 * |
330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
331 * error. | 331 * error. |
332 * | 332 * |
333 * If the used [http.Client] completes with an error when making a REST call, | 333 * If the used [http.Client] completes with an error when making a REST call, |
334 * this method will complete with the same error. | 334 * this method will complete with the same error. |
335 */ | 335 */ |
336 async.Future<ListGroupStatsResponse> list(core.String projectName, {core.Strin
g serviceFilter_service, core.int pageSize, core.String order, core.String servi
ceFilter_version, core.String alignmentTime, core.String serviceFilter_resourceT
ype, core.String timedCountDuration, core.String pageToken, core.String timeRang
e_period, core.String alignment, core.List<core.String> groupId}) { | 336 async.Future<ListGroupStatsResponse> list(core.String projectName, {core.Strin
g timeRange_period, core.String alignment, core.List<core.String> groupId, core.
String serviceFilter_service, core.int pageSize, core.String serviceFilter_versi
on, core.String order, core.String alignmentTime, core.String serviceFilter_reso
urceType, core.String timedCountDuration, core.String pageToken}) { |
337 var _url = null; | 337 var _url = null; |
338 var _queryParams = new core.Map(); | 338 var _queryParams = new core.Map(); |
339 var _uploadMedia = null; | 339 var _uploadMedia = null; |
340 var _uploadOptions = null; | 340 var _uploadOptions = null; |
341 var _downloadOptions = commons.DownloadOptions.Metadata; | 341 var _downloadOptions = commons.DownloadOptions.Metadata; |
342 var _body = null; | 342 var _body = null; |
343 | 343 |
344 if (projectName == null) { | 344 if (projectName == null) { |
345 throw new core.ArgumentError("Parameter projectName is required."); | 345 throw new core.ArgumentError("Parameter projectName is required."); |
346 } | 346 } |
| 347 if (timeRange_period != null) { |
| 348 _queryParams["timeRange.period"] = [timeRange_period]; |
| 349 } |
| 350 if (alignment != null) { |
| 351 _queryParams["alignment"] = [alignment]; |
| 352 } |
| 353 if (groupId != null) { |
| 354 _queryParams["groupId"] = groupId; |
| 355 } |
347 if (serviceFilter_service != null) { | 356 if (serviceFilter_service != null) { |
348 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | 357 _queryParams["serviceFilter.service"] = [serviceFilter_service]; |
349 } | 358 } |
350 if (pageSize != null) { | 359 if (pageSize != null) { |
351 _queryParams["pageSize"] = ["${pageSize}"]; | 360 _queryParams["pageSize"] = ["${pageSize}"]; |
352 } | 361 } |
| 362 if (serviceFilter_version != null) { |
| 363 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
| 364 } |
353 if (order != null) { | 365 if (order != null) { |
354 _queryParams["order"] = [order]; | 366 _queryParams["order"] = [order]; |
355 } | 367 } |
356 if (serviceFilter_version != null) { | |
357 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | |
358 } | |
359 if (alignmentTime != null) { | 368 if (alignmentTime != null) { |
360 _queryParams["alignmentTime"] = [alignmentTime]; | 369 _queryParams["alignmentTime"] = [alignmentTime]; |
361 } | 370 } |
362 if (serviceFilter_resourceType != null) { | 371 if (serviceFilter_resourceType != null) { |
363 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | 372 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
364 } | 373 } |
365 if (timedCountDuration != null) { | 374 if (timedCountDuration != null) { |
366 _queryParams["timedCountDuration"] = [timedCountDuration]; | 375 _queryParams["timedCountDuration"] = [timedCountDuration]; |
367 } | 376 } |
368 if (pageToken != null) { | 377 if (pageToken != null) { |
369 _queryParams["pageToken"] = [pageToken]; | 378 _queryParams["pageToken"] = [pageToken]; |
370 } | 379 } |
371 if (timeRange_period != null) { | |
372 _queryParams["timeRange.period"] = [timeRange_period]; | |
373 } | |
374 if (alignment != null) { | |
375 _queryParams["alignment"] = [alignment]; | |
376 } | |
377 if (groupId != null) { | |
378 _queryParams["groupId"] = groupId; | |
379 } | |
380 | 380 |
381 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/groupStats'; | 381 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/groupStats'; |
382 | 382 |
383 var _response = _requester.request(_url, | 383 var _response = _requester.request(_url, |
384 "GET", | 384 "GET", |
385 body: _body, | 385 body: _body, |
386 queryParams: _queryParams, | 386 queryParams: _queryParams, |
387 uploadOptions: _uploadOptions, | 387 uploadOptions: _uploadOptions, |
388 uploadMedia: _uploadMedia, | 388 uploadMedia: _uploadMedia, |
389 downloadOptions: _downloadOptions); | 389 downloadOptions: _downloadOptions); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 /** | 521 /** |
522 * The HTTP request which was processed when the error was | 522 * The HTTP request which was processed when the error was |
523 * triggered. | 523 * triggered. |
524 */ | 524 */ |
525 HttpRequestContext httpRequest; | 525 HttpRequestContext httpRequest; |
526 /** | 526 /** |
527 * The location in the source code where the decision was made to | 527 * The location in the source code where the decision was made to |
528 * report the error, usually the place where it was logged. | 528 * report the error, usually the place where it was logged. |
529 * For a logged exception this would be the source line where the | 529 * For a logged exception this would be the source line where the |
530 * exception is logged, usually close to the place where it was | 530 * exception is logged, usually close to the place where it was |
531 * caught. This value is in contrast to `Exception.cause_location`, | 531 * caught. |
532 * which describes the source line where the exception was thrown. | |
533 */ | 532 */ |
534 SourceLocation reportLocation; | 533 SourceLocation reportLocation; |
535 /** | 534 /** |
536 * Source code that was used to build the executable which has | 535 * Source code that was used to build the executable which has |
537 * caused the given error message. | 536 * caused the given error message. |
538 */ | 537 */ |
539 core.List<SourceReference> sourceReferences; | 538 core.List<SourceReference> sourceReferences; |
540 /** | 539 /** |
541 * The user who caused or was affected by the crash. | 540 * The user who caused or was affected by the crash. |
542 * This can be a user ID, an email address, or an arbitrary token that | 541 * This can be a user ID, an email address, or an arbitrary token that |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1274 } | 1273 } |
1275 | 1274 |
1276 core.Map<core.String, core.Object> toJson() { | 1275 core.Map<core.String, core.Object> toJson() { |
1277 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1276 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1278 if (url != null) { | 1277 if (url != null) { |
1279 _json["url"] = url; | 1278 _json["url"] = url; |
1280 } | 1279 } |
1281 return _json; | 1280 return _json; |
1282 } | 1281 } |
1283 } | 1282 } |
OLD | NEW |