google-cloud-spanner 1.6.3 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/LOGGING.md +1 -1
  4. data/OVERVIEW.md +1 -1
  5. data/lib/google/cloud/spanner/admin/database/v1/database_admin_client.rb +29 -29
  6. data/lib/google/cloud/spanner/admin/database/v1/doc/google/iam/v1/iam_policy.rb +13 -13
  7. data/lib/google/cloud/spanner/admin/database/v1/doc/google/iam/v1/policy.rb +28 -28
  8. data/lib/google/cloud/spanner/admin/database/v1/doc/google/longrunning/operations.rb +9 -9
  9. data/lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/any.rb +8 -8
  10. data/lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/empty.rb +1 -1
  11. data/lib/google/cloud/spanner/admin/database/v1/doc/google/rpc/status.rb +11 -11
  12. data/lib/google/cloud/spanner/admin/database/v1/doc/google/spanner/admin/database/v1/spanner_database_admin.rb +21 -21
  13. data/lib/google/cloud/spanner/admin/database/v1.rb +4 -4
  14. data/lib/google/cloud/spanner/admin/database.rb +4 -4
  15. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/iam/v1/iam_policy.rb +13 -13
  16. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/iam/v1/policy.rb +28 -28
  17. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/longrunning/operations.rb +9 -9
  18. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/protobuf/any.rb +8 -8
  19. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/protobuf/empty.rb +1 -1
  20. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/protobuf/field_mask.rb +7 -7
  21. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/rpc/status.rb +11 -11
  22. data/lib/google/cloud/spanner/admin/instance/v1/doc/google/spanner/admin/instance/v1/spanner_instance_admin.rb +30 -30
  23. data/lib/google/cloud/spanner/admin/instance/v1/instance_admin_client.rb +44 -44
  24. data/lib/google/cloud/spanner/admin/instance/v1.rb +4 -4
  25. data/lib/google/cloud/spanner/admin/instance.rb +4 -4
  26. data/lib/google/cloud/spanner/v1/doc/google/protobuf/duration.rb +3 -3
  27. data/lib/google/cloud/spanner/v1/doc/google/protobuf/empty.rb +1 -1
  28. data/lib/google/cloud/spanner/v1/doc/google/protobuf/struct.rb +11 -11
  29. data/lib/google/cloud/spanner/v1/doc/google/protobuf/timestamp.rb +7 -7
  30. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/keys.rb +19 -19
  31. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/mutation.rb +6 -6
  32. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/query_plan.rb +11 -11
  33. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/result_set.rb +33 -19
  34. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb +65 -39
  35. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/transaction.rb +91 -21
  36. data/lib/google/cloud/spanner/v1/doc/google/spanner/v1/type.rb +25 -25
  37. data/lib/google/cloud/spanner/v1/spanner_client.rb +139 -79
  38. data/lib/google/cloud/spanner/version.rb +1 -1
  39. data/lib/google/spanner/admin/database/v1/spanner_database_admin_services_pb.rb +1 -1
  40. data/lib/google/spanner/admin/instance/v1/spanner_instance_admin_services_pb.rb +1 -1
  41. data/lib/google/spanner/v1/result_set_pb.rb +4 -0
  42. data/lib/google/spanner/v1/spanner_pb.rb +1 -0
  43. data/lib/google/spanner/v1/spanner_services_pb.rb +14 -6
  44. data/lib/google/spanner/v1/transaction_pb.rb +4 -0
  45. data/lib/google-cloud-spanner.rb +1 -1
  46. metadata +3 -3
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/spanner/v1/spanner.proto for package 'google.spanner.v1'
3
3
  # Original file comments:
4
- # Copyright 2018 Google Inc.
4
+ # Copyright 2018 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -64,12 +64,12 @@ module Google
64
64
  rpc :ListSessions, ListSessionsRequest, ListSessionsResponse
65
65
  # Ends a session, releasing server resources associated with it.
66
66
  rpc :DeleteSession, DeleteSessionRequest, Google::Protobuf::Empty
67
- # Executes an SQL query, returning all rows in a single reply. This
67
+ # Executes an SQL statement, returning all results in a single reply. This
68
68
  # method cannot be used to return a result set larger than 10 MiB;
69
69
  # if the query yields more data than that, the query fails with
70
70
  # a `FAILED_PRECONDITION` error.
71
71
  #
72
- # Queries inside read-write transactions might return `ABORTED`. If
72
+ # Operations inside read-write transactions might return `ABORTED`. If
73
73
  # this occurs, the application should restart the transaction from
74
74
  # the beginning. See [Transaction][google.spanner.v1.Transaction] for more details.
75
75
  #
@@ -131,17 +131,25 @@ module Google
131
131
  # of the query result to read. The same session and read-only transaction
132
132
  # must be used by the PartitionQueryRequest used to create the
133
133
  # partition tokens and the ExecuteSqlRequests that use the partition tokens.
134
+ #
134
135
  # Partition tokens become invalid when the session used to create them
135
- # is deleted or begins a new transaction.
136
+ # is deleted, is idle for too long, begins a new transaction, or becomes too
137
+ # old. When any of these happen, it is not possible to resume the query, and
138
+ # the whole operation must be restarted from the beginning.
136
139
  rpc :PartitionQuery, PartitionQueryRequest, PartitionResponse
137
140
  # Creates a set of partition tokens that can be used to execute a read
138
141
  # operation in parallel. Each of the returned partition tokens can be used
139
142
  # by [StreamingRead][google.spanner.v1.Spanner.StreamingRead] to specify a subset of the read
140
143
  # result to read. The same session and read-only transaction must be used by
141
144
  # the PartitionReadRequest used to create the partition tokens and the
142
- # ReadRequests that use the partition tokens.
145
+ # ReadRequests that use the partition tokens. There are no ordering
146
+ # guarantees on rows returned among the returned partition tokens, or even
147
+ # within each individual StreamingRead call issued with a partition_token.
148
+ #
143
149
  # Partition tokens become invalid when the session used to create them
144
- # is deleted or begins a new transaction.
150
+ # is deleted, is idle for too long, begins a new transaction, or becomes too
151
+ # old. When any of these happen, it is not possible to resume the read, and
152
+ # the whole operation must be restarted from the beginning.
145
153
  rpc :PartitionRead, PartitionReadRequest, PartitionResponse
146
154
  end
147
155
 
@@ -11,11 +11,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
11
  add_message "google.spanner.v1.TransactionOptions" do
12
12
  oneof :mode do
13
13
  optional :read_write, :message, 1, "google.spanner.v1.TransactionOptions.ReadWrite"
14
+ optional :partitioned_dml, :message, 3, "google.spanner.v1.TransactionOptions.PartitionedDml"
14
15
  optional :read_only, :message, 2, "google.spanner.v1.TransactionOptions.ReadOnly"
15
16
  end
16
17
  end
17
18
  add_message "google.spanner.v1.TransactionOptions.ReadWrite" do
18
19
  end
20
+ add_message "google.spanner.v1.TransactionOptions.PartitionedDml" do
21
+ end
19
22
  add_message "google.spanner.v1.TransactionOptions.ReadOnly" do
20
23
  optional :return_read_timestamp, :bool, 6
21
24
  oneof :timestamp_bound do
@@ -44,6 +47,7 @@ module Google
44
47
  module V1
45
48
  TransactionOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions").msgclass
46
49
  TransactionOptions::ReadWrite = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions.ReadWrite").msgclass
50
+ TransactionOptions::PartitionedDml = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions.PartitionedDml").msgclass
47
51
  TransactionOptions::ReadOnly = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionOptions.ReadOnly").msgclass
48
52
  Transaction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.Transaction").msgclass
49
53
  TransactionSelector = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.TransactionSelector").msgclass
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
  gem "google-cloud-core"
23
- require "google/cloud"
23
+ require "google/cloud" unless defined? Google::Cloud.new
24
24
  require "google/cloud/config"
25
25
  require "googleauth"
26
26
 
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.6.3
4
+ version: 1.6.4
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: 2018-09-12 00:00:00.000000000 Z
12
+ date: 2018-09-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -311,7 +311,7 @@ files:
311
311
  - lib/google/spanner/v1/spanner_services_pb.rb
312
312
  - lib/google/spanner/v1/transaction_pb.rb
313
313
  - lib/google/spanner/v1/type_pb.rb
314
- homepage: https://github.com/GoogleCloudPlatform/google-cloud-ruby/tree/master/google-cloud-spanner
314
+ homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-spanner
315
315
  licenses:
316
316
  - Apache-2.0
317
317
  metadata: {}