| 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 * |
| 130 * [pageToken] - Optional. If present, then retrieve the next batch of results | 134 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 131 * from the preceding call to this method. pageToken must be the value of | 135 * from the preceding call to this method. pageToken must be the value of |
| 132 * nextPageToken from the previous response. The values of other method | 136 * nextPageToken from the previous response. The values of other method |
| 133 * parameters should be identical to those in the previous call. | 137 * parameters should be identical to those in the previous call. |
| 134 * | 138 * |
| 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.String pageToken
, core.int pageSize}) { | 147 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co
re.String pageToken}) { |
| 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 (pageSize != null) { |
| 159 _queryParams["pageSize"] = ["${pageSize}"]; |
| 160 } |
| 158 if (pageToken != null) { | 161 if (pageToken != null) { |
| 159 _queryParams["pageToken"] = [pageToken]; | 162 _queryParams["pageToken"] = [pageToken]; |
| 160 } | 163 } |
| 161 if (pageSize != null) { | |
| 162 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 "POST", | 515 "POST", |
| 516 body: _body, | 516 body: _body, |
| 517 queryParams: _queryParams, | 517 queryParams: _queryParams, |
| 518 uploadOptions: _uploadOptions, | 518 uploadOptions: _uploadOptions, |
| 519 uploadMedia: _uploadMedia, | 519 uploadMedia: _uploadMedia, |
| 520 downloadOptions: _downloadOptions); | 520 downloadOptions: _downloadOptions); |
| 521 return _response.then((data) => new ListLogEntriesResponse.fromJson(data)); | 521 return _response.then((data) => new ListLogEntriesResponse.fromJson(data)); |
| 522 } | 522 } |
| 523 | 523 |
| 524 /** | 524 /** |
| 525 * Writes log entries to Stackdriver Logging. All log entries are written by | 525 * Writes log entries to Stackdriver Logging. |
| 526 * this method. | |
| 527 * | 526 * |
| 528 * [request] - The metadata request object. | 527 * [request] - The metadata request object. |
| 529 * | 528 * |
| 530 * Request parameters: | 529 * Request parameters: |
| 531 * | 530 * |
| 532 * Completes with a [WriteLogEntriesResponse]. | 531 * Completes with a [WriteLogEntriesResponse]. |
| 533 * | 532 * |
| 534 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 533 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 535 * error. | 534 * error. |
| 536 * | 535 * |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 * Request parameters: | 866 * Request parameters: |
| 868 * | 867 * |
| 869 * [parent] - Required. The parent resource whose sinks are to be listed: | 868 * [parent] - Required. The parent resource whose sinks are to be listed: |
| 870 * "projects/[PROJECT_ID]" | 869 * "projects/[PROJECT_ID]" |
| 871 * "organizations/[ORGANIZATION_ID]" | 870 * "organizations/[ORGANIZATION_ID]" |
| 872 * "billingAccounts/[BILLING_ACCOUNT_ID]" | 871 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 873 * "folders/[FOLDER_ID]" | 872 * "folders/[FOLDER_ID]" |
| 874 * | 873 * |
| 875 * Value must have pattern "^folders/[^/]+$". | 874 * Value must have pattern "^folders/[^/]+$". |
| 876 * | 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 * |
| 877 * [pageToken] - Optional. If present, then retrieve the next batch of results | 880 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 878 * from the preceding call to this method. pageToken must be the value of | 881 * from the preceding call to this method. pageToken must be the value of |
| 879 * nextPageToken from the previous response. The values of other method | 882 * nextPageToken from the previous response. The values of other method |
| 880 * parameters should be identical to those in the previous call. | 883 * parameters should be identical to those in the previous call. |
| 881 * | 884 * |
| 882 * [pageSize] - Optional. The maximum number of results to return from this | |
| 883 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 884 * the response indicates that more results might be available. | |
| 885 * | |
| 886 * Completes with a [ListSinksResponse]. | 885 * Completes with a [ListSinksResponse]. |
| 887 * | 886 * |
| 888 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 887 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 889 * error. | 888 * error. |
| 890 * | 889 * |
| 891 * 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, |
| 892 * this method will complete with the same error. | 891 * this method will complete with the same error. |
| 893 */ | 892 */ |
| 894 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke
n, core.int pageSize}) { | 893 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c
ore.String pageToken}) { |
| 895 var _url = null; | 894 var _url = null; |
| 896 var _queryParams = new core.Map(); | 895 var _queryParams = new core.Map(); |
| 897 var _uploadMedia = null; | 896 var _uploadMedia = null; |
| 898 var _uploadOptions = null; | 897 var _uploadOptions = null; |
| 899 var _downloadOptions = commons.DownloadOptions.Metadata; | 898 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 900 var _body = null; | 899 var _body = null; |
| 901 | 900 |
| 902 if (parent == null) { | 901 if (parent == null) { |
| 903 throw new core.ArgumentError("Parameter parent is required."); | 902 throw new core.ArgumentError("Parameter parent is required."); |
| 904 } | 903 } |
| 904 if (pageSize != null) { |
| 905 _queryParams["pageSize"] = ["${pageSize}"]; |
| 906 } |
| 905 if (pageToken != null) { | 907 if (pageToken != null) { |
| 906 _queryParams["pageToken"] = [pageToken]; | 908 _queryParams["pageToken"] = [pageToken]; |
| 907 } | 909 } |
| 908 if (pageSize != null) { | |
| 909 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 910 } | |
| 911 | 910 |
| 912 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; | 911 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; |
| 913 | 912 |
| 914 var _response = _requester.request(_url, | 913 var _response = _requester.request(_url, |
| 915 "GET", | 914 "GET", |
| 916 body: _body, | 915 body: _body, |
| 917 queryParams: _queryParams, | 916 queryParams: _queryParams, |
| 918 uploadOptions: _uploadOptions, | 917 uploadOptions: _uploadOptions, |
| 919 uploadMedia: _uploadMedia, | 918 uploadMedia: _uploadMedia, |
| 920 downloadOptions: _downloadOptions); | 919 downloadOptions: _downloadOptions); |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 * Request parameters: | 1125 * Request parameters: |
| 1127 * | 1126 * |
| 1128 * [parent] - Required. The resource name that owns the logs: | 1127 * [parent] - Required. The resource name that owns the logs: |
| 1129 * "projects/[PROJECT_ID]" | 1128 * "projects/[PROJECT_ID]" |
| 1130 * "organizations/[ORGANIZATION_ID]" | 1129 * "organizations/[ORGANIZATION_ID]" |
| 1131 * "billingAccounts/[BILLING_ACCOUNT_ID]" | 1130 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 1132 * "folders/[FOLDER_ID]" | 1131 * "folders/[FOLDER_ID]" |
| 1133 * | 1132 * |
| 1134 * Value must have pattern "^organizations/[^/]+$". | 1133 * Value must have pattern "^organizations/[^/]+$". |
| 1135 * | 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 * |
| 1136 * [pageToken] - Optional. If present, then retrieve the next batch of results | 1139 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 1137 * from the preceding call to this method. pageToken must be the value of | 1140 * from the preceding call to this method. pageToken must be the value of |
| 1138 * nextPageToken from the previous response. The values of other method | 1141 * nextPageToken from the previous response. The values of other method |
| 1139 * parameters should be identical to those in the previous call. | 1142 * parameters should be identical to those in the previous call. |
| 1140 * | 1143 * |
| 1141 * [pageSize] - Optional. The maximum number of results to return from this | |
| 1142 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 1143 * the response indicates that more results might be available. | |
| 1144 * | |
| 1145 * Completes with a [ListLogsResponse]. | 1144 * Completes with a [ListLogsResponse]. |
| 1146 * | 1145 * |
| 1147 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1146 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1148 * error. | 1147 * error. |
| 1149 * | 1148 * |
| 1150 * 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, |
| 1151 * this method will complete with the same error. | 1150 * this method will complete with the same error. |
| 1152 */ | 1151 */ |
| 1153 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken
, core.int pageSize}) { | 1152 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co
re.String pageToken}) { |
| 1154 var _url = null; | 1153 var _url = null; |
| 1155 var _queryParams = new core.Map(); | 1154 var _queryParams = new core.Map(); |
| 1156 var _uploadMedia = null; | 1155 var _uploadMedia = null; |
| 1157 var _uploadOptions = null; | 1156 var _uploadOptions = null; |
| 1158 var _downloadOptions = commons.DownloadOptions.Metadata; | 1157 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1159 var _body = null; | 1158 var _body = null; |
| 1160 | 1159 |
| 1161 if (parent == null) { | 1160 if (parent == null) { |
| 1162 throw new core.ArgumentError("Parameter parent is required."); | 1161 throw new core.ArgumentError("Parameter parent is required."); |
| 1163 } | 1162 } |
| 1163 if (pageSize != null) { |
| 1164 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1165 } |
| 1164 if (pageToken != null) { | 1166 if (pageToken != null) { |
| 1165 _queryParams["pageToken"] = [pageToken]; | 1167 _queryParams["pageToken"] = [pageToken]; |
| 1166 } | 1168 } |
| 1167 if (pageSize != null) { | |
| 1168 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1169 } | |
| 1170 | 1169 |
| 1171 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; | 1170 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; |
| 1172 | 1171 |
| 1173 var _response = _requester.request(_url, | 1172 var _response = _requester.request(_url, |
| 1174 "GET", | 1173 "GET", |
| 1175 body: _body, | 1174 body: _body, |
| 1176 queryParams: _queryParams, | 1175 queryParams: _queryParams, |
| 1177 uploadOptions: _uploadOptions, | 1176 uploadOptions: _uploadOptions, |
| 1178 uploadMedia: _uploadMedia, | 1177 uploadMedia: _uploadMedia, |
| 1179 downloadOptions: _downloadOptions); | 1178 downloadOptions: _downloadOptions); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 * Request parameters: | 1354 * Request parameters: |
| 1356 * | 1355 * |
| 1357 * [parent] - Required. The parent resource whose sinks are to be listed: | 1356 * [parent] - Required. The parent resource whose sinks are to be listed: |
| 1358 * "projects/[PROJECT_ID]" | 1357 * "projects/[PROJECT_ID]" |
| 1359 * "organizations/[ORGANIZATION_ID]" | 1358 * "organizations/[ORGANIZATION_ID]" |
| 1360 * "billingAccounts/[BILLING_ACCOUNT_ID]" | 1359 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 1361 * "folders/[FOLDER_ID]" | 1360 * "folders/[FOLDER_ID]" |
| 1362 * | 1361 * |
| 1363 * Value must have pattern "^organizations/[^/]+$". | 1362 * Value must have pattern "^organizations/[^/]+$". |
| 1364 * | 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 * |
| 1365 * [pageToken] - Optional. If present, then retrieve the next batch of results | 1368 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 1366 * from the preceding call to this method. pageToken must be the value of | 1369 * from the preceding call to this method. pageToken must be the value of |
| 1367 * nextPageToken from the previous response. The values of other method | 1370 * nextPageToken from the previous response. The values of other method |
| 1368 * parameters should be identical to those in the previous call. | 1371 * parameters should be identical to those in the previous call. |
| 1369 * | 1372 * |
| 1370 * [pageSize] - Optional. The maximum number of results to return from this | |
| 1371 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 1372 * the response indicates that more results might be available. | |
| 1373 * | |
| 1374 * Completes with a [ListSinksResponse]. | 1373 * Completes with a [ListSinksResponse]. |
| 1375 * | 1374 * |
| 1376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1377 * error. | 1376 * error. |
| 1378 * | 1377 * |
| 1379 * 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, |
| 1380 * this method will complete with the same error. | 1379 * this method will complete with the same error. |
| 1381 */ | 1380 */ |
| 1382 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke
n, core.int pageSize}) { | 1381 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c
ore.String pageToken}) { |
| 1383 var _url = null; | 1382 var _url = null; |
| 1384 var _queryParams = new core.Map(); | 1383 var _queryParams = new core.Map(); |
| 1385 var _uploadMedia = null; | 1384 var _uploadMedia = null; |
| 1386 var _uploadOptions = null; | 1385 var _uploadOptions = null; |
| 1387 var _downloadOptions = commons.DownloadOptions.Metadata; | 1386 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1388 var _body = null; | 1387 var _body = null; |
| 1389 | 1388 |
| 1390 if (parent == null) { | 1389 if (parent == null) { |
| 1391 throw new core.ArgumentError("Parameter parent is required."); | 1390 throw new core.ArgumentError("Parameter parent is required."); |
| 1392 } | 1391 } |
| 1392 if (pageSize != null) { |
| 1393 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1394 } |
| 1393 if (pageToken != null) { | 1395 if (pageToken != null) { |
| 1394 _queryParams["pageToken"] = [pageToken]; | 1396 _queryParams["pageToken"] = [pageToken]; |
| 1395 } | 1397 } |
| 1396 if (pageSize != null) { | |
| 1397 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1398 } | |
| 1399 | 1398 |
| 1400 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; | 1399 _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; |
| 1401 | 1400 |
| 1402 var _response = _requester.request(_url, | 1401 var _response = _requester.request(_url, |
| 1403 "GET", | 1402 "GET", |
| 1404 body: _body, | 1403 body: _body, |
| 1405 queryParams: _queryParams, | 1404 queryParams: _queryParams, |
| 1406 uploadOptions: _uploadOptions, | 1405 uploadOptions: _uploadOptions, |
| 1407 uploadMedia: _uploadMedia, | 1406 uploadMedia: _uploadMedia, |
| 1408 downloadOptions: _downloadOptions); | 1407 downloadOptions: _downloadOptions); |
| (...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2401 * cause the filter to return no results. The maximum length of the filter is | 2400 * cause the filter to return no results. The maximum length of the filter is |
| 2402 * 20000 characters. | 2401 * 20000 characters. |
| 2403 */ | 2402 */ |
| 2404 core.String filter; | 2403 core.String filter; |
| 2405 /** | 2404 /** |
| 2406 * Optional. How the results should be sorted. Presently, the only permitted | 2405 * Optional. How the results should be sorted. Presently, the only permitted |
| 2407 * values are "timestamp asc" (default) and "timestamp desc". The first option | 2406 * values are "timestamp asc" (default) and "timestamp desc". The first option |
| 2408 * returns entries in order of increasing values of LogEntry.timestamp (oldest | 2407 * returns entries in order of increasing values of LogEntry.timestamp (oldest |
| 2409 * first), and the second option returns entries in order of decreasing | 2408 * first), and the second option returns entries in order of decreasing |
| 2410 * timestamps (newest first). Entries with equal timestamps are returned in | 2409 * timestamps (newest first). Entries with equal timestamps are returned in |
| 2411 * order of LogEntry.insertId. | 2410 * order of their insert_id values. |
| 2412 */ | 2411 */ |
| 2413 core.String orderBy; | 2412 core.String orderBy; |
| 2414 /** | 2413 /** |
| 2415 * Optional. The maximum number of results to return from this request. | 2414 * Optional. The maximum number of results to return from this request. |
| 2416 * Non-positive values are ignored. The presence of nextPageToken in the | 2415 * Non-positive values are ignored. The presence of next_page_token in the |
| 2417 * response indicates that more results might be available. | 2416 * response indicates that more results might be available. |
| 2418 */ | 2417 */ |
| 2419 core.int pageSize; | 2418 core.int pageSize; |
| 2420 /** | 2419 /** |
| 2421 * Optional. If present, then retrieve the next batch of results from the | 2420 * Optional. If present, then retrieve the next batch of results from the |
| 2422 * preceding call to this method. pageToken must be the value of nextPageToken | 2421 * preceding call to this method. page_token must be the value of |
| 2423 * from the previous response. The values of other method parameters should be | 2422 * next_page_token from the previous response. The values of other method |
| 2424 * identical to those in the previous call. | 2423 * parameters should be identical to those in the previous call. |
| 2425 */ | 2424 */ |
| 2426 core.String pageToken; | 2425 core.String pageToken; |
| 2427 /** | 2426 /** |
| 2428 * Deprecated. Use resource_names instead. One or more project identifiers or | 2427 * Deprecated. Use resource_names instead. One or more project identifiers or |
| 2429 * project numbers from which to retrieve log entries. Example: | 2428 * project numbers from which to retrieve log entries. Example: |
| 2430 * "my-project-1A". If present, these project identifiers are converted to | 2429 * "my-project-1A". If present, these project identifiers are converted to |
| 2431 * resource name format and added to the list of resources in resource_names. | 2430 * resource name format and added to the list of resources in resource_names. |
| 2432 */ | 2431 */ |
| 2433 core.List<core.String> projectIds; | 2432 core.List<core.String> projectIds; |
| 2434 /** | 2433 /** |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2669 } | 2668 } |
| 2670 | 2669 |
| 2671 /** An individual entry in a log. */ | 2670 /** An individual entry in a log. */ |
| 2672 class LogEntry { | 2671 class LogEntry { |
| 2673 /** | 2672 /** |
| 2674 * Optional. Information about the HTTP request associated with this log | 2673 * Optional. Information about the HTTP request associated with this log |
| 2675 * entry, if applicable. | 2674 * entry, if applicable. |
| 2676 */ | 2675 */ |
| 2677 HttpRequest httpRequest; | 2676 HttpRequest httpRequest; |
| 2678 /** | 2677 /** |
| 2679 * Optional. A unique ID for the log entry. If you provide this field, the | 2678 * Optional. A unique identifier for the log entry. If you provide a value, |
| 2680 * logging service considers other log entries in the same project with the | 2679 * then Stackdriver Logging considers other log entries in the same project, |
| 2681 * same ID as duplicates which can be removed. If omitted, Stackdriver Logging | 2680 * with the same timestamp, and with the same insert_id to be duplicates which |
| 2682 * will generate a unique ID for this log entry. | 2681 * can be removed. If omitted in new log entries, then Stackdriver Logging |
| 2682 * will insert its own unique identifier. The insert_id is used to order log |
| 2683 * entries that have the same timestamp value. |
| 2683 */ | 2684 */ |
| 2684 core.String insertId; | 2685 core.String insertId; |
| 2685 /** | 2686 /** |
| 2686 * The log entry payload, represented as a structure that is expressed as a | 2687 * The log entry payload, represented as a structure that is expressed as a |
| 2687 * JSON object. | 2688 * JSON object. |
| 2688 * | 2689 * |
| 2689 * The values for Object must be JSON objects. It can consist of `num`, | 2690 * The values for Object must be JSON objects. It can consist of `num`, |
| 2690 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2691 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2691 */ | 2692 */ |
| 2692 core.Map<core.String, core.Object> jsonPayload; | 2693 core.Map<core.String, core.Object> jsonPayload; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2751 core.String severity; | 2752 core.String severity; |
| 2752 /** | 2753 /** |
| 2753 * Optional. Source code location information associated with the log entry, | 2754 * Optional. Source code location information associated with the log entry, |
| 2754 * if any. | 2755 * if any. |
| 2755 */ | 2756 */ |
| 2756 LogEntrySourceLocation sourceLocation; | 2757 LogEntrySourceLocation sourceLocation; |
| 2757 /** The log entry payload, represented as a Unicode string (UTF-8). */ | 2758 /** The log entry payload, represented as a Unicode string (UTF-8). */ |
| 2758 core.String textPayload; | 2759 core.String textPayload; |
| 2759 /** | 2760 /** |
| 2760 * Optional. The time the event described by the log entry occurred. If | 2761 * Optional. The time the event described by the log entry occurred. If |
| 2761 * omitted, Stackdriver Logging will use the time the log entry is received. | 2762 * omitted in a new log entry, Stackdriver Logging will insert the time the |
| 2763 * log entry is received. Stackdriver Logging might reject log entries whose |
| 2764 * time stamps are more than a couple of hours in the future. Log entries with |
| 2765 * time stamps in the past are accepted. |
| 2762 */ | 2766 */ |
| 2763 core.String timestamp; | 2767 core.String timestamp; |
| 2764 /** | 2768 /** |
| 2765 * Optional. Resource name of the trace associated with the log entry, if any. | 2769 * Optional. Resource name of the trace associated with the log entry, if any. |
| 2766 * If it contains a relative resource name, the name is assumed to be relative | 2770 * If it contains a relative resource name, the name is assumed to be relative |
| 2767 * to //tracing.googleapis.com. Example: | 2771 * to //tracing.googleapis.com. Example: |
| 2768 * projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824 | 2772 * projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824 |
| 2769 */ | 2773 */ |
| 2770 core.String trace; | 2774 core.String trace; |
| 2771 | 2775 |
| (...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3751 _json["revisionId"] = revisionId; | 3755 _json["revisionId"] = revisionId; |
| 3752 } | 3756 } |
| 3753 return _json; | 3757 return _json; |
| 3754 } | 3758 } |
| 3755 } | 3759 } |
| 3756 | 3760 |
| 3757 /** The parameters to WriteLogEntries. */ | 3761 /** The parameters to WriteLogEntries. */ |
| 3758 class WriteLogEntriesRequest { | 3762 class WriteLogEntriesRequest { |
| 3759 /** | 3763 /** |
| 3760 * Required. The log entries to write. Values supplied for the fields | 3764 * Required. The log entries to write. Values supplied for the fields |
| 3761 * log_name, resource, and labels in this entries.write request are added to | 3765 * log_name, resource, and labels in this entries.write request are inserted |
| 3762 * those log entries that do not provide their own values for the fields.To | 3766 * into those log entries in this list that do not provide their own |
| 3763 * improve throughput and to avoid exceeding the quota limit for calls to | 3767 * values.Stackdriver Logging also creates and inserts values for timestamp |
| 3764 * entries.write, you should write multiple log entries at once rather than | 3768 * and insert_id if the entries do not provide them. The created insert_id for |
| 3765 * calling this method for each individual log entry. | 3769 * the N'th entry in this list will be greater than earlier entries and less |
| 3770 * than later entries. Otherwise, the order of log entries in this list does |
| 3771 * not matter.To improve throughput and to avoid exceeding the quota limit for |
| 3772 * calls to entries.write, you should write multiple log entries at once |
| 3773 * rather than calling this method for each individual log entry. |
| 3766 */ | 3774 */ |
| 3767 core.List<LogEntry> entries; | 3775 core.List<LogEntry> entries; |
| 3768 /** | 3776 /** |
| 3769 * Optional. Default labels that are added to the labels field of all log | 3777 * Optional. Default labels that are added to the labels field of all log |
| 3770 * entries in entries. If a log entry already has a label with the same key as | 3778 * entries in entries. If a log entry already has a label with the same key as |
| 3771 * a label in this parameter, then the log entry's label is not changed. See | 3779 * a label in this parameter, then the log entry's label is not changed. See |
| 3772 * LogEntry. | 3780 * LogEntry. |
| 3773 */ | 3781 */ |
| 3774 core.Map<core.String, core.String> labels; | 3782 core.Map<core.String, core.String> labels; |
| 3775 /** | 3783 /** |
| 3776 * Optional. A default log resource name that is assigned to all log entries | 3784 * Optional. A default log resource name that is assigned to all log entries |
| 3777 * in entries that do not specify a value for log_name: | 3785 * in entries that do not specify a value for log_name: |
| 3778 * "projects/[PROJECT_ID]/logs/[LOG_ID]" | 3786 * "projects/[PROJECT_ID]/logs/[LOG_ID]" |
| 3779 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" | 3787 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" |
| 3780 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" | 3788 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" |
| 3781 * "folders/[FOLDER_ID]/logs/[LOG_ID]" | 3789 * "folders/[FOLDER_ID]/logs/[LOG_ID]" |
| 3782 * [LOG_ID] must be URL-encoded. For example, | 3790 * [LOG_ID] must be URL-encoded. For example, |
| 3783 * "projects/my-project-id/logs/syslog" or | 3791 * "projects/my-project-id/logs/syslog" or |
| 3784 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". | 3792 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". |
| 3785 * For more information about log names, see LogEntry. | 3793 * For more information about log names, see LogEntry. |
| 3786 */ | 3794 */ |
| 3787 core.String logName; | 3795 core.String logName; |
| 3788 /** | 3796 /** |
| 3789 * Optional. Whether valid entries should be written even if some other | 3797 * Optional. Whether valid entries should be written even if some other |
| 3790 * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any | 3798 * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any |
| 3791 * entry is not written, the response status will be the error associated with | 3799 * entry is not written, then the response status is the error associated with |
| 3792 * one of the failed entries and include error details in the form of | 3800 * one of the failed entries and the response includes error details keyed by |
| 3793 * WriteLogEntriesPartialErrors. | 3801 * the entries' zero-based index in the entries.write method. |
| 3794 */ | 3802 */ |
| 3795 core.bool partialSuccess; | 3803 core.bool partialSuccess; |
| 3796 /** | 3804 /** |
| 3797 * Optional. A default monitored resource object that is assigned to all log | 3805 * Optional. A default monitored resource object that is assigned to all log |
| 3798 * entries in entries that do not specify a value for resource. Example: | 3806 * entries in entries that do not specify a value for resource. Example: |
| 3799 * { "type": "gce_instance", | 3807 * { "type": "gce_instance", |
| 3800 * "labels": { | 3808 * "labels": { |
| 3801 * "zone": "us-central1-a", "instance_id": "00000000000000000000" }} | 3809 * "zone": "us-central1-a", "instance_id": "00000000000000000000" }} |
| 3802 * See LogEntry. | 3810 * See LogEntry. |
| 3803 */ | 3811 */ |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3850 WriteLogEntriesResponse(); | 3858 WriteLogEntriesResponse(); |
| 3851 | 3859 |
| 3852 WriteLogEntriesResponse.fromJson(core.Map _json) { | 3860 WriteLogEntriesResponse.fromJson(core.Map _json) { |
| 3853 } | 3861 } |
| 3854 | 3862 |
| 3855 core.Map toJson() { | 3863 core.Map toJson() { |
| 3856 var _json = new core.Map(); | 3864 var _json = new core.Map(); |
| 3857 return _json; | 3865 return _json; |
| 3858 } | 3866 } |
| 3859 } | 3867 } |
| OLD | NEW |