@maxim_mazurok/gapi.client.logging-v2 0.0.20231210 → 0.0.20240108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +28 -28
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://logging.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240108
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -41,7 +41,7 @@ declare namespace gapi.client {
|
|
|
41
41
|
endTime?: string;
|
|
42
42
|
/** The create time of an operation. */
|
|
43
43
|
startTime?: string;
|
|
44
|
-
/** State of an operation. */
|
|
44
|
+
/** Output only. State of an operation. */
|
|
45
45
|
state?: string;
|
|
46
46
|
/** LongRunningUpdateBucket RPC request. */
|
|
47
47
|
updateBucketRequest?: UpdateBucketRequest;
|
|
@@ -56,9 +56,9 @@ declare namespace gapi.client {
|
|
|
56
56
|
}
|
|
57
57
|
interface CancelOperationRequest {}
|
|
58
58
|
interface CmekSettings {
|
|
59
|
-
/** The resource name for the configured Cloud KMS key.KMS key name format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]" For example:"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"To enable CMEK for the Log Router, set this field to a valid kms_key_name for which the associated service account has the needed cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.The Cloud KMS key used by the Log Router can be updated by changing the kms_key_name to a new valid key name or disabled by setting the key name to an empty string. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked.To disable CMEK for the Log Router, set this field to an empty string.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. */
|
|
59
|
+
/** Optional. The resource name for the configured Cloud KMS key.KMS key name format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]" For example:"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"To enable CMEK for the Log Router, set this field to a valid kms_key_name for which the associated service account has the needed cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.The Cloud KMS key used by the Log Router can be updated by changing the kms_key_name to a new valid key name or disabled by setting the key name to an empty string. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked.To disable CMEK for the Log Router, set this field to an empty string.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. */
|
|
60
60
|
kmsKeyName?: string;
|
|
61
|
-
/** The CryptoKeyVersion resource name for the configured Cloud KMS key.KMS key name format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]" For example:"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"This is a read-only field used to convey the specific configured CryptoKeyVersion of kms_key that has been configured. It will be populated in cases where the CMEK settings are bound to a single key version.If this field is populated, the kms_key is tied to a specific CryptoKeyVersion. */
|
|
61
|
+
/** Output only. The CryptoKeyVersion resource name for the configured Cloud KMS key.KMS key name format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]" For example:"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"This is a read-only field used to convey the specific configured CryptoKeyVersion of kms_key that has been configured. It will be populated in cases where the CMEK settings are bound to a single key version.If this field is populated, the kms_key is tied to a specific CryptoKeyVersion. */
|
|
62
62
|
kmsKeyVersionName?: string;
|
|
63
63
|
/** Output only. The resource name of the CMEK settings. */
|
|
64
64
|
name?: string;
|
|
@@ -76,7 +76,7 @@ declare namespace gapi.client {
|
|
|
76
76
|
request?: CopyLogEntriesRequest;
|
|
77
77
|
/** The create time of an operation. */
|
|
78
78
|
startTime?: string;
|
|
79
|
-
/** State of an operation. */
|
|
79
|
+
/** Output only. State of an operation. */
|
|
80
80
|
state?: string;
|
|
81
81
|
/** The IAM identity of a service account that must be granted access to the destination.If the service account is not granted permission to the destination within an hour, the operation will be cancelled.For example: "serviceAccount:foo@bar.com" */
|
|
82
82
|
writerIdentity?: string;
|
|
@@ -191,15 +191,15 @@ declare namespace gapi.client {
|
|
|
191
191
|
width?: number;
|
|
192
192
|
}
|
|
193
193
|
interface Link {
|
|
194
|
-
/** The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket. */
|
|
194
|
+
/** Optional. The information of a BigQuery Dataset. When a link is created, a BigQuery dataset is created along with it, in the same project as the LogBucket it's linked to. This dataset will also have BigQuery Views corresponding to the LogViews in the bucket. */
|
|
195
195
|
bigqueryDataset?: BigQueryDataset;
|
|
196
196
|
/** Output only. The creation timestamp of the link. */
|
|
197
197
|
createTime?: string;
|
|
198
|
-
/** Describes this link.The maximum length of the description is 8000 characters. */
|
|
198
|
+
/** Optional. Describes this link.The maximum length of the description is 8000 characters. */
|
|
199
199
|
description?: string;
|
|
200
200
|
/** Output only. The resource lifecycle state. */
|
|
201
201
|
lifecycleState?: string;
|
|
202
|
-
/** The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" For example:`projects/my-project/locations/global/buckets/my-bucket/links/my_link */
|
|
202
|
+
/** Output only. The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" For example:`projects/my-project/locations/global/buckets/my-bucket/links/my_link */
|
|
203
203
|
name?: string;
|
|
204
204
|
}
|
|
205
205
|
interface LinkMetadata {
|
|
@@ -211,7 +211,7 @@ declare namespace gapi.client {
|
|
|
211
211
|
endTime?: string;
|
|
212
212
|
/** The start time of an operation. */
|
|
213
213
|
startTime?: string;
|
|
214
|
-
/** State of an operation. */
|
|
214
|
+
/** Output only. State of an operation. */
|
|
215
215
|
state?: string;
|
|
216
216
|
}
|
|
217
217
|
interface ListBucketsResponse {
|
|
@@ -327,25 +327,25 @@ declare namespace gapi.client {
|
|
|
327
327
|
logAnalyticsEnabled?: boolean;
|
|
328
328
|
}
|
|
329
329
|
interface LogBucket {
|
|
330
|
-
/** Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled. */
|
|
330
|
+
/** Optional. Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled. */
|
|
331
331
|
analyticsEnabled?: boolean;
|
|
332
|
-
/** The CMEK settings of the log bucket. If present, new log entries written to this log bucket are encrypted using the CMEK key provided in this configuration. If a log bucket has CMEK settings, the CMEK settings cannot be disabled later by updating the log bucket. Changing the KMS key is allowed. */
|
|
332
|
+
/** Optional. The CMEK settings of the log bucket. If present, new log entries written to this log bucket are encrypted using the CMEK key provided in this configuration. If a log bucket has CMEK settings, the CMEK settings cannot be disabled later by updating the log bucket. Changing the KMS key is allowed. */
|
|
333
333
|
cmekSettings?: CmekSettings;
|
|
334
334
|
/** Output only. The creation timestamp of the bucket. This is not set for any of the default buckets. */
|
|
335
335
|
createTime?: string;
|
|
336
|
-
/** Describes this bucket. */
|
|
336
|
+
/** Optional. Describes this bucket. */
|
|
337
337
|
description?: string;
|
|
338
|
-
/** A list of indexed fields and related configuration data. */
|
|
338
|
+
/** Optional. A list of indexed fields and related configuration data. */
|
|
339
339
|
indexConfigs?: IndexConfig[];
|
|
340
340
|
/** Output only. The bucket lifecycle state. */
|
|
341
341
|
lifecycleState?: string;
|
|
342
|
-
/** Whether the bucket is locked.The retention period on a locked bucket cannot be changed. Locked buckets may only be deleted if they are empty. */
|
|
342
|
+
/** Optional. Whether the bucket is locked.The retention period on a locked bucket cannot be changed. Locked buckets may only be deleted if they are empty. */
|
|
343
343
|
locked?: boolean;
|
|
344
344
|
/** Output only. The resource name of the bucket.For example:projects/my-project/locations/global/buckets/my-bucketFor a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support)For the location of global it is unspecified where log entries are actually stored.After a bucket has been created, the location cannot be changed. */
|
|
345
345
|
name?: string;
|
|
346
|
-
/** Log entry field paths that are denied access in this bucket.The following fields and their children are eligible: textPayload, jsonPayload, protoPayload, httpRequest, labels, sourceLocation.Restricting a repeated field will restrict all values. Adding a parent will block all child fields. (e.g. foo.bar will block foo.bar.baz) */
|
|
346
|
+
/** Optional. Log entry field paths that are denied access in this bucket.The following fields and their children are eligible: textPayload, jsonPayload, protoPayload, httpRequest, labels, sourceLocation.Restricting a repeated field will restrict all values. Adding a parent will block all child fields. (e.g. foo.bar will block foo.bar.baz) */
|
|
347
347
|
restrictedFields?: string[];
|
|
348
|
-
/** Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used. */
|
|
348
|
+
/** Optional. Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used. */
|
|
349
349
|
retentionDays?: number;
|
|
350
350
|
/** Output only. The last update timestamp of the bucket. */
|
|
351
351
|
updateTime?: string;
|
|
@@ -421,17 +421,17 @@ declare namespace gapi.client {
|
|
|
421
421
|
disabled?: boolean;
|
|
422
422
|
/** Required. An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99) */
|
|
423
423
|
filter?: string;
|
|
424
|
-
/**
|
|
424
|
+
/** Output only. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric. */
|
|
425
425
|
name?: string;
|
|
426
426
|
/** Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions. */
|
|
427
427
|
updateTime?: string;
|
|
428
428
|
}
|
|
429
429
|
interface LoggingQuery {
|
|
430
|
-
/** An advanced query using the Logging Query Language (https://cloud.google.com/logging/docs/view/logging-query-language). The maximum length of the filter is 20000 characters. */
|
|
430
|
+
/** Required. An advanced query using the Logging Query Language (https://cloud.google.com/logging/docs/view/logging-query-language). The maximum length of the filter is 20000 characters. */
|
|
431
431
|
filter?: string;
|
|
432
432
|
/** Characters will be counted from the end of the string. */
|
|
433
433
|
summaryFieldEnd?: number;
|
|
434
|
-
/** The set of summary fields to display for this saved query. */
|
|
434
|
+
/** Optional. The set of summary fields to display for this saved query. */
|
|
435
435
|
summaryFields?: SummaryField[];
|
|
436
436
|
/** Characters will be counted from the start of the string. */
|
|
437
437
|
summaryFieldStart?: number;
|
|
@@ -489,7 +489,7 @@ declare namespace gapi.client {
|
|
|
489
489
|
filter?: string;
|
|
490
490
|
/** Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink's parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink's parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink's filter expression.For example, if this field is true, then the filter resource.type=gce_instance would export all Compute Engine VM instance log entries from all projects in the sink's parent.To only export entries from certain child projects, filter on the project part of the log name:logName:("projects/test-project1/" OR "projects/test-project2/") AND resource.type=gce_instance */
|
|
491
491
|
includeChildren?: boolean;
|
|
492
|
-
/**
|
|
492
|
+
/** Output only. The client-assigned sink identifier, unique within the project.For example: "my-syslog-errors-to-pubsub".Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, periods.First character has to be alphanumeric. */
|
|
493
493
|
name?: string;
|
|
494
494
|
/** Deprecated. This field is unused. */
|
|
495
495
|
outputVersionFormat?: string;
|
|
@@ -509,11 +509,11 @@ declare namespace gapi.client {
|
|
|
509
509
|
interface LogView {
|
|
510
510
|
/** Output only. The creation timestamp of the view. */
|
|
511
511
|
createTime?: string;
|
|
512
|
-
/** Describes this view. */
|
|
512
|
+
/** Optional. Describes this view. */
|
|
513
513
|
description?: string;
|
|
514
|
-
/** Filter that restricts which log entries in a bucket are visible in this view.Filters must be logical conjunctions that use the AND operator, and they can use any of the following qualifiers: SOURCE(), which specifies a project, folder, organization, or billing account of origin. resource.type, which specifies the resource type. LOG_ID(), which identifies the log.They can also use the negations of these qualifiers with the NOT operator.For example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND NOT LOG_ID("stdout") */
|
|
514
|
+
/** Optional. Filter that restricts which log entries in a bucket are visible in this view.Filters must be logical conjunctions that use the AND operator, and they can use any of the following qualifiers: SOURCE(), which specifies a project, folder, organization, or billing account of origin. resource.type, which specifies the resource type. LOG_ID(), which identifies the log.They can also use the negations of these qualifiers with the NOT operator.For example:SOURCE("projects/myproject") AND resource.type = "gce_instance" AND NOT LOG_ID("stdout") */
|
|
515
515
|
filter?: string;
|
|
516
|
-
/** The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view */
|
|
516
|
+
/** Output only. The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view */
|
|
517
517
|
name?: string;
|
|
518
518
|
/** Output only. The last update timestamp of the view. */
|
|
519
519
|
updateTime?: string;
|
|
@@ -567,7 +567,7 @@ declare namespace gapi.client {
|
|
|
567
567
|
launchStage?: string;
|
|
568
568
|
/** Optional. The resource name of the monitored resource descriptor: "projects/{project_id}/monitoredResourceDescriptors/{type}" where {type} is the value of the type field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format "monitoredResourceDescriptors/{type}". */
|
|
569
569
|
name?: string;
|
|
570
|
-
/** Required. The monitored resource type. For example, the type "cloudsql_database" represents databases in Google Cloud SQL. For a list of types, see
|
|
570
|
+
/** Required. The monitored resource type. For example, the type "cloudsql_database" represents databases in Google Cloud SQL. For a list of types, see Monitored resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list). */
|
|
571
571
|
type?: string;
|
|
572
572
|
}
|
|
573
573
|
interface MonitoredResourceMetadata {
|
|
@@ -593,7 +593,7 @@ declare namespace gapi.client {
|
|
|
593
593
|
sqlQueryText?: string;
|
|
594
594
|
}
|
|
595
595
|
interface RecentQuery {
|
|
596
|
-
/** The timestamp when this query was last run. */
|
|
596
|
+
/** Output only. The timestamp when this query was last run. */
|
|
597
597
|
lastRunTime?: string;
|
|
598
598
|
/** Logging query that can be executed in Logs Explorer or via Logging API. */
|
|
599
599
|
loggingQuery?: LoggingQuery;
|
|
@@ -675,9 +675,9 @@ declare namespace gapi.client {
|
|
|
675
675
|
interface SavedQuery {
|
|
676
676
|
/** Output only. The timestamp when the saved query was created. */
|
|
677
677
|
createTime?: string;
|
|
678
|
-
/** A human readable description of the saved query. */
|
|
678
|
+
/** Optional. A human readable description of the saved query. */
|
|
679
679
|
description?: string;
|
|
680
|
-
/** The user specified title for the SavedQuery. */
|
|
680
|
+
/** Optional. The user specified title for the SavedQuery. */
|
|
681
681
|
displayName?: string;
|
|
682
682
|
/** Logging query that can be executed in Logs Explorer or via Logging API. */
|
|
683
683
|
loggingQuery?: LoggingQuery;
|
|
@@ -727,7 +727,7 @@ declare namespace gapi.client {
|
|
|
727
727
|
message?: string;
|
|
728
728
|
}
|
|
729
729
|
interface SummaryField {
|
|
730
|
-
/** The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name. */
|
|
730
|
+
/** Optional. The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name. */
|
|
731
731
|
field?: string;
|
|
732
732
|
}
|
|
733
733
|
interface SuppressionInfo {
|