| 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.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 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1356    * Request parameters: |  1356    * Request parameters: | 
|  1357    * |  1357    * | 
|  1358    * [parent] - Required. The parent resource whose sinks are to be listed: |  1358    * [parent] - Required. The parent resource whose sinks are to be listed: | 
|  1359    * "projects/[PROJECT_ID]" |  1359    * "projects/[PROJECT_ID]" | 
|  1360    * "organizations/[ORGANIZATION_ID]" |  1360    * "organizations/[ORGANIZATION_ID]" | 
|  1361    * "billingAccounts/[BILLING_ACCOUNT_ID]" |  1361    * "billingAccounts/[BILLING_ACCOUNT_ID]" | 
|  1362    * "folders/[FOLDER_ID]" |  1362    * "folders/[FOLDER_ID]" | 
|  1363    * |  1363    * | 
|  1364    * Value must have pattern "^organizations/[^/]+$". |  1364    * Value must have pattern "^organizations/[^/]+$". | 
|  1365    * |  1365    * | 
|  1366    * [pageSize] - Optional. The maximum number of results to return from this |  | 
|  1367    * request. Non-positive values are ignored. The presence of nextPageToken in |  | 
|  1368    * the response indicates that more results might be available. |  | 
|  1369    * |  | 
|  1370    * [pageToken] - Optional. If present, then retrieve the next batch of results |  1366    * [pageToken] - Optional. If present, then retrieve the next batch of results | 
|  1371    * from the preceding call to this method. pageToken must be the value of |  1367    * from the preceding call to this method. pageToken must be the value of | 
|  1372    * nextPageToken from the previous response. The values of other method |  1368    * nextPageToken from the previous response. The values of other method | 
|  1373    * parameters should be identical to those in the previous call. |  1369    * parameters should be identical to those in the previous call. | 
|  1374    * |  1370    * | 
 |  1371    * [pageSize] - Optional. The maximum number of results to return from this | 
 |  1372    * request. Non-positive values are ignored. The presence of nextPageToken in | 
 |  1373    * the response indicates that more results might be available. | 
 |  1374    * | 
|  1375    * Completes with a [ListSinksResponse]. |  1375    * Completes with a [ListSinksResponse]. | 
|  1376    * |  1376    * | 
|  1377    * Completes with a [commons.ApiRequestError] if the API endpoint returned an |  1377    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
|  1378    * error. |  1378    * error. | 
|  1379    * |  1379    * | 
|  1380    * If the used [http.Client] completes with an error when making a REST call, |  1380    * If the used [http.Client] completes with an error when making a REST call, | 
|  1381    * this method will complete with the same error. |  1381    * this method will complete with the same error. | 
|  1382    */ |  1382    */ | 
|  1383   async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c
      ore.String pageToken}) { |  1383   async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke
      n, core.int pageSize}) { | 
|  1384     var _url = null; |  1384     var _url = null; | 
|  1385     var _queryParams = new core.Map(); |  1385     var _queryParams = new core.Map(); | 
|  1386     var _uploadMedia = null; |  1386     var _uploadMedia = null; | 
|  1387     var _uploadOptions = null; |  1387     var _uploadOptions = null; | 
|  1388     var _downloadOptions = commons.DownloadOptions.Metadata; |  1388     var _downloadOptions = commons.DownloadOptions.Metadata; | 
|  1389     var _body = null; |  1389     var _body = null; | 
|  1390  |  1390  | 
|  1391     if (parent == null) { |  1391     if (parent == null) { | 
|  1392       throw new core.ArgumentError("Parameter parent is required."); |  1392       throw new core.ArgumentError("Parameter parent is required."); | 
|  1393     } |  1393     } | 
 |  1394     if (pageToken != null) { | 
 |  1395       _queryParams["pageToken"] = [pageToken]; | 
 |  1396     } | 
|  1394     if (pageSize != null) { |  1397     if (pageSize != null) { | 
|  1395       _queryParams["pageSize"] = ["${pageSize}"]; |  1398       _queryParams["pageSize"] = ["${pageSize}"]; | 
|  1396     } |  1399     } | 
|  1397     if (pageToken != null) { |  | 
|  1398       _queryParams["pageToken"] = [pageToken]; |  | 
|  1399     } |  | 
|  1400  |  1400  | 
|  1401     _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; |  1401     _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; | 
|  1402  |  1402  | 
|  1403     var _response = _requester.request(_url, |  1403     var _response = _requester.request(_url, | 
|  1404                                        "GET", |  1404                                        "GET", | 
|  1405                                        body: _body, |  1405                                        body: _body, | 
|  1406                                        queryParams: _queryParams, |  1406                                        queryParams: _queryParams, | 
|  1407                                        uploadOptions: _uploadOptions, |  1407                                        uploadOptions: _uploadOptions, | 
|  1408                                        uploadMedia: _uploadMedia, |  1408                                        uploadMedia: _uploadMedia, | 
|  1409                                        downloadOptions: _downloadOptions); |  1409                                        downloadOptions: _downloadOptions); | 
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1755   /** |  1755   /** | 
|  1756    * Lists logs-based metrics. |  1756    * Lists logs-based metrics. | 
|  1757    * |  1757    * | 
|  1758    * Request parameters: |  1758    * Request parameters: | 
|  1759    * |  1759    * | 
|  1760    * [parent] - Required. The name of the project containing the metrics: |  1760    * [parent] - Required. The name of the project containing the metrics: | 
|  1761    * "projects/[PROJECT_ID]" |  1761    * "projects/[PROJECT_ID]" | 
|  1762    * |  1762    * | 
|  1763    * Value must have pattern "^projects/[^/]+$". |  1763    * Value must have pattern "^projects/[^/]+$". | 
|  1764    * |  1764    * | 
 |  1765    * [pageSize] - Optional. The maximum number of results to return from this | 
 |  1766    * request. Non-positive values are ignored. The presence of nextPageToken in | 
 |  1767    * the response indicates that more results might be available. | 
 |  1768    * | 
|  1765    * [pageToken] - Optional. If present, then retrieve the next batch of results |  1769    * [pageToken] - Optional. If present, then retrieve the next batch of results | 
|  1766    * from the preceding call to this method. pageToken must be the value of |  1770    * from the preceding call to this method. pageToken must be the value of | 
|  1767    * nextPageToken from the previous response. The values of other method |  1771    * nextPageToken from the previous response. The values of other method | 
|  1768    * parameters should be identical to those in the previous call. |  1772    * parameters should be identical to those in the previous call. | 
|  1769    * |  1773    * | 
|  1770    * [pageSize] - Optional. The maximum number of results to return from this |  | 
|  1771    * request. Non-positive values are ignored. The presence of nextPageToken in |  | 
|  1772    * the response indicates that more results might be available. |  | 
|  1773    * |  | 
|  1774    * Completes with a [ListLogMetricsResponse]. |  1774    * Completes with a [ListLogMetricsResponse]. | 
|  1775    * |  1775    * | 
|  1776    * Completes with a [commons.ApiRequestError] if the API endpoint returned an |  1776    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
|  1777    * error. |  1777    * error. | 
|  1778    * |  1778    * | 
|  1779    * If the used [http.Client] completes with an error when making a REST call, |  1779    * If the used [http.Client] completes with an error when making a REST call, | 
|  1780    * this method will complete with the same error. |  1780    * this method will complete with the same error. | 
|  1781    */ |  1781    */ | 
|  1782   async.Future<ListLogMetricsResponse> list(core.String parent, {core.String pag
      eToken, core.int pageSize}) { |  1782   async.Future<ListLogMetricsResponse> list(core.String parent, {core.int pageSi
      ze, core.String pageToken}) { | 
|  1783     var _url = null; |  1783     var _url = null; | 
|  1784     var _queryParams = new core.Map(); |  1784     var _queryParams = new core.Map(); | 
|  1785     var _uploadMedia = null; |  1785     var _uploadMedia = null; | 
|  1786     var _uploadOptions = null; |  1786     var _uploadOptions = null; | 
|  1787     var _downloadOptions = commons.DownloadOptions.Metadata; |  1787     var _downloadOptions = commons.DownloadOptions.Metadata; | 
|  1788     var _body = null; |  1788     var _body = null; | 
|  1789  |  1789  | 
|  1790     if (parent == null) { |  1790     if (parent == null) { | 
|  1791       throw new core.ArgumentError("Parameter parent is required."); |  1791       throw new core.ArgumentError("Parameter parent is required."); | 
|  1792     } |  1792     } | 
 |  1793     if (pageSize != null) { | 
 |  1794       _queryParams["pageSize"] = ["${pageSize}"]; | 
 |  1795     } | 
|  1793     if (pageToken != null) { |  1796     if (pageToken != null) { | 
|  1794       _queryParams["pageToken"] = [pageToken]; |  1797       _queryParams["pageToken"] = [pageToken]; | 
|  1795     } |  1798     } | 
|  1796     if (pageSize != null) { |  | 
|  1797       _queryParams["pageSize"] = ["${pageSize}"]; |  | 
|  1798     } |  | 
|  1799  |  1799  | 
|  1800     _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/metrics'
      ; |  1800     _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/metrics'
      ; | 
|  1801  |  1801  | 
|  1802     var _response = _requester.request(_url, |  1802     var _response = _requester.request(_url, | 
|  1803                                        "GET", |  1803                                        "GET", | 
|  1804                                        body: _body, |  1804                                        body: _body, | 
|  1805                                        queryParams: _queryParams, |  1805                                        queryParams: _queryParams, | 
|  1806                                        uploadOptions: _uploadOptions, |  1806                                        uploadOptions: _uploadOptions, | 
|  1807                                        uploadMedia: _uploadMedia, |  1807                                        uploadMedia: _uploadMedia, | 
|  1808                                        downloadOptions: _downloadOptions); |  1808                                        downloadOptions: _downloadOptions); | 
| (...skipping 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3893   WriteLogEntriesResponse(); |  3893   WriteLogEntriesResponse(); | 
|  3894  |  3894  | 
|  3895   WriteLogEntriesResponse.fromJson(core.Map _json) { |  3895   WriteLogEntriesResponse.fromJson(core.Map _json) { | 
|  3896   } |  3896   } | 
|  3897  |  3897  | 
|  3898   core.Map<core.String, core.Object> toJson() { |  3898   core.Map<core.String, core.Object> toJson() { | 
|  3899     final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
      ore.Object>(); |  3899     final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
      ore.Object>(); | 
|  3900     return _json; |  3900     return _json; | 
|  3901   } |  3901   } | 
|  3902 } |  3902 } | 
| OLD | NEW |