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: a906c9e0249cb12fd35f80ab73c41499429ac686e3b418adbe6472c1992b7a16
4
- data.tar.gz: 9b2ec3c81f0af21a1d4b2807c77aba62b3dcdeeb1e5e8e49116abf0f593ca31b
3
+ metadata.gz: a8890daf2f161da5fef0c5cc5893b4504a241ce8d508ca004e31e3e469bb2248
4
+ data.tar.gz: e8bd937bdc1d0b8f00a04575de853bb989ed7bee914c282081877a398eed36e8
5
5
  SHA512:
6
- metadata.gz: c9c57065ec0f804d5ddae7ffe98301b86450b9f6592ef353880485191066b3e18cec6a57475c932e4bca985ae85b1148937e09f5808fd317f4079934205d0b1a
7
- data.tar.gz: f4703b338abce065eee039ec97ef3984bee3f9da529bdce154660947e3f038daf09b2c5e03596ec2c780edae6f954aaac096822d913e3385eda0e977be8d629c
6
+ metadata.gz: bd0febbc594b56f8a723eff567902cd09e8dd556969e922a6787da55f28e4b6095c44f27f4664d8b7ce679e1259a5a2d08c8f344f39f77e0562eeece68be84ec
7
+ data.tar.gz: eb3c291f1839a6d049e1c48e8c9ceeda5a0336bbf01473eb7502925a3e7b9f3c0fae1f47b652c5d9a1eacdfa7f5a70285198577eb6797352b89276c4d3e04d75
@@ -19,7 +19,7 @@ during development.
19
19
  2. Set the [environment variable](#environment-variables).
20
20
 
21
21
  ```sh
22
- export SPANNER_DATABASE_ADMIN_CREDENTIALS=path/to/keyfile.json
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. `SPANNER_DATABASE_ADMIN_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `SPANNER_DATABASE_ADMIN_KEYFILE` - Path to JSON file, or JSON contents
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["SPANNER_DATABASE_ADMIN_CREDENTIALS"] = "path/to/keyfile.json"
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
- "SPANNER_DATABASE_ADMIN_CREDENTIALS",
36
- "SPANNER_DATABASE_ADMIN_KEYFILE",
35
+ "SPANNER_CREDENTIALS",
36
+ "SPANNER_KEYFILE",
37
37
  "GOOGLE_CLOUD_CREDENTIALS",
38
38
  "GOOGLE_CLOUD_KEYFILE",
39
39
  "GCLOUD_KEYFILE",
40
- "SPANNER_DATABASE_ADMIN_CREDENTIALS_JSON",
41
- "SPANNER_DATABASE_ADMIN_KEYFILE_JSON",
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"
@@ -23,7 +23,7 @@ module Google
23
23
  module Admin
24
24
  module Database
25
25
  module V1
26
- VERSION = "0.1.0"
26
+ VERSION = "0.1.1"
27
27
  end
28
28
  end
29
29
  end
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.0
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-06 00:00:00.000000000 Z
11
+ date: 2020-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common