Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis_beta.clouderrorreporting.v1beta1; 3 library googleapis_beta.clouderrorreporting.v1beta1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 * Request parameters: 103 * Request parameters:
104 * 104 *
105 * [projectName] - [Required] The resource name of the Google Cloud Platform 105 * [projectName] - [Required] The resource name of the Google Cloud Platform
106 * project. Written 106 * project. Written
107 * as `projects/` plus the 107 * as `projects/` plus the
108 * [Google Cloud Platform project 108 * [Google Cloud Platform project
109 * ID](https://support.google.com/cloud/answer/6158840). 109 * ID](https://support.google.com/cloud/answer/6158840).
110 * Example: `projects/my-project-123`. 110 * Example: `projects/my-project-123`.
111 * Value must have pattern "^projects/[^/]+$". 111 * Value must have pattern "^projects/[^/]+$".
112 * 112 *
113 * [groupId] - [Required] The group for which events shall be returned.
114 *
115 * [pageToken] - [Optional] A `next_page_token` provided by a previous
116 * response.
117 *
118 * [serviceFilter_service] - [Optional] The exact value to match against
119 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC ontext#FIELDS.service).
120 *
113 * [pageSize] - [Optional] The maximum number of results to return per 121 * [pageSize] - [Optional] The maximum number of results to return per
114 * response. 122 * response.
115 * 123 *
116 * [serviceFilter_version] - [Optional] The exact value to match against 124 * [serviceFilter_version] - [Optional] The exact value to match against
117 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC ontext#FIELDS.version). 125 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC ontext#FIELDS.version).
118 * 126 *
119 * [serviceFilter_resourceType] - [Optional] The exact value to match against 127 * [serviceFilter_resourceType] - [Optional] The exact value to match against
120 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se rviceContext#FIELDS.resource_type). 128 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se rviceContext#FIELDS.resource_type).
121 * 129 *
122 * [timeRange_period] - Restricts the query to the specified time range. 130 * [timeRange_period] - Restricts the query to the specified time range.
123 * Possible string values are: 131 * Possible string values are:
124 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. 132 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED.
125 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. 133 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR.
126 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. 134 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS.
127 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. 135 * - "PERIOD_1_DAY" : A PERIOD_1_DAY.
128 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. 136 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK.
129 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. 137 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS.
130 * 138 *
131 * [groupId] - [Required] The group for which events shall be returned.
132 *
133 * [serviceFilter_service] - [Optional] The exact value to match against
134 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC ontext#FIELDS.service).
135 *
136 * [pageToken] - [Optional] A `next_page_token` provided by a previous
137 * response.
138 *
139 * Completes with a [ListEventsResponse]. 139 * Completes with a [ListEventsResponse].
140 * 140 *
141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
142 * error. 142 * error.
143 * 143 *
144 * If the used [http.Client] completes with an error when making a REST call, 144 * If the used [http.Client] completes with an error when making a REST call,
145 * this method will complete with the same error. 145 * this method will complete with the same error.
146 */ 146 */
147 async.Future<ListEventsResponse> list(core.String projectName, {core.int pageS ize, core.String serviceFilter_version, core.String serviceFilter_resourceType, core.String timeRange_period, core.String groupId, core.String serviceFilter_ser vice, core.String pageToken}) { 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}) {
148 var _url = null; 148 var _url = null;
149 var _queryParams = new core.Map(); 149 var _queryParams = new core.Map();
150 var _uploadMedia = null; 150 var _uploadMedia = null;
151 var _uploadOptions = null; 151 var _uploadOptions = null;
152 var _downloadOptions = commons.DownloadOptions.Metadata; 152 var _downloadOptions = commons.DownloadOptions.Metadata;
153 var _body = null; 153 var _body = null;
154 154
155 if (projectName == null) { 155 if (projectName == null) {
156 throw new core.ArgumentError("Parameter projectName is required."); 156 throw new core.ArgumentError("Parameter projectName is required.");
157 } 157 }
158 if (groupId != null) {
159 _queryParams["groupId"] = [groupId];
160 }
161 if (pageToken != null) {
162 _queryParams["pageToken"] = [pageToken];
163 }
164 if (serviceFilter_service != null) {
165 _queryParams["serviceFilter.service"] = [serviceFilter_service];
166 }
158 if (pageSize != null) { 167 if (pageSize != null) {
159 _queryParams["pageSize"] = ["${pageSize}"]; 168 _queryParams["pageSize"] = ["${pageSize}"];
160 } 169 }
161 if (serviceFilter_version != null) { 170 if (serviceFilter_version != null) {
162 _queryParams["serviceFilter.version"] = [serviceFilter_version]; 171 _queryParams["serviceFilter.version"] = [serviceFilter_version];
163 } 172 }
164 if (serviceFilter_resourceType != null) { 173 if (serviceFilter_resourceType != null) {
165 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; 174 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType];
166 } 175 }
167 if (timeRange_period != null) { 176 if (timeRange_period != null) {
168 _queryParams["timeRange.period"] = [timeRange_period]; 177 _queryParams["timeRange.period"] = [timeRange_period];
169 } 178 }
170 if (groupId != null) {
171 _queryParams["groupId"] = [groupId];
172 }
173 if (serviceFilter_service != null) {
174 _queryParams["serviceFilter.service"] = [serviceFilter_service];
175 }
176 if (pageToken != null) {
177 _queryParams["pageToken"] = [pageToken];
178 }
179 179
180 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') + '/events'; 180 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') + '/events';
181 181
182 var _response = _requester.request(_url, 182 var _response = _requester.request(_url,
183 "GET", 183 "GET",
184 body: _body, 184 body: _body,
185 queryParams: _queryParams, 185 queryParams: _queryParams,
186 uploadOptions: _uploadOptions, 186 uploadOptions: _uploadOptions,
187 uploadMedia: _uploadMedia, 187 uploadMedia: _uploadMedia,
188 downloadOptions: _downloadOptions); 188 downloadOptions: _downloadOptions);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these 290 * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these
291 * IDs. 291 * IDs.
292 * 292 *
293 * [serviceFilter_service] - [Optional] The exact value to match against 293 * [serviceFilter_service] - [Optional] The exact value to match against
294 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC ontext#FIELDS.service). 294 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC ontext#FIELDS.service).
295 * 295 *
296 * [pageSize] - [Optional] The maximum number of results to return per 296 * [pageSize] - [Optional] The maximum number of results to return per
297 * response. 297 * response.
298 * Default is 20. 298 * Default is 20.
299 * 299 *
300 * [serviceFilter_version] - [Optional] The exact value to match against
301 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC ontext#FIELDS.version).
302 *
303 * [order] - [Optional] The sort order in which the results are returned. 300 * [order] - [Optional] The sort order in which the results are returned.
304 * Default is `COUNT_DESC`. 301 * Default is `COUNT_DESC`.
305 * Possible string values are: 302 * Possible string values are:
306 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. 303 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED.
307 * - "COUNT_DESC" : A COUNT_DESC. 304 * - "COUNT_DESC" : A COUNT_DESC.
308 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. 305 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC.
309 * - "CREATED_DESC" : A CREATED_DESC. 306 * - "CREATED_DESC" : A CREATED_DESC.
310 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. 307 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC.
311 * 308 *
309 * [serviceFilter_version] - [Optional] The exact value to match against
310 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC ontext#FIELDS.version).
311 *
312 * [serviceFilter_resourceType] - [Optional] The exact value to match against
313 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se rviceContext#FIELDS.resource_type).
314 *
312 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned 315 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned
313 * if rounded 316 * if rounded
314 * alignment is chosen. Default is 00:00 UTC. 317 * alignment is chosen. Default is 00:00 UTC.
315 * 318 *
316 * [serviceFilter_resourceType] - [Optional] The exact value to match against
317 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se rviceContext#FIELDS.resource_type).
318 *
319 * [timedCountDuration] - [Optional] The preferred duration for a single 319 * [timedCountDuration] - [Optional] The preferred duration for a single
320 * returned `TimedCount`. 320 * returned `TimedCount`.
321 * If not set, no timed counts are returned. 321 * If not set, no timed counts are returned.
322 * 322 *
323 * [pageToken] - [Optional] A `next_page_token` provided by a previous 323 * [pageToken] - [Optional] A `next_page_token` provided by a previous
324 * response. To view 324 * response. To view
325 * additional results, pass this token along with the identical query 325 * additional results, pass this token along with the identical query
326 * parameters as the first request. 326 * parameters as the first request.
327 * 327 *
328 * Completes with a [ListGroupStatsResponse]. 328 * Completes with a [ListGroupStatsResponse].
329 * 329 *
330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
331 * error. 331 * error.
332 * 332 *
333 * If the used [http.Client] completes with an error when making a REST call, 333 * If the used [http.Client] completes with an error when making a REST call,
334 * this method will complete with the same error. 334 * this method will complete with the same error.
335 */ 335 */
336 async.Future<ListGroupStatsResponse> list(core.String projectName, {core.Strin g timeRange_period, core.String alignment, core.List<core.String> groupId, core. String serviceFilter_service, core.int pageSize, core.String serviceFilter_versi on, core.String order, core.String alignmentTime, core.String serviceFilter_reso urceType, core.String timedCountDuration, core.String pageToken}) { 336 async.Future<ListGroupStatsResponse> list(core.String projectName, {core.Strin g timeRange_period, core.String alignment, core.List<core.String> groupId, core. String serviceFilter_service, core.int pageSize, core.String order, core.String serviceFilter_version, core.String serviceFilter_resourceType, core.String align mentTime, core.String timedCountDuration, core.String pageToken}) {
337 var _url = null; 337 var _url = null;
338 var _queryParams = new core.Map(); 338 var _queryParams = new core.Map();
339 var _uploadMedia = null; 339 var _uploadMedia = null;
340 var _uploadOptions = null; 340 var _uploadOptions = null;
341 var _downloadOptions = commons.DownloadOptions.Metadata; 341 var _downloadOptions = commons.DownloadOptions.Metadata;
342 var _body = null; 342 var _body = null;
343 343
344 if (projectName == null) { 344 if (projectName == null) {
345 throw new core.ArgumentError("Parameter projectName is required."); 345 throw new core.ArgumentError("Parameter projectName is required.");
346 } 346 }
347 if (timeRange_period != null) { 347 if (timeRange_period != null) {
348 _queryParams["timeRange.period"] = [timeRange_period]; 348 _queryParams["timeRange.period"] = [timeRange_period];
349 } 349 }
350 if (alignment != null) { 350 if (alignment != null) {
351 _queryParams["alignment"] = [alignment]; 351 _queryParams["alignment"] = [alignment];
352 } 352 }
353 if (groupId != null) { 353 if (groupId != null) {
354 _queryParams["groupId"] = groupId; 354 _queryParams["groupId"] = groupId;
355 } 355 }
356 if (serviceFilter_service != null) { 356 if (serviceFilter_service != null) {
357 _queryParams["serviceFilter.service"] = [serviceFilter_service]; 357 _queryParams["serviceFilter.service"] = [serviceFilter_service];
358 } 358 }
359 if (pageSize != null) { 359 if (pageSize != null) {
360 _queryParams["pageSize"] = ["${pageSize}"]; 360 _queryParams["pageSize"] = ["${pageSize}"];
361 } 361 }
362 if (order != null) {
363 _queryParams["order"] = [order];
364 }
362 if (serviceFilter_version != null) { 365 if (serviceFilter_version != null) {
363 _queryParams["serviceFilter.version"] = [serviceFilter_version]; 366 _queryParams["serviceFilter.version"] = [serviceFilter_version];
364 } 367 }
365 if (order != null) { 368 if (serviceFilter_resourceType != null) {
366 _queryParams["order"] = [order]; 369 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType];
367 } 370 }
368 if (alignmentTime != null) { 371 if (alignmentTime != null) {
369 _queryParams["alignmentTime"] = [alignmentTime]; 372 _queryParams["alignmentTime"] = [alignmentTime];
370 } 373 }
371 if (serviceFilter_resourceType != null) {
372 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType];
373 }
374 if (timedCountDuration != null) { 374 if (timedCountDuration != null) {
375 _queryParams["timedCountDuration"] = [timedCountDuration]; 375 _queryParams["timedCountDuration"] = [timedCountDuration];
376 } 376 }
377 if (pageToken != null) { 377 if (pageToken != null) {
378 _queryParams["pageToken"] = [pageToken]; 378 _queryParams["pageToken"] = [pageToken];
379 } 379 }
380 380
381 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') + '/groupStats'; 381 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') + '/groupStats';
382 382
383 var _response = _requester.request(_url, 383 var _response = _requester.request(_url,
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 } 1273 }
1274 1274
1275 core.Map<core.String, core.Object> toJson() { 1275 core.Map<core.String, core.Object> toJson() {
1276 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1276 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
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 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/appengine/v1beta5.dart ('k') | generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698