google-cloud-memorystore-v1 1.8.0 → 1.10.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/README.md +1 -1
- data/lib/google/cloud/memorystore/v1/memorystore/client.rb +229 -4
- data/lib/google/cloud/memorystore/v1/memorystore/credentials.rb +3 -1
- data/lib/google/cloud/memorystore/v1/memorystore/operations.rb +2 -0
- data/lib/google/cloud/memorystore/v1/memorystore/paths.rb +19 -0
- data/lib/google/cloud/memorystore/v1/memorystore/rest/client.rb +215 -4
- data/lib/google/cloud/memorystore/v1/memorystore/rest/operations.rb +2 -0
- data/lib/google/cloud/memorystore/v1/memorystore/rest/service_stub.rb +124 -0
- data/lib/google/cloud/memorystore/v1/memorystore_pb.rb +6 -1
- data/lib/google/cloud/memorystore/v1/memorystore_services_pb.rb +16 -0
- data/lib/google/cloud/memorystore/v1/version.rb +1 -1
- data/proto_docs/google/cloud/memorystore/v1/memorystore.rb +128 -22
- metadata +3 -3
|
@@ -115,7 +115,7 @@ module Google
|
|
|
115
115
|
# Optional. Endpoints for the instance.
|
|
116
116
|
# @!attribute [rw] mode
|
|
117
117
|
# @return [::Google::Cloud::Memorystore::V1::Instance::Mode]
|
|
118
|
-
# Optional. The mode config for the instance.
|
|
118
|
+
# Optional. Immutable. The mode config for the instance.
|
|
119
119
|
# @!attribute [rw] simulate_maintenance_event
|
|
120
120
|
# @return [::Boolean]
|
|
121
121
|
# Optional. Input only. Simulate a maintenance event.
|
|
@@ -187,6 +187,9 @@ module Google
|
|
|
187
187
|
# @!attribute [rw] rotate_server_certificate
|
|
188
188
|
# @return [::Boolean]
|
|
189
189
|
# Optional. Input only. Rotate the server certificates.
|
|
190
|
+
# @!attribute [r] migration_config
|
|
191
|
+
# @return [::Google::Cloud::Memorystore::V1::MigrationConfig]
|
|
192
|
+
# Output only. Migration config for the instance.
|
|
190
193
|
class Instance
|
|
191
194
|
include ::Google::Protobuf::MessageExts
|
|
192
195
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -305,6 +308,9 @@ module Google
|
|
|
305
308
|
|
|
306
309
|
# Instance is being deleted.
|
|
307
310
|
DELETING = 4
|
|
311
|
+
|
|
312
|
+
# Instance is being migrated.
|
|
313
|
+
MIGRATING = 6
|
|
308
314
|
end
|
|
309
315
|
|
|
310
316
|
# Possible authorization modes of the instance.
|
|
@@ -362,7 +368,7 @@ module Google
|
|
|
362
368
|
# Standard large.
|
|
363
369
|
STANDARD_LARGE = 8
|
|
364
370
|
|
|
365
|
-
# High memory
|
|
371
|
+
# High memory 2xlarge.
|
|
366
372
|
HIGHMEM_2XLARGE = 9
|
|
367
373
|
|
|
368
374
|
# Custom pico.
|
|
@@ -409,6 +415,107 @@ module Google
|
|
|
409
415
|
end
|
|
410
416
|
end
|
|
411
417
|
|
|
418
|
+
# Request for `StartMigration`.
|
|
419
|
+
# @!attribute [rw] self_managed_source
|
|
420
|
+
# @return [::Google::Cloud::Memorystore::V1::SelfManagedSource]
|
|
421
|
+
# Required. Configuration for migrating from a self-managed Valkey/Redis
|
|
422
|
+
# instance
|
|
423
|
+
# @!attribute [rw] name
|
|
424
|
+
# @return [::String]
|
|
425
|
+
# Required. The resource name of the instance to start migration on.
|
|
426
|
+
# Format: projects/\\{project}/locations/\\{location}/instances/\\{instance}
|
|
427
|
+
class StartMigrationRequest
|
|
428
|
+
include ::Google::Protobuf::MessageExts
|
|
429
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
# Request for `FinishMigration`.
|
|
433
|
+
# @!attribute [rw] name
|
|
434
|
+
# @return [::String]
|
|
435
|
+
# Required. The resource name of the instance to finalize migration on.
|
|
436
|
+
# Format: projects/\\{project}/locations/\\{location}/instances/\\{instance}
|
|
437
|
+
# @!attribute [rw] force
|
|
438
|
+
# @return [::Boolean]
|
|
439
|
+
# Optional. By default, the `FinishMigration` operation ensures the target
|
|
440
|
+
# replication offset to catch up to the source offset as of the time of the
|
|
441
|
+
# call. Set this field to `true` to bypass this offset verification check.
|
|
442
|
+
class FinishMigrationRequest
|
|
443
|
+
include ::Google::Protobuf::MessageExts
|
|
444
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
# Details of the self-managed source instance.
|
|
448
|
+
# @!attribute [rw] ip_address
|
|
449
|
+
# @return [::String]
|
|
450
|
+
# Required. The IP address of the source instance.
|
|
451
|
+
# This IP address should be a stable IP address that can be accessed by the
|
|
452
|
+
# Memorystore instance throughout the migration process.
|
|
453
|
+
# @!attribute [rw] port
|
|
454
|
+
# @return [::Integer]
|
|
455
|
+
# Required. The port of the source instance.
|
|
456
|
+
# This port should be a stable port that can be accessed by the Memorystore
|
|
457
|
+
# instance throughout the migration process.
|
|
458
|
+
# @!attribute [rw] network_attachment
|
|
459
|
+
# @return [::String]
|
|
460
|
+
# Required. The resource name of the Private Service Connect Network
|
|
461
|
+
# Attachment used to establish connectivity to the source instance. This
|
|
462
|
+
# network attachment has the following requirements:
|
|
463
|
+
# 1. It must be in the same project as the Memorystore instance.
|
|
464
|
+
# 2. It must be in the same region as the Memorystore instance.
|
|
465
|
+
# 3. The subnet attached to the network attachment must be in the same VPC
|
|
466
|
+
# network as the source instance nodes.
|
|
467
|
+
#
|
|
468
|
+
# Format:
|
|
469
|
+
# projects/\\{project}/regions/\\{region}/networkAttachments/\\{network_attachment}
|
|
470
|
+
class SelfManagedSource
|
|
471
|
+
include ::Google::Protobuf::MessageExts
|
|
472
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
# Configuration for the migration of an instance.
|
|
476
|
+
# @!attribute [r] self_managed_source
|
|
477
|
+
# @return [::Google::Cloud::Memorystore::V1::SelfManagedSource]
|
|
478
|
+
# Output only. Configuration for migrating from a self-managed Valkey/Redis
|
|
479
|
+
# instance
|
|
480
|
+
# @!attribute [r] state
|
|
481
|
+
# @return [::Google::Cloud::Memorystore::V1::MigrationConfig::State]
|
|
482
|
+
# Output only. Migration state of the instance.
|
|
483
|
+
# @!attribute [r] force_finish_migration
|
|
484
|
+
# @return [::Boolean]
|
|
485
|
+
# Output only. Represents a boolean flag to force migration finalization
|
|
486
|
+
# without offset catch up validation between source and target before
|
|
487
|
+
# stopping replication.
|
|
488
|
+
class MigrationConfig
|
|
489
|
+
include ::Google::Protobuf::MessageExts
|
|
490
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
491
|
+
|
|
492
|
+
# Migration state of the instance.
|
|
493
|
+
# New values may be added in the future.
|
|
494
|
+
module State
|
|
495
|
+
# Instance has no migration related activity. This is the initial state.
|
|
496
|
+
STATE_UNSPECIFIED = 0
|
|
497
|
+
|
|
498
|
+
# Instance is not currently migrating. The instance underwent a migration
|
|
499
|
+
# attempt that failed, and the subsequent rollback was successful. The
|
|
500
|
+
# instance is now ready for a new migration attempt if desired.
|
|
501
|
+
ROLLED_BACK = 1
|
|
502
|
+
|
|
503
|
+
# Indicates a previous migration attempt failed. The high-level instance
|
|
504
|
+
# state will be `MIGRATING`. The instance is not ready for a new migration
|
|
505
|
+
# attempt. Rollback is in progress to restore the instance to its original
|
|
506
|
+
# state. The instance will remain in this state until rollback is
|
|
507
|
+
# successful.
|
|
508
|
+
ROLLING_BACK = 5
|
|
509
|
+
|
|
510
|
+
# Instance is in the process of migration. Instance has established
|
|
511
|
+
# successful replication and is ready for cutover.
|
|
512
|
+
REPLICATION_ESTABLISHED = 6
|
|
513
|
+
|
|
514
|
+
# Instance is successfully migrated.
|
|
515
|
+
MIGRATED = 4
|
|
516
|
+
end
|
|
517
|
+
end
|
|
518
|
+
|
|
412
519
|
# The automated backup config for an instance.
|
|
413
520
|
# @!attribute [rw] fixed_frequency_schedule
|
|
414
521
|
# @return [::Google::Cloud::Memorystore::V1::AutomatedBackupConfig::FixedFrequencySchedule]
|
|
@@ -753,7 +860,7 @@ module Google
|
|
|
753
860
|
# @!attribute [rw] network
|
|
754
861
|
# @return [::String]
|
|
755
862
|
# Required. The network where the PSC endpoints are created, in the form of
|
|
756
|
-
# projects/\\{project_id}/global/networks/\\{
|
|
863
|
+
# projects/\\{project_id}/global/networks/\\{network_name}.
|
|
757
864
|
# @!attribute [r] service_attachment
|
|
758
865
|
# @return [::String]
|
|
759
866
|
# Output only. The service attachment which is the target of the PSC
|
|
@@ -797,7 +904,7 @@ module Google
|
|
|
797
904
|
# @!attribute [rw] network
|
|
798
905
|
# @return [::String]
|
|
799
906
|
# Required. The consumer network where the IP address resides, in the form of
|
|
800
|
-
# projects/\\{project_id}/global/networks/\\{
|
|
907
|
+
# projects/\\{project_id}/global/networks/\\{network_name}.
|
|
801
908
|
# @!attribute [rw] service_attachment
|
|
802
909
|
# @return [::String]
|
|
803
910
|
# Required. The service attachment which is the target of the PSC connection,
|
|
@@ -828,7 +935,7 @@ module Google
|
|
|
828
935
|
# @return [::String]
|
|
829
936
|
# Output only. The network where the IP address of the discovery endpoint
|
|
830
937
|
# will be reserved, in the form of
|
|
831
|
-
# projects/\\{network_project}/global/networks/\\{
|
|
938
|
+
# projects/\\{network_project}/global/networks/\\{network_name}.
|
|
832
939
|
class DiscoveryEndpoint
|
|
833
940
|
include ::Google::Protobuf::MessageExts
|
|
834
941
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1012,7 +1119,7 @@ module Google
|
|
|
1012
1119
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1013
1120
|
end
|
|
1014
1121
|
|
|
1015
|
-
# Response message for
|
|
1122
|
+
# Response message for `ListInstances`.
|
|
1016
1123
|
# @!attribute [rw] instances
|
|
1017
1124
|
# @return [::Array<::Google::Cloud::Memorystore::V1::Instance>]
|
|
1018
1125
|
# If the \\{location} requested was "-" the response contains a list of
|
|
@@ -1133,7 +1240,7 @@ module Google
|
|
|
1133
1240
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1134
1241
|
end
|
|
1135
1242
|
|
|
1136
|
-
# Request for
|
|
1243
|
+
# Request for `ListBackupCollections`.
|
|
1137
1244
|
# @!attribute [rw] parent
|
|
1138
1245
|
# @return [::String]
|
|
1139
1246
|
# Required. The resource name of the backupCollection location using the
|
|
@@ -1147,18 +1254,18 @@ module Google
|
|
|
1147
1254
|
# If not specified, a default value of 1000 will be used by the service.
|
|
1148
1255
|
# Regardless of the page_size value, the response may include a partial list
|
|
1149
1256
|
# and a caller should only rely on response's
|
|
1150
|
-
#
|
|
1257
|
+
# `next_page_token`
|
|
1151
1258
|
# to determine if there are more clusters left to be queried.
|
|
1152
1259
|
# @!attribute [rw] page_token
|
|
1153
1260
|
# @return [::String]
|
|
1154
1261
|
# Optional. The `next_page_token` value returned from a previous
|
|
1155
|
-
#
|
|
1262
|
+
# `ListBackupCollections` request, if any.
|
|
1156
1263
|
class ListBackupCollectionsRequest
|
|
1157
1264
|
include ::Google::Protobuf::MessageExts
|
|
1158
1265
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1159
1266
|
end
|
|
1160
1267
|
|
|
1161
|
-
# Response for
|
|
1268
|
+
# Response for `ListBackupCollections`.
|
|
1162
1269
|
# @!attribute [rw] backup_collections
|
|
1163
1270
|
# @return [::Array<::Google::Cloud::Memorystore::V1::BackupCollection>]
|
|
1164
1271
|
# A list of backupCollections in the project.
|
|
@@ -1183,7 +1290,7 @@ module Google
|
|
|
1183
1290
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1184
1291
|
end
|
|
1185
1292
|
|
|
1186
|
-
# Request for
|
|
1293
|
+
# Request for `GetBackupCollection`.
|
|
1187
1294
|
# @!attribute [rw] name
|
|
1188
1295
|
# @return [::String]
|
|
1189
1296
|
# Required. Instance backupCollection resource name using the form:
|
|
@@ -1194,7 +1301,7 @@ module Google
|
|
|
1194
1301
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1195
1302
|
end
|
|
1196
1303
|
|
|
1197
|
-
# Request for
|
|
1304
|
+
# Request for `ListBackups`.
|
|
1198
1305
|
# @!attribute [rw] parent
|
|
1199
1306
|
# @return [::String]
|
|
1200
1307
|
# Required. The resource name of the backupCollection using the form:
|
|
@@ -1206,18 +1313,18 @@ module Google
|
|
|
1206
1313
|
# If not specified, a default value of 1000 will be used by the service.
|
|
1207
1314
|
# Regardless of the page_size value, the response may include a partial list
|
|
1208
1315
|
# and a caller should only rely on response's
|
|
1209
|
-
#
|
|
1316
|
+
# `next_page_token`
|
|
1210
1317
|
# to determine if there are more clusters left to be queried.
|
|
1211
1318
|
# @!attribute [rw] page_token
|
|
1212
1319
|
# @return [::String]
|
|
1213
1320
|
# Optional. The `next_page_token` value returned from a previous
|
|
1214
|
-
#
|
|
1321
|
+
# `ListBackupCollections` request, if any.
|
|
1215
1322
|
class ListBackupsRequest
|
|
1216
1323
|
include ::Google::Protobuf::MessageExts
|
|
1217
1324
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1218
1325
|
end
|
|
1219
1326
|
|
|
1220
|
-
# Response for
|
|
1327
|
+
# Response for `ListBackups`.
|
|
1221
1328
|
# @!attribute [rw] backups
|
|
1222
1329
|
# @return [::Array<::Google::Cloud::Memorystore::V1::Backup>]
|
|
1223
1330
|
# A list of backups in the project.
|
|
@@ -1233,7 +1340,7 @@ module Google
|
|
|
1233
1340
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1234
1341
|
end
|
|
1235
1342
|
|
|
1236
|
-
# Request for
|
|
1343
|
+
# Request for `GetBackup`.
|
|
1237
1344
|
# @!attribute [rw] name
|
|
1238
1345
|
# @return [::String]
|
|
1239
1346
|
# Required. Instance backup resource name using the form:
|
|
@@ -1243,7 +1350,7 @@ module Google
|
|
|
1243
1350
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1244
1351
|
end
|
|
1245
1352
|
|
|
1246
|
-
# Request for
|
|
1353
|
+
# Request for `DeleteBackup`.
|
|
1247
1354
|
# @!attribute [rw] name
|
|
1248
1355
|
# @return [::String]
|
|
1249
1356
|
# Required. Instance backup resource name using the form:
|
|
@@ -1256,7 +1363,7 @@ module Google
|
|
|
1256
1363
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1257
1364
|
end
|
|
1258
1365
|
|
|
1259
|
-
# Request for
|
|
1366
|
+
# Request for `ExportBackup`.
|
|
1260
1367
|
# @!attribute [rw] gcs_bucket
|
|
1261
1368
|
# @return [::String]
|
|
1262
1369
|
# Google Cloud Storage bucket, like "my-bucket".
|
|
@@ -1269,7 +1376,7 @@ module Google
|
|
|
1269
1376
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1270
1377
|
end
|
|
1271
1378
|
|
|
1272
|
-
# Request for
|
|
1379
|
+
# Request for `BackupInstance`.
|
|
1273
1380
|
# @!attribute [rw] name
|
|
1274
1381
|
# @return [::String]
|
|
1275
1382
|
# Required. Instance resource name using the form:
|
|
@@ -1288,7 +1395,7 @@ module Google
|
|
|
1288
1395
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1289
1396
|
end
|
|
1290
1397
|
|
|
1291
|
-
# Request message for
|
|
1398
|
+
# Request message for `GetCertificateAuthority`.
|
|
1292
1399
|
# @!attribute [rw] name
|
|
1293
1400
|
# @return [::String]
|
|
1294
1401
|
# Required. The name of the certificate authority.
|
|
@@ -1364,8 +1471,7 @@ module Google
|
|
|
1364
1471
|
end
|
|
1365
1472
|
end
|
|
1366
1473
|
|
|
1367
|
-
# Request for
|
|
1368
|
-
# {::Google::Cloud::Memorystore::V1::Memorystore::Client#get_shared_regional_certificate_authority GetSharedRegionalCertificateAuthority}.
|
|
1474
|
+
# Request for `GetSharedRegionalCertificateAuthority`.
|
|
1369
1475
|
# @!attribute [rw] name
|
|
1370
1476
|
# @return [::String]
|
|
1371
1477
|
# Required. Regional certificate authority resource name using the form:
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-memorystore-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '1.
|
|
18
|
+
version: '1.3'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '1.
|
|
25
|
+
version: '1.3'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: google-cloud-errors
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|