google-cloud-spanner-admin-database-v1 0.4.0 → 0.5.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df9fbfd676b07acafcea0197bef469d7aa790a36479ba5f9be940fe7b20e09d0
|
4
|
+
data.tar.gz: d50c61e97ec3af38573fe5d5504830dcf99fb406995063e1ff004d7203f2c1e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 621461af6a7be70955b9690e15da3eec36ac5ae9a4e7a75102b3055f2c6a743f693f244d7c0e0c10e49f9236e0f247ffad7c178d51296eef4708e52810dc179f
|
7
|
+
data.tar.gz: 888ccd64a51d56836f5d953373ea9b1c09915d2a28484a9fe4e767172b9cb343c4f12e78d11aedd56be932827636755c98b307c46e65e2b09baa38ce7e3ddbd6
|
data/README.md
CHANGED
@@ -71,11 +71,11 @@ end
|
|
71
71
|
|
72
72
|
## Supported Ruby Versions
|
73
73
|
|
74
|
-
This library is supported on Ruby 2.
|
74
|
+
This library is supported on Ruby 2.5+.
|
75
75
|
|
76
76
|
Google provides official support for Ruby versions that are actively supported
|
77
77
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life. Currently, this means Ruby 2.
|
78
|
+
in security maintenance, and not end of life. Currently, this means Ruby 2.5
|
79
79
|
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
80
80
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
81
81
|
about the Ruby support schedule.
|
@@ -67,7 +67,7 @@ module Google
|
|
67
67
|
parent_config = while namespace.any?
|
68
68
|
parent_name = namespace.join "::"
|
69
69
|
parent_const = const_get parent_name
|
70
|
-
break parent_const.configure if parent_const
|
70
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
71
71
|
namespace.pop
|
72
72
|
end
|
73
73
|
default_config = Client::Configuration.new parent_config
|
@@ -75,9 +75,9 @@ module Google
|
|
75
75
|
default_config.rpcs.list_databases.timeout = 3600.0
|
76
76
|
default_config.rpcs.list_databases.retry_policy = {
|
77
77
|
initial_delay: 1.0,
|
78
|
-
|
79
|
-
|
80
|
-
|
78
|
+
max_delay: 32.0,
|
79
|
+
multiplier: 1.3,
|
80
|
+
retry_codes: [14, 4]
|
81
81
|
}
|
82
82
|
|
83
83
|
default_config.rpcs.create_database.timeout = 3600.0
|
@@ -85,33 +85,33 @@ module Google
|
|
85
85
|
default_config.rpcs.get_database.timeout = 3600.0
|
86
86
|
default_config.rpcs.get_database.retry_policy = {
|
87
87
|
initial_delay: 1.0,
|
88
|
-
|
89
|
-
|
90
|
-
|
88
|
+
max_delay: 32.0,
|
89
|
+
multiplier: 1.3,
|
90
|
+
retry_codes: [14, 4]
|
91
91
|
}
|
92
92
|
|
93
93
|
default_config.rpcs.update_database_ddl.timeout = 3600.0
|
94
94
|
default_config.rpcs.update_database_ddl.retry_policy = {
|
95
95
|
initial_delay: 1.0,
|
96
|
-
|
97
|
-
|
98
|
-
|
96
|
+
max_delay: 32.0,
|
97
|
+
multiplier: 1.3,
|
98
|
+
retry_codes: [14, 4]
|
99
99
|
}
|
100
100
|
|
101
101
|
default_config.rpcs.drop_database.timeout = 3600.0
|
102
102
|
default_config.rpcs.drop_database.retry_policy = {
|
103
103
|
initial_delay: 1.0,
|
104
|
-
|
105
|
-
|
106
|
-
|
104
|
+
max_delay: 32.0,
|
105
|
+
multiplier: 1.3,
|
106
|
+
retry_codes: [14, 4]
|
107
107
|
}
|
108
108
|
|
109
109
|
default_config.rpcs.get_database_ddl.timeout = 3600.0
|
110
110
|
default_config.rpcs.get_database_ddl.retry_policy = {
|
111
111
|
initial_delay: 1.0,
|
112
|
-
|
113
|
-
|
114
|
-
|
112
|
+
max_delay: 32.0,
|
113
|
+
multiplier: 1.3,
|
114
|
+
retry_codes: [14, 4]
|
115
115
|
}
|
116
116
|
|
117
117
|
default_config.rpcs.set_iam_policy.timeout = 30.0
|
@@ -119,9 +119,9 @@ module Google
|
|
119
119
|
default_config.rpcs.get_iam_policy.timeout = 30.0
|
120
120
|
default_config.rpcs.get_iam_policy.retry_policy = {
|
121
121
|
initial_delay: 1.0,
|
122
|
-
|
123
|
-
|
124
|
-
|
122
|
+
max_delay: 32.0,
|
123
|
+
multiplier: 1.3,
|
124
|
+
retry_codes: [14, 4]
|
125
125
|
}
|
126
126
|
|
127
127
|
default_config.rpcs.test_iam_permissions.timeout = 30.0
|
@@ -131,33 +131,33 @@ module Google
|
|
131
131
|
default_config.rpcs.get_backup.timeout = 3600.0
|
132
132
|
default_config.rpcs.get_backup.retry_policy = {
|
133
133
|
initial_delay: 1.0,
|
134
|
-
|
135
|
-
|
136
|
-
|
134
|
+
max_delay: 32.0,
|
135
|
+
multiplier: 1.3,
|
136
|
+
retry_codes: [14, 4]
|
137
137
|
}
|
138
138
|
|
139
139
|
default_config.rpcs.update_backup.timeout = 3600.0
|
140
140
|
default_config.rpcs.update_backup.retry_policy = {
|
141
141
|
initial_delay: 1.0,
|
142
|
-
|
143
|
-
|
144
|
-
|
142
|
+
max_delay: 32.0,
|
143
|
+
multiplier: 1.3,
|
144
|
+
retry_codes: [14, 4]
|
145
145
|
}
|
146
146
|
|
147
147
|
default_config.rpcs.delete_backup.timeout = 3600.0
|
148
148
|
default_config.rpcs.delete_backup.retry_policy = {
|
149
149
|
initial_delay: 1.0,
|
150
|
-
|
151
|
-
|
152
|
-
|
150
|
+
max_delay: 32.0,
|
151
|
+
multiplier: 1.3,
|
152
|
+
retry_codes: [14, 4]
|
153
153
|
}
|
154
154
|
|
155
155
|
default_config.rpcs.list_backups.timeout = 3600.0
|
156
156
|
default_config.rpcs.list_backups.retry_policy = {
|
157
157
|
initial_delay: 1.0,
|
158
|
-
|
159
|
-
|
160
|
-
|
158
|
+
max_delay: 32.0,
|
159
|
+
multiplier: 1.3,
|
160
|
+
retry_codes: [14, 4]
|
161
161
|
}
|
162
162
|
|
163
163
|
default_config.rpcs.restore_database.timeout = 3600.0
|
@@ -165,17 +165,17 @@ module Google
|
|
165
165
|
default_config.rpcs.list_database_operations.timeout = 3600.0
|
166
166
|
default_config.rpcs.list_database_operations.retry_policy = {
|
167
167
|
initial_delay: 1.0,
|
168
|
-
|
169
|
-
|
170
|
-
|
168
|
+
max_delay: 32.0,
|
169
|
+
multiplier: 1.3,
|
170
|
+
retry_codes: [14, 4]
|
171
171
|
}
|
172
172
|
|
173
173
|
default_config.rpcs.list_backup_operations.timeout = 3600.0
|
174
174
|
default_config.rpcs.list_backup_operations.retry_policy = {
|
175
175
|
initial_delay: 1.0,
|
176
|
-
|
177
|
-
|
178
|
-
|
176
|
+
max_delay: 32.0,
|
177
|
+
multiplier: 1.3,
|
178
|
+
retry_codes: [14, 4]
|
179
179
|
}
|
180
180
|
|
181
181
|
default_config
|
@@ -244,7 +244,7 @@ module Google
|
|
244
244
|
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
245
245
|
@config.endpoint == Client.configure.endpoint &&
|
246
246
|
!@config.endpoint.split(".").first.include?("-")
|
247
|
-
credentials ||= Credentials.default scope:
|
247
|
+
credentials ||= Credentials.default scope: @config.scope,
|
248
248
|
enable_self_signed_jwt: enable_self_signed_jwt
|
249
249
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
250
250
|
credentials = Credentials.new credentials, scope: @config.scope
|
@@ -1858,7 +1858,7 @@ module Google
|
|
1858
1858
|
config_attr :scope, nil, ::String, ::Array, nil
|
1859
1859
|
config_attr :lib_name, nil, ::String, nil
|
1860
1860
|
config_attr :lib_version, nil, ::String, nil
|
1861
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1861
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
1862
1862
|
config_attr :interceptors, nil, ::Array, nil
|
1863
1863
|
config_attr :timeout, nil, ::Numeric, nil
|
1864
1864
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -1879,7 +1879,7 @@ module Google
|
|
1879
1879
|
def rpcs
|
1880
1880
|
@rpcs ||= begin
|
1881
1881
|
parent_rpcs = nil
|
1882
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
1882
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1883
1883
|
Rpcs.new parent_rpcs
|
1884
1884
|
end
|
1885
1885
|
end
|
@@ -1990,39 +1990,39 @@ module Google
|
|
1990
1990
|
|
1991
1991
|
# @private
|
1992
1992
|
def initialize parent_rpcs = nil
|
1993
|
-
list_databases_config = parent_rpcs
|
1993
|
+
list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
|
1994
1994
|
@list_databases = ::Gapic::Config::Method.new list_databases_config
|
1995
|
-
create_database_config = parent_rpcs
|
1995
|
+
create_database_config = parent_rpcs.create_database if parent_rpcs.respond_to? :create_database
|
1996
1996
|
@create_database = ::Gapic::Config::Method.new create_database_config
|
1997
|
-
get_database_config = parent_rpcs
|
1997
|
+
get_database_config = parent_rpcs.get_database if parent_rpcs.respond_to? :get_database
|
1998
1998
|
@get_database = ::Gapic::Config::Method.new get_database_config
|
1999
|
-
update_database_ddl_config = parent_rpcs
|
1999
|
+
update_database_ddl_config = parent_rpcs.update_database_ddl if parent_rpcs.respond_to? :update_database_ddl
|
2000
2000
|
@update_database_ddl = ::Gapic::Config::Method.new update_database_ddl_config
|
2001
|
-
drop_database_config = parent_rpcs
|
2001
|
+
drop_database_config = parent_rpcs.drop_database if parent_rpcs.respond_to? :drop_database
|
2002
2002
|
@drop_database = ::Gapic::Config::Method.new drop_database_config
|
2003
|
-
get_database_ddl_config = parent_rpcs
|
2003
|
+
get_database_ddl_config = parent_rpcs.get_database_ddl if parent_rpcs.respond_to? :get_database_ddl
|
2004
2004
|
@get_database_ddl = ::Gapic::Config::Method.new get_database_ddl_config
|
2005
|
-
set_iam_policy_config = parent_rpcs
|
2005
|
+
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
2006
2006
|
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
2007
|
-
get_iam_policy_config = parent_rpcs
|
2007
|
+
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
2008
2008
|
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
2009
|
-
test_iam_permissions_config = parent_rpcs
|
2009
|
+
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
2010
2010
|
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
2011
|
-
create_backup_config = parent_rpcs
|
2011
|
+
create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
|
2012
2012
|
@create_backup = ::Gapic::Config::Method.new create_backup_config
|
2013
|
-
get_backup_config = parent_rpcs
|
2013
|
+
get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
|
2014
2014
|
@get_backup = ::Gapic::Config::Method.new get_backup_config
|
2015
|
-
update_backup_config = parent_rpcs
|
2015
|
+
update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
|
2016
2016
|
@update_backup = ::Gapic::Config::Method.new update_backup_config
|
2017
|
-
delete_backup_config = parent_rpcs
|
2017
|
+
delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
|
2018
2018
|
@delete_backup = ::Gapic::Config::Method.new delete_backup_config
|
2019
|
-
list_backups_config = parent_rpcs
|
2019
|
+
list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
|
2020
2020
|
@list_backups = ::Gapic::Config::Method.new list_backups_config
|
2021
|
-
restore_database_config = parent_rpcs
|
2021
|
+
restore_database_config = parent_rpcs.restore_database if parent_rpcs.respond_to? :restore_database
|
2022
2022
|
@restore_database = ::Gapic::Config::Method.new restore_database_config
|
2023
|
-
list_database_operations_config = parent_rpcs
|
2023
|
+
list_database_operations_config = parent_rpcs.list_database_operations if parent_rpcs.respond_to? :list_database_operations
|
2024
2024
|
@list_database_operations = ::Gapic::Config::Method.new list_database_operations_config
|
2025
|
-
list_backup_operations_config = parent_rpcs
|
2025
|
+
list_backup_operations_config = parent_rpcs.list_backup_operations if parent_rpcs.respond_to? :list_backup_operations
|
2026
2026
|
@list_backup_operations = ::Gapic::Config::Method.new list_backup_operations_config
|
2027
2027
|
|
2028
2028
|
yield self if block_given?
|
@@ -562,7 +562,7 @@ module Google
|
|
562
562
|
config_attr :scope, nil, ::String, ::Array, nil
|
563
563
|
config_attr :lib_name, nil, ::String, nil
|
564
564
|
config_attr :lib_version, nil, ::String, nil
|
565
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
565
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
566
566
|
config_attr :interceptors, nil, ::Array, nil
|
567
567
|
config_attr :timeout, nil, ::Numeric, nil
|
568
568
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -583,7 +583,7 @@ module Google
|
|
583
583
|
def rpcs
|
584
584
|
@rpcs ||= begin
|
585
585
|
parent_rpcs = nil
|
586
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
586
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
587
587
|
Rpcs.new parent_rpcs
|
588
588
|
end
|
589
589
|
end
|
@@ -634,15 +634,15 @@ module Google
|
|
634
634
|
|
635
635
|
# @private
|
636
636
|
def initialize parent_rpcs = nil
|
637
|
-
list_operations_config = parent_rpcs
|
637
|
+
list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
|
638
638
|
@list_operations = ::Gapic::Config::Method.new list_operations_config
|
639
|
-
get_operation_config = parent_rpcs
|
639
|
+
get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
|
640
640
|
@get_operation = ::Gapic::Config::Method.new get_operation_config
|
641
|
-
delete_operation_config = parent_rpcs
|
641
|
+
delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation
|
642
642
|
@delete_operation = ::Gapic::Config::Method.new delete_operation_config
|
643
|
-
cancel_operation_config = parent_rpcs
|
643
|
+
cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
|
644
644
|
@cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
|
645
|
-
wait_operation_config = parent_rpcs
|
645
|
+
wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation
|
646
646
|
@wait_operation = ::Gapic::Config::Method.new wait_operation_config
|
647
647
|
|
648
648
|
yield self if block_given?
|
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.
|
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-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 1.
|
67
|
+
version: 1.25.1
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 1.
|
74
|
+
version: 1.25.1
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -225,14 +225,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
225
|
requirements:
|
226
226
|
- - ">="
|
227
227
|
- !ruby/object:Gem::Version
|
228
|
-
version: '2.
|
228
|
+
version: '2.5'
|
229
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
230
|
requirements:
|
231
231
|
- - ">="
|
232
232
|
- !ruby/object:Gem::Version
|
233
233
|
version: '0'
|
234
234
|
requirements: []
|
235
|
-
rubygems_version: 3.2.
|
235
|
+
rubygems_version: 3.2.13
|
236
236
|
signing_key:
|
237
237
|
specification_version: 4
|
238
238
|
summary: API Client library for the Cloud Spanner Database Admin V1 API
|