@google-cloud/spanner 7.6.0 → 7.8.0
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/CHANGELOG.md +29 -0
- package/README.md +4 -0
- package/build/protos/google/spanner/admin/database/v1/backup.proto +190 -109
- package/build/protos/google/spanner/admin/database/v1/common.proto +30 -10
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +166 -100
- package/build/protos/google/spanner/admin/instance/v1/common.proto +15 -1
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +6 -0
- package/build/protos/google/spanner/executor/v1/cloud_executor.proto +30 -6
- package/build/protos/google/spanner/v1/commit_response.proto +1 -1
- package/build/protos/google/spanner/v1/keys.proto +1 -1
- package/build/protos/google/spanner/v1/mutation.proto +1 -1
- package/build/protos/google/spanner/v1/query_plan.proto +1 -1
- package/build/protos/google/spanner/v1/result_set.proto +1 -1
- package/build/protos/google/spanner/v1/spanner.proto +1 -1
- package/build/protos/google/spanner/v1/transaction.proto +1 -1
- package/build/protos/google/spanner/v1/type.proto +1 -1
- package/build/protos/protos.d.ts +310 -40
- package/build/protos/protos.js +942 -89
- package/build/protos/protos.json +115 -5
- package/build/src/codec.d.ts +56 -1
- package/build/src/codec.js +109 -4
- package/build/src/database.d.ts +41 -5
- package/build/src/database.js +37 -2
- package/build/src/index.d.ts +50 -1
- package/build/src/index.js +53 -0
- package/build/src/partial-result-stream.d.ts +41 -0
- package/build/src/partial-result-stream.js +6 -1
- package/build/src/table.d.ts +1 -0
- package/build/src/table.js +36 -2
- package/build/src/transaction-runner.d.ts +1 -0
- package/build/src/transaction-runner.js +3 -0
- package/build/src/transaction.d.ts +55 -0
- package/build/src/transaction.js +28 -2
- package/build/src/v1/database_admin_client.d.ts +175 -126
- package/build/src/v1/database_admin_client.js +95 -64
- package/build/src/v1/instance_admin_client.js +10 -7
- package/build/src/v1/spanner_client.js +10 -7
- package/build/src/v1/spanner_client_config.json +15 -14
- package/build/src/v1/spanner_executor_proxy_client.js +10 -7
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -58,8 +58,27 @@ message EncryptionConfig {
|
|
|
58
58
|
// the database. Values are of the form
|
|
59
59
|
// `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
|
|
60
60
|
string kms_key_name = 2 [(google.api.resource_reference) = {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
type: "cloudkms.googleapis.com/CryptoKey"
|
|
62
|
+
}];
|
|
63
|
+
|
|
64
|
+
// Specifies the KMS configuration for the one or more keys used to encrypt
|
|
65
|
+
// the database. Values are of the form
|
|
66
|
+
// `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
|
|
67
|
+
//
|
|
68
|
+
// The keys referenced by kms_key_names must fully cover all
|
|
69
|
+
// regions of the database instance configuration. Some examples:
|
|
70
|
+
// * For single region database instance configs, specify a single regional
|
|
71
|
+
// location KMS key.
|
|
72
|
+
// * For multi-regional database instance configs of type GOOGLE_MANAGED,
|
|
73
|
+
// either specify a multi-regional location KMS key or multiple regional
|
|
74
|
+
// location KMS keys that cover all regions in the instance config.
|
|
75
|
+
// * For a database instance config of type USER_MANAGED, please specify only
|
|
76
|
+
// regional location KMS keys to cover each region in the instance config.
|
|
77
|
+
// Multi-regional location KMS keys are not supported for USER_MANAGED
|
|
78
|
+
// instance configs.
|
|
79
|
+
repeated string kms_key_names = 3 [(google.api.resource_reference) = {
|
|
80
|
+
type: "cloudkms.googleapis.com/CryptoKey"
|
|
81
|
+
}];
|
|
63
82
|
}
|
|
64
83
|
|
|
65
84
|
// Encryption information for a Cloud Spanner database or backup.
|
|
@@ -83,13 +102,14 @@ message EncryptionInfo {
|
|
|
83
102
|
// Output only. The type of encryption.
|
|
84
103
|
Type encryption_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
85
104
|
|
|
86
|
-
// Output only. If present, the status of a recent encrypt/decrypt call on
|
|
87
|
-
// for this database or backup. Regardless of status, data is
|
|
88
|
-
// at rest.
|
|
89
|
-
google.rpc.Status encryption_status = 4
|
|
105
|
+
// Output only. If present, the status of a recent encrypt/decrypt call on
|
|
106
|
+
// underlying data for this database or backup. Regardless of status, data is
|
|
107
|
+
// always encrypted at rest.
|
|
108
|
+
google.rpc.Status encryption_status = 4
|
|
109
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
90
110
|
|
|
91
|
-
// Output only. A Cloud KMS key version that is being used to protect the
|
|
92
|
-
// backup.
|
|
111
|
+
// Output only. A Cloud KMS key version that is being used to protect the
|
|
112
|
+
// database or backup.
|
|
93
113
|
string kms_key_version = 2 [
|
|
94
114
|
(google.api.field_behavior) = OUTPUT_ONLY,
|
|
95
115
|
(google.api.resource_reference) = {
|
|
@@ -104,7 +124,7 @@ enum DatabaseDialect {
|
|
|
104
124
|
// GOOGLE_STANDARD_SQL dialect.
|
|
105
125
|
DATABASE_DIALECT_UNSPECIFIED = 0;
|
|
106
126
|
|
|
107
|
-
//
|
|
127
|
+
// GoogleSQL supported SQL.
|
|
108
128
|
GOOGLE_STANDARD_SQL = 1;
|
|
109
129
|
|
|
110
130
|
// PostgreSQL supported SQL.
|