google-apis-redis_v1 0.63.0 → 0.65.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/CHANGELOG.md +8 -0
- data/lib/google/apis/redis_v1/classes.rb +496 -0
- data/lib/google/apis/redis_v1/gem_version.rb +2 -2
- data/lib/google/apis/redis_v1/representations.rb +203 -0
- data/lib/google/apis/redis_v1/service.rb +269 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e81c41ce07cd4bdab46c16a91c43916d0434f76d61be430e20bc9b6a1263c41
|
4
|
+
data.tar.gz: 8bbdcd7c4e230fc607d7e5657a8d1694a6a00bf8223d6c4e12fc48c2d1583ab7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50730f176dccd0b6cf78fce3722e5a006dcfdf3d320be94f8b6574e53606bf53044e4d708d278582fa5edd2f98e2c42bfd47812954bfccf2be20f99df1472875
|
7
|
+
data.tar.gz: 93081ae42c7a26924ce7b569497bb952e53be5be0d81ad2615f82fe60d2e0d8ef7b3be97b194689933127bd6cfb9f2b11200edf9de9eb8040f48247c96a7fe31
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-redis_v1
|
2
2
|
|
3
|
+
### v0.65.0 (2024-12-08)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241203
|
6
|
+
|
7
|
+
### v0.64.0 (2024-11-24)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241114
|
10
|
+
|
3
11
|
### v0.63.0 (2024-10-27)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20241017
|
@@ -41,6 +41,41 @@ module Google
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
# The automated backup config for a cluster.
|
45
|
+
class AutomatedBackupConfig
|
46
|
+
include Google::Apis::Core::Hashable
|
47
|
+
|
48
|
+
# Optional. The automated backup mode. If the mode is disabled, the other fields
|
49
|
+
# will be ignored.
|
50
|
+
# Corresponds to the JSON property `automatedBackupMode`
|
51
|
+
# @return [String]
|
52
|
+
attr_accessor :automated_backup_mode
|
53
|
+
|
54
|
+
# This schedule allows the backup to be triggered at a fixed frequency (
|
55
|
+
# currently only daily is supported).
|
56
|
+
# Corresponds to the JSON property `fixedFrequencySchedule`
|
57
|
+
# @return [Google::Apis::RedisV1::FixedFrequencySchedule]
|
58
|
+
attr_accessor :fixed_frequency_schedule
|
59
|
+
|
60
|
+
# Optional. How long to keep automated backups before the backups are deleted.
|
61
|
+
# The value should be between 1 day and 365 days. If not specified, the default
|
62
|
+
# value is 35 days.
|
63
|
+
# Corresponds to the JSON property `retention`
|
64
|
+
# @return [String]
|
65
|
+
attr_accessor :retention
|
66
|
+
|
67
|
+
def initialize(**args)
|
68
|
+
update!(**args)
|
69
|
+
end
|
70
|
+
|
71
|
+
# Update properties of this object
|
72
|
+
def update!(**args)
|
73
|
+
@automated_backup_mode = args[:automated_backup_mode] if args.key?(:automated_backup_mode)
|
74
|
+
@fixed_frequency_schedule = args[:fixed_frequency_schedule] if args.key?(:fixed_frequency_schedule)
|
75
|
+
@retention = args[:retention] if args.key?(:retention)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
44
79
|
# Configuration for availability of database instance
|
45
80
|
class AvailabilityConfiguration
|
46
81
|
include Google::Apis::Core::Hashable
|
@@ -94,6 +129,170 @@ module Google
|
|
94
129
|
end
|
95
130
|
end
|
96
131
|
|
132
|
+
# Backup of a cluster.
|
133
|
+
class Backup
|
134
|
+
include Google::Apis::Core::Hashable
|
135
|
+
|
136
|
+
# Output only. List of backup files of the backup.
|
137
|
+
# Corresponds to the JSON property `backupFiles`
|
138
|
+
# @return [Array<Google::Apis::RedisV1::BackupFile>]
|
139
|
+
attr_accessor :backup_files
|
140
|
+
|
141
|
+
# Output only. Type of the backup.
|
142
|
+
# Corresponds to the JSON property `backupType`
|
143
|
+
# @return [String]
|
144
|
+
attr_accessor :backup_type
|
145
|
+
|
146
|
+
# Output only. Cluster resource path of this backup.
|
147
|
+
# Corresponds to the JSON property `cluster`
|
148
|
+
# @return [String]
|
149
|
+
attr_accessor :cluster
|
150
|
+
|
151
|
+
# Output only. Cluster uid of this backup.
|
152
|
+
# Corresponds to the JSON property `clusterUid`
|
153
|
+
# @return [String]
|
154
|
+
attr_accessor :cluster_uid
|
155
|
+
|
156
|
+
# Output only. The time when the backup was created.
|
157
|
+
# Corresponds to the JSON property `createTime`
|
158
|
+
# @return [String]
|
159
|
+
attr_accessor :create_time
|
160
|
+
|
161
|
+
# Output only. redis-7.2, valkey-7.5
|
162
|
+
# Corresponds to the JSON property `engineVersion`
|
163
|
+
# @return [String]
|
164
|
+
attr_accessor :engine_version
|
165
|
+
|
166
|
+
# Output only. The time when the backup will expire.
|
167
|
+
# Corresponds to the JSON property `expireTime`
|
168
|
+
# @return [String]
|
169
|
+
attr_accessor :expire_time
|
170
|
+
|
171
|
+
# Identifier. Full resource path of the backup. the last part of the name is the
|
172
|
+
# backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster UID] OR
|
173
|
+
# customer specified while backup cluster. Example: 20240515123000_1234
|
174
|
+
# Corresponds to the JSON property `name`
|
175
|
+
# @return [String]
|
176
|
+
attr_accessor :name
|
177
|
+
|
178
|
+
# Output only. Node type of the cluster.
|
179
|
+
# Corresponds to the JSON property `nodeType`
|
180
|
+
# @return [String]
|
181
|
+
attr_accessor :node_type
|
182
|
+
|
183
|
+
# Output only. Number of replicas for the cluster.
|
184
|
+
# Corresponds to the JSON property `replicaCount`
|
185
|
+
# @return [Fixnum]
|
186
|
+
attr_accessor :replica_count
|
187
|
+
|
188
|
+
# Output only. Number of shards for the cluster.
|
189
|
+
# Corresponds to the JSON property `shardCount`
|
190
|
+
# @return [Fixnum]
|
191
|
+
attr_accessor :shard_count
|
192
|
+
|
193
|
+
# Output only. State of the backup.
|
194
|
+
# Corresponds to the JSON property `state`
|
195
|
+
# @return [String]
|
196
|
+
attr_accessor :state
|
197
|
+
|
198
|
+
# Output only. Total size of the backup in bytes.
|
199
|
+
# Corresponds to the JSON property `totalSizeBytes`
|
200
|
+
# @return [Fixnum]
|
201
|
+
attr_accessor :total_size_bytes
|
202
|
+
|
203
|
+
# Output only. System assigned unique identifier of the backup.
|
204
|
+
# Corresponds to the JSON property `uid`
|
205
|
+
# @return [String]
|
206
|
+
attr_accessor :uid
|
207
|
+
|
208
|
+
def initialize(**args)
|
209
|
+
update!(**args)
|
210
|
+
end
|
211
|
+
|
212
|
+
# Update properties of this object
|
213
|
+
def update!(**args)
|
214
|
+
@backup_files = args[:backup_files] if args.key?(:backup_files)
|
215
|
+
@backup_type = args[:backup_type] if args.key?(:backup_type)
|
216
|
+
@cluster = args[:cluster] if args.key?(:cluster)
|
217
|
+
@cluster_uid = args[:cluster_uid] if args.key?(:cluster_uid)
|
218
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
219
|
+
@engine_version = args[:engine_version] if args.key?(:engine_version)
|
220
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
221
|
+
@name = args[:name] if args.key?(:name)
|
222
|
+
@node_type = args[:node_type] if args.key?(:node_type)
|
223
|
+
@replica_count = args[:replica_count] if args.key?(:replica_count)
|
224
|
+
@shard_count = args[:shard_count] if args.key?(:shard_count)
|
225
|
+
@state = args[:state] if args.key?(:state)
|
226
|
+
@total_size_bytes = args[:total_size_bytes] if args.key?(:total_size_bytes)
|
227
|
+
@uid = args[:uid] if args.key?(:uid)
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
# Request for [BackupCluster].
|
232
|
+
class BackupClusterRequest
|
233
|
+
include Google::Apis::Core::Hashable
|
234
|
+
|
235
|
+
# Optional. The id of the backup to be created. If not specified, the default
|
236
|
+
# value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
|
237
|
+
# Corresponds to the JSON property `backupId`
|
238
|
+
# @return [String]
|
239
|
+
attr_accessor :backup_id
|
240
|
+
|
241
|
+
# Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If
|
242
|
+
# not specified, the default value is 100 years.
|
243
|
+
# Corresponds to the JSON property `ttl`
|
244
|
+
# @return [String]
|
245
|
+
attr_accessor :ttl
|
246
|
+
|
247
|
+
def initialize(**args)
|
248
|
+
update!(**args)
|
249
|
+
end
|
250
|
+
|
251
|
+
# Update properties of this object
|
252
|
+
def update!(**args)
|
253
|
+
@backup_id = args[:backup_id] if args.key?(:backup_id)
|
254
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
# BackupCollection of a cluster.
|
259
|
+
class BackupCollection
|
260
|
+
include Google::Apis::Core::Hashable
|
261
|
+
|
262
|
+
# Output only. The full resource path of the cluster the backup collection
|
263
|
+
# belongs to. Example: projects/`project`/locations/`location`/clusters/`cluster`
|
264
|
+
# Corresponds to the JSON property `cluster`
|
265
|
+
# @return [String]
|
266
|
+
attr_accessor :cluster
|
267
|
+
|
268
|
+
# Output only. The cluster uid of the backup collection.
|
269
|
+
# Corresponds to the JSON property `clusterUid`
|
270
|
+
# @return [String]
|
271
|
+
attr_accessor :cluster_uid
|
272
|
+
|
273
|
+
# Identifier. Full resource path of the backup collection.
|
274
|
+
# Corresponds to the JSON property `name`
|
275
|
+
# @return [String]
|
276
|
+
attr_accessor :name
|
277
|
+
|
278
|
+
# Output only. System assigned unique identifier of the backup collection.
|
279
|
+
# Corresponds to the JSON property `uid`
|
280
|
+
# @return [String]
|
281
|
+
attr_accessor :uid
|
282
|
+
|
283
|
+
def initialize(**args)
|
284
|
+
update!(**args)
|
285
|
+
end
|
286
|
+
|
287
|
+
# Update properties of this object
|
288
|
+
def update!(**args)
|
289
|
+
@cluster = args[:cluster] if args.key?(:cluster)
|
290
|
+
@cluster_uid = args[:cluster_uid] if args.key?(:cluster_uid)
|
291
|
+
@name = args[:name] if args.key?(:name)
|
292
|
+
@uid = args[:uid] if args.key?(:uid)
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
97
296
|
# Configuration for automatic backups
|
98
297
|
class BackupConfiguration
|
99
298
|
include Google::Apis::Core::Hashable
|
@@ -129,6 +328,37 @@ module Google
|
|
129
328
|
end
|
130
329
|
end
|
131
330
|
|
331
|
+
# Backup is consisted of multiple backup files.
|
332
|
+
class BackupFile
|
333
|
+
include Google::Apis::Core::Hashable
|
334
|
+
|
335
|
+
# Output only. The time when the backup file was created.
|
336
|
+
# Corresponds to the JSON property `createTime`
|
337
|
+
# @return [String]
|
338
|
+
attr_accessor :create_time
|
339
|
+
|
340
|
+
# Output only. e.g: .rdb
|
341
|
+
# Corresponds to the JSON property `fileName`
|
342
|
+
# @return [String]
|
343
|
+
attr_accessor :file_name
|
344
|
+
|
345
|
+
# Output only. Size of the backup file in bytes.
|
346
|
+
# Corresponds to the JSON property `sizeBytes`
|
347
|
+
# @return [Fixnum]
|
348
|
+
attr_accessor :size_bytes
|
349
|
+
|
350
|
+
def initialize(**args)
|
351
|
+
update!(**args)
|
352
|
+
end
|
353
|
+
|
354
|
+
# Update properties of this object
|
355
|
+
def update!(**args)
|
356
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
357
|
+
@file_name = args[:file_name] if args.key?(:file_name)
|
358
|
+
@size_bytes = args[:size_bytes] if args.key?(:size_bytes)
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
132
362
|
# A backup run.
|
133
363
|
class BackupRun
|
134
364
|
include Google::Apis::Core::Hashable
|
@@ -222,6 +452,17 @@ module Google
|
|
222
452
|
# @return [String]
|
223
453
|
attr_accessor :authorization_mode
|
224
454
|
|
455
|
+
# The automated backup config for a cluster.
|
456
|
+
# Corresponds to the JSON property `automatedBackupConfig`
|
457
|
+
# @return [Google::Apis::RedisV1::AutomatedBackupConfig]
|
458
|
+
attr_accessor :automated_backup_config
|
459
|
+
|
460
|
+
# Optional. Output only. The backup collection full resource name. Example:
|
461
|
+
# projects/`project`/locations/`location`/backupCollections/`collection`
|
462
|
+
# Corresponds to the JSON property `backupCollection`
|
463
|
+
# @return [String]
|
464
|
+
attr_accessor :backup_collection
|
465
|
+
|
225
466
|
# Optional. A list of cluster enpoints.
|
226
467
|
# Corresponds to the JSON property `clusterEndpoints`
|
227
468
|
# @return [Array<Google::Apis::RedisV1::ClusterEndpoint>]
|
@@ -249,6 +490,12 @@ module Google
|
|
249
490
|
# @return [Array<Google::Apis::RedisV1::DiscoveryEndpoint>]
|
250
491
|
attr_accessor :discovery_endpoints
|
251
492
|
|
493
|
+
# Backups stored in Cloud Storage buckets. The Cloud Storage buckets need to be
|
494
|
+
# the same region as the clusters.
|
495
|
+
# Corresponds to the JSON property `gcsSource`
|
496
|
+
# @return [Google::Apis::RedisV1::GcsBackupSource]
|
497
|
+
attr_accessor :gcs_source
|
498
|
+
|
252
499
|
# Maintenance policy per cluster.
|
253
500
|
# Corresponds to the JSON property `maintenancePolicy`
|
254
501
|
# @return [Google::Apis::RedisV1::ClusterMaintenancePolicy]
|
@@ -259,6 +506,11 @@ module Google
|
|
259
506
|
# @return [Google::Apis::RedisV1::ClusterMaintenanceSchedule]
|
260
507
|
attr_accessor :maintenance_schedule
|
261
508
|
|
509
|
+
# Backups that generated and managed by memorystore.
|
510
|
+
# Corresponds to the JSON property `managedBackupSource`
|
511
|
+
# @return [Google::Apis::RedisV1::ManagedBackupSource]
|
512
|
+
attr_accessor :managed_backup_source
|
513
|
+
|
262
514
|
# Required. Identifier. Unique name of the resource in this scope including
|
263
515
|
# project and location using the form: `projects/`project_id`/locations/`
|
264
516
|
# location_id`/clusters/`cluster_id``
|
@@ -355,13 +607,17 @@ module Google
|
|
355
607
|
# Update properties of this object
|
356
608
|
def update!(**args)
|
357
609
|
@authorization_mode = args[:authorization_mode] if args.key?(:authorization_mode)
|
610
|
+
@automated_backup_config = args[:automated_backup_config] if args.key?(:automated_backup_config)
|
611
|
+
@backup_collection = args[:backup_collection] if args.key?(:backup_collection)
|
358
612
|
@cluster_endpoints = args[:cluster_endpoints] if args.key?(:cluster_endpoints)
|
359
613
|
@create_time = args[:create_time] if args.key?(:create_time)
|
360
614
|
@cross_cluster_replication_config = args[:cross_cluster_replication_config] if args.key?(:cross_cluster_replication_config)
|
361
615
|
@deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled)
|
362
616
|
@discovery_endpoints = args[:discovery_endpoints] if args.key?(:discovery_endpoints)
|
617
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
363
618
|
@maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
|
364
619
|
@maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
|
620
|
+
@managed_backup_source = args[:managed_backup_source] if args.key?(:managed_backup_source)
|
365
621
|
@name = args[:name] if args.key?(:name)
|
366
622
|
@node_type = args[:node_type] if args.key?(:node_type)
|
367
623
|
@persistence_config = args[:persistence_config] if args.key?(:persistence_config)
|
@@ -553,6 +809,12 @@ module Google
|
|
553
809
|
class ConnectionDetail
|
554
810
|
include Google::Apis::Core::Hashable
|
555
811
|
|
812
|
+
# Details of consumer resources in a PSC connection that is created through
|
813
|
+
# Service Connectivity Automation.
|
814
|
+
# Corresponds to the JSON property `pscAutoConnection`
|
815
|
+
# @return [Google::Apis::RedisV1::PscAutoConnection]
|
816
|
+
attr_accessor :psc_auto_connection
|
817
|
+
|
556
818
|
# Details of consumer resources in a PSC connection.
|
557
819
|
# Corresponds to the JSON property `pscConnection`
|
558
820
|
# @return [Google::Apis::RedisV1::PscConnection]
|
@@ -564,6 +826,7 @@ module Google
|
|
564
826
|
|
565
827
|
# Update properties of this object
|
566
828
|
def update!(**args)
|
829
|
+
@psc_auto_connection = args[:psc_auto_connection] if args.key?(:psc_auto_connection)
|
567
830
|
@psc_connection = args[:psc_connection] if args.key?(:psc_connection)
|
568
831
|
end
|
569
832
|
end
|
@@ -1152,6 +1415,25 @@ module Google
|
|
1152
1415
|
end
|
1153
1416
|
end
|
1154
1417
|
|
1418
|
+
# Request for [ExportBackup].
|
1419
|
+
class ExportBackupRequest
|
1420
|
+
include Google::Apis::Core::Hashable
|
1421
|
+
|
1422
|
+
# Google Cloud Storage bucket, like "my-bucket".
|
1423
|
+
# Corresponds to the JSON property `gcsBucket`
|
1424
|
+
# @return [String]
|
1425
|
+
attr_accessor :gcs_bucket
|
1426
|
+
|
1427
|
+
def initialize(**args)
|
1428
|
+
update!(**args)
|
1429
|
+
end
|
1430
|
+
|
1431
|
+
# Update properties of this object
|
1432
|
+
def update!(**args)
|
1433
|
+
@gcs_bucket = args[:gcs_bucket] if args.key?(:gcs_bucket)
|
1434
|
+
end
|
1435
|
+
end
|
1436
|
+
|
1155
1437
|
# Request for Export.
|
1156
1438
|
class ExportInstanceRequest
|
1157
1439
|
include Google::Apis::Core::Hashable
|
@@ -1191,6 +1473,49 @@ module Google
|
|
1191
1473
|
end
|
1192
1474
|
end
|
1193
1475
|
|
1476
|
+
# This schedule allows the backup to be triggered at a fixed frequency (
|
1477
|
+
# currently only daily is supported).
|
1478
|
+
class FixedFrequencySchedule
|
1479
|
+
include Google::Apis::Core::Hashable
|
1480
|
+
|
1481
|
+
# Represents a time of day. The date and time zone are either not significant or
|
1482
|
+
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
1483
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
1484
|
+
# Corresponds to the JSON property `startTime`
|
1485
|
+
# @return [Google::Apis::RedisV1::TimeOfDay]
|
1486
|
+
attr_accessor :start_time
|
1487
|
+
|
1488
|
+
def initialize(**args)
|
1489
|
+
update!(**args)
|
1490
|
+
end
|
1491
|
+
|
1492
|
+
# Update properties of this object
|
1493
|
+
def update!(**args)
|
1494
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1495
|
+
end
|
1496
|
+
end
|
1497
|
+
|
1498
|
+
# Backups stored in Cloud Storage buckets. The Cloud Storage buckets need to be
|
1499
|
+
# the same region as the clusters.
|
1500
|
+
class GcsBackupSource
|
1501
|
+
include Google::Apis::Core::Hashable
|
1502
|
+
|
1503
|
+
# Optional. URIs of the GCS objects to import. Example: gs://bucket1/object1, gs:
|
1504
|
+
# //bucket2/folder2/object2
|
1505
|
+
# Corresponds to the JSON property `uris`
|
1506
|
+
# @return [Array<String>]
|
1507
|
+
attr_accessor :uris
|
1508
|
+
|
1509
|
+
def initialize(**args)
|
1510
|
+
update!(**args)
|
1511
|
+
end
|
1512
|
+
|
1513
|
+
# Update properties of this object
|
1514
|
+
def update!(**args)
|
1515
|
+
@uris = args[:uris] if args.key?(:uris)
|
1516
|
+
end
|
1517
|
+
end
|
1518
|
+
|
1194
1519
|
# The Cloud Storage location for the output content
|
1195
1520
|
class GcsDestination
|
1196
1521
|
include Google::Apis::Core::Hashable
|
@@ -1721,6 +2046,77 @@ module Google
|
|
1721
2046
|
end
|
1722
2047
|
end
|
1723
2048
|
|
2049
|
+
# Response for [ListBackupCollections].
|
2050
|
+
class ListBackupCollectionsResponse
|
2051
|
+
include Google::Apis::Core::Hashable
|
2052
|
+
|
2053
|
+
# A list of backupCollections in the project. If the `location_id` in the parent
|
2054
|
+
# field of the request is "-", all regions available to the project are queried,
|
2055
|
+
# and the results aggregated. If in such an aggregated query a location is
|
2056
|
+
# unavailable, a placeholder backupCollection entry is included in the response
|
2057
|
+
# with the `name` field set to a value of the form `projects/`project_id`/
|
2058
|
+
# locations/`location_id`/backupCollections/`- and the `status` field set to
|
2059
|
+
# ERROR and `status_message` field set to "location not available for
|
2060
|
+
# ListBackupCollections".
|
2061
|
+
# Corresponds to the JSON property `backupCollections`
|
2062
|
+
# @return [Array<Google::Apis::RedisV1::BackupCollection>]
|
2063
|
+
attr_accessor :backup_collections
|
2064
|
+
|
2065
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
2066
|
+
# results in the list.
|
2067
|
+
# Corresponds to the JSON property `nextPageToken`
|
2068
|
+
# @return [String]
|
2069
|
+
attr_accessor :next_page_token
|
2070
|
+
|
2071
|
+
# Locations that could not be reached.
|
2072
|
+
# Corresponds to the JSON property `unreachable`
|
2073
|
+
# @return [Array<String>]
|
2074
|
+
attr_accessor :unreachable
|
2075
|
+
|
2076
|
+
def initialize(**args)
|
2077
|
+
update!(**args)
|
2078
|
+
end
|
2079
|
+
|
2080
|
+
# Update properties of this object
|
2081
|
+
def update!(**args)
|
2082
|
+
@backup_collections = args[:backup_collections] if args.key?(:backup_collections)
|
2083
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2084
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
2085
|
+
end
|
2086
|
+
end
|
2087
|
+
|
2088
|
+
# Response for [ListBackups].
|
2089
|
+
class ListBackupsResponse
|
2090
|
+
include Google::Apis::Core::Hashable
|
2091
|
+
|
2092
|
+
# A list of backups in the project.
|
2093
|
+
# Corresponds to the JSON property `backups`
|
2094
|
+
# @return [Array<Google::Apis::RedisV1::Backup>]
|
2095
|
+
attr_accessor :backups
|
2096
|
+
|
2097
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
2098
|
+
# results in the list.
|
2099
|
+
# Corresponds to the JSON property `nextPageToken`
|
2100
|
+
# @return [String]
|
2101
|
+
attr_accessor :next_page_token
|
2102
|
+
|
2103
|
+
# Backups that could not be reached.
|
2104
|
+
# Corresponds to the JSON property `unreachable`
|
2105
|
+
# @return [Array<String>]
|
2106
|
+
attr_accessor :unreachable
|
2107
|
+
|
2108
|
+
def initialize(**args)
|
2109
|
+
update!(**args)
|
2110
|
+
end
|
2111
|
+
|
2112
|
+
# Update properties of this object
|
2113
|
+
def update!(**args)
|
2114
|
+
@backups = args[:backups] if args.key?(:backups)
|
2115
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2116
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
2117
|
+
end
|
2118
|
+
end
|
2119
|
+
|
1724
2120
|
# Response for ListClusters.
|
1725
2121
|
class ListClustersResponse
|
1726
2122
|
include Google::Apis::Core::Hashable
|
@@ -1920,6 +2316,12 @@ module Google
|
|
1920
2316
|
# @return [Fixnum]
|
1921
2317
|
attr_accessor :shard_count
|
1922
2318
|
|
2319
|
+
# Optional. The number of vCPUs. TODO(b/342344482, b/342346271) add proto
|
2320
|
+
# validations again after bug fix.
|
2321
|
+
# Corresponds to the JSON property `vcpuCount`
|
2322
|
+
# @return [Float]
|
2323
|
+
attr_accessor :vcpu_count
|
2324
|
+
|
1923
2325
|
def initialize(**args)
|
1924
2326
|
update!(**args)
|
1925
2327
|
end
|
@@ -1929,6 +2331,7 @@ module Google
|
|
1929
2331
|
@cpu_count = args[:cpu_count] if args.key?(:cpu_count)
|
1930
2332
|
@memory_size_in_bytes = args[:memory_size_in_bytes] if args.key?(:memory_size_in_bytes)
|
1931
2333
|
@shard_count = args[:shard_count] if args.key?(:shard_count)
|
2334
|
+
@vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count)
|
1932
2335
|
end
|
1933
2336
|
end
|
1934
2337
|
|
@@ -2014,6 +2417,29 @@ module Google
|
|
2014
2417
|
end
|
2015
2418
|
end
|
2016
2419
|
|
2420
|
+
# Backups that generated and managed by memorystore.
|
2421
|
+
class ManagedBackupSource
|
2422
|
+
include Google::Apis::Core::Hashable
|
2423
|
+
|
2424
|
+
# Optional. Example: //redis.googleapis.com/projects/`project`/locations/`
|
2425
|
+
# location`/backupCollections/`collection`/backups/`backup` A shorter version (
|
2426
|
+
# without the prefix) of the backup name is also supported, like projects/`
|
2427
|
+
# project`/locations/`location`/backupCollections/`collection`/backups/`
|
2428
|
+
# backup_id` In this case, it assumes the backup is under redis.googleapis.com.
|
2429
|
+
# Corresponds to the JSON property `backup`
|
2430
|
+
# @return [String]
|
2431
|
+
attr_accessor :backup
|
2432
|
+
|
2433
|
+
def initialize(**args)
|
2434
|
+
update!(**args)
|
2435
|
+
end
|
2436
|
+
|
2437
|
+
# Update properties of this object
|
2438
|
+
def update!(**args)
|
2439
|
+
@backup = args[:backup] if args.key?(:backup)
|
2440
|
+
end
|
2441
|
+
end
|
2442
|
+
|
2017
2443
|
#
|
2018
2444
|
class ManagedCertificateAuthority
|
2019
2445
|
include Google::Apis::Core::Hashable
|
@@ -2383,6 +2809,76 @@ module Google
|
|
2383
2809
|
end
|
2384
2810
|
end
|
2385
2811
|
|
2812
|
+
# Details of consumer resources in a PSC connection that is created through
|
2813
|
+
# Service Connectivity Automation.
|
2814
|
+
class PscAutoConnection
|
2815
|
+
include Google::Apis::Core::Hashable
|
2816
|
+
|
2817
|
+
# Output only. The IP allocated on the consumer network for the PSC forwarding
|
2818
|
+
# rule.
|
2819
|
+
# Corresponds to the JSON property `address`
|
2820
|
+
# @return [String]
|
2821
|
+
attr_accessor :address
|
2822
|
+
|
2823
|
+
# Output only. Type of the PSC connection.
|
2824
|
+
# Corresponds to the JSON property `connectionType`
|
2825
|
+
# @return [String]
|
2826
|
+
attr_accessor :connection_type
|
2827
|
+
|
2828
|
+
# Output only. The URI of the consumer side forwarding rule. Example: projects/`
|
2829
|
+
# projectNumOrId`/regions/us-east1/forwardingRules/`resourceId`.
|
2830
|
+
# Corresponds to the JSON property `forwardingRule`
|
2831
|
+
# @return [String]
|
2832
|
+
attr_accessor :forwarding_rule
|
2833
|
+
|
2834
|
+
# Required. The consumer network where the IP address resides, in the form of
|
2835
|
+
# projects/`project_id`/global/networks/`network_id`.
|
2836
|
+
# Corresponds to the JSON property `network`
|
2837
|
+
# @return [String]
|
2838
|
+
attr_accessor :network
|
2839
|
+
|
2840
|
+
# Required. The consumer project_id where the forwarding rule is created from.
|
2841
|
+
# Corresponds to the JSON property `projectId`
|
2842
|
+
# @return [String]
|
2843
|
+
attr_accessor :project_id
|
2844
|
+
|
2845
|
+
# Output only. The PSC connection id of the forwarding rule connected to the
|
2846
|
+
# service attachment.
|
2847
|
+
# Corresponds to the JSON property `pscConnectionId`
|
2848
|
+
# @return [String]
|
2849
|
+
attr_accessor :psc_connection_id
|
2850
|
+
|
2851
|
+
# Output only. The status of the PSC connection. Please note that this value is
|
2852
|
+
# updated periodically. Please use Private Service Connect APIs for the latest
|
2853
|
+
# status.
|
2854
|
+
# Corresponds to the JSON property `pscConnectionStatus`
|
2855
|
+
# @return [String]
|
2856
|
+
attr_accessor :psc_connection_status
|
2857
|
+
|
2858
|
+
# Output only. The service attachment which is the target of the PSC connection,
|
2859
|
+
# in the form of projects/`project-id`/regions/`region`/serviceAttachments/`
|
2860
|
+
# service-attachment-id`.
|
2861
|
+
# Corresponds to the JSON property `serviceAttachment`
|
2862
|
+
# @return [String]
|
2863
|
+
attr_accessor :service_attachment
|
2864
|
+
|
2865
|
+
def initialize(**args)
|
2866
|
+
update!(**args)
|
2867
|
+
end
|
2868
|
+
|
2869
|
+
# Update properties of this object
|
2870
|
+
def update!(**args)
|
2871
|
+
@address = args[:address] if args.key?(:address)
|
2872
|
+
@connection_type = args[:connection_type] if args.key?(:connection_type)
|
2873
|
+
@forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
|
2874
|
+
@network = args[:network] if args.key?(:network)
|
2875
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
2876
|
+
@psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id)
|
2877
|
+
@psc_connection_status = args[:psc_connection_status] if args.key?(:psc_connection_status)
|
2878
|
+
@service_attachment = args[:service_attachment] if args.key?(:service_attachment)
|
2879
|
+
end
|
2880
|
+
end
|
2881
|
+
|
2386
2882
|
#
|
2387
2883
|
class PscConfig
|
2388
2884
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RedisV1
|
18
18
|
# Version of the google-apis-redis_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.65.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241203"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,18 +28,48 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class AutomatedBackupConfig
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
31
37
|
class AvailabilityConfiguration
|
32
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
39
|
|
34
40
|
include Google::Apis::Core::JsonObjectSupport
|
35
41
|
end
|
36
42
|
|
43
|
+
class Backup
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class BackupClusterRequest
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class BackupCollection
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
37
61
|
class BackupConfiguration
|
38
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
63
|
|
40
64
|
include Google::Apis::Core::JsonObjectSupport
|
41
65
|
end
|
42
66
|
|
67
|
+
class BackupFile
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
43
73
|
class BackupRun
|
44
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
75
|
|
@@ -166,6 +196,12 @@ module Google
|
|
166
196
|
include Google::Apis::Core::JsonObjectSupport
|
167
197
|
end
|
168
198
|
|
199
|
+
class ExportBackupRequest
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
169
205
|
class ExportInstanceRequest
|
170
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
207
|
|
@@ -178,6 +214,18 @@ module Google
|
|
178
214
|
include Google::Apis::Core::JsonObjectSupport
|
179
215
|
end
|
180
216
|
|
217
|
+
class FixedFrequencySchedule
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
223
|
+
class GcsBackupSource
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
181
229
|
class GcsDestination
|
182
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
231
|
|
@@ -238,6 +286,18 @@ module Google
|
|
238
286
|
include Google::Apis::Core::JsonObjectSupport
|
239
287
|
end
|
240
288
|
|
289
|
+
class ListBackupCollectionsResponse
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
295
|
+
class ListBackupsResponse
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
241
301
|
class ListClustersResponse
|
242
302
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
303
|
|
@@ -286,6 +346,12 @@ module Google
|
|
286
346
|
include Google::Apis::Core::JsonObjectSupport
|
287
347
|
end
|
288
348
|
|
349
|
+
class ManagedBackupSource
|
350
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
351
|
+
|
352
|
+
include Google::Apis::Core::JsonObjectSupport
|
353
|
+
end
|
354
|
+
|
289
355
|
class ManagedCertificateAuthority
|
290
356
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
357
|
|
@@ -346,6 +412,12 @@ module Google
|
|
346
412
|
include Google::Apis::Core::JsonObjectSupport
|
347
413
|
end
|
348
414
|
|
415
|
+
class PscAutoConnection
|
416
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
|
+
|
418
|
+
include Google::Apis::Core::JsonObjectSupport
|
419
|
+
end
|
420
|
+
|
349
421
|
class PscConfig
|
350
422
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
351
423
|
|
@@ -473,6 +545,16 @@ module Google
|
|
473
545
|
end
|
474
546
|
end
|
475
547
|
|
548
|
+
class AutomatedBackupConfig
|
549
|
+
# @private
|
550
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
551
|
+
property :automated_backup_mode, as: 'automatedBackupMode'
|
552
|
+
property :fixed_frequency_schedule, as: 'fixedFrequencySchedule', class: Google::Apis::RedisV1::FixedFrequencySchedule, decorator: Google::Apis::RedisV1::FixedFrequencySchedule::Representation
|
553
|
+
|
554
|
+
property :retention, as: 'retention'
|
555
|
+
end
|
556
|
+
end
|
557
|
+
|
476
558
|
class AvailabilityConfiguration
|
477
559
|
# @private
|
478
560
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -484,6 +566,45 @@ module Google
|
|
484
566
|
end
|
485
567
|
end
|
486
568
|
|
569
|
+
class Backup
|
570
|
+
# @private
|
571
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
572
|
+
collection :backup_files, as: 'backupFiles', class: Google::Apis::RedisV1::BackupFile, decorator: Google::Apis::RedisV1::BackupFile::Representation
|
573
|
+
|
574
|
+
property :backup_type, as: 'backupType'
|
575
|
+
property :cluster, as: 'cluster'
|
576
|
+
property :cluster_uid, as: 'clusterUid'
|
577
|
+
property :create_time, as: 'createTime'
|
578
|
+
property :engine_version, as: 'engineVersion'
|
579
|
+
property :expire_time, as: 'expireTime'
|
580
|
+
property :name, as: 'name'
|
581
|
+
property :node_type, as: 'nodeType'
|
582
|
+
property :replica_count, as: 'replicaCount'
|
583
|
+
property :shard_count, as: 'shardCount'
|
584
|
+
property :state, as: 'state'
|
585
|
+
property :total_size_bytes, :numeric_string => true, as: 'totalSizeBytes'
|
586
|
+
property :uid, as: 'uid'
|
587
|
+
end
|
588
|
+
end
|
589
|
+
|
590
|
+
class BackupClusterRequest
|
591
|
+
# @private
|
592
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
593
|
+
property :backup_id, as: 'backupId'
|
594
|
+
property :ttl, as: 'ttl'
|
595
|
+
end
|
596
|
+
end
|
597
|
+
|
598
|
+
class BackupCollection
|
599
|
+
# @private
|
600
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
601
|
+
property :cluster, as: 'cluster'
|
602
|
+
property :cluster_uid, as: 'clusterUid'
|
603
|
+
property :name, as: 'name'
|
604
|
+
property :uid, as: 'uid'
|
605
|
+
end
|
606
|
+
end
|
607
|
+
|
487
608
|
class BackupConfiguration
|
488
609
|
# @private
|
489
610
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -494,6 +615,15 @@ module Google
|
|
494
615
|
end
|
495
616
|
end
|
496
617
|
|
618
|
+
class BackupFile
|
619
|
+
# @private
|
620
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
621
|
+
property :create_time, as: 'createTime'
|
622
|
+
property :file_name, as: 'fileName'
|
623
|
+
property :size_bytes, :numeric_string => true, as: 'sizeBytes'
|
624
|
+
end
|
625
|
+
end
|
626
|
+
|
497
627
|
class BackupRun
|
498
628
|
# @private
|
499
629
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -525,6 +655,9 @@ module Google
|
|
525
655
|
# @private
|
526
656
|
class Representation < Google::Apis::Core::JsonRepresentation
|
527
657
|
property :authorization_mode, as: 'authorizationMode'
|
658
|
+
property :automated_backup_config, as: 'automatedBackupConfig', class: Google::Apis::RedisV1::AutomatedBackupConfig, decorator: Google::Apis::RedisV1::AutomatedBackupConfig::Representation
|
659
|
+
|
660
|
+
property :backup_collection, as: 'backupCollection'
|
528
661
|
collection :cluster_endpoints, as: 'clusterEndpoints', class: Google::Apis::RedisV1::ClusterEndpoint, decorator: Google::Apis::RedisV1::ClusterEndpoint::Representation
|
529
662
|
|
530
663
|
property :create_time, as: 'createTime'
|
@@ -533,10 +666,14 @@ module Google
|
|
533
666
|
property :deletion_protection_enabled, as: 'deletionProtectionEnabled'
|
534
667
|
collection :discovery_endpoints, as: 'discoveryEndpoints', class: Google::Apis::RedisV1::DiscoveryEndpoint, decorator: Google::Apis::RedisV1::DiscoveryEndpoint::Representation
|
535
668
|
|
669
|
+
property :gcs_source, as: 'gcsSource', class: Google::Apis::RedisV1::GcsBackupSource, decorator: Google::Apis::RedisV1::GcsBackupSource::Representation
|
670
|
+
|
536
671
|
property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::RedisV1::ClusterMaintenancePolicy, decorator: Google::Apis::RedisV1::ClusterMaintenancePolicy::Representation
|
537
672
|
|
538
673
|
property :maintenance_schedule, as: 'maintenanceSchedule', class: Google::Apis::RedisV1::ClusterMaintenanceSchedule, decorator: Google::Apis::RedisV1::ClusterMaintenanceSchedule::Representation
|
539
674
|
|
675
|
+
property :managed_backup_source, as: 'managedBackupSource', class: Google::Apis::RedisV1::ManagedBackupSource, decorator: Google::Apis::RedisV1::ManagedBackupSource::Representation
|
676
|
+
|
540
677
|
property :name, as: 'name'
|
541
678
|
property :node_type, as: 'nodeType'
|
542
679
|
property :persistence_config, as: 'persistenceConfig', class: Google::Apis::RedisV1::ClusterPersistenceConfig, decorator: Google::Apis::RedisV1::ClusterPersistenceConfig::Representation
|
@@ -619,6 +756,8 @@ module Google
|
|
619
756
|
class ConnectionDetail
|
620
757
|
# @private
|
621
758
|
class Representation < Google::Apis::Core::JsonRepresentation
|
759
|
+
property :psc_auto_connection, as: 'pscAutoConnection', class: Google::Apis::RedisV1::PscAutoConnection, decorator: Google::Apis::RedisV1::PscAutoConnection::Representation
|
760
|
+
|
622
761
|
property :psc_connection, as: 'pscConnection', class: Google::Apis::RedisV1::PscConnection, decorator: Google::Apis::RedisV1::PscConnection::Representation
|
623
762
|
|
624
763
|
end
|
@@ -771,6 +910,13 @@ module Google
|
|
771
910
|
end
|
772
911
|
end
|
773
912
|
|
913
|
+
class ExportBackupRequest
|
914
|
+
# @private
|
915
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
916
|
+
property :gcs_bucket, as: 'gcsBucket'
|
917
|
+
end
|
918
|
+
end
|
919
|
+
|
774
920
|
class ExportInstanceRequest
|
775
921
|
# @private
|
776
922
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -786,6 +932,21 @@ module Google
|
|
786
932
|
end
|
787
933
|
end
|
788
934
|
|
935
|
+
class FixedFrequencySchedule
|
936
|
+
# @private
|
937
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
938
|
+
property :start_time, as: 'startTime', class: Google::Apis::RedisV1::TimeOfDay, decorator: Google::Apis::RedisV1::TimeOfDay::Representation
|
939
|
+
|
940
|
+
end
|
941
|
+
end
|
942
|
+
|
943
|
+
class GcsBackupSource
|
944
|
+
# @private
|
945
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
946
|
+
collection :uris, as: 'uris'
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
789
950
|
class GcsDestination
|
790
951
|
# @private
|
791
952
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -913,6 +1074,26 @@ module Google
|
|
913
1074
|
end
|
914
1075
|
end
|
915
1076
|
|
1077
|
+
class ListBackupCollectionsResponse
|
1078
|
+
# @private
|
1079
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1080
|
+
collection :backup_collections, as: 'backupCollections', class: Google::Apis::RedisV1::BackupCollection, decorator: Google::Apis::RedisV1::BackupCollection::Representation
|
1081
|
+
|
1082
|
+
property :next_page_token, as: 'nextPageToken'
|
1083
|
+
collection :unreachable, as: 'unreachable'
|
1084
|
+
end
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
class ListBackupsResponse
|
1088
|
+
# @private
|
1089
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1090
|
+
collection :backups, as: 'backups', class: Google::Apis::RedisV1::Backup, decorator: Google::Apis::RedisV1::Backup::Representation
|
1091
|
+
|
1092
|
+
property :next_page_token, as: 'nextPageToken'
|
1093
|
+
collection :unreachable, as: 'unreachable'
|
1094
|
+
end
|
1095
|
+
end
|
1096
|
+
|
916
1097
|
class ListClustersResponse
|
917
1098
|
# @private
|
918
1099
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -968,6 +1149,7 @@ module Google
|
|
968
1149
|
property :cpu_count, as: 'cpuCount'
|
969
1150
|
property :memory_size_in_bytes, :numeric_string => true, as: 'memorySizeInBytes'
|
970
1151
|
property :shard_count, as: 'shardCount'
|
1152
|
+
property :vcpu_count, as: 'vcpuCount'
|
971
1153
|
end
|
972
1154
|
end
|
973
1155
|
|
@@ -992,6 +1174,13 @@ module Google
|
|
992
1174
|
end
|
993
1175
|
end
|
994
1176
|
|
1177
|
+
class ManagedBackupSource
|
1178
|
+
# @private
|
1179
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1180
|
+
property :backup, as: 'backup'
|
1181
|
+
end
|
1182
|
+
end
|
1183
|
+
|
995
1184
|
class ManagedCertificateAuthority
|
996
1185
|
# @private
|
997
1186
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1091,6 +1280,20 @@ module Google
|
|
1091
1280
|
end
|
1092
1281
|
end
|
1093
1282
|
|
1283
|
+
class PscAutoConnection
|
1284
|
+
# @private
|
1285
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1286
|
+
property :address, as: 'address'
|
1287
|
+
property :connection_type, as: 'connectionType'
|
1288
|
+
property :forwarding_rule, as: 'forwardingRule'
|
1289
|
+
property :network, as: 'network'
|
1290
|
+
property :project_id, as: 'projectId'
|
1291
|
+
property :psc_connection_id, as: 'pscConnectionId'
|
1292
|
+
property :psc_connection_status, as: 'pscConnectionStatus'
|
1293
|
+
property :service_attachment, as: 'serviceAttachment'
|
1294
|
+
end
|
1295
|
+
end
|
1296
|
+
|
1094
1297
|
class PscConfig
|
1095
1298
|
# @private
|
1096
1299
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -124,6 +124,273 @@ module Google
|
|
124
124
|
execute_or_queue_command(command, &block)
|
125
125
|
end
|
126
126
|
|
127
|
+
# Get a backup collection.
|
128
|
+
# @param [String] name
|
129
|
+
# Required. Redis backupCollection resource name using the form: `projects/`
|
130
|
+
# project_id`/locations/`location_id`/backupCollections/`backup_collection_id``
|
131
|
+
# where `location_id` refers to a GCP region.
|
132
|
+
# @param [String] fields
|
133
|
+
# Selector specifying which fields to include in a partial response.
|
134
|
+
# @param [String] quota_user
|
135
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
136
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
137
|
+
# @param [Google::Apis::RequestOptions] options
|
138
|
+
# Request-specific options
|
139
|
+
#
|
140
|
+
# @yield [result, err] Result & error if block supplied
|
141
|
+
# @yieldparam result [Google::Apis::RedisV1::BackupCollection] parsed result object
|
142
|
+
# @yieldparam err [StandardError] error object if request failed
|
143
|
+
#
|
144
|
+
# @return [Google::Apis::RedisV1::BackupCollection]
|
145
|
+
#
|
146
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
147
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
148
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
149
|
+
def get_project_location_backup_collection(name, fields: nil, quota_user: nil, options: nil, &block)
|
150
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
151
|
+
command.response_representation = Google::Apis::RedisV1::BackupCollection::Representation
|
152
|
+
command.response_class = Google::Apis::RedisV1::BackupCollection
|
153
|
+
command.params['name'] = name unless name.nil?
|
154
|
+
command.query['fields'] = fields unless fields.nil?
|
155
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
156
|
+
execute_or_queue_command(command, &block)
|
157
|
+
end
|
158
|
+
|
159
|
+
# Lists all backup collections owned by a consumer project in either the
|
160
|
+
# specified location (region) or all locations. If `location_id` is specified as
|
161
|
+
# `-` (wildcard), then all regions available to the project are queried, and the
|
162
|
+
# results are aggregated.
|
163
|
+
# @param [String] parent
|
164
|
+
# Required. The resource name of the backupCollection location using the form: `
|
165
|
+
# projects/`project_id`/locations/`location_id`` where `location_id` refers to a
|
166
|
+
# GCP region.
|
167
|
+
# @param [Fixnum] page_size
|
168
|
+
# Optional. The maximum number of items to return. If not specified, a default
|
169
|
+
# value of 1000 will be used by the service. Regardless of the page_size value,
|
170
|
+
# the response may include a partial list and a caller should only rely on
|
171
|
+
# response's `next_page_token` to determine if there are more clusters left to
|
172
|
+
# be queried.
|
173
|
+
# @param [String] page_token
|
174
|
+
# Optional. The `next_page_token` value returned from a previous [
|
175
|
+
# ListBackupCollections] request, if any.
|
176
|
+
# @param [String] fields
|
177
|
+
# Selector specifying which fields to include in a partial response.
|
178
|
+
# @param [String] quota_user
|
179
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
180
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
181
|
+
# @param [Google::Apis::RequestOptions] options
|
182
|
+
# Request-specific options
|
183
|
+
#
|
184
|
+
# @yield [result, err] Result & error if block supplied
|
185
|
+
# @yieldparam result [Google::Apis::RedisV1::ListBackupCollectionsResponse] parsed result object
|
186
|
+
# @yieldparam err [StandardError] error object if request failed
|
187
|
+
#
|
188
|
+
# @return [Google::Apis::RedisV1::ListBackupCollectionsResponse]
|
189
|
+
#
|
190
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
191
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
192
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
193
|
+
def list_project_location_backup_collections(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
194
|
+
command = make_simple_command(:get, 'v1/{+parent}/backupCollections', options)
|
195
|
+
command.response_representation = Google::Apis::RedisV1::ListBackupCollectionsResponse::Representation
|
196
|
+
command.response_class = Google::Apis::RedisV1::ListBackupCollectionsResponse
|
197
|
+
command.params['parent'] = parent unless parent.nil?
|
198
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
199
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
200
|
+
command.query['fields'] = fields unless fields.nil?
|
201
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
202
|
+
execute_or_queue_command(command, &block)
|
203
|
+
end
|
204
|
+
|
205
|
+
# Deletes a specific backup.
|
206
|
+
# @param [String] name
|
207
|
+
# Required. Redis backup resource name using the form: `projects/`project_id`/
|
208
|
+
# locations/`location_id`/backupCollections/`backup_collection_id`/backups/`
|
209
|
+
# backup_id``
|
210
|
+
# @param [String] request_id
|
211
|
+
# Optional. Idempotent request UUID.
|
212
|
+
# @param [String] fields
|
213
|
+
# Selector specifying which fields to include in a partial response.
|
214
|
+
# @param [String] quota_user
|
215
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
216
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
217
|
+
# @param [Google::Apis::RequestOptions] options
|
218
|
+
# Request-specific options
|
219
|
+
#
|
220
|
+
# @yield [result, err] Result & error if block supplied
|
221
|
+
# @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
|
222
|
+
# @yieldparam err [StandardError] error object if request failed
|
223
|
+
#
|
224
|
+
# @return [Google::Apis::RedisV1::Operation]
|
225
|
+
#
|
226
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
227
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
228
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
229
|
+
def delete_project_location_backup_collection_backup(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
230
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
231
|
+
command.response_representation = Google::Apis::RedisV1::Operation::Representation
|
232
|
+
command.response_class = Google::Apis::RedisV1::Operation
|
233
|
+
command.params['name'] = name unless name.nil?
|
234
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
235
|
+
command.query['fields'] = fields unless fields.nil?
|
236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
237
|
+
execute_or_queue_command(command, &block)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Exports a specific backup to a customer target Cloud Storage URI.
|
241
|
+
# @param [String] name
|
242
|
+
# Required. Redis backup resource name using the form: `projects/`project_id`/
|
243
|
+
# locations/`location_id`/backupCollections/`backup_collection_id`/backups/`
|
244
|
+
# backup_id``
|
245
|
+
# @param [Google::Apis::RedisV1::ExportBackupRequest] export_backup_request_object
|
246
|
+
# @param [String] fields
|
247
|
+
# Selector specifying which fields to include in a partial response.
|
248
|
+
# @param [String] quota_user
|
249
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
250
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
251
|
+
# @param [Google::Apis::RequestOptions] options
|
252
|
+
# Request-specific options
|
253
|
+
#
|
254
|
+
# @yield [result, err] Result & error if block supplied
|
255
|
+
# @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
|
256
|
+
# @yieldparam err [StandardError] error object if request failed
|
257
|
+
#
|
258
|
+
# @return [Google::Apis::RedisV1::Operation]
|
259
|
+
#
|
260
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
261
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
262
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
263
|
+
def export_backup(name, export_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
264
|
+
command = make_simple_command(:post, 'v1/{+name}:export', options)
|
265
|
+
command.request_representation = Google::Apis::RedisV1::ExportBackupRequest::Representation
|
266
|
+
command.request_object = export_backup_request_object
|
267
|
+
command.response_representation = Google::Apis::RedisV1::Operation::Representation
|
268
|
+
command.response_class = Google::Apis::RedisV1::Operation
|
269
|
+
command.params['name'] = name unless name.nil?
|
270
|
+
command.query['fields'] = fields unless fields.nil?
|
271
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
272
|
+
execute_or_queue_command(command, &block)
|
273
|
+
end
|
274
|
+
|
275
|
+
# Gets the details of a specific backup.
|
276
|
+
# @param [String] name
|
277
|
+
# Required. Redis backup resource name using the form: `projects/`project_id`/
|
278
|
+
# locations/`location_id`/backupCollections/`backup_collection_id`/backups/`
|
279
|
+
# backup_id``
|
280
|
+
# @param [String] fields
|
281
|
+
# Selector specifying which fields to include in a partial response.
|
282
|
+
# @param [String] quota_user
|
283
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
284
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
285
|
+
# @param [Google::Apis::RequestOptions] options
|
286
|
+
# Request-specific options
|
287
|
+
#
|
288
|
+
# @yield [result, err] Result & error if block supplied
|
289
|
+
# @yieldparam result [Google::Apis::RedisV1::Backup] parsed result object
|
290
|
+
# @yieldparam err [StandardError] error object if request failed
|
291
|
+
#
|
292
|
+
# @return [Google::Apis::RedisV1::Backup]
|
293
|
+
#
|
294
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
295
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
296
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
297
|
+
def get_project_location_backup_collection_backup(name, fields: nil, quota_user: nil, options: nil, &block)
|
298
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
299
|
+
command.response_representation = Google::Apis::RedisV1::Backup::Representation
|
300
|
+
command.response_class = Google::Apis::RedisV1::Backup
|
301
|
+
command.params['name'] = name unless name.nil?
|
302
|
+
command.query['fields'] = fields unless fields.nil?
|
303
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
304
|
+
execute_or_queue_command(command, &block)
|
305
|
+
end
|
306
|
+
|
307
|
+
# Lists all backups owned by a backup collection.
|
308
|
+
# @param [String] parent
|
309
|
+
# Required. The resource name of the backupCollection using the form: `projects/`
|
310
|
+
# project_id`/locations/`location_id`/backupCollections/`backup_collection_id``
|
311
|
+
# @param [Fixnum] page_size
|
312
|
+
# Optional. The maximum number of items to return. If not specified, a default
|
313
|
+
# value of 1000 will be used by the service. Regardless of the page_size value,
|
314
|
+
# the response may include a partial list and a caller should only rely on
|
315
|
+
# response's `next_page_token` to determine if there are more clusters left to
|
316
|
+
# be queried.
|
317
|
+
# @param [String] page_token
|
318
|
+
# Optional. The `next_page_token` value returned from a previous [
|
319
|
+
# ListBackupCollections] request, if any.
|
320
|
+
# @param [String] fields
|
321
|
+
# Selector specifying which fields to include in a partial response.
|
322
|
+
# @param [String] quota_user
|
323
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
324
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
325
|
+
# @param [Google::Apis::RequestOptions] options
|
326
|
+
# Request-specific options
|
327
|
+
#
|
328
|
+
# @yield [result, err] Result & error if block supplied
|
329
|
+
# @yieldparam result [Google::Apis::RedisV1::ListBackupsResponse] parsed result object
|
330
|
+
# @yieldparam err [StandardError] error object if request failed
|
331
|
+
#
|
332
|
+
# @return [Google::Apis::RedisV1::ListBackupsResponse]
|
333
|
+
#
|
334
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
335
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
336
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
337
|
+
def list_project_location_backup_collection_backups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
338
|
+
command = make_simple_command(:get, 'v1/{+parent}/backups', options)
|
339
|
+
command.response_representation = Google::Apis::RedisV1::ListBackupsResponse::Representation
|
340
|
+
command.response_class = Google::Apis::RedisV1::ListBackupsResponse
|
341
|
+
command.params['parent'] = parent unless parent.nil?
|
342
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
343
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
344
|
+
command.query['fields'] = fields unless fields.nil?
|
345
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
346
|
+
execute_or_queue_command(command, &block)
|
347
|
+
end
|
348
|
+
|
349
|
+
# Backup Redis Cluster. If this is the first time a backup is being created, a
|
350
|
+
# backup collection will be created at the backend, and this backup belongs to
|
351
|
+
# this collection. Both collection and backup will have a resource name. Backup
|
352
|
+
# will be executed for each shard. A replica (primary if nonHA) will be selected
|
353
|
+
# to perform the execution. Backup call will be rejected if there is an ongoing
|
354
|
+
# backup or update operation. Be aware that during preview, if the cluster's
|
355
|
+
# internal software version is too old, critical update will be performed before
|
356
|
+
# actual backup. Once the internal software version is updated to the minimum
|
357
|
+
# version required by the backup feature, subsequent backups will not require
|
358
|
+
# critical update. After preview, there will be no critical update needed for
|
359
|
+
# backup.
|
360
|
+
# @param [String] name
|
361
|
+
# Required. Redis cluster resource name using the form: `projects/`project_id`/
|
362
|
+
# locations/`location_id`/clusters/`cluster_id`` where `location_id` refers to a
|
363
|
+
# GCP region.
|
364
|
+
# @param [Google::Apis::RedisV1::BackupClusterRequest] backup_cluster_request_object
|
365
|
+
# @param [String] fields
|
366
|
+
# Selector specifying which fields to include in a partial response.
|
367
|
+
# @param [String] quota_user
|
368
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
369
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
370
|
+
# @param [Google::Apis::RequestOptions] options
|
371
|
+
# Request-specific options
|
372
|
+
#
|
373
|
+
# @yield [result, err] Result & error if block supplied
|
374
|
+
# @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
|
375
|
+
# @yieldparam err [StandardError] error object if request failed
|
376
|
+
#
|
377
|
+
# @return [Google::Apis::RedisV1::Operation]
|
378
|
+
#
|
379
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
380
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
381
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
382
|
+
def backup_cluster(name, backup_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
383
|
+
command = make_simple_command(:post, 'v1/{+name}:backup', options)
|
384
|
+
command.request_representation = Google::Apis::RedisV1::BackupClusterRequest::Representation
|
385
|
+
command.request_object = backup_cluster_request_object
|
386
|
+
command.response_representation = Google::Apis::RedisV1::Operation::Representation
|
387
|
+
command.response_class = Google::Apis::RedisV1::Operation
|
388
|
+
command.params['name'] = name unless name.nil?
|
389
|
+
command.query['fields'] = fields unless fields.nil?
|
390
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
391
|
+
execute_or_queue_command(command, &block)
|
392
|
+
end
|
393
|
+
|
127
394
|
# Creates a Redis cluster based on the specified properties. The creation is
|
128
395
|
# executed asynchronously and callers may check the returned operation to track
|
129
396
|
# its progress. Once the operation is completed the Redis cluster will be fully
|
@@ -831,8 +1098,8 @@ module Google
|
|
831
1098
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
832
1099
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
833
1100
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
834
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
835
|
-
# corresponding to `Code.CANCELLED`.
|
1101
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
1102
|
+
# , corresponding to `Code.CANCELLED`.
|
836
1103
|
# @param [String] name
|
837
1104
|
# The name of the operation resource to be cancelled.
|
838
1105
|
# @param [String] fields
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-redis_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.65.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: 2024-
|
11
|
+
date: 2024-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-redis_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.65.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-redis_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.23
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Cloud Memorystore for Redis API V1
|