| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 * Possible string values are: | 117 * Possible string values are: |
| 118 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. | 118 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. |
| 119 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. | 119 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. |
| 120 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. | 120 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. |
| 121 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. | 121 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. |
| 122 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. | 122 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. |
| 123 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. | 123 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. |
| 124 * | 124 * |
| 125 * [groupId] - [Required] The group for which events shall be returned. | 125 * [groupId] - [Required] The group for which events shall be returned. |
| 126 * | 126 * |
| 127 * [serviceFilter_service] - [Optional] The exact value to match against |
| 128 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). |
| 129 * |
| 127 * [pageToken] - [Optional] A `next_page_token` provided by a previous | 130 * [pageToken] - [Optional] A `next_page_token` provided by a previous |
| 128 * response. | 131 * response. |
| 129 * | 132 * |
| 130 * [serviceFilter_service] - [Optional] The exact value to match against | |
| 131 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). | |
| 132 * | |
| 133 * [pageSize] - [Optional] The maximum number of results to return per | 133 * [pageSize] - [Optional] The maximum number of results to return per |
| 134 * response. | 134 * response. |
| 135 * | 135 * |
| 136 * [serviceFilter_version] - [Optional] The exact value to match against | 136 * [serviceFilter_version] - [Optional] The exact value to match against |
| 137 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). | 137 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). |
| 138 * | 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 pageToken, core.String serviceFilter_service, core.int pageSize, core.S
tring serviceFilter_version}) { | 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}) { |
| 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_resourceType != null) { | 158 if (serviceFilter_resourceType != null) { |
| 159 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | 159 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
| 160 } | 160 } |
| 161 if (timeRange_period != null) { | 161 if (timeRange_period != null) { |
| 162 _queryParams["timeRange.period"] = [timeRange_period]; | 162 _queryParams["timeRange.period"] = [timeRange_period]; |
| 163 } | 163 } |
| 164 if (groupId != null) { | 164 if (groupId != null) { |
| 165 _queryParams["groupId"] = [groupId]; | 165 _queryParams["groupId"] = [groupId]; |
| 166 } | 166 } |
| 167 if (serviceFilter_service != null) { |
| 168 _queryParams["serviceFilter.service"] = [serviceFilter_service]; |
| 169 } |
| 167 if (pageToken != null) { | 170 if (pageToken != null) { |
| 168 _queryParams["pageToken"] = [pageToken]; | 171 _queryParams["pageToken"] = [pageToken]; |
| 169 } | 172 } |
| 170 if (serviceFilter_service != null) { | |
| 171 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | |
| 172 } | |
| 173 if (pageSize != null) { | 173 if (pageSize != null) { |
| 174 _queryParams["pageSize"] = ["${pageSize}"]; | 174 _queryParams["pageSize"] = ["${pageSize}"]; |
| 175 } | 175 } |
| 176 if (serviceFilter_version != null) { | 176 if (serviceFilter_version != null) { |
| 177 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | 177 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
| 178 } | 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, |
| (...skipping 80 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 * [pageToken] - [Optional] A `next_page_token` provided by a previous | |
| 274 * response. To view | |
| 275 * additional results, pass this token along with the identical query | |
| 276 * parameters as the first request. | |
| 277 * | |
| 278 * [timeRange_period] - Restricts the query to the specified time range. | 273 * [timeRange_period] - Restricts the query to the specified time range. |
| 279 * Possible string values are: | 274 * Possible string values are: |
| 280 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. | 275 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. |
| 281 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. | 276 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. |
| 282 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. | 277 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. |
| 283 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. | 278 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. |
| 284 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. | 279 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. |
| 285 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. | 280 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. |
| 286 * | 281 * |
| 287 * [alignment] - [Optional] The alignment of the timed counts to be returned. | 282 * [alignment] - [Optional] The alignment of the timed counts to be returned. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 307 * Possible string values are: | 302 * Possible string values are: |
| 308 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. | 303 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. |
| 309 * - "COUNT_DESC" : A COUNT_DESC. | 304 * - "COUNT_DESC" : A COUNT_DESC. |
| 310 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. | 305 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. |
| 311 * - "CREATED_DESC" : A CREATED_DESC. | 306 * - "CREATED_DESC" : A CREATED_DESC. |
| 312 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. | 307 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. |
| 313 * | 308 * |
| 314 * [serviceFilter_version] - [Optional] The exact value to match against | 309 * [serviceFilter_version] - [Optional] The exact value to match against |
| 315 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). | 310 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). |
| 316 * | 311 * |
| 312 * [serviceFilter_resourceType] - [Optional] The exact value to match against |
| 313 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). |
| 314 * |
| 317 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned | 315 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned |
| 318 * if rounded | 316 * if rounded |
| 319 * alignment is chosen. Default is 00:00 UTC. | 317 * alignment is chosen. Default is 00:00 UTC. |
| 320 * | 318 * |
| 321 * [serviceFilter_resourceType] - [Optional] The exact value to match against | |
| 322 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). | |
| 323 * | |
| 324 * [timedCountDuration] - [Optional] The preferred duration for a single | 319 * [timedCountDuration] - [Optional] The preferred duration for a single |
| 325 * returned `TimedCount`. | 320 * returned `TimedCount`. |
| 326 * If not set, no timed counts are returned. | 321 * If not set, no timed counts are returned. |
| 327 * | 322 * |
| 323 * [pageToken] - [Optional] A `next_page_token` provided by a previous |
| 324 * response. To view |
| 325 * additional results, pass this token along with the identical query |
| 326 * parameters as the first request. |
| 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 pageToken, core.String timeRange_period, core.String alignment, core.List<core
.String> groupId, core.String serviceFilter_service, core.int pageSize, core.Str
ing order, core.String serviceFilter_version, core.String alignmentTime, core.St
ring serviceFilter_resourceType, core.String timedCountDuration}) { | 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}) { |
| 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 (pageToken != null) { | |
| 348 _queryParams["pageToken"] = [pageToken]; | |
| 349 } | |
| 350 if (timeRange_period != null) { | 347 if (timeRange_period != null) { |
| 351 _queryParams["timeRange.period"] = [timeRange_period]; | 348 _queryParams["timeRange.period"] = [timeRange_period]; |
| 352 } | 349 } |
| 353 if (alignment != null) { | 350 if (alignment != null) { |
| 354 _queryParams["alignment"] = [alignment]; | 351 _queryParams["alignment"] = [alignment]; |
| 355 } | 352 } |
| 356 if (groupId != null) { | 353 if (groupId != null) { |
| 357 _queryParams["groupId"] = groupId; | 354 _queryParams["groupId"] = groupId; |
| 358 } | 355 } |
| 359 if (serviceFilter_service != null) { | 356 if (serviceFilter_service != null) { |
| 360 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | 357 _queryParams["serviceFilter.service"] = [serviceFilter_service]; |
| 361 } | 358 } |
| 362 if (pageSize != null) { | 359 if (pageSize != null) { |
| 363 _queryParams["pageSize"] = ["${pageSize}"]; | 360 _queryParams["pageSize"] = ["${pageSize}"]; |
| 364 } | 361 } |
| 365 if (order != null) { | 362 if (order != null) { |
| 366 _queryParams["order"] = [order]; | 363 _queryParams["order"] = [order]; |
| 367 } | 364 } |
| 368 if (serviceFilter_version != null) { | 365 if (serviceFilter_version != null) { |
| 369 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | 366 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
| 370 } | 367 } |
| 368 if (serviceFilter_resourceType != null) { |
| 369 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
| 370 } |
| 371 if (alignmentTime != null) { | 371 if (alignmentTime != null) { |
| 372 _queryParams["alignmentTime"] = [alignmentTime]; | 372 _queryParams["alignmentTime"] = [alignmentTime]; |
| 373 } | 373 } |
| 374 if (serviceFilter_resourceType != null) { | |
| 375 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | |
| 376 } | |
| 377 if (timedCountDuration != null) { | 374 if (timedCountDuration != null) { |
| 378 _queryParams["timedCountDuration"] = [timedCountDuration]; | 375 _queryParams["timedCountDuration"] = [timedCountDuration]; |
| 379 } | 376 } |
| 377 if (pageToken != null) { |
| 378 _queryParams["pageToken"] = [pageToken]; |
| 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 833 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 |