@google-cloud/spanner 7.7.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +4 -0
  3. package/build/protos/google/spanner/admin/database/v1/backup.proto +190 -109
  4. package/build/protos/google/spanner/admin/database/v1/common.proto +30 -10
  5. package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +166 -100
  6. package/build/protos/google/spanner/admin/instance/v1/common.proto +1 -1
  7. package/build/protos/google/spanner/executor/v1/cloud_executor.proto +1 -1
  8. package/build/protos/google/spanner/v1/commit_response.proto +1 -1
  9. package/build/protos/google/spanner/v1/keys.proto +1 -1
  10. package/build/protos/google/spanner/v1/mutation.proto +1 -1
  11. package/build/protos/google/spanner/v1/query_plan.proto +1 -1
  12. package/build/protos/google/spanner/v1/result_set.proto +1 -1
  13. package/build/protos/google/spanner/v1/spanner.proto +1 -1
  14. package/build/protos/google/spanner/v1/transaction.proto +1 -1
  15. package/build/protos/google/spanner/v1/type.proto +1 -1
  16. package/build/protos/protos.d.ts +30 -0
  17. package/build/protos/protos.js +204 -0
  18. package/build/protos/protos.json +43 -0
  19. package/build/src/codec.d.ts +56 -1
  20. package/build/src/codec.js +109 -4
  21. package/build/src/database.d.ts +34 -4
  22. package/build/src/database.js +23 -0
  23. package/build/src/index.d.ts +50 -1
  24. package/build/src/index.js +53 -0
  25. package/build/src/partial-result-stream.d.ts +41 -0
  26. package/build/src/partial-result-stream.js +6 -1
  27. package/build/src/table.d.ts +1 -0
  28. package/build/src/table.js +36 -2
  29. package/build/src/transaction-runner.d.ts +1 -0
  30. package/build/src/transaction-runner.js +3 -0
  31. package/build/src/transaction.d.ts +55 -0
  32. package/build/src/transaction.js +28 -2
  33. package/build/src/v1/database_admin_client.d.ts +175 -126
  34. package/build/src/v1/database_admin_client.js +85 -57
  35. package/build/src/v1/spanner_client_config.json +15 -14
  36. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
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
- type: "cloudkms.googleapis.com/CryptoKey"
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 underlying data
87
- // for this database or backup. Regardless of status, data is always encrypted
88
- // at rest.
89
- google.rpc.Status encryption_status = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
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 database or
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
- // Google standard SQL.
127
+ // GoogleSQL supported SQL.
108
128
  GOOGLE_STANDARD_SQL = 1;
109
129
 
110
130
  // PostgreSQL supported SQL.