NAME

Google::Cloud::Alloydb::V1alpha::Resources - Compiled Protocol Buffers messages for google/cloud/alloydb/v1alpha/resources.proto

SYNOPSIS

use Google::Cloud::Alloydb::V1alpha::Resources;

my $msg = Google::Cloud::Alloydb::V1alpha::Resources::UserPassword->new({
    user => $user,
    password => $password,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Alloydb::V1alpha::Resources::UserPassword->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/alloydb/v1alpha/resources.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::Alloydb::V1alpha::Resources::UserPassword

The username/password for a database user. Used for specifying initial users at cluster creation time.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The database username.

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

    Type: String

    The initial password for the user.

Google::Cloud::Alloydb::V1alpha::Resources::MigrationSource

Subset of the source instance configuration that is available when reading the cluster resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The host and port of the on-premises instance in host:port format

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

    Type: String

    Output only. Place holder for the external source identifier(e.g DMS job name) that created the cluster.

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::MigrationSource::MigrationSourceType)

    Output only. Type of migration source.

Enum: MigrationSource::MigrationSourceType

  • MIGRATION_SOURCE_TYPE_UNSPECIFIED => 0

  • DMS => 1

Google::Cloud::Alloydb::V1alpha::Resources::EncryptionConfig

EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]

Google::Cloud::Alloydb::V1alpha::Resources::EncryptionInfo

EncryptionInfo describes the encryption information of a cluster or a backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::EncryptionInfo::Type)

    Output only. Type of encryption.

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

    Type: String

    Output only. Cloud KMS key versions that are being used to protect the database or the backup.

Enum: EncryptionInfo::Type

  • TYPE_UNSPECIFIED => 0

  • GOOGLE_DEFAULT_ENCRYPTION => 1

  • CUSTOMER_MANAGED_ENCRYPTION => 2

Google::Cloud::Alloydb::V1alpha::Resources::SslConfig

SSL configuration.

Inherits from Protobuf::Message.

Accessors

Enum: SslConfig::SslMode

  • SSL_MODE_UNSPECIFIED => 0

  • SSL_MODE_ALLOW => 1

  • SSL_MODE_REQUIRE => 2

  • SSL_MODE_VERIFY_CA => 3

  • ALLOW_UNENCRYPTED_AND_ENCRYPTED => 4

  • ENCRYPTED_ONLY => 5

Enum: SslConfig::CaSource

  • CA_SOURCE_UNSPECIFIED => 0

  • CA_SOURCE_MANAGED => 1

Google::Cloud::Alloydb::V1alpha::Resources::AutomatedBackupPolicy

Message describing the user-specified automated backup policy.

All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Alloydb::V1alpha::Resources::ContinuousBackupConfig

ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Whether ContinuousBackup is enabled.

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

    Type: Int32

    The number of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. If not set, defaults to 14 days.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::EncryptionConfig)

    The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will use the cluster's encryption config.

Google::Cloud::Alloydb::V1alpha::Resources::ContinuousBackupInfo

ContinuousBackupInfo describes the continuous backup properties of a cluster.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::EncryptionInfo)

    Output only. The encryption information for the WALs and backups required for ContinuousBackup.

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

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

    Output only. When ContinuousBackup was most recently enabled. Set to null if ContinuousBackup is not enabled.

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

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

    Output only. Days of the week on which a continuous backup is taken.

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

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

    Output only. The earliest restorable time that can be restored to. If continuous backups and recovery was recently enabled, the earliest restorable time is the creation time of the earliest eligible backup within this cluster's continuous backup recovery window. After a cluster has had continuous backups enabled for the duration of its recovery window, the earliest restorable time becomes "now minus the recovery window". For example, assuming a point in time recovery is attempted at 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable time would be 04/02/2025 3:23:00PM. This field is only visible if the CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided.

Google::Cloud::Alloydb::V1alpha::Resources::BackupSource

Message describing a BackupSource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The system-generated UID of the backup which was used to create this resource. The UID is generated when the backup is created, and it is retained until the backup is deleted.

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

    Type: String

    Required. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id}

Google::Cloud::Alloydb::V1alpha::Resources::ContinuousBackupSource

Message describing a ContinuousBackupSource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The source cluster from which to restore. This cluster must have continuous backup enabled for this operation to succeed. For the required format, see the comment on the Cluster.name field.

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

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

    Required. The point in time to restore to.

Google::Cloud::Alloydb::V1alpha::Resources::MaintenanceUpdatePolicy

MaintenanceUpdatePolicy defines the policy for system updates.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Alloydb::V1alpha::Resources::MaintenanceSchedule

MaintenanceSchedule stores the maintenance schedule generated from the MaintenanceUpdatePolicy, once a maintenance rollout is triggered, if MaintenanceWindow is set, and if there is no conflicting DenyPeriod. The schedule is cleared once the update takes place. This field cannot be manually changed; modify the MaintenanceUpdatePolicy instead.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Alloydb::V1alpha::Resources::Cluster

A cluster is a collection of regional AlloyDB resources. It can include a primary instance and one or more read pool instances. All cluster resources share a storage layer, which scales as needed.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::BackupSource)

    Output only. Cluster created from backup.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::MigrationSource)

    Output only. Cluster created via DMS migration.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::CsqlResources::CloudSQLBackupRunSource)

    Output only. Cluster created from CloudSQL snapshot.

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

    Type: String

    Output only. The name of the cluster resource with the format: * projects/{project}/locations/{region}/clusters/{cluster_id} where the cluster ID segment should satisfy the regex expression `[a-z0-9-]+`. For more details see https://google.aip.dev/122. The prefix of the cluster resource name is the name of the parent resource: * projects/{project}/locations/{region}

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

    Type: String

    User-settable and human-readable display name for the Cluster.

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

    Type: String

    Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.

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

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

    Output only. Create time stamp

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

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

    Output only. Update time stamp

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

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

    Output only. Delete time stamp

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Cluster::LabelsEntry)

    Labels as key value pairs

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::Cluster::State)

    Output only. The current serving state of the cluster.

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::Cluster::ClusterType)

    Output only. The type of the cluster. This is an output-only field and it's populated at the Cluster creation time or the Cluster promotion time. The cluster type is determined by which RPC was used to create the cluster (i.e. `CreateCluster` vs. `CreateSecondaryCluster`

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::DatabaseVersion)

    Optional. The database engine major version. This is an optional field and it is populated at the Cluster creation time. If a database version is not supplied at cluster creation time, then a default database version will be used.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Cluster::NetworkConfig)

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

    Type: String

    Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: `projects/{project}/global/networks/{network_id}`. This is required to create a cluster. Deprecated, use network_config.network instead.

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

    Type: String

    For Resource freshness validation (https://google.aip.dev/154)

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Cluster::AnnotationsEntry)

    Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128

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

    Type: Bool

    Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Cluster does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::UserPassword)

    Input only. Initial user to setup during cluster creation. Required. If used in `RestoreCluster` this is ignored.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::AutomatedBackupPolicy)

    The automated backup policy for this cluster.

    If no policy is provided then the default policy will be used. If backups are supported for the cluster, the default policy takes one backup a day, has a backup window of 1 hour, and retains backups for 14 days. For more information on the defaults, consult the documentation for the message type.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::SslConfig)

    SSL configuration for this AlloyDB cluster.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::EncryptionConfig)

    Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::EncryptionInfo)

    Output only. The encryption information for the cluster.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::ContinuousBackupConfig)

    Optional. Continuous backup configuration for this cluster.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::ContinuousBackupInfo)

    Output only. Continuous backup properties for this cluster.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Cluster::SecondaryConfig)

    Cross Region replication config specific to SECONDARY cluster.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Cluster::PrimaryConfig)

    Output only. Cross Region replication config specific to PRIMARY cluster.

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

    Type: Bool

    Output only. Reserved for future use.

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

    Type: Bool

    Output only. Reserved for future use.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Cluster::PscConfig)

    Optional. The configuration for Private Service Connect (PSC) for the cluster.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::MaintenanceUpdatePolicy)

    Optional. The maintenance update policy determines when to allow or deny updates.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::MaintenanceSchedule)

    Output only. The maintenance schedule for the cluster, generated for a specific rollout if a maintenance window is set.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Gemini::GeminiClusterConfig)

    Optional. Deprecated and unused. This field will be removed in the near future.

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::SubscriptionType)

    Optional. Subscription type of the cluster.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Cluster::TrialMetadata)

    Output only. Metadata for free trial clusters

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Cluster::TagsEntry)

    Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ``` "123/environment": "production", "123/costCenter": "marketing" ```

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

    Type: String

    Output only. AlloyDB per-cluster service account. This service account is created per-cluster per-project, and is different from the per-project service account. The per-cluster service account naming format is subject to change.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Cluster::DataplexConfig)

    Optional. Configuration for Dataplex integration.

Enum: Cluster::State

  • STATE_UNSPECIFIED => 0

  • READY => 1

  • STOPPED => 2

  • EMPTY => 3

  • CREATING => 4

  • DELETING => 5

  • FAILED => 6

  • BOOTSTRAPPING => 7

  • MAINTENANCE => 8

  • PROMOTING => 9

Enum: Cluster::ClusterType

  • CLUSTER_TYPE_UNSPECIFIED => 0

  • PRIMARY => 1

  • SECONDARY => 2

Google::Cloud::Alloydb::V1alpha::Resources::Instance

An Instance is a computing unit that an end customer can connect to. It's the main unit of computing resources in AlloyDB.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The name of the instance resource with the format: * projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} where the cluster and instance ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the instance resource name is the name of the parent resource: * projects/{project}/locations/{region}/clusters/{cluster_id}

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

    Type: String

    User-settable and human-readable display name for the Instance.

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

    Type: String

    Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.

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

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

    Output only. Create time stamp

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

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

    Output only. Update time stamp

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

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

    Output only. Delete time stamp

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::LabelsEntry)

    Labels as key value pairs

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::Instance::State)

    Output only. The current serving state of the instance.

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::Instance::InstanceType)

    Required. The type of the instance. Specified at creation time.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::MachineConfig)

    Configurations for the machines that host the underlying database engine.

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::Instance::AvailabilityType)

    Availability type of an Instance. If empty, defaults to REGIONAL for primary instances. For read pools, availability_type is always UNSPECIFIED. Instances in the read pools are evenly distributed across available zones within the region (i.e. read pools with more than one node will have a node in at least two zones).

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

    Type: String

    The Compute Engine zone that the instance should serve from, per https://cloud.google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::DatabaseFlagsEntry)

    Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance.

    This is a list of "key": "value" pairs. "key": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. "value": The value of the flag. Booleans are set to on for true and off for false. This field must be omitted if the flag doesn't take a value.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::Node)

    Output only. This is set for the read-write VM of the PRIMARY instance only.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::Node)

    Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::QueryInsightsInstanceConfig)

    Configuration for query insights.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::QueryInsightsInstanceInfo)

    Output only. Instance level Query Insights information, which is read-only and available in the output only. Contains the effective query insights settings for this instance, by merging customer's provided `QueryInsightsInstanceConfig` with the Query Insights defaults.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::ObservabilityInstanceConfig)

    Configuration for observability.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::ObservabilityInstanceInfo)

    Output only. Instance level observability information, contains the effective values of observability settings for this instance, by merging customer's provided `ObservabilityInstanceConfig` with the Observability defaults.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::ReadPoolConfig)

    Read pool instance configuration. This is required if the value of instanceType is READ_POOL.

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

    Type: String

    Output only. The IP address for the Instance. This is the connection endpoint for an end-user application.

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

    Type: String

    Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.

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

    Type: Bool

    Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Instance does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.

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

    Type: String

    For Resource freshness validation (https://google.aip.dev/154)

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::AnnotationsEntry)

    Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::UpdatePolicy)

    Update policy that will be applied during instance update. This field is not persisted when you update the instance. To use a non-default update policy, you must specify explicitly specify the value in each update request.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::ClientConnectionConfig)

    Optional. Client connection specific configurations

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

    Type: Bool

    Output only. Reserved for future use.

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

    Type: Bool

    Output only. Reserved for future use.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::PscInstanceConfig)

    Optional. The configuration for Private Service Connect (PSC) for the instance.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::PscInstanceInfo)

    Output only. Information about the Private Service Connect (PSC) for the instance.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::InstanceNetworkConfig)

    Optional. Instance-level network configuration.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Gemini::GeminiInstanceConfig)

    Optional. Deprecated and unused. This field will be removed in the near future.

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

    Type: String

    Output only. All outbound public IP addresses configured for the instance.

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::Instance::ActivationPolicy)

    Optional. Specifies whether an instance needs to spin up. Once the instance is active, the activation policy can be updated to the `NEVER` to stop the instance. Likewise, the activation policy can be updated to `ALWAYS` to start the instance. There are restrictions around when an instance can/cannot be activated (for example, a read pool instance should be stopped before stopping primary etc.). Please refer to the API documentation for more details.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Instance::ConnectionPoolConfig)

    Optional. The configuration for Managed Connection Pool (MCP).

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Gemini::GCAInstanceConfig)

    Output only. Configuration parameters related to Gemini Cloud Assist.

Enum: Instance::State

  • STATE_UNSPECIFIED => 0

  • READY => 1

  • STOPPED => 2

  • CREATING => 3

  • DELETING => 4

  • MAINTENANCE => 5

  • FAILED => 6

  • BOOTSTRAPPING => 8

  • PROMOTING => 9

Enum: Instance::InstanceType

  • INSTANCE_TYPE_UNSPECIFIED => 0

  • PRIMARY => 1

  • READ_POOL => 2

  • SECONDARY => 3

Enum: Instance::AvailabilityType

  • AVAILABILITY_TYPE_UNSPECIFIED => 0

  • ZONAL => 1

  • REGIONAL => 2

Enum: Instance::PscAutoDnsState

  • PSC_AUTO_DNS_STATE_UNSPECIFIED => 0

  • PSC_AUTO_DNS_STATE_ENABLED => 1

  • PSC_AUTO_DNS_STATE_DISABLED => 2

Enum: Instance::ActivationPolicy

  • ACTIVATION_POLICY_UNSPECIFIED => 0

  • ALWAYS => 1

  • NEVER => 2

Google::Cloud::Alloydb::V1alpha::Resources::ConnectionInfo

ConnectionInfo singleton resource. https://google.aip.dev/156

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.

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

    Type: String

    Output only. The private network IP address for the Instance. This is the default IP for the instance and is always created (even if enable_public_ip is set). This is the connection endpoint for an end-user application.

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

    Type: String

    Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.

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

    Type: String

    Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.

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

    Type: String

    Output only. The unique ID of the Instance.

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

    Type: String

    Output only. The DNS name to use with PSC for the Instance.

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

    Type: String

    Output only. Specifies the DNS name to use with PSC service automation for the Instance.

Google::Cloud::Alloydb::V1alpha::Resources::Backup

Message describing Backup object

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} where the cluster and backup ID segments should satisfy the regex expression `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`, e.g. 1-63 characters of lowercase letters, numbers, and dashes, starting with a letter, and ending with a letter or number. For more details see https://google.aip.dev/122. The prefix of the backup resource name is the name of the parent resource: * projects/{project}/locations/{region}

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

    Type: String

    User-settable and human-readable display name for the Backup.

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

    Type: String

    Output only. The system-generated UID of the resource. The UID is assigned when the resource is created, and it is retained until it is deleted.

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

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

    Output only. Create time stamp

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

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

    Output only. Update time stamp

    Users should not infer any meaning from this field. Its value is generally unrelated to the timing of the backup creation operation.

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

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

    Output only. Delete time stamp

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

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

    Output only. Timestamp when the resource finished being created.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Backup::LabelsEntry)

    Labels as key value pairs

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::Backup::State)

    Output only. The current state of the backup.

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::Backup::Type)

    The backup type, which suggests the trigger for the backup.

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

    Type: String

    User-provided description of the backup.

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

    Type: String

    Output only. The system-generated UID of the cluster which was used to create this resource.

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

    Type: String

    Required. The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}).

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

    Type: Bool

    Output only. Reconciling (https://google.aip.dev/128#reconciliation), if true, indicates that the service is actively updating the resource. This can happen due to user-triggered updates or system actions like failover or maintenance.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::EncryptionConfig)

    Optional. The encryption config can be specified to encrypt the backup with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::EncryptionInfo)

    Output only. The encryption information for the backup.

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

    Type: String

    For Resource freshness validation (https://google.aip.dev/154)

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Backup::AnnotationsEntry)

    Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128

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

    Type: Int64

    Output only. The size of the backup in bytes.

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

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

    Output only. The time at which after the backup is eligible to be garbage collected. It is the duration specified by the backup's retention policy, added to the backup's create_time.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Backup::QuantityBasedExpiry)

    Output only. The QuantityBasedExpiry of the backup, specified by the backup's retention policy. Once the expiry quantity is over retention, the backup is eligible to be garbage collected.

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

    Type: Bool

    Output only. Reserved for future use.

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

    Type: Bool

    Output only. Reserved for future use.

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::DatabaseVersion)

    Output only. The database engine major version of the cluster this backup was created from. Any restored cluster created from this backup will have the same database version.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::Backup::TagsEntry)

    Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ``` "123/environment": "production", "123/costCenter": "marketing" ```

Enum: Backup::State

  • STATE_UNSPECIFIED => 0

  • READY => 1

  • CREATING => 2

  • FAILED => 3

  • DELETING => 4

Enum: Backup::Type

  • TYPE_UNSPECIFIED => 0

  • ON_DEMAND => 1

  • AUTOMATED => 2

  • CONTINUOUS => 3

Google::Cloud::Alloydb::V1alpha::Resources::SupportedDatabaseFlag

SupportedDatabaseFlag gives general information about a database flag, like type and allowed values. This is a static value that is defined on the server side, and it cannot be modified by callers. To set the Database flags on a particular Instance, a caller should modify the Instance.database_flags field.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::SupportedDatabaseFlag::StringRestrictions)

    Restriction on STRING type value.

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

    Type: Message (Google::Cloud::Alloydb::V1alpha::Resources::SupportedDatabaseFlag::IntegerRestrictions)

    Restriction on INTEGER type value.

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

    Type: String

    The recommended value for a STRING flag.

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

    Type: Message (Google::Protobuf::Wrappers::Int64Value)

    The recommended value for an INTEGER flag.

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

    Type: String

    The name of the flag resource, following Google Cloud conventions, e.g.: * projects/{project}/locations/{location}/flags/{flag} This field currently has no semantic meaning.

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

    Type: String

    The name of the database flag, e.g. "max_allowed_packets". The is a possibly key for the Instance.database_flags map field.

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::SupportedDatabaseFlag::ValueType)

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

    Type: Bool

    Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::DatabaseVersion)

    Major database engine versions for which this flag is supported.

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

    Type: Bool

    Whether setting or updating this flag on an Instance requires a database restart. If a flag that requires database restart is set, the backend will automatically restart the database (making sure to satisfy any availability SLO's).

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::SupportedDatabaseFlag::Scope)

    The scope of the flag.

Enum: SupportedDatabaseFlag::ValueType

  • VALUE_TYPE_UNSPECIFIED => 0

  • STRING => 1

  • INTEGER => 2

  • FLOAT => 3

  • NONE => 4

Enum: SupportedDatabaseFlag::Scope

  • SCOPE_UNSPECIFIED => 0

  • DATABASE => 1

  • CONNECTION_POOL => 2

Google::Cloud::Alloydb::V1alpha::Resources::User

Message describing User object.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.

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

    Type: String

    Input only. Password for the user.

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

    Type: String

    Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.

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

    Type: Enum (Google::Cloud::Alloydb::V1alpha::User::UserType)

    Optional. Type of this user.

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

    Type: Bool

    Input only. If the user already exists and it has additional roles, keep them granted.

Enum: User::UserType

  • USER_TYPE_UNSPECIFIED => 0

  • ALLOYDB_BUILT_IN => 1

  • ALLOYDB_IAM_USER => 2

Google::Cloud::Alloydb::V1alpha::Resources::Database

Message describing Database object.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. Name of the resource in the form of `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.

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

    Type: String

    Optional. Immutable. Charset for the database. This field can contain any PostgreSQL supported charset name. Example values include "UTF8", "SQL_ASCII", etc.

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

    Type: String

    Optional. Immutable. lc_collate for the database. String sort order. Example values include "C", "POSIX", etc.

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

    Type: String

    Optional. Immutable. lc_ctype for the database. Character classification (What is a letter? The upper-case equivalent?). Example values include "C", "POSIX", etc.

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

    Type: Bool

    Optional. Whether the database is a template database. Deprecated in favor of is_template_database.

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

    Type: String

    Input only. Immutable. Template of the database to be used for creating a new database.

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

    Type: Bool

    Optional. Whether the database is a template database.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Alloydb::V1alpha::Resources::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.