@maxim_mazurok/gapi.client.logging-v2 0.0.20231210 → 0.0.20240112

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.
Files changed (2) hide show
  1. package/index.d.ts +34 -28
  2. 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: 20231210
12
+ // Revision: 20240112
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;
@@ -68,16 +68,22 @@ declare namespace gapi.client {
68
68
  interface CopyLogEntriesMetadata {
69
69
  /** Identifies whether the user has requested cancellation of the operation. */
70
70
  cancellationRequested?: boolean;
71
+ /** Destination to which to copy log entries.For example, a Cloud Storage bucket:"storage.googleapis.com/my-cloud-storage-bucket" */
72
+ destination?: string;
71
73
  /** The end time of an operation. */
72
74
  endTime?: string;
73
75
  /** Estimated progress of the operation (0 - 100%). */
74
76
  progress?: number;
75
77
  /** CopyLogEntries RPC request. */
76
78
  request?: CopyLogEntriesRequest;
79
+ /** Source from which to copy log entries.For example, a log bucket:"projects/my-project/locations/global/buckets/my-source-bucket" */
80
+ source?: string;
77
81
  /** The create time of an operation. */
78
82
  startTime?: string;
79
- /** State of an operation. */
83
+ /** Output only. State of an operation. */
80
84
  state?: string;
85
+ /** Name of the verb executed by the operation.For example,"copy" */
86
+ verb?: string;
81
87
  /** 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
88
  writerIdentity?: string;
83
89
  }
@@ -191,15 +197,15 @@ declare namespace gapi.client {
191
197
  width?: number;
192
198
  }
193
199
  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. */
200
+ /** 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
201
  bigqueryDataset?: BigQueryDataset;
196
202
  /** Output only. The creation timestamp of the link. */
197
203
  createTime?: string;
198
- /** Describes this link.The maximum length of the description is 8000 characters. */
204
+ /** Optional. Describes this link.The maximum length of the description is 8000 characters. */
199
205
  description?: string;
200
206
  /** Output only. The resource lifecycle state. */
201
207
  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 */
208
+ /** 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
209
  name?: string;
204
210
  }
205
211
  interface LinkMetadata {
@@ -211,7 +217,7 @@ declare namespace gapi.client {
211
217
  endTime?: string;
212
218
  /** The start time of an operation. */
213
219
  startTime?: string;
214
- /** State of an operation. */
220
+ /** Output only. State of an operation. */
215
221
  state?: string;
216
222
  }
217
223
  interface ListBucketsResponse {
@@ -327,25 +333,25 @@ declare namespace gapi.client {
327
333
  logAnalyticsEnabled?: boolean;
328
334
  }
329
335
  interface LogBucket {
330
- /** Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled. */
336
+ /** Optional. Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled. */
331
337
  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. */
338
+ /** 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
339
  cmekSettings?: CmekSettings;
334
340
  /** Output only. The creation timestamp of the bucket. This is not set for any of the default buckets. */
335
341
  createTime?: string;
336
- /** Describes this bucket. */
342
+ /** Optional. Describes this bucket. */
337
343
  description?: string;
338
- /** A list of indexed fields and related configuration data. */
344
+ /** Optional. A list of indexed fields and related configuration data. */
339
345
  indexConfigs?: IndexConfig[];
340
346
  /** Output only. The bucket lifecycle state. */
341
347
  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. */
348
+ /** 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
349
  locked?: boolean;
344
350
  /** 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
351
  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) */
352
+ /** 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
353
  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. */
354
+ /** 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
355
  retentionDays?: number;
350
356
  /** Output only. The last update timestamp of the bucket. */
351
357
  updateTime?: string;
@@ -421,17 +427,17 @@ declare namespace gapi.client {
421
427
  disabled?: boolean;
422
428
  /** 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
429
  filter?: string;
424
- /** Required. 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. */
430
+ /** 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
431
  name?: string;
426
432
  /** Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions. */
427
433
  updateTime?: string;
428
434
  }
429
435
  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. */
436
+ /** 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
437
  filter?: string;
432
438
  /** Characters will be counted from the end of the string. */
433
439
  summaryFieldEnd?: number;
434
- /** The set of summary fields to display for this saved query. */
440
+ /** Optional. The set of summary fields to display for this saved query. */
435
441
  summaryFields?: SummaryField[];
436
442
  /** Characters will be counted from the start of the string. */
437
443
  summaryFieldStart?: number;
@@ -489,7 +495,7 @@ declare namespace gapi.client {
489
495
  filter?: string;
490
496
  /** 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
497
  includeChildren?: boolean;
492
- /** Required. 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. */
498
+ /** 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
499
  name?: string;
494
500
  /** Deprecated. This field is unused. */
495
501
  outputVersionFormat?: string;
@@ -509,11 +515,11 @@ declare namespace gapi.client {
509
515
  interface LogView {
510
516
  /** Output only. The creation timestamp of the view. */
511
517
  createTime?: string;
512
- /** Describes this view. */
518
+ /** Optional. Describes this view. */
513
519
  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") */
520
+ /** 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
521
  filter?: string;
516
- /** The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view */
522
+ /** Output only. The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view */
517
523
  name?: string;
518
524
  /** Output only. The last update timestamp of the view. */
519
525
  updateTime?: string;
@@ -567,7 +573,7 @@ declare namespace gapi.client {
567
573
  launchStage?: string;
568
574
  /** 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
575
  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 Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types (https://cloud.google.com/logging/docs/api/v2/resource-list). */
576
+ /** 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
577
  type?: string;
572
578
  }
573
579
  interface MonitoredResourceMetadata {
@@ -593,7 +599,7 @@ declare namespace gapi.client {
593
599
  sqlQueryText?: string;
594
600
  }
595
601
  interface RecentQuery {
596
- /** The timestamp when this query was last run. */
602
+ /** Output only. The timestamp when this query was last run. */
597
603
  lastRunTime?: string;
598
604
  /** Logging query that can be executed in Logs Explorer or via Logging API. */
599
605
  loggingQuery?: LoggingQuery;
@@ -675,9 +681,9 @@ declare namespace gapi.client {
675
681
  interface SavedQuery {
676
682
  /** Output only. The timestamp when the saved query was created. */
677
683
  createTime?: string;
678
- /** A human readable description of the saved query. */
684
+ /** Optional. A human readable description of the saved query. */
679
685
  description?: string;
680
- /** The user specified title for the SavedQuery. */
686
+ /** Optional. The user specified title for the SavedQuery. */
681
687
  displayName?: string;
682
688
  /** Logging query that can be executed in Logs Explorer or via Logging API. */
683
689
  loggingQuery?: LoggingQuery;
@@ -727,7 +733,7 @@ declare namespace gapi.client {
727
733
  message?: string;
728
734
  }
729
735
  interface SummaryField {
730
- /** The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name. */
736
+ /** Optional. The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name. */
731
737
  field?: string;
732
738
  }
733
739
  interface SuppressionInfo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.logging-v2",
3
- "version": "0.0.20231210",
3
+ "version": "0.0.20240112",
4
4
  "description": "TypeScript typings for Cloud Logging API v2",
5
5
  "repository": {
6
6
  "type": "git",