| 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_beta.logging.v2beta1; | 3 library googleapis_beta.logging.v2beta1; |
| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 * are listed. | 113 * are listed. |
| 114 * | 114 * |
| 115 * Request parameters: | 115 * Request parameters: |
| 116 * | 116 * |
| 117 * [parent] - Required. The resource name that owns the logs: | 117 * [parent] - Required. The resource name that owns the logs: |
| 118 * "projects/[PROJECT_ID]" | 118 * "projects/[PROJECT_ID]" |
| 119 * "organizations/[ORGANIZATION_ID]" | 119 * "organizations/[ORGANIZATION_ID]" |
| 120 * | 120 * |
| 121 * Value must have pattern "^billingAccounts/[^/]+$". | 121 * Value must have pattern "^billingAccounts/[^/]+$". |
| 122 * | 122 * |
| 123 * [pageSize] - Optional. The maximum number of results to return from this | |
| 124 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 125 * the response indicates that more results might be available. | |
| 126 * | |
| 127 * [pageToken] - Optional. If present, then retrieve the next batch of results | 123 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 128 * from the preceding call to this method. pageToken must be the value of | 124 * from the preceding call to this method. pageToken must be the value of |
| 129 * nextPageToken from the previous response. The values of other method | 125 * nextPageToken from the previous response. The values of other method |
| 130 * parameters should be identical to those in the previous call. | 126 * parameters should be identical to those in the previous call. |
| 131 * | 127 * |
| 128 * [pageSize] - Optional. The maximum number of results to return from this |
| 129 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 130 * the response indicates that more results might be available. |
| 131 * |
| 132 * Completes with a [ListLogsResponse]. | 132 * Completes with a [ListLogsResponse]. |
| 133 * | 133 * |
| 134 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 134 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 135 * error. | 135 * error. |
| 136 * | 136 * |
| 137 * If the used [http.Client] completes with an error when making a REST call, | 137 * If the used [http.Client] completes with an error when making a REST call, |
| 138 * this method will complete with the same error. | 138 * this method will complete with the same error. |
| 139 */ | 139 */ |
| 140 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co
re.String pageToken}) { | 140 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken
, core.int pageSize}) { |
| 141 var _url = null; | 141 var _url = null; |
| 142 var _queryParams = new core.Map(); | 142 var _queryParams = new core.Map(); |
| 143 var _uploadMedia = null; | 143 var _uploadMedia = null; |
| 144 var _uploadOptions = null; | 144 var _uploadOptions = null; |
| 145 var _downloadOptions = commons.DownloadOptions.Metadata; | 145 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 146 var _body = null; | 146 var _body = null; |
| 147 | 147 |
| 148 if (parent == null) { | 148 if (parent == null) { |
| 149 throw new core.ArgumentError("Parameter parent is required."); | 149 throw new core.ArgumentError("Parameter parent is required."); |
| 150 } | 150 } |
| 151 if (pageToken != null) { |
| 152 _queryParams["pageToken"] = [pageToken]; |
| 153 } |
| 151 if (pageSize != null) { | 154 if (pageSize != null) { |
| 152 _queryParams["pageSize"] = ["${pageSize}"]; | 155 _queryParams["pageSize"] = ["${pageSize}"]; |
| 153 } | 156 } |
| 154 if (pageToken != null) { | |
| 155 _queryParams["pageToken"] = [pageToken]; | |
| 156 } | |
| 157 | 157 |
| 158 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/log
s'; | 158 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/log
s'; |
| 159 | 159 |
| 160 var _response = _requester.request(_url, | 160 var _response = _requester.request(_url, |
| 161 "GET", | 161 "GET", |
| 162 body: _body, | 162 body: _body, |
| 163 queryParams: _queryParams, | 163 queryParams: _queryParams, |
| 164 uploadOptions: _uploadOptions, | 164 uploadOptions: _uploadOptions, |
| 165 uploadMedia: _uploadMedia, | 165 uploadMedia: _uploadMedia, |
| 166 downloadOptions: _downloadOptions); | 166 downloadOptions: _downloadOptions); |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 264 |
| 265 MonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) : | 265 MonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) : |
| 266 _requester = client; | 266 _requester = client; |
| 267 | 267 |
| 268 /** | 268 /** |
| 269 * Lists the descriptors for monitored resource types used by Stackdriver | 269 * Lists the descriptors for monitored resource types used by Stackdriver |
| 270 * Logging. | 270 * Logging. |
| 271 * | 271 * |
| 272 * Request parameters: | 272 * Request parameters: |
| 273 * | 273 * |
| 274 * [pageSize] - Optional. The maximum number of results to return from this | |
| 275 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 276 * the response indicates that more results might be available. | |
| 277 * | |
| 278 * [pageToken] - Optional. If present, then retrieve the next batch of results | 274 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 279 * from the preceding call to this method. pageToken must be the value of | 275 * from the preceding call to this method. pageToken must be the value of |
| 280 * nextPageToken from the previous response. The values of other method | 276 * nextPageToken from the previous response. The values of other method |
| 281 * parameters should be identical to those in the previous call. | 277 * parameters should be identical to those in the previous call. |
| 282 * | 278 * |
| 279 * [pageSize] - Optional. The maximum number of results to return from this |
| 280 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 281 * the response indicates that more results might be available. |
| 282 * |
| 283 * Completes with a [ListMonitoredResourceDescriptorsResponse]. | 283 * Completes with a [ListMonitoredResourceDescriptorsResponse]. |
| 284 * | 284 * |
| 285 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 285 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 286 * error. | 286 * error. |
| 287 * | 287 * |
| 288 * If the used [http.Client] completes with an error when making a REST call, | 288 * If the used [http.Client] completes with an error when making a REST call, |
| 289 * this method will complete with the same error. | 289 * this method will complete with the same error. |
| 290 */ | 290 */ |
| 291 async.Future<ListMonitoredResourceDescriptorsResponse> list({core.int pageSize
, core.String pageToken}) { | 291 async.Future<ListMonitoredResourceDescriptorsResponse> list({core.String pageT
oken, core.int pageSize}) { |
| 292 var _url = null; | 292 var _url = null; |
| 293 var _queryParams = new core.Map(); | 293 var _queryParams = new core.Map(); |
| 294 var _uploadMedia = null; | 294 var _uploadMedia = null; |
| 295 var _uploadOptions = null; | 295 var _uploadOptions = null; |
| 296 var _downloadOptions = commons.DownloadOptions.Metadata; | 296 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 297 var _body = null; | 297 var _body = null; |
| 298 | 298 |
| 299 if (pageToken != null) { |
| 300 _queryParams["pageToken"] = [pageToken]; |
| 301 } |
| 299 if (pageSize != null) { | 302 if (pageSize != null) { |
| 300 _queryParams["pageSize"] = ["${pageSize}"]; | 303 _queryParams["pageSize"] = ["${pageSize}"]; |
| 301 } | 304 } |
| 302 if (pageToken != null) { | |
| 303 _queryParams["pageToken"] = [pageToken]; | |
| 304 } | |
| 305 | 305 |
| 306 _url = 'v2beta1/monitoredResourceDescriptors'; | 306 _url = 'v2beta1/monitoredResourceDescriptors'; |
| 307 | 307 |
| 308 var _response = _requester.request(_url, | 308 var _response = _requester.request(_url, |
| 309 "GET", | 309 "GET", |
| 310 body: _body, | 310 body: _body, |
| 311 queryParams: _queryParams, | 311 queryParams: _queryParams, |
| 312 uploadOptions: _uploadOptions, | 312 uploadOptions: _uploadOptions, |
| 313 uploadMedia: _uploadMedia, | 313 uploadMedia: _uploadMedia, |
| 314 downloadOptions: _downloadOptions); | 314 downloadOptions: _downloadOptions); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 * are listed. | 386 * are listed. |
| 387 * | 387 * |
| 388 * Request parameters: | 388 * Request parameters: |
| 389 * | 389 * |
| 390 * [parent] - Required. The resource name that owns the logs: | 390 * [parent] - Required. The resource name that owns the logs: |
| 391 * "projects/[PROJECT_ID]" | 391 * "projects/[PROJECT_ID]" |
| 392 * "organizations/[ORGANIZATION_ID]" | 392 * "organizations/[ORGANIZATION_ID]" |
| 393 * | 393 * |
| 394 * Value must have pattern "^organizations/[^/]+$". | 394 * Value must have pattern "^organizations/[^/]+$". |
| 395 * | 395 * |
| 396 * [pageSize] - Optional. The maximum number of results to return from this | |
| 397 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 398 * the response indicates that more results might be available. | |
| 399 * | |
| 400 * [pageToken] - Optional. If present, then retrieve the next batch of results | 396 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 401 * from the preceding call to this method. pageToken must be the value of | 397 * from the preceding call to this method. pageToken must be the value of |
| 402 * nextPageToken from the previous response. The values of other method | 398 * nextPageToken from the previous response. The values of other method |
| 403 * parameters should be identical to those in the previous call. | 399 * parameters should be identical to those in the previous call. |
| 404 * | 400 * |
| 401 * [pageSize] - Optional. The maximum number of results to return from this |
| 402 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 403 * the response indicates that more results might be available. |
| 404 * |
| 405 * Completes with a [ListLogsResponse]. | 405 * Completes with a [ListLogsResponse]. |
| 406 * | 406 * |
| 407 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 407 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 408 * error. | 408 * error. |
| 409 * | 409 * |
| 410 * If the used [http.Client] completes with an error when making a REST call, | 410 * If the used [http.Client] completes with an error when making a REST call, |
| 411 * this method will complete with the same error. | 411 * this method will complete with the same error. |
| 412 */ | 412 */ |
| 413 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co
re.String pageToken}) { | 413 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken
, core.int pageSize}) { |
| 414 var _url = null; | 414 var _url = null; |
| 415 var _queryParams = new core.Map(); | 415 var _queryParams = new core.Map(); |
| 416 var _uploadMedia = null; | 416 var _uploadMedia = null; |
| 417 var _uploadOptions = null; | 417 var _uploadOptions = null; |
| 418 var _downloadOptions = commons.DownloadOptions.Metadata; | 418 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 419 var _body = null; | 419 var _body = null; |
| 420 | 420 |
| 421 if (parent == null) { | 421 if (parent == null) { |
| 422 throw new core.ArgumentError("Parameter parent is required."); | 422 throw new core.ArgumentError("Parameter parent is required."); |
| 423 } | 423 } |
| 424 if (pageToken != null) { |
| 425 _queryParams["pageToken"] = [pageToken]; |
| 426 } |
| 424 if (pageSize != null) { | 427 if (pageSize != null) { |
| 425 _queryParams["pageSize"] = ["${pageSize}"]; | 428 _queryParams["pageSize"] = ["${pageSize}"]; |
| 426 } | 429 } |
| 427 if (pageToken != null) { | |
| 428 _queryParams["pageToken"] = [pageToken]; | |
| 429 } | |
| 430 | 430 |
| 431 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/log
s'; | 431 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/log
s'; |
| 432 | 432 |
| 433 var _response = _requester.request(_url, | 433 var _response = _requester.request(_url, |
| 434 "GET", | 434 "GET", |
| 435 body: _body, | 435 body: _body, |
| 436 queryParams: _queryParams, | 436 queryParams: _queryParams, |
| 437 uploadOptions: _uploadOptions, | 437 uploadOptions: _uploadOptions, |
| 438 uploadMedia: _uploadMedia, | 438 uploadMedia: _uploadMedia, |
| 439 downloadOptions: _downloadOptions); | 439 downloadOptions: _downloadOptions); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 * are listed. | 513 * are listed. |
| 514 * | 514 * |
| 515 * Request parameters: | 515 * Request parameters: |
| 516 * | 516 * |
| 517 * [parent] - Required. The resource name that owns the logs: | 517 * [parent] - Required. The resource name that owns the logs: |
| 518 * "projects/[PROJECT_ID]" | 518 * "projects/[PROJECT_ID]" |
| 519 * "organizations/[ORGANIZATION_ID]" | 519 * "organizations/[ORGANIZATION_ID]" |
| 520 * | 520 * |
| 521 * Value must have pattern "^projects/[^/]+$". | 521 * Value must have pattern "^projects/[^/]+$". |
| 522 * | 522 * |
| 523 * [pageSize] - Optional. The maximum number of results to return from this | |
| 524 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 525 * the response indicates that more results might be available. | |
| 526 * | |
| 527 * [pageToken] - Optional. If present, then retrieve the next batch of results | 523 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 528 * from the preceding call to this method. pageToken must be the value of | 524 * from the preceding call to this method. pageToken must be the value of |
| 529 * nextPageToken from the previous response. The values of other method | 525 * nextPageToken from the previous response. The values of other method |
| 530 * parameters should be identical to those in the previous call. | 526 * parameters should be identical to those in the previous call. |
| 531 * | 527 * |
| 528 * [pageSize] - Optional. The maximum number of results to return from this |
| 529 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 530 * the response indicates that more results might be available. |
| 531 * |
| 532 * Completes with a [ListLogsResponse]. | 532 * Completes with a [ListLogsResponse]. |
| 533 * | 533 * |
| 534 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 534 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 535 * error. | 535 * error. |
| 536 * | 536 * |
| 537 * If the used [http.Client] completes with an error when making a REST call, | 537 * If the used [http.Client] completes with an error when making a REST call, |
| 538 * this method will complete with the same error. | 538 * this method will complete with the same error. |
| 539 */ | 539 */ |
| 540 async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, co
re.String pageToken}) { | 540 async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken
, core.int pageSize}) { |
| 541 var _url = null; | 541 var _url = null; |
| 542 var _queryParams = new core.Map(); | 542 var _queryParams = new core.Map(); |
| 543 var _uploadMedia = null; | 543 var _uploadMedia = null; |
| 544 var _uploadOptions = null; | 544 var _uploadOptions = null; |
| 545 var _downloadOptions = commons.DownloadOptions.Metadata; | 545 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 546 var _body = null; | 546 var _body = null; |
| 547 | 547 |
| 548 if (parent == null) { | 548 if (parent == null) { |
| 549 throw new core.ArgumentError("Parameter parent is required."); | 549 throw new core.ArgumentError("Parameter parent is required."); |
| 550 } | 550 } |
| 551 if (pageToken != null) { |
| 552 _queryParams["pageToken"] = [pageToken]; |
| 553 } |
| 551 if (pageSize != null) { | 554 if (pageSize != null) { |
| 552 _queryParams["pageSize"] = ["${pageSize}"]; | 555 _queryParams["pageSize"] = ["${pageSize}"]; |
| 553 } | 556 } |
| 554 if (pageToken != null) { | |
| 555 _queryParams["pageToken"] = [pageToken]; | |
| 556 } | |
| 557 | 557 |
| 558 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/log
s'; | 558 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/log
s'; |
| 559 | 559 |
| 560 var _response = _requester.request(_url, | 560 var _response = _requester.request(_url, |
| 561 "GET", | 561 "GET", |
| 562 body: _body, | 562 body: _body, |
| 563 queryParams: _queryParams, | 563 queryParams: _queryParams, |
| 564 uploadOptions: _uploadOptions, | 564 uploadOptions: _uploadOptions, |
| 565 uploadMedia: _uploadMedia, | 565 uploadMedia: _uploadMedia, |
| 566 downloadOptions: _downloadOptions); | 566 downloadOptions: _downloadOptions); |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 | 980 |
| 981 /** | 981 /** |
| 982 * Lists sinks. | 982 * Lists sinks. |
| 983 * | 983 * |
| 984 * Request parameters: | 984 * Request parameters: |
| 985 * | 985 * |
| 986 * [parent] - Required. The parent resource whose sinks are to be listed. | 986 * [parent] - Required. The parent resource whose sinks are to be listed. |
| 987 * Examples: "projects/my-logging-project", "organizations/123456789". | 987 * Examples: "projects/my-logging-project", "organizations/123456789". |
| 988 * Value must have pattern "^projects/[^/]+$". | 988 * Value must have pattern "^projects/[^/]+$". |
| 989 * | 989 * |
| 990 * [pageSize] - Optional. The maximum number of results to return from this | |
| 991 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 992 * the response indicates that more results might be available. | |
| 993 * | |
| 994 * [pageToken] - Optional. If present, then retrieve the next batch of results | 990 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 995 * from the preceding call to this method. pageToken must be the value of | 991 * from the preceding call to this method. pageToken must be the value of |
| 996 * nextPageToken from the previous response. The values of other method | 992 * nextPageToken from the previous response. The values of other method |
| 997 * parameters should be identical to those in the previous call. | 993 * parameters should be identical to those in the previous call. |
| 998 * | 994 * |
| 995 * [pageSize] - Optional. The maximum number of results to return from this |
| 996 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 997 * the response indicates that more results might be available. |
| 998 * |
| 999 * Completes with a [ListSinksResponse]. | 999 * Completes with a [ListSinksResponse]. |
| 1000 * | 1000 * |
| 1001 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1001 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1002 * error. | 1002 * error. |
| 1003 * | 1003 * |
| 1004 * If the used [http.Client] completes with an error when making a REST call, | 1004 * If the used [http.Client] completes with an error when making a REST call, |
| 1005 * this method will complete with the same error. | 1005 * this method will complete with the same error. |
| 1006 */ | 1006 */ |
| 1007 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c
ore.String pageToken}) { | 1007 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke
n, core.int pageSize}) { |
| 1008 var _url = null; | 1008 var _url = null; |
| 1009 var _queryParams = new core.Map(); | 1009 var _queryParams = new core.Map(); |
| 1010 var _uploadMedia = null; | 1010 var _uploadMedia = null; |
| 1011 var _uploadOptions = null; | 1011 var _uploadOptions = null; |
| 1012 var _downloadOptions = commons.DownloadOptions.Metadata; | 1012 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1013 var _body = null; | 1013 var _body = null; |
| 1014 | 1014 |
| 1015 if (parent == null) { | 1015 if (parent == null) { |
| 1016 throw new core.ArgumentError("Parameter parent is required."); | 1016 throw new core.ArgumentError("Parameter parent is required."); |
| 1017 } | 1017 } |
| 1018 if (pageToken != null) { |
| 1019 _queryParams["pageToken"] = [pageToken]; |
| 1020 } |
| 1018 if (pageSize != null) { | 1021 if (pageSize != null) { |
| 1019 _queryParams["pageSize"] = ["${pageSize}"]; | 1022 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1020 } | 1023 } |
| 1021 if (pageToken != null) { | |
| 1022 _queryParams["pageToken"] = [pageToken]; | |
| 1023 } | |
| 1024 | 1024 |
| 1025 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sin
ks'; | 1025 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sin
ks'; |
| 1026 | 1026 |
| 1027 var _response = _requester.request(_url, | 1027 var _response = _requester.request(_url, |
| 1028 "GET", | 1028 "GET", |
| 1029 body: _body, | 1029 body: _body, |
| 1030 queryParams: _queryParams, | 1030 queryParams: _queryParams, |
| 1031 uploadOptions: _uploadOptions, | 1031 uploadOptions: _uploadOptions, |
| 1032 uploadMedia: _uploadMedia, | 1032 uploadMedia: _uploadMedia, |
| 1033 downloadOptions: _downloadOptions); | 1033 downloadOptions: _downloadOptions); |
| (...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2790 WriteLogEntriesResponse(); | 2790 WriteLogEntriesResponse(); |
| 2791 | 2791 |
| 2792 WriteLogEntriesResponse.fromJson(core.Map _json) { | 2792 WriteLogEntriesResponse.fromJson(core.Map _json) { |
| 2793 } | 2793 } |
| 2794 | 2794 |
| 2795 core.Map toJson() { | 2795 core.Map toJson() { |
| 2796 var _json = new core.Map(); | 2796 var _json = new core.Map(); |
| 2797 return _json; | 2797 return _json; |
| 2798 } | 2798 } |
| 2799 } | 2799 } |
| OLD | NEW |