Class: Google::Cloud::AlloyDB::V1::Instance

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/alloydb/v1/resources.rb

Overview

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

Defined Under Namespace

Modules: AvailabilityType, InstanceType, State Classes: AnnotationsEntry, DatabaseFlagsEntry, LabelsEntry, MachineConfig, Node, QueryInsightsInstanceConfig, ReadPoolConfig

Instance Attribute Summary collapse

Instance Attribute Details

#annotations::Google::Protobuf::Map{::String => ::String}

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

Returns:

  • (::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



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#availability_type::Google::Cloud::AlloyDB::V1::Instance::AvailabilityType

Returns Availability type of an Instance. Defaults to REGIONAL for both primary and read instances. Note that primary and read instances can have different availability types.

Returns:



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#create_time::Google::Protobuf::Timestamp (readonly)

Returns Output only. Create time stamp.

Returns:



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#database_flags::Google::Protobuf::Map{::String => ::String}

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

Returns:

  • (::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.



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#delete_time::Google::Protobuf::Timestamp (readonly)

Returns Output only. Delete time stamp.

Returns:



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#display_name::String

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

Returns:

  • (::String)

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



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#etag::String

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

Returns:



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#gce_zone::String

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

Returns:

  • (::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.



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#instance_type::Google::Cloud::AlloyDB::V1::Instance::InstanceType

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

Returns:



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#ip_address::String (readonly)

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

Returns:

  • (::String)

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



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#labels::Google::Protobuf::Map{::String => ::String}

Returns Labels as key value pairs.

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

    Labels as key value pairs



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#machine_config::Google::Cloud::AlloyDB::V1::Instance::MachineConfig

Returns Configurations for the machines that host the underlying database engine.

Returns:



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#name::String (readonly)

Returns 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}.

Returns:

  • (::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}


567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#nodes::Array<::Google::Cloud::AlloyDB::V1::Instance::Node> (readonly)

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

Returns:



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#query_insights_config::Google::Cloud::AlloyDB::V1::Instance::QueryInsightsInstanceConfig

Returns Configuration for query insights.

Returns:



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#read_pool_config::Google::Cloud::AlloyDB::V1::Instance::ReadPoolConfig

Returns Read pool specific config.

Returns:



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#reconciling::Boolean (readonly)

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

Returns:

  • (::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.



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#state::Google::Cloud::AlloyDB::V1::Instance::State (readonly)

Returns Output only. The current serving state of the instance.

Returns:



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#uid::String (readonly)

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

Returns:

  • (::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.



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#update_time::Google::Protobuf::Timestamp (readonly)

Returns Output only. Update time stamp.

Returns:



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end

#writable_node::Google::Cloud::AlloyDB::V1::Instance::Node (readonly)

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

Returns:



567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'proto_docs/google/cloud/alloydb/v1/resources.rb', line 567

class Instance
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # MachineConfig describes the configuration of a machine.
  # @!attribute [rw] cpu_count
  #   @return [::Integer]
  #     The number of CPU's in the VM instance.
  class MachineConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Details of a single node in the instance.
  # Nodes in an AlloyDB instance are ephemereal, they can change during
  # update, failover, autohealing and resize operations.
  # @!attribute [rw] zone_id
  #   @return [::String]
  #     The Compute Engine zone of the VM e.g. "us-central1-b".
  # @!attribute [rw] id
  #   @return [::String]
  #     The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".
  # @!attribute [rw] ip
  #   @return [::String]
  #     The private IP address of the VM e.g. "10.57.0.34".
  # @!attribute [rw] state
  #   @return [::String]
  #     Determined by state of the compute VM and postgres-service health.
  #     Compute VM state can have values listed in
  #     https://cloud.google.com/compute/docs/instances/instance-life-cycle and
  #     postgres-service health can have values: HEALTHY and UNHEALTHY.
  class Node
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # QueryInsights Instance specific configuration.
  # @!attribute [rw] record_application_tags
  #   @return [::Boolean]
  #     Record application tags for an instance.
  #     This flag is turned "on" by default.
  # @!attribute [rw] record_client_address
  #   @return [::Boolean]
  #     Record client address for an instance. Client address is PII information.
  #     This flag is turned "on" by default.
  # @!attribute [rw] query_string_length
  #   @return [::Integer]
  #     Query string length. The default value is 1024.
  #     Any integer between 256 and 4500 is considered valid.
  # @!attribute [rw] query_plans_per_minute
  #   @return [::Integer]
  #     Number of query execution plans captured by Insights per minute
  #     for all queries combined. The default value is 5.
  #     Any integer between 0 and 20 is considered valid.
  class QueryInsightsInstanceConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Configuration for a read pool instance.
  # @!attribute [rw] node_count
  #   @return [::Integer]
  #     Read capacity, i.e. number of nodes in a read pool instance.
  class ReadPoolConfig
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class DatabaseFlagsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AnnotationsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Instance State
  module State
    # The state of the instance is unknown.
    STATE_UNSPECIFIED = 0

    # The instance is active and running.
    READY = 1

    # The instance is stopped. Instance name and IP resources are preserved.
    STOPPED = 2

    # The instance is being created.
    CREATING = 3

    # The instance is being deleted.
    DELETING = 4

    # The instance is down for maintenance.
    MAINTENANCE = 5

    # The creation of the instance failed or a fatal error occurred during
    # an operation on the instance.
    # Note: Instances in this state would tried to be auto-repaired. And
    # Customers should be able to restart, update or delete these instances.
    FAILED = 6

    # Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
    # index unused in case that state also needs to exposed via consumer apis
    # in future.
    # The instance has been configured to sync data from some other source.
    BOOTSTRAPPING = 8

    # The instance is being promoted.
    PROMOTING = 9
  end

  # Type of an Instance
  module InstanceType
    # The type of the instance is unknown.
    INSTANCE_TYPE_UNSPECIFIED = 0

    # PRIMARY instances support read and write operations.
    PRIMARY = 1

    # READ POOL instances support read operations only. Each read pool instance
    # consists of one or more homogeneous nodes.
    #  * Read pool of size 1 can only have zonal availability.
    #  * Read pools with node count of 2 or more can have regional
    #    availability (nodes are present in 2 or more zones in a region).
    READ_POOL = 2

    # SECONDARY instances support read operations only. SECONDARY instance
    # is a cross-region read replica
    SECONDARY = 3
  end

  # The Availability type of an instance. Potential values:
  #   <br><b>ZONAL</b>: The instance serves data from only one zone.
  # Outages in that zone affect instance availability.
  #   <br><b>REGIONAL</b>: The instance can serve data from more than one zone
  #   in a region (it is highly available).
  module AvailabilityType
    # This is an unknown Availability type.
    AVAILABILITY_TYPE_UNSPECIFIED = 0

    # Zonal available instance.
    ZONAL = 1

    # Regional (or Highly) available instance.
    REGIONAL = 2
  end
end