google-cloud-spanner-v1 0.6.0 → 0.6.1
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.
- checksums.yaml +4 -4
- data/lib/google/cloud/spanner/v1/version.rb +1 -1
- data/lib/google/spanner/v1/commit_response_pb.rb +30 -0
- data/lib/google/spanner/v1/spanner_pb.rb +1 -10
- data/lib/google/spanner/v1/spanner_services_pb.rb +1 -1
- data/proto_docs/google/spanner/v1/commit_response.rb +55 -0
- data/proto_docs/google/spanner/v1/spanner.rb +6 -33
- metadata +15 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0238239e1ab093ba9eb499e64c801b328fa1fce8dbd7c467b324d77df359f60
|
4
|
+
data.tar.gz: c67946611923b0eaee69835179856c78b574d54cbf7cfb23e5901878171c6dcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cc5ff1ec0b828beef89a001a96b543666e8d69e301bf35ce22ef1cba7b0d547e79d460775f2e611ba8693fb8c6528d946cd9f1d69d30ebdfafa6ef0d2f45083
|
7
|
+
data.tar.gz: ae9a80cb0cea300e630ddbeeea4dde84f1a3d8d414b33b1ca4b3411f295eb44247883eb470ce4b11c0778da48826b2a70e851d5b2f0149872bc7dfb43f6b2169
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/spanner/v1/commit_response.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/protobuf/duration_pb'
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/spanner/v1/commit_response.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.spanner.v1.CommitResponse" do
|
12
|
+
optional :commit_timestamp, :message, 1, "google.protobuf.Timestamp"
|
13
|
+
optional :commit_stats, :message, 2, "google.spanner.v1.CommitResponse.CommitStats"
|
14
|
+
end
|
15
|
+
add_message "google.spanner.v1.CommitResponse.CommitStats" do
|
16
|
+
optional :mutation_count, :int64, 1
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Spanner
|
24
|
+
module V1
|
25
|
+
CommitResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.CommitResponse").msgclass
|
26
|
+
CommitResponse::CommitStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.CommitResponse.CommitStats").msgclass
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -3,11 +3,11 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
+
require 'google/spanner/v1/commit_response_pb'
|
6
7
|
require 'google/api/annotations_pb'
|
7
8
|
require 'google/api/client_pb'
|
8
9
|
require 'google/api/field_behavior_pb'
|
9
10
|
require 'google/api/resource_pb'
|
10
|
-
require 'google/protobuf/duration_pb'
|
11
11
|
require 'google/protobuf/empty_pb'
|
12
12
|
require 'google/protobuf/struct_pb'
|
13
13
|
require 'google/protobuf/timestamp_pb'
|
@@ -157,13 +157,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
157
157
|
optional :single_use_transaction, :message, 3, "google.spanner.v1.TransactionOptions"
|
158
158
|
end
|
159
159
|
end
|
160
|
-
add_message "google.spanner.v1.CommitResponse" do
|
161
|
-
optional :commit_timestamp, :message, 1, "google.protobuf.Timestamp"
|
162
|
-
optional :commit_stats, :message, 2, "google.spanner.v1.CommitResponse.CommitStats"
|
163
|
-
end
|
164
|
-
add_message "google.spanner.v1.CommitResponse.CommitStats" do
|
165
|
-
optional :mutation_count, :int64, 1
|
166
|
-
end
|
167
160
|
add_message "google.spanner.v1.RollbackRequest" do
|
168
161
|
optional :session, :string, 1
|
169
162
|
optional :transaction_id, :bytes, 2
|
@@ -199,8 +192,6 @@ module Google
|
|
199
192
|
ReadRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.ReadRequest").msgclass
|
200
193
|
BeginTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.BeginTransactionRequest").msgclass
|
201
194
|
CommitRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.CommitRequest").msgclass
|
202
|
-
CommitResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.CommitResponse").msgclass
|
203
|
-
CommitResponse::CommitStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.CommitResponse.CommitStats").msgclass
|
204
195
|
RollbackRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.spanner.v1.RollbackRequest").msgclass
|
205
196
|
end
|
206
197
|
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Spanner
|
23
|
+
module V1
|
24
|
+
# The response for {::Google::Cloud::Spanner::V1::Spanner::Client#commit Commit}.
|
25
|
+
# @!attribute [rw] commit_timestamp
|
26
|
+
# @return [::Google::Protobuf::Timestamp]
|
27
|
+
# The Cloud Spanner timestamp at which the transaction committed.
|
28
|
+
# @!attribute [rw] commit_stats
|
29
|
+
# @return [::Google::Cloud::Spanner::V1::CommitResponse::CommitStats]
|
30
|
+
# The statistics about this Commit. Not returned by default.
|
31
|
+
# For more information, see
|
32
|
+
# {::Google::Cloud::Spanner::V1::CommitRequest#return_commit_stats CommitRequest.return_commit_stats}.
|
33
|
+
class CommitResponse
|
34
|
+
include ::Google::Protobuf::MessageExts
|
35
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
36
|
+
|
37
|
+
# Additional statistics about a commit.
|
38
|
+
# @!attribute [rw] mutation_count
|
39
|
+
# @return [::Integer]
|
40
|
+
# The total number of mutations for the transaction. Knowing the
|
41
|
+
# `mutation_count` value can help you maximize the number of mutations
|
42
|
+
# in a transaction and minimize the number of API round trips. You can
|
43
|
+
# also monitor this value to prevent transactions from exceeding the system
|
44
|
+
# [limit](http://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data).
|
45
|
+
# If the number of mutations exceeds the limit, the server returns
|
46
|
+
# [INVALID_ARGUMENT](http://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT).
|
47
|
+
class CommitStats
|
48
|
+
include ::Google::Protobuf::MessageExts
|
49
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -171,8 +171,9 @@ module Google
|
|
171
171
|
# that belongs to a transaction.
|
172
172
|
# This field is ignored for requests where it's not applicable (e.g.
|
173
173
|
# CommitRequest).
|
174
|
-
# `request_tag`
|
175
|
-
#
|
174
|
+
# Legal characters for `request_tag` values are all printable characters
|
175
|
+
# (ASCII 32 - 126) and the length of a request_tag is limited to 50
|
176
|
+
# characters. Values that exceed this limit are truncated.
|
176
177
|
# @!attribute [rw] transaction_tag
|
177
178
|
# @return [::String]
|
178
179
|
# A tag used for statistics collection about this transaction.
|
@@ -182,8 +183,9 @@ module Google
|
|
182
183
|
# to the same transaction.
|
183
184
|
# If this request doesn’t belong to any transaction, transaction_tag will be
|
184
185
|
# ignored.
|
185
|
-
# `transaction_tag`
|
186
|
-
#
|
186
|
+
# Legal characters for `transaction_tag` values are all printable characters
|
187
|
+
# (ASCII 32 - 126) and the length of a transaction_tag is limited to 50
|
188
|
+
# characters. Values that exceed this limit are truncated.
|
187
189
|
class RequestOptions
|
188
190
|
include ::Google::Protobuf::MessageExts
|
189
191
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -771,35 +773,6 @@ module Google
|
|
771
773
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
772
774
|
end
|
773
775
|
|
774
|
-
# The response for {::Google::Cloud::Spanner::V1::Spanner::Client#commit Commit}.
|
775
|
-
# @!attribute [rw] commit_timestamp
|
776
|
-
# @return [::Google::Protobuf::Timestamp]
|
777
|
-
# The Cloud Spanner timestamp at which the transaction committed.
|
778
|
-
# @!attribute [rw] commit_stats
|
779
|
-
# @return [::Google::Cloud::Spanner::V1::CommitResponse::CommitStats]
|
780
|
-
# The statistics about this Commit. Not returned by default.
|
781
|
-
# For more information, see
|
782
|
-
# {::Google::Cloud::Spanner::V1::CommitRequest#return_commit_stats CommitRequest.return_commit_stats}.
|
783
|
-
class CommitResponse
|
784
|
-
include ::Google::Protobuf::MessageExts
|
785
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
786
|
-
|
787
|
-
# Additional statistics about a commit.
|
788
|
-
# @!attribute [rw] mutation_count
|
789
|
-
# @return [::Integer]
|
790
|
-
# The total number of mutations for the transaction. Knowing the
|
791
|
-
# `mutation_count` value can help you maximize the number of mutations
|
792
|
-
# in a transaction and minimize the number of API round trips. You can
|
793
|
-
# also monitor this value to prevent transactions from exceeding the system
|
794
|
-
# [limit](http://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data).
|
795
|
-
# If the number of mutations exceeds the limit, the server returns
|
796
|
-
# [INVALID_ARGUMENT](http://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT).
|
797
|
-
class CommitStats
|
798
|
-
include ::Google::Protobuf::MessageExts
|
799
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
800
|
-
end
|
801
|
-
end
|
802
|
-
|
803
776
|
# The request for {::Google::Cloud::Spanner::V1::Spanner::Client#rollback Rollback}.
|
804
777
|
# @!attribute [rw] session
|
805
778
|
# @return [::String]
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-spanner-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,6 +176,7 @@ files:
|
|
170
176
|
- lib/google/cloud/spanner/v1/spanner/credentials.rb
|
171
177
|
- lib/google/cloud/spanner/v1/spanner/paths.rb
|
172
178
|
- lib/google/cloud/spanner/v1/version.rb
|
179
|
+
- lib/google/spanner/v1/commit_response_pb.rb
|
173
180
|
- lib/google/spanner/v1/keys_pb.rb
|
174
181
|
- lib/google/spanner/v1/mutation_pb.rb
|
175
182
|
- lib/google/spanner/v1/query_plan_pb.rb
|
@@ -187,6 +194,7 @@ files:
|
|
187
194
|
- proto_docs/google/protobuf/struct.rb
|
188
195
|
- proto_docs/google/protobuf/timestamp.rb
|
189
196
|
- proto_docs/google/rpc/status.rb
|
197
|
+
- proto_docs/google/spanner/v1/commit_response.rb
|
190
198
|
- proto_docs/google/spanner/v1/keys.rb
|
191
199
|
- proto_docs/google/spanner/v1/mutation.rb
|
192
200
|
- proto_docs/google/spanner/v1/query_plan.rb
|
@@ -213,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
221
|
- !ruby/object:Gem::Version
|
214
222
|
version: '0'
|
215
223
|
requirements: []
|
216
|
-
rubygems_version: 3.2.
|
224
|
+
rubygems_version: 3.2.17
|
217
225
|
signing_key:
|
218
226
|
specification_version: 4
|
219
227
|
summary: API Client library for the Cloud Spanner V1 API
|