NAME

Google::Cloud::Databasecenter::V1beta::Maintenance - Compiled Protocol Buffers messages for google/cloud/databasecenter/v1beta/maintenance.proto

SYNOPSIS

use Google::Cloud::Databasecenter::V1beta::Maintenance;

my $msg = Google::Cloud::Databasecenter::V1beta::Maintenance::ResourceMaintenanceSchedule->new({
    start_time => $start_time,
    day => $day,
    phase => $phase,
});

# Read or update a field
my $val = $msg->start_time();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Databasecenter::V1beta::Maintenance::ResourceMaintenanceSchedule->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/databasecenter/v1beta/maintenance.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Databasecenter::V1beta::Maintenance::ResourceMaintenanceSchedule

Maintenance window for the database resource. It specifies preferred time and day of the week and phase in some cases, when the maintenance can start.

Inherits from Protobuf::Message.

Accessors

  • $msg->start_time() / $msg->start_time($value)

    Type: Message (Google::Type::Timeofday::TimeOfDay)

    Optional. Preferred time to start the maintenance operation on the specified day.

  • $msg->day() / $msg->day($value)

    Type: Enum (Google::Type::DayOfWeek)

    Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.

  • $msg->phase() / $msg->phase($value)

    Type: Enum (Google::Cloud::Databasecenter::V1beta::Phase)

    Optional. Phase of the maintenance window. This is to capture order of maintenance. For example, for Cloud SQL resources, this can be used to capture if the maintenance window is in Week1, Week2, Week5, etc. Non production resources are usually part of early phase. For more details, refer to Cloud SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance

Google::Cloud::Databasecenter::V1beta::Maintenance::ResourceMaintenanceDenySchedule

Deny maintenance period for the database resource. It specifies the time range during which the maintenance cannot start. This is configured by the customer.

Inherits from Protobuf::Message.

Accessors

  • $msg->start_date() / $msg->start_date($value)

    Type: Message (Google::Type::Date::Date)

    Optional. The start date of the deny maintenance period.

  • $msg->end_date() / $msg->end_date($value)

    Type: Message (Google::Type::Date::Date)

    Optional. Deny period end date.

  • $msg->time() / $msg->time($value)

    Type: Message (Google::Type::Timeofday::TimeOfDay)

    Optional. Time in UTC when the deny period starts on start_date and ends on end_date.

Google::Cloud::Databasecenter::V1beta::Maintenance::UpcomingMaintenance

Upcoming maintenance window for the database resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->start_time() / $msg->start_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Start time of the upcoming maintenance. Start time is always populated when an upcoming maintenance is scheduled.

  • $msg->end_time() / $msg->end_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. End time of the upcoming maintenance. This is only populated for an engine, if end time is public for the engine.

Google::Cloud::Databasecenter::V1beta::Maintenance::MaintenanceInfo

MaintenanceInfo to capture the maintenance details of database resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->maintenance_schedule() / $msg->maintenance_schedule($value)

    Type: Message (Google::Cloud::Databasecenter::V1beta::Maintenance::ResourceMaintenanceSchedule)

    Optional. Maintenance window for the database resource.

  • $msg->deny_maintenance_schedules() / $msg->deny_maintenance_schedules($value)

    Type: Message (Google::Cloud::Databasecenter::V1beta::Maintenance::ResourceMaintenanceDenySchedule)

    Optional. List of Deny maintenance period for the database resource.

  • $msg->maintenance_version() / $msg->maintenance_version($value)

    Type: String

    Output only. Current Maintenance version of the database resource. Example: "MYSQL_8_0_41.R20250531.01_15"

  • $msg->current_version_release_date() / $msg->current_version_release_date($value)

    Type: Message (Google::Type::Date::Date)

    Output only. The date when the maintenance version was released.

  • $msg->upcoming_maintenance() / $msg->upcoming_maintenance($value)

    Type: Message (Google::Cloud::Databasecenter::V1beta::Maintenance::UpcomingMaintenance)

    Output only. Upcoming maintenance window for the database resource. This is only populated for an engine, if upcoming maintenance is scheduled for the resource. This schedule is generated per engine and engine version, and there is only one upcoming maintenance window at any given time. In case of upcoming maintenance, the maintenance_state will be set to SCHEDULED first, and then IN_PROGRESS when the maintenance window starts.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Databasecenter::V1beta::MaintenanceState)

    Output only. Resource maintenance state. This is to capture the current state of the maintenance.

  • $msg->possible_failure_reasons() / $msg->possible_failure_reasons($value)

    Type: Enum (Google::Cloud::Databasecenter::V1beta::PossibleFailureReason)

    Output only. List of possible reasons why the maintenance is not completed. This is an optional field and is only populated if there are any reasons for failures recorded for the maintenance by DB Center. FAILURE maintenance status may not always have a failure reason.

  • $msg->previous_maintenance_version() / $msg->previous_maintenance_version($value)

    Type: String

    Output only. Previous maintenance version of the database resource. Example: "MYSQL_8_0_41.R20250531.01_15". This is available once a minor version maintenance is complete on a database resource.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Databasecenter::V1beta::Maintenance::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.