| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 * Request parameters: | 120 * Request parameters: |
| 121 * | 121 * |
| 122 * [parent] - Required. The resource name that owns the logs: | 122 * [parent] - Required. The resource name that owns the logs: |
| 123 * "projects/[PROJECT_ID]" | 123 * "projects/[PROJECT_ID]" |
| 124 * "organizations/[ORGANIZATION_ID]" | 124 * "organizations/[ORGANIZATION_ID]" |
| 125 * "billingAccounts/[BILLING_ACCOUNT_ID]" | 125 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 126 * "folders/[FOLDER_ID]" | 126 * "folders/[FOLDER_ID]" |
| 127 * | 127 * |
| 128 * Value must have pattern "^billingAccounts/[^/]+$". | 128 * Value must have pattern "^billingAccounts/[^/]+$". |
| 129 * | 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 * [pageToken] - Optional. If present, then retrieve the next batch of results | 130 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 135 * from the preceding call to this method. pageToken must be the value of | 131 * from the preceding call to this method. pageToken must be the value of |
| 136 * nextPageToken from the previous response. The values of other method | 132 * nextPageToken from the previous response. The values of other method |
| 137 * parameters should be identical to those in the previous call. | 133 * parameters should be identical to those in the previous call. |
| 138 * | 134 * |
| 135 * [pageSize] - Optional. The maximum number of results to return from this |
| 136 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 137 * the response indicates that more results might be available. |
| 138 * |
| 139 * Completes with a [ListLogsResponse]. | 139 * Completes with a [ListLogsResponse]. |
| 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<ListLogsResponse> list(core.String parent, {core.int pageSize, co
re.String pageToken}) { | 147 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken
, core.int pageSize}) { |
| 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 (parent == null) { | 155 if (parent == null) { |
| 156 throw new core.ArgumentError("Parameter parent is required."); | 156 throw new core.ArgumentError("Parameter parent is required."); |
| 157 } | 157 } |
| 158 if (pageToken != null) { |
| 159 _queryParams["pageToken"] = [pageToken]; |
| 160 } |
| 158 if (pageSize != null) { | 161 if (pageSize != null) { |
| 159 _queryParams["pageSize"] = ["${pageSize}"]; | 162 _queryParams["pageSize"] = ["${pageSize}"]; |
| 160 } | 163 } |
| 161 if (pageToken != null) { | |
| 162 _queryParams["pageToken"] = [pageToken]; | |
| 163 } | |
| 164 | 164 |
| 165 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; | 165 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; |
| 166 | 166 |
| 167 var _response = _requester.request(_url, | 167 var _response = _requester.request(_url, |
| 168 "GET", | 168 "GET", |
| 169 body: _body, | 169 body: _body, |
| 170 queryParams: _queryParams, | 170 queryParams: _queryParams, |
| 171 uploadOptions: _uploadOptions, | 171 uploadOptions: _uploadOptions, |
| 172 uploadMedia: _uploadMedia, | 172 uploadMedia: _uploadMedia, |
| 173 downloadOptions: _downloadOptions); | 173 downloadOptions: _downloadOptions); |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 * Request parameters: | 866 * Request parameters: |
| 867 * | 867 * |
| 868 * [parent] - Required. The parent resource whose sinks are to be listed: | 868 * [parent] - Required. The parent resource whose sinks are to be listed: |
| 869 * "projects/[PROJECT_ID]" | 869 * "projects/[PROJECT_ID]" |
| 870 * "organizations/[ORGANIZATION_ID]" | 870 * "organizations/[ORGANIZATION_ID]" |
| 871 * "billingAccounts/[BILLING_ACCOUNT_ID]" | 871 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 872 * "folders/[FOLDER_ID]" | 872 * "folders/[FOLDER_ID]" |
| 873 * | 873 * |
| 874 * Value must have pattern "^folders/[^/]+$". | 874 * Value must have pattern "^folders/[^/]+$". |
| 875 * | 875 * |
| 876 * [pageSize] - Optional. The maximum number of results to return from this | |
| 877 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 878 * the response indicates that more results might be available. | |
| 879 * | |
| 880 * [pageToken] - Optional. If present, then retrieve the next batch of results | 876 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 881 * from the preceding call to this method. pageToken must be the value of | 877 * from the preceding call to this method. pageToken must be the value of |
| 882 * nextPageToken from the previous response. The values of other method | 878 * nextPageToken from the previous response. The values of other method |
| 883 * parameters should be identical to those in the previous call. | 879 * parameters should be identical to those in the previous call. |
| 884 * | 880 * |
| 881 * [pageSize] - Optional. The maximum number of results to return from this |
| 882 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 883 * the response indicates that more results might be available. |
| 884 * |
| 885 * Completes with a [ListSinksResponse]. | 885 * Completes with a [ListSinksResponse]. |
| 886 * | 886 * |
| 887 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 887 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 888 * error. | 888 * error. |
| 889 * | 889 * |
| 890 * If the used [http.Client] completes with an error when making a REST call, | 890 * If the used [http.Client] completes with an error when making a REST call, |
| 891 * this method will complete with the same error. | 891 * this method will complete with the same error. |
| 892 */ | 892 */ |
| 893 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c
ore.String pageToken}) { | 893 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke
n, core.int pageSize}) { |
| 894 var _url = null; | 894 var _url = null; |
| 895 var _queryParams = new core.Map(); | 895 var _queryParams = new core.Map(); |
| 896 var _uploadMedia = null; | 896 var _uploadMedia = null; |
| 897 var _uploadOptions = null; | 897 var _uploadOptions = null; |
| 898 var _downloadOptions = commons.DownloadOptions.Metadata; | 898 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 899 var _body = null; | 899 var _body = null; |
| 900 | 900 |
| 901 if (parent == null) { | 901 if (parent == null) { |
| 902 throw new core.ArgumentError("Parameter parent is required."); | 902 throw new core.ArgumentError("Parameter parent is required."); |
| 903 } | 903 } |
| 904 if (pageToken != null) { |
| 905 _queryParams["pageToken"] = [pageToken]; |
| 906 } |
| 904 if (pageSize != null) { | 907 if (pageSize != null) { |
| 905 _queryParams["pageSize"] = ["${pageSize}"]; | 908 _queryParams["pageSize"] = ["${pageSize}"]; |
| 906 } | 909 } |
| 907 if (pageToken != null) { | |
| 908 _queryParams["pageToken"] = [pageToken]; | |
| 909 } | |
| 910 | 910 |
| 911 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; | 911 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; |
| 912 | 912 |
| 913 var _response = _requester.request(_url, | 913 var _response = _requester.request(_url, |
| 914 "GET", | 914 "GET", |
| 915 body: _body, | 915 body: _body, |
| 916 queryParams: _queryParams, | 916 queryParams: _queryParams, |
| 917 uploadOptions: _uploadOptions, | 917 uploadOptions: _uploadOptions, |
| 918 uploadMedia: _uploadMedia, | 918 uploadMedia: _uploadMedia, |
| 919 downloadOptions: _downloadOptions); | 919 downloadOptions: _downloadOptions); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 | 997 |
| 998 MonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) : | 998 MonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) : |
| 999 _requester = client; | 999 _requester = client; |
| 1000 | 1000 |
| 1001 /** | 1001 /** |
| 1002 * Lists the descriptors for monitored resource types used by Stackdriver | 1002 * Lists the descriptors for monitored resource types used by Stackdriver |
| 1003 * Logging. | 1003 * Logging. |
| 1004 * | 1004 * |
| 1005 * Request parameters: | 1005 * Request parameters: |
| 1006 * | 1006 * |
| 1007 * [pageSize] - Optional. The maximum number of results to return from this | |
| 1008 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 1009 * the response indicates that more results might be available. | |
| 1010 * | |
| 1011 * [pageToken] - Optional. If present, then retrieve the next batch of results | 1007 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 1012 * from the preceding call to this method. pageToken must be the value of | 1008 * from the preceding call to this method. pageToken must be the value of |
| 1013 * nextPageToken from the previous response. The values of other method | 1009 * nextPageToken from the previous response. The values of other method |
| 1014 * parameters should be identical to those in the previous call. | 1010 * parameters should be identical to those in the previous call. |
| 1015 * | 1011 * |
| 1012 * [pageSize] - Optional. The maximum number of results to return from this |
| 1013 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 1014 * the response indicates that more results might be available. |
| 1015 * |
| 1016 * Completes with a [ListMonitoredResourceDescriptorsResponse]. | 1016 * Completes with a [ListMonitoredResourceDescriptorsResponse]. |
| 1017 * | 1017 * |
| 1018 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1018 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1019 * error. | 1019 * error. |
| 1020 * | 1020 * |
| 1021 * If the used [http.Client] completes with an error when making a REST call, | 1021 * If the used [http.Client] completes with an error when making a REST call, |
| 1022 * this method will complete with the same error. | 1022 * this method will complete with the same error. |
| 1023 */ | 1023 */ |
| 1024 async.Future<ListMonitoredResourceDescriptorsResponse> list({core.int pageSize
, core.String pageToken}) { | 1024 async.Future<ListMonitoredResourceDescriptorsResponse> list({core.String pageT
oken, core.int pageSize}) { |
| 1025 var _url = null; | 1025 var _url = null; |
| 1026 var _queryParams = new core.Map(); | 1026 var _queryParams = new core.Map(); |
| 1027 var _uploadMedia = null; | 1027 var _uploadMedia = null; |
| 1028 var _uploadOptions = null; | 1028 var _uploadOptions = null; |
| 1029 var _downloadOptions = commons.DownloadOptions.Metadata; | 1029 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1030 var _body = null; | 1030 var _body = null; |
| 1031 | 1031 |
| 1032 if (pageToken != null) { |
| 1033 _queryParams["pageToken"] = [pageToken]; |
| 1034 } |
| 1032 if (pageSize != null) { | 1035 if (pageSize != null) { |
| 1033 _queryParams["pageSize"] = ["${pageSize}"]; | 1036 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1034 } | 1037 } |
| 1035 if (pageToken != null) { | |
| 1036 _queryParams["pageToken"] = [pageToken]; | |
| 1037 } | |
| 1038 | 1038 |
| 1039 _url = 'v2/monitoredResourceDescriptors'; | 1039 _url = 'v2/monitoredResourceDescriptors'; |
| 1040 | 1040 |
| 1041 var _response = _requester.request(_url, | 1041 var _response = _requester.request(_url, |
| 1042 "GET", | 1042 "GET", |
| 1043 body: _body, | 1043 body: _body, |
| 1044 queryParams: _queryParams, | 1044 queryParams: _queryParams, |
| 1045 uploadOptions: _uploadOptions, | 1045 uploadOptions: _uploadOptions, |
| 1046 uploadMedia: _uploadMedia, | 1046 uploadMedia: _uploadMedia, |
| 1047 downloadOptions: _downloadOptions); | 1047 downloadOptions: _downloadOptions); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 * Request parameters: | 1125 * Request parameters: |
| 1126 * | 1126 * |
| 1127 * [parent] - Required. The resource name that owns the logs: | 1127 * [parent] - Required. The resource name that owns the logs: |
| 1128 * "projects/[PROJECT_ID]" | 1128 * "projects/[PROJECT_ID]" |
| 1129 * "organizations/[ORGANIZATION_ID]" | 1129 * "organizations/[ORGANIZATION_ID]" |
| 1130 * "billingAccounts/[BILLING_ACCOUNT_ID]" | 1130 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 1131 * "folders/[FOLDER_ID]" | 1131 * "folders/[FOLDER_ID]" |
| 1132 * | 1132 * |
| 1133 * Value must have pattern "^organizations/[^/]+$". | 1133 * Value must have pattern "^organizations/[^/]+$". |
| 1134 * | 1134 * |
| 1135 * [pageSize] - Optional. The maximum number of results to return from this | |
| 1136 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 1137 * the response indicates that more results might be available. | |
| 1138 * | |
| 1139 * [pageToken] - Optional. If present, then retrieve the next batch of results | 1135 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 1140 * from the preceding call to this method. pageToken must be the value of | 1136 * from the preceding call to this method. pageToken must be the value of |
| 1141 * nextPageToken from the previous response. The values of other method | 1137 * nextPageToken from the previous response. The values of other method |
| 1142 * parameters should be identical to those in the previous call. | 1138 * parameters should be identical to those in the previous call. |
| 1143 * | 1139 * |
| 1140 * [pageSize] - Optional. The maximum number of results to return from this |
| 1141 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 1142 * the response indicates that more results might be available. |
| 1143 * |
| 1144 * Completes with a [ListLogsResponse]. | 1144 * Completes with a [ListLogsResponse]. |
| 1145 * | 1145 * |
| 1146 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1146 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1147 * error. | 1147 * error. |
| 1148 * | 1148 * |
| 1149 * If the used [http.Client] completes with an error when making a REST call, | 1149 * If the used [http.Client] completes with an error when making a REST call, |
| 1150 * this method will complete with the same error. | 1150 * this method will complete with the same error. |
| 1151 */ | 1151 */ |
| 1152 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co
re.String pageToken}) { | 1152 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken
, core.int pageSize}) { |
| 1153 var _url = null; | 1153 var _url = null; |
| 1154 var _queryParams = new core.Map(); | 1154 var _queryParams = new core.Map(); |
| 1155 var _uploadMedia = null; | 1155 var _uploadMedia = null; |
| 1156 var _uploadOptions = null; | 1156 var _uploadOptions = null; |
| 1157 var _downloadOptions = commons.DownloadOptions.Metadata; | 1157 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1158 var _body = null; | 1158 var _body = null; |
| 1159 | 1159 |
| 1160 if (parent == null) { | 1160 if (parent == null) { |
| 1161 throw new core.ArgumentError("Parameter parent is required."); | 1161 throw new core.ArgumentError("Parameter parent is required."); |
| 1162 } | 1162 } |
| 1163 if (pageToken != null) { |
| 1164 _queryParams["pageToken"] = [pageToken]; |
| 1165 } |
| 1163 if (pageSize != null) { | 1166 if (pageSize != null) { |
| 1164 _queryParams["pageSize"] = ["${pageSize}"]; | 1167 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1165 } | 1168 } |
| 1166 if (pageToken != null) { | |
| 1167 _queryParams["pageToken"] = [pageToken]; | |
| 1168 } | |
| 1169 | 1169 |
| 1170 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; | 1170 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; |
| 1171 | 1171 |
| 1172 var _response = _requester.request(_url, | 1172 var _response = _requester.request(_url, |
| 1173 "GET", | 1173 "GET", |
| 1174 body: _body, | 1174 body: _body, |
| 1175 queryParams: _queryParams, | 1175 queryParams: _queryParams, |
| 1176 uploadOptions: _uploadOptions, | 1176 uploadOptions: _uploadOptions, |
| 1177 uploadMedia: _uploadMedia, | 1177 uploadMedia: _uploadMedia, |
| 1178 downloadOptions: _downloadOptions); | 1178 downloadOptions: _downloadOptions); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1354 * Request parameters: | 1354 * Request parameters: |
| 1355 * | 1355 * |
| 1356 * [parent] - Required. The parent resource whose sinks are to be listed: | 1356 * [parent] - Required. The parent resource whose sinks are to be listed: |
| 1357 * "projects/[PROJECT_ID]" | 1357 * "projects/[PROJECT_ID]" |
| 1358 * "organizations/[ORGANIZATION_ID]" | 1358 * "organizations/[ORGANIZATION_ID]" |
| 1359 * "billingAccounts/[BILLING_ACCOUNT_ID]" | 1359 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 1360 * "folders/[FOLDER_ID]" | 1360 * "folders/[FOLDER_ID]" |
| 1361 * | 1361 * |
| 1362 * Value must have pattern "^organizations/[^/]+$". | 1362 * Value must have pattern "^organizations/[^/]+$". |
| 1363 * | 1363 * |
| 1364 * [pageSize] - Optional. The maximum number of results to return from this | |
| 1365 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 1366 * the response indicates that more results might be available. | |
| 1367 * | |
| 1368 * [pageToken] - Optional. If present, then retrieve the next batch of results | 1364 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 1369 * from the preceding call to this method. pageToken must be the value of | 1365 * from the preceding call to this method. pageToken must be the value of |
| 1370 * nextPageToken from the previous response. The values of other method | 1366 * nextPageToken from the previous response. The values of other method |
| 1371 * parameters should be identical to those in the previous call. | 1367 * parameters should be identical to those in the previous call. |
| 1372 * | 1368 * |
| 1369 * [pageSize] - Optional. The maximum number of results to return from this |
| 1370 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 1371 * the response indicates that more results might be available. |
| 1372 * |
| 1373 * Completes with a [ListSinksResponse]. | 1373 * Completes with a [ListSinksResponse]. |
| 1374 * | 1374 * |
| 1375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1376 * error. | 1376 * error. |
| 1377 * | 1377 * |
| 1378 * If the used [http.Client] completes with an error when making a REST call, | 1378 * If the used [http.Client] completes with an error when making a REST call, |
| 1379 * this method will complete with the same error. | 1379 * this method will complete with the same error. |
| 1380 */ | 1380 */ |
| 1381 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c
ore.String pageToken}) { | 1381 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke
n, core.int pageSize}) { |
| 1382 var _url = null; | 1382 var _url = null; |
| 1383 var _queryParams = new core.Map(); | 1383 var _queryParams = new core.Map(); |
| 1384 var _uploadMedia = null; | 1384 var _uploadMedia = null; |
| 1385 var _uploadOptions = null; | 1385 var _uploadOptions = null; |
| 1386 var _downloadOptions = commons.DownloadOptions.Metadata; | 1386 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1387 var _body = null; | 1387 var _body = null; |
| 1388 | 1388 |
| 1389 if (parent == null) { | 1389 if (parent == null) { |
| 1390 throw new core.ArgumentError("Parameter parent is required."); | 1390 throw new core.ArgumentError("Parameter parent is required."); |
| 1391 } | 1391 } |
| 1392 if (pageToken != null) { |
| 1393 _queryParams["pageToken"] = [pageToken]; |
| 1394 } |
| 1392 if (pageSize != null) { | 1395 if (pageSize != null) { |
| 1393 _queryParams["pageSize"] = ["${pageSize}"]; | 1396 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1394 } | 1397 } |
| 1395 if (pageToken != null) { | |
| 1396 _queryParams["pageToken"] = [pageToken]; | |
| 1397 } | |
| 1398 | 1398 |
| 1399 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; | 1399 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; |
| 1400 | 1400 |
| 1401 var _response = _requester.request(_url, | 1401 var _response = _requester.request(_url, |
| 1402 "GET", | 1402 "GET", |
| 1403 body: _body, | 1403 body: _body, |
| 1404 queryParams: _queryParams, | 1404 queryParams: _queryParams, |
| 1405 uploadOptions: _uploadOptions, | 1405 uploadOptions: _uploadOptions, |
| 1406 uploadMedia: _uploadMedia, | 1406 uploadMedia: _uploadMedia, |
| 1407 downloadOptions: _downloadOptions); | 1407 downloadOptions: _downloadOptions); |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1555 * Request parameters: | 1555 * Request parameters: |
| 1556 * | 1556 * |
| 1557 * [parent] - Required. The resource name that owns the logs: | 1557 * [parent] - Required. The resource name that owns the logs: |
| 1558 * "projects/[PROJECT_ID]" | 1558 * "projects/[PROJECT_ID]" |
| 1559 * "organizations/[ORGANIZATION_ID]" | 1559 * "organizations/[ORGANIZATION_ID]" |
| 1560 * "billingAccounts/[BILLING_ACCOUNT_ID]" | 1560 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 1561 * "folders/[FOLDER_ID]" | 1561 * "folders/[FOLDER_ID]" |
| 1562 * | 1562 * |
| 1563 * Value must have pattern "^projects/[^/]+$". | 1563 * Value must have pattern "^projects/[^/]+$". |
| 1564 * | 1564 * |
| 1565 * [pageSize] - Optional. The maximum number of results to return from this | |
| 1566 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 1567 * the response indicates that more results might be available. | |
| 1568 * | |
| 1569 * [pageToken] - Optional. If present, then retrieve the next batch of results | 1565 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 1570 * from the preceding call to this method. pageToken must be the value of | 1566 * from the preceding call to this method. pageToken must be the value of |
| 1571 * nextPageToken from the previous response. The values of other method | 1567 * nextPageToken from the previous response. The values of other method |
| 1572 * parameters should be identical to those in the previous call. | 1568 * parameters should be identical to those in the previous call. |
| 1573 * | 1569 * |
| 1570 * [pageSize] - Optional. The maximum number of results to return from this |
| 1571 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 1572 * the response indicates that more results might be available. |
| 1573 * |
| 1574 * Completes with a [ListLogsResponse]. | 1574 * Completes with a [ListLogsResponse]. |
| 1575 * | 1575 * |
| 1576 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1576 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1577 * error. | 1577 * error. |
| 1578 * | 1578 * |
| 1579 * If the used [http.Client] completes with an error when making a REST call, | 1579 * If the used [http.Client] completes with an error when making a REST call, |
| 1580 * this method will complete with the same error. | 1580 * this method will complete with the same error. |
| 1581 */ | 1581 */ |
| 1582 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co
re.String pageToken}) { | 1582 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken
, core.int pageSize}) { |
| 1583 var _url = null; | 1583 var _url = null; |
| 1584 var _queryParams = new core.Map(); | 1584 var _queryParams = new core.Map(); |
| 1585 var _uploadMedia = null; | 1585 var _uploadMedia = null; |
| 1586 var _uploadOptions = null; | 1586 var _uploadOptions = null; |
| 1587 var _downloadOptions = commons.DownloadOptions.Metadata; | 1587 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1588 var _body = null; | 1588 var _body = null; |
| 1589 | 1589 |
| 1590 if (parent == null) { | 1590 if (parent == null) { |
| 1591 throw new core.ArgumentError("Parameter parent is required."); | 1591 throw new core.ArgumentError("Parameter parent is required."); |
| 1592 } | 1592 } |
| 1593 if (pageToken != null) { |
| 1594 _queryParams["pageToken"] = [pageToken]; |
| 1595 } |
| 1593 if (pageSize != null) { | 1596 if (pageSize != null) { |
| 1594 _queryParams["pageSize"] = ["${pageSize}"]; | 1597 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1595 } | 1598 } |
| 1596 if (pageToken != null) { | |
| 1597 _queryParams["pageToken"] = [pageToken]; | |
| 1598 } | |
| 1599 | 1599 |
| 1600 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; | 1600 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; |
| 1601 | 1601 |
| 1602 var _response = _requester.request(_url, | 1602 var _response = _requester.request(_url, |
| 1603 "GET", | 1603 "GET", |
| 1604 body: _body, | 1604 body: _body, |
| 1605 queryParams: _queryParams, | 1605 queryParams: _queryParams, |
| 1606 uploadOptions: _uploadOptions, | 1606 uploadOptions: _uploadOptions, |
| 1607 uploadMedia: _uploadMedia, | 1607 uploadMedia: _uploadMedia, |
| 1608 downloadOptions: _downloadOptions); | 1608 downloadOptions: _downloadOptions); |
| (...skipping 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3137 core.String endTime; | 3137 core.String endTime; |
| 3138 /** | 3138 /** |
| 3139 * Optional. An advanced logs filter. The only exported log entries are those | 3139 * Optional. An advanced logs filter. The only exported log entries are those |
| 3140 * that are in the resource owning the sink and that match the filter. The | 3140 * that are in the resource owning the sink and that match the filter. The |
| 3141 * filter must use the log entry format specified by the output_version_format | 3141 * filter must use the log entry format specified by the output_version_format |
| 3142 * parameter. For example, in the v2 format: | 3142 * parameter. For example, in the v2 format: |
| 3143 * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR | 3143 * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR |
| 3144 */ | 3144 */ |
| 3145 core.String filter; | 3145 core.String filter; |
| 3146 /** | 3146 /** |
| 3147 * Optional. This field presently applies only to sinks in organizations and |
| 3148 * folders. If true, then logs from children of this entity will also be |
| 3149 * available to this sink for export. Whether particular log entries from the |
| 3150 * children are exported depends on the sink's filter expression. For example, |
| 3151 * if this sink is associated with an organization, then logs from all |
| 3152 * projects in the organization as well as from the organization itself will |
| 3153 * be available for export. |
| 3154 */ |
| 3155 core.bool includeChildren; |
| 3156 /** |
| 3147 * Required. The client-assigned sink identifier, unique within the project. | 3157 * Required. The client-assigned sink identifier, unique within the project. |
| 3148 * Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100 | 3158 * Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100 |
| 3149 * characters and can include only the following characters: upper and | 3159 * characters and can include only the following characters: upper and |
| 3150 * lower-case alphanumeric characters, underscores, hyphens, and periods. | 3160 * lower-case alphanumeric characters, underscores, hyphens, and periods. |
| 3151 */ | 3161 */ |
| 3152 core.String name; | 3162 core.String name; |
| 3153 /** | 3163 /** |
| 3154 * Optional. The log entry format to use for this sink's exported log entries. | 3164 * Optional. The log entry format to use for this sink's exported log entries. |
| 3155 * The v2 format is used by default. The v1 format is deprecated and should be | 3165 * The v2 format is used by default. The v1 format is deprecated and should be |
| 3156 * used only as part of a migration effort to v2. See Migration to the v2 API. | 3166 * used only as part of a migration effort to v2. See Migration to the v2 API. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 3185 LogSink.fromJson(core.Map _json) { | 3195 LogSink.fromJson(core.Map _json) { |
| 3186 if (_json.containsKey("destination")) { | 3196 if (_json.containsKey("destination")) { |
| 3187 destination = _json["destination"]; | 3197 destination = _json["destination"]; |
| 3188 } | 3198 } |
| 3189 if (_json.containsKey("endTime")) { | 3199 if (_json.containsKey("endTime")) { |
| 3190 endTime = _json["endTime"]; | 3200 endTime = _json["endTime"]; |
| 3191 } | 3201 } |
| 3192 if (_json.containsKey("filter")) { | 3202 if (_json.containsKey("filter")) { |
| 3193 filter = _json["filter"]; | 3203 filter = _json["filter"]; |
| 3194 } | 3204 } |
| 3205 if (_json.containsKey("includeChildren")) { |
| 3206 includeChildren = _json["includeChildren"]; |
| 3207 } |
| 3195 if (_json.containsKey("name")) { | 3208 if (_json.containsKey("name")) { |
| 3196 name = _json["name"]; | 3209 name = _json["name"]; |
| 3197 } | 3210 } |
| 3198 if (_json.containsKey("outputVersionFormat")) { | 3211 if (_json.containsKey("outputVersionFormat")) { |
| 3199 outputVersionFormat = _json["outputVersionFormat"]; | 3212 outputVersionFormat = _json["outputVersionFormat"]; |
| 3200 } | 3213 } |
| 3201 if (_json.containsKey("startTime")) { | 3214 if (_json.containsKey("startTime")) { |
| 3202 startTime = _json["startTime"]; | 3215 startTime = _json["startTime"]; |
| 3203 } | 3216 } |
| 3204 if (_json.containsKey("writerIdentity")) { | 3217 if (_json.containsKey("writerIdentity")) { |
| 3205 writerIdentity = _json["writerIdentity"]; | 3218 writerIdentity = _json["writerIdentity"]; |
| 3206 } | 3219 } |
| 3207 } | 3220 } |
| 3208 | 3221 |
| 3209 core.Map toJson() { | 3222 core.Map toJson() { |
| 3210 var _json = new core.Map(); | 3223 var _json = new core.Map(); |
| 3211 if (destination != null) { | 3224 if (destination != null) { |
| 3212 _json["destination"] = destination; | 3225 _json["destination"] = destination; |
| 3213 } | 3226 } |
| 3214 if (endTime != null) { | 3227 if (endTime != null) { |
| 3215 _json["endTime"] = endTime; | 3228 _json["endTime"] = endTime; |
| 3216 } | 3229 } |
| 3217 if (filter != null) { | 3230 if (filter != null) { |
| 3218 _json["filter"] = filter; | 3231 _json["filter"] = filter; |
| 3219 } | 3232 } |
| 3233 if (includeChildren != null) { |
| 3234 _json["includeChildren"] = includeChildren; |
| 3235 } |
| 3220 if (name != null) { | 3236 if (name != null) { |
| 3221 _json["name"] = name; | 3237 _json["name"] = name; |
| 3222 } | 3238 } |
| 3223 if (outputVersionFormat != null) { | 3239 if (outputVersionFormat != null) { |
| 3224 _json["outputVersionFormat"] = outputVersionFormat; | 3240 _json["outputVersionFormat"] = outputVersionFormat; |
| 3225 } | 3241 } |
| 3226 if (startTime != null) { | 3242 if (startTime != null) { |
| 3227 _json["startTime"] = startTime; | 3243 _json["startTime"] = startTime; |
| 3228 } | 3244 } |
| 3229 if (writerIdentity != null) { | 3245 if (writerIdentity != null) { |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3858 WriteLogEntriesResponse(); | 3874 WriteLogEntriesResponse(); |
| 3859 | 3875 |
| 3860 WriteLogEntriesResponse.fromJson(core.Map _json) { | 3876 WriteLogEntriesResponse.fromJson(core.Map _json) { |
| 3861 } | 3877 } |
| 3862 | 3878 |
| 3863 core.Map toJson() { | 3879 core.Map toJson() { |
| 3864 var _json = new core.Map(); | 3880 var _json = new core.Map(); |
| 3865 return _json; | 3881 return _json; |
| 3866 } | 3882 } |
| 3867 } | 3883 } |
| OLD | NEW |