| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 | 57 |
| 58 class BillingAccountsLogsResourceApi { | 58 class BillingAccountsLogsResourceApi { |
| 59 final commons.ApiRequester _requester; | 59 final commons.ApiRequester _requester; |
| 60 | 60 |
| 61 BillingAccountsLogsResourceApi(commons.ApiRequester client) : | 61 BillingAccountsLogsResourceApi(commons.ApiRequester client) : |
| 62 _requester = client; | 62 _requester = client; |
| 63 | 63 |
| 64 /** | 64 /** |
| 65 * Deletes all the log entries in a log. The log reappears if it receives new | 65 * Deletes all the log entries in a log. The log reappears if it receives new |
| 66 * entries. | 66 * entries. Log entries written shortly before the delete operation might not |
| 67 * be deleted. |
| 67 * | 68 * |
| 68 * Request parameters: | 69 * Request parameters: |
| 69 * | 70 * |
| 70 * [logName] - Required. The resource name of the log to delete: | 71 * [logName] - Required. The resource name of the log to delete: |
| 71 * "projects/[PROJECT_ID]/logs/[LOG_ID]" | 72 * "projects/[PROJECT_ID]/logs/[LOG_ID]" |
| 72 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" | 73 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" |
| 74 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" |
| 75 * "folders/[FOLDER_ID]/logs/[LOG_ID]" |
| 73 * [LOG_ID] must be URL-encoded. For example, | 76 * [LOG_ID] must be URL-encoded. For example, |
| 74 * "projects/my-project-id/logs/syslog", | 77 * "projects/my-project-id/logs/syslog", |
| 75 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". | 78 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". |
| 76 * For more information about log names, see LogEntry. | 79 * For more information about log names, see LogEntry. |
| 77 * Value must have pattern "^billingAccounts/[^/]+/logs/[^/]+$". | 80 * Value must have pattern "^billingAccounts/[^/]+/logs/[^/]+$". |
| 78 * | 81 * |
| 79 * Completes with a [Empty]. | 82 * Completes with a [Empty]. |
| 80 * | 83 * |
| 81 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 84 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 82 * error. | 85 * error. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 102 "DELETE", | 105 "DELETE", |
| 103 body: _body, | 106 body: _body, |
| 104 queryParams: _queryParams, | 107 queryParams: _queryParams, |
| 105 uploadOptions: _uploadOptions, | 108 uploadOptions: _uploadOptions, |
| 106 uploadMedia: _uploadMedia, | 109 uploadMedia: _uploadMedia, |
| 107 downloadOptions: _downloadOptions); | 110 downloadOptions: _downloadOptions); |
| 108 return _response.then((data) => new Empty.fromJson(data)); | 111 return _response.then((data) => new Empty.fromJson(data)); |
| 109 } | 112 } |
| 110 | 113 |
| 111 /** | 114 /** |
| 112 * Lists the logs in projects or organizations. Only logs that have entries | 115 * Lists the logs in projects, organizations, folders, or billing accounts. |
| 113 * are listed. | 116 * Only logs that have entries are listed. |
| 114 * | 117 * |
| 115 * Request parameters: | 118 * Request parameters: |
| 116 * | 119 * |
| 117 * [parent] - Required. The resource name that owns the logs: | 120 * [parent] - Required. The resource name that owns the logs: |
| 118 * "projects/[PROJECT_ID]" | 121 * "projects/[PROJECT_ID]" |
| 119 * "organizations/[ORGANIZATION_ID]" | 122 * "organizations/[ORGANIZATION_ID]" |
| 123 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 124 * "folders/[FOLDER_ID]" |
| 120 * | 125 * |
| 121 * Value must have pattern "^billingAccounts/[^/]+$". | 126 * Value must have pattern "^billingAccounts/[^/]+$". |
| 122 * | 127 * |
| 123 * [pageToken] - Optional. If present, then retrieve the next batch of results | 128 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 124 * from the preceding call to this method. pageToken must be the value of | 129 * from the preceding call to this method. pageToken must be the value of |
| 125 * nextPageToken from the previous response. The values of other method | 130 * nextPageToken from the previous response. The values of other method |
| 126 * parameters should be identical to those in the previous call. | 131 * parameters should be identical to those in the previous call. |
| 127 * | 132 * |
| 128 * [pageSize] - Optional. The maximum number of results to return from this | 133 * [pageSize] - Optional. The maximum number of results to return from this |
| 129 * request. Non-positive values are ignored. The presence of nextPageToken in | 134 * request. Non-positive values are ignored. The presence of nextPageToken in |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 334 |
| 330 | 335 |
| 331 class OrganizationsLogsResourceApi { | 336 class OrganizationsLogsResourceApi { |
| 332 final commons.ApiRequester _requester; | 337 final commons.ApiRequester _requester; |
| 333 | 338 |
| 334 OrganizationsLogsResourceApi(commons.ApiRequester client) : | 339 OrganizationsLogsResourceApi(commons.ApiRequester client) : |
| 335 _requester = client; | 340 _requester = client; |
| 336 | 341 |
| 337 /** | 342 /** |
| 338 * Deletes all the log entries in a log. The log reappears if it receives new | 343 * Deletes all the log entries in a log. The log reappears if it receives new |
| 339 * entries. | 344 * entries. Log entries written shortly before the delete operation might not |
| 345 * be deleted. |
| 340 * | 346 * |
| 341 * Request parameters: | 347 * Request parameters: |
| 342 * | 348 * |
| 343 * [logName] - Required. The resource name of the log to delete: | 349 * [logName] - Required. The resource name of the log to delete: |
| 344 * "projects/[PROJECT_ID]/logs/[LOG_ID]" | 350 * "projects/[PROJECT_ID]/logs/[LOG_ID]" |
| 345 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" | 351 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" |
| 352 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" |
| 353 * "folders/[FOLDER_ID]/logs/[LOG_ID]" |
| 346 * [LOG_ID] must be URL-encoded. For example, | 354 * [LOG_ID] must be URL-encoded. For example, |
| 347 * "projects/my-project-id/logs/syslog", | 355 * "projects/my-project-id/logs/syslog", |
| 348 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". | 356 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". |
| 349 * For more information about log names, see LogEntry. | 357 * For more information about log names, see LogEntry. |
| 350 * Value must have pattern "^organizations/[^/]+/logs/[^/]+$". | 358 * Value must have pattern "^organizations/[^/]+/logs/[^/]+$". |
| 351 * | 359 * |
| 352 * Completes with a [Empty]. | 360 * Completes with a [Empty]. |
| 353 * | 361 * |
| 354 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 362 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 355 * error. | 363 * error. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 375 "DELETE", | 383 "DELETE", |
| 376 body: _body, | 384 body: _body, |
| 377 queryParams: _queryParams, | 385 queryParams: _queryParams, |
| 378 uploadOptions: _uploadOptions, | 386 uploadOptions: _uploadOptions, |
| 379 uploadMedia: _uploadMedia, | 387 uploadMedia: _uploadMedia, |
| 380 downloadOptions: _downloadOptions); | 388 downloadOptions: _downloadOptions); |
| 381 return _response.then((data) => new Empty.fromJson(data)); | 389 return _response.then((data) => new Empty.fromJson(data)); |
| 382 } | 390 } |
| 383 | 391 |
| 384 /** | 392 /** |
| 385 * Lists the logs in projects or organizations. Only logs that have entries | 393 * Lists the logs in projects, organizations, folders, or billing accounts. |
| 386 * are listed. | 394 * Only logs that have entries are listed. |
| 387 * | 395 * |
| 388 * Request parameters: | 396 * Request parameters: |
| 389 * | 397 * |
| 390 * [parent] - Required. The resource name that owns the logs: | 398 * [parent] - Required. The resource name that owns the logs: |
| 391 * "projects/[PROJECT_ID]" | 399 * "projects/[PROJECT_ID]" |
| 392 * "organizations/[ORGANIZATION_ID]" | 400 * "organizations/[ORGANIZATION_ID]" |
| 401 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 402 * "folders/[FOLDER_ID]" |
| 393 * | 403 * |
| 394 * Value must have pattern "^organizations/[^/]+$". | 404 * Value must have pattern "^organizations/[^/]+$". |
| 395 * | 405 * |
| 396 * [pageToken] - Optional. If present, then retrieve the next batch of results | 406 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 397 * from the preceding call to this method. pageToken must be the value of | 407 * from the preceding call to this method. pageToken must be the value of |
| 398 * nextPageToken from the previous response. The values of other method | 408 * nextPageToken from the previous response. The values of other method |
| 399 * parameters should be identical to those in the previous call. | 409 * parameters should be identical to those in the previous call. |
| 400 * | 410 * |
| 401 * [pageSize] - Optional. The maximum number of results to return from this | 411 * [pageSize] - Optional. The maximum number of results to return from this |
| 402 * request. Non-positive values are ignored. The presence of nextPageToken in | 412 * request. Non-positive values are ignored. The presence of nextPageToken in |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 | 466 |
| 457 | 467 |
| 458 class ProjectsLogsResourceApi { | 468 class ProjectsLogsResourceApi { |
| 459 final commons.ApiRequester _requester; | 469 final commons.ApiRequester _requester; |
| 460 | 470 |
| 461 ProjectsLogsResourceApi(commons.ApiRequester client) : | 471 ProjectsLogsResourceApi(commons.ApiRequester client) : |
| 462 _requester = client; | 472 _requester = client; |
| 463 | 473 |
| 464 /** | 474 /** |
| 465 * Deletes all the log entries in a log. The log reappears if it receives new | 475 * Deletes all the log entries in a log. The log reappears if it receives new |
| 466 * entries. | 476 * entries. Log entries written shortly before the delete operation might not |
| 477 * be deleted. |
| 467 * | 478 * |
| 468 * Request parameters: | 479 * Request parameters: |
| 469 * | 480 * |
| 470 * [logName] - Required. The resource name of the log to delete: | 481 * [logName] - Required. The resource name of the log to delete: |
| 471 * "projects/[PROJECT_ID]/logs/[LOG_ID]" | 482 * "projects/[PROJECT_ID]/logs/[LOG_ID]" |
| 472 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" | 483 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" |
| 484 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" |
| 485 * "folders/[FOLDER_ID]/logs/[LOG_ID]" |
| 473 * [LOG_ID] must be URL-encoded. For example, | 486 * [LOG_ID] must be URL-encoded. For example, |
| 474 * "projects/my-project-id/logs/syslog", | 487 * "projects/my-project-id/logs/syslog", |
| 475 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". | 488 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". |
| 476 * For more information about log names, see LogEntry. | 489 * For more information about log names, see LogEntry. |
| 477 * Value must have pattern "^projects/[^/]+/logs/[^/]+$". | 490 * Value must have pattern "^projects/[^/]+/logs/[^/]+$". |
| 478 * | 491 * |
| 479 * Completes with a [Empty]. | 492 * Completes with a [Empty]. |
| 480 * | 493 * |
| 481 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 494 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 482 * error. | 495 * error. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 502 "DELETE", | 515 "DELETE", |
| 503 body: _body, | 516 body: _body, |
| 504 queryParams: _queryParams, | 517 queryParams: _queryParams, |
| 505 uploadOptions: _uploadOptions, | 518 uploadOptions: _uploadOptions, |
| 506 uploadMedia: _uploadMedia, | 519 uploadMedia: _uploadMedia, |
| 507 downloadOptions: _downloadOptions); | 520 downloadOptions: _downloadOptions); |
| 508 return _response.then((data) => new Empty.fromJson(data)); | 521 return _response.then((data) => new Empty.fromJson(data)); |
| 509 } | 522 } |
| 510 | 523 |
| 511 /** | 524 /** |
| 512 * Lists the logs in projects or organizations. Only logs that have entries | 525 * Lists the logs in projects, organizations, folders, or billing accounts. |
| 513 * are listed. | 526 * Only logs that have entries are listed. |
| 514 * | 527 * |
| 515 * Request parameters: | 528 * Request parameters: |
| 516 * | 529 * |
| 517 * [parent] - Required. The resource name that owns the logs: | 530 * [parent] - Required. The resource name that owns the logs: |
| 518 * "projects/[PROJECT_ID]" | 531 * "projects/[PROJECT_ID]" |
| 519 * "organizations/[ORGANIZATION_ID]" | 532 * "organizations/[ORGANIZATION_ID]" |
| 533 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 534 * "folders/[FOLDER_ID]" |
| 520 * | 535 * |
| 521 * Value must have pattern "^projects/[^/]+$". | 536 * Value must have pattern "^projects/[^/]+$". |
| 522 * | 537 * |
| 523 * [pageToken] - Optional. If present, then retrieve the next batch of results | 538 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 524 * from the preceding call to this method. pageToken must be the value of | 539 * from the preceding call to this method. pageToken must be the value of |
| 525 * nextPageToken from the previous response. The values of other method | 540 * nextPageToken from the previous response. The values of other method |
| 526 * parameters should be identical to those in the previous call. | 541 * parameters should be identical to those in the previous call. |
| 527 * | 542 * |
| 528 * [pageSize] - Optional. The maximum number of results to return from this | 543 * [pageSize] - Optional. The maximum number of results to return from this |
| 529 * request. Non-positive values are ignored. The presence of nextPageToken in | 544 * request. Non-positive values are ignored. The presence of nextPageToken in |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 /** | 725 /** |
| 711 * Lists logs-based metrics. | 726 * Lists logs-based metrics. |
| 712 * | 727 * |
| 713 * Request parameters: | 728 * Request parameters: |
| 714 * | 729 * |
| 715 * [parent] - Required. The name of the project containing the metrics: | 730 * [parent] - Required. The name of the project containing the metrics: |
| 716 * "projects/[PROJECT_ID]" | 731 * "projects/[PROJECT_ID]" |
| 717 * | 732 * |
| 718 * Value must have pattern "^projects/[^/]+$". | 733 * Value must have pattern "^projects/[^/]+$". |
| 719 * | 734 * |
| 720 * [pageSize] - Optional. The maximum number of results to return from this | |
| 721 * request. Non-positive values are ignored. The presence of nextPageToken in | |
| 722 * the response indicates that more results might be available. | |
| 723 * | |
| 724 * [pageToken] - Optional. If present, then retrieve the next batch of results | 735 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 725 * from the preceding call to this method. pageToken must be the value of | 736 * from the preceding call to this method. pageToken must be the value of |
| 726 * nextPageToken from the previous response. The values of other method | 737 * nextPageToken from the previous response. The values of other method |
| 727 * parameters should be identical to those in the previous call. | 738 * parameters should be identical to those in the previous call. |
| 728 * | 739 * |
| 740 * [pageSize] - Optional. The maximum number of results to return from this |
| 741 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 742 * the response indicates that more results might be available. |
| 743 * |
| 729 * Completes with a [ListLogMetricsResponse]. | 744 * Completes with a [ListLogMetricsResponse]. |
| 730 * | 745 * |
| 731 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 746 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 732 * error. | 747 * error. |
| 733 * | 748 * |
| 734 * If the used [http.Client] completes with an error when making a REST call, | 749 * If the used [http.Client] completes with an error when making a REST call, |
| 735 * this method will complete with the same error. | 750 * this method will complete with the same error. |
| 736 */ | 751 */ |
| 737 async.Future<ListLogMetricsResponse> list(core.String parent, {core.int pageSi
ze, core.String pageToken}) { | 752 async.Future<ListLogMetricsResponse> list(core.String parent, {core.String pag
eToken, core.int pageSize}) { |
| 738 var _url = null; | 753 var _url = null; |
| 739 var _queryParams = new core.Map(); | 754 var _queryParams = new core.Map(); |
| 740 var _uploadMedia = null; | 755 var _uploadMedia = null; |
| 741 var _uploadOptions = null; | 756 var _uploadOptions = null; |
| 742 var _downloadOptions = commons.DownloadOptions.Metadata; | 757 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 743 var _body = null; | 758 var _body = null; |
| 744 | 759 |
| 745 if (parent == null) { | 760 if (parent == null) { |
| 746 throw new core.ArgumentError("Parameter parent is required."); | 761 throw new core.ArgumentError("Parameter parent is required."); |
| 747 } | 762 } |
| 763 if (pageToken != null) { |
| 764 _queryParams["pageToken"] = [pageToken]; |
| 765 } |
| 748 if (pageSize != null) { | 766 if (pageSize != null) { |
| 749 _queryParams["pageSize"] = ["${pageSize}"]; | 767 _queryParams["pageSize"] = ["${pageSize}"]; |
| 750 } | 768 } |
| 751 if (pageToken != null) { | |
| 752 _queryParams["pageToken"] = [pageToken]; | |
| 753 } | |
| 754 | 769 |
| 755 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/met
rics'; | 770 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/met
rics'; |
| 756 | 771 |
| 757 var _response = _requester.request(_url, | 772 var _response = _requester.request(_url, |
| 758 "GET", | 773 "GET", |
| 759 body: _body, | 774 body: _body, |
| 760 queryParams: _queryParams, | 775 queryParams: _queryParams, |
| 761 uploadOptions: _uploadOptions, | 776 uploadOptions: _uploadOptions, |
| 762 uploadMedia: _uploadMedia, | 777 uploadMedia: _uploadMedia, |
| 763 downloadOptions: _downloadOptions); | 778 downloadOptions: _downloadOptions); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 * writer_identity is not permitted to write to the destination. A sink can | 844 * writer_identity is not permitted to write to the destination. A sink can |
| 830 * export log entries only from the resource owning the sink. | 845 * export log entries only from the resource owning the sink. |
| 831 * | 846 * |
| 832 * [request] - The metadata request object. | 847 * [request] - The metadata request object. |
| 833 * | 848 * |
| 834 * Request parameters: | 849 * Request parameters: |
| 835 * | 850 * |
| 836 * [parent] - Required. The resource in which to create the sink: | 851 * [parent] - Required. The resource in which to create the sink: |
| 837 * "projects/[PROJECT_ID]" | 852 * "projects/[PROJECT_ID]" |
| 838 * "organizations/[ORGANIZATION_ID]" | 853 * "organizations/[ORGANIZATION_ID]" |
| 854 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 855 * "folders/[FOLDER_ID]" |
| 839 * Examples: "projects/my-logging-project", "organizations/123456789". | 856 * Examples: "projects/my-logging-project", "organizations/123456789". |
| 840 * Value must have pattern "^projects/[^/]+$". | 857 * Value must have pattern "^projects/[^/]+$". |
| 841 * | 858 * |
| 842 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity | 859 * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity |
| 843 * returned as writer_identity in the new sink. If this value is omitted or | 860 * returned as writer_identity in the new sink. If this value is omitted or |
| 844 * set to false, and if the sink's parent is a project, then the value | 861 * set to false, and if the sink's parent is a project, then the value |
| 845 * returned as writer_identity is cloud-logs@google.com, the same identity | 862 * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the |
| 846 * used before the addition of writer identities to this API. The sink's | 863 * same identity used before the addition of writer identities to this API. |
| 847 * destination must be in the same project as the sink itself.If this field is | 864 * The sink's destination must be in the same project as the sink itself.If |
| 848 * set to true, or if the sink is owned by a non-project resource such as an | 865 * this field is set to true, or if the sink is owned by a non-project |
| 849 * organization, then the value of writer_identity will be a unique service | 866 * resource such as an organization, then the value of writer_identity will be |
| 850 * account used only for exports from the new sink. For more information, see | 867 * a unique service account used only for exports from the new sink. For more |
| 851 * writer_identity in LogSink. | 868 * information, see writer_identity in LogSink. |
| 852 * | 869 * |
| 853 * Completes with a [LogSink]. | 870 * Completes with a [LogSink]. |
| 854 * | 871 * |
| 855 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 872 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 856 * error. | 873 * error. |
| 857 * | 874 * |
| 858 * If the used [http.Client] completes with an error when making a REST call, | 875 * If the used [http.Client] completes with an error when making a REST call, |
| 859 * this method will complete with the same error. | 876 * this method will complete with the same error. |
| 860 */ | 877 */ |
| 861 async.Future<LogSink> create(LogSink request, core.String parent, {core.bool u
niqueWriterIdentity}) { | 878 async.Future<LogSink> create(LogSink request, core.String parent, {core.bool u
niqueWriterIdentity}) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 891 /** | 908 /** |
| 892 * Deletes a sink. If the sink has a unique writer_identity, then that service | 909 * Deletes a sink. If the sink has a unique writer_identity, then that service |
| 893 * account is also deleted. | 910 * account is also deleted. |
| 894 * | 911 * |
| 895 * Request parameters: | 912 * Request parameters: |
| 896 * | 913 * |
| 897 * [sinkName] - Required. The full resource name of the sink to delete, | 914 * [sinkName] - Required. The full resource name of the sink to delete, |
| 898 * including the parent resource and the sink identifier: | 915 * including the parent resource and the sink identifier: |
| 899 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 916 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 900 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 917 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 901 * It is an error if the sink does not exist. Example: | 918 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 902 * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does | 919 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 903 * not exist. | 920 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 904 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". | 921 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". |
| 905 * | 922 * |
| 906 * Completes with a [Empty]. | 923 * Completes with a [Empty]. |
| 907 * | 924 * |
| 908 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 925 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 909 * error. | 926 * error. |
| 910 * | 927 * |
| 911 * If the used [http.Client] completes with an error when making a REST call, | 928 * If the used [http.Client] completes with an error when making a REST call, |
| 912 * this method will complete with the same error. | 929 * this method will complete with the same error. |
| 913 */ | 930 */ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 933 uploadMedia: _uploadMedia, | 950 uploadMedia: _uploadMedia, |
| 934 downloadOptions: _downloadOptions); | 951 downloadOptions: _downloadOptions); |
| 935 return _response.then((data) => new Empty.fromJson(data)); | 952 return _response.then((data) => new Empty.fromJson(data)); |
| 936 } | 953 } |
| 937 | 954 |
| 938 /** | 955 /** |
| 939 * Gets a sink. | 956 * Gets a sink. |
| 940 * | 957 * |
| 941 * Request parameters: | 958 * Request parameters: |
| 942 * | 959 * |
| 943 * [sinkName] - Required. The parent resource name of the sink: | 960 * [sinkName] - Required. The resource name of the sink: |
| 944 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 961 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 945 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 962 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 963 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 964 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 946 * Example: "projects/my-project-id/sinks/my-sink-id". | 965 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 947 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". | 966 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". |
| 948 * | 967 * |
| 949 * Completes with a [LogSink]. | 968 * Completes with a [LogSink]. |
| 950 * | 969 * |
| 951 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 970 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 952 * error. | 971 * error. |
| 953 * | 972 * |
| 954 * If the used [http.Client] completes with an error when making a REST call, | 973 * If the used [http.Client] completes with an error when making a REST call, |
| 955 * this method will complete with the same error. | 974 * this method will complete with the same error. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 976 uploadMedia: _uploadMedia, | 995 uploadMedia: _uploadMedia, |
| 977 downloadOptions: _downloadOptions); | 996 downloadOptions: _downloadOptions); |
| 978 return _response.then((data) => new LogSink.fromJson(data)); | 997 return _response.then((data) => new LogSink.fromJson(data)); |
| 979 } | 998 } |
| 980 | 999 |
| 981 /** | 1000 /** |
| 982 * Lists sinks. | 1001 * Lists sinks. |
| 983 * | 1002 * |
| 984 * Request parameters: | 1003 * Request parameters: |
| 985 * | 1004 * |
| 986 * [parent] - Required. The parent resource whose sinks are to be listed. | 1005 * [parent] - Required. The parent resource whose sinks are to be listed: |
| 987 * Examples: "projects/my-logging-project", "organizations/123456789". | 1006 * "projects/[PROJECT_ID]" |
| 1007 * "organizations/[ORGANIZATION_ID]" |
| 1008 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 1009 * "folders/[FOLDER_ID]" |
| 1010 * |
| 988 * Value must have pattern "^projects/[^/]+$". | 1011 * Value must have pattern "^projects/[^/]+$". |
| 989 * | 1012 * |
| 1013 * [pageSize] - Optional. The maximum number of results to return from this |
| 1014 * request. Non-positive values are ignored. The presence of nextPageToken in |
| 1015 * the response indicates that more results might be available. |
| 1016 * |
| 990 * [pageToken] - Optional. If present, then retrieve the next batch of results | 1017 * [pageToken] - Optional. If present, then retrieve the next batch of results |
| 991 * from the preceding call to this method. pageToken must be the value of | 1018 * from the preceding call to this method. pageToken must be the value of |
| 992 * nextPageToken from the previous response. The values of other method | 1019 * nextPageToken from the previous response. The values of other method |
| 993 * parameters should be identical to those in the previous call. | 1020 * parameters should be identical to those in the previous call. |
| 994 * | 1021 * |
| 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]. | 1022 * Completes with a [ListSinksResponse]. |
| 1000 * | 1023 * |
| 1001 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1024 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1002 * error. | 1025 * error. |
| 1003 * | 1026 * |
| 1004 * If the used [http.Client] completes with an error when making a REST call, | 1027 * If the used [http.Client] completes with an error when making a REST call, |
| 1005 * this method will complete with the same error. | 1028 * this method will complete with the same error. |
| 1006 */ | 1029 */ |
| 1007 async.Future<ListSinksResponse> list(core.String parent, {core.String pageToke
n, core.int pageSize}) { | 1030 async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, c
ore.String pageToken}) { |
| 1008 var _url = null; | 1031 var _url = null; |
| 1009 var _queryParams = new core.Map(); | 1032 var _queryParams = new core.Map(); |
| 1010 var _uploadMedia = null; | 1033 var _uploadMedia = null; |
| 1011 var _uploadOptions = null; | 1034 var _uploadOptions = null; |
| 1012 var _downloadOptions = commons.DownloadOptions.Metadata; | 1035 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1013 var _body = null; | 1036 var _body = null; |
| 1014 | 1037 |
| 1015 if (parent == null) { | 1038 if (parent == null) { |
| 1016 throw new core.ArgumentError("Parameter parent is required."); | 1039 throw new core.ArgumentError("Parameter parent is required."); |
| 1017 } | 1040 } |
| 1041 if (pageSize != null) { |
| 1042 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1043 } |
| 1018 if (pageToken != null) { | 1044 if (pageToken != null) { |
| 1019 _queryParams["pageToken"] = [pageToken]; | 1045 _queryParams["pageToken"] = [pageToken]; |
| 1020 } | 1046 } |
| 1021 if (pageSize != null) { | |
| 1022 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1023 } | |
| 1024 | 1047 |
| 1025 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sin
ks'; | 1048 _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sin
ks'; |
| 1026 | 1049 |
| 1027 var _response = _requester.request(_url, | 1050 var _response = _requester.request(_url, |
| 1028 "GET", | 1051 "GET", |
| 1029 body: _body, | 1052 body: _body, |
| 1030 queryParams: _queryParams, | 1053 queryParams: _queryParams, |
| 1031 uploadOptions: _uploadOptions, | 1054 uploadOptions: _uploadOptions, |
| 1032 uploadMedia: _uploadMedia, | 1055 uploadMedia: _uploadMedia, |
| 1033 downloadOptions: _downloadOptions); | 1056 downloadOptions: _downloadOptions); |
| 1034 return _response.then((data) => new ListSinksResponse.fromJson(data)); | 1057 return _response.then((data) => new ListSinksResponse.fromJson(data)); |
| 1035 } | 1058 } |
| 1036 | 1059 |
| 1037 /** | 1060 /** |
| 1038 * Updates a sink. If the named sink doesn't exist, then this method is | 1061 * Updates a sink. If the named sink doesn't exist, then this method is |
| 1039 * identical to sinks.create. If the named sink does exist, then this method | 1062 * identical to sinks.create. If the named sink does exist, then this method |
| 1040 * replaces the following fields in the existing sink with values from the new | 1063 * replaces the following fields in the existing sink with values from the new |
| 1041 * sink: destination, filter, output_version_format, start_time, and end_time. | 1064 * sink: destination, filter, output_version_format, start_time, and end_time. |
| 1042 * The updated filter might also have a new writer_identity; see the | 1065 * The updated filter might also have a new writer_identity; see the |
| 1043 * unique_writer_identity field. | 1066 * unique_writer_identity field. |
| 1044 * | 1067 * |
| 1045 * [request] - The metadata request object. | 1068 * [request] - The metadata request object. |
| 1046 * | 1069 * |
| 1047 * Request parameters: | 1070 * Request parameters: |
| 1048 * | 1071 * |
| 1049 * [sinkName] - Required. The full resource name of the sink to update, | 1072 * [sinkName] - Required. The full resource name of the sink to update, |
| 1050 * including the parent resource and the sink identifier: | 1073 * including the parent resource and the sink identifier: |
| 1051 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" | 1074 * "projects/[PROJECT_ID]/sinks/[SINK_ID]" |
| 1052 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" | 1075 * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" |
| 1076 * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" |
| 1077 * "folders/[FOLDER_ID]/sinks/[SINK_ID]" |
| 1053 * Example: "projects/my-project-id/sinks/my-sink-id". | 1078 * Example: "projects/my-project-id/sinks/my-sink-id". |
| 1054 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". | 1079 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". |
| 1055 * | 1080 * |
| 1056 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of | 1081 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of |
| 1057 * this field. When updating a sink, the effect of this field on the value of | 1082 * this field. When updating a sink, the effect of this field on the value of |
| 1058 * writer_identity in the updated sink depends on both the old and new values | 1083 * writer_identity in the updated sink depends on both the old and new values |
| 1059 * of this field: | 1084 * of this field: |
| 1060 * If the old and new values of this field are both false or both true, then | 1085 * If the old and new values of this field are both false or both true, then |
| 1061 * there is no change to the sink's writer_identity. | 1086 * there is no change to the sink's writer_identity. |
| 1062 * If the old value was false and the new value is true, then writer_identity | 1087 * If the old value was false and the new value is true, then writer_identity |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1372 */ | 1397 */ |
| 1373 core.String pageToken; | 1398 core.String pageToken; |
| 1374 /** | 1399 /** |
| 1375 * Deprecated. Use resource_names instead. One or more project identifiers or | 1400 * Deprecated. Use resource_names instead. One or more project identifiers or |
| 1376 * project numbers from which to retrieve log entries. Example: | 1401 * project numbers from which to retrieve log entries. Example: |
| 1377 * "my-project-1A". If present, these project identifiers are converted to | 1402 * "my-project-1A". If present, these project identifiers are converted to |
| 1378 * resource name format and added to the list of resources in resource_names. | 1403 * resource name format and added to the list of resources in resource_names. |
| 1379 */ | 1404 */ |
| 1380 core.List<core.String> projectIds; | 1405 core.List<core.String> projectIds; |
| 1381 /** | 1406 /** |
| 1382 * Required. Names of one or more resources from which to retrieve log | 1407 * Required. Names of one or more parent resources from which to retrieve log |
| 1383 * entries: | 1408 * entries: |
| 1384 * "projects/[PROJECT_ID]" | 1409 * "projects/[PROJECT_ID]" |
| 1385 * "organizations/[ORGANIZATION_ID]" | 1410 * "organizations/[ORGANIZATION_ID]" |
| 1411 * "billingAccounts/[BILLING_ACCOUNT_ID]" |
| 1412 * "folders/[FOLDER_ID]" |
| 1386 * Projects listed in the project_ids field are added to this list. | 1413 * Projects listed in the project_ids field are added to this list. |
| 1387 */ | 1414 */ |
| 1388 core.List<core.String> resourceNames; | 1415 core.List<core.String> resourceNames; |
| 1389 | 1416 |
| 1390 ListLogEntriesRequest(); | 1417 ListLogEntriesRequest(); |
| 1391 | 1418 |
| 1392 ListLogEntriesRequest.fromJson(core.Map _json) { | 1419 ListLogEntriesRequest.fromJson(core.Map _json) { |
| 1393 if (_json.containsKey("filter")) { | 1420 if (_json.containsKey("filter")) { |
| 1394 filter = _json["filter"]; | 1421 filter = _json["filter"]; |
| 1395 } | 1422 } |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1637 core.Map<core.String, core.Object> jsonPayload; | 1664 core.Map<core.String, core.Object> jsonPayload; |
| 1638 /** | 1665 /** |
| 1639 * Optional. A set of user-defined (key, value) data that provides additional | 1666 * Optional. A set of user-defined (key, value) data that provides additional |
| 1640 * information about the log entry. | 1667 * information about the log entry. |
| 1641 */ | 1668 */ |
| 1642 core.Map<core.String, core.String> labels; | 1669 core.Map<core.String, core.String> labels; |
| 1643 /** | 1670 /** |
| 1644 * Required. The resource name of the log to which this log entry belongs: | 1671 * Required. The resource name of the log to which this log entry belongs: |
| 1645 * "projects/[PROJECT_ID]/logs/[LOG_ID]" | 1672 * "projects/[PROJECT_ID]/logs/[LOG_ID]" |
| 1646 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" | 1673 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" |
| 1674 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" |
| 1675 * "folders/[FOLDER_ID]/logs/[LOG_ID]" |
| 1647 * [LOG_ID] must be URL-encoded within log_name. Example: | 1676 * [LOG_ID] must be URL-encoded within log_name. Example: |
| 1648 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". | 1677 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". |
| 1649 * [LOG_ID] must be less than 512 characters long and can only include the | 1678 * [LOG_ID] must be less than 512 characters long and can only include the |
| 1650 * following characters: upper and lower case alphanumeric characters, | 1679 * following characters: upper and lower case alphanumeric characters, |
| 1651 * forward-slash, underscore, hyphen, and period.For backward compatibility, | 1680 * forward-slash, underscore, hyphen, and period.For backward compatibility, |
| 1652 * if log_name begins with a forward-slash, such as /projects/..., then the | 1681 * if log_name begins with a forward-slash, such as /projects/..., then the |
| 1653 * log entry is ingested as usual but the forward-slash is removed. Listing | 1682 * log entry is ingested as usual but the forward-slash is removed. Listing |
| 1654 * the log entry will not show the leading slash and filtering for a log name | 1683 * the log entry will not show the leading slash and filtering for a log name |
| 1655 * with a leading slash will never return any results. | 1684 * with a leading slash will never return any results. |
| 1656 */ | 1685 */ |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2045 _json["version"] = version; | 2074 _json["version"] = version; |
| 2046 } | 2075 } |
| 2047 return _json; | 2076 return _json; |
| 2048 } | 2077 } |
| 2049 } | 2078 } |
| 2050 | 2079 |
| 2051 /** | 2080 /** |
| 2052 * Describes a sink used to export log entries to one of the following | 2081 * Describes a sink used to export log entries to one of the following |
| 2053 * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a | 2082 * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a |
| 2054 * Cloud Pub/Sub topic. A logs filter controls which log entries are exported. | 2083 * Cloud Pub/Sub topic. A logs filter controls which log entries are exported. |
| 2055 * The sink must be created within a project or organization. | 2084 * The sink must be created within a project, organization, billing account, or |
| 2085 * folder. |
| 2056 */ | 2086 */ |
| 2057 class LogSink { | 2087 class LogSink { |
| 2058 /** | 2088 /** |
| 2059 * Required. The export destination: | 2089 * Required. The export destination: |
| 2060 * "storage.googleapis.com/[GCS_BUCKET]" | 2090 * "storage.googleapis.com/[GCS_BUCKET]" |
| 2061 * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" | 2091 * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" |
| 2062 * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" | 2092 * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" |
| 2063 * The sink's writer_identity, set when the sink is created, must have | 2093 * The sink's writer_identity, set when the sink is created, must have |
| 2064 * permission to write to the destination or else the log entries are not | 2094 * permission to write to the destination or else the log entries are not |
| 2065 * exported. For more information, see Exporting Logs With Sinks. | 2095 * exported. For more information, see Exporting Logs With Sinks. |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2712 * entries in entries. If a log entry already has a label with the same key as | 2742 * entries in entries. If a log entry already has a label with the same key as |
| 2713 * a label in this parameter, then the log entry's label is not changed. See | 2743 * a label in this parameter, then the log entry's label is not changed. See |
| 2714 * LogEntry. | 2744 * LogEntry. |
| 2715 */ | 2745 */ |
| 2716 core.Map<core.String, core.String> labels; | 2746 core.Map<core.String, core.String> labels; |
| 2717 /** | 2747 /** |
| 2718 * Optional. A default log resource name that is assigned to all log entries | 2748 * Optional. A default log resource name that is assigned to all log entries |
| 2719 * in entries that do not specify a value for log_name: | 2749 * in entries that do not specify a value for log_name: |
| 2720 * "projects/[PROJECT_ID]/logs/[LOG_ID]" | 2750 * "projects/[PROJECT_ID]/logs/[LOG_ID]" |
| 2721 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" | 2751 * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" |
| 2752 * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" |
| 2753 * "folders/[FOLDER_ID]/logs/[LOG_ID]" |
| 2722 * [LOG_ID] must be URL-encoded. For example, | 2754 * [LOG_ID] must be URL-encoded. For example, |
| 2723 * "projects/my-project-id/logs/syslog" or | 2755 * "projects/my-project-id/logs/syslog" or |
| 2724 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". | 2756 * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivi
ty". |
| 2725 * For more information about log names, see LogEntry. | 2757 * For more information about log names, see LogEntry. |
| 2726 */ | 2758 */ |
| 2727 core.String logName; | 2759 core.String logName; |
| 2728 /** | 2760 /** |
| 2729 * Optional. Whether valid entries should be written even if some other | 2761 * Optional. Whether valid entries should be written even if some other |
| 2730 * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any | 2762 * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any |
| 2731 * entry is not written, the response status will be the error associated with | 2763 * entry is not written, the response status will be the error associated with |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2790 WriteLogEntriesResponse(); | 2822 WriteLogEntriesResponse(); |
| 2791 | 2823 |
| 2792 WriteLogEntriesResponse.fromJson(core.Map _json) { | 2824 WriteLogEntriesResponse.fromJson(core.Map _json) { |
| 2793 } | 2825 } |
| 2794 | 2826 |
| 2795 core.Map toJson() { | 2827 core.Map toJson() { |
| 2796 var _json = new core.Map(); | 2828 var _json = new core.Map(); |
| 2797 return _json; | 2829 return _json; |
| 2798 } | 2830 } |
| 2799 } | 2831 } |
| OLD | NEW |