google-cloud-spanner 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/google-cloud-spanner.rb +13 -10
- data/lib/google/cloud/spanner.rb +21 -18
- data/lib/google/cloud/spanner/admin/database.rb +111 -0
- data/lib/google/cloud/spanner/admin/database/credentials.rb +35 -0
- data/lib/google/cloud/spanner/admin/database/v1.rb +100 -3
- data/lib/google/cloud/spanner/admin/database/v1/database_admin_client.rb +129 -138
- data/lib/google/cloud/spanner/admin/database/v1/doc/google/iam/v1/policy.rb +8 -8
- data/lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/any.rb +12 -2
- data/lib/google/cloud/spanner/admin/database/v1/doc/google/rpc/status.rb +22 -22
- data/lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb +33 -20
- data/lib/google/cloud/spanner/admin/database/v1/doc/overview.rb +57 -0
- data/lib/google/cloud/spanner/admin/instance.rb +127 -0
- data/lib/google/cloud/spanner/admin/instance/credentials.rb +35 -0
- data/lib/google/cloud/spanner/admin/instance/v1.rb +116 -3
- data/lib/google/cloud/spanner/admin/instance/v1/doc/google/iam/v1/policy.rb +8 -8
- data/lib/google/cloud/spanner/admin/instance/v1/doc/google/protobuf/any.rb +12 -2
- data/lib/google/cloud/spanner/admin/instance/v1/doc/google/rpc/status.rb +22 -22
- data/lib/google/cloud/spanner/admin/instance/v1/doc/google/spanner/admin/instance/v1/spanner_instance_admin.rb +58 -43
- data/lib/google/cloud/spanner/admin/instance/v1/doc/overview.rb +57 -0
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin_client.rb +180 -189
- data/lib/google/cloud/spanner/client.rb +3 -3
- data/lib/google/cloud/spanner/credentials.rb +33 -7
- data/lib/google/cloud/spanner/database.rb +3 -6
- data/lib/google/cloud/spanner/instance.rb +2 -4
- data/lib/google/cloud/spanner/instance/config.rb +2 -4
- data/lib/google/cloud/spanner/project.rb +6 -6
- data/lib/google/cloud/spanner/service.rb +5 -26
- data/lib/google/cloud/spanner/session.rb +4 -4
- data/lib/google/cloud/spanner/v1/doc/google/protobuf/duration.rb +14 -1
- data/lib/google/cloud/spanner/v1/doc/google/protobuf/timestamp.rb +26 -1
- data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/keys.rb +3 -3
- data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/mutation.rb +12 -12
- data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/query_plan.rb +9 -9
- data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/result_set.rb +33 -33
- data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb +99 -28
- data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/transaction.rb +41 -31
- data/lib/google/cloud/spanner/v1/doc/overview.rb +54 -0
- data/lib/google/cloud/spanner/v1/spanner_client.rb +277 -195
- data/lib/google/cloud/spanner/v1/spanner_client_config.json +5 -0
- data/lib/google/cloud/spanner/version.rb +1 -1
- data/lib/google/spanner/v1/spanner_pb.rb +16 -1
- data/lib/google/spanner/v1/spanner_services_pb.rb +2 -0
- metadata +16 -23
@@ -42,6 +42,11 @@
|
|
42
42
|
"retry_codes_name": "idempotent",
|
43
43
|
"retry_params_name": "default"
|
44
44
|
},
|
45
|
+
"ListSessions": {
|
46
|
+
"timeout_millis": 30000,
|
47
|
+
"retry_codes_name": "idempotent",
|
48
|
+
"retry_params_name": "default"
|
49
|
+
},
|
45
50
|
"DeleteSession": {
|
46
51
|
"timeout_millis": 30000,
|
47
52
|
"retry_codes_name": "idempotent",
|
@@ -4,7 +4,6 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'google/api/annotations_pb'
|
7
|
-
require 'google/api/auth_pb'
|
8
7
|
require 'google/protobuf/empty_pb'
|
9
8
|
require 'google/protobuf/struct_pb'
|
10
9
|
require 'google/protobuf/timestamp_pb'
|
@@ -16,13 +15,27 @@ require 'google/spanner/v1/type_pb'
|
|
16
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
16
|
add_message "google.spanner.v1.CreateSessionRequest" do
|
18
17
|
optional :database, :string, 1
|
18
|
+
optional :session, :message, 2, "google.spanner.v1.Session"
|
19
19
|
end
|
20
20
|
add_message "google.spanner.v1.Session" do
|
21
21
|
optional :name, :string, 1
|
22
|
+
map :labels, :string, :string, 2
|
23
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
24
|
+
optional :approximate_last_use_time, :message, 4, "google.protobuf.Timestamp"
|
22
25
|
end
|
23
26
|
add_message "google.spanner.v1.GetSessionRequest" do
|
24
27
|
optional :name, :string, 1
|
25
28
|
end
|
29
|
+
add_message "google.spanner.v1.ListSessionsRequest" do
|
30
|
+
optional :database, :string, 1
|
31
|
+
optional :page_size, :int32, 2
|
32
|
+
optional :page_token, :string, 3
|
33
|
+
optional :filter, :string, 4
|
34
|
+
end
|
35
|
+
add_message "google.spanner.v1.ListSessionsResponse" do
|
36
|
+
repeated :sessions, :message, 1, "google.spanner.v1.Session"
|
37
|
+
optional :next_page_token, :string, 2
|
38
|
+
end
|
26
39
|
add_message "google.spanner.v1.DeleteSessionRequest" do
|
27
40
|
optional :name, :string, 1
|
28
41
|
end
|
@@ -77,6 +90,8 @@ module Google
|
|
77
90
|
CreateSessionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.CreateSessionRequest").msgclass
|
78
91
|
Session = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.Session").msgclass
|
79
92
|
GetSessionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.GetSessionRequest").msgclass
|
93
|
+
ListSessionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ListSessionsRequest").msgclass
|
94
|
+
ListSessionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ListSessionsResponse").msgclass
|
80
95
|
DeleteSessionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.DeleteSessionRequest").msgclass
|
81
96
|
ExecuteSqlRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ExecuteSqlRequest").msgclass
|
82
97
|
ExecuteSqlRequest::QueryMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ExecuteSqlRequest.QueryMode").enummodule
|
@@ -59,6 +59,8 @@ module Google
|
|
59
59
|
# This is mainly useful for determining whether a session is still
|
60
60
|
# alive.
|
61
61
|
rpc :GetSession, GetSessionRequest, Session
|
62
|
+
# Lists all sessions in a given database.
|
63
|
+
rpc :ListSessions, ListSessionsRequest, ListSessionsResponse
|
62
64
|
# Ends a session, releasing server resources associated with it.
|
63
65
|
rpc :DeleteSession, DeleteSessionRequest, Google::Protobuf::Empty
|
64
66
|
# Executes an SQL query, returning all rows in a single reply. This
|
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: 1.
|
4
|
+
version: 1.1.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: 2017-
|
12
|
+
date: 2017-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -17,56 +17,42 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.1'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
27
|
+
version: '1.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: google-gax
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: 0.10.1
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: grpc
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - "~>"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '1.1'
|
49
|
-
type: :runtime
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - "~>"
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '1.1'
|
41
|
+
version: 0.10.1
|
56
42
|
- !ruby/object:Gem::Dependency
|
57
43
|
name: grpc-google-iam-v1
|
58
44
|
requirement: !ruby/object:Gem::Requirement
|
59
45
|
requirements:
|
60
46
|
- - "~>"
|
61
47
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.6.
|
48
|
+
version: 0.6.9
|
63
49
|
type: :runtime
|
64
50
|
prerelease: false
|
65
51
|
version_requirements: !ruby/object:Gem::Requirement
|
66
52
|
requirements:
|
67
53
|
- - "~>"
|
68
54
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.6.
|
55
|
+
version: 0.6.9
|
70
56
|
- !ruby/object:Gem::Dependency
|
71
57
|
name: concurrent-ruby
|
72
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -218,6 +204,8 @@ extra_rdoc_files: []
|
|
218
204
|
files:
|
219
205
|
- lib/google-cloud-spanner.rb
|
220
206
|
- lib/google/cloud/spanner.rb
|
207
|
+
- lib/google/cloud/spanner/admin/database.rb
|
208
|
+
- lib/google/cloud/spanner/admin/database/credentials.rb
|
221
209
|
- lib/google/cloud/spanner/admin/database/v1.rb
|
222
210
|
- lib/google/cloud/spanner/admin/database/v1/database_admin_client.rb
|
223
211
|
- lib/google/cloud/spanner/admin/database/v1/database_admin_client_config.json
|
@@ -225,12 +213,16 @@ files:
|
|
225
213
|
- lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/any.rb
|
226
214
|
- lib/google/cloud/spanner/admin/database/v1/doc/google/rpc/status.rb
|
227
215
|
- lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb
|
216
|
+
- lib/google/cloud/spanner/admin/database/v1/doc/overview.rb
|
217
|
+
- lib/google/cloud/spanner/admin/instance.rb
|
218
|
+
- lib/google/cloud/spanner/admin/instance/credentials.rb
|
228
219
|
- lib/google/cloud/spanner/admin/instance/v1.rb
|
229
220
|
- lib/google/cloud/spanner/admin/instance/v1/doc/google/iam/v1/policy.rb
|
230
221
|
- lib/google/cloud/spanner/admin/instance/v1/doc/google/protobuf/any.rb
|
231
222
|
- lib/google/cloud/spanner/admin/instance/v1/doc/google/protobuf/field_mask.rb
|
232
223
|
- lib/google/cloud/spanner/admin/instance/v1/doc/google/rpc/status.rb
|
233
224
|
- lib/google/cloud/spanner/admin/instance/v1/doc/google/spanner/admin/instance/v1/spanner_instance_admin.rb
|
225
|
+
- lib/google/cloud/spanner/admin/instance/v1/doc/overview.rb
|
234
226
|
- lib/google/cloud/spanner/admin/instance/v1/instance_admin_client.rb
|
235
227
|
- lib/google/cloud/spanner/admin/instance/v1/instance_admin_client_config.json
|
236
228
|
- lib/google/cloud/spanner/client.rb
|
@@ -268,6 +260,7 @@ files:
|
|
268
260
|
- lib/google/cloud/spanner/v1/doc/google/spanner/v1/result_set.rb
|
269
261
|
- lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb
|
270
262
|
- lib/google/cloud/spanner/v1/doc/google/spanner/v1/transaction.rb
|
263
|
+
- lib/google/cloud/spanner/v1/doc/overview.rb
|
271
264
|
- lib/google/cloud/spanner/v1/spanner_client.rb
|
272
265
|
- lib/google/cloud/spanner/v1/spanner_client_config.json
|
273
266
|
- lib/google/cloud/spanner/version.rb
|
@@ -303,7 +296,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
303
296
|
version: '0'
|
304
297
|
requirements: []
|
305
298
|
rubyforge_project:
|
306
|
-
rubygems_version: 2.
|
299
|
+
rubygems_version: 2.7.2
|
307
300
|
signing_key:
|
308
301
|
specification_version: 4
|
309
302
|
summary: API Client library for Google Cloud Spanner API
|