AlloyDB v1 API - Class Cluster (1.2.0)

public sealed class Cluster : IMessage<Cluster>, IEquatable<Cluster>, IDeepCloneable<Cluster>, IBufferMessage, IMessage

Reference documentation and code samples for the AlloyDB v1 API class 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.

Inheritance

object > Cluster

Namespace

Google.Cloud.AlloyDb.V1

Assembly

Google.Cloud.AlloyDb.V1.dll

Constructors

Cluster()

public Cluster()

Cluster(Cluster)

public Cluster(Cluster other)
Parameter
NameDescription
otherCluster

Properties

Annotations

public MapField<string, string> Annotations { get; }

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

Property Value
TypeDescription
MapFieldstringstring

AutomatedBackupPolicy

public AutomatedBackupPolicy AutomatedBackupPolicy { get; set; }

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.

Property Value
TypeDescription
AutomatedBackupPolicy

BackupSource

public BackupSource BackupSource { get; set; }

Output only. Cluster created from backup.

Property Value
TypeDescription
BackupSource

ClusterName

public ClusterName ClusterName { get; set; }

ClusterName-typed view over the Name resource name property.

Property Value
TypeDescription
ClusterName

ClusterType

public Cluster.Types.ClusterType ClusterType { get; set; }

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

Property Value
TypeDescription
ClusterTypesClusterType

ContinuousBackupConfig

public ContinuousBackupConfig ContinuousBackupConfig { get; set; }

Optional. Continuous backup configuration for this cluster.

Property Value
TypeDescription
ContinuousBackupConfig

ContinuousBackupInfo

public ContinuousBackupInfo ContinuousBackupInfo { get; set; }

Output only. Continuous backup properties for this cluster.

Property Value
TypeDescription
ContinuousBackupInfo

CreateTime

public Timestamp CreateTime { get; set; }

Output only. Create time stamp

Property Value
TypeDescription
Timestamp

DatabaseVersion

public DatabaseVersion DatabaseVersion { get; set; }

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.

Property Value
TypeDescription
DatabaseVersion

DeleteTime

public Timestamp DeleteTime { get; set; }

Output only. Delete time stamp

Property Value
TypeDescription
Timestamp

DisplayName

public string DisplayName { get; set; }

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

Property Value
TypeDescription
string

EncryptionConfig

public EncryptionConfig EncryptionConfig { get; set; }

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.

Property Value
TypeDescription
EncryptionConfig

EncryptionInfo

public EncryptionInfo EncryptionInfo { get; set; }

Output only. The encryption information for the cluster.

Property Value
TypeDescription
EncryptionInfo

Etag

public string Etag { get; set; }

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

Property Value
TypeDescription
string

InitialUser

public UserPassword InitialUser { get; set; }

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

Property Value
TypeDescription
UserPassword

Labels

public MapField<string, string> Labels { get; }

Labels as key value pairs

Property Value
TypeDescription
MapFieldstringstring

MigrationSource

public MigrationSource MigrationSource { get; set; }

Output only. Cluster created via DMS migration.

Property Value
TypeDescription
MigrationSource

Name

public string Name { get; set; }

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}
Property Value
TypeDescription
string

Network

[Obsolete]
public string Network { get; set; }

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.

Property Value
TypeDescription
string

NetworkAsNetworkName

[Obsolete]
public NetworkName NetworkAsNetworkName { get; set; }

NetworkName-typed view over the Network resource name property.

Property Value
TypeDescription
NetworkName

NetworkConfig

public Cluster.Types.NetworkConfig NetworkConfig { get; set; }
Property Value
TypeDescription
ClusterTypesNetworkConfig

PrimaryConfig

public Cluster.Types.PrimaryConfig PrimaryConfig { get; set; }

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

Property Value
TypeDescription
ClusterTypesPrimaryConfig

Reconciling

public bool Reconciling { get; set; }

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.

Property Value
TypeDescription
bool

SecondaryConfig

public Cluster.Types.SecondaryConfig SecondaryConfig { get; set; }

Cross Region replication config specific to SECONDARY cluster.

Property Value
TypeDescription
ClusterTypesSecondaryConfig

SourceCase

public Cluster.SourceOneofCase SourceCase { get; }
Property Value
TypeDescription
ClusterSourceOneofCase

SslConfig

[Obsolete]
public SslConfig SslConfig { get; set; }

SSL configuration for this AlloyDB cluster.

Property Value
TypeDescription
SslConfig

State

public Cluster.Types.State State { get; set; }

Output only. The current serving state of the cluster.

Property Value
TypeDescription
ClusterTypesState

Uid

public string Uid { get; set; }

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.

Property Value
TypeDescription
string

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. Update time stamp

Property Value
TypeDescription
Timestamp