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, 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 specific config.

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

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, 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 specific config.

    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

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