Reference documentation and code samples for the AlloyDB V1BETA API class Google::Cloud::AlloyDB::V1beta::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
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#annotations
def annotations() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
#annotations=
def annotations=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
- (::Google::Protobuf::Map{::String => ::String}) — Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128
#availability_type
def availability_type() -> ::Google::Cloud::AlloyDB::V1beta::Instance::AvailabilityType
- (::Google::Cloud::AlloyDB::V1beta::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).
#availability_type=
def availability_type=(value) -> ::Google::Cloud::AlloyDB::V1beta::Instance::AvailabilityType
- value (::Google::Cloud::AlloyDB::V1beta::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).
- (::Google::Cloud::AlloyDB::V1beta::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).
#client_connection_config
def client_connection_config() -> ::Google::Cloud::AlloyDB::V1beta::Instance::ClientConnectionConfig
- (::Google::Cloud::AlloyDB::V1beta::Instance::ClientConnectionConfig) — Optional. Client connection specific configurations
#client_connection_config=
def client_connection_config=(value) -> ::Google::Cloud::AlloyDB::V1beta::Instance::ClientConnectionConfig
- value (::Google::Cloud::AlloyDB::V1beta::Instance::ClientConnectionConfig) — Optional. Client connection specific configurations
- (::Google::Cloud::AlloyDB::V1beta::Instance::ClientConnectionConfig) — Optional. Client connection specific configurations
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Create time stamp
#database_flags
def database_flags() -> ::Google::Protobuf::Map{::String => ::String}
-
(::Google::Protobuf::Map{::String => ::String}) — 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.
#database_flags=
def database_flags=(value) -> ::Google::Protobuf::Map{::String => ::String}
-
value (::Google::Protobuf::Map{::String => ::String}) — 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.
-
(::Google::Protobuf::Map{::String => ::String}) — 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.
#delete_time
def delete_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Delete time stamp
#display_name
def display_name() -> ::String
- (::String) — User-settable and human-readable display name for the Instance.
#display_name=
def display_name=(value) -> ::String
- value (::String) — User-settable and human-readable display name for the Instance.
- (::String) — User-settable and human-readable display name for the Instance.
#etag
def etag() -> ::String
- (::String) — For Resource freshness validation (https://google.aip.dev/154)
#etag=
def etag=(value) -> ::String
- value (::String) — For Resource freshness validation (https://google.aip.dev/154)
- (::String) — For Resource freshness validation (https://google.aip.dev/154)
#gce_zone
def gce_zone() -> ::String
- (::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.
#gce_zone=
def gce_zone=(value) -> ::String
- value (::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.
- (::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.
#gemini_config
def gemini_config() -> ::Google::Cloud::AlloyDB::V1beta::GeminiInstanceConfig
- (::Google::Cloud::AlloyDB::V1beta::GeminiInstanceConfig) — Optional. Configuration parameters related to the Gemini in Databases add-on.
#gemini_config=
def gemini_config=(value) -> ::Google::Cloud::AlloyDB::V1beta::GeminiInstanceConfig
- value (::Google::Cloud::AlloyDB::V1beta::GeminiInstanceConfig) — Optional. Configuration parameters related to the Gemini in Databases add-on.
- (::Google::Cloud::AlloyDB::V1beta::GeminiInstanceConfig) — Optional. Configuration parameters related to the Gemini in Databases add-on.
#instance_type
def instance_type() -> ::Google::Cloud::AlloyDB::V1beta::Instance::InstanceType
- (::Google::Cloud::AlloyDB::V1beta::Instance::InstanceType) — Required. The type of the instance. Specified at creation time.
#instance_type=
def instance_type=(value) -> ::Google::Cloud::AlloyDB::V1beta::Instance::InstanceType
- value (::Google::Cloud::AlloyDB::V1beta::Instance::InstanceType) — Required. The type of the instance. Specified at creation time.
- (::Google::Cloud::AlloyDB::V1beta::Instance::InstanceType) — Required. The type of the instance. Specified at creation time.
#ip_address
def ip_address() -> ::String
- (::String) — Output only. The IP address for the Instance. This is the connection endpoint for an end-user application.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Labels as key value pairs
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Labels as key value pairs
- (::Google::Protobuf::Map{::String => ::String}) — Labels as key value pairs
#machine_config
def machine_config() -> ::Google::Cloud::AlloyDB::V1beta::Instance::MachineConfig
- (::Google::Cloud::AlloyDB::V1beta::Instance::MachineConfig) — Configurations for the machines that host the underlying database engine.
#machine_config=
def machine_config=(value) -> ::Google::Cloud::AlloyDB::V1beta::Instance::MachineConfig
- value (::Google::Cloud::AlloyDB::V1beta::Instance::MachineConfig) — Configurations for the machines that host the underlying database engine.
- (::Google::Cloud::AlloyDB::V1beta::Instance::MachineConfig) — Configurations for the machines that host the underlying database engine.
#name
def name() -> ::String
-
(::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}
- projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id}
where the cluster and instance ID segments should satisfy the regex
expression
#network_config
def network_config() -> ::Google::Cloud::AlloyDB::V1beta::Instance::InstanceNetworkConfig
- (::Google::Cloud::AlloyDB::V1beta::Instance::InstanceNetworkConfig) — Optional. Instance-level network configuration.
#network_config=
def network_config=(value) -> ::Google::Cloud::AlloyDB::V1beta::Instance::InstanceNetworkConfig
- value (::Google::Cloud::AlloyDB::V1beta::Instance::InstanceNetworkConfig) — Optional. Instance-level network configuration.
- (::Google::Cloud::AlloyDB::V1beta::Instance::InstanceNetworkConfig) — Optional. Instance-level network configuration.
#nodes
def nodes() -> ::Array<::Google::Cloud::AlloyDB::V1beta::Instance::Node>
- (::Array<::Google::Cloud::AlloyDB::V1beta::Instance::Node>) — Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.
#observability_config
def observability_config() -> ::Google::Cloud::AlloyDB::V1beta::Instance::ObservabilityInstanceConfig
- (::Google::Cloud::AlloyDB::V1beta::Instance::ObservabilityInstanceConfig) — Configuration for observability.
#observability_config=
def observability_config=(value) -> ::Google::Cloud::AlloyDB::V1beta::Instance::ObservabilityInstanceConfig
- value (::Google::Cloud::AlloyDB::V1beta::Instance::ObservabilityInstanceConfig) — Configuration for observability.
- (::Google::Cloud::AlloyDB::V1beta::Instance::ObservabilityInstanceConfig) — Configuration for observability.
#outbound_public_ip_addresses
def outbound_public_ip_addresses() -> ::Array<::String>
- (::Array<::String>) — Output only. All outbound public IP addresses configured for the instance.
#psc_instance_config
def psc_instance_config() -> ::Google::Cloud::AlloyDB::V1beta::Instance::PscInstanceConfig
- (::Google::Cloud::AlloyDB::V1beta::Instance::PscInstanceConfig) — Optional. The configuration for Private Service Connect (PSC) for the instance.
#psc_instance_config=
def psc_instance_config=(value) -> ::Google::Cloud::AlloyDB::V1beta::Instance::PscInstanceConfig
- value (::Google::Cloud::AlloyDB::V1beta::Instance::PscInstanceConfig) — Optional. The configuration for Private Service Connect (PSC) for the instance.
- (::Google::Cloud::AlloyDB::V1beta::Instance::PscInstanceConfig) — Optional. The configuration for Private Service Connect (PSC) for the instance.
#public_ip_address
def public_ip_address() -> ::String
- (::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.
#query_insights_config
def query_insights_config() -> ::Google::Cloud::AlloyDB::V1beta::Instance::QueryInsightsInstanceConfig
- (::Google::Cloud::AlloyDB::V1beta::Instance::QueryInsightsInstanceConfig) — Configuration for query insights.
#query_insights_config=
def query_insights_config=(value) -> ::Google::Cloud::AlloyDB::V1beta::Instance::QueryInsightsInstanceConfig
- value (::Google::Cloud::AlloyDB::V1beta::Instance::QueryInsightsInstanceConfig) — Configuration for query insights.
- (::Google::Cloud::AlloyDB::V1beta::Instance::QueryInsightsInstanceConfig) — Configuration for query insights.
#read_pool_config
def read_pool_config() -> ::Google::Cloud::AlloyDB::V1beta::Instance::ReadPoolConfig
- (::Google::Cloud::AlloyDB::V1beta::Instance::ReadPoolConfig) — Read pool instance configuration. This is required if the value of instanceType is READ_POOL.
#read_pool_config=
def read_pool_config=(value) -> ::Google::Cloud::AlloyDB::V1beta::Instance::ReadPoolConfig
- value (::Google::Cloud::AlloyDB::V1beta::Instance::ReadPoolConfig) — Read pool instance configuration. This is required if the value of instanceType is READ_POOL.
- (::Google::Cloud::AlloyDB::V1beta::Instance::ReadPoolConfig) — Read pool instance configuration. This is required if the value of instanceType is READ_POOL.
#reconciling
def reconciling() -> ::Boolean
- (::Boolean) — 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.
#satisfies_pzs
def satisfies_pzs() -> ::Boolean
- (::Boolean) — Output only. Reserved for future use.
#state
def state() -> ::Google::Cloud::AlloyDB::V1beta::Instance::State
- (::Google::Cloud::AlloyDB::V1beta::Instance::State) — Output only. The current serving state of the instance.
#uid
def uid() -> ::String
- (::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.
#update_policy
def update_policy() -> ::Google::Cloud::AlloyDB::V1beta::Instance::UpdatePolicy
- (::Google::Cloud::AlloyDB::V1beta::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.
#update_policy=
def update_policy=(value) -> ::Google::Cloud::AlloyDB::V1beta::Instance::UpdatePolicy
- value (::Google::Cloud::AlloyDB::V1beta::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.
- (::Google::Cloud::AlloyDB::V1beta::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.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Update time stamp
#writable_node
def writable_node() -> ::Google::Cloud::AlloyDB::V1beta::Instance::Node
- (::Google::Cloud::AlloyDB::V1beta::Instance::Node) — Output only. This is set for the read-write VM of the PRIMARY instance only.