google-cloud-spanner 2.13.0 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/google/cloud/spanner/data.rb +1 -1
- data/lib/google/cloud/spanner/database.rb +3 -6
- data/lib/google/cloud/spanner/fields.rb +1 -1
- data/lib/google/cloud/spanner/instance.rb +1 -1
- data/lib/google/cloud/spanner/project.rb +3 -3
- data/lib/google/cloud/spanner/service.rb +1 -1
- data/lib/google/cloud/spanner/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bd07b2fc95f0e1d07f3e4e7ac3a0b87ad07a5d3037f612688c6c494ba0f6987
|
4
|
+
data.tar.gz: 45684d1b7b3ae0d34a551a6469ff130225c238919048ec8e9243020762883520
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db4731a786c2af447d557b5f19196fcdd14d19bd98198cdc9ed729d0a15699dfe0b8f36c36f145f99b003be59eafa5887f2ec99193ea3669fba3634dd2b949d5
|
7
|
+
data.tar.gz: 0201b3e7eda798bf0f587ec2f8158d374745e44c4904ad4dac7b4546130d4863e22d596fc756a28d8fe5f789ea9e5985bc9db8e1cc54346857f9e937125fa4d9
|
data/CHANGELOG.md
CHANGED
@@ -172,7 +172,7 @@ module Google
|
|
172
172
|
def to_h skip_dup_check: nil
|
173
173
|
raise DuplicateNameError if !skip_dup_check && fields.duplicate_names?
|
174
174
|
|
175
|
-
|
175
|
+
keys.zip(to_a(skip_dup_check: skip_dup_check)).to_h
|
176
176
|
end
|
177
177
|
|
178
178
|
# @private
|
@@ -288,12 +288,9 @@ module Google
|
|
288
288
|
|
289
289
|
# @private
|
290
290
|
DATBASE_OPERATION_METADAT_FILTER_TEMPLATE = [
|
291
|
-
"(metadata.@type:CreateDatabaseMetadata AND "
|
292
|
-
"metadata.
|
293
|
-
"(metadata.@type:
|
294
|
-
"metadata.name:%<database_id>s)",
|
295
|
-
"(metadata.@type:UpdateDatabaseDdl AND "\
|
296
|
-
"metadata.database:%<database_id>s)"
|
291
|
+
"(metadata.@type:CreateDatabaseMetadata AND metadata.database:%<database_id>s)",
|
292
|
+
"(metadata.@type:RestoreDatabaseMetadata AND metadata.name:%<database_id>s)",
|
293
|
+
"(metadata.@type:UpdateDatabaseDdl AND metadata.database:%<database_id>s)"
|
297
294
|
].join(" OR ")
|
298
295
|
|
299
296
|
##
|
@@ -259,7 +259,7 @@ module Google
|
|
259
259
|
config = config.path if config.respond_to? :path
|
260
260
|
|
261
261
|
# Convert from possible Google::Protobuf::Map
|
262
|
-
labels =
|
262
|
+
labels = labels.to_h { |k, v| [String(k), String(v)] } if labels
|
263
263
|
grpc = service.create_instance \
|
264
264
|
instance_id, name: name, config: config, nodes: nodes,
|
265
265
|
processing_units: processing_units, labels: labels
|
@@ -571,7 +571,7 @@ module Google
|
|
571
571
|
def client instance_id, database_id, pool: {}, labels: nil,
|
572
572
|
query_options: nil
|
573
573
|
# Convert from possible Google::Protobuf::Map
|
574
|
-
labels =
|
574
|
+
labels = labels.to_h { |k, v| [String(k), String(v)] } if labels
|
575
575
|
# Configs set by environment variables take over client-level configs.
|
576
576
|
if query_options.nil?
|
577
577
|
query_options = @query_options
|
@@ -647,7 +647,7 @@ module Google
|
|
647
647
|
def batch_client instance_id, database_id, labels: nil,
|
648
648
|
query_options: nil
|
649
649
|
# Convert from possible Google::Protobuf::Map
|
650
|
-
labels =
|
650
|
+
labels = labels.to_h { |k, v| [String(k), String(v)] } if labels
|
651
651
|
BatchClient.new self, instance_id, database_id, session_labels: labels,
|
652
652
|
query_options: query_options
|
653
653
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
processing_units: nil, labels: nil,
|
136
136
|
call_options: nil
|
137
137
|
opts = default_options call_options: call_options
|
138
|
-
labels =
|
138
|
+
labels = labels.to_h { |k, v| [String(k), String(v)] } if labels
|
139
139
|
|
140
140
|
create_obj = Admin::Instance::V1::Instance.new({
|
141
141
|
display_name: name, config: instance_config_path(config),
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-spanner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-07-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -87,28 +87,28 @@ dependencies:
|
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 1.
|
90
|
+
version: 1.26.1
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 1.
|
97
|
+
version: 1.26.1
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: minitest
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: '5.
|
104
|
+
version: '5.16'
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: '5.
|
111
|
+
version: '5.16'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: minitest-autotest
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -326,14 +326,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
326
326
|
requirements:
|
327
327
|
- - ">="
|
328
328
|
- !ruby/object:Gem::Version
|
329
|
-
version: '2.
|
329
|
+
version: '2.6'
|
330
330
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
331
331
|
requirements:
|
332
332
|
- - ">="
|
333
333
|
- !ruby/object:Gem::Version
|
334
334
|
version: '0'
|
335
335
|
requirements: []
|
336
|
-
rubygems_version: 3.3.
|
336
|
+
rubygems_version: 3.3.14
|
337
337
|
signing_key:
|
338
338
|
specification_version: 4
|
339
339
|
summary: API Client library for Google Cloud Spanner API
|