@@ -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
0 commit comments