AlloyDB v1 API - Class Instance (1.5.0)

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

Reference documentation and code samples for the AlloyDB v1 API class Instance.

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

Inheritance

object > Instance

Namespace

Google.Cloud.AlloyDb.V1

Assembly

Google.Cloud.AlloyDb.V1.dll

Constructors

Instance()

public Instance()

Instance(Instance)

public Instance(Instance other)
Parameter
NameDescription
otherInstance

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

AvailabilityType

public Instance.Types.AvailabilityType AvailabilityType { get; set; }

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).

Property Value
TypeDescription
InstanceTypesAvailabilityType

ClientConnectionConfig

public Instance.Types.ClientConnectionConfig ClientConnectionConfig { get; set; }

Optional. Client connection specific configurations

Property Value
TypeDescription
InstanceTypesClientConnectionConfig

CreateTime

public Timestamp CreateTime { get; set; }

Output only. Create time stamp

Property Value
TypeDescription
Timestamp

DatabaseFlags

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

Database flags. Set at instance level.

  • They are copied from primary instance on read instance creation.
  • Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary.

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.

Property Value
TypeDescription
MapFieldstringstring

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 Instance.

Property Value
TypeDescription
string

Etag

public string Etag { get; set; }

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

Property Value
TypeDescription
string

GceZone

public string GceZone { get; set; }

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.

Property Value
TypeDescription
string

InstanceName

public InstanceName InstanceName { get; set; }

InstanceName-typed view over the Name resource name property.

Property Value
TypeDescription
InstanceName

InstanceType

public Instance.Types.InstanceType InstanceType { get; set; }

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

Property Value
TypeDescription
InstanceTypesInstanceType

IpAddress

public string IpAddress { get; set; }

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

Property Value
TypeDescription
string

Labels

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

Labels as key value pairs

Property Value
TypeDescription
MapFieldstringstring

MachineConfig

public Instance.Types.MachineConfig MachineConfig { get; set; }

Configurations for the machines that host the underlying database engine.

Property Value
TypeDescription
InstanceTypesMachineConfig

Name

public string Name { get; set; }

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

Nodes

public RepeatedField<Instance.Types.Node> Nodes { get; }

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

Property Value
TypeDescription
RepeatedFieldInstanceTypesNode

QueryInsightsConfig

public Instance.Types.QueryInsightsInstanceConfig QueryInsightsConfig { get; set; }

Configuration for query insights.

Property Value
TypeDescription
InstanceTypesQueryInsightsInstanceConfig

ReadPoolConfig

public Instance.Types.ReadPoolConfig ReadPoolConfig { get; set; }

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

Property Value
TypeDescription
InstanceTypesReadPoolConfig

Reconciling

public bool Reconciling { get; set; }

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.

Property Value
TypeDescription
bool

State

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

Output only. The current serving state of the instance.

Property Value
TypeDescription
InstanceTypesState

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

WritableNode

public Instance.Types.Node WritableNode { get; set; }

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

Property Value
TypeDescription
InstanceTypesNode