google-cloud-spanner-v1 1.19.0 → 1.19.2

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/spanner/v1/rest.rb +37 -0
  4. data/lib/google/cloud/spanner/v1/spanner/client.rb +1 -1
  5. data/lib/google/cloud/spanner/v1/spanner/credentials.rb +1 -1
  6. data/lib/google/cloud/spanner/v1/spanner/paths.rb +1 -1
  7. data/lib/google/cloud/spanner/v1/spanner/rest/client.rb +2593 -0
  8. data/lib/google/cloud/spanner/v1/spanner/rest/service_stub.rb +1108 -0
  9. data/lib/google/cloud/spanner/v1/spanner/rest.rb +55 -0
  10. data/lib/google/cloud/spanner/v1/spanner.rb +7 -1
  11. data/lib/google/cloud/spanner/v1/version.rb +1 -1
  12. data/lib/google/cloud/spanner/v1.rb +6 -1
  13. data/lib/google/spanner/v1/spanner_services_pb.rb +1 -1
  14. data/lib/google-cloud-spanner-v1.rb +1 -1
  15. data/proto_docs/google/api/client.rb +1 -1
  16. data/proto_docs/google/api/field_behavior.rb +1 -1
  17. data/proto_docs/google/api/launch_stage.rb +1 -1
  18. data/proto_docs/google/api/resource.rb +1 -1
  19. data/proto_docs/google/protobuf/any.rb +1 -1
  20. data/proto_docs/google/protobuf/duration.rb +1 -1
  21. data/proto_docs/google/protobuf/empty.rb +1 -1
  22. data/proto_docs/google/protobuf/struct.rb +1 -1
  23. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  24. data/proto_docs/google/rpc/status.rb +1 -1
  25. data/proto_docs/google/spanner/v1/change_stream.rb +1 -1
  26. data/proto_docs/google/spanner/v1/commit_response.rb +1 -1
  27. data/proto_docs/google/spanner/v1/keys.rb +1 -1
  28. data/proto_docs/google/spanner/v1/location.rb +1 -1
  29. data/proto_docs/google/spanner/v1/mutation.rb +1 -1
  30. data/proto_docs/google/spanner/v1/query_plan.rb +1 -1
  31. data/proto_docs/google/spanner/v1/result_set.rb +1 -1
  32. data/proto_docs/google/spanner/v1/spanner.rb +1 -1
  33. data/proto_docs/google/spanner/v1/transaction.rb +1 -1
  34. data/proto_docs/google/spanner/v1/type.rb +1 -1
  35. metadata +5 -1
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/spanner/v1/version"
24
+
25
+ require "google/cloud/spanner/v1/spanner/credentials"
26
+ require "google/cloud/spanner/v1/spanner/paths"
27
+ require "google/cloud/spanner/v1/spanner/rest/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Spanner
32
+ module V1
33
+ ##
34
+ # Cloud Spanner API
35
+ #
36
+ # The Cloud Spanner API can be used to manage sessions and execute
37
+ # transactions on data stored in Cloud Spanner databases.
38
+ #
39
+ # To load this service and instantiate a REST client:
40
+ #
41
+ # require "google/cloud/spanner/v1/spanner/rest"
42
+ # client = ::Google::Cloud::Spanner::V1::Spanner::Rest::Client.new
43
+ #
44
+ module Spanner
45
+ # Client for the REST transport
46
+ module Rest
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
55
+ require "google/cloud/spanner/v1/spanner/rest/helpers" if ::File.file? helper_path
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@ require "google/cloud/spanner/v1/version"
25
25
  require "google/cloud/spanner/v1/spanner/credentials"
26
26
  require "google/cloud/spanner/v1/spanner/paths"
27
27
  require "google/cloud/spanner/v1/spanner/client"
28
+ require "google/cloud/spanner/v1/spanner/rest"
28
29
 
29
30
  module Google
30
31
  module Cloud
@@ -41,6 +42,11 @@ module Google
41
42
  # require "google/cloud/spanner/v1/spanner"
42
43
  # client = ::Google::Cloud::Spanner::V1::Spanner::Client.new
43
44
  #
45
+ # @example Load this service and instantiate a REST client
46
+ #
47
+ # require "google/cloud/spanner/v1/spanner/rest"
48
+ # client = ::Google::Cloud::Spanner::V1::Spanner::Rest::Client.new
49
+ #
44
50
  module Spanner
45
51
  end
46
52
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Spanner
23
23
  module V1
24
- VERSION = "1.19.0"
24
+ VERSION = "1.19.2"
25
25
  end
26
26
  end
27
27
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -30,6 +30,11 @@ module Google
30
30
  # require "google/cloud/spanner/v1"
31
31
  # client = ::Google::Cloud::Spanner::V1::Spanner::Client.new
32
32
  #
33
+ # @example Load this package, including all its services, and instantiate a REST client
34
+ #
35
+ # require "google/cloud/spanner/v1"
36
+ # client = ::Google::Cloud::Spanner::V1::Spanner::Rest::Client.new
37
+ #
33
38
  module V1
34
39
  end
35
40
  end
@@ -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.Cloud.Spanner.V1'
3
3
  # Original file comments:
4
- # Copyright 2020 Google LLC
4
+ # Copyright 2026 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.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -110,14 +110,15 @@ module Google
110
110
  # ) to obtain a formatter capable of generating timestamps in this format.
111
111
  # @!attribute [rw] seconds
112
112
  # @return [::Integer]
113
- # Represents seconds of UTC time since Unix epoch
114
- # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
115
- # 9999-12-31T23:59:59Z inclusive.
113
+ # Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
114
+ # be between -315576000000 and 315576000000 inclusive (which corresponds to
115
+ # 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
116
116
  # @!attribute [rw] nanos
117
117
  # @return [::Integer]
118
- # Non-negative fractions of a second at nanosecond resolution. Negative
119
- # second values with fractions must still have non-negative nanos values
120
- # that count forward in time. Must be from 0 to 999,999,999
118
+ # Non-negative fractions of a second at nanosecond resolution. This field is
119
+ # the nanosecond portion of the duration, not an alternative to seconds.
120
+ # Negative second values with fractions must still have non-negative nanos
121
+ # values that count forward in time. Must be between 0 and 999,999,999
121
122
  # inclusive.
122
123
  class Timestamp
123
124
  include ::Google::Protobuf::MessageExts
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-spanner-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.0
4
+ version: 1.19.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -52,10 +52,14 @@ files:
52
52
  - README.md
53
53
  - lib/google-cloud-spanner-v1.rb
54
54
  - lib/google/cloud/spanner/v1.rb
55
+ - lib/google/cloud/spanner/v1/rest.rb
55
56
  - lib/google/cloud/spanner/v1/spanner.rb
56
57
  - lib/google/cloud/spanner/v1/spanner/client.rb
57
58
  - lib/google/cloud/spanner/v1/spanner/credentials.rb
58
59
  - lib/google/cloud/spanner/v1/spanner/paths.rb
60
+ - lib/google/cloud/spanner/v1/spanner/rest.rb
61
+ - lib/google/cloud/spanner/v1/spanner/rest/client.rb
62
+ - lib/google/cloud/spanner/v1/spanner/rest/service_stub.rb
59
63
  - lib/google/cloud/spanner/v1/version.rb
60
64
  - lib/google/spanner/v1/change_stream_pb.rb
61
65
  - lib/google/spanner/v1/commit_response_pb.rb