google-cloud-spanner-v1 0.10.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91e76cd39a90f6e719e44cd63c03643eb529b9c25f1a76b4aef3c98d2865cd77
4
- data.tar.gz: 2ed992519fd3f919483035d21e49ff7aa156d6948809f63ffd1ecf760e9d7363
3
+ metadata.gz: 80f73bcf0c62d9e0ac8b3180009f47be2bfdd94e4bb8257c5b1d0069fe8f9b77
4
+ data.tar.gz: c820527330eba17eb8cb8cf57e6bd86316fd02173ef08e636afda74b8e583741
5
5
  SHA512:
6
- metadata.gz: 1354e2699e8c0a8fa4ec909e2c25a35048e2f1a6a958a74c45cadf2553eb68e5c9020285443e1b136c829e4acad70608a2d274c65d1962411e3284f7c0ee7a73
7
- data.tar.gz: 463a1418ff65f61f8eb4d7ed4c3501015627cc60b46d98adef361c170110e1cd784434e43923949d9a66137f30c8f785f4e612fb7276c7b0a0359f6f8b0a8eea
6
+ metadata.gz: 40aadd7fb3c257b75747a38915e60549d4a3ab7088dc7464d6a5be497bc8d38eb6bb8b5f6d2a6c6dd9201478644b25cb30709caa71507efa3cb382879f989a29
7
+ data.tar.gz: b4089e4023583b4d4cf99551b75056a1eb5c732c87e71506902a1355a4c4366c766aaa81c32500867075e1b128ffb02b701535ed825ad2017f3b9225688273fe
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Spanner
23
23
  module V1
24
- VERSION = "0.10.0"
24
+ VERSION = "0.12.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
25
25
  add_message "google.spanner.v1.ResultSetMetadata" do
26
26
  optional :row_type, :message, 1, "google.spanner.v1.StructType"
27
27
  optional :transaction, :message, 2, "google.spanner.v1.Transaction"
28
+ optional :undeclared_parameters, :message, 3, "google.spanner.v1.StructType"
28
29
  end
29
30
  add_message "google.spanner.v1.ResultSetStats" do
30
31
  optional :query_plan, :message, 1, "google.spanner.v1.QueryPlan"
@@ -37,6 +37,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
37
37
  add_enum "google.spanner.v1.TypeAnnotationCode" do
38
38
  value :TYPE_ANNOTATION_CODE_UNSPECIFIED, 0
39
39
  value :PG_NUMERIC, 2
40
+ value :PG_JSONB, 3
40
41
  end
41
42
  end
42
43
  end
@@ -26,8 +26,6 @@ module Google
26
26
  # service Foo {
27
27
  # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
28
  # }
29
- #
30
- # The JSON representation for `Empty` is empty JSON object `{}`.
31
29
  class Empty
32
30
  include ::Google::Protobuf::MessageExts
33
31
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -171,6 +171,18 @@ module Google
171
171
  # @return [::Google::Cloud::Spanner::V1::Transaction]
172
172
  # If the read or SQL query began a transaction as a side-effect, the
173
173
  # information about the new transaction is yielded here.
174
+ # @!attribute [rw] undeclared_parameters
175
+ # @return [::Google::Cloud::Spanner::V1::StructType]
176
+ # A SQL query can be parameterized. In PLAN mode, these parameters can be
177
+ # undeclared. This indicates the field names and types for those undeclared
178
+ # parameters in the SQL query. For example, a SQL query like `"SELECT * FROM
179
+ # Users where UserId = @userId and UserName = @userName "` could return a
180
+ # `undeclared_parameters` value like:
181
+ #
182
+ # "fields": [
183
+ # { "name": "UserId", "type": { "code": "INT64" } },
184
+ # { "name": "UserName", "type": { "code": "STRING" } },
185
+ # ]
174
186
  class ResultSetMetadata
175
187
  include ::Google::Protobuf::MessageExts
176
188
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -167,6 +167,14 @@ module Google
167
167
  # {::Google::Cloud::Spanner::V1::TypeCode::NUMERIC NUMERIC} when a client interacts with PostgreSQL-enabled
168
168
  # Spanner databases.
169
169
  PG_NUMERIC = 2
170
+
171
+ # PostgreSQL compatible JSONB type. This annotation needs to be applied to
172
+ # {::Google::Cloud::Spanner::V1::Type Type} instances having {::Google::Cloud::Spanner::V1::TypeCode::JSON JSON}
173
+ # type code to specify that values of this type should be treated as
174
+ # PostgreSQL JSONB values. Currently this annotation is always needed for
175
+ # {::Google::Cloud::Spanner::V1::TypeCode::JSON JSON} when a client interacts with PostgreSQL-enabled
176
+ # Spanner databases.
177
+ PG_JSONB = 3
170
178
  end
171
179
  end
172
180
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-spanner-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-08 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: '0.12'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.10'
29
+ version: '0.12'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a