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.
Files changed (44) hide show
  1. checksums.yaml +5 -5
  2. data/lib/google-cloud-spanner.rb +13 -10
  3. data/lib/google/cloud/spanner.rb +21 -18
  4. data/lib/google/cloud/spanner/admin/database.rb +111 -0
  5. data/lib/google/cloud/spanner/admin/database/credentials.rb +35 -0
  6. data/lib/google/cloud/spanner/admin/database/v1.rb +100 -3
  7. data/lib/google/cloud/spanner/admin/database/v1/database_admin_client.rb +129 -138
  8. data/lib/google/cloud/spanner/admin/database/v1/doc/google/iam/v1/policy.rb +8 -8
  9. data/lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/any.rb +12 -2
  10. data/lib/google/cloud/spanner/admin/database/v1/doc/google/rpc/status.rb +22 -22
  11. data/lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb +33 -20
  12. data/lib/google/cloud/spanner/admin/database/v1/doc/overview.rb +57 -0
  13. data/lib/google/cloud/spanner/admin/instance.rb +127 -0
  14. data/lib/google/cloud/spanner/admin/instance/credentials.rb +35 -0
  15. data/lib/google/cloud/spanner/admin/instance/v1.rb +116 -3
  16. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/iam/v1/policy.rb +8 -8
  17. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/protobuf/any.rb +12 -2
  18. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/rpc/status.rb +22 -22
  19. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/spanner/admin/instance/v1/spanner_instance_admin.rb +58 -43
  20. data/lib/google/cloud/spanner/admin/instance/v1/doc/overview.rb +57 -0
  21. data/lib/google/cloud/spanner/admin/instance/v1/instance_admin_client.rb +180 -189
  22. data/lib/google/cloud/spanner/client.rb +3 -3
  23. data/lib/google/cloud/spanner/credentials.rb +33 -7
  24. data/lib/google/cloud/spanner/database.rb +3 -6
  25. data/lib/google/cloud/spanner/instance.rb +2 -4
  26. data/lib/google/cloud/spanner/instance/config.rb +2 -4
  27. data/lib/google/cloud/spanner/project.rb +6 -6
  28. data/lib/google/cloud/spanner/service.rb +5 -26
  29. data/lib/google/cloud/spanner/session.rb +4 -4
  30. data/lib/google/cloud/spanner/v1/doc/google/protobuf/duration.rb +14 -1
  31. data/lib/google/cloud/spanner/v1/doc/google/protobuf/timestamp.rb +26 -1
  32. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/keys.rb +3 -3
  33. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/mutation.rb +12 -12
  34. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/query_plan.rb +9 -9
  35. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/result_set.rb +33 -33
  36. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb +99 -28
  37. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/transaction.rb +41 -31
  38. data/lib/google/cloud/spanner/v1/doc/overview.rb +54 -0
  39. data/lib/google/cloud/spanner/v1/spanner_client.rb +277 -195
  40. data/lib/google/cloud/spanner/v1/spanner_client_config.json +5 -0
  41. data/lib/google/cloud/spanner/version.rb +1 -1
  42. data/lib/google/spanner/v1/spanner_pb.rb +16 -1
  43. data/lib/google/spanner/v1/spanner_services_pb.rb +2 -0
  44. 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",
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Spanner
19
- VERSION = "1.0.0"
19
+ VERSION = "1.1.0"
20
20
  end
21
21
  end
22
22
  end
@@ -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.0.0
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-09-29 00:00:00.000000000 Z
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.0'
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.0'
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.8.1
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.8.1
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.8
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.8
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.6.13
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