google-cloud-spanner-admin-database-v1 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8890daf2f161da5fef0c5cc5893b4504a241ce8d508ca004e31e3e469bb2248
|
4
|
+
data.tar.gz: e8bd937bdc1d0b8f00a04575de853bb989ed7bee914c282081877a398eed36e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd0febbc594b56f8a723eff567902cd09e8dd556969e922a6787da55f28e4b6095c44f27f4664d8b7ce679e1259a5a2d08c8f344f39f77e0562eeece68be84ec
|
7
|
+
data.tar.gz: eb3c291f1839a6d049e1c48e8c9ceeda5a0336bbf01473eb7502925a3e7b9f3c0fae1f47b652c5d9a1eacdfa7f5a70285198577eb6797352b89276c4d3e04d75
|
data/AUTHENTICATION.md
CHANGED
@@ -19,7 +19,7 @@ during development.
|
|
19
19
|
2. Set the [environment variable](#environment-variables).
|
20
20
|
|
21
21
|
```sh
|
22
|
-
export
|
22
|
+
export SPANNER_CREDENTIALS=path/to/keyfile.json
|
23
23
|
```
|
24
24
|
|
25
25
|
3. Initialize the client.
|
@@ -66,8 +66,8 @@ The environment variables that google-cloud-spanner-admin-database-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Credentials}):
|
68
68
|
|
69
|
-
1. `
|
70
|
-
2. `
|
69
|
+
1. `SPANNER_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
2. `SPANNER_KEYFILE` - Path to JSON file, or JSON contents
|
71
71
|
3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
72
|
4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
73
|
5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
@@ -75,7 +75,7 @@ checks for credentials are configured on the service Credentials class (such as
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/spanner/admin/database/v1"
|
77
77
|
|
78
|
-
ENV["
|
78
|
+
ENV["SPANNER_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
80
|
client = ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.new
|
81
81
|
```
|
@@ -137,6 +137,12 @@ module Google
|
|
137
137
|
}
|
138
138
|
|
139
139
|
default_config.rpcs.update_backup.timeout = 3600.0
|
140
|
+
default_config.rpcs.update_backup.retry_policy = {
|
141
|
+
initial_delay: 1.0,
|
142
|
+
max_delay: 32.0,
|
143
|
+
multiplier: 1.3,
|
144
|
+
retry_codes: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
|
145
|
+
}
|
140
146
|
|
141
147
|
default_config.rpcs.delete_backup.timeout = 3600.0
|
142
148
|
default_config.rpcs.delete_backup.retry_policy = {
|
@@ -32,13 +32,13 @@ module Google
|
|
32
32
|
"https://www.googleapis.com/auth/spanner.admin"
|
33
33
|
]
|
34
34
|
self.env_vars = [
|
35
|
-
"
|
36
|
-
"
|
35
|
+
"SPANNER_CREDENTIALS",
|
36
|
+
"SPANNER_KEYFILE",
|
37
37
|
"GOOGLE_CLOUD_CREDENTIALS",
|
38
38
|
"GOOGLE_CLOUD_KEYFILE",
|
39
39
|
"GCLOUD_KEYFILE",
|
40
|
-
"
|
41
|
-
"
|
40
|
+
"SPANNER_CREDENTIALS_JSON",
|
41
|
+
"SPANNER_KEYFILE_JSON",
|
42
42
|
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
43
43
|
"GOOGLE_CLOUD_KEYFILE_JSON",
|
44
44
|
"GCLOUD_KEYFILE_JSON"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-spanner-admin-database-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.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: 2020-07-
|
11
|
+
date: 2020-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|