Chromium Code Reviews

Side by Side Diff: generated/googleapis/lib/monitoring/v3.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « generated/googleapis/lib/manufacturers/v1.dart ('k') | generated/googleapis/lib/people/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.monitoring.v3; 3 library googleapis.monitoring.v3;
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 251 matching lines...)
262 262
263 /** 263 /**
264 * Lists the existing groups. 264 * Lists the existing groups.
265 * 265 *
266 * Request parameters: 266 * Request parameters:
267 * 267 *
268 * [name] - The project whose groups are to be listed. The format is 268 * [name] - The project whose groups are to be listed. The format is
269 * "projects/{project_id_or_number}". 269 * "projects/{project_id_or_number}".
270 * Value must have pattern "^projects/[^/]+$". 270 * Value must have pattern "^projects/[^/]+$".
271 * 271 *
272 * [descendantsOfGroup] - A group name: 272 * [pageToken] - If this field is not empty then it must contain the
273 * "projects/{project_id_or_number}/groups/{group_id}". Returns the 273 * nextPageToken value returned by a previous call to this method. Using this
274 * descendants of the specified group. This is a superset of the results 274 * field causes the method to return additional results from the previous
275 * returned by the childrenOfGroup filter, and includes children-of-children, 275 * method call.
276 * and so forth.
277 * 276 *
278 * [pageSize] - A positive number that is the maximum number of results to 277 * [pageSize] - A positive number that is the maximum number of results to
279 * return. 278 * return.
280 * 279 *
281 * [childrenOfGroup] - A group name:
282 * "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose
283 * parentName field contains the group name. If no groups have this parent,
284 * the results are empty.
285 *
286 * [ancestorsOfGroup] - A group name: 280 * [ancestorsOfGroup] - A group name:
287 * "projects/{project_id_or_number}/groups/{group_id}". Returns groups that 281 * "projects/{project_id_or_number}/groups/{group_id}". Returns groups that
288 * are ancestors of the specified group. The groups are returned in order, 282 * are ancestors of the specified group. The groups are returned in order,
289 * starting with the immediate parent and ending with the most distant 283 * starting with the immediate parent and ending with the most distant
290 * ancestor. If the specified group has no immediate parent, the results are 284 * ancestor. If the specified group has no immediate parent, the results are
291 * empty. 285 * empty.
292 * 286 *
293 * [pageToken] - If this field is not empty then it must contain the 287 * [childrenOfGroup] - A group name:
294 * nextPageToken value returned by a previous call to this method. Using this 288 * "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose
295 * field causes the method to return additional results from the previous 289 * parentName field contains the group name. If no groups have this parent,
296 * method call. 290 * the results are empty.
291 *
292 * [descendantsOfGroup] - A group name:
293 * "projects/{project_id_or_number}/groups/{group_id}". Returns the
294 * descendants of the specified group. This is a superset of the results
295 * returned by the childrenOfGroup filter, and includes children-of-children,
296 * and so forth.
297 * 297 *
298 * Completes with a [ListGroupsResponse]. 298 * Completes with a [ListGroupsResponse].
299 * 299 *
300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
301 * error. 301 * error.
302 * 302 *
303 * If the used [http.Client] completes with an error when making a REST call, 303 * If the used [http.Client] completes with an error when making a REST call,
304 * this method will complete with the same error. 304 * this method will complete with the same error.
305 */ 305 */
306 async.Future<ListGroupsResponse> list(core.String name, {core.String descendan tsOfGroup, core.int pageSize, core.String childrenOfGroup, core.String ancestors OfGroup, core.String pageToken}) { 306 async.Future<ListGroupsResponse> list(core.String name, {core.String pageToken , core.int pageSize, core.String ancestorsOfGroup, core.String childrenOfGroup, core.String descendantsOfGroup}) {
307 var _url = null; 307 var _url = null;
308 var _queryParams = new core.Map(); 308 var _queryParams = new core.Map();
309 var _uploadMedia = null; 309 var _uploadMedia = null;
310 var _uploadOptions = null; 310 var _uploadOptions = null;
311 var _downloadOptions = commons.DownloadOptions.Metadata; 311 var _downloadOptions = commons.DownloadOptions.Metadata;
312 var _body = null; 312 var _body = null;
313 313
314 if (name == null) { 314 if (name == null) {
315 throw new core.ArgumentError("Parameter name is required."); 315 throw new core.ArgumentError("Parameter name is required.");
316 } 316 }
317 if (pageToken != null) {
318 _queryParams["pageToken"] = [pageToken];
319 }
320 if (pageSize != null) {
321 _queryParams["pageSize"] = ["${pageSize}"];
322 }
323 if (ancestorsOfGroup != null) {
324 _queryParams["ancestorsOfGroup"] = [ancestorsOfGroup];
325 }
326 if (childrenOfGroup != null) {
327 _queryParams["childrenOfGroup"] = [childrenOfGroup];
328 }
317 if (descendantsOfGroup != null) { 329 if (descendantsOfGroup != null) {
318 _queryParams["descendantsOfGroup"] = [descendantsOfGroup]; 330 _queryParams["descendantsOfGroup"] = [descendantsOfGroup];
319 } 331 }
320 if (pageSize != null) {
321 _queryParams["pageSize"] = ["${pageSize}"];
322 }
323 if (childrenOfGroup != null) {
324 _queryParams["childrenOfGroup"] = [childrenOfGroup];
325 }
326 if (ancestorsOfGroup != null) {
327 _queryParams["ancestorsOfGroup"] = [ancestorsOfGroup];
328 }
329 if (pageToken != null) {
330 _queryParams["pageToken"] = [pageToken];
331 }
332 332
333 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/groups'; 333 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/groups';
334 334
335 var _response = _requester.request(_url, 335 var _response = _requester.request(_url,
336 "GET", 336 "GET",
337 body: _body, 337 body: _body,
338 queryParams: _queryParams, 338 queryParams: _queryParams,
339 uploadOptions: _uploadOptions, 339 uploadOptions: _uploadOptions,
340 uploadMedia: _uploadMedia, 340 uploadMedia: _uploadMedia,
341 downloadOptions: _downloadOptions); 341 downloadOptions: _downloadOptions);
(...skipping 66 matching lines...)
408 408
409 /** 409 /**
410 * Lists the monitored resources that are members of a group. 410 * Lists the monitored resources that are members of a group.
411 * 411 *
412 * Request parameters: 412 * Request parameters:
413 * 413 *
414 * [name] - The group whose members are listed. The format is 414 * [name] - The group whose members are listed. The format is
415 * "projects/{project_id_or_number}/groups/{group_id}". 415 * "projects/{project_id_or_number}/groups/{group_id}".
416 * Value must have pattern "^projects/[^/]+/groups/[^/]+$". 416 * Value must have pattern "^projects/[^/]+/groups/[^/]+$".
417 * 417 *
418 * [interval_endTime] - Required. The end of the time interval.
419 *
418 * [filter] - An optional list filter describing the members to be returned. 420 * [filter] - An optional list filter describing the members to be returned.
419 * The filter may reference the type, labels, and metadata of monitored 421 * The filter may reference the type, labels, and metadata of monitored
420 * resources that comprise the group. For example, to return only resources 422 * resources that comprise the group. For example, to return only resources
421 * representing Compute Engine VM instances, use this filter: 423 * representing Compute Engine VM instances, use this filter:
422 * resource.type = "gce_instance" 424 * resource.type = "gce_instance"
423 * 425 *
424 * [interval_endTime] - Required. The end of the time interval. 426 * [pageToken] - If this field is not empty then it must contain the
427 * nextPageToken value returned by a previous call to this method. Using this
428 * field causes the method to return additional results from the previous
429 * method call.
425 * 430 *
426 * [interval_startTime] - Optional. The beginning of the time interval. The 431 * [interval_startTime] - Optional. The beginning of the time interval. The
427 * default value for the start time is the end time. The start time must not 432 * default value for the start time is the end time. The start time must not
428 * be later than the end time. 433 * be later than the end time.
429 * 434 *
430 * [pageSize] - A positive number that is the maximum number of results to 435 * [pageSize] - A positive number that is the maximum number of results to
431 * return. 436 * return.
432 * 437 *
433 * [pageToken] - If this field is not empty then it must contain the
434 * nextPageToken value returned by a previous call to this method. Using this
435 * field causes the method to return additional results from the previous
436 * method call.
437 *
438 * Completes with a [ListGroupMembersResponse]. 438 * Completes with a [ListGroupMembersResponse].
439 * 439 *
440 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 440 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
441 * error. 441 * error.
442 * 442 *
443 * If the used [http.Client] completes with an error when making a REST call, 443 * If the used [http.Client] completes with an error when making a REST call,
444 * this method will complete with the same error. 444 * this method will complete with the same error.
445 */ 445 */
446 async.Future<ListGroupMembersResponse> list(core.String name, {core.String fil ter, core.String interval_endTime, core.String interval_startTime, core.int page Size, core.String pageToken}) { 446 async.Future<ListGroupMembersResponse> list(core.String name, {core.String int erval_endTime, core.String filter, core.String pageToken, core.String interval_s tartTime, core.int pageSize}) {
447 var _url = null; 447 var _url = null;
448 var _queryParams = new core.Map(); 448 var _queryParams = new core.Map();
449 var _uploadMedia = null; 449 var _uploadMedia = null;
450 var _uploadOptions = null; 450 var _uploadOptions = null;
451 var _downloadOptions = commons.DownloadOptions.Metadata; 451 var _downloadOptions = commons.DownloadOptions.Metadata;
452 var _body = null; 452 var _body = null;
453 453
454 if (name == null) { 454 if (name == null) {
455 throw new core.ArgumentError("Parameter name is required."); 455 throw new core.ArgumentError("Parameter name is required.");
456 } 456 }
457 if (interval_endTime != null) {
458 _queryParams["interval.endTime"] = [interval_endTime];
459 }
457 if (filter != null) { 460 if (filter != null) {
458 _queryParams["filter"] = [filter]; 461 _queryParams["filter"] = [filter];
459 } 462 }
460 if (interval_endTime != null) { 463 if (pageToken != null) {
461 _queryParams["interval.endTime"] = [interval_endTime]; 464 _queryParams["pageToken"] = [pageToken];
462 } 465 }
463 if (interval_startTime != null) { 466 if (interval_startTime != null) {
464 _queryParams["interval.startTime"] = [interval_startTime]; 467 _queryParams["interval.startTime"] = [interval_startTime];
465 } 468 }
466 if (pageSize != null) { 469 if (pageSize != null) {
467 _queryParams["pageSize"] = ["${pageSize}"]; 470 _queryParams["pageSize"] = ["${pageSize}"];
468 } 471 }
469 if (pageToken != null) {
470 _queryParams["pageToken"] = [pageToken];
471 }
472 472
473 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/members'; 473 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/members';
474 474
475 var _response = _requester.request(_url, 475 var _response = _requester.request(_url,
476 "GET", 476 "GET",
477 body: _body, 477 body: _body,
478 queryParams: _queryParams, 478 queryParams: _queryParams,
479 uploadOptions: _uploadOptions, 479 uploadOptions: _uploadOptions,
480 uploadMedia: _uploadMedia, 480 uploadMedia: _uploadMedia,
481 downloadOptions: _downloadOptions); 481 downloadOptions: _downloadOptions);
(...skipping 146 matching lines...)
628 /** 628 /**
629 * Lists metric descriptors that match a filter. This method does not require 629 * Lists metric descriptors that match a filter. This method does not require
630 * a Stackdriver account. 630 * a Stackdriver account.
631 * 631 *
632 * Request parameters: 632 * Request parameters:
633 * 633 *
634 * [name] - The project on which to execute the request. The format is 634 * [name] - The project on which to execute the request. The format is
635 * "projects/{project_id_or_number}". 635 * "projects/{project_id_or_number}".
636 * Value must have pattern "^projects/[^/]+$". 636 * Value must have pattern "^projects/[^/]+$".
637 * 637 *
638 * [pageToken] - If this field is not empty then it must contain the
639 * nextPageToken value returned by a previous call to this method. Using this
640 * field causes the method to return additional results from the previous
641 * method call.
642 *
638 * [pageSize] - A positive number that is the maximum number of results to 643 * [pageSize] - A positive number that is the maximum number of results to
639 * return. 644 * return.
640 * 645 *
641 * [filter] - If this field is empty, all custom and system-defined metric 646 * [filter] - If this field is empty, all custom and system-defined metric
642 * descriptors are returned. Otherwise, the filter specifies which metric 647 * descriptors are returned. Otherwise, the filter specifies which metric
643 * descriptors are to be returned. For example, the following filter matches 648 * descriptors are to be returned. For example, the following filter matches
644 * all custom metrics: 649 * all custom metrics:
645 * metric.type = starts_with("custom.googleapis.com/") 650 * metric.type = starts_with("custom.googleapis.com/")
646 * 651 *
647 * [pageToken] - If this field is not empty then it must contain the
648 * nextPageToken value returned by a previous call to this method. Using this
649 * field causes the method to return additional results from the previous
650 * method call.
651 *
652 * Completes with a [ListMetricDescriptorsResponse]. 652 * Completes with a [ListMetricDescriptorsResponse].
653 * 653 *
654 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 654 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
655 * error. 655 * error.
656 * 656 *
657 * If the used [http.Client] completes with an error when making a REST call, 657 * If the used [http.Client] completes with an error when making a REST call,
658 * this method will complete with the same error. 658 * this method will complete with the same error.
659 */ 659 */
660 async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.int p ageSize, core.String filter, core.String pageToken}) { 660 async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.Strin g pageToken, core.int pageSize, core.String filter}) {
661 var _url = null; 661 var _url = null;
662 var _queryParams = new core.Map(); 662 var _queryParams = new core.Map();
663 var _uploadMedia = null; 663 var _uploadMedia = null;
664 var _uploadOptions = null; 664 var _uploadOptions = null;
665 var _downloadOptions = commons.DownloadOptions.Metadata; 665 var _downloadOptions = commons.DownloadOptions.Metadata;
666 var _body = null; 666 var _body = null;
667 667
668 if (name == null) { 668 if (name == null) {
669 throw new core.ArgumentError("Parameter name is required."); 669 throw new core.ArgumentError("Parameter name is required.");
670 } 670 }
671 if (pageToken != null) {
672 _queryParams["pageToken"] = [pageToken];
673 }
671 if (pageSize != null) { 674 if (pageSize != null) {
672 _queryParams["pageSize"] = ["${pageSize}"]; 675 _queryParams["pageSize"] = ["${pageSize}"];
673 } 676 }
674 if (filter != null) { 677 if (filter != null) {
675 _queryParams["filter"] = [filter]; 678 _queryParams["filter"] = [filter];
676 } 679 }
677 if (pageToken != null) {
678 _queryParams["pageToken"] = [pageToken];
679 }
680 680
681 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/metricDesc riptors'; 681 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/metricDesc riptors';
682 682
683 var _response = _requester.request(_url, 683 var _response = _requester.request(_url,
684 "GET", 684 "GET",
685 body: _body, 685 body: _body,
686 queryParams: _queryParams, 686 queryParams: _queryParams,
687 uploadOptions: _uploadOptions, 687 uploadOptions: _uploadOptions,
688 uploadMedia: _uploadMedia, 688 uploadMedia: _uploadMedia,
689 downloadOptions: _downloadOptions); 689 downloadOptions: _downloadOptions);
(...skipping 56 matching lines...)
746 /** 746 /**
747 * Lists monitored resource descriptors that match a filter. This method does 747 * Lists monitored resource descriptors that match a filter. This method does
748 * not require a Stackdriver account. 748 * not require a Stackdriver account.
749 * 749 *
750 * Request parameters: 750 * Request parameters:
751 * 751 *
752 * [name] - The project on which to execute the request. The format is 752 * [name] - The project on which to execute the request. The format is
753 * "projects/{project_id_or_number}". 753 * "projects/{project_id_or_number}".
754 * Value must have pattern "^projects/[^/]+$". 754 * Value must have pattern "^projects/[^/]+$".
755 * 755 *
756 * [pageToken] - If this field is not empty then it must contain the
757 * nextPageToken value returned by a previous call to this method. Using this
758 * field causes the method to return additional results from the previous
759 * method call.
760 *
756 * [pageSize] - A positive number that is the maximum number of results to 761 * [pageSize] - A positive number that is the maximum number of results to
757 * return. 762 * return.
758 * 763 *
759 * [filter] - An optional filter describing the descriptors to be returned. 764 * [filter] - An optional filter describing the descriptors to be returned.
760 * The filter can reference the descriptor's type and labels. For example, the 765 * The filter can reference the descriptor's type and labels. For example, the
761 * following filter returns only Google Compute Engine descriptors that have 766 * following filter returns only Google Compute Engine descriptors that have
762 * an id label: 767 * an id label:
763 * resource.type = starts_with("gce_") AND resource.label:id 768 * resource.type = starts_with("gce_") AND resource.label:id
764 * 769 *
765 * [pageToken] - If this field is not empty then it must contain the
766 * nextPageToken value returned by a previous call to this method. Using this
767 * field causes the method to return additional results from the previous
768 * method call.
769 *
770 * Completes with a [ListMonitoredResourceDescriptorsResponse]. 770 * Completes with a [ListMonitoredResourceDescriptorsResponse].
771 * 771 *
772 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 772 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
773 * error. 773 * error.
774 * 774 *
775 * If the used [http.Client] completes with an error when making a REST call, 775 * If the used [http.Client] completes with an error when making a REST call,
776 * this method will complete with the same error. 776 * this method will complete with the same error.
777 */ 777 */
778 async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { 778 async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) {
779 var _url = null; 779 var _url = null;
780 var _queryParams = new core.Map(); 780 var _queryParams = new core.Map();
781 var _uploadMedia = null; 781 var _uploadMedia = null;
782 var _uploadOptions = null; 782 var _uploadOptions = null;
783 var _downloadOptions = commons.DownloadOptions.Metadata; 783 var _downloadOptions = commons.DownloadOptions.Metadata;
784 var _body = null; 784 var _body = null;
785 785
786 if (name == null) { 786 if (name == null) {
787 throw new core.ArgumentError("Parameter name is required."); 787 throw new core.ArgumentError("Parameter name is required.");
788 } 788 }
789 if (pageToken != null) {
790 _queryParams["pageToken"] = [pageToken];
791 }
789 if (pageSize != null) { 792 if (pageSize != null) {
790 _queryParams["pageSize"] = ["${pageSize}"]; 793 _queryParams["pageSize"] = ["${pageSize}"];
791 } 794 }
792 if (filter != null) { 795 if (filter != null) {
793 _queryParams["filter"] = [filter]; 796 _queryParams["filter"] = [filter];
794 } 797 }
795 if (pageToken != null) {
796 _queryParams["pageToken"] = [pageToken];
797 }
798 798
799 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/monitoredR esourceDescriptors'; 799 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/monitoredR esourceDescriptors';
800 800
801 var _response = _requester.request(_url, 801 var _response = _requester.request(_url,
802 "GET", 802 "GET",
803 body: _body, 803 body: _body,
804 queryParams: _queryParams, 804 queryParams: _queryParams,
805 uploadOptions: _uploadOptions, 805 uploadOptions: _uploadOptions,
806 uploadMedia: _uploadMedia, 806 uploadMedia: _uploadMedia,
807 downloadOptions: _downloadOptions); 807 downloadOptions: _downloadOptions);
(...skipping 61 matching lines...)
869 /** 869 /**
870 * Lists time series that match a filter. This method does not require a 870 * Lists time series that match a filter. This method does not require a
871 * Stackdriver account. 871 * Stackdriver account.
872 * 872 *
873 * Request parameters: 873 * Request parameters:
874 * 874 *
875 * [name] - The project on which to execute the request. The format is 875 * [name] - The project on which to execute the request. The format is
876 * "projects/{project_id_or_number}". 876 * "projects/{project_id_or_number}".
877 * Value must have pattern "^projects/[^/]+$". 877 * Value must have pattern "^projects/[^/]+$".
878 * 878 *
879 * [filter] - A monitoring filter that specifies which time series should be 879 * [pageToken] - If this field is not empty then it must contain the
880 * returned. The filter must specify a single metric type, and can 880 * nextPageToken value returned by a previous call to this method. Using this
881 * additionally specify metric labels and other information. For example: 881 * field causes the method to return additional results from the previous
882 * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND 882 * method call.
883 * metric.label.instance_name = "my-instance-name" 883 *
884 * [aggregation_perSeriesAligner] - The approach to be used to align
885 * individual time series. Not all alignment functions may be applied to all
886 * time series, depending on the metric type and value type of the original
887 * time series. Alignment may change the metric type or the value type of the
888 * time series.Time series data must be aligned in order to perform cross-time
889 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner
890 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be
891 * specified; otherwise, an error is returned.
892 * Possible string values are:
893 * - "ALIGN_NONE" : A ALIGN_NONE.
894 * - "ALIGN_DELTA" : A ALIGN_DELTA.
895 * - "ALIGN_RATE" : A ALIGN_RATE.
896 * - "ALIGN_INTERPOLATE" : A ALIGN_INTERPOLATE.
897 * - "ALIGN_NEXT_OLDER" : A ALIGN_NEXT_OLDER.
898 * - "ALIGN_MIN" : A ALIGN_MIN.
899 * - "ALIGN_MAX" : A ALIGN_MAX.
900 * - "ALIGN_MEAN" : A ALIGN_MEAN.
901 * - "ALIGN_COUNT" : A ALIGN_COUNT.
902 * - "ALIGN_SUM" : A ALIGN_SUM.
903 * - "ALIGN_STDDEV" : A ALIGN_STDDEV.
904 * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE.
905 * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE.
906 * - "ALIGN_PERCENTILE_99" : A ALIGN_PERCENTILE_99.
907 * - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95.
908 * - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50.
909 * - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05.
910 *
911 * [interval_startTime] - Optional. The beginning of the time interval. The
912 * default value for the start time is the end time. The start time must not
913 * be later than the end time.
914 *
915 * [view] - Specifies which information is returned about the time series.
916 * Possible string values are:
917 * - "FULL" : A FULL.
918 * - "HEADERS" : A HEADERS.
884 * 919 *
885 * [aggregation_groupByFields] - The set of fields to preserve when 920 * [aggregation_groupByFields] - The set of fields to preserve when
886 * crossSeriesReducer is specified. The groupByFields determine how the time 921 * crossSeriesReducer is specified. The groupByFields determine how the time
887 * series are partitioned into subsets prior to applying the aggregation 922 * series are partitioned into subsets prior to applying the aggregation
888 * function. Each subset contains time series that have the same value for 923 * function. Each subset contains time series that have the same value for
889 * each of the grouping fields. Each individual time series is a member of 924 * each of the grouping fields. Each individual time series is a member of
890 * exactly one subset. The crossSeriesReducer is applied to each subset of 925 * exactly one subset. The crossSeriesReducer is applied to each subset of
891 * time series. It is not possible to reduce across different resource types, 926 * time series. It is not possible to reduce across different resource types,
892 * so this field implicitly contains resource.type. Fields not specified in 927 * so this field implicitly contains resource.type. Fields not specified in
893 * groupByFields are aggregated away. If groupByFields is not specified and 928 * groupByFields are aggregated away. If groupByFields is not specified and
894 * all the time series have the same resource type, then the time series are 929 * all the time series have the same resource type, then the time series are
895 * aggregated into a single output time series. If crossSeriesReducer is not 930 * aggregated into a single output time series. If crossSeriesReducer is not
896 * defined, this field is ignored. 931 * defined, this field is ignored.
897 * 932 *
933 * [interval_endTime] - Required. The end of the time interval.
934 *
935 * [aggregation_alignmentPeriod] - The alignment period for per-time series
936 * alignment. If present, alignmentPeriod must be at least 60 seconds. After
937 * per-time series alignment, each time series will contain data points only
938 * on the period boundaries. If perSeriesAligner is not specified or equals
939 * ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified
940 * and does not equal ALIGN_NONE, then this field must be defined; otherwise
941 * an error is returned.
942 *
943 * [pageSize] - A positive number that is the maximum number of results to
944 * return. When view field sets to FULL, it limits the number of Points server
945 * will return; if view field is HEADERS, it limits the number of TimeSeries
946 * server will return.
947 *
948 * [orderBy] - Specifies the order in which the points of the time series
949 * should be returned. By default, results are not ordered. Currently, this
950 * field must be left blank.
951 *
898 * [aggregation_crossSeriesReducer] - The approach to be used to combine time 952 * [aggregation_crossSeriesReducer] - The approach to be used to combine time
899 * series. Not all reducer functions may be applied to all time series, 953 * series. Not all reducer functions may be applied to all time series,
900 * depending on the metric type and the value type of the original time 954 * depending on the metric type and the value type of the original time
901 * series. Reduction may change the metric type of value type of the time 955 * series. Reduction may change the metric type of value type of the time
902 * series.Time series data must be aligned in order to perform cross-time 956 * series.Time series data must be aligned in order to perform cross-time
903 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner 957 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner
904 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be 958 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be
905 * specified; otherwise, an error is returned. 959 * specified; otherwise, an error is returned.
906 * Possible string values are: 960 * Possible string values are:
907 * - "REDUCE_NONE" : A REDUCE_NONE. 961 * - "REDUCE_NONE" : A REDUCE_NONE.
908 * - "REDUCE_MEAN" : A REDUCE_MEAN. 962 * - "REDUCE_MEAN" : A REDUCE_MEAN.
909 * - "REDUCE_MIN" : A REDUCE_MIN. 963 * - "REDUCE_MIN" : A REDUCE_MIN.
910 * - "REDUCE_MAX" : A REDUCE_MAX. 964 * - "REDUCE_MAX" : A REDUCE_MAX.
911 * - "REDUCE_SUM" : A REDUCE_SUM. 965 * - "REDUCE_SUM" : A REDUCE_SUM.
912 * - "REDUCE_STDDEV" : A REDUCE_STDDEV. 966 * - "REDUCE_STDDEV" : A REDUCE_STDDEV.
913 * - "REDUCE_COUNT" : A REDUCE_COUNT. 967 * - "REDUCE_COUNT" : A REDUCE_COUNT.
914 * - "REDUCE_COUNT_TRUE" : A REDUCE_COUNT_TRUE. 968 * - "REDUCE_COUNT_TRUE" : A REDUCE_COUNT_TRUE.
915 * - "REDUCE_FRACTION_TRUE" : A REDUCE_FRACTION_TRUE. 969 * - "REDUCE_FRACTION_TRUE" : A REDUCE_FRACTION_TRUE.
916 * - "REDUCE_PERCENTILE_99" : A REDUCE_PERCENTILE_99. 970 * - "REDUCE_PERCENTILE_99" : A REDUCE_PERCENTILE_99.
917 * - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95. 971 * - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95.
918 * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50. 972 * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50.
919 * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05. 973 * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05.
920 * 974 *
921 * [interval_endTime] - Required. The end of the time interval. 975 * [filter] - A monitoring filter that specifies which time series should be
922 * 976 * returned. The filter must specify a single metric type, and can
923 * [interval_startTime] - Optional. The beginning of the time interval. The 977 * additionally specify metric labels and other information. For example:
924 * default value for the start time is the end time. The start time must not 978 * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
925 * be later than the end time. 979 * metric.label.instance_name = "my-instance-name"
926 *
927 * [pageSize] - A positive number that is the maximum number of results to
928 * return. When view field sets to FULL, it limits the number of Points server
929 * will return; if view field is HEADERS, it limits the number of TimeSeries
930 * server will return.
931 *
932 * [view] - Specifies which information is returned about the time series.
933 * Possible string values are:
934 * - "FULL" : A FULL.
935 * - "HEADERS" : A HEADERS.
936 *
937 * [aggregation_alignmentPeriod] - The alignment period for per-time series
938 * alignment. If present, alignmentPeriod must be at least 60 seconds. After
939 * per-time series alignment, each time series will contain data points only
940 * on the period boundaries. If perSeriesAligner is not specified or equals
941 * ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified
942 * and does not equal ALIGN_NONE, then this field must be defined; otherwise
943 * an error is returned.
944 *
945 * [aggregation_perSeriesAligner] - The approach to be used to align
946 * individual time series. Not all alignment functions may be applied to all
947 * time series, depending on the metric type and value type of the original
948 * time series. Alignment may change the metric type or the value type of the
949 * time series.Time series data must be aligned in order to perform cross-time
950 * series reduction. If crossSeriesReducer is specified, then perSeriesAligner
951 * must be specified and not equal ALIGN_NONE and alignmentPeriod must be
952 * specified; otherwise, an error is returned.
953 * Possible string values are:
954 * - "ALIGN_NONE" : A ALIGN_NONE.
955 * - "ALIGN_DELTA" : A ALIGN_DELTA.
956 * - "ALIGN_RATE" : A ALIGN_RATE.
957 * - "ALIGN_INTERPOLATE" : A ALIGN_INTERPOLATE.
958 * - "ALIGN_NEXT_OLDER" : A ALIGN_NEXT_OLDER.
959 * - "ALIGN_MIN" : A ALIGN_MIN.
960 * - "ALIGN_MAX" : A ALIGN_MAX.
961 * - "ALIGN_MEAN" : A ALIGN_MEAN.
962 * - "ALIGN_COUNT" : A ALIGN_COUNT.
963 * - "ALIGN_SUM" : A ALIGN_SUM.
964 * - "ALIGN_STDDEV" : A ALIGN_STDDEV.
965 * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE.
966 * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE.
967 * - "ALIGN_PERCENTILE_99" : A ALIGN_PERCENTILE_99.
968 * - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95.
969 * - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50.
970 * - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05.
971 *
972 * [orderBy] - Specifies the order in which the points of the time series
973 * should be returned. By default, results are not ordered. Currently, this
974 * field must be left blank.
975 *
976 * [pageToken] - If this field is not empty then it must contain the
977 * nextPageToken value returned by a previous call to this method. Using this
978 * field causes the method to return additional results from the previous
979 * method call.
980 * 980 *
981 * Completes with a [ListTimeSeriesResponse]. 981 * Completes with a [ListTimeSeriesResponse].
982 * 982 *
983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
984 * error. 984 * error.
985 * 985 *
986 * If the used [http.Client] completes with an error when making a REST call, 986 * If the used [http.Client] completes with an error when making a REST call,
987 * this method will complete with the same error. 987 * this method will complete with the same error.
988 */ 988 */
989 async.Future<ListTimeSeriesResponse> list(core.String name, {core.String filte r, core.List<core.String> aggregation_groupByFields, core.String aggregation_cro ssSeriesReducer, core.String interval_endTime, core.String interval_startTime, c ore.int pageSize, core.String view, core.String aggregation_alignmentPeriod, cor e.String aggregation_perSeriesAligner, core.String orderBy, core.String pageToke n}) { 989 async.Future<ListTimeSeriesResponse> list(core.String name, {core.String pageT oken, core.String aggregation_perSeriesAligner, core.String interval_startTime, core.String view, core.List<core.String> aggregation_groupByFields, core.String interval_endTime, core.String aggregation_alignmentPeriod, core.int pageSize, co re.String orderBy, core.String aggregation_crossSeriesReducer, core.String filte r}) {
990 var _url = null; 990 var _url = null;
991 var _queryParams = new core.Map(); 991 var _queryParams = new core.Map();
992 var _uploadMedia = null; 992 var _uploadMedia = null;
993 var _uploadOptions = null; 993 var _uploadOptions = null;
994 var _downloadOptions = commons.DownloadOptions.Metadata; 994 var _downloadOptions = commons.DownloadOptions.Metadata;
995 var _body = null; 995 var _body = null;
996 996
997 if (name == null) { 997 if (name == null) {
998 throw new core.ArgumentError("Parameter name is required."); 998 throw new core.ArgumentError("Parameter name is required.");
999 } 999 }
1000 if (pageToken != null) {
1001 _queryParams["pageToken"] = [pageToken];
1002 }
1003 if (aggregation_perSeriesAligner != null) {
1004 _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAlign er];
1005 }
1006 if (interval_startTime != null) {
1007 _queryParams["interval.startTime"] = [interval_startTime];
1008 }
1009 if (view != null) {
1010 _queryParams["view"] = [view];
1011 }
1012 if (aggregation_groupByFields != null) {
1013 _queryParams["aggregation.groupByFields"] = aggregation_groupByFields;
1014 }
1015 if (interval_endTime != null) {
1016 _queryParams["interval.endTime"] = [interval_endTime];
1017 }
1018 if (aggregation_alignmentPeriod != null) {
1019 _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod ];
1020 }
1021 if (pageSize != null) {
1022 _queryParams["pageSize"] = ["${pageSize}"];
1023 }
1024 if (orderBy != null) {
1025 _queryParams["orderBy"] = [orderBy];
1026 }
1027 if (aggregation_crossSeriesReducer != null) {
1028 _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesR educer];
1029 }
1000 if (filter != null) { 1030 if (filter != null) {
1001 _queryParams["filter"] = [filter]; 1031 _queryParams["filter"] = [filter];
1002 } 1032 }
1003 if (aggregation_groupByFields != null) {
1004 _queryParams["aggregation.groupByFields"] = aggregation_groupByFields;
1005 }
1006 if (aggregation_crossSeriesReducer != null) {
1007 _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesR educer];
1008 }
1009 if (interval_endTime != null) {
1010 _queryParams["interval.endTime"] = [interval_endTime];
1011 }
1012 if (interval_startTime != null) {
1013 _queryParams["interval.startTime"] = [interval_startTime];
1014 }
1015 if (pageSize != null) {
1016 _queryParams["pageSize"] = ["${pageSize}"];
1017 }
1018 if (view != null) {
1019 _queryParams["view"] = [view];
1020 }
1021 if (aggregation_alignmentPeriod != null) {
1022 _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod ];
1023 }
1024 if (aggregation_perSeriesAligner != null) {
1025 _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAlign er];
1026 }
1027 if (orderBy != null) {
1028 _queryParams["orderBy"] = [orderBy];
1029 }
1030 if (pageToken != null) {
1031 _queryParams["pageToken"] = [pageToken];
1032 }
1033 1033
1034 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries '; 1034 _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries ';
1035 1035
1036 var _response = _requester.request(_url, 1036 var _response = _requester.request(_url,
1037 "GET", 1037 "GET",
1038 body: _body, 1038 body: _body,
1039 queryParams: _queryParams, 1039 queryParams: _queryParams,
1040 uploadOptions: _uploadOptions, 1040 uploadOptions: _uploadOptions,
1041 uploadMedia: _uploadMedia, 1041 uploadMedia: _uploadMedia,
1042 downloadOptions: _downloadOptions); 1042 downloadOptions: _downloadOptions);
(...skipping 1720 matching lines...)
2763 } 2763 }
2764 if (int64Value != null) { 2764 if (int64Value != null) {
2765 _json["int64Value"] = int64Value; 2765 _json["int64Value"] = int64Value;
2766 } 2766 }
2767 if (stringValue != null) { 2767 if (stringValue != null) {
2768 _json["stringValue"] = stringValue; 2768 _json["stringValue"] = stringValue;
2769 } 2769 }
2770 return _json; 2770 return _json;
2771 } 2771 }
2772 } 2772 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/manufacturers/v1.dart ('k') | generated/googleapis/lib/people/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine