google-cloud-spanner-admin-database-v1 0.5.0 → 0.7.1
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 +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/client.rb +58 -112
- data/lib/google/cloud/spanner/admin/database/v1/database_admin/operations.rb +4 -4
- data/lib/google/cloud/spanner/admin/database/v1/version.rb +1 -1
- data/lib/google/spanner/admin/database/v1/backup_pb.rb +1 -0
- data/lib/google/spanner/admin/database/v1/common_pb.rb +1 -0
- data/lib/google/spanner/admin/database/v1/spanner_database_admin_pb.rb +2 -0
- data/lib/google/spanner/admin/database/v1/spanner_database_admin_services_pb.rb +12 -16
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/spanner/admin/database/v1/backup.rb +45 -66
- data/proto_docs/google/spanner/admin/database/v1/common.rb +5 -5
- data/proto_docs/google/spanner/admin/database/v1/spanner_database_admin.rb +61 -59
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17e28393f9f5491b7a57603ce730e4d9bdb2cc65dbcdc4371a92d4923185f0f7
|
4
|
+
data.tar.gz: 0b64716e82450dc175de2aefdf8de7c830aee35868308ff9e5a872c04436d0d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b98b1a94e0b63d0dcc2adbd84b76e0ba34160de40206b9ac5f512c929cef0f12e0d78a38f61dad01a80c584987d4eaa272252310c953b2a5e599ed020dafc7b4
|
7
|
+
data.tar.gz: f51a80bc43e106a18b939993fd5f48ffbddea4fbe460c23645f708278013e30add992bb5015a3d6d4ae33f4fa1fe6c3311f2e8d58f590b3bd5a4f945be209db7
|
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
|
-
|
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/database/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.ne
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/spanner/admin/database/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client.ne
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
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 =
|
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
|
@@ -301,9 +265,8 @@ module Google
|
|
301
265
|
# defaults to the server's maximum allowed page size.
|
302
266
|
# @param page_token [::String]
|
303
267
|
# If non-empty, `page_token` should contain a
|
304
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesResponse#next_page_token next_page_token}
|
305
|
-
#
|
306
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesResponse ListDatabasesResponse}.
|
268
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesResponse#next_page_token next_page_token} from a
|
269
|
+
# previous {::Google::Cloud::Spanner::Admin::Database::V1::ListDatabasesResponse ListDatabasesResponse}.
|
307
270
|
#
|
308
271
|
# @yield [response, operation] Access the result along with the RPC operation
|
309
272
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Spanner::Admin::Database::V1::Database>]
|
@@ -357,8 +320,8 @@ module Google
|
|
357
320
|
# have a name of the format `<database_name>/operations/<operation_id>` and
|
358
321
|
# can be used to track preparation of the database. The
|
359
322
|
# {::Google::Longrunning::Operation#metadata metadata} field type is
|
360
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::CreateDatabaseMetadata CreateDatabaseMetadata}.
|
361
|
-
#
|
323
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::CreateDatabaseMetadata CreateDatabaseMetadata}. The
|
324
|
+
# {::Google::Longrunning::Operation#response response} field type is
|
362
325
|
# {::Google::Cloud::Spanner::Admin::Database::V1::Database Database}, if successful.
|
363
326
|
#
|
364
327
|
# @overload create_database(request, options = nil)
|
@@ -391,8 +354,8 @@ module Google
|
|
391
354
|
# statements execute atomically with the creation of the database:
|
392
355
|
# if there is an error in any statement, the database is not created.
|
393
356
|
# @param encryption_config [::Google::Cloud::Spanner::Admin::Database::V1::EncryptionConfig, ::Hash]
|
394
|
-
# Optional. The encryption configuration for the database. If this field is
|
395
|
-
#
|
357
|
+
# Optional. The encryption configuration for the database. If this field is not
|
358
|
+
# specified, Cloud Spanner will encrypt/decrypt all data at rest using
|
396
359
|
# Google default encryption.
|
397
360
|
#
|
398
361
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -515,8 +478,7 @@ module Google
|
|
515
478
|
# the format `<database_name>/operations/<operation_id>` and can be used to
|
516
479
|
# track execution of the schema change(s). The
|
517
480
|
# {::Google::Longrunning::Operation#metadata metadata} field type is
|
518
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::UpdateDatabaseDdlMetadata UpdateDatabaseDdlMetadata}.
|
519
|
-
# The operation has no response.
|
481
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::UpdateDatabaseDdlMetadata UpdateDatabaseDdlMetadata}. The operation has no response.
|
520
482
|
#
|
521
483
|
# @overload update_database_ddl(request, options = nil)
|
522
484
|
# Pass arguments to `update_database_ddl` via a request object, either of type
|
@@ -545,20 +507,18 @@ module Google
|
|
545
507
|
#
|
546
508
|
# Specifying an explicit operation ID simplifies determining
|
547
509
|
# whether the statements were executed in the event that the
|
548
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database_ddl UpdateDatabaseDdl}
|
549
|
-
#
|
550
|
-
#
|
551
|
-
# and `operation_id` fields can be combined to form the
|
510
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database_ddl UpdateDatabaseDdl} call is replayed,
|
511
|
+
# or the return value is otherwise lost: the {::Google::Cloud::Spanner::Admin::Database::V1::UpdateDatabaseDdlRequest#database database} and
|
512
|
+
# `operation_id` fields can be combined to form the
|
552
513
|
# {::Google::Longrunning::Operation#name name} of the resulting
|
553
|
-
# {::Google::Longrunning::Operation longrunning.Operation}:
|
554
|
-
# `<database>/operations/<operation_id>`.
|
514
|
+
# {::Google::Longrunning::Operation longrunning.Operation}: `<database>/operations/<operation_id>`.
|
555
515
|
#
|
556
516
|
# `operation_id` should be unique within the database, and must be
|
557
517
|
# a valid identifier: `[a-z][a-z0-9_]*`. Note that
|
558
518
|
# automatically-generated operation IDs always begin with an
|
559
519
|
# underscore. If the named operation already exists,
|
560
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database_ddl UpdateDatabaseDdl}
|
561
|
-
#
|
520
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#update_database_ddl UpdateDatabaseDdl} returns
|
521
|
+
# `ALREADY_EXISTS`.
|
562
522
|
#
|
563
523
|
# @yield [response, operation] Access the result along with the RPC operation
|
564
524
|
# @yieldparam response [::Gapic::Operation]
|
@@ -987,12 +947,12 @@ module Google
|
|
987
947
|
# `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
|
988
948
|
# and can be used to track creation of the backup. The
|
989
949
|
# {::Google::Longrunning::Operation#metadata metadata} field type is
|
990
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::CreateBackupMetadata CreateBackupMetadata}.
|
991
|
-
#
|
992
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::Backup Backup}, if successful.
|
993
|
-
#
|
994
|
-
#
|
995
|
-
#
|
950
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::CreateBackupMetadata CreateBackupMetadata}. The
|
951
|
+
# {::Google::Longrunning::Operation#response response} field type is
|
952
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::Backup Backup}, if successful. Cancelling the returned operation will stop the
|
953
|
+
# creation and delete the backup.
|
954
|
+
# There can be only one pending backup creation per database. Backup creation
|
955
|
+
# of different databases can run concurrently.
|
996
956
|
#
|
997
957
|
# @overload create_backup(request, options = nil)
|
998
958
|
# Pass arguments to `create_backup` via a request object, either of type
|
@@ -1023,11 +983,11 @@ module Google
|
|
1023
983
|
# @param backup [::Google::Cloud::Spanner::Admin::Database::V1::Backup, ::Hash]
|
1024
984
|
# Required. The backup to create.
|
1025
985
|
# @param encryption_config [::Google::Cloud::Spanner::Admin::Database::V1::CreateBackupEncryptionConfig, ::Hash]
|
1026
|
-
# Optional. The encryption configuration used to encrypt the backup. If this
|
1027
|
-
#
|
1028
|
-
# configuration as the database by default, namely
|
1029
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::CreateBackupEncryptionConfig#encryption_type encryption_type}
|
1030
|
-
#
|
986
|
+
# Optional. The encryption configuration used to encrypt the backup. If this field is
|
987
|
+
# not specified, the backup will use the same
|
988
|
+
# encryption configuration as the database by default, namely
|
989
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::CreateBackupEncryptionConfig#encryption_type encryption_type} =
|
990
|
+
# `USE_DATABASE_ENCRYPTION`.
|
1031
991
|
#
|
1032
992
|
# @yield [response, operation] Access the result along with the RPC operation
|
1033
993
|
# @yieldparam response [::Gapic::Operation]
|
@@ -1076,8 +1036,7 @@ module Google
|
|
1076
1036
|
end
|
1077
1037
|
|
1078
1038
|
##
|
1079
|
-
# Gets metadata on a pending or completed
|
1080
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::Backup Backup}.
|
1039
|
+
# Gets metadata on a pending or completed {::Google::Cloud::Spanner::Admin::Database::V1::Backup Backup}.
|
1081
1040
|
#
|
1082
1041
|
# @overload get_backup(request, options = nil)
|
1083
1042
|
# Pass arguments to `get_backup` via a request object, either of type
|
@@ -1145,8 +1104,7 @@ module Google
|
|
1145
1104
|
end
|
1146
1105
|
|
1147
1106
|
##
|
1148
|
-
# Updates a pending or completed
|
1149
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::Backup Backup}.
|
1107
|
+
# Updates a pending or completed {::Google::Cloud::Spanner::Admin::Database::V1::Backup Backup}.
|
1150
1108
|
#
|
1151
1109
|
# @overload update_backup(request, options = nil)
|
1152
1110
|
# Pass arguments to `update_backup` via a request object, either of type
|
@@ -1221,8 +1179,7 @@ module Google
|
|
1221
1179
|
end
|
1222
1180
|
|
1223
1181
|
##
|
1224
|
-
# Deletes a pending or completed
|
1225
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::Backup Backup}.
|
1182
|
+
# Deletes a pending or completed {::Google::Cloud::Spanner::Admin::Database::V1::Backup Backup}.
|
1226
1183
|
#
|
1227
1184
|
# @overload delete_backup(request, options = nil)
|
1228
1185
|
# Pass arguments to `delete_backup` via a request object, either of type
|
@@ -1321,9 +1278,7 @@ module Google
|
|
1321
1278
|
# must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
1322
1279
|
# Colon `:` is the contains operator. Filter rules are not case sensitive.
|
1323
1280
|
#
|
1324
|
-
# The following fields in the
|
1325
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::Backup Backup} are eligible for
|
1326
|
-
# filtering:
|
1281
|
+
# The following fields in the {::Google::Cloud::Spanner::Admin::Database::V1::Backup Backup} are eligible for filtering:
|
1327
1282
|
#
|
1328
1283
|
# * `name`
|
1329
1284
|
# * `database`
|
@@ -1355,10 +1310,9 @@ module Google
|
|
1355
1310
|
# less, defaults to the server's maximum allowed page size.
|
1356
1311
|
# @param page_token [::String]
|
1357
1312
|
# If non-empty, `page_token` should contain a
|
1358
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::ListBackupsResponse#next_page_token next_page_token}
|
1359
|
-
#
|
1360
|
-
#
|
1361
|
-
# to the same `parent` and with the same `filter`.
|
1313
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::ListBackupsResponse#next_page_token next_page_token} from a
|
1314
|
+
# previous {::Google::Cloud::Spanner::Admin::Database::V1::ListBackupsResponse ListBackupsResponse} to the same `parent` and with the same
|
1315
|
+
# `filter`.
|
1362
1316
|
#
|
1363
1317
|
# @yield [response, operation] Access the result along with the RPC operation
|
1364
1318
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Spanner::Admin::Database::V1::Backup>]
|
@@ -1455,12 +1409,12 @@ module Google
|
|
1455
1409
|
# Name of the backup from which to restore. Values are of the form
|
1456
1410
|
# `projects/<project>/instances/<instance>/backups/<backup>`.
|
1457
1411
|
# @param encryption_config [::Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseEncryptionConfig, ::Hash]
|
1458
|
-
# Optional. An encryption configuration describing the encryption type and
|
1459
|
-
#
|
1460
|
-
#
|
1461
|
-
# encryption configuration as the backup by default, namely
|
1462
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseEncryptionConfig#encryption_type encryption_type}
|
1463
|
-
#
|
1412
|
+
# Optional. An encryption configuration describing the encryption type and key
|
1413
|
+
# resources in Cloud KMS used to encrypt/decrypt the database to restore to.
|
1414
|
+
# If this field is not specified, the restored database will use
|
1415
|
+
# the same encryption configuration as the backup by default, namely
|
1416
|
+
# {::Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseEncryptionConfig#encryption_type encryption_type} =
|
1417
|
+
# `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
|
1464
1418
|
#
|
1465
1419
|
# @yield [response, operation] Access the result along with the RPC operation
|
1466
1420
|
# @yieldparam response [::Gapic::Operation]
|
@@ -1551,9 +1505,7 @@ module Google
|
|
1551
1505
|
# * `name` - The name of the long-running operation
|
1552
1506
|
# * `done` - False if the operation is in progress, else true.
|
1553
1507
|
# * `metadata.@type` - the type of metadata. For example, the type string
|
1554
|
-
# for
|
1555
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseMetadata RestoreDatabaseMetadata}
|
1556
|
-
# is
|
1508
|
+
# for {::Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseMetadata RestoreDatabaseMetadata} is
|
1557
1509
|
# `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
|
1558
1510
|
# * `metadata.<field_name>` - any field in metadata.value.
|
1559
1511
|
# * `error` - Error associated with the long-running operation.
|
@@ -1573,8 +1525,7 @@ module Google
|
|
1573
1525
|
# `(metadata.name:restored_howl) AND` \
|
1574
1526
|
# `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
1575
1527
|
# `(error:*)` - Return operations where:
|
1576
|
-
# * The operation's metadata type is
|
1577
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseMetadata RestoreDatabaseMetadata}.
|
1528
|
+
# * The operation's metadata type is {::Google::Cloud::Spanner::Admin::Database::V1::RestoreDatabaseMetadata RestoreDatabaseMetadata}.
|
1578
1529
|
# * The database is restored from a backup.
|
1579
1530
|
# * The backup name contains "backup_howl".
|
1580
1531
|
# * The restored database's name contains "restored_howl".
|
@@ -1586,9 +1537,8 @@ module Google
|
|
1586
1537
|
# @param page_token [::String]
|
1587
1538
|
# If non-empty, `page_token` should contain a
|
1588
1539
|
# {::Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseOperationsResponse#next_page_token next_page_token}
|
1589
|
-
# from a previous
|
1590
|
-
#
|
1591
|
-
# to the same `parent` and with the same `filter`.
|
1540
|
+
# from a previous {::Google::Cloud::Spanner::Admin::Database::V1::ListDatabaseOperationsResponse ListDatabaseOperationsResponse} to the
|
1541
|
+
# same `parent` and with the same `filter`.
|
1592
1542
|
#
|
1593
1543
|
# @yield [response, operation] Access the result along with the RPC operation
|
1594
1544
|
# @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
|
@@ -1682,9 +1632,7 @@ module Google
|
|
1682
1632
|
# * `name` - The name of the long-running operation
|
1683
1633
|
# * `done` - False if the operation is in progress, else true.
|
1684
1634
|
# * `metadata.@type` - the type of metadata. For example, the type string
|
1685
|
-
# for
|
1686
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::CreateBackupMetadata CreateBackupMetadata}
|
1687
|
-
# is
|
1635
|
+
# for {::Google::Cloud::Spanner::Admin::Database::V1::CreateBackupMetadata CreateBackupMetadata} is
|
1688
1636
|
# `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
|
1689
1637
|
# * `metadata.<field_name>` - any field in metadata.value.
|
1690
1638
|
# * `error` - Error associated with the long-running operation.
|
@@ -1704,8 +1652,7 @@ module Google
|
|
1704
1652
|
# `(metadata.name:howl) AND` \
|
1705
1653
|
# `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
1706
1654
|
# `(error:*)` - Returns operations where:
|
1707
|
-
# * The operation's metadata type is
|
1708
|
-
# {::Google::Cloud::Spanner::Admin::Database::V1::CreateBackupMetadata CreateBackupMetadata}.
|
1655
|
+
# * The operation's metadata type is {::Google::Cloud::Spanner::Admin::Database::V1::CreateBackupMetadata CreateBackupMetadata}.
|
1709
1656
|
# * The backup name contains the string "howl".
|
1710
1657
|
# * The operation started before 2018-03-28T14:50:00Z.
|
1711
1658
|
# * The operation resulted in an error.
|
@@ -1715,9 +1662,8 @@ module Google
|
|
1715
1662
|
# @param page_token [::String]
|
1716
1663
|
# If non-empty, `page_token` should contain a
|
1717
1664
|
# {::Google::Cloud::Spanner::Admin::Database::V1::ListBackupOperationsResponse#next_page_token next_page_token}
|
1718
|
-
# from a previous
|
1719
|
-
#
|
1720
|
-
# to the same `parent` and with the same `filter`.
|
1665
|
+
# from a previous {::Google::Cloud::Spanner::Admin::Database::V1::ListBackupOperationsResponse ListBackupOperationsResponse} to the
|
1666
|
+
# same `parent` and with the same `filter`.
|
1721
1667
|
#
|
1722
1668
|
# @yield [response, operation] Access the result along with the RPC operation
|
1723
1669
|
# @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
|
@@ -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
|
@@ -398,9 +398,9 @@ module Google
|
|
398
398
|
end
|
399
399
|
|
400
400
|
##
|
401
|
-
# Waits
|
402
|
-
#
|
403
|
-
#
|
401
|
+
# Waits until the specified long-running operation is done or reaches at most
|
402
|
+
# a specified timeout, returning the latest state. If the operation is
|
403
|
+
# already done, the latest state is immediately returned. If the timeout
|
404
404
|
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
405
405
|
# timeout is used. If the server does not support this method, it returns
|
406
406
|
# `google.rpc.Code.UNIMPLEMENTED`.
|