google-cloud-spanner-admin-database-v1 0.6.1 → 0.7.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: 1d585ec1bbd13fc813c6029492a79421954134c1a9c9accfcebe4d01b0b3da6f
4
- data.tar.gz: a772c4977833e04397445ddfe51c95babc5eb00bb43dc858478ca22096e6049d
3
+ metadata.gz: '0738039c436177ef6f5027fc55097b623b9648dc0fa82dfb7fd25ea86590d178'
4
+ data.tar.gz: a6f0117e6c8ecec00fcc366889a735e4b0d48c197b3d0a0a467b4a40294b454c
5
5
  SHA512:
6
- metadata.gz: 14ced10bc624d98daff668c62b774d458631a82b1a4bdbb3cc99b4ff2a90963631b259e2d361a7a579378d034e753359ba3b768fd30b4abe9b887d07706a0857
7
- data.tar.gz: 6e6f227bccf2efde4551196c9252bd6eb1e5ca1f924206454c5126d4c6a5b6368e8df5639cc8e0a407056b06ed885140e516bba224478f4ec5cc5d82f98b4077
6
+ metadata.gz: 19427feac4c0a0bbd69cfc420b5701ce455da3bbb9873a2ed3d2baf1caf4d1a42060134c7c0be27be4ca6be5ec3dc00419f086a78006639580ea7f6d22236078
7
+ data.tar.gz: 63ad789c583f2710f033d41e3e8de3975805d84a5a793cf177f4c435da1eb4da40deadc81315da09abb4dc4d7fe08dc3390405f03b73dfe7bd9840452ef4c142
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ 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_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/admin/database/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/database/v1"
34
34
 
35
35
  client = ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesRequest.new # (request fields as keyword arguments...)
37
37
  response = client.list_databases request
38
38
  ```
39
39
 
@@ -74,54 +74,36 @@ module Google
74
74
 
75
75
  default_config.rpcs.list_databases.timeout = 3600.0
76
76
  default_config.rpcs.list_databases.retry_policy = {
77
- initial_delay: 1.0,
78
- max_delay: 32.0,
79
- multiplier: 1.3,
80
- retry_codes: [14, 4]
77
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
81
78
  }
82
79
 
83
80
  default_config.rpcs.create_database.timeout = 3600.0
84
81
 
85
82
  default_config.rpcs.get_database.timeout = 3600.0
86
83
  default_config.rpcs.get_database.retry_policy = {
87
- initial_delay: 1.0,
88
- max_delay: 32.0,
89
- multiplier: 1.3,
90
- retry_codes: [14, 4]
84
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
91
85
  }
92
86
 
93
87
  default_config.rpcs.update_database_ddl.timeout = 3600.0
94
88
  default_config.rpcs.update_database_ddl.retry_policy = {
95
- initial_delay: 1.0,
96
- max_delay: 32.0,
97
- multiplier: 1.3,
98
- retry_codes: [14, 4]
89
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
99
90
  }
100
91
 
101
92
  default_config.rpcs.drop_database.timeout = 3600.0
102
93
  default_config.rpcs.drop_database.retry_policy = {
103
- initial_delay: 1.0,
104
- max_delay: 32.0,
105
- multiplier: 1.3,
106
- retry_codes: [14, 4]
94
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
107
95
  }
108
96
 
109
97
  default_config.rpcs.get_database_ddl.timeout = 3600.0
110
98
  default_config.rpcs.get_database_ddl.retry_policy = {
111
- initial_delay: 1.0,
112
- max_delay: 32.0,
113
- multiplier: 1.3,
114
- retry_codes: [14, 4]
99
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
115
100
  }
116
101
 
117
102
  default_config.rpcs.set_iam_policy.timeout = 30.0
118
103
 
119
104
  default_config.rpcs.get_iam_policy.timeout = 30.0
120
105
  default_config.rpcs.get_iam_policy.retry_policy = {
121
- initial_delay: 1.0,
122
- max_delay: 32.0,
123
- multiplier: 1.3,
124
- retry_codes: [14, 4]
106
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
125
107
  }
126
108
 
127
109
  default_config.rpcs.test_iam_permissions.timeout = 30.0
@@ -130,52 +112,34 @@ module Google
130
112
 
131
113
  default_config.rpcs.get_backup.timeout = 3600.0
132
114
  default_config.rpcs.get_backup.retry_policy = {
133
- initial_delay: 1.0,
134
- max_delay: 32.0,
135
- multiplier: 1.3,
136
- retry_codes: [14, 4]
115
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
137
116
  }
138
117
 
139
118
  default_config.rpcs.update_backup.timeout = 3600.0
140
119
  default_config.rpcs.update_backup.retry_policy = {
141
- initial_delay: 1.0,
142
- max_delay: 32.0,
143
- multiplier: 1.3,
144
- retry_codes: [14, 4]
120
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
145
121
  }
146
122
 
147
123
  default_config.rpcs.delete_backup.timeout = 3600.0
148
124
  default_config.rpcs.delete_backup.retry_policy = {
149
- initial_delay: 1.0,
150
- max_delay: 32.0,
151
- multiplier: 1.3,
152
- retry_codes: [14, 4]
125
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
153
126
  }
154
127
 
155
128
  default_config.rpcs.list_backups.timeout = 3600.0
156
129
  default_config.rpcs.list_backups.retry_policy = {
157
- initial_delay: 1.0,
158
- max_delay: 32.0,
159
- multiplier: 1.3,
160
- retry_codes: [14, 4]
130
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
161
131
  }
162
132
 
163
133
  default_config.rpcs.restore_database.timeout = 3600.0
164
134
 
165
135
  default_config.rpcs.list_database_operations.timeout = 3600.0
166
136
  default_config.rpcs.list_database_operations.retry_policy = {
167
- initial_delay: 1.0,
168
- max_delay: 32.0,
169
- multiplier: 1.3,
170
- retry_codes: [14, 4]
137
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
171
138
  }
172
139
 
173
140
  default_config.rpcs.list_backup_operations.timeout = 3600.0
174
141
  default_config.rpcs.list_backup_operations.retry_policy = {
175
- initial_delay: 1.0,
176
- max_delay: 32.0,
177
- multiplier: 1.3,
178
- retry_codes: [14, 4]
142
+ initial_delay: 1.0, max_delay: 32.0, multiplier: 1.3, retry_codes: [14, 4]
179
143
  }
180
144
 
181
145
  default_config
@@ -246,7 +210,7 @@ module Google
246
210
  !@config.endpoint.split(".").first.include?("-")
247
211
  credentials ||= Credentials.default scope: @config.scope,
248
212
  enable_self_signed_jwt: enable_self_signed_jwt
249
- if credentials.is_a?(String) || credentials.is_a?(Hash)
213
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
250
214
  credentials = Credentials.new credentials, scope: @config.scope
251
215
  end
252
216
  @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
@@ -23,7 +23,7 @@ module Google
23
23
  module Admin
24
24
  module Database
25
25
  module V1
26
- VERSION = "0.6.1"
26
+ VERSION = "0.7.0"
27
27
  end
28
28
  end
29
29
  end
@@ -31,6 +31,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
31
  repeated :encryption_info, :message, 8, "google.spanner.admin.database.v1.EncryptionInfo"
32
32
  optional :version_retention_period, :string, 6
33
33
  optional :earliest_version_time, :message, 7, "google.protobuf.Timestamp"
34
+ optional :default_leader, :string, 9
34
35
  end
35
36
  add_enum "google.spanner.admin.database.v1.Database.State" do
36
37
  value :STATE_UNSPECIFIED, 0
@@ -85,6 +85,14 @@ module Google
85
85
  # the moment it is queried. If you are using this value to recover data, make
86
86
  # sure to account for the time from the moment when the value is queried to
87
87
  # the moment when you initiate the recovery.
88
+ # @!attribute [r] default_leader
89
+ # @return [::String]
90
+ # Output only. The read-write region which contains the database's leader
91
+ # replicas.
92
+ #
93
+ # This is the same as the value of default_leader
94
+ # database option set using DatabaseAdmin.CreateDatabase or
95
+ # DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty.
88
96
  class Database
89
97
  include ::Google::Protobuf::MessageExts
90
98
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.6.1
4
+ version: 0.7.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-06-17 00:00:00.000000000 Z
11
+ date: 2021-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common