Service Client: Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::MaintenanceClient

Client stub representing the remote Maintenance gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to maintenance.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Maintenance::Api::V1beta::MaintenanceService - Compiled Protocol Buffers messages for google/cloud/maintenance/api/v1beta/maintenance_service.proto

SYNOPSIS

use Google::Cloud::Maintenance::Api::V1beta::MaintenanceService;

my $msg = Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::SummarizeMaintenancesRequest->new({
    parent => $parent,
    page_size => $page_size,
    page_token => $page_token,
    filter => $filter,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/maintenance/api/v1beta/maintenance_service.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::Maintenance::Api::V1beta::MaintenanceService::SummarizeMaintenancesRequest

Request message for SummarizeMaintenances custom method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent of the resource maintenance. eg. `projects/123/locations/*`

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

    Type: Int32

    The maximum number of resource maintenances to send per page. The default page size is 20 and the maximum is 1000.

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

    Type: String

    The page token: If the next_page_token from a previous response is provided, this request will send the subsequent page.

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

    Type: String

    Filter the list as specified in https://google.aip.dev/160. Supported fields include: - state - resource.location - resource.resourceName - resource.type - maintenance.maintenanceName - maintenanceStartTime - maintenanceCompleteTime Examples: - state="SCHEDULED" - resource.location="us-central1-c" - resource.resourceName=~"*/instance-20241212-211259" - maintenanceStartTime>"2000-10-11T20:44:51Z" - state="SCHEDULED" OR resource.type="compute.googleapis.com/Instance" - maintenance.maitenanceName="eb3b709c-9ca1-5472-9fb6-800a3849eda1" AND maintenanceCompleteTime>"2000-10-11T20:44:51Z"

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

    Type: String

    Order results as specified in https://google.aip.dev/132.

Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::SummarizeMaintenancesResponse

Request message for SummarizeMaintenances custom method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::MaintenanceSummary)

    The resulting summaries.

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

    Type: String

    If present, the next page token can be provided to a subsequent SummarizeMaintenances call to list the next page. If empty, there are no more pages.

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

    Type: String

    Unordered list. Locations that could not be reached.

Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::MaintenanceSummary

MaintenanceSummary contains maintenance statistics calculated based on ResourceMaintenances within the scope: project and location.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The name of the maintenance.

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

    Type: String

    Output only. The title of the maintenance.

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

    Type: String

    Output only. The description of the maintenance.

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

    Type: Enum (Google::Cloud::Maintenance::Api::V1beta::MaintenanceCategory)

    Output only. The category of the maintenance event.

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

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

    Output only. Scheduled start time of the maintenance. The maintenance will start at `maintenanceScheduledStartTime` or later, with best effort to finish before `maintenanceScheduledEndTime`.

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

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

    Output only. An estimated (best effort, not guaranteed) end time of the scheduled maintenance.

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

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

    Output only. Actual date when the maintenance started. Field present only after the state changed to `RUNNING`.

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

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

    Output only. Actual date when the maintenance successfully completed. Field present only after the state changed to `SUCCEEDED`.

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

    Type: Bool

    Output only. Indicates whether the user has some control over that maintenance, either proactively before maintenance was scheduled with maintenance policy or with reactive controls after it was scheduled (see controls field).

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

    Type: Message (Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::MaintenanceControl)

    Output only. Control available for that Maintenance (might not be available for every resource that maintenance is applied to).

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

    Type: Message (Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::MaintenanceSummary::Stats)

    Output only. Stats is a field of ResourceMaintenance used to aggregate the stats.

Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::ResourceMaintenance

ResourceMaintenance is a resource that represents a maintenance operation on a resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The name of the resource_maintenance resource. Format: `"projects/{project}/locations/{location}/resourceMaintenance/{resource-maintenance-id}"`

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

    Type: Message (Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::ResourceMaintenance::Resource)

    Output only. The resource spec of the resource maintenance.

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

    Type: Message (Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::ResourceMaintenance::Maintenance)

    Output only. The details of the maintenance.

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

    Type: Enum (Google::Cloud::Maintenance::Api::V1beta::ResourceMaintenance::State)

    Output only. The state of the resource maintenance.

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

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

    Output only. The create time of the resource maintenance.

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

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

    Output only. The update time of the resource maintenance.

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

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

    Output only. The time when the resource maintenance has started.

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

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

    Output only. The time when the resource maintenance has completed.

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

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

    Output only. The time when the resource maintenance was cancelled.

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

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

    Output only. The time when the maintenance on the resource was scheduled to start.

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

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

    Output only. The time when the maintenance on the resource was scheduled to end.

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

    Type: Bool

    Output only. Indicates whether the user has some control over that maintenance, either proactively before maintenance was scheduled with maintenance policy or with reactive controls after it was scheduled (see controls field)

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

    Type: Message (Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::MaintenanceControl)

    Output only. The controls of the maintenance.

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

    Type: Message (Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::ResourceMaintenance::LabelsEntry)

    Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.

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

    Type: Message (Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::ResourceMaintenance::AnnotationsEntry)

    Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.

    More info: https://kubernetes.io/docs/user-guide/annotations

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

    Type: String

    Output only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.

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

    Type: String

    Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.

Enum: ResourceMaintenance::State

  • STATE_UNSPECIFIED => 0

  • SCHEDULED => 1

  • RUNNING => 2

  • CANCELLED => 3

  • SUCCEEDED => 4

Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::MaintenanceControl

The control of the maintenance.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Maintenance::Api::V1beta::MaintenanceControl::Control)

    The control of the resource maintenance.

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

    Type: Bool

    Indicates whether the control is available only in Service Producer API (not through Unified Maintenance).

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

    Type: String

    Link to Service Producer documentation about maintenance control. Provided only when `isCustom` is `true`.

Enum: MaintenanceControl::Control

  • CONTROL_UNSPECIFIED => 0

  • APPLY => 1

  • MANAGE_POLICY => 2

  • RESCHEDULE => 3

Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::ListResourceMaintenancesRequest

The request structure for the ListResourceMaintenances method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent of the resource maintenance.

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

    Type: Int32

    The maximum number of resource maintenances to send per page.

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

    Type: String

    The page token: If the next_page_token from a previous response is provided, this request will send the subsequent page.

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

    Type: String

    Filter the list as specified in https://google.aip.dev/160.

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

    Type: String

    Order results as specified in https://google.aip.dev/132.

Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::ListResourceMaintenancesResponse

The response structure for the ListResourceMaintenances method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::ResourceMaintenance)

    The resulting resource maintenances.

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

    Type: String

    If present, the next page token can be provided to a subsequent ListResourceMaintenances call to list the next page. If empty, there are no more pages.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Maintenance::Api::V1beta::MaintenanceService::GetResourceMaintenanceRequest

The request structure for the GetResourceMaintenance method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the resource within a service.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.