| 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 * [serviceFilter_version] - [Optional] The exact value to match against |
| 114 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). |
| 115 * |
| 113 * [serviceFilter_resourceType] - [Optional] The exact value to match against | 116 * [serviceFilter_resourceType] - [Optional] The exact value to match against |
| 114 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). | 117 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). |
| 115 * | 118 * |
| 116 * [timeRange_period] - Restricts the query to the specified time range. | 119 * [timeRange_period] - Restricts the query to the specified time range. |
| 117 * Possible string values are: | 120 * Possible string values are: |
| 118 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. | 121 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. |
| 119 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. | 122 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. |
| 120 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. | 123 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. |
| 121 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. | 124 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. |
| 122 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. | 125 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. |
| 123 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. | 126 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. |
| 124 * | 127 * |
| 125 * [groupId] - [Required] The group for which events shall be returned. | 128 * [groupId] - [Required] The group for which events shall be returned. |
| 126 * | 129 * |
| 130 * [pageToken] - [Optional] A `next_page_token` provided by a previous |
| 131 * response. |
| 132 * |
| 127 * [serviceFilter_service] - [Optional] The exact value to match against | 133 * [serviceFilter_service] - [Optional] The exact value to match against |
| 128 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). | 134 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). |
| 129 * | 135 * |
| 130 * [pageToken] - [Optional] A `next_page_token` provided by a previous | |
| 131 * response. | |
| 132 * | |
| 133 * [pageSize] - [Optional] The maximum number of results to return per | 136 * [pageSize] - [Optional] The maximum number of results to return per |
| 134 * response. | 137 * response. |
| 135 * | 138 * |
| 136 * [serviceFilter_version] - [Optional] The exact value to match against | |
| 137 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). | |
| 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 se
rviceFilter_resourceType, core.String timeRange_period, core.String groupId, cor
e.String serviceFilter_service, core.String pageToken, core.int pageSize, core.S
tring serviceFilter_version}) { | 147 async.Future<ListEventsResponse> list(core.String projectName, {core.String se
rviceFilter_version, core.String serviceFilter_resourceType, core.String timeRan
ge_period, core.String groupId, core.String pageToken, core.String serviceFilter
_service, core.int pageSize}) { |
| 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 (serviceFilter_version != null) { |
| 159 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
| 160 } |
| 158 if (serviceFilter_resourceType != null) { | 161 if (serviceFilter_resourceType != null) { |
| 159 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | 162 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
| 160 } | 163 } |
| 161 if (timeRange_period != null) { | 164 if (timeRange_period != null) { |
| 162 _queryParams["timeRange.period"] = [timeRange_period]; | 165 _queryParams["timeRange.period"] = [timeRange_period]; |
| 163 } | 166 } |
| 164 if (groupId != null) { | 167 if (groupId != null) { |
| 165 _queryParams["groupId"] = [groupId]; | 168 _queryParams["groupId"] = [groupId]; |
| 166 } | 169 } |
| 170 if (pageToken != null) { |
| 171 _queryParams["pageToken"] = [pageToken]; |
| 172 } |
| 167 if (serviceFilter_service != null) { | 173 if (serviceFilter_service != null) { |
| 168 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | 174 _queryParams["serviceFilter.service"] = [serviceFilter_service]; |
| 169 } | 175 } |
| 170 if (pageToken != null) { | |
| 171 _queryParams["pageToken"] = [pageToken]; | |
| 172 } | |
| 173 if (pageSize != null) { | 176 if (pageSize != null) { |
| 174 _queryParams["pageSize"] = ["${pageSize}"]; | 177 _queryParams["pageSize"] = ["${pageSize}"]; |
| 175 } | 178 } |
| 176 if (serviceFilter_version != null) { | |
| 177 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | |
| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these | 290 * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these |
| 291 * IDs. | 291 * IDs. |
| 292 * | 292 * |
| 293 * [serviceFilter_service] - [Optional] The exact value to match against | 293 * [serviceFilter_service] - [Optional] The exact value to match against |
| 294 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). | 294 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). |
| 295 * | 295 * |
| 296 * [pageSize] - [Optional] The maximum number of results to return per | 296 * [pageSize] - [Optional] The maximum number of results to return per |
| 297 * response. | 297 * response. |
| 298 * Default is 20. | 298 * Default is 20. |
| 299 * | 299 * |
| 300 * [serviceFilter_version] - [Optional] The exact value to match against |
| 301 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). |
| 302 * |
| 300 * [order] - [Optional] The sort order in which the results are returned. | 303 * [order] - [Optional] The sort order in which the results are returned. |
| 301 * Default is `COUNT_DESC`. | 304 * Default is `COUNT_DESC`. |
| 302 * Possible string values are: | 305 * Possible string values are: |
| 303 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. | 306 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. |
| 304 * - "COUNT_DESC" : A COUNT_DESC. | 307 * - "COUNT_DESC" : A COUNT_DESC. |
| 305 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. | 308 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. |
| 306 * - "CREATED_DESC" : A CREATED_DESC. | 309 * - "CREATED_DESC" : A CREATED_DESC. |
| 307 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. | 310 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. |
| 308 * | 311 * |
| 309 * [serviceFilter_version] - [Optional] The exact value to match against | |
| 310 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). | |
| 311 * | |
| 312 * [serviceFilter_resourceType] - [Optional] The exact value to match against | 312 * [serviceFilter_resourceType] - [Optional] The exact value to match against |
| 313 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). | 313 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). |
| 314 * | 314 * |
| 315 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned | 315 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned |
| 316 * if rounded | 316 * if rounded |
| 317 * alignment is chosen. Default is 00:00 UTC. | 317 * alignment is chosen. Default is 00:00 UTC. |
| 318 * | 318 * |
| 319 * [timedCountDuration] - [Optional] The preferred duration for a single | 319 * [timedCountDuration] - [Optional] The preferred duration for a single |
| 320 * returned `TimedCount`. | 320 * returned `TimedCount`. |
| 321 * If not set, no timed counts are returned. | 321 * If not set, no timed counts are returned. |
| 322 * | 322 * |
| 323 * [pageToken] - [Optional] A `next_page_token` provided by a previous | 323 * [pageToken] - [Optional] A `next_page_token` provided by a previous |
| 324 * response. To view | 324 * response. To view |
| 325 * additional results, pass this token along with the identical query | 325 * additional results, pass this token along with the identical query |
| 326 * parameters as the first request. | 326 * parameters as the first request. |
| 327 * | 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 timeRange_period, core.String alignment, core.List<core.String> groupId, core.
String serviceFilter_service, core.int pageSize, core.String order, core.String
serviceFilter_version, core.String serviceFilter_resourceType, core.String align
mentTime, core.String timedCountDuration, core.String pageToken}) { | 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 serviceFilter_resourceType, core.String align
mentTime, 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) { | 347 if (timeRange_period != null) { |
| 348 _queryParams["timeRange.period"] = [timeRange_period]; | 348 _queryParams["timeRange.period"] = [timeRange_period]; |
| 349 } | 349 } |
| 350 if (alignment != null) { | 350 if (alignment != null) { |
| 351 _queryParams["alignment"] = [alignment]; | 351 _queryParams["alignment"] = [alignment]; |
| 352 } | 352 } |
| 353 if (groupId != null) { | 353 if (groupId != null) { |
| 354 _queryParams["groupId"] = groupId; | 354 _queryParams["groupId"] = groupId; |
| 355 } | 355 } |
| 356 if (serviceFilter_service != null) { | 356 if (serviceFilter_service != null) { |
| 357 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | 357 _queryParams["serviceFilter.service"] = [serviceFilter_service]; |
| 358 } | 358 } |
| 359 if (pageSize != null) { | 359 if (pageSize != null) { |
| 360 _queryParams["pageSize"] = ["${pageSize}"]; | 360 _queryParams["pageSize"] = ["${pageSize}"]; |
| 361 } | 361 } |
| 362 if (serviceFilter_version != null) { |
| 363 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
| 364 } |
| 362 if (order != null) { | 365 if (order != null) { |
| 363 _queryParams["order"] = [order]; | 366 _queryParams["order"] = [order]; |
| 364 } | 367 } |
| 365 if (serviceFilter_version != null) { | |
| 366 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | |
| 367 } | |
| 368 if (serviceFilter_resourceType != null) { | 368 if (serviceFilter_resourceType != null) { |
| 369 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | 369 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
| 370 } | 370 } |
| 371 if (alignmentTime != null) { | 371 if (alignmentTime != null) { |
| 372 _queryParams["alignmentTime"] = [alignmentTime]; | 372 _queryParams["alignmentTime"] = [alignmentTime]; |
| 373 } | 373 } |
| 374 if (timedCountDuration != null) { | 374 if (timedCountDuration != null) { |
| 375 _queryParams["timedCountDuration"] = [timedCountDuration]; | 375 _queryParams["timedCountDuration"] = [timedCountDuration]; |
| 376 } | 376 } |
| 377 if (pageToken != null) { | 377 if (pageToken != null) { |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 } | 1223 } |
| 1224 | 1224 |
| 1225 core.Map toJson() { | 1225 core.Map toJson() { |
| 1226 var _json = new core.Map(); | 1226 var _json = new core.Map(); |
| 1227 if (url != null) { | 1227 if (url != null) { |
| 1228 _json["url"] = url; | 1228 _json["url"] = url; |
| 1229 } | 1229 } |
| 1230 return _json; | 1230 return _json; |
| 1231 } | 1231 } |
| 1232 } | 1232 } |
| OLD | NEW |