Class: Google::Cloud::AlloyDB::V1alpha::Instance
- Inherits:
-
Object
- Object
- Google::Cloud::AlloyDB::V1alpha::Instance
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/alloydb/v1alpha/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, ClientConnectionConfig, DatabaseFlagsEntry, InstanceNetworkConfig, LabelsEntry, MachineConfig, Node, ObservabilityInstanceConfig, PscInstanceConfig, PscInterfaceConfig, QueryInsightsInstanceConfig, ReadPoolConfig, UpdatePolicy
Instance Attribute Summary collapse
-
#annotations ⇒ ::Google::Protobuf::Map{::String => ::String}
Annotations to allow client tools to store small amount of arbitrary data.
-
#availability_type ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::AvailabilityType
Availability type of an Instance.
-
#client_connection_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::ClientConnectionConfig
Optional.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#database_flags ⇒ ::Google::Protobuf::Map{::String => ::String}
Database flags.
-
#delete_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#display_name ⇒ ::String
User-settable and human-readable display name for the Instance.
-
#etag ⇒ ::String
For Resource freshness validation (https://google.aip.dev/154).
-
#gce_zone ⇒ ::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.
-
#gemini_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::GeminiInstanceConfig
Optional.
-
#instance_type ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceType
Required.
-
#ip_address ⇒ ::String
readonly
Output only.
-
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Labels as key value pairs.
-
#machine_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::MachineConfig
Configurations for the machines that host the underlying database engine.
-
#name ⇒ ::String
readonly
Output only.
-
#network_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig
Optional.
-
#nodes ⇒ ::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::Node>
readonly
Output only.
-
#observability_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::ObservabilityInstanceConfig
Configuration for observability.
-
#outbound_public_ip_addresses ⇒ ::Array<::String>
readonly
Output only.
-
#psc_instance_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::PscInstanceConfig
Optional.
-
#public_ip_address ⇒ ::String
readonly
Output only.
-
#query_insights_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::QueryInsightsInstanceConfig
Configuration for query insights.
-
#read_pool_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::ReadPoolConfig
Read pool instance configuration.
-
#reconciling ⇒ ::Boolean
readonly
Output only.
-
#satisfies_pzi ⇒ ::Boolean
readonly
Output only.
-
#satisfies_pzs ⇒ ::Boolean
readonly
Output only.
-
#state ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::State
readonly
Output only.
-
#uid ⇒ ::String
readonly
Output only.
-
#update_policy ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy
Update policy that will be applied during instance update.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#writable_node ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::Node
readonly
Output only.
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.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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::V1alpha::Instance::AvailabilityType
Returns Availability type of an Instance. If empty, defaults to REGIONAL for primary instances. For read pools, availability_type is always UNSPECIFIED. Instances in the read pools are evenly distributed across available zones within the region (i.e. read pools with more than one node will have a node in at least two zones).
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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 |
#client_connection_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::ClientConnectionConfig
Returns Optional. Client connection specific configurations.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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).
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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 |
#gemini_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::GeminiInstanceConfig
Returns Optional. Configuration parameters related to the Gemini in Databases add-on.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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::V1alpha::Instance::InstanceType
Returns Required. The type of the instance. Specified at creation time.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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::V1alpha::Instance::MachineConfig
Returns Configurations for the machines that host the underlying database engine.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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}.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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 |
#network_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig
Returns Optional. Instance-level network configuration.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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::V1alpha::Instance::Node> (readonly)
Returns Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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 |
#observability_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::ObservabilityInstanceConfig
Returns Configuration for observability.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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 |
#outbound_public_ip_addresses ⇒ ::Array<::String> (readonly)
Returns Output only. All outbound public IP addresses configured for the instance.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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 |
#psc_instance_config ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::PscInstanceConfig
Returns Optional. The configuration for Private Service Connect (PSC) for the instance.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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 |
#public_ip_address ⇒ ::String (readonly)
Returns Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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::V1alpha::Instance::QueryInsightsInstanceConfig
Returns Configuration for query insights.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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::V1alpha::Instance::ReadPoolConfig
Returns Read pool instance configuration. This is required if the value of instanceType is READ_POOL.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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 |
#satisfies_pzi ⇒ ::Boolean (readonly)
Returns Output only. Reserved for future use.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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 |
#satisfies_pzs ⇒ ::Boolean (readonly)
Returns Output only. Reserved for future use.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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::V1alpha::Instance::State (readonly)
Returns Output only. The current serving state of the instance.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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_policy ⇒ ::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy
Returns Update policy that will be applied during instance update. This field is not persisted when you update the instance. To use a non-default update policy, you must specify explicitly specify the value in each update request.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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::V1alpha::Instance::Node (readonly)
Returns Output only. This is set for the read-write VM of the PRIMARY instance only.
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'proto_docs/google/cloud/alloydb/v1alpha/resources.rb', line 821 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 # Observability Instance specific configuration. # @!attribute [rw] enabled # @return [::Boolean] # Observability feature status for an instance. # This flag is turned "off" by default. # @!attribute [rw] preserve_comments # @return [::Boolean] # Preserve comments in query string for an instance. # This flag is turned "off" by default. # @!attribute [rw] track_wait_events # @return [::Boolean] # Track wait events during query execution for an instance. # This flag is turned "on" by default but tracking is enabled only after # observability enabled flag is also turned on. # @!attribute [r] track_wait_event_types # @return [::Boolean] # Output only. Track wait event types during query execution for an # instance. This flag is turned "on" by default but tracking is enabled # only after observability enabled flag is also turned on. This is # read-only flag and only modifiable by producer API. # @!attribute [rw] max_query_string_length # @return [::Integer] # Query string length. The default value is 10k. # @!attribute [rw] record_application_tags # @return [::Boolean] # Record application tags for an instance. # This flag is turned "off" by default. # @!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 200. # Any integer between 0 to 200 is considered valid. # @!attribute [rw] track_active_queries # @return [::Boolean] # Track actively running queries on the instance. # If not set, this flag is "off" by default. # @!attribute [rw] track_client_address # @return [::Boolean] # Track client address for an instance. # If not set, default value is "off". class ObservabilityInstanceConfig 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 # Policy to be used while updating the instance. # @!attribute [rw] mode # @return [::Google::Cloud::AlloyDB::V1alpha::Instance::UpdatePolicy::Mode] # Mode for updating the instance. class UpdatePolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specifies the available modes of update. module Mode # Mode is unknown. MODE_UNSPECIFIED = 0 # Least disruptive way to apply the update. DEFAULT = 1 # Performs a forced update when applicable. This will be fast but may # incur a downtime. FORCE_APPLY = 2 end end # Client connection configuration # @!attribute [rw] require_connectors # @return [::Boolean] # Optional. Configuration to enforce connectors only (ex: AuthProxy) # connections to the database. # @!attribute [rw] ssl_config # @return [::Google::Cloud::AlloyDB::V1alpha::SslConfig] # Optional. SSL configuration option for this instance. class ClientConnectionConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Configuration for setting up a PSC interface to enable outbound # connectivity. # @!attribute [rw] network_attachment_resource # @return [::String] # The network attachment resource created in the consumer network to which # the PSC interface will be linked. This is of the format: # "projects/$\\{CONSUMER_PROJECT}/regions/$\\{REGION}/networkAttachments/$\\{NETWORK_ATTACHMENT_NAME}". # The network attachment must be in the same region as the instance. class PscInterfaceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # PscInstanceConfig contains PSC related configuration at an # instance level. # @!attribute [r] service_attachment_link # @return [::String] # Output only. The service attachment created when Private # Service Connect (PSC) is enabled for the instance. # The name of the resource will be in the format of # `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>` # @!attribute [rw] allowed_consumer_projects # @return [::Array<::String>] # Optional. List of consumer projects that are allowed to create # PSC endpoints to service-attachments to this instance. # @!attribute [r] psc_dns_name # @return [::String] # Output only. The DNS name of the instance for PSC connectivity. # Name convention: <uid>.<uid>.<region>.alloydb-psc.goog # @!attribute [rw] psc_interface_configs # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::PscInterfaceConfig>] # Optional. Configurations for setting up PSC interfaces attached to the # instance which are used for outbound connectivity. Only primary instances # can have PSC interface attached. Currently we only support 0 or 1 PSC # interface. class PscInstanceConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Metadata related to instance-level network configuration. # @!attribute [rw] authorized_external_networks # @return [::Array<::Google::Cloud::AlloyDB::V1alpha::Instance::InstanceNetworkConfig::AuthorizedNetwork>] # Optional. A list of external network authorized to access this instance. # @!attribute [rw] enable_public_ip # @return [::Boolean] # Optional. Enabling public ip for the instance. # @!attribute [rw] enable_outbound_public_ip # @return [::Boolean] # Optional. Enabling an outbound public IP address to support a database # server sending requests out into the internet. class InstanceNetworkConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # AuthorizedNetwork contains metadata for an authorized network. # @!attribute [rw] cidr_range # @return [::String] # CIDR range for one authorzied network of the instance. class AuthorizedNetwork include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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: # # - ZONAL: The instance serves data from only one zone. Outages in that # zone affect instance availability. # - REGIONAL: 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 |