google-cloud-spanner-admin-instance-v1 0.4.0 → 0.5.0
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 +4 -4
- data/AUTHENTICATION.md +5 -5
- data/README.md +1 -1
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/client.rb +7 -25
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/operations.rb +1 -1
- data/lib/google/cloud/spanner/admin/instance/v1/version.rb +1 -1
- data/lib/google/spanner/admin/instance/v1/spanner_instance_admin_pb.rb +1 -0
- data/proto_docs/google/spanner/admin/instance/v1/spanner_instance_admin.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff511c61193142872dfe9e5b9cea6e14e636478d8714abb6f75c27b1c768f9b1
|
4
|
+
data.tar.gz: fc23262ae8898d00f13e691758de74489d9655fd9a02b18dbbc6bf139355af73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3fe19f5df47dfe55fc5e1b767246a310c14700c0e84c19f7dc29fcbc5861135ebec19f5e565e5fa70ccec6ecc2c684cde224abafcde6024449a862b1508fec6
|
7
|
+
data.tar.gz: e7202e2489b4ef98753e993682bad1d81e82a1f630fb4dd9ae07a7ddbee504647a11668d98d3b47bc0d09392d487b76d779ab6e4794c4754b1f0d63f2ca849ba
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-spanner-admin-instance-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
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/admin/instance/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/admin/instance/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Spanner::Admin::Instance::V1::ListInstanceConfigsRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.list_instance_configs request
|
38
38
|
```
|
39
39
|
|
@@ -89,34 +89,22 @@ module Google
|
|
89
89
|
|
90
90
|
default_config.rpcs.list_instance_configs.timeout = 3600.0
|
91
91
|
default_config.rpcs.list_instance_configs.retry_policy = {
|
92
|
-
initial_delay: 1.0,
|
93
|
-
max_delay: 32.0,
|
94
|
-
multiplier: 1.3,
|
95
|
-
retry_codes: [14, 4]
|
92
|
+
initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
|
96
93
|
}
|
97
94
|
|
98
95
|
default_config.rpcs.get_instance_config.timeout = 3600.0
|
99
96
|
default_config.rpcs.get_instance_config.retry_policy = {
|
100
|
-
initial_delay: 1.0,
|
101
|
-
max_delay: 32.0,
|
102
|
-
multiplier: 1.3,
|
103
|
-
retry_codes: [14, 4]
|
97
|
+
initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
|
104
98
|
}
|
105
99
|
|
106
100
|
default_config.rpcs.list_instances.timeout = 3600.0
|
107
101
|
default_config.rpcs.list_instances.retry_policy = {
|
108
|
-
initial_delay: 1.0,
|
109
|
-
max_delay: 32.0,
|
110
|
-
multiplier: 1.3,
|
111
|
-
retry_codes: [14, 4]
|
102
|
+
initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
|
112
103
|
}
|
113
104
|
|
114
105
|
default_config.rpcs.get_instance.timeout = 3600.0
|
115
106
|
default_config.rpcs.get_instance.retry_policy = {
|
116
|
-
initial_delay: 1.0,
|
117
|
-
max_delay: 32.0,
|
118
|
-
multiplier: 1.3,
|
119
|
-
retry_codes: [14, 4]
|
107
|
+
initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
|
120
108
|
}
|
121
109
|
|
122
110
|
default_config.rpcs.create_instance.timeout = 3600.0
|
@@ -125,20 +113,14 @@ module Google
|
|
125
113
|
|
126
114
|
default_config.rpcs.delete_instance.timeout = 3600.0
|
127
115
|
default_config.rpcs.delete_instance.retry_policy = {
|
128
|
-
initial_delay: 1.0,
|
129
|
-
max_delay: 32.0,
|
130
|
-
multiplier: 1.3,
|
131
|
-
retry_codes: [14, 4]
|
116
|
+
initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
|
132
117
|
}
|
133
118
|
|
134
119
|
default_config.rpcs.set_iam_policy.timeout = 30.0
|
135
120
|
|
136
121
|
default_config.rpcs.get_iam_policy.timeout = 30.0
|
137
122
|
default_config.rpcs.get_iam_policy.retry_policy = {
|
138
|
-
initial_delay: 1.0,
|
139
|
-
max_delay: 32.0,
|
140
|
-
multiplier: 1.3,
|
141
|
-
retry_codes: [14, 4]
|
123
|
+
initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
|
142
124
|
}
|
143
125
|
|
144
126
|
default_config.rpcs.test_iam_permissions.timeout = 30.0
|
@@ -211,7 +193,7 @@ module Google
|
|
211
193
|
!@config.endpoint.split(".").first.include?("-")
|
212
194
|
credentials ||= Credentials.default scope: @config.scope,
|
213
195
|
enable_self_signed_jwt: enable_self_signed_jwt
|
214
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
196
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
215
197
|
credentials = Credentials.new credentials, scope: @config.scope
|
216
198
|
end
|
217
199
|
@quota_project_id = @config.quota_project
|
@@ -84,7 +84,7 @@ module Google
|
|
84
84
|
# Create credentials
|
85
85
|
credentials = @config.credentials
|
86
86
|
credentials ||= Credentials.default scope: @config.scope
|
87
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
87
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
88
88
|
credentials = Credentials.new credentials, scope: @config.scope
|
89
89
|
end
|
90
90
|
@quota_project_id = @config.quota_project
|
@@ -30,6 +30,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
30
30
|
optional :name, :string, 1
|
31
31
|
optional :display_name, :string, 2
|
32
32
|
repeated :replicas, :message, 3, "google.spanner.admin.instance.v1.ReplicaInfo"
|
33
|
+
repeated :leader_options, :string, 4
|
33
34
|
end
|
34
35
|
add_message "google.spanner.admin.instance.v1.Instance" do
|
35
36
|
optional :name, :string, 1
|
@@ -88,6 +88,10 @@ module Google
|
|
88
88
|
# @return [::Array<::Google::Cloud::Spanner::Admin::Instance::V1::ReplicaInfo>]
|
89
89
|
# The geographic placement of nodes in this instance configuration and their
|
90
90
|
# replication properties.
|
91
|
+
# @!attribute [rw] leader_options
|
92
|
+
# @return [::Array<::String>]
|
93
|
+
# Allowed values of the “default_leader” schema option for databases in
|
94
|
+
# instances that use this instance configuration.
|
91
95
|
class InstanceConfig
|
92
96
|
include ::Google::Protobuf::MessageExts
|
93
97
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-spanner-admin-instance-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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: 2021-
|
11
|
+
date: 2021-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|