google-cloud-spanner-v1 0.7.0 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41a72594d6f552d0864b62d44ccf5bcb621424dd114e177582e896882c1179c2
4
- data.tar.gz: 8a0cf1af6ee0796f9dd4fb2c367e5afcf9d5a4f2402ac409908c760f63b4857c
3
+ metadata.gz: e33f9dc34d07e9f95b923e3c052bced7af2f7d4f1cd9a8120554e7f82fdbec8a
4
+ data.tar.gz: fb817f4c94c3a8253e001df1c28135a4453ae518da389ba5393652770e375533
5
5
  SHA512:
6
- metadata.gz: 037cd173b4eab18045a247b08c65b70f1a55c56beca607755da1baeaa5c66d5a2166d11d8580b40d4e2cf1393cc21a8a1431d6785aa86c6a1519986e8d5e374c
7
- data.tar.gz: 356fdd38c9c4fc37118fd61e91a81782687083a3fb4aa58bcef0098e746a54970fdd90a8e54a4aed5a69a6577383d5dfefbf5002034f56a24d65606ad689b553
6
+ metadata.gz: 713c437e34196a6a193823f675d22d518da09ab5de81be953c81c2973ee2ba9f2586c0643ae2dbcb54aed63335fbe2e8a31ad49c937f509321cb1522c68764a6
7
+ data.tar.gz: 64716a7e0b2ce0e688f381b47dda7d4cb0213f4733505d08dd09fc3343c95c7c8d7c8a2bfb960df039ea0da55dc2161e00ae192ad2610fb643ecbbff829a596e
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-spanner-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Spanner::V1::Spanner::Credentials}):
68
68
 
69
- 1. `SPANNER_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `SPANNER_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `SPANNER_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `SPANNER_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/spanner/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Spanner::V1::Spanner::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/spanner/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Spanner::V1::Spanner::Client.new do |config|
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/spanner/v1"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/spanner/v1"
34
34
 
35
35
  client = ::Google::Cloud::Spanner::V1::Spanner::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Spanner::V1::CreateSessionRequest.new # (request fields as keyword arguments...)
37
37
  response = client.create_session request
38
38
  ```
39
39
 
@@ -70,110 +70,71 @@ module Google
70
70
 
71
71
  default_config.rpcs.create_session.timeout = 30.0
72
72
  default_config.rpcs.create_session.retry_policy = {
73
- initial_delay: 0.25,
74
- max_delay: 32.0,
75
- multiplier: 1.3,
76
- retry_codes: [14]
73
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
77
74
  }
78
75
 
79
76
  default_config.rpcs.batch_create_sessions.timeout = 60.0
80
77
  default_config.rpcs.batch_create_sessions.retry_policy = {
81
- initial_delay: 0.25,
82
- max_delay: 32.0,
83
- multiplier: 1.3,
84
- retry_codes: [14]
78
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
85
79
  }
86
80
 
87
81
  default_config.rpcs.get_session.timeout = 30.0
88
82
  default_config.rpcs.get_session.retry_policy = {
89
- initial_delay: 0.25,
90
- max_delay: 32.0,
91
- multiplier: 1.3,
92
- retry_codes: [14]
83
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
93
84
  }
94
85
 
95
86
  default_config.rpcs.list_sessions.timeout = 3600.0
96
87
  default_config.rpcs.list_sessions.retry_policy = {
97
- initial_delay: 0.25,
98
- max_delay: 32.0,
99
- multiplier: 1.3,
100
- retry_codes: [14]
88
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
101
89
  }
102
90
 
103
91
  default_config.rpcs.delete_session.timeout = 30.0
104
92
  default_config.rpcs.delete_session.retry_policy = {
105
- initial_delay: 0.25,
106
- max_delay: 32.0,
107
- multiplier: 1.3,
108
- retry_codes: [14]
93
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
109
94
  }
110
95
 
111
96
  default_config.rpcs.execute_sql.timeout = 30.0
112
97
  default_config.rpcs.execute_sql.retry_policy = {
113
- initial_delay: 0.25,
114
- max_delay: 32.0,
115
- multiplier: 1.3,
116
- retry_codes: [14]
98
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
117
99
  }
118
100
 
119
101
  default_config.rpcs.execute_streaming_sql.timeout = 3600.0
120
102
 
121
103
  default_config.rpcs.execute_batch_dml.timeout = 30.0
122
104
  default_config.rpcs.execute_batch_dml.retry_policy = {
123
- initial_delay: 0.25,
124
- max_delay: 32.0,
125
- multiplier: 1.3,
126
- retry_codes: [14]
105
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
127
106
  }
128
107
 
129
108
  default_config.rpcs.read.timeout = 30.0
130
109
  default_config.rpcs.read.retry_policy = {
131
- initial_delay: 0.25,
132
- max_delay: 32.0,
133
- multiplier: 1.3,
134
- retry_codes: [14]
110
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
135
111
  }
136
112
 
137
113
  default_config.rpcs.streaming_read.timeout = 3600.0
138
114
 
139
115
  default_config.rpcs.begin_transaction.timeout = 30.0
140
116
  default_config.rpcs.begin_transaction.retry_policy = {
141
- initial_delay: 0.25,
142
- max_delay: 32.0,
143
- multiplier: 1.3,
144
- retry_codes: [14]
117
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
145
118
  }
146
119
 
147
120
  default_config.rpcs.commit.timeout = 3600.0
148
121
  default_config.rpcs.commit.retry_policy = {
149
- initial_delay: 0.25,
150
- max_delay: 32.0,
151
- multiplier: 1.3,
152
- retry_codes: [14]
122
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
153
123
  }
154
124
 
155
125
  default_config.rpcs.rollback.timeout = 30.0
156
126
  default_config.rpcs.rollback.retry_policy = {
157
- initial_delay: 0.25,
158
- max_delay: 32.0,
159
- multiplier: 1.3,
160
- retry_codes: [14]
127
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
161
128
  }
162
129
 
163
130
  default_config.rpcs.partition_query.timeout = 30.0
164
131
  default_config.rpcs.partition_query.retry_policy = {
165
- initial_delay: 0.25,
166
- max_delay: 32.0,
167
- multiplier: 1.3,
168
- retry_codes: [14]
132
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
169
133
  }
170
134
 
171
135
  default_config.rpcs.partition_read.timeout = 30.0
172
136
  default_config.rpcs.partition_read.retry_policy = {
173
- initial_delay: 0.25,
174
- max_delay: 32.0,
175
- multiplier: 1.3,
176
- retry_codes: [14]
137
+ initial_delay: 0.25, max_delay: 32.0, multiplier: 1.3, retry_codes: [14]
177
138
  }
178
139
 
179
140
  default_config
@@ -244,7 +205,7 @@ module Google
244
205
  !@config.endpoint.split(".").first.include?("-")
245
206
  credentials ||= Credentials.default scope: @config.scope,
246
207
  enable_self_signed_jwt: enable_self_signed_jwt
247
- if credentials.is_a?(String) || credentials.is_a?(Hash)
208
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
248
209
  credentials = Credentials.new credentials, scope: @config.scope
249
210
  end
250
211
  @quota_project_id = @config.quota_project
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Spanner
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.7.1"
25
25
  end
26
26
  end
27
27
  end
@@ -30,7 +30,7 @@ module Google
30
30
  # transactions on data stored in Cloud Spanner databases.
31
31
  class Service
32
32
 
33
- include ::GRPC::GenericService
33
+ include GRPC::GenericService
34
34
 
35
35
  self.marshal_class_method = :encode
36
36
  self.unmarshal_class_method = :decode
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  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.7.0
4
+ version: 0.7.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-06-24 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common