google-apis-redis_v1 0.58.0 → 0.59.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d123cd8d149c897db5ab9155581a36cc792ecc4fa049467fbd572e8165e7fa3b
|
4
|
+
data.tar.gz: 4721fffb74ec5dcbd77fb8a7490d932ced5852b197f1ad779356cd7cd61a0097
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e01e843f47761ee0271b1cc0ba8409f6c46be7fa5ca3959a08bb38676fa9488dae828c0702c4f08f9bf50836616eb1a51964264e53f9f1ea1e2b6a0e1700340d
|
7
|
+
data.tar.gz: 42fdfa09693e4e844b37055fff667428e54e1d3a2f87d095ff48fef89f74bac2c988ae125ac076e2ffd6605e724fb440fc4a742c59cd19a86c97b32320ce5815
|
data/CHANGELOG.md
CHANGED
@@ -45,6 +45,14 @@ module Google
|
|
45
45
|
class AvailabilityConfiguration
|
46
46
|
include Google::Apis::Core::Hashable
|
47
47
|
|
48
|
+
# Checks for existence of (multi-cluster) routing configuration that allows
|
49
|
+
# automatic failover to a different zone/region in case of an outage. Applicable
|
50
|
+
# to Bigtable resources.
|
51
|
+
# Corresponds to the JSON property `automaticFailoverRoutingConfigured`
|
52
|
+
# @return [Boolean]
|
53
|
+
attr_accessor :automatic_failover_routing_configured
|
54
|
+
alias_method :automatic_failover_routing_configured?, :automatic_failover_routing_configured
|
55
|
+
|
48
56
|
# Availability type. Potential values: * `ZONAL`: The instance serves data from
|
49
57
|
# only one zone. Outages in that zone affect data accessibility. * `REGIONAL`:
|
50
58
|
# The instance can serve data from more than one zone in a region (it is highly
|
@@ -78,6 +86,7 @@ module Google
|
|
78
86
|
|
79
87
|
# Update properties of this object
|
80
88
|
def update!(**args)
|
89
|
+
@automatic_failover_routing_configured = args[:automatic_failover_routing_configured] if args.key?(:automatic_failover_routing_configured)
|
81
90
|
@availability_type = args[:availability_type] if args.key?(:availability_type)
|
82
91
|
@cross_region_replica_configured = args[:cross_region_replica_configured] if args.key?(:cross_region_replica_configured)
|
83
92
|
@external_replica_configured = args[:external_replica_configured] if args.key?(:external_replica_configured)
|
@@ -235,6 +244,16 @@ module Google
|
|
235
244
|
# @return [Array<Google::Apis::RedisV1::DiscoveryEndpoint>]
|
236
245
|
attr_accessor :discovery_endpoints
|
237
246
|
|
247
|
+
# Maintenance policy per cluster.
|
248
|
+
# Corresponds to the JSON property `maintenancePolicy`
|
249
|
+
# @return [Google::Apis::RedisV1::ClusterMaintenancePolicy]
|
250
|
+
attr_accessor :maintenance_policy
|
251
|
+
|
252
|
+
# Upcoming maitenance schedule.
|
253
|
+
# Corresponds to the JSON property `maintenanceSchedule`
|
254
|
+
# @return [Google::Apis::RedisV1::ClusterMaintenanceSchedule]
|
255
|
+
attr_accessor :maintenance_schedule
|
256
|
+
|
238
257
|
# Required. Identifier. Unique name of the resource in this scope including
|
239
258
|
# project and location using the form: `projects/`project_id`/locations/`
|
240
259
|
# location_id`/clusters/`cluster_id``
|
@@ -330,6 +349,8 @@ module Google
|
|
330
349
|
@cross_cluster_replication_config = args[:cross_cluster_replication_config] if args.key?(:cross_cluster_replication_config)
|
331
350
|
@deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled)
|
332
351
|
@discovery_endpoints = args[:discovery_endpoints] if args.key?(:discovery_endpoints)
|
352
|
+
@maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
|
353
|
+
@maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
|
333
354
|
@name = args[:name] if args.key?(:name)
|
334
355
|
@node_type = args[:node_type] if args.key?(:node_type)
|
335
356
|
@persistence_config = args[:persistence_config] if args.key?(:persistence_config)
|
@@ -348,6 +369,75 @@ module Google
|
|
348
369
|
end
|
349
370
|
end
|
350
371
|
|
372
|
+
# Maintenance policy per cluster.
|
373
|
+
class ClusterMaintenancePolicy
|
374
|
+
include Google::Apis::Core::Hashable
|
375
|
+
|
376
|
+
# Output only. The time when the policy was created i.e. Maintenance Window or
|
377
|
+
# Deny Period was assigned.
|
378
|
+
# Corresponds to the JSON property `createTime`
|
379
|
+
# @return [String]
|
380
|
+
attr_accessor :create_time
|
381
|
+
|
382
|
+
# Output only. The time when the policy was updated i.e. Maintenance Window or
|
383
|
+
# Deny Period was updated.
|
384
|
+
# Corresponds to the JSON property `updateTime`
|
385
|
+
# @return [String]
|
386
|
+
attr_accessor :update_time
|
387
|
+
|
388
|
+
# Optional. Maintenance window that is applied to resources covered by this
|
389
|
+
# policy. Minimum 1. For the current version, the maximum number of
|
390
|
+
# weekly_maintenance_window is expected to be one.
|
391
|
+
# Corresponds to the JSON property `weeklyMaintenanceWindow`
|
392
|
+
# @return [Array<Google::Apis::RedisV1::ClusterWeeklyMaintenanceWindow>]
|
393
|
+
attr_accessor :weekly_maintenance_window
|
394
|
+
|
395
|
+
def initialize(**args)
|
396
|
+
update!(**args)
|
397
|
+
end
|
398
|
+
|
399
|
+
# Update properties of this object
|
400
|
+
def update!(**args)
|
401
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
402
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
403
|
+
@weekly_maintenance_window = args[:weekly_maintenance_window] if args.key?(:weekly_maintenance_window)
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
# Upcoming maitenance schedule.
|
408
|
+
class ClusterMaintenanceSchedule
|
409
|
+
include Google::Apis::Core::Hashable
|
410
|
+
|
411
|
+
# Output only. The end time of any upcoming scheduled maintenance for this
|
412
|
+
# instance.
|
413
|
+
# Corresponds to the JSON property `endTime`
|
414
|
+
# @return [String]
|
415
|
+
attr_accessor :end_time
|
416
|
+
|
417
|
+
# Output only. The deadline that the maintenance schedule start time can not go
|
418
|
+
# beyond, including reschedule.
|
419
|
+
# Corresponds to the JSON property `scheduleDeadlineTime`
|
420
|
+
# @return [String]
|
421
|
+
attr_accessor :schedule_deadline_time
|
422
|
+
|
423
|
+
# Output only. The start time of any upcoming scheduled maintenance for this
|
424
|
+
# instance.
|
425
|
+
# Corresponds to the JSON property `startTime`
|
426
|
+
# @return [String]
|
427
|
+
attr_accessor :start_time
|
428
|
+
|
429
|
+
def initialize(**args)
|
430
|
+
update!(**args)
|
431
|
+
end
|
432
|
+
|
433
|
+
# Update properties of this object
|
434
|
+
def update!(**args)
|
435
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
436
|
+
@schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time)
|
437
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
351
441
|
# Configuration of the persistence functionality.
|
352
442
|
class ClusterPersistenceConfig
|
353
443
|
include Google::Apis::Core::Hashable
|
@@ -379,6 +469,39 @@ module Google
|
|
379
469
|
end
|
380
470
|
end
|
381
471
|
|
472
|
+
# Time window specified for weekly operations.
|
473
|
+
class ClusterWeeklyMaintenanceWindow
|
474
|
+
include Google::Apis::Core::Hashable
|
475
|
+
|
476
|
+
# Allows to define schedule that runs specified day of the week.
|
477
|
+
# Corresponds to the JSON property `day`
|
478
|
+
# @return [String]
|
479
|
+
attr_accessor :day
|
480
|
+
|
481
|
+
# Duration of the time window.
|
482
|
+
# Corresponds to the JSON property `duration`
|
483
|
+
# @return [String]
|
484
|
+
attr_accessor :duration
|
485
|
+
|
486
|
+
# Represents a time of day. The date and time zone are either not significant or
|
487
|
+
# are specified elsewhere. An API may choose to allow leap seconds. Related
|
488
|
+
# types are google.type.Date and `google.protobuf.Timestamp`.
|
489
|
+
# Corresponds to the JSON property `startTime`
|
490
|
+
# @return [Google::Apis::RedisV1::TimeOfDay]
|
491
|
+
attr_accessor :start_time
|
492
|
+
|
493
|
+
def initialize(**args)
|
494
|
+
update!(**args)
|
495
|
+
end
|
496
|
+
|
497
|
+
# Update properties of this object
|
498
|
+
def update!(**args)
|
499
|
+
@day = args[:day] if args.key?(:day)
|
500
|
+
@duration = args[:duration] if args.key?(:duration)
|
501
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
382
505
|
# Contains compliance information about a security standard indicating unmet
|
383
506
|
# recommendations.
|
384
507
|
class Compliance
|
@@ -2339,6 +2462,34 @@ module Google
|
|
2339
2462
|
end
|
2340
2463
|
end
|
2341
2464
|
|
2465
|
+
# Request for rescheduling a cluster maintenance.
|
2466
|
+
class RescheduleClusterMaintenanceRequest
|
2467
|
+
include Google::Apis::Core::Hashable
|
2468
|
+
|
2469
|
+
# Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
|
2470
|
+
# well.
|
2471
|
+
# Corresponds to the JSON property `rescheduleType`
|
2472
|
+
# @return [String]
|
2473
|
+
attr_accessor :reschedule_type
|
2474
|
+
|
2475
|
+
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
2476
|
+
# reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:
|
2477
|
+
# 19:00.094Z`.
|
2478
|
+
# Corresponds to the JSON property `scheduleTime`
|
2479
|
+
# @return [String]
|
2480
|
+
attr_accessor :schedule_time
|
2481
|
+
|
2482
|
+
def initialize(**args)
|
2483
|
+
update!(**args)
|
2484
|
+
end
|
2485
|
+
|
2486
|
+
# Update properties of this object
|
2487
|
+
def update!(**args)
|
2488
|
+
@reschedule_type = args[:reschedule_type] if args.key?(:reschedule_type)
|
2489
|
+
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
2490
|
+
end
|
2491
|
+
end
|
2492
|
+
|
2342
2493
|
# Request for RescheduleMaintenance.
|
2343
2494
|
class RescheduleMaintenanceRequest
|
2344
2495
|
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.59.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 = "20240822"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -64,12 +64,30 @@ module Google
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
+
class ClusterMaintenancePolicy
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ClusterMaintenanceSchedule
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
67
79
|
class ClusterPersistenceConfig
|
68
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
81
|
|
70
82
|
include Google::Apis::Core::JsonObjectSupport
|
71
83
|
end
|
72
84
|
|
85
|
+
class ClusterWeeklyMaintenanceWindow
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
73
91
|
class Compliance
|
74
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
93
|
|
@@ -346,6 +364,12 @@ module Google
|
|
346
364
|
include Google::Apis::Core::JsonObjectSupport
|
347
365
|
end
|
348
366
|
|
367
|
+
class RescheduleClusterMaintenanceRequest
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
349
373
|
class RescheduleMaintenanceRequest
|
350
374
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
351
375
|
|
@@ -428,6 +452,7 @@ module Google
|
|
428
452
|
class AvailabilityConfiguration
|
429
453
|
# @private
|
430
454
|
class Representation < Google::Apis::Core::JsonRepresentation
|
455
|
+
property :automatic_failover_routing_configured, as: 'automaticFailoverRoutingConfigured'
|
431
456
|
property :availability_type, as: 'availabilityType'
|
432
457
|
property :cross_region_replica_configured, as: 'crossRegionReplicaConfigured'
|
433
458
|
property :external_replica_configured, as: 'externalReplicaConfigured'
|
@@ -482,6 +507,10 @@ module Google
|
|
482
507
|
property :deletion_protection_enabled, as: 'deletionProtectionEnabled'
|
483
508
|
collection :discovery_endpoints, as: 'discoveryEndpoints', class: Google::Apis::RedisV1::DiscoveryEndpoint, decorator: Google::Apis::RedisV1::DiscoveryEndpoint::Representation
|
484
509
|
|
510
|
+
property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::RedisV1::ClusterMaintenancePolicy, decorator: Google::Apis::RedisV1::ClusterMaintenancePolicy::Representation
|
511
|
+
|
512
|
+
property :maintenance_schedule, as: 'maintenanceSchedule', class: Google::Apis::RedisV1::ClusterMaintenanceSchedule, decorator: Google::Apis::RedisV1::ClusterMaintenanceSchedule::Representation
|
513
|
+
|
485
514
|
property :name, as: 'name'
|
486
515
|
property :node_type, as: 'nodeType'
|
487
516
|
property :persistence_config, as: 'persistenceConfig', class: Google::Apis::RedisV1::ClusterPersistenceConfig, decorator: Google::Apis::RedisV1::ClusterPersistenceConfig::Representation
|
@@ -505,6 +534,25 @@ module Google
|
|
505
534
|
end
|
506
535
|
end
|
507
536
|
|
537
|
+
class ClusterMaintenancePolicy
|
538
|
+
# @private
|
539
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
540
|
+
property :create_time, as: 'createTime'
|
541
|
+
property :update_time, as: 'updateTime'
|
542
|
+
collection :weekly_maintenance_window, as: 'weeklyMaintenanceWindow', class: Google::Apis::RedisV1::ClusterWeeklyMaintenanceWindow, decorator: Google::Apis::RedisV1::ClusterWeeklyMaintenanceWindow::Representation
|
543
|
+
|
544
|
+
end
|
545
|
+
end
|
546
|
+
|
547
|
+
class ClusterMaintenanceSchedule
|
548
|
+
# @private
|
549
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
550
|
+
property :end_time, as: 'endTime'
|
551
|
+
property :schedule_deadline_time, as: 'scheduleDeadlineTime'
|
552
|
+
property :start_time, as: 'startTime'
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
508
556
|
class ClusterPersistenceConfig
|
509
557
|
# @private
|
510
558
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -516,6 +564,16 @@ module Google
|
|
516
564
|
end
|
517
565
|
end
|
518
566
|
|
567
|
+
class ClusterWeeklyMaintenanceWindow
|
568
|
+
# @private
|
569
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
570
|
+
property :day, as: 'day'
|
571
|
+
property :duration, as: 'duration'
|
572
|
+
property :start_time, as: 'startTime', class: Google::Apis::RedisV1::TimeOfDay, decorator: Google::Apis::RedisV1::TimeOfDay::Representation
|
573
|
+
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
519
577
|
class Compliance
|
520
578
|
# @private
|
521
579
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1028,6 +1086,14 @@ module Google
|
|
1028
1086
|
end
|
1029
1087
|
end
|
1030
1088
|
|
1089
|
+
class RescheduleClusterMaintenanceRequest
|
1090
|
+
# @private
|
1091
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1092
|
+
property :reschedule_type, as: 'rescheduleType'
|
1093
|
+
property :schedule_time, as: 'scheduleTime'
|
1094
|
+
end
|
1095
|
+
end
|
1096
|
+
|
1031
1097
|
class RescheduleMaintenanceRequest
|
1032
1098
|
# @private
|
1033
1099
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -365,6 +365,41 @@ module Google
|
|
365
365
|
execute_or_queue_command(command, &block)
|
366
366
|
end
|
367
367
|
|
368
|
+
# Reschedules upcoming maintenance event.
|
369
|
+
# @param [String] name
|
370
|
+
# Required. Redis Cluster instance resource name using the form: `projects/`
|
371
|
+
# project_id`/locations/`location_id`/clusters/`cluster_id`` where `location_id`
|
372
|
+
# refers to a GCP region.
|
373
|
+
# @param [Google::Apis::RedisV1::RescheduleClusterMaintenanceRequest] reschedule_cluster_maintenance_request_object
|
374
|
+
# @param [String] fields
|
375
|
+
# Selector specifying which fields to include in a partial response.
|
376
|
+
# @param [String] quota_user
|
377
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
378
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
379
|
+
# @param [Google::Apis::RequestOptions] options
|
380
|
+
# Request-specific options
|
381
|
+
#
|
382
|
+
# @yield [result, err] Result & error if block supplied
|
383
|
+
# @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
|
384
|
+
# @yieldparam err [StandardError] error object if request failed
|
385
|
+
#
|
386
|
+
# @return [Google::Apis::RedisV1::Operation]
|
387
|
+
#
|
388
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
389
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
390
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
391
|
+
def reschedule_cluster_maintenance(name, reschedule_cluster_maintenance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
392
|
+
command = make_simple_command(:post, 'v1/{+name}:rescheduleClusterMaintenance', options)
|
393
|
+
command.request_representation = Google::Apis::RedisV1::RescheduleClusterMaintenanceRequest::Representation
|
394
|
+
command.request_object = reschedule_cluster_maintenance_request_object
|
395
|
+
command.response_representation = Google::Apis::RedisV1::Operation::Representation
|
396
|
+
command.response_class = Google::Apis::RedisV1::Operation
|
397
|
+
command.params['name'] = name unless name.nil?
|
398
|
+
command.query['fields'] = fields unless fields.nil?
|
399
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
400
|
+
execute_or_queue_command(command, &block)
|
401
|
+
end
|
402
|
+
|
368
403
|
# Creates a Redis instance based on the specified tier and memory size. By
|
369
404
|
# default, the instance is accessible from the project's [default network](https:
|
370
405
|
# //cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and
|
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.59.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-09-01 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.59.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: []
|