Skip to content

Commit d9c8579

Browse files
feat: Automated regeneration of redis v1 client (#24531)
Auto-created at 2025-10-05 10:33:46 +0000 using the toys pull request generator.
1 parent fda6cab commit d9c8579

File tree

5 files changed

+272
-4
lines changed

5 files changed

+272
-4
lines changed

api_names_out.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323792,6 +323792,7 @@
323792323792
"/redis:v1/Cluster/labels/label": label
323793323793
"/redis:v1/Cluster/maintenancePolicy": maintenance_policy
323794323794
"/redis:v1/Cluster/maintenanceSchedule": maintenance_schedule
323795+
"/redis:v1/Cluster/maintenanceVersion": maintenance_version
323795323796
"/redis:v1/Cluster/managedBackupSource": managed_backup_source
323796323797
"/redis:v1/Cluster/name": name
323797323798
"/redis:v1/Cluster/nodeType": node_type
@@ -323928,6 +323929,7 @@
323928323929
"/redis:v1/DatabaseResourceMetadata/instanceType": instance_type
323929323930
"/redis:v1/DatabaseResourceMetadata/location": location
323930323931
"/redis:v1/DatabaseResourceMetadata/machineConfiguration": machine_configuration
323932+
"/redis:v1/DatabaseResourceMetadata/maintenanceInfo": maintenance_info
323931323933
"/redis:v1/DatabaseResourceMetadata/primaryResourceId": primary_resource_id
323932323934
"/redis:v1/DatabaseResourceMetadata/primaryResourceLocation": primary_resource_location
323933323935
"/redis:v1/DatabaseResourceMetadata/product": product
@@ -323957,6 +323959,10 @@
323957323959
"/redis:v1/DatabaseResourceSignalData/signalBoolValue": signal_bool_value
323958323960
"/redis:v1/DatabaseResourceSignalData/signalState": signal_state
323959323961
"/redis:v1/DatabaseResourceSignalData/signalType": signal_type
323962+
"/redis:v1/Date": date
323963+
"/redis:v1/Date/day": day
323964+
"/redis:v1/Date/month": month
323965+
"/redis:v1/Date/year": year
323960323966
"/redis:v1/DirectLocationAssignment": direct_location_assignment
323961323967
"/redis:v1/DirectLocationAssignment/location": location
323962323968
"/redis:v1/DirectLocationAssignment/location/location": location
@@ -324295,6 +324301,19 @@
324295324301
"/redis:v1/RescheduleMaintenanceRequest": reschedule_maintenance_request
324296324302
"/redis:v1/RescheduleMaintenanceRequest/rescheduleType": reschedule_type
324297324303
"/redis:v1/RescheduleMaintenanceRequest/scheduleTime": schedule_time
324304+
"/redis:v1/ResourceMaintenanceDenySchedule": resource_maintenance_deny_schedule
324305+
"/redis:v1/ResourceMaintenanceDenySchedule/endDate": end_date
324306+
"/redis:v1/ResourceMaintenanceDenySchedule/startDate": start_date
324307+
"/redis:v1/ResourceMaintenanceDenySchedule/time": time
324308+
"/redis:v1/ResourceMaintenanceInfo": resource_maintenance_info
324309+
"/redis:v1/ResourceMaintenanceInfo/denyMaintenanceSchedules": deny_maintenance_schedules
324310+
"/redis:v1/ResourceMaintenanceInfo/denyMaintenanceSchedules/deny_maintenance_schedule": deny_maintenance_schedule
324311+
"/redis:v1/ResourceMaintenanceInfo/maintenanceSchedule": maintenance_schedule
324312+
"/redis:v1/ResourceMaintenanceInfo/maintenanceVersion": maintenance_version
324313+
"/redis:v1/ResourceMaintenanceSchedule": resource_maintenance_schedule
324314+
"/redis:v1/ResourceMaintenanceSchedule/day": day
324315+
"/redis:v1/ResourceMaintenanceSchedule/phase": phase
324316+
"/redis:v1/ResourceMaintenanceSchedule/time": time
324298324317
"/redis:v1/RetentionSettings": retention_settings
324299324318
"/redis:v1/RetentionSettings/durationBasedRetention": duration_based_retention
324300324319
"/redis:v1/RetentionSettings/quantityBasedRetention": quantity_based_retention

generated/google-apis-redis_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-redis_v1
22

3+
### v0.80.0 (2025-10-05)
4+
5+
* Regenerated from discovery document revision 20250930
6+
37
### v0.79.0 (2025-09-21)
48

59
* Regenerated from discovery document revision 20250909

generated/google-apis-redis_v1/lib/google/apis/redis_v1/classes.rb

Lines changed: 178 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,13 @@ class Cluster
645645
# @return [Google::Apis::RedisV1::ClusterMaintenanceSchedule]
646646
attr_accessor :maintenance_schedule
647647

648+
# Optional. This field can be used to trigger self service update to indicate
649+
# the desired maintenance version. The input to this field can be determined by
650+
# the available_maintenance_versions field.
651+
# Corresponds to the JSON property `maintenanceVersion`
652+
# @return [String]
653+
attr_accessor :maintenance_version
654+
648655
# Backups that generated and managed by memorystore.
649656
# Corresponds to the JSON property `managedBackupSource`
650657
# @return [Google::Apis::RedisV1::ManagedBackupSource]
@@ -786,6 +793,7 @@ def update!(**args)
786793
@labels = args[:labels] if args.key?(:labels)
787794
@maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
788795
@maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
796+
@maintenance_version = args[:maintenance_version] if args.key?(:maintenance_version)
789797
@managed_backup_source = args[:managed_backup_source] if args.key?(:managed_backup_source)
790798
@name = args[:name] if args.key?(:name)
791799
@node_type = args[:node_type] if args.key?(:node_type)
@@ -1173,7 +1181,7 @@ class DatabaseResourceFeed
11731181
# @return [Google::Apis::RedisV1::DatabaseResourceId]
11741182
attr_accessor :resource_id
11751183

1176-
# Common model for database resource instance metadata. Next ID: 27
1184+
# Common model for database resource instance metadata. Next ID: 29
11771185
# Corresponds to the JSON property `resourceMetadata`
11781186
# @return [Google::Apis::RedisV1::DatabaseResourceMetadata]
11791187
attr_accessor :resource_metadata
@@ -1371,7 +1379,7 @@ def update!(**args)
13711379
end
13721380
end
13731381

1374-
# Common model for database resource instance metadata. Next ID: 27
1382+
# Common model for database resource instance metadata. Next ID: 29
13751383
class DatabaseResourceMetadata
13761384
include Google::Apis::Core::Hashable
13771385

@@ -1459,6 +1467,11 @@ class DatabaseResourceMetadata
14591467
# @return [Google::Apis::RedisV1::MachineConfiguration]
14601468
attr_accessor :machine_configuration
14611469

1470+
# MaintenanceInfo to capture the maintenance details of database resource.
1471+
# Corresponds to the JSON property `maintenanceInfo`
1472+
# @return [Google::Apis::RedisV1::ResourceMaintenanceInfo]
1473+
attr_accessor :maintenance_info
1474+
14621475
# DatabaseResourceId will serve as primary key for any resource ingestion event.
14631476
# Corresponds to the JSON property `primaryResourceId`
14641477
# @return [Google::Apis::RedisV1::DatabaseResourceId]
@@ -1542,6 +1555,7 @@ def update!(**args)
15421555
@instance_type = args[:instance_type] if args.key?(:instance_type)
15431556
@location = args[:location] if args.key?(:location)
15441557
@machine_configuration = args[:machine_configuration] if args.key?(:machine_configuration)
1558+
@maintenance_info = args[:maintenance_info] if args.key?(:maintenance_info)
15451559
@primary_resource_id = args[:primary_resource_id] if args.key?(:primary_resource_id)
15461560
@primary_resource_location = args[:primary_resource_location] if args.key?(:primary_resource_location)
15471561
@product = args[:product] if args.key?(:product)
@@ -1680,6 +1694,47 @@ def update!(**args)
16801694
end
16811695
end
16821696

1697+
# Represents a whole or partial calendar date, such as a birthday. The time of
1698+
# day and time zone are either specified elsewhere or are insignificant. The
1699+
# date is relative to the Gregorian Calendar. This can represent one of the
1700+
# following: * A full date, with non-zero year, month, and day values. * A month
1701+
# and day, with a zero year (for example, an anniversary). * A year on its own,
1702+
# with a zero month and a zero day. * A year and month, with a zero day (for
1703+
# example, a credit card expiration date). Related types: * google.type.
1704+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
1705+
class Date
1706+
include Google::Apis::Core::Hashable
1707+
1708+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
1709+
# specify a year by itself or a year and month where the day isn't significant.
1710+
# Corresponds to the JSON property `day`
1711+
# @return [Fixnum]
1712+
attr_accessor :day
1713+
1714+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
1715+
# and day.
1716+
# Corresponds to the JSON property `month`
1717+
# @return [Fixnum]
1718+
attr_accessor :month
1719+
1720+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
1721+
# year.
1722+
# Corresponds to the JSON property `year`
1723+
# @return [Fixnum]
1724+
attr_accessor :year
1725+
1726+
def initialize(**args)
1727+
update!(**args)
1728+
end
1729+
1730+
# Update properties of this object
1731+
def update!(**args)
1732+
@day = args[:day] if args.key?(:day)
1733+
@month = args[:month] if args.key?(:month)
1734+
@year = args[:year] if args.key?(:year)
1735+
end
1736+
end
1737+
16831738
# Endpoints on each network, for Redis clients to connect to the cluster.
16841739
class DiscoveryEndpoint
16851740
include Google::Apis::Core::Hashable
@@ -3561,6 +3616,127 @@ def update!(**args)
35613616
end
35623617
end
35633618

3619+
# Deny maintenance period for the database resource. It specifies the time range
3620+
# during which the maintenance cannot start. This is configured by the customer.
3621+
class ResourceMaintenanceDenySchedule
3622+
include Google::Apis::Core::Hashable
3623+
3624+
# Represents a whole or partial calendar date, such as a birthday. The time of
3625+
# day and time zone are either specified elsewhere or are insignificant. The
3626+
# date is relative to the Gregorian Calendar. This can represent one of the
3627+
# following: * A full date, with non-zero year, month, and day values. * A month
3628+
# and day, with a zero year (for example, an anniversary). * A year on its own,
3629+
# with a zero month and a zero day. * A year and month, with a zero day (for
3630+
# example, a credit card expiration date). Related types: * google.type.
3631+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
3632+
# Corresponds to the JSON property `endDate`
3633+
# @return [Google::Apis::RedisV1::Date]
3634+
attr_accessor :end_date
3635+
3636+
# Represents a whole or partial calendar date, such as a birthday. The time of
3637+
# day and time zone are either specified elsewhere or are insignificant. The
3638+
# date is relative to the Gregorian Calendar. This can represent one of the
3639+
# following: * A full date, with non-zero year, month, and day values. * A month
3640+
# and day, with a zero year (for example, an anniversary). * A year on its own,
3641+
# with a zero month and a zero day. * A year and month, with a zero day (for
3642+
# example, a credit card expiration date). Related types: * google.type.
3643+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
3644+
# Corresponds to the JSON property `startDate`
3645+
# @return [Google::Apis::RedisV1::Date]
3646+
attr_accessor :start_date
3647+
3648+
# Represents a time of day. The date and time zone are either not significant or
3649+
# are specified elsewhere. An API may choose to allow leap seconds. Related
3650+
# types are google.type.Date and `google.protobuf.Timestamp`.
3651+
# Corresponds to the JSON property `time`
3652+
# @return [Google::Apis::RedisV1::TimeOfDay]
3653+
attr_accessor :time
3654+
3655+
def initialize(**args)
3656+
update!(**args)
3657+
end
3658+
3659+
# Update properties of this object
3660+
def update!(**args)
3661+
@end_date = args[:end_date] if args.key?(:end_date)
3662+
@start_date = args[:start_date] if args.key?(:start_date)
3663+
@time = args[:time] if args.key?(:time)
3664+
end
3665+
end
3666+
3667+
# MaintenanceInfo to capture the maintenance details of database resource.
3668+
class ResourceMaintenanceInfo
3669+
include Google::Apis::Core::Hashable
3670+
3671+
# Optional. List of Deny maintenance period for the database resource.
3672+
# Corresponds to the JSON property `denyMaintenanceSchedules`
3673+
# @return [Array<Google::Apis::RedisV1::ResourceMaintenanceDenySchedule>]
3674+
attr_accessor :deny_maintenance_schedules
3675+
3676+
# Maintenance window for the database resource. It specifies preferred time and
3677+
# day of the week and phase in some cases, when the maintenance can start. This
3678+
# is configured by the customer.
3679+
# Corresponds to the JSON property `maintenanceSchedule`
3680+
# @return [Google::Apis::RedisV1::ResourceMaintenanceSchedule]
3681+
attr_accessor :maintenance_schedule
3682+
3683+
# Optional. Current Maintenance version of the database resource. Example: "
3684+
# MYSQL_8_0_41.R20250531.01_15"
3685+
# Corresponds to the JSON property `maintenanceVersion`
3686+
# @return [String]
3687+
attr_accessor :maintenance_version
3688+
3689+
def initialize(**args)
3690+
update!(**args)
3691+
end
3692+
3693+
# Update properties of this object
3694+
def update!(**args)
3695+
@deny_maintenance_schedules = args[:deny_maintenance_schedules] if args.key?(:deny_maintenance_schedules)
3696+
@maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule)
3697+
@maintenance_version = args[:maintenance_version] if args.key?(:maintenance_version)
3698+
end
3699+
end
3700+
3701+
# Maintenance window for the database resource. It specifies preferred time and
3702+
# day of the week and phase in some cases, when the maintenance can start. This
3703+
# is configured by the customer.
3704+
class ResourceMaintenanceSchedule
3705+
include Google::Apis::Core::Hashable
3706+
3707+
# Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
3708+
# Corresponds to the JSON property `day`
3709+
# @return [String]
3710+
attr_accessor :day
3711+
3712+
# Optional. Phase of the maintenance window. This is to capture order of
3713+
# maintenance. For example, for Cloud SQL resources, this can be used to capture
3714+
# if the maintenance window is in Week1, Week2, Week5, etc. Non production
3715+
# resources are usually part of early phase. For more details, refer to Cloud
3716+
# SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance
3717+
# Corresponds to the JSON property `phase`
3718+
# @return [String]
3719+
attr_accessor :phase
3720+
3721+
# Represents a time of day. The date and time zone are either not significant or
3722+
# are specified elsewhere. An API may choose to allow leap seconds. Related
3723+
# types are google.type.Date and `google.protobuf.Timestamp`.
3724+
# Corresponds to the JSON property `time`
3725+
# @return [Google::Apis::RedisV1::TimeOfDay]
3726+
attr_accessor :time
3727+
3728+
def initialize(**args)
3729+
update!(**args)
3730+
end
3731+
3732+
# Update properties of this object
3733+
def update!(**args)
3734+
@day = args[:day] if args.key?(:day)
3735+
@phase = args[:phase] if args.key?(:phase)
3736+
@time = args[:time] if args.key?(:time)
3737+
end
3738+
end
3739+
35643740
#
35653741
class RetentionSettings
35663742
include Google::Apis::Core::Hashable

generated/google-apis-redis_v1/lib/google/apis/redis_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module RedisV1
1818
# Version of the google-apis-redis_v1 gem
19-
GEM_VERSION = "0.79.0"
19+
GEM_VERSION = "0.80.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250909"
25+
REVISION = "20250930"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)