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

Side by Side Diff: generated/googleapis/lib/logging/v2.dart

Issue 2649893002: Api-roll 44: 2017-01-23 (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « generated/googleapis/lib/kgsearch/v1.dart ('k') | generated/googleapis/lib/monitoring/v3.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.logging.v2; 3 library googleapis.logging.v2;
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 * are listed. 115 * are listed.
116 * 116 *
117 * Request parameters: 117 * Request parameters:
118 * 118 *
119 * [parent] - Required. The resource name that owns the logs: 119 * [parent] - Required. The resource name that owns the logs:
120 * "projects/[PROJECT_ID]" 120 * "projects/[PROJECT_ID]"
121 * "organizations/[ORGANIZATION_ID]" 121 * "organizations/[ORGANIZATION_ID]"
122 * 122 *
123 * Value must have pattern "^billingAccounts/[^/]+$". 123 * Value must have pattern "^billingAccounts/[^/]+$".
124 * 124 *
125 * [pageSize] - Optional. The maximum number of results to return from this
126 * request. Non-positive values are ignored. The presence of nextPageToken in
127 * the response indicates that more results might be available.
128 *
129 * [pageToken] - Optional. If present, then retrieve the next batch of results 125 * [pageToken] - Optional. If present, then retrieve the next batch of results
130 * from the preceding call to this method. pageToken must be the value of 126 * from the preceding call to this method. pageToken must be the value of
131 * nextPageToken from the previous response. The values of other method 127 * nextPageToken from the previous response. The values of other method
132 * parameters should be identical to those in the previous call. 128 * parameters should be identical to those in the previous call.
133 * 129 *
130 * [pageSize] - Optional. The maximum number of results to return from this
131 * request. Non-positive values are ignored. The presence of nextPageToken in
132 * the response indicates that more results might be available.
133 *
134 * Completes with a [ListLogsResponse]. 134 * Completes with a [ListLogsResponse].
135 * 135 *
136 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 136 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
137 * error. 137 * error.
138 * 138 *
139 * If the used [http.Client] completes with an error when making a REST call, 139 * If the used [http.Client] completes with an error when making a REST call,
140 * this method will complete with the same error. 140 * this method will complete with the same error.
141 */ 141 */
142 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co re.String pageToken}) { 142 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken , core.int pageSize}) {
143 var _url = null; 143 var _url = null;
144 var _queryParams = new core.Map(); 144 var _queryParams = new core.Map();
145 var _uploadMedia = null; 145 var _uploadMedia = null;
146 var _uploadOptions = null; 146 var _uploadOptions = null;
147 var _downloadOptions = commons.DownloadOptions.Metadata; 147 var _downloadOptions = commons.DownloadOptions.Metadata;
148 var _body = null; 148 var _body = null;
149 149
150 if (parent == null) { 150 if (parent == null) {
151 throw new core.ArgumentError("Parameter parent is required."); 151 throw new core.ArgumentError("Parameter parent is required.");
152 } 152 }
153 if (pageToken != null) {
154 _queryParams["pageToken"] = [pageToken];
155 }
153 if (pageSize != null) { 156 if (pageSize != null) {
154 _queryParams["pageSize"] = ["${pageSize}"]; 157 _queryParams["pageSize"] = ["${pageSize}"];
155 } 158 }
156 if (pageToken != null) {
157 _queryParams["pageToken"] = [pageToken];
158 }
159 159
160 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; 160 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs';
161 161
162 var _response = _requester.request(_url, 162 var _response = _requester.request(_url,
163 "GET", 163 "GET",
164 body: _body, 164 body: _body,
165 queryParams: _queryParams, 165 queryParams: _queryParams,
166 uploadOptions: _uploadOptions, 166 uploadOptions: _uploadOptions,
167 uploadMedia: _uploadMedia, 167 uploadMedia: _uploadMedia,
168 downloadOptions: _downloadOptions); 168 downloadOptions: _downloadOptions);
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 * are listed. 618 * are listed.
619 * 619 *
620 * Request parameters: 620 * Request parameters:
621 * 621 *
622 * [parent] - Required. The resource name that owns the logs: 622 * [parent] - Required. The resource name that owns the logs:
623 * "projects/[PROJECT_ID]" 623 * "projects/[PROJECT_ID]"
624 * "organizations/[ORGANIZATION_ID]" 624 * "organizations/[ORGANIZATION_ID]"
625 * 625 *
626 * Value must have pattern "^folders/[^/]+$". 626 * Value must have pattern "^folders/[^/]+$".
627 * 627 *
628 * [pageSize] - Optional. The maximum number of results to return from this
629 * request. Non-positive values are ignored. The presence of nextPageToken in
630 * the response indicates that more results might be available.
631 *
632 * [pageToken] - Optional. If present, then retrieve the next batch of results 628 * [pageToken] - Optional. If present, then retrieve the next batch of results
633 * from the preceding call to this method. pageToken must be the value of 629 * from the preceding call to this method. pageToken must be the value of
634 * nextPageToken from the previous response. The values of other method 630 * nextPageToken from the previous response. The values of other method
635 * parameters should be identical to those in the previous call. 631 * parameters should be identical to those in the previous call.
636 * 632 *
633 * [pageSize] - Optional. The maximum number of results to return from this
634 * request. Non-positive values are ignored. The presence of nextPageToken in
635 * the response indicates that more results might be available.
636 *
637 * Completes with a [ListLogsResponse]. 637 * Completes with a [ListLogsResponse].
638 * 638 *
639 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 639 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
640 * error. 640 * error.
641 * 641 *
642 * If the used [http.Client] completes with an error when making a REST call, 642 * If the used [http.Client] completes with an error when making a REST call,
643 * this method will complete with the same error. 643 * this method will complete with the same error.
644 */ 644 */
645 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co re.String pageToken}) { 645 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken , core.int pageSize}) {
646 var _url = null; 646 var _url = null;
647 var _queryParams = new core.Map(); 647 var _queryParams = new core.Map();
648 var _uploadMedia = null; 648 var _uploadMedia = null;
649 var _uploadOptions = null; 649 var _uploadOptions = null;
650 var _downloadOptions = commons.DownloadOptions.Metadata; 650 var _downloadOptions = commons.DownloadOptions.Metadata;
651 var _body = null; 651 var _body = null;
652 652
653 if (parent == null) { 653 if (parent == null) {
654 throw new core.ArgumentError("Parameter parent is required."); 654 throw new core.ArgumentError("Parameter parent is required.");
655 } 655 }
656 if (pageToken != null) {
657 _queryParams["pageToken"] = [pageToken];
658 }
656 if (pageSize != null) { 659 if (pageSize != null) {
657 _queryParams["pageSize"] = ["${pageSize}"]; 660 _queryParams["pageSize"] = ["${pageSize}"];
658 } 661 }
659 if (pageToken != null) {
660 _queryParams["pageToken"] = [pageToken];
661 }
662 662
663 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; 663 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs';
664 664
665 var _response = _requester.request(_url, 665 var _response = _requester.request(_url,
666 "GET", 666 "GET",
667 body: _body, 667 body: _body,
668 queryParams: _queryParams, 668 queryParams: _queryParams,
669 uploadOptions: _uploadOptions, 669 uploadOptions: _uploadOptions,
670 uploadMedia: _uploadMedia, 670 uploadMedia: _uploadMedia,
671 downloadOptions: _downloadOptions); 671 downloadOptions: _downloadOptions);
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 839
840 /** 840 /**
841 * Lists sinks. 841 * Lists sinks.
842 * 842 *
843 * Request parameters: 843 * Request parameters:
844 * 844 *
845 * [parent] - Required. The parent resource whose sinks are to be listed. 845 * [parent] - Required. The parent resource whose sinks are to be listed.
846 * Examples: "projects/my-logging-project", "organizations/123456789". 846 * Examples: "projects/my-logging-project", "organizations/123456789".
847 * Value must have pattern "^folders/[^/]+$". 847 * Value must have pattern "^folders/[^/]+$".
848 * 848 *
849 * [pageSize] - Optional. The maximum number of results to return from this
850 * request. Non-positive values are ignored. The presence of nextPageToken in
851 * the response indicates that more results might be available.
852 *
853 * [pageToken] - Optional. If present, then retrieve the next batch of results 849 * [pageToken] - Optional. If present, then retrieve the next batch of results
854 * from the preceding call to this method. pageToken must be the value of 850 * from the preceding call to this method. pageToken must be the value of
855 * nextPageToken from the previous response. The values of other method 851 * nextPageToken from the previous response. The values of other method
856 * parameters should be identical to those in the previous call. 852 * parameters should be identical to those in the previous call.
857 * 853 *
854 * [pageSize] - Optional. The maximum number of results to return from this
855 * request. Non-positive values are ignored. The presence of nextPageToken in
856 * the response indicates that more results might be available.
857 *
858 * Completes with a [ListSinksResponse]. 858 * Completes with a [ListSinksResponse].
859 * 859 *
860 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 860 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
861 * error. 861 * error.
862 * 862 *
863 * If the used [http.Client] completes with an error when making a REST call, 863 * If the used [http.Client] completes with an error when making a REST call,
864 * this method will complete with the same error. 864 * this method will complete with the same error.
865 */ 865 */
866 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c ore.String pageToken}) { 866 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke n, core.int pageSize}) {
867 var _url = null; 867 var _url = null;
868 var _queryParams = new core.Map(); 868 var _queryParams = new core.Map();
869 var _uploadMedia = null; 869 var _uploadMedia = null;
870 var _uploadOptions = null; 870 var _uploadOptions = null;
871 var _downloadOptions = commons.DownloadOptions.Metadata; 871 var _downloadOptions = commons.DownloadOptions.Metadata;
872 var _body = null; 872 var _body = null;
873 873
874 if (parent == null) { 874 if (parent == null) {
875 throw new core.ArgumentError("Parameter parent is required."); 875 throw new core.ArgumentError("Parameter parent is required.");
876 } 876 }
877 if (pageToken != null) {
878 _queryParams["pageToken"] = [pageToken];
879 }
877 if (pageSize != null) { 880 if (pageSize != null) {
878 _queryParams["pageSize"] = ["${pageSize}"]; 881 _queryParams["pageSize"] = ["${pageSize}"];
879 } 882 }
880 if (pageToken != null) {
881 _queryParams["pageToken"] = [pageToken];
882 }
883 883
884 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; 884 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks';
885 885
886 var _response = _requester.request(_url, 886 var _response = _requester.request(_url,
887 "GET", 887 "GET",
888 body: _body, 888 body: _body,
889 queryParams: _queryParams, 889 queryParams: _queryParams,
890 uploadOptions: _uploadOptions, 890 uploadOptions: _uploadOptions,
891 uploadMedia: _uploadMedia, 891 uploadMedia: _uploadMedia,
892 downloadOptions: _downloadOptions); 892 downloadOptions: _downloadOptions);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 968
969 MonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) : 969 MonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) :
970 _requester = client; 970 _requester = client;
971 971
972 /** 972 /**
973 * Lists the descriptors for monitored resource types used by Stackdriver 973 * Lists the descriptors for monitored resource types used by Stackdriver
974 * Logging. 974 * Logging.
975 * 975 *
976 * Request parameters: 976 * Request parameters:
977 * 977 *
978 * [pageSize] - Optional. The maximum number of results to return from this
979 * request. Non-positive values are ignored. The presence of nextPageToken in
980 * the response indicates that more results might be available.
981 *
982 * [pageToken] - Optional. If present, then retrieve the next batch of results 978 * [pageToken] - Optional. If present, then retrieve the next batch of results
983 * from the preceding call to this method. pageToken must be the value of 979 * from the preceding call to this method. pageToken must be the value of
984 * nextPageToken from the previous response. The values of other method 980 * nextPageToken from the previous response. The values of other method
985 * parameters should be identical to those in the previous call. 981 * parameters should be identical to those in the previous call.
986 * 982 *
983 * [pageSize] - Optional. The maximum number of results to return from this
984 * request. Non-positive values are ignored. The presence of nextPageToken in
985 * the response indicates that more results might be available.
986 *
987 * Completes with a [ListMonitoredResourceDescriptorsResponse]. 987 * Completes with a [ListMonitoredResourceDescriptorsResponse].
988 * 988 *
989 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 989 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
990 * error. 990 * error.
991 * 991 *
992 * If the used [http.Client] completes with an error when making a REST call, 992 * If the used [http.Client] completes with an error when making a REST call,
993 * this method will complete with the same error. 993 * this method will complete with the same error.
994 */ 994 */
995 async.Future<ListMonitoredResourceDescriptorsResponse> list({core.int pageSize , core.String pageToken}) { 995 async.Future<ListMonitoredResourceDescriptorsResponse> list({core.String pageT oken, core.int pageSize}) {
996 var _url = null; 996 var _url = null;
997 var _queryParams = new core.Map(); 997 var _queryParams = new core.Map();
998 var _uploadMedia = null; 998 var _uploadMedia = null;
999 var _uploadOptions = null; 999 var _uploadOptions = null;
1000 var _downloadOptions = commons.DownloadOptions.Metadata; 1000 var _downloadOptions = commons.DownloadOptions.Metadata;
1001 var _body = null; 1001 var _body = null;
1002 1002
1003 if (pageToken != null) {
1004 _queryParams["pageToken"] = [pageToken];
1005 }
1003 if (pageSize != null) { 1006 if (pageSize != null) {
1004 _queryParams["pageSize"] = ["${pageSize}"]; 1007 _queryParams["pageSize"] = ["${pageSize}"];
1005 } 1008 }
1006 if (pageToken != null) {
1007 _queryParams["pageToken"] = [pageToken];
1008 }
1009 1009
1010 _url = 'v2/monitoredResourceDescriptors'; 1010 _url = 'v2/monitoredResourceDescriptors';
1011 1011
1012 var _response = _requester.request(_url, 1012 var _response = _requester.request(_url,
1013 "GET", 1013 "GET",
1014 body: _body, 1014 body: _body,
1015 queryParams: _queryParams, 1015 queryParams: _queryParams,
1016 uploadOptions: _uploadOptions, 1016 uploadOptions: _uploadOptions,
1017 uploadMedia: _uploadMedia, 1017 uploadMedia: _uploadMedia,
1018 downloadOptions: _downloadOptions); 1018 downloadOptions: _downloadOptions);
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 1312
1313 /** 1313 /**
1314 * Lists sinks. 1314 * Lists sinks.
1315 * 1315 *
1316 * Request parameters: 1316 * Request parameters:
1317 * 1317 *
1318 * [parent] - Required. The parent resource whose sinks are to be listed. 1318 * [parent] - Required. The parent resource whose sinks are to be listed.
1319 * Examples: "projects/my-logging-project", "organizations/123456789". 1319 * Examples: "projects/my-logging-project", "organizations/123456789".
1320 * Value must have pattern "^organizations/[^/]+$". 1320 * Value must have pattern "^organizations/[^/]+$".
1321 * 1321 *
1322 * [pageSize] - Optional. The maximum number of results to return from this
1323 * request. Non-positive values are ignored. The presence of nextPageToken in
1324 * the response indicates that more results might be available.
1325 *
1326 * [pageToken] - Optional. If present, then retrieve the next batch of results 1322 * [pageToken] - Optional. If present, then retrieve the next batch of results
1327 * from the preceding call to this method. pageToken must be the value of 1323 * from the preceding call to this method. pageToken must be the value of
1328 * nextPageToken from the previous response. The values of other method 1324 * nextPageToken from the previous response. The values of other method
1329 * parameters should be identical to those in the previous call. 1325 * parameters should be identical to those in the previous call.
1330 * 1326 *
1327 * [pageSize] - Optional. The maximum number of results to return from this
1328 * request. Non-positive values are ignored. The presence of nextPageToken in
1329 * the response indicates that more results might be available.
1330 *
1331 * Completes with a [ListSinksResponse]. 1331 * Completes with a [ListSinksResponse].
1332 * 1332 *
1333 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1333 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1334 * error. 1334 * error.
1335 * 1335 *
1336 * If the used [http.Client] completes with an error when making a REST call, 1336 * If the used [http.Client] completes with an error when making a REST call,
1337 * this method will complete with the same error. 1337 * this method will complete with the same error.
1338 */ 1338 */
1339 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c ore.String pageToken}) { 1339 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke n, core.int pageSize}) {
1340 var _url = null; 1340 var _url = null;
1341 var _queryParams = new core.Map(); 1341 var _queryParams = new core.Map();
1342 var _uploadMedia = null; 1342 var _uploadMedia = null;
1343 var _uploadOptions = null; 1343 var _uploadOptions = null;
1344 var _downloadOptions = commons.DownloadOptions.Metadata; 1344 var _downloadOptions = commons.DownloadOptions.Metadata;
1345 var _body = null; 1345 var _body = null;
1346 1346
1347 if (parent == null) { 1347 if (parent == null) {
1348 throw new core.ArgumentError("Parameter parent is required."); 1348 throw new core.ArgumentError("Parameter parent is required.");
1349 } 1349 }
1350 if (pageToken != null) {
1351 _queryParams["pageToken"] = [pageToken];
1352 }
1350 if (pageSize != null) { 1353 if (pageSize != null) {
1351 _queryParams["pageSize"] = ["${pageSize}"]; 1354 _queryParams["pageSize"] = ["${pageSize}"];
1352 } 1355 }
1353 if (pageToken != null) {
1354 _queryParams["pageToken"] = [pageToken];
1355 }
1356 1356
1357 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; 1357 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks';
1358 1358
1359 var _response = _requester.request(_url, 1359 var _response = _requester.request(_url,
1360 "GET", 1360 "GET",
1361 body: _body, 1361 body: _body,
1362 queryParams: _queryParams, 1362 queryParams: _queryParams,
1363 uploadOptions: _uploadOptions, 1363 uploadOptions: _uploadOptions,
1364 uploadMedia: _uploadMedia, 1364 uploadMedia: _uploadMedia,
1365 downloadOptions: _downloadOptions); 1365 downloadOptions: _downloadOptions);
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1703 /** 1703 /**
1704 * Lists logs-based metrics. 1704 * Lists logs-based metrics.
1705 * 1705 *
1706 * Request parameters: 1706 * Request parameters:
1707 * 1707 *
1708 * [parent] - Required. The name of the project containing the metrics: 1708 * [parent] - Required. The name of the project containing the metrics:
1709 * "projects/[PROJECT_ID]" 1709 * "projects/[PROJECT_ID]"
1710 * 1710 *
1711 * Value must have pattern "^projects/[^/]+$". 1711 * Value must have pattern "^projects/[^/]+$".
1712 * 1712 *
1713 * [pageSize] - Optional. The maximum number of results to return from this
1714 * request. Non-positive values are ignored. The presence of nextPageToken in
1715 * the response indicates that more results might be available.
1716 *
1717 * [pageToken] - Optional. If present, then retrieve the next batch of results 1713 * [pageToken] - Optional. If present, then retrieve the next batch of results
1718 * from the preceding call to this method. pageToken must be the value of 1714 * from the preceding call to this method. pageToken must be the value of
1719 * nextPageToken from the previous response. The values of other method 1715 * nextPageToken from the previous response. The values of other method
1720 * parameters should be identical to those in the previous call. 1716 * parameters should be identical to those in the previous call.
1721 * 1717 *
1718 * [pageSize] - Optional. The maximum number of results to return from this
1719 * request. Non-positive values are ignored. The presence of nextPageToken in
1720 * the response indicates that more results might be available.
1721 *
1722 * Completes with a [ListLogMetricsResponse]. 1722 * Completes with a [ListLogMetricsResponse].
1723 * 1723 *
1724 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1724 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1725 * error. 1725 * error.
1726 * 1726 *
1727 * If the used [http.Client] completes with an error when making a REST call, 1727 * If the used [http.Client] completes with an error when making a REST call,
1728 * this method will complete with the same error. 1728 * this method will complete with the same error.
1729 */ 1729 */
1730 async.Future<ListLogMetricsResponse> list(core.String parent, {core.int pageSi ze, core.String pageToken}) { 1730 async.Future<ListLogMetricsResponse> list(core.String parent, {core.String pag eToken, core.int pageSize}) {
1731 var _url = null; 1731 var _url = null;
1732 var _queryParams = new core.Map(); 1732 var _queryParams = new core.Map();
1733 var _uploadMedia = null; 1733 var _uploadMedia = null;
1734 var _uploadOptions = null; 1734 var _uploadOptions = null;
1735 var _downloadOptions = commons.DownloadOptions.Metadata; 1735 var _downloadOptions = commons.DownloadOptions.Metadata;
1736 var _body = null; 1736 var _body = null;
1737 1737
1738 if (parent == null) { 1738 if (parent == null) {
1739 throw new core.ArgumentError("Parameter parent is required."); 1739 throw new core.ArgumentError("Parameter parent is required.");
1740 } 1740 }
1741 if (pageToken != null) {
1742 _queryParams["pageToken"] = [pageToken];
1743 }
1741 if (pageSize != null) { 1744 if (pageSize != null) {
1742 _queryParams["pageSize"] = ["${pageSize}"]; 1745 _queryParams["pageSize"] = ["${pageSize}"];
1743 } 1746 }
1744 if (pageToken != null) {
1745 _queryParams["pageToken"] = [pageToken];
1746 }
1747 1747
1748 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/metrics' ; 1748 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/metrics' ;
1749 1749
1750 var _response = _requester.request(_url, 1750 var _response = _requester.request(_url,
1751 "GET", 1751 "GET",
1752 body: _body, 1752 body: _body,
1753 queryParams: _queryParams, 1753 queryParams: _queryParams,
1754 uploadOptions: _uploadOptions, 1754 uploadOptions: _uploadOptions,
1755 uploadMedia: _uploadMedia, 1755 uploadMedia: _uploadMedia,
1756 downloadOptions: _downloadOptions); 1756 downloadOptions: _downloadOptions);
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 1973
1974 /** 1974 /**
1975 * Lists sinks. 1975 * Lists sinks.
1976 * 1976 *
1977 * Request parameters: 1977 * Request parameters:
1978 * 1978 *
1979 * [parent] - Required. The parent resource whose sinks are to be listed. 1979 * [parent] - Required. The parent resource whose sinks are to be listed.
1980 * Examples: "projects/my-logging-project", "organizations/123456789". 1980 * Examples: "projects/my-logging-project", "organizations/123456789".
1981 * Value must have pattern "^projects/[^/]+$". 1981 * Value must have pattern "^projects/[^/]+$".
1982 * 1982 *
1983 * [pageSize] - Optional. The maximum number of results to return from this
1984 * request. Non-positive values are ignored. The presence of nextPageToken in
1985 * the response indicates that more results might be available.
1986 *
1987 * [pageToken] - Optional. If present, then retrieve the next batch of results 1983 * [pageToken] - Optional. If present, then retrieve the next batch of results
1988 * from the preceding call to this method. pageToken must be the value of 1984 * from the preceding call to this method. pageToken must be the value of
1989 * nextPageToken from the previous response. The values of other method 1985 * nextPageToken from the previous response. The values of other method
1990 * parameters should be identical to those in the previous call. 1986 * parameters should be identical to those in the previous call.
1991 * 1987 *
1988 * [pageSize] - Optional. The maximum number of results to return from this
1989 * request. Non-positive values are ignored. The presence of nextPageToken in
1990 * the response indicates that more results might be available.
1991 *
1992 * Completes with a [ListSinksResponse]. 1992 * Completes with a [ListSinksResponse].
1993 * 1993 *
1994 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1994 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1995 * error. 1995 * error.
1996 * 1996 *
1997 * If the used [http.Client] completes with an error when making a REST call, 1997 * If the used [http.Client] completes with an error when making a REST call,
1998 * this method will complete with the same error. 1998 * this method will complete with the same error.
1999 */ 1999 */
2000 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c ore.String pageToken}) { 2000 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke n, core.int pageSize}) {
2001 var _url = null; 2001 var _url = null;
2002 var _queryParams = new core.Map(); 2002 var _queryParams = new core.Map();
2003 var _uploadMedia = null; 2003 var _uploadMedia = null;
2004 var _uploadOptions = null; 2004 var _uploadOptions = null;
2005 var _downloadOptions = commons.DownloadOptions.Metadata; 2005 var _downloadOptions = commons.DownloadOptions.Metadata;
2006 var _body = null; 2006 var _body = null;
2007 2007
2008 if (parent == null) { 2008 if (parent == null) {
2009 throw new core.ArgumentError("Parameter parent is required."); 2009 throw new core.ArgumentError("Parameter parent is required.");
2010 } 2010 }
2011 if (pageToken != null) {
2012 _queryParams["pageToken"] = [pageToken];
2013 }
2011 if (pageSize != null) { 2014 if (pageSize != null) {
2012 _queryParams["pageSize"] = ["${pageSize}"]; 2015 _queryParams["pageSize"] = ["${pageSize}"];
2013 } 2016 }
2014 if (pageToken != null) {
2015 _queryParams["pageToken"] = [pageToken];
2016 }
2017 2017
2018 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; 2018 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks';
2019 2019
2020 var _response = _requester.request(_url, 2020 var _response = _requester.request(_url,
2021 "GET", 2021 "GET",
2022 body: _body, 2022 body: _body,
2023 queryParams: _queryParams, 2023 queryParams: _queryParams,
2024 uploadOptions: _uploadOptions, 2024 uploadOptions: _uploadOptions,
2025 uploadMedia: _uploadMedia, 2025 uploadMedia: _uploadMedia,
2026 downloadOptions: _downloadOptions); 2026 downloadOptions: _downloadOptions);
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after
3783 WriteLogEntriesResponse(); 3783 WriteLogEntriesResponse();
3784 3784
3785 WriteLogEntriesResponse.fromJson(core.Map _json) { 3785 WriteLogEntriesResponse.fromJson(core.Map _json) {
3786 } 3786 }
3787 3787
3788 core.Map toJson() { 3788 core.Map toJson() {
3789 var _json = new core.Map(); 3789 var _json = new core.Map();
3790 return _json; 3790 return _json;
3791 } 3791 }
3792 } 3792 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/kgsearch/v1.dart ('k') | generated/googleapis/lib/monitoring/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698