final case class Instance(name: String = "", displayName: String = "", uid: String = "", createTime: Option[Timestamp] = _root_.scala.None, updateTime: Option[Timestamp] = _root_.scala.None, deleteTime: Option[Timestamp] = _root_.scala.None, labels: Map[String, String] = _root_.scala.collection.immutable.Map.empty, state: State = com.google.cloud.alloydb.v1.resources.Instance.State.STATE_UNSPECIFIED, instanceType: InstanceType = com.google.cloud.alloydb.v1.resources.Instance.InstanceType.INSTANCE_TYPE_UNSPECIFIED, machineConfig: Option[MachineConfig] = _root_.scala.None, availabilityType: AvailabilityType = com.google.cloud.alloydb.v1.resources.Instance.AvailabilityType.AVAILABILITY_TYPE_UNSPECIFIED, gceZone: String = "", databaseFlags: Map[String, String] = _root_.scala.collection.immutable.Map.empty, writableNode: Option[Node] = _root_.scala.None, nodes: Seq[Node] = _root_.scala.Seq.empty, queryInsightsConfig: Option[QueryInsightsInstanceConfig] = _root_.scala.None, readPoolConfig: Option[ReadPoolConfig] = _root_.scala.None, ipAddress: String = "", reconciling: Boolean = false, etag: String = "", annotations: Map[String, String] = _root_.scala.collection.immutable.Map.empty, clientConnectionConfig: Option[ClientConnectionConfig] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[Instance] with Product with Serializable

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

name

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}

displayName

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

uid

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.

createTime

Output only. Create time stamp

updateTime

Output only. Update time stamp

deleteTime

Output only. Delete time stamp

labels

Labels as key value pairs

state

Output only. The current serving state of the instance.

instanceType

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

machineConfig

Configurations for the machines that host the underlying database engine.

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

gceZone

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.

databaseFlags

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.

writableNode

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

nodes

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

queryInsightsConfig

Configuration for query insights.

readPoolConfig

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

ipAddress

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

reconciling

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.

etag

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

annotations

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

clientConnectionConfig

Optional. Client connection specific configurations

Annotations
@SerialVersionUID()
Source
Instance.scala
Linear Supertypes
Updatable[Instance], GeneratedMessage, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Instance
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Instance(name: String = "", displayName: String = "", uid: String = "", createTime: Option[Timestamp] = _root_.scala.None, updateTime: Option[Timestamp] = _root_.scala.None, deleteTime: Option[Timestamp] = _root_.scala.None, labels: Map[String, String] = _root_.scala.collection.immutable.Map.empty, state: State = com.google.cloud.alloydb.v1.resources.Instance.State.STATE_UNSPECIFIED, instanceType: InstanceType = com.google.cloud.alloydb.v1.resources.Instance.InstanceType.INSTANCE_TYPE_UNSPECIFIED, machineConfig: Option[MachineConfig] = _root_.scala.None, availabilityType: AvailabilityType = com.google.cloud.alloydb.v1.resources.Instance.AvailabilityType.AVAILABILITY_TYPE_UNSPECIFIED, gceZone: String = "", databaseFlags: Map[String, String] = _root_.scala.collection.immutable.Map.empty, writableNode: Option[Node] = _root_.scala.None, nodes: Seq[Node] = _root_.scala.Seq.empty, queryInsightsConfig: Option[QueryInsightsInstanceConfig] = _root_.scala.None, readPoolConfig: Option[ReadPoolConfig] = _root_.scala.None, ipAddress: String = "", reconciling: Boolean = false, etag: String = "", annotations: Map[String, String] = _root_.scala.collection.immutable.Map.empty, clientConnectionConfig: Option[ClientConnectionConfig] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)

    name

    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}

    displayName

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

    uid

    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.

    createTime

    Output only. Create time stamp

    updateTime

    Output only. Update time stamp

    deleteTime

    Output only. Delete time stamp

    labels

    Labels as key value pairs

    state

    Output only. The current serving state of the instance.

    instanceType

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

    machineConfig

    Configurations for the machines that host the underlying database engine.

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

    gceZone

    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.

    databaseFlags

    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.

    writableNode

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

    nodes

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

    queryInsightsConfig

    Configuration for query insights.

    readPoolConfig

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

    ipAddress

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

    reconciling

    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.

    etag

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

    annotations

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

    clientConnectionConfig

    Optional. Client connection specific configurations

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllAnnotations(__vs: Iterable[(String, String)]): Instance
  5. def addAllDatabaseFlags(__vs: Iterable[(String, String)]): Instance
  6. def addAllLabels(__vs: Iterable[(String, String)]): Instance
  7. def addAllNodes(__vs: Iterable[Node]): Instance
  8. def addAnnotations(__vs: (String, String)*): Instance
  9. def addDatabaseFlags(__vs: (String, String)*): Instance
  10. def addLabels(__vs: (String, String)*): Instance
  11. def addNodes(__vs: Node*): Instance
  12. val annotations: Map[String, String]
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. val availabilityType: AvailabilityType
  15. def clearAnnotations: Instance
  16. def clearClientConnectionConfig: Instance
  17. def clearCreateTime: Instance
  18. def clearDatabaseFlags: Instance
  19. def clearDeleteTime: Instance
  20. def clearLabels: Instance
  21. def clearMachineConfig: Instance
  22. def clearNodes: Instance
  23. def clearQueryInsightsConfig: Instance
  24. def clearReadPoolConfig: Instance
  25. def clearUpdateTime: Instance
  26. def clearWritableNode: Instance
  27. val clientConnectionConfig: Option[ClientConnectionConfig]
  28. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  29. def companion: Instance.type
    Definition Classes
    Instance → GeneratedMessage
  30. val createTime: Option[Timestamp]
  31. val databaseFlags: Map[String, String]
  32. val deleteTime: Option[Timestamp]
  33. def discardUnknownFields: Instance
  34. val displayName: String
  35. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. val etag: String
  37. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  38. val gceZone: String
  39. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  40. def getClientConnectionConfig: ClientConnectionConfig
  41. def getCreateTime: Timestamp
  42. def getDeleteTime: Timestamp
  43. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Instance → GeneratedMessage
  44. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Instance → GeneratedMessage
  45. def getMachineConfig: MachineConfig
  46. def getQueryInsightsConfig: QueryInsightsInstanceConfig
  47. def getReadPoolConfig: ReadPoolConfig
  48. def getUpdateTime: Timestamp
  49. def getWritableNode: Node
  50. val instanceType: InstanceType
  51. val ipAddress: String
  52. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  53. val labels: Map[String, String]
  54. val machineConfig: Option[MachineConfig]
  55. val name: String
  56. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  57. val nodes: Seq[Node]
  58. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  59. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  60. def productElementNames: Iterator[String]
    Definition Classes
    Product
  61. val queryInsightsConfig: Option[QueryInsightsInstanceConfig]
  62. val readPoolConfig: Option[ReadPoolConfig]
  63. val reconciling: Boolean
  64. def serializedSize: Int
    Definition Classes
    Instance → GeneratedMessage
  65. val state: State
  66. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  67. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  68. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  69. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  70. def toProtoString: String
    Definition Classes
    Instance → GeneratedMessage
  71. val uid: String
  72. val unknownFields: UnknownFieldSet
  73. def update(ms: (Lens[Instance, Instance]) => Mutation[Instance]*): Instance
    Definition Classes
    Updatable
  74. val updateTime: Option[Timestamp]
  75. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  76. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  77. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  78. def withAnnotations(__v: Map[String, String]): Instance
  79. def withAvailabilityType(__v: AvailabilityType): Instance
  80. def withClientConnectionConfig(__v: ClientConnectionConfig): Instance
  81. def withCreateTime(__v: Timestamp): Instance
  82. def withDatabaseFlags(__v: Map[String, String]): Instance
  83. def withDeleteTime(__v: Timestamp): Instance
  84. def withDisplayName(__v: String): Instance
  85. def withEtag(__v: String): Instance
  86. def withGceZone(__v: String): Instance
  87. def withInstanceType(__v: InstanceType): Instance
  88. def withIpAddress(__v: String): Instance
  89. def withLabels(__v: Map[String, String]): Instance
  90. def withMachineConfig(__v: MachineConfig): Instance
  91. def withName(__v: String): Instance
  92. def withNodes(__v: Seq[Node]): Instance
  93. def withQueryInsightsConfig(__v: QueryInsightsInstanceConfig): Instance
  94. def withReadPoolConfig(__v: ReadPoolConfig): Instance
  95. def withReconciling(__v: Boolean): Instance
  96. def withState(__v: State): Instance
  97. def withUid(__v: String): Instance
  98. def withUnknownFields(__v: UnknownFieldSet): Instance
  99. def withUpdateTime(__v: Timestamp): Instance
  100. def withWritableNode(__v: Node): Instance
  101. val writableNode: Option[Node]
  102. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  103. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Instance → GeneratedMessage
  104. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Updatable[Instance]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped