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; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client clouderrorreporting/v1beta1'; | 15 const core.String USER_AGENT = 'dart-api-client clouderrorreporting/v1beta1'; |
16 | 16 |
17 /** | 17 /// Groups and counts similar errors from cloud services and applications, |
18 * Groups and counts similar errors from cloud services and applications, | 18 /// reports new errors, and provides access to error groups and their |
19 * reports new errors, and provides access to error groups and their associated | 19 /// associated errors. |
20 * errors. | |
21 */ | |
22 class ClouderrorreportingApi { | 20 class ClouderrorreportingApi { |
23 /** View and manage your data across Google Cloud Platform services */ | 21 /// View and manage your data across Google Cloud Platform services |
24 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 22 static const CloudPlatformScope = |
25 | 23 "https://www.googleapis.com/auth/cloud-platform"; |
26 | 24 |
27 final commons.ApiRequester _requester; | 25 final commons.ApiRequester _requester; |
28 | 26 |
29 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 27 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
30 | 28 |
31 ClouderrorreportingApi(http.Client client, {core.String rootUrl: "https://clou
derrorreporting.googleapis.com/", core.String servicePath: ""}) : | 29 ClouderrorreportingApi(http.Client client, |
32 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 30 {core.String rootUrl: "https://clouderrorreporting.googleapis.com/", |
| 31 core.String servicePath: ""}) |
| 32 : _requester = |
| 33 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
33 } | 34 } |
34 | 35 |
35 | |
36 class ProjectsResourceApi { | 36 class ProjectsResourceApi { |
37 final commons.ApiRequester _requester; | 37 final commons.ApiRequester _requester; |
38 | 38 |
39 ProjectsEventsResourceApi get events => new ProjectsEventsResourceApi(_request
er); | 39 ProjectsEventsResourceApi get events => |
40 ProjectsGroupStatsResourceApi get groupStats => new ProjectsGroupStatsResource
Api(_requester); | 40 new ProjectsEventsResourceApi(_requester); |
41 ProjectsGroupsResourceApi get groups => new ProjectsGroupsResourceApi(_request
er); | 41 ProjectsGroupStatsResourceApi get groupStats => |
| 42 new ProjectsGroupStatsResourceApi(_requester); |
| 43 ProjectsGroupsResourceApi get groups => |
| 44 new ProjectsGroupsResourceApi(_requester); |
42 | 45 |
43 ProjectsResourceApi(commons.ApiRequester client) : | 46 ProjectsResourceApi(commons.ApiRequester client) : _requester = client; |
44 _requester = client; | |
45 | 47 |
46 /** | 48 /// Deletes all error events of a given project. |
47 * Deletes all error events of a given project. | 49 /// |
48 * | 50 /// Request parameters: |
49 * Request parameters: | 51 /// |
50 * | 52 /// [projectName] - [Required] The resource name of the Google Cloud Platform |
51 * [projectName] - [Required] The resource name of the Google Cloud Platform | 53 /// project. Written |
52 * project. Written | 54 /// as `projects/` plus the |
53 * as `projects/` plus the | 55 /// [Google Cloud Platform project |
54 * [Google Cloud Platform project | 56 /// ID](https://support.google.com/cloud/answer/6158840). |
55 * ID](https://support.google.com/cloud/answer/6158840). | 57 /// Example: `projects/my-project-123`. |
56 * Example: `projects/my-project-123`. | 58 /// Value must have pattern "^projects/[^/]+$". |
57 * Value must have pattern "^projects/[^/]+$". | 59 /// |
58 * | 60 /// Completes with a [DeleteEventsResponse]. |
59 * Completes with a [DeleteEventsResponse]. | 61 /// |
60 * | 62 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
61 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 63 /// an error. |
62 * error. | 64 /// |
63 * | 65 /// If the used [http.Client] completes with an error when making a REST |
64 * If the used [http.Client] completes with an error when making a REST call, | 66 /// call, this method will complete with the same error. |
65 * this method will complete with the same error. | |
66 */ | |
67 async.Future<DeleteEventsResponse> deleteEvents(core.String projectName) { | 67 async.Future<DeleteEventsResponse> deleteEvents(core.String projectName) { |
68 var _url = null; | 68 var _url = null; |
69 var _queryParams = new core.Map(); | 69 var _queryParams = new core.Map(); |
70 var _uploadMedia = null; | 70 var _uploadMedia = null; |
71 var _uploadOptions = null; | 71 var _uploadOptions = null; |
72 var _downloadOptions = commons.DownloadOptions.Metadata; | 72 var _downloadOptions = commons.DownloadOptions.Metadata; |
73 var _body = null; | 73 var _body = null; |
74 | 74 |
75 if (projectName == null) { | 75 if (projectName == null) { |
76 throw new core.ArgumentError("Parameter projectName is required."); | 76 throw new core.ArgumentError("Parameter projectName is required."); |
77 } | 77 } |
78 | 78 |
79 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/events'; | 79 _url = 'v1beta1/' + |
| 80 commons.Escaper.ecapeVariableReserved('$projectName') + |
| 81 '/events'; |
80 | 82 |
81 var _response = _requester.request(_url, | 83 var _response = _requester.request(_url, "DELETE", |
82 "DELETE", | 84 body: _body, |
83 body: _body, | 85 queryParams: _queryParams, |
84 queryParams: _queryParams, | 86 uploadOptions: _uploadOptions, |
85 uploadOptions: _uploadOptions, | 87 uploadMedia: _uploadMedia, |
86 uploadMedia: _uploadMedia, | 88 downloadOptions: _downloadOptions); |
87 downloadOptions: _downloadOptions); | |
88 return _response.then((data) => new DeleteEventsResponse.fromJson(data)); | 89 return _response.then((data) => new DeleteEventsResponse.fromJson(data)); |
89 } | 90 } |
90 | |
91 } | 91 } |
92 | 92 |
93 | |
94 class ProjectsEventsResourceApi { | 93 class ProjectsEventsResourceApi { |
95 final commons.ApiRequester _requester; | 94 final commons.ApiRequester _requester; |
96 | 95 |
97 ProjectsEventsResourceApi(commons.ApiRequester client) : | 96 ProjectsEventsResourceApi(commons.ApiRequester client) : _requester = client; |
98 _requester = client; | |
99 | 97 |
100 /** | 98 /// Lists the specified events. |
101 * Lists the specified events. | 99 /// |
102 * | 100 /// Request parameters: |
103 * Request parameters: | 101 /// |
104 * | 102 /// [projectName] - [Required] The resource name of the Google Cloud Platform |
105 * [projectName] - [Required] The resource name of the Google Cloud Platform | 103 /// project. Written |
106 * project. Written | 104 /// as `projects/` plus the |
107 * as `projects/` plus the | 105 /// [Google Cloud Platform project |
108 * [Google Cloud Platform project | 106 /// ID](https://support.google.com/cloud/answer/6158840). |
109 * ID](https://support.google.com/cloud/answer/6158840). | 107 /// Example: `projects/my-project-123`. |
110 * Example: `projects/my-project-123`. | 108 /// Value must have pattern "^projects/[^/]+$". |
111 * Value must have pattern "^projects/[^/]+$". | 109 /// |
112 * | 110 /// [serviceFilter_resourceType] - [Optional] The exact value to match |
113 * [groupId] - [Required] The group for which events shall be returned. | 111 /// against |
114 * | 112 /// [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/S
erviceContext#FIELDS.resource_type). |
115 * [pageToken] - [Optional] A `next_page_token` provided by a previous | 113 /// |
116 * response. | 114 /// [timeRange_period] - Restricts the query to the specified time range. |
117 * | 115 /// Possible string values are: |
118 * [serviceFilter_service] - [Optional] The exact value to match against | 116 /// - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. |
119 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). | 117 /// - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. |
120 * | 118 /// - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. |
121 * [pageSize] - [Optional] The maximum number of results to return per | 119 /// - "PERIOD_1_DAY" : A PERIOD_1_DAY. |
122 * response. | 120 /// - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. |
123 * | 121 /// - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. |
124 * [serviceFilter_version] - [Optional] The exact value to match against | 122 /// |
125 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). | 123 /// [groupId] - [Required] The group for which events shall be returned. |
126 * | 124 /// |
127 * [serviceFilter_resourceType] - [Optional] The exact value to match against | 125 /// [serviceFilter_service] - [Optional] The exact value to match against |
128 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). | 126 /// [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/Service
Context#FIELDS.service). |
129 * | 127 /// |
130 * [timeRange_period] - Restricts the query to the specified time range. | 128 /// [pageToken] - [Optional] A `next_page_token` provided by a previous |
131 * Possible string values are: | 129 /// response. |
132 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. | 130 /// |
133 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. | 131 /// [pageSize] - [Optional] The maximum number of results to return per |
134 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. | 132 /// response. |
135 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. | 133 /// |
136 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. | 134 /// [serviceFilter_version] - [Optional] The exact value to match against |
137 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. | 135 /// [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/Service
Context#FIELDS.version). |
138 * | 136 /// |
139 * Completes with a [ListEventsResponse]. | 137 /// Completes with a [ListEventsResponse]. |
140 * | 138 /// |
141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 139 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
142 * error. | 140 /// an error. |
143 * | 141 /// |
144 * If the used [http.Client] completes with an error when making a REST call, | 142 /// If the used [http.Client] completes with an error when making a REST |
145 * this method will complete with the same error. | 143 /// call, this method will complete with the same error. |
146 */ | 144 async.Future<ListEventsResponse> list(core.String projectName, |
147 async.Future<ListEventsResponse> list(core.String projectName, {core.String gr
oupId, core.String pageToken, core.String serviceFilter_service, core.int pageSi
ze, core.String serviceFilter_version, core.String serviceFilter_resourceType, c
ore.String timeRange_period}) { | 145 {core.String serviceFilter_resourceType, |
| 146 core.String timeRange_period, |
| 147 core.String groupId, |
| 148 core.String serviceFilter_service, |
| 149 core.String pageToken, |
| 150 core.int pageSize, |
| 151 core.String serviceFilter_version}) { |
148 var _url = null; | 152 var _url = null; |
149 var _queryParams = new core.Map(); | 153 var _queryParams = new core.Map(); |
150 var _uploadMedia = null; | 154 var _uploadMedia = null; |
151 var _uploadOptions = null; | 155 var _uploadOptions = null; |
152 var _downloadOptions = commons.DownloadOptions.Metadata; | 156 var _downloadOptions = commons.DownloadOptions.Metadata; |
153 var _body = null; | 157 var _body = null; |
154 | 158 |
155 if (projectName == null) { | 159 if (projectName == null) { |
156 throw new core.ArgumentError("Parameter projectName is required."); | 160 throw new core.ArgumentError("Parameter projectName is required."); |
157 } | 161 } |
| 162 if (serviceFilter_resourceType != null) { |
| 163 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
| 164 } |
| 165 if (timeRange_period != null) { |
| 166 _queryParams["timeRange.period"] = [timeRange_period]; |
| 167 } |
158 if (groupId != null) { | 168 if (groupId != null) { |
159 _queryParams["groupId"] = [groupId]; | 169 _queryParams["groupId"] = [groupId]; |
160 } | 170 } |
| 171 if (serviceFilter_service != null) { |
| 172 _queryParams["serviceFilter.service"] = [serviceFilter_service]; |
| 173 } |
161 if (pageToken != null) { | 174 if (pageToken != null) { |
162 _queryParams["pageToken"] = [pageToken]; | 175 _queryParams["pageToken"] = [pageToken]; |
163 } | 176 } |
164 if (serviceFilter_service != null) { | |
165 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | |
166 } | |
167 if (pageSize != null) { | 177 if (pageSize != null) { |
168 _queryParams["pageSize"] = ["${pageSize}"]; | 178 _queryParams["pageSize"] = ["${pageSize}"]; |
169 } | 179 } |
170 if (serviceFilter_version != null) { | 180 if (serviceFilter_version != null) { |
171 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | 181 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
172 } | 182 } |
173 if (serviceFilter_resourceType != null) { | |
174 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | |
175 } | |
176 if (timeRange_period != null) { | |
177 _queryParams["timeRange.period"] = [timeRange_period]; | |
178 } | |
179 | 183 |
180 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/events'; | 184 _url = 'v1beta1/' + |
| 185 commons.Escaper.ecapeVariableReserved('$projectName') + |
| 186 '/events'; |
181 | 187 |
182 var _response = _requester.request(_url, | 188 var _response = _requester.request(_url, "GET", |
183 "GET", | 189 body: _body, |
184 body: _body, | 190 queryParams: _queryParams, |
185 queryParams: _queryParams, | 191 uploadOptions: _uploadOptions, |
186 uploadOptions: _uploadOptions, | 192 uploadMedia: _uploadMedia, |
187 uploadMedia: _uploadMedia, | 193 downloadOptions: _downloadOptions); |
188 downloadOptions: _downloadOptions); | |
189 return _response.then((data) => new ListEventsResponse.fromJson(data)); | 194 return _response.then((data) => new ListEventsResponse.fromJson(data)); |
190 } | 195 } |
191 | 196 |
192 /** | 197 /// Report an individual error event. |
193 * Report an individual error event. | 198 /// |
194 * | 199 /// This endpoint accepts <strong>either</strong> an OAuth token, |
195 * This endpoint accepts <strong>either</strong> an OAuth token, | 200 /// <strong>or</strong> an |
196 * <strong>or</strong> an | 201 /// <a href="https://support.google.com/cloud/answer/6158862">API key</a> |
197 * <a href="https://support.google.com/cloud/answer/6158862">API key</a> | 202 /// for authentication. To use an API key, append it to the URL as the value |
198 * for authentication. To use an API key, append it to the URL as the value of | 203 /// of |
199 * a `key` parameter. For example: | 204 /// a `key` parameter. For example: |
200 * <pre>POST | 205 /// <pre>POST |
201 * https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project
/events:report?key=123ABC456</pre> | 206 /// https://clouderrorreporting.googleapis.com/v1beta1/projects/example-projec
t/events:report?key=123ABC456</pre> |
202 * | 207 /// |
203 * [request] - The metadata request object. | 208 /// [request] - The metadata request object. |
204 * | 209 /// |
205 * Request parameters: | 210 /// Request parameters: |
206 * | 211 /// |
207 * [projectName] - [Required] The resource name of the Google Cloud Platform | 212 /// [projectName] - [Required] The resource name of the Google Cloud Platform |
208 * project. Written | 213 /// project. Written |
209 * as `projects/` plus the | 214 /// as `projects/` plus the |
210 * [Google Cloud Platform project | 215 /// [Google Cloud Platform project |
211 * ID](https://support.google.com/cloud/answer/6158840). | 216 /// ID](https://support.google.com/cloud/answer/6158840). |
212 * Example: `projects/my-project-123`. | 217 /// Example: `projects/my-project-123`. |
213 * Value must have pattern "^projects/[^/]+$". | 218 /// Value must have pattern "^projects/[^/]+$". |
214 * | 219 /// |
215 * Completes with a [ReportErrorEventResponse]. | 220 /// Completes with a [ReportErrorEventResponse]. |
216 * | 221 /// |
217 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 222 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
218 * error. | 223 /// an error. |
219 * | 224 /// |
220 * If the used [http.Client] completes with an error when making a REST call, | 225 /// If the used [http.Client] completes with an error when making a REST |
221 * this method will complete with the same error. | 226 /// call, this method will complete with the same error. |
222 */ | 227 async.Future<ReportErrorEventResponse> report( |
223 async.Future<ReportErrorEventResponse> report(ReportedErrorEvent request, core
.String projectName) { | 228 ReportedErrorEvent request, core.String projectName) { |
224 var _url = null; | 229 var _url = null; |
225 var _queryParams = new core.Map(); | 230 var _queryParams = new core.Map(); |
226 var _uploadMedia = null; | 231 var _uploadMedia = null; |
227 var _uploadOptions = null; | 232 var _uploadOptions = null; |
228 var _downloadOptions = commons.DownloadOptions.Metadata; | 233 var _downloadOptions = commons.DownloadOptions.Metadata; |
229 var _body = null; | 234 var _body = null; |
230 | 235 |
231 if (request != null) { | 236 if (request != null) { |
232 _body = convert.JSON.encode((request).toJson()); | 237 _body = convert.JSON.encode((request).toJson()); |
233 } | 238 } |
234 if (projectName == null) { | 239 if (projectName == null) { |
235 throw new core.ArgumentError("Parameter projectName is required."); | 240 throw new core.ArgumentError("Parameter projectName is required."); |
236 } | 241 } |
237 | 242 |
238 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/events:report'; | 243 _url = 'v1beta1/' + |
| 244 commons.Escaper.ecapeVariableReserved('$projectName') + |
| 245 '/events:report'; |
239 | 246 |
240 var _response = _requester.request(_url, | 247 var _response = _requester.request(_url, "POST", |
241 "POST", | 248 body: _body, |
242 body: _body, | 249 queryParams: _queryParams, |
243 queryParams: _queryParams, | 250 uploadOptions: _uploadOptions, |
244 uploadOptions: _uploadOptions, | 251 uploadMedia: _uploadMedia, |
245 uploadMedia: _uploadMedia, | 252 downloadOptions: _downloadOptions); |
246 downloadOptions: _downloadOptions); | 253 return _response |
247 return _response.then((data) => new ReportErrorEventResponse.fromJson(data))
; | 254 .then((data) => new ReportErrorEventResponse.fromJson(data)); |
248 } | 255 } |
249 | |
250 } | 256 } |
251 | 257 |
252 | |
253 class ProjectsGroupStatsResourceApi { | 258 class ProjectsGroupStatsResourceApi { |
254 final commons.ApiRequester _requester; | 259 final commons.ApiRequester _requester; |
255 | 260 |
256 ProjectsGroupStatsResourceApi(commons.ApiRequester client) : | 261 ProjectsGroupStatsResourceApi(commons.ApiRequester client) |
257 _requester = client; | 262 : _requester = client; |
258 | 263 |
259 /** | 264 /// Lists the specified groups. |
260 * Lists the specified groups. | 265 /// |
261 * | 266 /// Request parameters: |
262 * Request parameters: | 267 /// |
263 * | 268 /// [projectName] - [Required] The resource name of the Google Cloud Platform |
264 * [projectName] - [Required] The resource name of the Google Cloud Platform | 269 /// project. Written |
265 * project. Written | 270 /// as <code>projects/</code> plus the |
266 * as <code>projects/</code> plus the | 271 /// <a href="https://support.google.com/cloud/answer/6158840">Google Cloud |
267 * <a href="https://support.google.com/cloud/answer/6158840">Google Cloud | 272 /// Platform project ID</a>. |
268 * Platform project ID</a>. | 273 /// |
269 * | 274 /// Example: <code>projects/my-project-123</code>. |
270 * Example: <code>projects/my-project-123</code>. | 275 /// Value must have pattern "^projects/[^/]+$". |
271 * Value must have pattern "^projects/[^/]+$". | 276 /// |
272 * | 277 /// [timedCountDuration] - [Optional] The preferred duration for a single |
273 * [timeRange_period] - Restricts the query to the specified time range. | 278 /// returned `TimedCount`. |
274 * Possible string values are: | 279 /// If not set, no timed counts are returned. |
275 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. | 280 /// |
276 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. | 281 /// [pageToken] - [Optional] A `next_page_token` provided by a previous |
277 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. | 282 /// response. To view |
278 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. | 283 /// additional results, pass this token along with the identical query |
279 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. | 284 /// parameters as the first request. |
280 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. | 285 /// |
281 * | 286 /// [timeRange_period] - Restricts the query to the specified time range. |
282 * [alignment] - [Optional] The alignment of the timed counts to be returned. | 287 /// Possible string values are: |
283 * Default is `ALIGNMENT_EQUAL_AT_END`. | 288 /// - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. |
284 * Possible string values are: | 289 /// - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. |
285 * - "ERROR_COUNT_ALIGNMENT_UNSPECIFIED" : A | 290 /// - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. |
286 * ERROR_COUNT_ALIGNMENT_UNSPECIFIED. | 291 /// - "PERIOD_1_DAY" : A PERIOD_1_DAY. |
287 * - "ALIGNMENT_EQUAL_ROUNDED" : A ALIGNMENT_EQUAL_ROUNDED. | 292 /// - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. |
288 * - "ALIGNMENT_EQUAL_AT_END" : A ALIGNMENT_EQUAL_AT_END. | 293 /// - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. |
289 * | 294 /// |
290 * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these | 295 /// [alignment] - [Optional] The alignment of the timed counts to be |
291 * IDs. | 296 /// returned. |
292 * | 297 /// Default is `ALIGNMENT_EQUAL_AT_END`. |
293 * [serviceFilter_service] - [Optional] The exact value to match against | 298 /// Possible string values are: |
294 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). | 299 /// - "ERROR_COUNT_ALIGNMENT_UNSPECIFIED" : A |
295 * | 300 /// ERROR_COUNT_ALIGNMENT_UNSPECIFIED. |
296 * [pageSize] - [Optional] The maximum number of results to return per | 301 /// - "ALIGNMENT_EQUAL_ROUNDED" : A ALIGNMENT_EQUAL_ROUNDED. |
297 * response. | 302 /// - "ALIGNMENT_EQUAL_AT_END" : A ALIGNMENT_EQUAL_AT_END. |
298 * Default is 20. | 303 /// |
299 * | 304 /// [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these |
300 * [order] - [Optional] The sort order in which the results are returned. | 305 /// IDs. |
301 * Default is `COUNT_DESC`. | 306 /// |
302 * Possible string values are: | 307 /// [serviceFilter_service] - [Optional] The exact value to match against |
303 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. | 308 /// [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/Service
Context#FIELDS.service). |
304 * - "COUNT_DESC" : A COUNT_DESC. | 309 /// |
305 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. | 310 /// [pageSize] - [Optional] The maximum number of results to return per |
306 * - "CREATED_DESC" : A CREATED_DESC. | 311 /// response. |
307 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. | 312 /// Default is 20. |
308 * | 313 /// |
309 * [serviceFilter_version] - [Optional] The exact value to match against | 314 /// [serviceFilter_version] - [Optional] The exact value to match against |
310 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). | 315 /// [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/Service
Context#FIELDS.version). |
311 * | 316 /// |
312 * [serviceFilter_resourceType] - [Optional] The exact value to match against | 317 /// [order] - [Optional] The sort order in which the results are returned. |
313 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). | 318 /// Default is `COUNT_DESC`. |
314 * | 319 /// Possible string values are: |
315 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned | 320 /// - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. |
316 * if rounded | 321 /// - "COUNT_DESC" : A COUNT_DESC. |
317 * alignment is chosen. Default is 00:00 UTC. | 322 /// - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. |
318 * | 323 /// - "CREATED_DESC" : A CREATED_DESC. |
319 * [timedCountDuration] - [Optional] The preferred duration for a single | 324 /// - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. |
320 * returned `TimedCount`. | 325 /// |
321 * If not set, no timed counts are returned. | 326 /// [serviceFilter_resourceType] - [Optional] The exact value to match |
322 * | 327 /// against |
323 * [pageToken] - [Optional] A `next_page_token` provided by a previous | 328 /// [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/S
erviceContext#FIELDS.resource_type). |
324 * response. To view | 329 /// |
325 * additional results, pass this token along with the identical query | 330 /// [alignmentTime] - [Optional] Time where the timed counts shall be aligned |
326 * parameters as the first request. | 331 /// if rounded |
327 * | 332 /// alignment is chosen. Default is 00:00 UTC. |
328 * Completes with a [ListGroupStatsResponse]. | 333 /// |
329 * | 334 /// Completes with a [ListGroupStatsResponse]. |
330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 335 /// |
331 * error. | 336 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
332 * | 337 /// an error. |
333 * If the used [http.Client] completes with an error when making a REST call, | 338 /// |
334 * this method will complete with the same error. | 339 /// If the used [http.Client] completes with an error when making a REST |
335 */ | 340 /// call, this method will complete with the same error. |
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}) { | 341 async.Future<ListGroupStatsResponse> list(core.String projectName, |
| 342 {core.String timedCountDuration, |
| 343 core.String pageToken, |
| 344 core.String timeRange_period, |
| 345 core.String alignment, |
| 346 core.List<core.String> groupId, |
| 347 core.String serviceFilter_service, |
| 348 core.int pageSize, |
| 349 core.String serviceFilter_version, |
| 350 core.String order, |
| 351 core.String serviceFilter_resourceType, |
| 352 core.String alignmentTime}) { |
337 var _url = null; | 353 var _url = null; |
338 var _queryParams = new core.Map(); | 354 var _queryParams = new core.Map(); |
339 var _uploadMedia = null; | 355 var _uploadMedia = null; |
340 var _uploadOptions = null; | 356 var _uploadOptions = null; |
341 var _downloadOptions = commons.DownloadOptions.Metadata; | 357 var _downloadOptions = commons.DownloadOptions.Metadata; |
342 var _body = null; | 358 var _body = null; |
343 | 359 |
344 if (projectName == null) { | 360 if (projectName == null) { |
345 throw new core.ArgumentError("Parameter projectName is required."); | 361 throw new core.ArgumentError("Parameter projectName is required."); |
346 } | 362 } |
| 363 if (timedCountDuration != null) { |
| 364 _queryParams["timedCountDuration"] = [timedCountDuration]; |
| 365 } |
| 366 if (pageToken != null) { |
| 367 _queryParams["pageToken"] = [pageToken]; |
| 368 } |
347 if (timeRange_period != null) { | 369 if (timeRange_period != null) { |
348 _queryParams["timeRange.period"] = [timeRange_period]; | 370 _queryParams["timeRange.period"] = [timeRange_period]; |
349 } | 371 } |
350 if (alignment != null) { | 372 if (alignment != null) { |
351 _queryParams["alignment"] = [alignment]; | 373 _queryParams["alignment"] = [alignment]; |
352 } | 374 } |
353 if (groupId != null) { | 375 if (groupId != null) { |
354 _queryParams["groupId"] = groupId; | 376 _queryParams["groupId"] = groupId; |
355 } | 377 } |
356 if (serviceFilter_service != null) { | 378 if (serviceFilter_service != null) { |
357 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | 379 _queryParams["serviceFilter.service"] = [serviceFilter_service]; |
358 } | 380 } |
359 if (pageSize != null) { | 381 if (pageSize != null) { |
360 _queryParams["pageSize"] = ["${pageSize}"]; | 382 _queryParams["pageSize"] = ["${pageSize}"]; |
361 } | 383 } |
| 384 if (serviceFilter_version != null) { |
| 385 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
| 386 } |
362 if (order != null) { | 387 if (order != null) { |
363 _queryParams["order"] = [order]; | 388 _queryParams["order"] = [order]; |
364 } | 389 } |
365 if (serviceFilter_version != null) { | |
366 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | |
367 } | |
368 if (serviceFilter_resourceType != null) { | 390 if (serviceFilter_resourceType != null) { |
369 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | 391 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
370 } | 392 } |
371 if (alignmentTime != null) { | 393 if (alignmentTime != null) { |
372 _queryParams["alignmentTime"] = [alignmentTime]; | 394 _queryParams["alignmentTime"] = [alignmentTime]; |
373 } | 395 } |
374 if (timedCountDuration != null) { | |
375 _queryParams["timedCountDuration"] = [timedCountDuration]; | |
376 } | |
377 if (pageToken != null) { | |
378 _queryParams["pageToken"] = [pageToken]; | |
379 } | |
380 | 396 |
381 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/groupStats'; | 397 _url = 'v1beta1/' + |
| 398 commons.Escaper.ecapeVariableReserved('$projectName') + |
| 399 '/groupStats'; |
382 | 400 |
383 var _response = _requester.request(_url, | 401 var _response = _requester.request(_url, "GET", |
384 "GET", | 402 body: _body, |
385 body: _body, | 403 queryParams: _queryParams, |
386 queryParams: _queryParams, | 404 uploadOptions: _uploadOptions, |
387 uploadOptions: _uploadOptions, | 405 uploadMedia: _uploadMedia, |
388 uploadMedia: _uploadMedia, | 406 downloadOptions: _downloadOptions); |
389 downloadOptions: _downloadOptions); | |
390 return _response.then((data) => new ListGroupStatsResponse.fromJson(data)); | 407 return _response.then((data) => new ListGroupStatsResponse.fromJson(data)); |
391 } | 408 } |
392 | |
393 } | 409 } |
394 | 410 |
395 | |
396 class ProjectsGroupsResourceApi { | 411 class ProjectsGroupsResourceApi { |
397 final commons.ApiRequester _requester; | 412 final commons.ApiRequester _requester; |
398 | 413 |
399 ProjectsGroupsResourceApi(commons.ApiRequester client) : | 414 ProjectsGroupsResourceApi(commons.ApiRequester client) : _requester = client; |
400 _requester = client; | |
401 | 415 |
402 /** | 416 /// Get the specified group. |
403 * Get the specified group. | 417 /// |
404 * | 418 /// Request parameters: |
405 * Request parameters: | 419 /// |
406 * | 420 /// [groupName] - [Required] The group resource name. Written as |
407 * [groupName] - [Required] The group resource name. Written as | 421 /// <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>. |
408 * <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>. | 422 /// Call |
409 * Call | 423 /// <a |
410 * <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list"> | 424 /// href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list"> |
411 * <code>groupStats.list</code></a> to return a list of groups belonging to | 425 /// <code>groupStats.list</code></a> to return a list of groups belonging to |
412 * this project. | 426 /// this project. |
413 * | 427 /// |
414 * Example: <code>projects/my-project-123/groups/my-group</code> | 428 /// Example: <code>projects/my-project-123/groups/my-group</code> |
415 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". | 429 /// Value must have pattern "^projects/[^/]+/groups/[^/]+$". |
416 * | 430 /// |
417 * Completes with a [ErrorGroup]. | 431 /// Completes with a [ErrorGroup]. |
418 * | 432 /// |
419 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 433 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
420 * error. | 434 /// an error. |
421 * | 435 /// |
422 * If the used [http.Client] completes with an error when making a REST call, | 436 /// If the used [http.Client] completes with an error when making a REST |
423 * this method will complete with the same error. | 437 /// call, this method will complete with the same error. |
424 */ | |
425 async.Future<ErrorGroup> get(core.String groupName) { | 438 async.Future<ErrorGroup> get(core.String groupName) { |
426 var _url = null; | 439 var _url = null; |
427 var _queryParams = new core.Map(); | 440 var _queryParams = new core.Map(); |
428 var _uploadMedia = null; | 441 var _uploadMedia = null; |
429 var _uploadOptions = null; | 442 var _uploadOptions = null; |
430 var _downloadOptions = commons.DownloadOptions.Metadata; | 443 var _downloadOptions = commons.DownloadOptions.Metadata; |
431 var _body = null; | 444 var _body = null; |
432 | 445 |
433 if (groupName == null) { | 446 if (groupName == null) { |
434 throw new core.ArgumentError("Parameter groupName is required."); | 447 throw new core.ArgumentError("Parameter groupName is required."); |
435 } | 448 } |
436 | 449 |
437 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$groupName'); | 450 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$groupName'); |
438 | 451 |
439 var _response = _requester.request(_url, | 452 var _response = _requester.request(_url, "GET", |
440 "GET", | 453 body: _body, |
441 body: _body, | 454 queryParams: _queryParams, |
442 queryParams: _queryParams, | 455 uploadOptions: _uploadOptions, |
443 uploadOptions: _uploadOptions, | 456 uploadMedia: _uploadMedia, |
444 uploadMedia: _uploadMedia, | 457 downloadOptions: _downloadOptions); |
445 downloadOptions: _downloadOptions); | |
446 return _response.then((data) => new ErrorGroup.fromJson(data)); | 458 return _response.then((data) => new ErrorGroup.fromJson(data)); |
447 } | 459 } |
448 | 460 |
449 /** | 461 /// Replace the data for the specified group. |
450 * Replace the data for the specified group. | 462 /// Fails if the group does not exist. |
451 * Fails if the group does not exist. | 463 /// |
452 * | 464 /// [request] - The metadata request object. |
453 * [request] - The metadata request object. | 465 /// |
454 * | 466 /// Request parameters: |
455 * Request parameters: | 467 /// |
456 * | 468 /// [name] - The group resource name. |
457 * [name] - The group resource name. | 469 /// Example: <code>projects/my-project-123/groups/my-groupid</code> |
458 * Example: <code>projects/my-project-123/groups/my-groupid</code> | 470 /// Value must have pattern "^projects/[^/]+/groups/[^/]+$". |
459 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". | 471 /// |
460 * | 472 /// Completes with a [ErrorGroup]. |
461 * Completes with a [ErrorGroup]. | 473 /// |
462 * | 474 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
463 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 475 /// an error. |
464 * error. | 476 /// |
465 * | 477 /// If the used [http.Client] completes with an error when making a REST |
466 * If the used [http.Client] completes with an error when making a REST call, | 478 /// call, this method will complete with the same error. |
467 * this method will complete with the same error. | |
468 */ | |
469 async.Future<ErrorGroup> update(ErrorGroup request, core.String name) { | 479 async.Future<ErrorGroup> update(ErrorGroup request, core.String name) { |
470 var _url = null; | 480 var _url = null; |
471 var _queryParams = new core.Map(); | 481 var _queryParams = new core.Map(); |
472 var _uploadMedia = null; | 482 var _uploadMedia = null; |
473 var _uploadOptions = null; | 483 var _uploadOptions = null; |
474 var _downloadOptions = commons.DownloadOptions.Metadata; | 484 var _downloadOptions = commons.DownloadOptions.Metadata; |
475 var _body = null; | 485 var _body = null; |
476 | 486 |
477 if (request != null) { | 487 if (request != null) { |
478 _body = convert.JSON.encode((request).toJson()); | 488 _body = convert.JSON.encode((request).toJson()); |
479 } | 489 } |
480 if (name == null) { | 490 if (name == null) { |
481 throw new core.ArgumentError("Parameter name is required."); | 491 throw new core.ArgumentError("Parameter name is required."); |
482 } | 492 } |
483 | 493 |
484 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); | 494 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); |
485 | 495 |
486 var _response = _requester.request(_url, | 496 var _response = _requester.request(_url, "PUT", |
487 "PUT", | 497 body: _body, |
488 body: _body, | 498 queryParams: _queryParams, |
489 queryParams: _queryParams, | 499 uploadOptions: _uploadOptions, |
490 uploadOptions: _uploadOptions, | 500 uploadMedia: _uploadMedia, |
491 uploadMedia: _uploadMedia, | 501 downloadOptions: _downloadOptions); |
492 downloadOptions: _downloadOptions); | |
493 return _response.then((data) => new ErrorGroup.fromJson(data)); | 502 return _response.then((data) => new ErrorGroup.fromJson(data)); |
494 } | 503 } |
495 | |
496 } | 504 } |
497 | 505 |
498 | 506 /// Response message for deleting error events. |
499 | |
500 /** Response message for deleting error events. */ | |
501 class DeleteEventsResponse { | 507 class DeleteEventsResponse { |
502 | |
503 DeleteEventsResponse(); | 508 DeleteEventsResponse(); |
504 | 509 |
505 DeleteEventsResponse.fromJson(core.Map _json) { | 510 DeleteEventsResponse.fromJson(core.Map _json) {} |
506 } | |
507 | 511 |
508 core.Map<core.String, core.Object> toJson() { | 512 core.Map<core.String, core.Object> toJson() { |
509 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 513 final core.Map<core.String, core.Object> _json = |
| 514 new core.Map<core.String, core.Object>(); |
510 return _json; | 515 return _json; |
511 } | 516 } |
512 } | 517 } |
513 | 518 |
514 /** | 519 /// A description of the context in which an error occurred. |
515 * A description of the context in which an error occurred. | 520 /// This data should be provided by the application when reporting an error, |
516 * This data should be provided by the application when reporting an error, | 521 /// unless the |
517 * unless the | 522 /// error report has been generated automatically from Google App Engine logs. |
518 * error report has been generated automatically from Google App Engine logs. | |
519 */ | |
520 class ErrorContext { | 523 class ErrorContext { |
521 /** | 524 /// The HTTP request which was processed when the error was |
522 * The HTTP request which was processed when the error was | 525 /// triggered. |
523 * triggered. | |
524 */ | |
525 HttpRequestContext httpRequest; | 526 HttpRequestContext httpRequest; |
526 /** | 527 |
527 * The location in the source code where the decision was made to | 528 /// The location in the source code where the decision was made to |
528 * report the error, usually the place where it was logged. | 529 /// report the error, usually the place where it was logged. |
529 * For a logged exception this would be the source line where the | 530 /// For a logged exception this would be the source line where the |
530 * exception is logged, usually close to the place where it was | 531 /// exception is logged, usually close to the place where it was |
531 * caught. | 532 /// caught. |
532 */ | |
533 SourceLocation reportLocation; | 533 SourceLocation reportLocation; |
534 /** | 534 |
535 * Source code that was used to build the executable which has | 535 /// Source code that was used to build the executable which has |
536 * caused the given error message. | 536 /// caused the given error message. |
537 */ | |
538 core.List<SourceReference> sourceReferences; | 537 core.List<SourceReference> sourceReferences; |
539 /** | 538 |
540 * The user who caused or was affected by the crash. | 539 /// The user who caused or was affected by the crash. |
541 * This can be a user ID, an email address, or an arbitrary token that | 540 /// This can be a user ID, an email address, or an arbitrary token that |
542 * uniquely identifies the user. | 541 /// uniquely identifies the user. |
543 * When sending an error report, leave this field empty if the user was not | 542 /// When sending an error report, leave this field empty if the user was not |
544 * logged in. In this case the | 543 /// logged in. In this case the |
545 * Error Reporting system will use other data, such as remote IP address, to | 544 /// Error Reporting system will use other data, such as remote IP address, to |
546 * distinguish affected users. See `affected_users_count` in | 545 /// distinguish affected users. See `affected_users_count` in |
547 * `ErrorGroupStats`. | 546 /// `ErrorGroupStats`. |
548 */ | |
549 core.String user; | 547 core.String user; |
550 | 548 |
551 ErrorContext(); | 549 ErrorContext(); |
552 | 550 |
553 ErrorContext.fromJson(core.Map _json) { | 551 ErrorContext.fromJson(core.Map _json) { |
554 if (_json.containsKey("httpRequest")) { | 552 if (_json.containsKey("httpRequest")) { |
555 httpRequest = new HttpRequestContext.fromJson(_json["httpRequest"]); | 553 httpRequest = new HttpRequestContext.fromJson(_json["httpRequest"]); |
556 } | 554 } |
557 if (_json.containsKey("reportLocation")) { | 555 if (_json.containsKey("reportLocation")) { |
558 reportLocation = new SourceLocation.fromJson(_json["reportLocation"]); | 556 reportLocation = new SourceLocation.fromJson(_json["reportLocation"]); |
559 } | 557 } |
560 if (_json.containsKey("sourceReferences")) { | 558 if (_json.containsKey("sourceReferences")) { |
561 sourceReferences = _json["sourceReferences"].map((value) => new SourceRefe
rence.fromJson(value)).toList(); | 559 sourceReferences = _json["sourceReferences"] |
| 560 .map((value) => new SourceReference.fromJson(value)) |
| 561 .toList(); |
562 } | 562 } |
563 if (_json.containsKey("user")) { | 563 if (_json.containsKey("user")) { |
564 user = _json["user"]; | 564 user = _json["user"]; |
565 } | 565 } |
566 } | 566 } |
567 | 567 |
568 core.Map<core.String, core.Object> toJson() { | 568 core.Map<core.String, core.Object> toJson() { |
569 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 569 final core.Map<core.String, core.Object> _json = |
| 570 new core.Map<core.String, core.Object>(); |
570 if (httpRequest != null) { | 571 if (httpRequest != null) { |
571 _json["httpRequest"] = (httpRequest).toJson(); | 572 _json["httpRequest"] = (httpRequest).toJson(); |
572 } | 573 } |
573 if (reportLocation != null) { | 574 if (reportLocation != null) { |
574 _json["reportLocation"] = (reportLocation).toJson(); | 575 _json["reportLocation"] = (reportLocation).toJson(); |
575 } | 576 } |
576 if (sourceReferences != null) { | 577 if (sourceReferences != null) { |
577 _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson
()).toList(); | 578 _json["sourceReferences"] = |
| 579 sourceReferences.map((value) => (value).toJson()).toList(); |
578 } | 580 } |
579 if (user != null) { | 581 if (user != null) { |
580 _json["user"] = user; | 582 _json["user"] = user; |
581 } | 583 } |
582 return _json; | 584 return _json; |
583 } | 585 } |
584 } | 586 } |
585 | 587 |
586 /** An error event which is returned by the Error Reporting system. */ | 588 /// An error event which is returned by the Error Reporting system. |
587 class ErrorEvent { | 589 class ErrorEvent { |
588 /** Data about the context in which the error occurred. */ | 590 /// Data about the context in which the error occurred. |
589 ErrorContext context; | 591 ErrorContext context; |
590 /** | 592 |
591 * Time when the event occurred as provided in the error report. | 593 /// Time when the event occurred as provided in the error report. |
592 * If the report did not contain a timestamp, the time the error was received | 594 /// If the report did not contain a timestamp, the time the error was |
593 * by the Error Reporting system is used. | 595 /// received |
594 */ | 596 /// by the Error Reporting system is used. |
595 core.String eventTime; | 597 core.String eventTime; |
596 /** The stack trace that was reported or logged by the service. */ | 598 |
| 599 /// The stack trace that was reported or logged by the service. |
597 core.String message; | 600 core.String message; |
598 /** The `ServiceContext` for which this error was reported. */ | 601 |
| 602 /// The `ServiceContext` for which this error was reported. |
599 ServiceContext serviceContext; | 603 ServiceContext serviceContext; |
600 | 604 |
601 ErrorEvent(); | 605 ErrorEvent(); |
602 | 606 |
603 ErrorEvent.fromJson(core.Map _json) { | 607 ErrorEvent.fromJson(core.Map _json) { |
604 if (_json.containsKey("context")) { | 608 if (_json.containsKey("context")) { |
605 context = new ErrorContext.fromJson(_json["context"]); | 609 context = new ErrorContext.fromJson(_json["context"]); |
606 } | 610 } |
607 if (_json.containsKey("eventTime")) { | 611 if (_json.containsKey("eventTime")) { |
608 eventTime = _json["eventTime"]; | 612 eventTime = _json["eventTime"]; |
609 } | 613 } |
610 if (_json.containsKey("message")) { | 614 if (_json.containsKey("message")) { |
611 message = _json["message"]; | 615 message = _json["message"]; |
612 } | 616 } |
613 if (_json.containsKey("serviceContext")) { | 617 if (_json.containsKey("serviceContext")) { |
614 serviceContext = new ServiceContext.fromJson(_json["serviceContext"]); | 618 serviceContext = new ServiceContext.fromJson(_json["serviceContext"]); |
615 } | 619 } |
616 } | 620 } |
617 | 621 |
618 core.Map<core.String, core.Object> toJson() { | 622 core.Map<core.String, core.Object> toJson() { |
619 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 623 final core.Map<core.String, core.Object> _json = |
| 624 new core.Map<core.String, core.Object>(); |
620 if (context != null) { | 625 if (context != null) { |
621 _json["context"] = (context).toJson(); | 626 _json["context"] = (context).toJson(); |
622 } | 627 } |
623 if (eventTime != null) { | 628 if (eventTime != null) { |
624 _json["eventTime"] = eventTime; | 629 _json["eventTime"] = eventTime; |
625 } | 630 } |
626 if (message != null) { | 631 if (message != null) { |
627 _json["message"] = message; | 632 _json["message"] = message; |
628 } | 633 } |
629 if (serviceContext != null) { | 634 if (serviceContext != null) { |
630 _json["serviceContext"] = (serviceContext).toJson(); | 635 _json["serviceContext"] = (serviceContext).toJson(); |
631 } | 636 } |
632 return _json; | 637 return _json; |
633 } | 638 } |
634 } | 639 } |
635 | 640 |
636 /** Description of a group of similar error events. */ | 641 /// Description of a group of similar error events. |
637 class ErrorGroup { | 642 class ErrorGroup { |
638 /** | 643 /// Group IDs are unique for a given project. If the same kind of error |
639 * Group IDs are unique for a given project. If the same kind of error | 644 /// occurs in different service contexts, it will receive the same group ID. |
640 * occurs in different service contexts, it will receive the same group ID. | |
641 */ | |
642 core.String groupId; | 645 core.String groupId; |
643 /** | 646 |
644 * The group resource name. | 647 /// The group resource name. |
645 * Example: <code>projects/my-project-123/groups/my-groupid</code> | 648 /// Example: <code>projects/my-project-123/groups/my-groupid</code> |
646 */ | |
647 core.String name; | 649 core.String name; |
648 /** Associated tracking issues. */ | 650 |
| 651 /// Associated tracking issues. |
649 core.List<TrackingIssue> trackingIssues; | 652 core.List<TrackingIssue> trackingIssues; |
650 | 653 |
651 ErrorGroup(); | 654 ErrorGroup(); |
652 | 655 |
653 ErrorGroup.fromJson(core.Map _json) { | 656 ErrorGroup.fromJson(core.Map _json) { |
654 if (_json.containsKey("groupId")) { | 657 if (_json.containsKey("groupId")) { |
655 groupId = _json["groupId"]; | 658 groupId = _json["groupId"]; |
656 } | 659 } |
657 if (_json.containsKey("name")) { | 660 if (_json.containsKey("name")) { |
658 name = _json["name"]; | 661 name = _json["name"]; |
659 } | 662 } |
660 if (_json.containsKey("trackingIssues")) { | 663 if (_json.containsKey("trackingIssues")) { |
661 trackingIssues = _json["trackingIssues"].map((value) => new TrackingIssue.
fromJson(value)).toList(); | 664 trackingIssues = _json["trackingIssues"] |
| 665 .map((value) => new TrackingIssue.fromJson(value)) |
| 666 .toList(); |
662 } | 667 } |
663 } | 668 } |
664 | 669 |
665 core.Map<core.String, core.Object> toJson() { | 670 core.Map<core.String, core.Object> toJson() { |
666 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 671 final core.Map<core.String, core.Object> _json = |
| 672 new core.Map<core.String, core.Object>(); |
667 if (groupId != null) { | 673 if (groupId != null) { |
668 _json["groupId"] = groupId; | 674 _json["groupId"] = groupId; |
669 } | 675 } |
670 if (name != null) { | 676 if (name != null) { |
671 _json["name"] = name; | 677 _json["name"] = name; |
672 } | 678 } |
673 if (trackingIssues != null) { | 679 if (trackingIssues != null) { |
674 _json["trackingIssues"] = trackingIssues.map((value) => (value).toJson()).
toList(); | 680 _json["trackingIssues"] = |
| 681 trackingIssues.map((value) => (value).toJson()).toList(); |
675 } | 682 } |
676 return _json; | 683 return _json; |
677 } | 684 } |
678 } | 685 } |
679 | 686 |
680 /** | 687 /// Data extracted for a specific group based on certain filter criteria, |
681 * Data extracted for a specific group based on certain filter criteria, | 688 /// such as a given time period and/or service filter. |
682 * such as a given time period and/or service filter. | |
683 */ | |
684 class ErrorGroupStats { | 689 class ErrorGroupStats { |
685 /** | 690 /// Service contexts with a non-zero error count for the given filter |
686 * Service contexts with a non-zero error count for the given filter | 691 /// criteria. This list can be truncated if multiple services are affected. |
687 * criteria. This list can be truncated if multiple services are affected. | 692 /// Refer to `num_affected_services` for the total count. |
688 * Refer to `num_affected_services` for the total count. | |
689 */ | |
690 core.List<ServiceContext> affectedServices; | 693 core.List<ServiceContext> affectedServices; |
691 /** | 694 |
692 * Approximate number of affected users in the given group that | 695 /// Approximate number of affected users in the given group that |
693 * match the filter criteria. | 696 /// match the filter criteria. |
694 * Users are distinguished by data in the `ErrorContext` of the | 697 /// Users are distinguished by data in the `ErrorContext` of the |
695 * individual error events, such as their login name or their remote | 698 /// individual error events, such as their login name or their remote |
696 * IP address in case of HTTP requests. | 699 /// IP address in case of HTTP requests. |
697 * The number of affected users can be zero even if the number of | 700 /// The number of affected users can be zero even if the number of |
698 * errors is non-zero if no data was provided from which the | 701 /// errors is non-zero if no data was provided from which the |
699 * affected user could be deduced. | 702 /// affected user could be deduced. |
700 * Users are counted based on data in the request | 703 /// Users are counted based on data in the request |
701 * context that was provided in the error report. If more users are | 704 /// context that was provided in the error report. If more users are |
702 * implicitly affected, such as due to a crash of the whole service, | 705 /// implicitly affected, such as due to a crash of the whole service, |
703 * this is not reflected here. | 706 /// this is not reflected here. |
704 */ | |
705 core.String affectedUsersCount; | 707 core.String affectedUsersCount; |
706 /** | 708 |
707 * Approximate total number of events in the given group that match | 709 /// Approximate total number of events in the given group that match |
708 * the filter criteria. | 710 /// the filter criteria. |
709 */ | |
710 core.String count; | 711 core.String count; |
711 /** | 712 |
712 * Approximate first occurrence that was ever seen for this group | 713 /// Approximate first occurrence that was ever seen for this group |
713 * and which matches the given filter criteria, ignoring the | 714 /// and which matches the given filter criteria, ignoring the |
714 * time_range that was specified in the request. | 715 /// time_range that was specified in the request. |
715 */ | |
716 core.String firstSeenTime; | 716 core.String firstSeenTime; |
717 /** Group data that is independent of the filter criteria. */ | 717 |
| 718 /// Group data that is independent of the filter criteria. |
718 ErrorGroup group; | 719 ErrorGroup group; |
719 /** | 720 |
720 * Approximate last occurrence that was ever seen for this group and | 721 /// Approximate last occurrence that was ever seen for this group and |
721 * which matches the given filter criteria, ignoring the time_range | 722 /// which matches the given filter criteria, ignoring the time_range |
722 * that was specified in the request. | 723 /// that was specified in the request. |
723 */ | |
724 core.String lastSeenTime; | 724 core.String lastSeenTime; |
725 /** | 725 |
726 * The total number of services with a non-zero error count for the given | 726 /// The total number of services with a non-zero error count for the given |
727 * filter criteria. | 727 /// filter criteria. |
728 */ | |
729 core.int numAffectedServices; | 728 core.int numAffectedServices; |
730 /** | 729 |
731 * An arbitrary event that is chosen as representative for the whole group. | 730 /// An arbitrary event that is chosen as representative for the whole group. |
732 * The representative event is intended to be used as a quick preview for | 731 /// The representative event is intended to be used as a quick preview for |
733 * the whole group. Events in the group are usually sufficiently similar | 732 /// the whole group. Events in the group are usually sufficiently similar |
734 * to each other such that showing an arbitrary representative provides | 733 /// to each other such that showing an arbitrary representative provides |
735 * insight into the characteristics of the group as a whole. | 734 /// insight into the characteristics of the group as a whole. |
736 */ | |
737 ErrorEvent representative; | 735 ErrorEvent representative; |
738 /** | 736 |
739 * Approximate number of occurrences over time. | 737 /// Approximate number of occurrences over time. |
740 * Timed counts returned by ListGroups are guaranteed to be: | 738 /// Timed counts returned by ListGroups are guaranteed to be: |
741 * | 739 /// |
742 * - Inside the requested time interval | 740 /// - Inside the requested time interval |
743 * - Non-overlapping, and | 741 /// - Non-overlapping, and |
744 * - Ordered by ascending time. | 742 /// - Ordered by ascending time. |
745 */ | |
746 core.List<TimedCount> timedCounts; | 743 core.List<TimedCount> timedCounts; |
747 | 744 |
748 ErrorGroupStats(); | 745 ErrorGroupStats(); |
749 | 746 |
750 ErrorGroupStats.fromJson(core.Map _json) { | 747 ErrorGroupStats.fromJson(core.Map _json) { |
751 if (_json.containsKey("affectedServices")) { | 748 if (_json.containsKey("affectedServices")) { |
752 affectedServices = _json["affectedServices"].map((value) => new ServiceCon
text.fromJson(value)).toList(); | 749 affectedServices = _json["affectedServices"] |
| 750 .map((value) => new ServiceContext.fromJson(value)) |
| 751 .toList(); |
753 } | 752 } |
754 if (_json.containsKey("affectedUsersCount")) { | 753 if (_json.containsKey("affectedUsersCount")) { |
755 affectedUsersCount = _json["affectedUsersCount"]; | 754 affectedUsersCount = _json["affectedUsersCount"]; |
756 } | 755 } |
757 if (_json.containsKey("count")) { | 756 if (_json.containsKey("count")) { |
758 count = _json["count"]; | 757 count = _json["count"]; |
759 } | 758 } |
760 if (_json.containsKey("firstSeenTime")) { | 759 if (_json.containsKey("firstSeenTime")) { |
761 firstSeenTime = _json["firstSeenTime"]; | 760 firstSeenTime = _json["firstSeenTime"]; |
762 } | 761 } |
763 if (_json.containsKey("group")) { | 762 if (_json.containsKey("group")) { |
764 group = new ErrorGroup.fromJson(_json["group"]); | 763 group = new ErrorGroup.fromJson(_json["group"]); |
765 } | 764 } |
766 if (_json.containsKey("lastSeenTime")) { | 765 if (_json.containsKey("lastSeenTime")) { |
767 lastSeenTime = _json["lastSeenTime"]; | 766 lastSeenTime = _json["lastSeenTime"]; |
768 } | 767 } |
769 if (_json.containsKey("numAffectedServices")) { | 768 if (_json.containsKey("numAffectedServices")) { |
770 numAffectedServices = _json["numAffectedServices"]; | 769 numAffectedServices = _json["numAffectedServices"]; |
771 } | 770 } |
772 if (_json.containsKey("representative")) { | 771 if (_json.containsKey("representative")) { |
773 representative = new ErrorEvent.fromJson(_json["representative"]); | 772 representative = new ErrorEvent.fromJson(_json["representative"]); |
774 } | 773 } |
775 if (_json.containsKey("timedCounts")) { | 774 if (_json.containsKey("timedCounts")) { |
776 timedCounts = _json["timedCounts"].map((value) => new TimedCount.fromJson(
value)).toList(); | 775 timedCounts = _json["timedCounts"] |
| 776 .map((value) => new TimedCount.fromJson(value)) |
| 777 .toList(); |
777 } | 778 } |
778 } | 779 } |
779 | 780 |
780 core.Map<core.String, core.Object> toJson() { | 781 core.Map<core.String, core.Object> toJson() { |
781 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 782 final core.Map<core.String, core.Object> _json = |
| 783 new core.Map<core.String, core.Object>(); |
782 if (affectedServices != null) { | 784 if (affectedServices != null) { |
783 _json["affectedServices"] = affectedServices.map((value) => (value).toJson
()).toList(); | 785 _json["affectedServices"] = |
| 786 affectedServices.map((value) => (value).toJson()).toList(); |
784 } | 787 } |
785 if (affectedUsersCount != null) { | 788 if (affectedUsersCount != null) { |
786 _json["affectedUsersCount"] = affectedUsersCount; | 789 _json["affectedUsersCount"] = affectedUsersCount; |
787 } | 790 } |
788 if (count != null) { | 791 if (count != null) { |
789 _json["count"] = count; | 792 _json["count"] = count; |
790 } | 793 } |
791 if (firstSeenTime != null) { | 794 if (firstSeenTime != null) { |
792 _json["firstSeenTime"] = firstSeenTime; | 795 _json["firstSeenTime"] = firstSeenTime; |
793 } | 796 } |
794 if (group != null) { | 797 if (group != null) { |
795 _json["group"] = (group).toJson(); | 798 _json["group"] = (group).toJson(); |
796 } | 799 } |
797 if (lastSeenTime != null) { | 800 if (lastSeenTime != null) { |
798 _json["lastSeenTime"] = lastSeenTime; | 801 _json["lastSeenTime"] = lastSeenTime; |
799 } | 802 } |
800 if (numAffectedServices != null) { | 803 if (numAffectedServices != null) { |
801 _json["numAffectedServices"] = numAffectedServices; | 804 _json["numAffectedServices"] = numAffectedServices; |
802 } | 805 } |
803 if (representative != null) { | 806 if (representative != null) { |
804 _json["representative"] = (representative).toJson(); | 807 _json["representative"] = (representative).toJson(); |
805 } | 808 } |
806 if (timedCounts != null) { | 809 if (timedCounts != null) { |
807 _json["timedCounts"] = timedCounts.map((value) => (value).toJson()).toList
(); | 810 _json["timedCounts"] = |
| 811 timedCounts.map((value) => (value).toJson()).toList(); |
808 } | 812 } |
809 return _json; | 813 return _json; |
810 } | 814 } |
811 } | 815 } |
812 | 816 |
813 /** | 817 /// HTTP request data that is related to a reported error. |
814 * HTTP request data that is related to a reported error. | 818 /// This data should be provided by the application when reporting an error, |
815 * This data should be provided by the application when reporting an error, | 819 /// unless the |
816 * unless the | 820 /// error report has been generated automatically from Google App Engine logs. |
817 * error report has been generated automatically from Google App Engine logs. | |
818 */ | |
819 class HttpRequestContext { | 821 class HttpRequestContext { |
820 /** The type of HTTP request, such as `GET`, `POST`, etc. */ | 822 /// The type of HTTP request, such as `GET`, `POST`, etc. |
821 core.String method; | 823 core.String method; |
822 /** The referrer information that is provided with the request. */ | 824 |
| 825 /// The referrer information that is provided with the request. |
823 core.String referrer; | 826 core.String referrer; |
824 /** | 827 |
825 * The IP address from which the request originated. | 828 /// The IP address from which the request originated. |
826 * This can be IPv4, IPv6, or a token which is derived from the | 829 /// This can be IPv4, IPv6, or a token which is derived from the |
827 * IP address, depending on the data that has been provided | 830 /// IP address, depending on the data that has been provided |
828 * in the error report. | 831 /// in the error report. |
829 */ | |
830 core.String remoteIp; | 832 core.String remoteIp; |
831 /** The HTTP response status code for the request. */ | 833 |
| 834 /// The HTTP response status code for the request. |
832 core.int responseStatusCode; | 835 core.int responseStatusCode; |
833 /** The URL of the request. */ | 836 |
| 837 /// The URL of the request. |
834 core.String url; | 838 core.String url; |
835 /** The user agent information that is provided with the request. */ | 839 |
| 840 /// The user agent information that is provided with the request. |
836 core.String userAgent; | 841 core.String userAgent; |
837 | 842 |
838 HttpRequestContext(); | 843 HttpRequestContext(); |
839 | 844 |
840 HttpRequestContext.fromJson(core.Map _json) { | 845 HttpRequestContext.fromJson(core.Map _json) { |
841 if (_json.containsKey("method")) { | 846 if (_json.containsKey("method")) { |
842 method = _json["method"]; | 847 method = _json["method"]; |
843 } | 848 } |
844 if (_json.containsKey("referrer")) { | 849 if (_json.containsKey("referrer")) { |
845 referrer = _json["referrer"]; | 850 referrer = _json["referrer"]; |
846 } | 851 } |
847 if (_json.containsKey("remoteIp")) { | 852 if (_json.containsKey("remoteIp")) { |
848 remoteIp = _json["remoteIp"]; | 853 remoteIp = _json["remoteIp"]; |
849 } | 854 } |
850 if (_json.containsKey("responseStatusCode")) { | 855 if (_json.containsKey("responseStatusCode")) { |
851 responseStatusCode = _json["responseStatusCode"]; | 856 responseStatusCode = _json["responseStatusCode"]; |
852 } | 857 } |
853 if (_json.containsKey("url")) { | 858 if (_json.containsKey("url")) { |
854 url = _json["url"]; | 859 url = _json["url"]; |
855 } | 860 } |
856 if (_json.containsKey("userAgent")) { | 861 if (_json.containsKey("userAgent")) { |
857 userAgent = _json["userAgent"]; | 862 userAgent = _json["userAgent"]; |
858 } | 863 } |
859 } | 864 } |
860 | 865 |
861 core.Map<core.String, core.Object> toJson() { | 866 core.Map<core.String, core.Object> toJson() { |
862 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 867 final core.Map<core.String, core.Object> _json = |
| 868 new core.Map<core.String, core.Object>(); |
863 if (method != null) { | 869 if (method != null) { |
864 _json["method"] = method; | 870 _json["method"] = method; |
865 } | 871 } |
866 if (referrer != null) { | 872 if (referrer != null) { |
867 _json["referrer"] = referrer; | 873 _json["referrer"] = referrer; |
868 } | 874 } |
869 if (remoteIp != null) { | 875 if (remoteIp != null) { |
870 _json["remoteIp"] = remoteIp; | 876 _json["remoteIp"] = remoteIp; |
871 } | 877 } |
872 if (responseStatusCode != null) { | 878 if (responseStatusCode != null) { |
873 _json["responseStatusCode"] = responseStatusCode; | 879 _json["responseStatusCode"] = responseStatusCode; |
874 } | 880 } |
875 if (url != null) { | 881 if (url != null) { |
876 _json["url"] = url; | 882 _json["url"] = url; |
877 } | 883 } |
878 if (userAgent != null) { | 884 if (userAgent != null) { |
879 _json["userAgent"] = userAgent; | 885 _json["userAgent"] = userAgent; |
880 } | 886 } |
881 return _json; | 887 return _json; |
882 } | 888 } |
883 } | 889 } |
884 | 890 |
885 /** Contains a set of requested error events. */ | 891 /// Contains a set of requested error events. |
886 class ListEventsResponse { | 892 class ListEventsResponse { |
887 /** The error events which match the given request. */ | 893 /// The error events which match the given request. |
888 core.List<ErrorEvent> errorEvents; | 894 core.List<ErrorEvent> errorEvents; |
889 /** | 895 |
890 * If non-empty, more results are available. | 896 /// If non-empty, more results are available. |
891 * Pass this token, along with the same query parameters as the first | 897 /// Pass this token, along with the same query parameters as the first |
892 * request, to view the next page of results. | 898 /// request, to view the next page of results. |
893 */ | |
894 core.String nextPageToken; | 899 core.String nextPageToken; |
895 /** | 900 |
896 * The timestamp specifies the start time to which the request was restricted. | 901 /// The timestamp specifies the start time to which the request was |
897 */ | 902 /// restricted. |
898 core.String timeRangeBegin; | 903 core.String timeRangeBegin; |
899 | 904 |
900 ListEventsResponse(); | 905 ListEventsResponse(); |
901 | 906 |
902 ListEventsResponse.fromJson(core.Map _json) { | 907 ListEventsResponse.fromJson(core.Map _json) { |
903 if (_json.containsKey("errorEvents")) { | 908 if (_json.containsKey("errorEvents")) { |
904 errorEvents = _json["errorEvents"].map((value) => new ErrorEvent.fromJson(
value)).toList(); | 909 errorEvents = _json["errorEvents"] |
| 910 .map((value) => new ErrorEvent.fromJson(value)) |
| 911 .toList(); |
905 } | 912 } |
906 if (_json.containsKey("nextPageToken")) { | 913 if (_json.containsKey("nextPageToken")) { |
907 nextPageToken = _json["nextPageToken"]; | 914 nextPageToken = _json["nextPageToken"]; |
908 } | 915 } |
909 if (_json.containsKey("timeRangeBegin")) { | 916 if (_json.containsKey("timeRangeBegin")) { |
910 timeRangeBegin = _json["timeRangeBegin"]; | 917 timeRangeBegin = _json["timeRangeBegin"]; |
911 } | 918 } |
912 } | 919 } |
913 | 920 |
914 core.Map<core.String, core.Object> toJson() { | 921 core.Map<core.String, core.Object> toJson() { |
915 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 922 final core.Map<core.String, core.Object> _json = |
| 923 new core.Map<core.String, core.Object>(); |
916 if (errorEvents != null) { | 924 if (errorEvents != null) { |
917 _json["errorEvents"] = errorEvents.map((value) => (value).toJson()).toList
(); | 925 _json["errorEvents"] = |
| 926 errorEvents.map((value) => (value).toJson()).toList(); |
918 } | 927 } |
919 if (nextPageToken != null) { | 928 if (nextPageToken != null) { |
920 _json["nextPageToken"] = nextPageToken; | 929 _json["nextPageToken"] = nextPageToken; |
921 } | 930 } |
922 if (timeRangeBegin != null) { | 931 if (timeRangeBegin != null) { |
923 _json["timeRangeBegin"] = timeRangeBegin; | 932 _json["timeRangeBegin"] = timeRangeBegin; |
924 } | 933 } |
925 return _json; | 934 return _json; |
926 } | 935 } |
927 } | 936 } |
928 | 937 |
929 /** Contains a set of requested error group stats. */ | 938 /// Contains a set of requested error group stats. |
930 class ListGroupStatsResponse { | 939 class ListGroupStatsResponse { |
931 /** The error group stats which match the given request. */ | 940 /// The error group stats which match the given request. |
932 core.List<ErrorGroupStats> errorGroupStats; | 941 core.List<ErrorGroupStats> errorGroupStats; |
933 /** | 942 |
934 * If non-empty, more results are available. | 943 /// If non-empty, more results are available. |
935 * Pass this token, along with the same query parameters as the first | 944 /// Pass this token, along with the same query parameters as the first |
936 * request, to view the next page of results. | 945 /// request, to view the next page of results. |
937 */ | |
938 core.String nextPageToken; | 946 core.String nextPageToken; |
939 /** | 947 |
940 * The timestamp specifies the start time to which the request was restricted. | 948 /// The timestamp specifies the start time to which the request was |
941 * The start time is set based on the requested time range. It may be adjusted | 949 /// restricted. |
942 * to a later time if a project has exceeded the storage quota and older data | 950 /// The start time is set based on the requested time range. It may be |
943 * has been deleted. | 951 /// adjusted |
944 */ | 952 /// to a later time if a project has exceeded the storage quota and older |
| 953 /// data |
| 954 /// has been deleted. |
945 core.String timeRangeBegin; | 955 core.String timeRangeBegin; |
946 | 956 |
947 ListGroupStatsResponse(); | 957 ListGroupStatsResponse(); |
948 | 958 |
949 ListGroupStatsResponse.fromJson(core.Map _json) { | 959 ListGroupStatsResponse.fromJson(core.Map _json) { |
950 if (_json.containsKey("errorGroupStats")) { | 960 if (_json.containsKey("errorGroupStats")) { |
951 errorGroupStats = _json["errorGroupStats"].map((value) => new ErrorGroupSt
ats.fromJson(value)).toList(); | 961 errorGroupStats = _json["errorGroupStats"] |
| 962 .map((value) => new ErrorGroupStats.fromJson(value)) |
| 963 .toList(); |
952 } | 964 } |
953 if (_json.containsKey("nextPageToken")) { | 965 if (_json.containsKey("nextPageToken")) { |
954 nextPageToken = _json["nextPageToken"]; | 966 nextPageToken = _json["nextPageToken"]; |
955 } | 967 } |
956 if (_json.containsKey("timeRangeBegin")) { | 968 if (_json.containsKey("timeRangeBegin")) { |
957 timeRangeBegin = _json["timeRangeBegin"]; | 969 timeRangeBegin = _json["timeRangeBegin"]; |
958 } | 970 } |
959 } | 971 } |
960 | 972 |
961 core.Map<core.String, core.Object> toJson() { | 973 core.Map<core.String, core.Object> toJson() { |
962 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 974 final core.Map<core.String, core.Object> _json = |
| 975 new core.Map<core.String, core.Object>(); |
963 if (errorGroupStats != null) { | 976 if (errorGroupStats != null) { |
964 _json["errorGroupStats"] = errorGroupStats.map((value) => (value).toJson()
).toList(); | 977 _json["errorGroupStats"] = |
| 978 errorGroupStats.map((value) => (value).toJson()).toList(); |
965 } | 979 } |
966 if (nextPageToken != null) { | 980 if (nextPageToken != null) { |
967 _json["nextPageToken"] = nextPageToken; | 981 _json["nextPageToken"] = nextPageToken; |
968 } | 982 } |
969 if (timeRangeBegin != null) { | 983 if (timeRangeBegin != null) { |
970 _json["timeRangeBegin"] = timeRangeBegin; | 984 _json["timeRangeBegin"] = timeRangeBegin; |
971 } | 985 } |
972 return _json; | 986 return _json; |
973 } | 987 } |
974 } | 988 } |
975 | 989 |
976 /** | 990 /// Response for reporting an individual error event. |
977 * Response for reporting an individual error event. | 991 /// Data may be added to this message in the future. |
978 * Data may be added to this message in the future. | |
979 */ | |
980 class ReportErrorEventResponse { | 992 class ReportErrorEventResponse { |
981 | |
982 ReportErrorEventResponse(); | 993 ReportErrorEventResponse(); |
983 | 994 |
984 ReportErrorEventResponse.fromJson(core.Map _json) { | 995 ReportErrorEventResponse.fromJson(core.Map _json) {} |
985 } | |
986 | 996 |
987 core.Map<core.String, core.Object> toJson() { | 997 core.Map<core.String, core.Object> toJson() { |
988 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 998 final core.Map<core.String, core.Object> _json = |
| 999 new core.Map<core.String, core.Object>(); |
989 return _json; | 1000 return _json; |
990 } | 1001 } |
991 } | 1002 } |
992 | 1003 |
993 /** An error event which is reported to the Error Reporting system. */ | 1004 /// An error event which is reported to the Error Reporting system. |
994 class ReportedErrorEvent { | 1005 class ReportedErrorEvent { |
995 /** [Optional] A description of the context in which the error occurred. */ | 1006 /// [Optional] A description of the context in which the error occurred. |
996 ErrorContext context; | 1007 ErrorContext context; |
997 /** | 1008 |
998 * [Optional] Time when the event occurred. | 1009 /// [Optional] Time when the event occurred. |
999 * If not provided, the time when the event was received by the | 1010 /// If not provided, the time when the event was received by the |
1000 * Error Reporting system will be used. | 1011 /// Error Reporting system will be used. |
1001 */ | |
1002 core.String eventTime; | 1012 core.String eventTime; |
1003 /** | 1013 |
1004 * [Required] The error message. | 1014 /// [Required] The error message. |
1005 * If no `context.reportLocation` is provided, the message must contain a | 1015 /// If no `context.reportLocation` is provided, the message must contain a |
1006 * header (typically consisting of the exception type name and an error | 1016 /// header (typically consisting of the exception type name and an error |
1007 * message) and an exception stack trace in one of the supported programming | 1017 /// message) and an exception stack trace in one of the supported programming |
1008 * languages and formats. | 1018 /// languages and formats. |
1009 * Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. | 1019 /// Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. |
1010 * Supported stack trace formats are: | 1020 /// Supported stack trace formats are: |
1011 * | 1021 /// |
1012 * * **Java**: Must be the return value of | 1022 /// * **Java**: Must be the return value of |
1013 * [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/j
ava/lang/Throwable.html#printStackTrace%28%29). | 1023 /// [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/
java/lang/Throwable.html#printStackTrace%28%29). |
1014 * * **Python**: Must be the return value of | 1024 /// * **Python**: Must be the return value of |
1015 * [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html
#traceback.format_exc). | 1025 /// [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.htm
l#traceback.format_exc). |
1016 * * **JavaScript**: Must be the value of | 1026 /// * **JavaScript**: Must be the value of |
1017 * [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) | 1027 /// [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) |
1018 * as returned by V8. | 1028 /// as returned by V8. |
1019 * * **Ruby**: Must contain frames returned by | 1029 /// * **Ruby**: Must contain frames returned by |
1020 * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#meth
od-i-backtrace). | 1030 /// [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#met
hod-i-backtrace). |
1021 * * **C#**: Must be the return value of | 1031 /// * **C#**: Must be the return value of |
1022 * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.ex
ception.tostring.aspx). | 1032 /// [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.e
xception.tostring.aspx). |
1023 * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` | 1033 /// * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` |
1024 * and contain the result of | 1034 /// and contain the result of |
1025 * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). | 1035 /// [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). |
1026 * * **Go**: Must be the return value of | 1036 /// * **Go**: Must be the return value of |
1027 * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). | 1037 /// [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). |
1028 */ | |
1029 core.String message; | 1038 core.String message; |
1030 /** [Required] The service context in which this error has occurred. */ | 1039 |
| 1040 /// [Required] The service context in which this error has occurred. |
1031 ServiceContext serviceContext; | 1041 ServiceContext serviceContext; |
1032 | 1042 |
1033 ReportedErrorEvent(); | 1043 ReportedErrorEvent(); |
1034 | 1044 |
1035 ReportedErrorEvent.fromJson(core.Map _json) { | 1045 ReportedErrorEvent.fromJson(core.Map _json) { |
1036 if (_json.containsKey("context")) { | 1046 if (_json.containsKey("context")) { |
1037 context = new ErrorContext.fromJson(_json["context"]); | 1047 context = new ErrorContext.fromJson(_json["context"]); |
1038 } | 1048 } |
1039 if (_json.containsKey("eventTime")) { | 1049 if (_json.containsKey("eventTime")) { |
1040 eventTime = _json["eventTime"]; | 1050 eventTime = _json["eventTime"]; |
1041 } | 1051 } |
1042 if (_json.containsKey("message")) { | 1052 if (_json.containsKey("message")) { |
1043 message = _json["message"]; | 1053 message = _json["message"]; |
1044 } | 1054 } |
1045 if (_json.containsKey("serviceContext")) { | 1055 if (_json.containsKey("serviceContext")) { |
1046 serviceContext = new ServiceContext.fromJson(_json["serviceContext"]); | 1056 serviceContext = new ServiceContext.fromJson(_json["serviceContext"]); |
1047 } | 1057 } |
1048 } | 1058 } |
1049 | 1059 |
1050 core.Map<core.String, core.Object> toJson() { | 1060 core.Map<core.String, core.Object> toJson() { |
1051 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1061 final core.Map<core.String, core.Object> _json = |
| 1062 new core.Map<core.String, core.Object>(); |
1052 if (context != null) { | 1063 if (context != null) { |
1053 _json["context"] = (context).toJson(); | 1064 _json["context"] = (context).toJson(); |
1054 } | 1065 } |
1055 if (eventTime != null) { | 1066 if (eventTime != null) { |
1056 _json["eventTime"] = eventTime; | 1067 _json["eventTime"] = eventTime; |
1057 } | 1068 } |
1058 if (message != null) { | 1069 if (message != null) { |
1059 _json["message"] = message; | 1070 _json["message"] = message; |
1060 } | 1071 } |
1061 if (serviceContext != null) { | 1072 if (serviceContext != null) { |
1062 _json["serviceContext"] = (serviceContext).toJson(); | 1073 _json["serviceContext"] = (serviceContext).toJson(); |
1063 } | 1074 } |
1064 return _json; | 1075 return _json; |
1065 } | 1076 } |
1066 } | 1077 } |
1067 | 1078 |
1068 /** | 1079 /// Describes a running service that sends errors. |
1069 * Describes a running service that sends errors. | 1080 /// Its version changes over time and multiple versions can run in parallel. |
1070 * Its version changes over time and multiple versions can run in parallel. | |
1071 */ | |
1072 class ServiceContext { | 1081 class ServiceContext { |
1073 /** | 1082 /// Type of the MonitoredResource. List of possible values: |
1074 * Type of the MonitoredResource. List of possible values: | 1083 /// https://cloud.google.com/monitoring/api/resources |
1075 * https://cloud.google.com/monitoring/api/resources | 1084 /// |
1076 * | 1085 /// Value is set automatically for incoming errors and must not be set when |
1077 * Value is set automatically for incoming errors and must not be set when | 1086 /// reporting errors. |
1078 * reporting errors. | |
1079 */ | |
1080 core.String resourceType; | 1087 core.String resourceType; |
1081 /** | 1088 |
1082 * An identifier of the service, such as the name of the | 1089 /// An identifier of the service, such as the name of the |
1083 * executable, job, or Google App Engine service name. This field is expected | 1090 /// executable, job, or Google App Engine service name. This field is |
1084 * to have a low number of values that are relatively stable over time, as | 1091 /// expected |
1085 * opposed to `version`, which can be changed whenever new code is deployed. | 1092 /// to have a low number of values that are relatively stable over time, as |
1086 * | 1093 /// opposed to `version`, which can be changed whenever new code is deployed. |
1087 * Contains the service name for error reports extracted from Google | 1094 /// |
1088 * App Engine logs or `default` if the App Engine default service is used. | 1095 /// Contains the service name for error reports extracted from Google |
1089 */ | 1096 /// App Engine logs or `default` if the App Engine default service is used. |
1090 core.String service; | 1097 core.String service; |
1091 /** | 1098 |
1092 * Represents the source code version that the developer provided, | 1099 /// Represents the source code version that the developer provided, |
1093 * which could represent a version label or a Git SHA-1 hash, for example. | 1100 /// which could represent a version label or a Git SHA-1 hash, for example. |
1094 * For App Engine standard environment, the version is set to the version of | 1101 /// For App Engine standard environment, the version is set to the version of |
1095 * the app. | 1102 /// the app. |
1096 */ | |
1097 core.String version; | 1103 core.String version; |
1098 | 1104 |
1099 ServiceContext(); | 1105 ServiceContext(); |
1100 | 1106 |
1101 ServiceContext.fromJson(core.Map _json) { | 1107 ServiceContext.fromJson(core.Map _json) { |
1102 if (_json.containsKey("resourceType")) { | 1108 if (_json.containsKey("resourceType")) { |
1103 resourceType = _json["resourceType"]; | 1109 resourceType = _json["resourceType"]; |
1104 } | 1110 } |
1105 if (_json.containsKey("service")) { | 1111 if (_json.containsKey("service")) { |
1106 service = _json["service"]; | 1112 service = _json["service"]; |
1107 } | 1113 } |
1108 if (_json.containsKey("version")) { | 1114 if (_json.containsKey("version")) { |
1109 version = _json["version"]; | 1115 version = _json["version"]; |
1110 } | 1116 } |
1111 } | 1117 } |
1112 | 1118 |
1113 core.Map<core.String, core.Object> toJson() { | 1119 core.Map<core.String, core.Object> toJson() { |
1114 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1120 final core.Map<core.String, core.Object> _json = |
| 1121 new core.Map<core.String, core.Object>(); |
1115 if (resourceType != null) { | 1122 if (resourceType != null) { |
1116 _json["resourceType"] = resourceType; | 1123 _json["resourceType"] = resourceType; |
1117 } | 1124 } |
1118 if (service != null) { | 1125 if (service != null) { |
1119 _json["service"] = service; | 1126 _json["service"] = service; |
1120 } | 1127 } |
1121 if (version != null) { | 1128 if (version != null) { |
1122 _json["version"] = version; | 1129 _json["version"] = version; |
1123 } | 1130 } |
1124 return _json; | 1131 return _json; |
1125 } | 1132 } |
1126 } | 1133 } |
1127 | 1134 |
1128 /** | 1135 /// Indicates a location in the source code of the service for which errors are |
1129 * Indicates a location in the source code of the service for which errors are | 1136 /// reported. `functionName` must be provided by the application when reporting |
1130 * reported. `functionName` must be provided by the application when reporting | 1137 /// an error, unless the error report contains a `message` with a supported |
1131 * an error, unless the error report contains a `message` with a supported | 1138 /// exception stack trace. All fields are optional for the later case. |
1132 * exception stack trace. All fields are optional for the later case. | |
1133 */ | |
1134 class SourceLocation { | 1139 class SourceLocation { |
1135 /** | 1140 /// The source code filename, which can include a truncated relative |
1136 * The source code filename, which can include a truncated relative | 1141 /// path, or a full path from a production machine. |
1137 * path, or a full path from a production machine. | |
1138 */ | |
1139 core.String filePath; | 1142 core.String filePath; |
1140 /** | 1143 |
1141 * Human-readable name of a function or method. | 1144 /// Human-readable name of a function or method. |
1142 * The value can include optional context like the class or package name. | 1145 /// The value can include optional context like the class or package name. |
1143 * For example, `my.package.MyClass.method` in case of Java. | 1146 /// For example, `my.package.MyClass.method` in case of Java. |
1144 */ | |
1145 core.String functionName; | 1147 core.String functionName; |
1146 /** 1-based. 0 indicates that the line number is unknown. */ | 1148 |
| 1149 /// 1-based. 0 indicates that the line number is unknown. |
1147 core.int lineNumber; | 1150 core.int lineNumber; |
1148 | 1151 |
1149 SourceLocation(); | 1152 SourceLocation(); |
1150 | 1153 |
1151 SourceLocation.fromJson(core.Map _json) { | 1154 SourceLocation.fromJson(core.Map _json) { |
1152 if (_json.containsKey("filePath")) { | 1155 if (_json.containsKey("filePath")) { |
1153 filePath = _json["filePath"]; | 1156 filePath = _json["filePath"]; |
1154 } | 1157 } |
1155 if (_json.containsKey("functionName")) { | 1158 if (_json.containsKey("functionName")) { |
1156 functionName = _json["functionName"]; | 1159 functionName = _json["functionName"]; |
1157 } | 1160 } |
1158 if (_json.containsKey("lineNumber")) { | 1161 if (_json.containsKey("lineNumber")) { |
1159 lineNumber = _json["lineNumber"]; | 1162 lineNumber = _json["lineNumber"]; |
1160 } | 1163 } |
1161 } | 1164 } |
1162 | 1165 |
1163 core.Map<core.String, core.Object> toJson() { | 1166 core.Map<core.String, core.Object> toJson() { |
1164 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1167 final core.Map<core.String, core.Object> _json = |
| 1168 new core.Map<core.String, core.Object>(); |
1165 if (filePath != null) { | 1169 if (filePath != null) { |
1166 _json["filePath"] = filePath; | 1170 _json["filePath"] = filePath; |
1167 } | 1171 } |
1168 if (functionName != null) { | 1172 if (functionName != null) { |
1169 _json["functionName"] = functionName; | 1173 _json["functionName"] = functionName; |
1170 } | 1174 } |
1171 if (lineNumber != null) { | 1175 if (lineNumber != null) { |
1172 _json["lineNumber"] = lineNumber; | 1176 _json["lineNumber"] = lineNumber; |
1173 } | 1177 } |
1174 return _json; | 1178 return _json; |
1175 } | 1179 } |
1176 } | 1180 } |
1177 | 1181 |
1178 /** | 1182 /// A reference to a particular snapshot of the source tree used to build and |
1179 * A reference to a particular snapshot of the source tree used to build and | 1183 /// deploy an application. |
1180 * deploy an application. | |
1181 */ | |
1182 class SourceReference { | 1184 class SourceReference { |
1183 /** | 1185 /// Optional. A URI string identifying the repository. |
1184 * Optional. A URI string identifying the repository. | 1186 /// Example: "https://github.com/GoogleCloudPlatform/kubernetes.git" |
1185 * Example: "https://github.com/GoogleCloudPlatform/kubernetes.git" | |
1186 */ | |
1187 core.String repository; | 1187 core.String repository; |
1188 /** | 1188 |
1189 * The canonical and persistent identifier of the deployed revision. | 1189 /// The canonical and persistent identifier of the deployed revision. |
1190 * Example (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b" | 1190 /// Example (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b" |
1191 */ | |
1192 core.String revisionId; | 1191 core.String revisionId; |
1193 | 1192 |
1194 SourceReference(); | 1193 SourceReference(); |
1195 | 1194 |
1196 SourceReference.fromJson(core.Map _json) { | 1195 SourceReference.fromJson(core.Map _json) { |
1197 if (_json.containsKey("repository")) { | 1196 if (_json.containsKey("repository")) { |
1198 repository = _json["repository"]; | 1197 repository = _json["repository"]; |
1199 } | 1198 } |
1200 if (_json.containsKey("revisionId")) { | 1199 if (_json.containsKey("revisionId")) { |
1201 revisionId = _json["revisionId"]; | 1200 revisionId = _json["revisionId"]; |
1202 } | 1201 } |
1203 } | 1202 } |
1204 | 1203 |
1205 core.Map<core.String, core.Object> toJson() { | 1204 core.Map<core.String, core.Object> toJson() { |
1206 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1205 final core.Map<core.String, core.Object> _json = |
| 1206 new core.Map<core.String, core.Object>(); |
1207 if (repository != null) { | 1207 if (repository != null) { |
1208 _json["repository"] = repository; | 1208 _json["repository"] = repository; |
1209 } | 1209 } |
1210 if (revisionId != null) { | 1210 if (revisionId != null) { |
1211 _json["revisionId"] = revisionId; | 1211 _json["revisionId"] = revisionId; |
1212 } | 1212 } |
1213 return _json; | 1213 return _json; |
1214 } | 1214 } |
1215 } | 1215 } |
1216 | 1216 |
1217 /** | 1217 /// The number of errors in a given time period. |
1218 * The number of errors in a given time period. | 1218 /// All numbers are approximate since the error events are sampled |
1219 * All numbers are approximate since the error events are sampled | 1219 /// before counting them. |
1220 * before counting them. | |
1221 */ | |
1222 class TimedCount { | 1220 class TimedCount { |
1223 /** Approximate number of occurrences in the given time period. */ | 1221 /// Approximate number of occurrences in the given time period. |
1224 core.String count; | 1222 core.String count; |
1225 /** End of the time period to which `count` refers (excluded). */ | 1223 |
| 1224 /// End of the time period to which `count` refers (excluded). |
1226 core.String endTime; | 1225 core.String endTime; |
1227 /** Start of the time period to which `count` refers (included). */ | 1226 |
| 1227 /// Start of the time period to which `count` refers (included). |
1228 core.String startTime; | 1228 core.String startTime; |
1229 | 1229 |
1230 TimedCount(); | 1230 TimedCount(); |
1231 | 1231 |
1232 TimedCount.fromJson(core.Map _json) { | 1232 TimedCount.fromJson(core.Map _json) { |
1233 if (_json.containsKey("count")) { | 1233 if (_json.containsKey("count")) { |
1234 count = _json["count"]; | 1234 count = _json["count"]; |
1235 } | 1235 } |
1236 if (_json.containsKey("endTime")) { | 1236 if (_json.containsKey("endTime")) { |
1237 endTime = _json["endTime"]; | 1237 endTime = _json["endTime"]; |
1238 } | 1238 } |
1239 if (_json.containsKey("startTime")) { | 1239 if (_json.containsKey("startTime")) { |
1240 startTime = _json["startTime"]; | 1240 startTime = _json["startTime"]; |
1241 } | 1241 } |
1242 } | 1242 } |
1243 | 1243 |
1244 core.Map<core.String, core.Object> toJson() { | 1244 core.Map<core.String, core.Object> toJson() { |
1245 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1245 final core.Map<core.String, core.Object> _json = |
| 1246 new core.Map<core.String, core.Object>(); |
1246 if (count != null) { | 1247 if (count != null) { |
1247 _json["count"] = count; | 1248 _json["count"] = count; |
1248 } | 1249 } |
1249 if (endTime != null) { | 1250 if (endTime != null) { |
1250 _json["endTime"] = endTime; | 1251 _json["endTime"] = endTime; |
1251 } | 1252 } |
1252 if (startTime != null) { | 1253 if (startTime != null) { |
1253 _json["startTime"] = startTime; | 1254 _json["startTime"] = startTime; |
1254 } | 1255 } |
1255 return _json; | 1256 return _json; |
1256 } | 1257 } |
1257 } | 1258 } |
1258 | 1259 |
1259 /** Information related to tracking the progress on resolving the error. */ | 1260 /// Information related to tracking the progress on resolving the error. |
1260 class TrackingIssue { | 1261 class TrackingIssue { |
1261 /** | 1262 /// A URL pointing to a related entry in an issue tracking system. |
1262 * A URL pointing to a related entry in an issue tracking system. | 1263 /// Example: https://github.com/user/project/issues/4 |
1263 * Example: https://github.com/user/project/issues/4 | |
1264 */ | |
1265 core.String url; | 1264 core.String url; |
1266 | 1265 |
1267 TrackingIssue(); | 1266 TrackingIssue(); |
1268 | 1267 |
1269 TrackingIssue.fromJson(core.Map _json) { | 1268 TrackingIssue.fromJson(core.Map _json) { |
1270 if (_json.containsKey("url")) { | 1269 if (_json.containsKey("url")) { |
1271 url = _json["url"]; | 1270 url = _json["url"]; |
1272 } | 1271 } |
1273 } | 1272 } |
1274 | 1273 |
1275 core.Map<core.String, core.Object> toJson() { | 1274 core.Map<core.String, core.Object> toJson() { |
1276 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1275 final core.Map<core.String, core.Object> _json = |
| 1276 new core.Map<core.String, core.Object>(); |
1277 if (url != null) { | 1277 if (url != null) { |
1278 _json["url"] = url; | 1278 _json["url"] = url; |
1279 } | 1279 } |
1280 return _json; | 1280 return _json; |
1281 } | 1281 } |
1282 } | 1282 } |
OLD | NEW |