google-apis-redis_v1 0.63.0 → 0.64.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 457bd7040432659ea73550295cefbd0d60e46334338e6cfc2499b2317dd2070d
4
- data.tar.gz: 3dcc0f79ac2d91a045034d80aa73dad5ba1fcf33eb7ae690e952f4ab586fa10f
3
+ metadata.gz: b3581cfb863ce6874b63839850301f2e0ac9f40a3154dad84b3971c01cc7df0f
4
+ data.tar.gz: 2e658cdd234f6103503ea8dd14faae08ac3cc818d29ff1c770f4ce3bf4c67f76
5
5
  SHA512:
6
- metadata.gz: cfb860db638f578ed8a35ae6614c1a63a511e62347b32c7ffd073d613b17f5da610c0da17ff1f7406f50ab4aa671d557fd679cd6a9e985e9a402185ee872ef9e
7
- data.tar.gz: 9e12b72ced0109ff5d45468f27195d76bd847b8ee3b2798201ffb03bca504dc7656b57697db122cdedf4e5d5e8fdd065be0f2c85614fc86b71345df362c31129
6
+ metadata.gz: 743aa3d75ae81e75b7e6af1aa98512c37eb178d8cd068b4deae107f666f4edd6cabe9b9667f99c6ac5fd5592a09dc45060c700e61e7306f97d036fcb9fa38258
7
+ data.tar.gz: e4b7e6e32a53e3afea815ee4f36d0d785a22e87cb92575d9aa6a09f885fcf4a5a81c1d6ddf6ce567dd476c97f2004ce6c1a4a3da51d991fd24385e53075192d4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-redis_v1
2
2
 
3
+ ### v0.64.0 (2024-11-24)
4
+
5
+ * Regenerated from discovery document revision 20241114
6
+
3
7
  ### v0.63.0 (2024-10-27)
4
8
 
5
9
  * 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
+ # If not specified, the default value is 100 years which is also the maximum
62
+ # value supported. The minimum value is 1 day.
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,158 @@ 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
+ def initialize(**args)
204
+ update!(**args)
205
+ end
206
+
207
+ # Update properties of this object
208
+ def update!(**args)
209
+ @backup_files = args[:backup_files] if args.key?(:backup_files)
210
+ @backup_type = args[:backup_type] if args.key?(:backup_type)
211
+ @cluster = args[:cluster] if args.key?(:cluster)
212
+ @cluster_uid = args[:cluster_uid] if args.key?(:cluster_uid)
213
+ @create_time = args[:create_time] if args.key?(:create_time)
214
+ @engine_version = args[:engine_version] if args.key?(:engine_version)
215
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
216
+ @name = args[:name] if args.key?(:name)
217
+ @node_type = args[:node_type] if args.key?(:node_type)
218
+ @replica_count = args[:replica_count] if args.key?(:replica_count)
219
+ @shard_count = args[:shard_count] if args.key?(:shard_count)
220
+ @state = args[:state] if args.key?(:state)
221
+ @total_size_bytes = args[:total_size_bytes] if args.key?(:total_size_bytes)
222
+ end
223
+ end
224
+
225
+ # Request for [BackupCluster].
226
+ class BackupClusterRequest
227
+ include Google::Apis::Core::Hashable
228
+
229
+ # Optional. The id of the backup to be created. If not specified, the default
230
+ # value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
231
+ # Corresponds to the JSON property `backupId`
232
+ # @return [String]
233
+ attr_accessor :backup_id
234
+
235
+ # Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If
236
+ # not specified, the default value is 100 years.
237
+ # Corresponds to the JSON property `ttl`
238
+ # @return [String]
239
+ attr_accessor :ttl
240
+
241
+ def initialize(**args)
242
+ update!(**args)
243
+ end
244
+
245
+ # Update properties of this object
246
+ def update!(**args)
247
+ @backup_id = args[:backup_id] if args.key?(:backup_id)
248
+ @ttl = args[:ttl] if args.key?(:ttl)
249
+ end
250
+ end
251
+
252
+ # BackupCollection of a cluster.
253
+ class BackupCollection
254
+ include Google::Apis::Core::Hashable
255
+
256
+ # Output only. The full resource path of the cluster the backup collection
257
+ # belongs to. Example: projects/`project`/locations/`location`/clusters/`cluster`
258
+ # Corresponds to the JSON property `cluster`
259
+ # @return [String]
260
+ attr_accessor :cluster
261
+
262
+ # Output only. The cluster uid of the backup collection.
263
+ # Corresponds to the JSON property `clusterUid`
264
+ # @return [String]
265
+ attr_accessor :cluster_uid
266
+
267
+ # Identifier. Full resource path of the backup collection.
268
+ # Corresponds to the JSON property `name`
269
+ # @return [String]
270
+ attr_accessor :name
271
+
272
+ def initialize(**args)
273
+ update!(**args)
274
+ end
275
+
276
+ # Update properties of this object
277
+ def update!(**args)
278
+ @cluster = args[:cluster] if args.key?(:cluster)
279
+ @cluster_uid = args[:cluster_uid] if args.key?(:cluster_uid)
280
+ @name = args[:name] if args.key?(:name)
281
+ end
282
+ end
283
+
97
284
  # Configuration for automatic backups
98
285
  class BackupConfiguration
99
286
  include Google::Apis::Core::Hashable
@@ -129,6 +316,37 @@ module Google
129
316
  end
130
317
  end
131
318
 
319
+ # Backup is consisted of multiple backup files.
320
+ class BackupFile
321
+ include Google::Apis::Core::Hashable
322
+
323
+ # Output only. The time when the backup file was created.
324
+ # Corresponds to the JSON property `createTime`
325
+ # @return [String]
326
+ attr_accessor :create_time
327
+
328
+ # Output only. e.g: .rdb
329
+ # Corresponds to the JSON property `fileName`
330
+ # @return [String]
331
+ attr_accessor :file_name
332
+
333
+ # Output only. Size of the backup file in bytes.
334
+ # Corresponds to the JSON property `sizeBytes`
335
+ # @return [Fixnum]
336
+ attr_accessor :size_bytes
337
+
338
+ def initialize(**args)
339
+ update!(**args)
340
+ end
341
+
342
+ # Update properties of this object
343
+ def update!(**args)
344
+ @create_time = args[:create_time] if args.key?(:create_time)
345
+ @file_name = args[:file_name] if args.key?(:file_name)
346
+ @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
347
+ end
348
+ end
349
+
132
350
  # A backup run.
133
351
  class BackupRun
134
352
  include Google::Apis::Core::Hashable
@@ -222,6 +440,17 @@ module Google
222
440
  # @return [String]
223
441
  attr_accessor :authorization_mode
224
442
 
443
+ # The automated backup config for a cluster.
444
+ # Corresponds to the JSON property `automatedBackupConfig`
445
+ # @return [Google::Apis::RedisV1::AutomatedBackupConfig]
446
+ attr_accessor :automated_backup_config
447
+
448
+ # Optional. Output only. The backup collection full resource name. Example:
449
+ # projects/`project`/locations/`location`/backupCollections/`collection`
450
+ # Corresponds to the JSON property `backupCollection`
451
+ # @return [String]
452
+ attr_accessor :backup_collection
453
+
225
454
  # Optional. A list of cluster enpoints.
226
455
  # Corresponds to the JSON property `clusterEndpoints`
227
456
  # @return [Array<Google::Apis::RedisV1::ClusterEndpoint>]
@@ -249,6 +478,12 @@ module Google
249
478
  # @return [Array<Google::Apis::RedisV1::DiscoveryEndpoint>]
250
479
  attr_accessor :discovery_endpoints
251
480
 
481
+ # Backups stored in Cloud Storage buckets. The Cloud Storage buckets need to be
482
+ # the same region as the clusters.
483
+ # Corresponds to the JSON property `gcsSource`
484
+ # @return [Google::Apis::RedisV1::GcsBackupSource]
485
+ attr_accessor :gcs_source
486
+
252
487
  # Maintenance policy per cluster.
253
488
  # Corresponds to the JSON property `maintenancePolicy`
254
489
  # @return [Google::Apis::RedisV1::ClusterMaintenancePolicy]
@@ -259,6 +494,11 @@ module Google
259
494
  # @return [Google::Apis::RedisV1::ClusterMaintenanceSchedule]
260
495
  attr_accessor :maintenance_schedule
261
496
 
497
+ # Backups that generated and managed by memorystore.
498
+ # Corresponds to the JSON property `managedBackupSource`
499
+ # @return [Google::Apis::RedisV1::ManagedBackupSource]
500
+ attr_accessor :managed_backup_source
501
+
262
502
  # Required. Identifier. Unique name of the resource in this scope including
263
503
  # project and location using the form: `projects/`project_id`/locations/`
264
504
  # location_id`/clusters/`cluster_id``
@@ -355,13 +595,17 @@ module Google
355
595
  # Update properties of this object
356
596
  def update!(**args)
357
597
  @authorization_mode = args[:authorization_mode] if args.key?(:authorization_mode)
598
+ @automated_backup_config = args[:automated_backup_config] if args.key?(:automated_backup_config)
599
+ @backup_collection = args[:backup_collection] if args.key?(:backup_collection)
358
600
  @cluster_endpoints = args[:cluster_endpoints] if args.key?(:cluster_endpoints)
359
601
  @create_time = args[:create_time] if args.key?(:create_time)
360
602
  @cross_cluster_replication_config = args[:cross_cluster_replication_config] if args.key?(:cross_cluster_replication_config)
361
603
  @deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled)
362
604
  @discovery_endpoints = args[:discovery_endpoints] if args.key?(:discovery_endpoints)
605
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
363
606
  @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
364
607
  @maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
608
+ @managed_backup_source = args[:managed_backup_source] if args.key?(:managed_backup_source)
365
609
  @name = args[:name] if args.key?(:name)
366
610
  @node_type = args[:node_type] if args.key?(:node_type)
367
611
  @persistence_config = args[:persistence_config] if args.key?(:persistence_config)
@@ -1152,6 +1396,25 @@ module Google
1152
1396
  end
1153
1397
  end
1154
1398
 
1399
+ # Request for [ExportBackup].
1400
+ class ExportBackupRequest
1401
+ include Google::Apis::Core::Hashable
1402
+
1403
+ # Google Cloud Storage bucket, like "my-bucket".
1404
+ # Corresponds to the JSON property `gcsBucket`
1405
+ # @return [String]
1406
+ attr_accessor :gcs_bucket
1407
+
1408
+ def initialize(**args)
1409
+ update!(**args)
1410
+ end
1411
+
1412
+ # Update properties of this object
1413
+ def update!(**args)
1414
+ @gcs_bucket = args[:gcs_bucket] if args.key?(:gcs_bucket)
1415
+ end
1416
+ end
1417
+
1155
1418
  # Request for Export.
1156
1419
  class ExportInstanceRequest
1157
1420
  include Google::Apis::Core::Hashable
@@ -1191,6 +1454,49 @@ module Google
1191
1454
  end
1192
1455
  end
1193
1456
 
1457
+ # This schedule allows the backup to be triggered at a fixed frequency (
1458
+ # currently only daily is supported).
1459
+ class FixedFrequencySchedule
1460
+ include Google::Apis::Core::Hashable
1461
+
1462
+ # Represents a time of day. The date and time zone are either not significant or
1463
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
1464
+ # types are google.type.Date and `google.protobuf.Timestamp`.
1465
+ # Corresponds to the JSON property `startTime`
1466
+ # @return [Google::Apis::RedisV1::TimeOfDay]
1467
+ attr_accessor :start_time
1468
+
1469
+ def initialize(**args)
1470
+ update!(**args)
1471
+ end
1472
+
1473
+ # Update properties of this object
1474
+ def update!(**args)
1475
+ @start_time = args[:start_time] if args.key?(:start_time)
1476
+ end
1477
+ end
1478
+
1479
+ # Backups stored in Cloud Storage buckets. The Cloud Storage buckets need to be
1480
+ # the same region as the clusters.
1481
+ class GcsBackupSource
1482
+ include Google::Apis::Core::Hashable
1483
+
1484
+ # Optional. URIs of the GCS objects to import. Example: gs://bucket1/object1, gs:
1485
+ # //bucket2/folder2/object2
1486
+ # Corresponds to the JSON property `uris`
1487
+ # @return [Array<String>]
1488
+ attr_accessor :uris
1489
+
1490
+ def initialize(**args)
1491
+ update!(**args)
1492
+ end
1493
+
1494
+ # Update properties of this object
1495
+ def update!(**args)
1496
+ @uris = args[:uris] if args.key?(:uris)
1497
+ end
1498
+ end
1499
+
1194
1500
  # The Cloud Storage location for the output content
1195
1501
  class GcsDestination
1196
1502
  include Google::Apis::Core::Hashable
@@ -1721,6 +2027,77 @@ module Google
1721
2027
  end
1722
2028
  end
1723
2029
 
2030
+ # Response for [ListBackupCollections].
2031
+ class ListBackupCollectionsResponse
2032
+ include Google::Apis::Core::Hashable
2033
+
2034
+ # A list of backupCollections in the project. If the `location_id` in the parent
2035
+ # field of the request is "-", all regions available to the project are queried,
2036
+ # and the results aggregated. If in such an aggregated query a location is
2037
+ # unavailable, a placeholder backupCollection entry is included in the response
2038
+ # with the `name` field set to a value of the form `projects/`project_id`/
2039
+ # locations/`location_id`/backupCollections/`- and the `status` field set to
2040
+ # ERROR and `status_message` field set to "location not available for
2041
+ # ListBackupCollections".
2042
+ # Corresponds to the JSON property `backupCollections`
2043
+ # @return [Array<Google::Apis::RedisV1::BackupCollection>]
2044
+ attr_accessor :backup_collections
2045
+
2046
+ # Token to retrieve the next page of results, or empty if there are no more
2047
+ # results in the list.
2048
+ # Corresponds to the JSON property `nextPageToken`
2049
+ # @return [String]
2050
+ attr_accessor :next_page_token
2051
+
2052
+ # Locations that could not be reached.
2053
+ # Corresponds to the JSON property `unreachable`
2054
+ # @return [Array<String>]
2055
+ attr_accessor :unreachable
2056
+
2057
+ def initialize(**args)
2058
+ update!(**args)
2059
+ end
2060
+
2061
+ # Update properties of this object
2062
+ def update!(**args)
2063
+ @backup_collections = args[:backup_collections] if args.key?(:backup_collections)
2064
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2065
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
2066
+ end
2067
+ end
2068
+
2069
+ # Response for [ListBackups].
2070
+ class ListBackupsResponse
2071
+ include Google::Apis::Core::Hashable
2072
+
2073
+ # A list of backups in the project.
2074
+ # Corresponds to the JSON property `backups`
2075
+ # @return [Array<Google::Apis::RedisV1::Backup>]
2076
+ attr_accessor :backups
2077
+
2078
+ # Token to retrieve the next page of results, or empty if there are no more
2079
+ # results in the list.
2080
+ # Corresponds to the JSON property `nextPageToken`
2081
+ # @return [String]
2082
+ attr_accessor :next_page_token
2083
+
2084
+ # Backups that could not be reached.
2085
+ # Corresponds to the JSON property `unreachable`
2086
+ # @return [Array<String>]
2087
+ attr_accessor :unreachable
2088
+
2089
+ def initialize(**args)
2090
+ update!(**args)
2091
+ end
2092
+
2093
+ # Update properties of this object
2094
+ def update!(**args)
2095
+ @backups = args[:backups] if args.key?(:backups)
2096
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2097
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
2098
+ end
2099
+ end
2100
+
1724
2101
  # Response for ListClusters.
1725
2102
  class ListClustersResponse
1726
2103
  include Google::Apis::Core::Hashable
@@ -1920,6 +2297,12 @@ module Google
1920
2297
  # @return [Fixnum]
1921
2298
  attr_accessor :shard_count
1922
2299
 
2300
+ # Optional. The number of vCPUs. TODO(b/342344482, b/342346271) add proto
2301
+ # validations again after bug fix.
2302
+ # Corresponds to the JSON property `vcpuCount`
2303
+ # @return [Float]
2304
+ attr_accessor :vcpu_count
2305
+
1923
2306
  def initialize(**args)
1924
2307
  update!(**args)
1925
2308
  end
@@ -1929,6 +2312,7 @@ module Google
1929
2312
  @cpu_count = args[:cpu_count] if args.key?(:cpu_count)
1930
2313
  @memory_size_in_bytes = args[:memory_size_in_bytes] if args.key?(:memory_size_in_bytes)
1931
2314
  @shard_count = args[:shard_count] if args.key?(:shard_count)
2315
+ @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count)
1932
2316
  end
1933
2317
  end
1934
2318
 
@@ -2014,6 +2398,29 @@ module Google
2014
2398
  end
2015
2399
  end
2016
2400
 
2401
+ # Backups that generated and managed by memorystore.
2402
+ class ManagedBackupSource
2403
+ include Google::Apis::Core::Hashable
2404
+
2405
+ # Optional. Example: //redis.googleapis.com/projects/`project`/locations/`
2406
+ # location`/backupCollections/`collection`/backups/`backup` A shorter version (
2407
+ # without the prefix) of the backup name is also supported, like projects/`
2408
+ # project`/locations/`location`/backupCollections/`collection`/backups/`
2409
+ # backup_id` In this case, it assumes the backup is under redis.googleapis.com.
2410
+ # Corresponds to the JSON property `backup`
2411
+ # @return [String]
2412
+ attr_accessor :backup
2413
+
2414
+ def initialize(**args)
2415
+ update!(**args)
2416
+ end
2417
+
2418
+ # Update properties of this object
2419
+ def update!(**args)
2420
+ @backup = args[:backup] if args.key?(:backup)
2421
+ end
2422
+ end
2423
+
2017
2424
  #
2018
2425
  class ManagedCertificateAuthority
2019
2426
  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.63.0"
19
+ GEM_VERSION = "0.64.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 = "20241017"
25
+ REVISION = "20241114"
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
 
@@ -473,6 +539,16 @@ module Google
473
539
  end
474
540
  end
475
541
 
542
+ class AutomatedBackupConfig
543
+ # @private
544
+ class Representation < Google::Apis::Core::JsonRepresentation
545
+ property :automated_backup_mode, as: 'automatedBackupMode'
546
+ property :fixed_frequency_schedule, as: 'fixedFrequencySchedule', class: Google::Apis::RedisV1::FixedFrequencySchedule, decorator: Google::Apis::RedisV1::FixedFrequencySchedule::Representation
547
+
548
+ property :retention, as: 'retention'
549
+ end
550
+ end
551
+
476
552
  class AvailabilityConfiguration
477
553
  # @private
478
554
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -484,6 +560,43 @@ module Google
484
560
  end
485
561
  end
486
562
 
563
+ class Backup
564
+ # @private
565
+ class Representation < Google::Apis::Core::JsonRepresentation
566
+ collection :backup_files, as: 'backupFiles', class: Google::Apis::RedisV1::BackupFile, decorator: Google::Apis::RedisV1::BackupFile::Representation
567
+
568
+ property :backup_type, as: 'backupType'
569
+ property :cluster, as: 'cluster'
570
+ property :cluster_uid, as: 'clusterUid'
571
+ property :create_time, as: 'createTime'
572
+ property :engine_version, as: 'engineVersion'
573
+ property :expire_time, as: 'expireTime'
574
+ property :name, as: 'name'
575
+ property :node_type, as: 'nodeType'
576
+ property :replica_count, as: 'replicaCount'
577
+ property :shard_count, as: 'shardCount'
578
+ property :state, as: 'state'
579
+ property :total_size_bytes, :numeric_string => true, as: 'totalSizeBytes'
580
+ end
581
+ end
582
+
583
+ class BackupClusterRequest
584
+ # @private
585
+ class Representation < Google::Apis::Core::JsonRepresentation
586
+ property :backup_id, as: 'backupId'
587
+ property :ttl, as: 'ttl'
588
+ end
589
+ end
590
+
591
+ class BackupCollection
592
+ # @private
593
+ class Representation < Google::Apis::Core::JsonRepresentation
594
+ property :cluster, as: 'cluster'
595
+ property :cluster_uid, as: 'clusterUid'
596
+ property :name, as: 'name'
597
+ end
598
+ end
599
+
487
600
  class BackupConfiguration
488
601
  # @private
489
602
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -494,6 +607,15 @@ module Google
494
607
  end
495
608
  end
496
609
 
610
+ class BackupFile
611
+ # @private
612
+ class Representation < Google::Apis::Core::JsonRepresentation
613
+ property :create_time, as: 'createTime'
614
+ property :file_name, as: 'fileName'
615
+ property :size_bytes, :numeric_string => true, as: 'sizeBytes'
616
+ end
617
+ end
618
+
497
619
  class BackupRun
498
620
  # @private
499
621
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -525,6 +647,9 @@ module Google
525
647
  # @private
526
648
  class Representation < Google::Apis::Core::JsonRepresentation
527
649
  property :authorization_mode, as: 'authorizationMode'
650
+ property :automated_backup_config, as: 'automatedBackupConfig', class: Google::Apis::RedisV1::AutomatedBackupConfig, decorator: Google::Apis::RedisV1::AutomatedBackupConfig::Representation
651
+
652
+ property :backup_collection, as: 'backupCollection'
528
653
  collection :cluster_endpoints, as: 'clusterEndpoints', class: Google::Apis::RedisV1::ClusterEndpoint, decorator: Google::Apis::RedisV1::ClusterEndpoint::Representation
529
654
 
530
655
  property :create_time, as: 'createTime'
@@ -533,10 +658,14 @@ module Google
533
658
  property :deletion_protection_enabled, as: 'deletionProtectionEnabled'
534
659
  collection :discovery_endpoints, as: 'discoveryEndpoints', class: Google::Apis::RedisV1::DiscoveryEndpoint, decorator: Google::Apis::RedisV1::DiscoveryEndpoint::Representation
535
660
 
661
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::RedisV1::GcsBackupSource, decorator: Google::Apis::RedisV1::GcsBackupSource::Representation
662
+
536
663
  property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::RedisV1::ClusterMaintenancePolicy, decorator: Google::Apis::RedisV1::ClusterMaintenancePolicy::Representation
537
664
 
538
665
  property :maintenance_schedule, as: 'maintenanceSchedule', class: Google::Apis::RedisV1::ClusterMaintenanceSchedule, decorator: Google::Apis::RedisV1::ClusterMaintenanceSchedule::Representation
539
666
 
667
+ property :managed_backup_source, as: 'managedBackupSource', class: Google::Apis::RedisV1::ManagedBackupSource, decorator: Google::Apis::RedisV1::ManagedBackupSource::Representation
668
+
540
669
  property :name, as: 'name'
541
670
  property :node_type, as: 'nodeType'
542
671
  property :persistence_config, as: 'persistenceConfig', class: Google::Apis::RedisV1::ClusterPersistenceConfig, decorator: Google::Apis::RedisV1::ClusterPersistenceConfig::Representation
@@ -771,6 +900,13 @@ module Google
771
900
  end
772
901
  end
773
902
 
903
+ class ExportBackupRequest
904
+ # @private
905
+ class Representation < Google::Apis::Core::JsonRepresentation
906
+ property :gcs_bucket, as: 'gcsBucket'
907
+ end
908
+ end
909
+
774
910
  class ExportInstanceRequest
775
911
  # @private
776
912
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -786,6 +922,21 @@ module Google
786
922
  end
787
923
  end
788
924
 
925
+ class FixedFrequencySchedule
926
+ # @private
927
+ class Representation < Google::Apis::Core::JsonRepresentation
928
+ property :start_time, as: 'startTime', class: Google::Apis::RedisV1::TimeOfDay, decorator: Google::Apis::RedisV1::TimeOfDay::Representation
929
+
930
+ end
931
+ end
932
+
933
+ class GcsBackupSource
934
+ # @private
935
+ class Representation < Google::Apis::Core::JsonRepresentation
936
+ collection :uris, as: 'uris'
937
+ end
938
+ end
939
+
789
940
  class GcsDestination
790
941
  # @private
791
942
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -913,6 +1064,26 @@ module Google
913
1064
  end
914
1065
  end
915
1066
 
1067
+ class ListBackupCollectionsResponse
1068
+ # @private
1069
+ class Representation < Google::Apis::Core::JsonRepresentation
1070
+ collection :backup_collections, as: 'backupCollections', class: Google::Apis::RedisV1::BackupCollection, decorator: Google::Apis::RedisV1::BackupCollection::Representation
1071
+
1072
+ property :next_page_token, as: 'nextPageToken'
1073
+ collection :unreachable, as: 'unreachable'
1074
+ end
1075
+ end
1076
+
1077
+ class ListBackupsResponse
1078
+ # @private
1079
+ class Representation < Google::Apis::Core::JsonRepresentation
1080
+ collection :backups, as: 'backups', class: Google::Apis::RedisV1::Backup, decorator: Google::Apis::RedisV1::Backup::Representation
1081
+
1082
+ property :next_page_token, as: 'nextPageToken'
1083
+ collection :unreachable, as: 'unreachable'
1084
+ end
1085
+ end
1086
+
916
1087
  class ListClustersResponse
917
1088
  # @private
918
1089
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -968,6 +1139,7 @@ module Google
968
1139
  property :cpu_count, as: 'cpuCount'
969
1140
  property :memory_size_in_bytes, :numeric_string => true, as: 'memorySizeInBytes'
970
1141
  property :shard_count, as: 'shardCount'
1142
+ property :vcpu_count, as: 'vcpuCount'
971
1143
  end
972
1144
  end
973
1145
 
@@ -992,6 +1164,13 @@ module Google
992
1164
  end
993
1165
  end
994
1166
 
1167
+ class ManagedBackupSource
1168
+ # @private
1169
+ class Representation < Google::Apis::Core::JsonRepresentation
1170
+ property :backup, as: 'backup'
1171
+ end
1172
+ end
1173
+
995
1174
  class ManagedCertificateAuthority
996
1175
  # @private
997
1176
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -124,6 +124,268 @@ 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.
355
+ # @param [String] name
356
+ # Required. Redis cluster resource name using the form: `projects/`project_id`/
357
+ # locations/`location_id`/clusters/`cluster_id`` where `location_id` refers to a
358
+ # GCP region.
359
+ # @param [Google::Apis::RedisV1::BackupClusterRequest] backup_cluster_request_object
360
+ # @param [String] fields
361
+ # Selector specifying which fields to include in a partial response.
362
+ # @param [String] quota_user
363
+ # Available to use for quota purposes for server-side applications. Can be any
364
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
365
+ # @param [Google::Apis::RequestOptions] options
366
+ # Request-specific options
367
+ #
368
+ # @yield [result, err] Result & error if block supplied
369
+ # @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
370
+ # @yieldparam err [StandardError] error object if request failed
371
+ #
372
+ # @return [Google::Apis::RedisV1::Operation]
373
+ #
374
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
375
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
376
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
377
+ def backup_cluster(name, backup_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
378
+ command = make_simple_command(:post, 'v1/{+name}:backup', options)
379
+ command.request_representation = Google::Apis::RedisV1::BackupClusterRequest::Representation
380
+ command.request_object = backup_cluster_request_object
381
+ command.response_representation = Google::Apis::RedisV1::Operation::Representation
382
+ command.response_class = Google::Apis::RedisV1::Operation
383
+ command.params['name'] = name unless name.nil?
384
+ command.query['fields'] = fields unless fields.nil?
385
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
386
+ execute_or_queue_command(command, &block)
387
+ end
388
+
127
389
  # Creates a Redis cluster based on the specified properties. The creation is
128
390
  # executed asynchronously and callers may check the returned operation to track
129
391
  # its progress. Once the operation is completed the Redis cluster will be fully
@@ -831,8 +1093,8 @@ module Google
831
1093
  # Clients can use Operations.GetOperation or other methods to check whether the
832
1094
  # cancellation succeeded or whether the operation completed despite cancellation.
833
1095
  # 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`.
1096
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
1097
+ # , corresponding to `Code.CANCELLED`.
836
1098
  # @param [String] name
837
1099
  # The name of the operation resource to be cancelled.
838
1100
  # @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.63.0
4
+ version: 0.64.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-10-27 00:00:00.000000000 Z
11
+ date: 2024-12-04 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.63.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-redis_v1/v0.64.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.21
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Google Cloud Memorystore for Redis API V1