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 |
| 120 * response. |
| 121 * |
113 * [serviceFilter_version] - [Optional] The exact value to match against | 122 * [serviceFilter_version] - [Optional] The exact value to match against |
114 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). | 123 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). |
115 * | 124 * |
116 * [serviceFilter_resourceType] - [Optional] The exact value to match against | 125 * [serviceFilter_resourceType] - [Optional] The exact value to match against |
117 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). | 126 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). |
118 * | 127 * |
119 * [timeRange_period] - Restricts the query to the specified time range. | 128 * [timeRange_period] - Restricts the query to the specified time range. |
120 * Possible string values are: | 129 * Possible string values are: |
121 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. | 130 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. |
122 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. | 131 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. |
123 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. | 132 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. |
124 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. | 133 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. |
125 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. | 134 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. |
126 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. | 135 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. |
127 * | 136 * |
128 * [groupId] - [Required] The group for which events shall be returned. | 137 * [groupId] - [Required] The group for which events shall be returned. |
129 * | 138 * |
130 * [pageToken] - [Optional] A `next_page_token` provided by a previous | |
131 * response. | |
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 * [pageSize] - [Optional] The maximum number of results to return per | |
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 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}) { | 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}) { |
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) { |
| 165 _queryParams["pageSize"] = ["${pageSize}"]; |
| 166 } |
158 if (serviceFilter_version != null) { | 167 if (serviceFilter_version != null) { |
159 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | 168 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
160 } | 169 } |
161 if (serviceFilter_resourceType != null) { | 170 if (serviceFilter_resourceType != null) { |
162 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | 171 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
163 } | 172 } |
164 if (timeRange_period != null) { | 173 if (timeRange_period != null) { |
165 _queryParams["timeRange.period"] = [timeRange_period]; | 174 _queryParams["timeRange.period"] = [timeRange_period]; |
166 } | 175 } |
167 if (groupId != null) { | 176 if (groupId != null) { |
168 _queryParams["groupId"] = [groupId]; | 177 _queryParams["groupId"] = [groupId]; |
169 } | 178 } |
170 if (pageToken != null) { | |
171 _queryParams["pageToken"] = [pageToken]; | |
172 } | |
173 if (serviceFilter_service != null) { | |
174 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | |
175 } | |
176 if (pageSize != null) { | |
177 _queryParams["pageSize"] = ["${pageSize}"]; | |
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 * [serviceFilter_resourceType] - [Optional] The exact value to match against |
| 274 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). |
| 275 * |
| 276 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned |
| 277 * if rounded |
| 278 * alignment is chosen. Default is 00:00 UTC. |
| 279 * |
| 280 * [timedCountDuration] - [Optional] The preferred duration for a single |
| 281 * returned `TimedCount`. |
| 282 * If not set, no timed counts are returned. |
| 283 * |
| 284 * [pageToken] - [Optional] A `next_page_token` provided by a previous |
| 285 * response. To view |
| 286 * additional results, pass this token along with the identical query |
| 287 * parameters as the first request. |
| 288 * |
273 * [timeRange_period] - Restricts the query to the specified time range. | 289 * [timeRange_period] - Restricts the query to the specified time range. |
274 * Possible string values are: | 290 * Possible string values are: |
275 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. | 291 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. |
276 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. | 292 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. |
277 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. | 293 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. |
278 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. | 294 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. |
279 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. | 295 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. |
280 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. | 296 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. |
281 * | 297 * |
282 * [alignment] - [Optional] The alignment of the timed counts to be returned. | 298 * [alignment] - [Optional] The alignment of the timed counts to be returned. |
(...skipping 19 matching lines...) Expand all Loading... |
302 * | 318 * |
303 * [order] - [Optional] The sort order in which the results are returned. | 319 * [order] - [Optional] The sort order in which the results are returned. |
304 * Default is `COUNT_DESC`. | 320 * Default is `COUNT_DESC`. |
305 * Possible string values are: | 321 * Possible string values are: |
306 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. | 322 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. |
307 * - "COUNT_DESC" : A COUNT_DESC. | 323 * - "COUNT_DESC" : A COUNT_DESC. |
308 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. | 324 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. |
309 * - "CREATED_DESC" : A CREATED_DESC. | 325 * - "CREATED_DESC" : A CREATED_DESC. |
310 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. | 326 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. |
311 * | 327 * |
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 * | |
315 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned | |
316 * if rounded | |
317 * alignment is chosen. Default is 00:00 UTC. | |
318 * | |
319 * [timedCountDuration] - [Optional] The preferred duration for a single | |
320 * returned `TimedCount`. | |
321 * If not set, no timed counts are returned. | |
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 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}) { | 336 async.Future<ListGroupStatsResponse> list(core.String projectName, {core.Strin
g serviceFilter_resourceType, core.String alignmentTime, core.String timedCountD
uration, core.String pageToken, core.String timeRange_period, core.String alignm
ent, core.List<core.String> groupId, core.String serviceFilter_service, core.int
pageSize, core.String serviceFilter_version, core.String order}) { |
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 (serviceFilter_resourceType != null) { |
| 348 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
| 349 } |
| 350 if (alignmentTime != null) { |
| 351 _queryParams["alignmentTime"] = [alignmentTime]; |
| 352 } |
| 353 if (timedCountDuration != null) { |
| 354 _queryParams["timedCountDuration"] = [timedCountDuration]; |
| 355 } |
| 356 if (pageToken != null) { |
| 357 _queryParams["pageToken"] = [pageToken]; |
| 358 } |
347 if (timeRange_period != null) { | 359 if (timeRange_period != null) { |
348 _queryParams["timeRange.period"] = [timeRange_period]; | 360 _queryParams["timeRange.period"] = [timeRange_period]; |
349 } | 361 } |
350 if (alignment != null) { | 362 if (alignment != null) { |
351 _queryParams["alignment"] = [alignment]; | 363 _queryParams["alignment"] = [alignment]; |
352 } | 364 } |
353 if (groupId != null) { | 365 if (groupId != null) { |
354 _queryParams["groupId"] = groupId; | 366 _queryParams["groupId"] = groupId; |
355 } | 367 } |
356 if (serviceFilter_service != null) { | 368 if (serviceFilter_service != null) { |
357 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | 369 _queryParams["serviceFilter.service"] = [serviceFilter_service]; |
358 } | 370 } |
359 if (pageSize != null) { | 371 if (pageSize != null) { |
360 _queryParams["pageSize"] = ["${pageSize}"]; | 372 _queryParams["pageSize"] = ["${pageSize}"]; |
361 } | 373 } |
362 if (serviceFilter_version != null) { | 374 if (serviceFilter_version != null) { |
363 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | 375 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
364 } | 376 } |
365 if (order != null) { | 377 if (order != null) { |
366 _queryParams["order"] = [order]; | 378 _queryParams["order"] = [order]; |
367 } | 379 } |
368 if (serviceFilter_resourceType != null) { | |
369 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | |
370 } | |
371 if (alignmentTime != null) { | |
372 _queryParams["alignmentTime"] = [alignmentTime]; | |
373 } | |
374 if (timedCountDuration != null) { | |
375 _queryParams["timedCountDuration"] = [timedCountDuration]; | |
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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 * to have a low number of values that are relatively stable over time, as | 1074 * to have a low number of values that are relatively stable over time, as |
1075 * opposed to `version`, which can be changed whenever new code is deployed. | 1075 * opposed to `version`, which can be changed whenever new code is deployed. |
1076 * | 1076 * |
1077 * Contains the service name for error reports extracted from Google | 1077 * Contains the service name for error reports extracted from Google |
1078 * App Engine logs or `default` if the App Engine default service is used. | 1078 * App Engine logs or `default` if the App Engine default service is used. |
1079 */ | 1079 */ |
1080 core.String service; | 1080 core.String service; |
1081 /** | 1081 /** |
1082 * Represents the source code version that the developer provided, | 1082 * Represents the source code version that the developer provided, |
1083 * which could represent a version label or a Git SHA-1 hash, for example. | 1083 * which could represent a version label or a Git SHA-1 hash, for example. |
| 1084 * For App Engine standard environment, the version is set to the version of |
| 1085 * the app. |
1084 */ | 1086 */ |
1085 core.String version; | 1087 core.String version; |
1086 | 1088 |
1087 ServiceContext(); | 1089 ServiceContext(); |
1088 | 1090 |
1089 ServiceContext.fromJson(core.Map _json) { | 1091 ServiceContext.fromJson(core.Map _json) { |
1090 if (_json.containsKey("resourceType")) { | 1092 if (_json.containsKey("resourceType")) { |
1091 resourceType = _json["resourceType"]; | 1093 resourceType = _json["resourceType"]; |
1092 } | 1094 } |
1093 if (_json.containsKey("service")) { | 1095 if (_json.containsKey("service")) { |
(...skipping 13 matching lines...) Expand all Loading... |
1107 _json["service"] = service; | 1109 _json["service"] = service; |
1108 } | 1110 } |
1109 if (version != null) { | 1111 if (version != null) { |
1110 _json["version"] = version; | 1112 _json["version"] = version; |
1111 } | 1113 } |
1112 return _json; | 1114 return _json; |
1113 } | 1115 } |
1114 } | 1116 } |
1115 | 1117 |
1116 /** | 1118 /** |
1117 * Indicates a location in the source code of the service for which | 1119 * Indicates a location in the source code of the service for which errors are |
1118 * errors are reported. | 1120 * reported. `functionName` must be provided by the application when reporting |
1119 * This data should be provided by the application when reporting an error, | 1121 * an error, unless the error report contains a `message` with a supported |
1120 * unless the error report has been generated automatically from Google App | 1122 * exception stack trace. All fields are optional for the later case. |
1121 * Engine logs. All fields are optional. | |
1122 */ | 1123 */ |
1123 class SourceLocation { | 1124 class SourceLocation { |
1124 /** | 1125 /** |
1125 * The source code filename, which can include a truncated relative | 1126 * The source code filename, which can include a truncated relative |
1126 * path, or a full path from a production machine. | 1127 * path, or a full path from a production machine. |
1127 */ | 1128 */ |
1128 core.String filePath; | 1129 core.String filePath; |
1129 /** | 1130 /** |
1130 * Human-readable name of a function or method. | 1131 * Human-readable name of a function or method. |
1131 * The value can include optional context like the class or package name. | 1132 * The value can include optional context like the class or package name. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1223 } | 1224 } |
1224 | 1225 |
1225 core.Map toJson() { | 1226 core.Map toJson() { |
1226 var _json = new core.Map(); | 1227 var _json = new core.Map(); |
1227 if (url != null) { | 1228 if (url != null) { |
1228 _json["url"] = url; | 1229 _json["url"] = url; |
1229 } | 1230 } |
1230 return _json; | 1231 return _json; |
1231 } | 1232 } |
1232 } | 1233 } |
OLD | NEW |