| Index: generated/googleapis/lib/logging/v2.dart
|
| diff --git a/generated/googleapis/lib/logging/v2.dart b/generated/googleapis/lib/logging/v2.dart
|
| index 63cecb10f0b14fd7dc53e80af7813f9a1a30a810..4f910598723002ebc2ce69c7b1d8fc30c69c8775 100644
|
| --- a/generated/googleapis/lib/logging/v2.dart
|
| +++ b/generated/googleapis/lib/logging/v2.dart
|
| @@ -65,13 +65,16 @@ class BillingAccountsLogsResourceApi {
|
|
|
| /**
|
| * Deletes all the log entries in a log. The log reappears if it receives new
|
| - * entries.
|
| + * entries. Log entries written shortly before the delete operation might not
|
| + * be deleted.
|
| *
|
| * Request parameters:
|
| *
|
| * [logName] - Required. The resource name of the log to delete:
|
| * "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
| * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
| + * "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
| * [LOG_ID] must be URL-encoded. For example,
|
| * "projects/my-project-id/logs/syslog",
|
| * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
|
| @@ -111,26 +114,28 @@ class BillingAccountsLogsResourceApi {
|
| }
|
|
|
| /**
|
| - * Lists the logs in projects or organizations. Only logs that have entries
|
| - * are listed.
|
| + * Lists the logs in projects, organizations, folders, or billing accounts.
|
| + * Only logs that have entries are listed.
|
| *
|
| * Request parameters:
|
| *
|
| * [parent] - Required. The resource name that owns the logs:
|
| * "projects/[PROJECT_ID]"
|
| * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| *
|
| * Value must have pattern "^billingAccounts/[^/]+$".
|
| *
|
| + * [pageSize] - Optional. The maximum number of results to return from this
|
| + * request. Non-positive values are ignored. The presence of nextPageToken in
|
| + * the response indicates that more results might be available.
|
| + *
|
| * [pageToken] - Optional. If present, then retrieve the next batch of results
|
| * from the preceding call to this method. pageToken must be the value of
|
| * nextPageToken from the previous response. The values of other method
|
| * parameters should be identical to those in the previous call.
|
| *
|
| - * [pageSize] - Optional. The maximum number of results to return from this
|
| - * request. Non-positive values are ignored. The presence of nextPageToken in
|
| - * the response indicates that more results might be available.
|
| - *
|
| * Completes with a [ListLogsResponse].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -139,7 +144,7 @@ class BillingAccountsLogsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) {
|
| + async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -150,12 +155,12 @@ class BillingAccountsLogsResourceApi {
|
| if (parent == null) {
|
| throw new core.ArgumentError("Parameter parent is required.");
|
| }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| - }
|
| if (pageSize != null) {
|
| _queryParams["pageSize"] = ["${pageSize}"];
|
| }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| + }
|
|
|
| _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs';
|
|
|
| @@ -192,19 +197,21 @@ class BillingAccountsSinksResourceApi {
|
| * [parent] - Required. The resource in which to create the sink:
|
| * "projects/[PROJECT_ID]"
|
| * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| * Examples: "projects/my-logging-project", "organizations/123456789".
|
| * Value must have pattern "^billingAccounts/[^/]+$".
|
| *
|
| * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity
|
| * returned as writer_identity in the new sink. If this value is omitted or
|
| * set to false, and if the sink's parent is a project, then the value
|
| - * returned as writer_identity is cloud-logs@google.com, the same identity
|
| - * used before the addition of writer identities to this API. The sink's
|
| - * destination must be in the same project as the sink itself.If this field is
|
| - * set to true, or if the sink is owned by a non-project resource such as an
|
| - * organization, then the value of writer_identity will be a unique service
|
| - * account used only for exports from the new sink. For more information, see
|
| - * writer_identity in LogSink.
|
| + * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the
|
| + * same identity used before the addition of writer identities to this API.
|
| + * The sink's destination must be in the same project as the sink itself.If
|
| + * this field is set to true, or if the sink is owned by a non-project
|
| + * resource such as an organization, then the value of writer_identity will be
|
| + * a unique service account used only for exports from the new sink. For more
|
| + * information, see writer_identity in LogSink.
|
| *
|
| * Completes with a [LogSink].
|
| *
|
| @@ -254,9 +261,9 @@ class BillingAccountsSinksResourceApi {
|
| * including the parent resource and the sink identifier:
|
| * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
| * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
| - * It is an error if the sink does not exist. Example:
|
| - * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does
|
| - * not exist.
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
| + * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
| + * Example: "projects/my-project-id/sinks/my-sink-id".
|
| * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$".
|
| *
|
| * Completes with a [Empty].
|
| @@ -296,9 +303,11 @@ class BillingAccountsSinksResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [sinkName] - Required. The parent resource name of the sink:
|
| + * [sinkName] - Required. The resource name of the sink:
|
| * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
| * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
| + * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
| * Example: "projects/my-project-id/sinks/my-sink-id".
|
| * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$".
|
| *
|
| @@ -339,19 +348,23 @@ class BillingAccountsSinksResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [parent] - Required. The parent resource whose sinks are to be listed.
|
| - * Examples: "projects/my-logging-project", "organizations/123456789".
|
| - * Value must have pattern "^billingAccounts/[^/]+$".
|
| + * [parent] - Required. The parent resource whose sinks are to be listed:
|
| + * "projects/[PROJECT_ID]"
|
| + * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| *
|
| - * [pageSize] - Optional. The maximum number of results to return from this
|
| - * request. Non-positive values are ignored. The presence of nextPageToken in
|
| - * the response indicates that more results might be available.
|
| + * Value must have pattern "^billingAccounts/[^/]+$".
|
| *
|
| * [pageToken] - Optional. If present, then retrieve the next batch of results
|
| * from the preceding call to this method. pageToken must be the value of
|
| * nextPageToken from the previous response. The values of other method
|
| * parameters should be identical to those in the previous call.
|
| *
|
| + * [pageSize] - Optional. The maximum number of results to return from this
|
| + * request. Non-positive values are ignored. The presence of nextPageToken in
|
| + * the response indicates that more results might be available.
|
| + *
|
| * Completes with a [ListSinksResponse].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -360,7 +373,7 @@ class BillingAccountsSinksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) {
|
| + async.Future<ListSinksResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -371,12 +384,12 @@ class BillingAccountsSinksResourceApi {
|
| if (parent == null) {
|
| throw new core.ArgumentError("Parameter parent is required.");
|
| }
|
| - if (pageSize != null) {
|
| - _queryParams["pageSize"] = ["${pageSize}"];
|
| - }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| + if (pageSize != null) {
|
| + _queryParams["pageSize"] = ["${pageSize}"];
|
| + }
|
|
|
| _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks';
|
|
|
| @@ -406,6 +419,8 @@ class BillingAccountsSinksResourceApi {
|
| * including the parent resource and the sink identifier:
|
| * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
| * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
| + * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
| * Example: "projects/my-project-id/sinks/my-sink-id".
|
| * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$".
|
| *
|
| @@ -568,13 +583,16 @@ class FoldersLogsResourceApi {
|
|
|
| /**
|
| * Deletes all the log entries in a log. The log reappears if it receives new
|
| - * entries.
|
| + * entries. Log entries written shortly before the delete operation might not
|
| + * be deleted.
|
| *
|
| * Request parameters:
|
| *
|
| * [logName] - Required. The resource name of the log to delete:
|
| * "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
| * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
| + * "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
| * [LOG_ID] must be URL-encoded. For example,
|
| * "projects/my-project-id/logs/syslog",
|
| * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
|
| @@ -614,14 +632,16 @@ class FoldersLogsResourceApi {
|
| }
|
|
|
| /**
|
| - * Lists the logs in projects or organizations. Only logs that have entries
|
| - * are listed.
|
| + * Lists the logs in projects, organizations, folders, or billing accounts.
|
| + * Only logs that have entries are listed.
|
| *
|
| * Request parameters:
|
| *
|
| * [parent] - Required. The resource name that owns the logs:
|
| * "projects/[PROJECT_ID]"
|
| * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| *
|
| * Value must have pattern "^folders/[^/]+$".
|
| *
|
| @@ -695,19 +715,21 @@ class FoldersSinksResourceApi {
|
| * [parent] - Required. The resource in which to create the sink:
|
| * "projects/[PROJECT_ID]"
|
| * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| * Examples: "projects/my-logging-project", "organizations/123456789".
|
| * Value must have pattern "^folders/[^/]+$".
|
| *
|
| * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity
|
| * returned as writer_identity in the new sink. If this value is omitted or
|
| * set to false, and if the sink's parent is a project, then the value
|
| - * returned as writer_identity is cloud-logs@google.com, the same identity
|
| - * used before the addition of writer identities to this API. The sink's
|
| - * destination must be in the same project as the sink itself.If this field is
|
| - * set to true, or if the sink is owned by a non-project resource such as an
|
| - * organization, then the value of writer_identity will be a unique service
|
| - * account used only for exports from the new sink. For more information, see
|
| - * writer_identity in LogSink.
|
| + * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the
|
| + * same identity used before the addition of writer identities to this API.
|
| + * The sink's destination must be in the same project as the sink itself.If
|
| + * this field is set to true, or if the sink is owned by a non-project
|
| + * resource such as an organization, then the value of writer_identity will be
|
| + * a unique service account used only for exports from the new sink. For more
|
| + * information, see writer_identity in LogSink.
|
| *
|
| * Completes with a [LogSink].
|
| *
|
| @@ -757,9 +779,9 @@ class FoldersSinksResourceApi {
|
| * including the parent resource and the sink identifier:
|
| * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
| * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
| - * It is an error if the sink does not exist. Example:
|
| - * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does
|
| - * not exist.
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
| + * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
| + * Example: "projects/my-project-id/sinks/my-sink-id".
|
| * Value must have pattern "^folders/[^/]+/sinks/[^/]+$".
|
| *
|
| * Completes with a [Empty].
|
| @@ -799,9 +821,11 @@ class FoldersSinksResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [sinkName] - Required. The parent resource name of the sink:
|
| + * [sinkName] - Required. The resource name of the sink:
|
| * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
| * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
| + * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
| * Example: "projects/my-project-id/sinks/my-sink-id".
|
| * Value must have pattern "^folders/[^/]+/sinks/[^/]+$".
|
| *
|
| @@ -842,8 +866,12 @@ class FoldersSinksResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [parent] - Required. The parent resource whose sinks are to be listed.
|
| - * Examples: "projects/my-logging-project", "organizations/123456789".
|
| + * [parent] - Required. The parent resource whose sinks are to be listed:
|
| + * "projects/[PROJECT_ID]"
|
| + * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| + *
|
| * Value must have pattern "^folders/[^/]+$".
|
| *
|
| * [pageToken] - Optional. If present, then retrieve the next batch of results
|
| @@ -909,6 +937,8 @@ class FoldersSinksResourceApi {
|
| * including the parent resource and the sink identifier:
|
| * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
| * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
| + * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
| * Example: "projects/my-project-id/sinks/my-sink-id".
|
| * Value must have pattern "^folders/[^/]+/sinks/[^/]+$".
|
| *
|
| @@ -1041,13 +1071,16 @@ class OrganizationsLogsResourceApi {
|
|
|
| /**
|
| * Deletes all the log entries in a log. The log reappears if it receives new
|
| - * entries.
|
| + * entries. Log entries written shortly before the delete operation might not
|
| + * be deleted.
|
| *
|
| * Request parameters:
|
| *
|
| * [logName] - Required. The resource name of the log to delete:
|
| * "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
| * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
| + * "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
| * [LOG_ID] must be URL-encoded. For example,
|
| * "projects/my-project-id/logs/syslog",
|
| * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
|
| @@ -1087,14 +1120,16 @@ class OrganizationsLogsResourceApi {
|
| }
|
|
|
| /**
|
| - * Lists the logs in projects or organizations. Only logs that have entries
|
| - * are listed.
|
| + * Lists the logs in projects, organizations, folders, or billing accounts.
|
| + * Only logs that have entries are listed.
|
| *
|
| * Request parameters:
|
| *
|
| * [parent] - Required. The resource name that owns the logs:
|
| * "projects/[PROJECT_ID]"
|
| * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| *
|
| * Value must have pattern "^organizations/[^/]+$".
|
| *
|
| @@ -1168,19 +1203,21 @@ class OrganizationsSinksResourceApi {
|
| * [parent] - Required. The resource in which to create the sink:
|
| * "projects/[PROJECT_ID]"
|
| * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| * Examples: "projects/my-logging-project", "organizations/123456789".
|
| * Value must have pattern "^organizations/[^/]+$".
|
| *
|
| * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity
|
| * returned as writer_identity in the new sink. If this value is omitted or
|
| * set to false, and if the sink's parent is a project, then the value
|
| - * returned as writer_identity is cloud-logs@google.com, the same identity
|
| - * used before the addition of writer identities to this API. The sink's
|
| - * destination must be in the same project as the sink itself.If this field is
|
| - * set to true, or if the sink is owned by a non-project resource such as an
|
| - * organization, then the value of writer_identity will be a unique service
|
| - * account used only for exports from the new sink. For more information, see
|
| - * writer_identity in LogSink.
|
| + * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the
|
| + * same identity used before the addition of writer identities to this API.
|
| + * The sink's destination must be in the same project as the sink itself.If
|
| + * this field is set to true, or if the sink is owned by a non-project
|
| + * resource such as an organization, then the value of writer_identity will be
|
| + * a unique service account used only for exports from the new sink. For more
|
| + * information, see writer_identity in LogSink.
|
| *
|
| * Completes with a [LogSink].
|
| *
|
| @@ -1230,9 +1267,9 @@ class OrganizationsSinksResourceApi {
|
| * including the parent resource and the sink identifier:
|
| * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
| * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
| - * It is an error if the sink does not exist. Example:
|
| - * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does
|
| - * not exist.
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
| + * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
| + * Example: "projects/my-project-id/sinks/my-sink-id".
|
| * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$".
|
| *
|
| * Completes with a [Empty].
|
| @@ -1272,9 +1309,11 @@ class OrganizationsSinksResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [sinkName] - Required. The parent resource name of the sink:
|
| + * [sinkName] - Required. The resource name of the sink:
|
| * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
| * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
| + * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
| * Example: "projects/my-project-id/sinks/my-sink-id".
|
| * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$".
|
| *
|
| @@ -1315,19 +1354,23 @@ class OrganizationsSinksResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [parent] - Required. The parent resource whose sinks are to be listed.
|
| - * Examples: "projects/my-logging-project", "organizations/123456789".
|
| + * [parent] - Required. The parent resource whose sinks are to be listed:
|
| + * "projects/[PROJECT_ID]"
|
| + * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| + *
|
| * Value must have pattern "^organizations/[^/]+$".
|
| *
|
| + * [pageSize] - Optional. The maximum number of results to return from this
|
| + * request. Non-positive values are ignored. The presence of nextPageToken in
|
| + * the response indicates that more results might be available.
|
| + *
|
| * [pageToken] - Optional. If present, then retrieve the next batch of results
|
| * from the preceding call to this method. pageToken must be the value of
|
| * nextPageToken from the previous response. The values of other method
|
| * parameters should be identical to those in the previous call.
|
| *
|
| - * [pageSize] - Optional. The maximum number of results to return from this
|
| - * request. Non-positive values are ignored. The presence of nextPageToken in
|
| - * the response indicates that more results might be available.
|
| - *
|
| * Completes with a [ListSinksResponse].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -1336,7 +1379,7 @@ class OrganizationsSinksResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<ListSinksResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) {
|
| + async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1347,12 +1390,12 @@ class OrganizationsSinksResourceApi {
|
| if (parent == null) {
|
| throw new core.ArgumentError("Parameter parent is required.");
|
| }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| - }
|
| if (pageSize != null) {
|
| _queryParams["pageSize"] = ["${pageSize}"];
|
| }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| + }
|
|
|
| _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks';
|
|
|
| @@ -1382,6 +1425,8 @@ class OrganizationsSinksResourceApi {
|
| * including the parent resource and the sink identifier:
|
| * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
| * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
| + * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
| * Example: "projects/my-project-id/sinks/my-sink-id".
|
| * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$".
|
| *
|
| @@ -1456,13 +1501,16 @@ class ProjectsLogsResourceApi {
|
|
|
| /**
|
| * Deletes all the log entries in a log. The log reappears if it receives new
|
| - * entries.
|
| + * entries. Log entries written shortly before the delete operation might not
|
| + * be deleted.
|
| *
|
| * Request parameters:
|
| *
|
| * [logName] - Required. The resource name of the log to delete:
|
| * "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
| * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
| + * "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
| * [LOG_ID] must be URL-encoded. For example,
|
| * "projects/my-project-id/logs/syslog",
|
| * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
|
| @@ -1502,26 +1550,28 @@ class ProjectsLogsResourceApi {
|
| }
|
|
|
| /**
|
| - * Lists the logs in projects or organizations. Only logs that have entries
|
| - * are listed.
|
| + * Lists the logs in projects, organizations, folders, or billing accounts.
|
| + * Only logs that have entries are listed.
|
| *
|
| * Request parameters:
|
| *
|
| * [parent] - Required. The resource name that owns the logs:
|
| * "projects/[PROJECT_ID]"
|
| * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| *
|
| * Value must have pattern "^projects/[^/]+$".
|
| *
|
| - * [pageSize] - Optional. The maximum number of results to return from this
|
| - * request. Non-positive values are ignored. The presence of nextPageToken in
|
| - * the response indicates that more results might be available.
|
| - *
|
| * [pageToken] - Optional. If present, then retrieve the next batch of results
|
| * from the preceding call to this method. pageToken must be the value of
|
| * nextPageToken from the previous response. The values of other method
|
| * parameters should be identical to those in the previous call.
|
| *
|
| + * [pageSize] - Optional. The maximum number of results to return from this
|
| + * request. Non-positive values are ignored. The presence of nextPageToken in
|
| + * the response indicates that more results might be available.
|
| + *
|
| * Completes with a [ListLogsResponse].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -1530,7 +1580,7 @@ class ProjectsLogsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) {
|
| + async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -1541,12 +1591,12 @@ class ProjectsLogsResourceApi {
|
| if (parent == null) {
|
| throw new core.ArgumentError("Parameter parent is required.");
|
| }
|
| - if (pageSize != null) {
|
| - _queryParams["pageSize"] = ["${pageSize}"];
|
| - }
|
| if (pageToken != null) {
|
| _queryParams["pageToken"] = [pageToken];
|
| }
|
| + if (pageSize != null) {
|
| + _queryParams["pageSize"] = ["${pageSize}"];
|
| + }
|
|
|
| _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs';
|
|
|
| @@ -1829,19 +1879,21 @@ class ProjectsSinksResourceApi {
|
| * [parent] - Required. The resource in which to create the sink:
|
| * "projects/[PROJECT_ID]"
|
| * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| * Examples: "projects/my-logging-project", "organizations/123456789".
|
| * Value must have pattern "^projects/[^/]+$".
|
| *
|
| * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity
|
| * returned as writer_identity in the new sink. If this value is omitted or
|
| * set to false, and if the sink's parent is a project, then the value
|
| - * returned as writer_identity is cloud-logs@google.com, the same identity
|
| - * used before the addition of writer identities to this API. The sink's
|
| - * destination must be in the same project as the sink itself.If this field is
|
| - * set to true, or if the sink is owned by a non-project resource such as an
|
| - * organization, then the value of writer_identity will be a unique service
|
| - * account used only for exports from the new sink. For more information, see
|
| - * writer_identity in LogSink.
|
| + * returned as writer_identity is cloud-logs@system.gserviceaccount.com, the
|
| + * same identity used before the addition of writer identities to this API.
|
| + * The sink's destination must be in the same project as the sink itself.If
|
| + * this field is set to true, or if the sink is owned by a non-project
|
| + * resource such as an organization, then the value of writer_identity will be
|
| + * a unique service account used only for exports from the new sink. For more
|
| + * information, see writer_identity in LogSink.
|
| *
|
| * Completes with a [LogSink].
|
| *
|
| @@ -1891,9 +1943,9 @@ class ProjectsSinksResourceApi {
|
| * including the parent resource and the sink identifier:
|
| * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
| * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
| - * It is an error if the sink does not exist. Example:
|
| - * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does
|
| - * not exist.
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
| + * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
| + * Example: "projects/my-project-id/sinks/my-sink-id".
|
| * Value must have pattern "^projects/[^/]+/sinks/[^/]+$".
|
| *
|
| * Completes with a [Empty].
|
| @@ -1933,9 +1985,11 @@ class ProjectsSinksResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [sinkName] - Required. The parent resource name of the sink:
|
| + * [sinkName] - Required. The resource name of the sink:
|
| * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
| * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
| + * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
| * Example: "projects/my-project-id/sinks/my-sink-id".
|
| * Value must have pattern "^projects/[^/]+/sinks/[^/]+$".
|
| *
|
| @@ -1976,8 +2030,12 @@ class ProjectsSinksResourceApi {
|
| *
|
| * Request parameters:
|
| *
|
| - * [parent] - Required. The parent resource whose sinks are to be listed.
|
| - * Examples: "projects/my-logging-project", "organizations/123456789".
|
| + * [parent] - Required. The parent resource whose sinks are to be listed:
|
| + * "projects/[PROJECT_ID]"
|
| + * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| + *
|
| * Value must have pattern "^projects/[^/]+$".
|
| *
|
| * [pageToken] - Optional. If present, then retrieve the next batch of results
|
| @@ -2043,6 +2101,8 @@ class ProjectsSinksResourceApi {
|
| * including the parent resource and the sink identifier:
|
| * "projects/[PROJECT_ID]/sinks/[SINK_ID]"
|
| * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
|
| + * "folders/[FOLDER_ID]/sinks/[SINK_ID]"
|
| * Example: "projects/my-project-id/sinks/my-sink-id".
|
| * Value must have pattern "^projects/[^/]+/sinks/[^/]+$".
|
| *
|
| @@ -2372,10 +2432,12 @@ class ListLogEntriesRequest {
|
| */
|
| core.List<core.String> projectIds;
|
| /**
|
| - * Required. Names of one or more resources from which to retrieve log
|
| + * Required. Names of one or more parent resources from which to retrieve log
|
| * entries:
|
| * "projects/[PROJECT_ID]"
|
| * "organizations/[ORGANIZATION_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]"
|
| + * "folders/[FOLDER_ID]"
|
| * Projects listed in the project_ids field are added to this list.
|
| */
|
| core.List<core.String> resourceNames;
|
| @@ -2637,6 +2699,8 @@ class LogEntry {
|
| * Required. The resource name of the log to which this log entry belongs:
|
| * "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
| * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
| + * "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
| * [LOG_ID] must be URL-encoded within log_name. Example:
|
| * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
|
| * [LOG_ID] must be less than 512 characters long and can only include the
|
| @@ -3045,7 +3109,8 @@ class LogMetric {
|
| * Describes a sink used to export log entries to one of the following
|
| * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
|
| * Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
|
| - * The sink must be created within a project or organization.
|
| + * The sink must be created within a project, organization, billing account, or
|
| + * folder.
|
| */
|
| class LogSink {
|
| /**
|
| @@ -3712,6 +3777,8 @@ class WriteLogEntriesRequest {
|
| * in entries that do not specify a value for log_name:
|
| * "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
| * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
| + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
|
| + * "folders/[FOLDER_ID]/logs/[LOG_ID]"
|
| * [LOG_ID] must be URL-encoded. For example,
|
| * "projects/my-project-id/logs/syslog" or
|
| * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
|
|
|