Class: Google::Cloud::AlloyDB::V1beta::Instance
- Inherits:
-
Object
- Object
- Google::Cloud::AlloyDB::V1beta::Instance
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/alloydb/v1beta/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: ActivationPolicy, AvailabilityType, InstanceType, State Classes: AnnotationsEntry, ClientConnectionConfig, ConnectionPoolConfig, DatabaseFlagsEntry, InstanceNetworkConfig, LabelsEntry, MachineConfig, Node, ObservabilityInstanceConfig, PscAutoConnectionConfig, PscInstanceConfig, PscInterfaceConfig, QueryInsightsInstanceConfig, ReadPoolConfig, UpdatePolicy
Instance Attribute Summary collapse
-
#activation_policy ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::ActivationPolicy
Optional.
-
#annotations ⇒ ::Google::Protobuf::Map{::String => ::String}
Annotations to allow client tools to store small amount of arbitrary data.
-
#availability_type ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::AvailabilityType
Availability type of an Instance.
-
#client_connection_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::ClientConnectionConfig
Optional.
-
#connection_pool_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::ConnectionPoolConfig
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).
-
#gca_config ⇒ ::Google::Cloud::AlloyDB::V1beta::GCAInstanceConfig
readonly
Output only.
-
#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::V1beta::GeminiInstanceConfig
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
-
#instance_type ⇒ ::Google::Cloud::AlloyDB::V1beta::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::V1beta::Instance::MachineConfig
Configurations for the machines that host the underlying database engine.
-
#name ⇒ ::String
readonly
Output only.
-
#network_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::InstanceNetworkConfig
Optional.
-
#nodes ⇒ ::Array<::Google::Cloud::AlloyDB::V1beta::Instance::Node>
readonly
Output only.
-
#observability_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::ObservabilityInstanceConfig
Configuration for observability.
-
#outbound_public_ip_addresses ⇒ ::Array<::String>
readonly
Output only.
-
#psc_instance_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::PscInstanceConfig
Optional.
-
#public_ip_address ⇒ ::String
readonly
Output only.
-
#query_insights_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::QueryInsightsInstanceConfig
Configuration for query insights.
-
#read_pool_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::ReadPoolConfig
Read pool instance configuration.
-
#reconciling ⇒ ::Boolean
readonly
Output only.
-
#satisfies_pzs ⇒ ::Boolean
readonly
Output only.
-
#state ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::State
readonly
Output only.
-
#uid ⇒ ::String
readonly
Output only.
-
#update_policy ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::UpdatePolicy
Update policy that will be applied during instance update.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#writable_node ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::Node
readonly
Output only.
Instance Attribute Details
#activation_policy ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::ActivationPolicy
Returns Optional. Specifies whether an instance needs to spin up. Once the instance
is active, the activation policy can be updated to the NEVER to stop the
instance. Likewise, the activation policy can be updated to ALWAYS to
start the instance.
There are restrictions around when an instance can/cannot be activated (for
example, a read pool instance should be stopped before stopping primary
etc.). Please refer to the API documentation for more details.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#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.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#availability_type ⇒ ::Google::Cloud::AlloyDB::V1beta::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).
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#client_connection_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::ClientConnectionConfig
Returns Optional. Client connection specific configurations.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#connection_pool_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::ConnectionPoolConfig
Returns Optional. The configuration for Managed Connection Pool (MCP).
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Create time stamp.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#database_flags ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance.
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.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#delete_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Delete time stamp.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#display_name ⇒ ::String
Returns User-settable and human-readable display name for the Instance.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#etag ⇒ ::String
Returns For Resource freshness validation (https://google.aip.dev/154).
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#gca_config ⇒ ::Google::Cloud::AlloyDB::V1beta::GCAInstanceConfig (readonly)
Returns Output only. Configuration parameters related to Gemini Cloud Assist.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 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.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#gemini_config ⇒ ::Google::Cloud::AlloyDB::V1beta::GeminiInstanceConfig
This field is deprecated and may be removed in the next major version update.
Returns Optional. Deprecated and unused. This field will be removed in the near future.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#instance_type ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::InstanceType
Returns Required. The type of the instance. Specified at creation time.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 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.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Labels as key value pairs.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#machine_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::MachineConfig
Returns Configurations for the machines that host the underlying database engine.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 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}.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#network_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::InstanceNetworkConfig
Returns Optional. Instance-level network configuration.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#nodes ⇒ ::Array<::Google::Cloud::AlloyDB::V1beta::Instance::Node> (readonly)
Returns Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#observability_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::ObservabilityInstanceConfig
Returns Configuration for observability.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#outbound_public_ip_addresses ⇒ ::Array<::String> (readonly)
Returns Output only. All outbound public IP addresses configured for the instance.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#psc_instance_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::PscInstanceConfig
Returns Optional. The configuration for Private Service Connect (PSC) for the instance.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 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.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#query_insights_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::QueryInsightsInstanceConfig
Returns Configuration for query insights.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#read_pool_config ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::ReadPoolConfig
Returns Read pool instance configuration. This is required if the value of instanceType is READ_POOL.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 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.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#satisfies_pzs ⇒ ::Boolean (readonly)
Returns Output only. Reserved for future use.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#state ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::State (readonly)
Returns Output only. The current serving state of the instance.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 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.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#update_policy ⇒ ::Google::Cloud::AlloyDB::V1beta::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.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Update time stamp.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |
#writable_node ⇒ ::Google::Cloud::AlloyDB::V1beta::Instance::Node (readonly)
Returns Output only. This is set for the read-write VM of the PRIMARY instance only.
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 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 881 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. # @!attribute [rw] machine_type # @return [::String] # Machine type of the VM instance. E.g. "n2-highmem-4", # "n2-highmem-8", "c4a-highmem-4-lssd". # cpu_count must match the number of vCPUs in the machine type. 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 ephemeral, they can change during # update, failover, autohealing and resize operations. # @!attribute [r] zone_id # @return [::String] # Output only. The Compute Engine zone of the VM e.g. "us-central1-b". # @!attribute [r] id # @return [::String] # Output only. The identifier of the VM e.g. # "test-read-0601-407e52be-ms3l". # @!attribute [r] ip # @return [::String] # Output only. The private IP address of the VM e.g. "10.57.0.34". # @!attribute [r] state # @return [::String] # Output only. 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 internal 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". # @!attribute [rw] assistive_experiences_enabled # @return [::Boolean] # Whether assistive experiences are enabled for this AlloyDB instance. 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::V1beta::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::V1beta::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 # Configuration for setting up PSC service automation. Consumer projects in # the configs will be allowlisted automatically for the instance. # @!attribute [rw] consumer_project # @return [::String] # The consumer project to which the PSC service automation endpoint will # be created. # @!attribute [rw] consumer_network # @return [::String] # The consumer network for the PSC service automation, example: # "projects/vpc-host-project/global/networks/default". # The consumer network might be hosted a different project than the # consumer project. # @!attribute [r] ip_address # @return [::String] # Output only. The IP address of the PSC service automation endpoint. # @!attribute [r] status # @return [::String] # Output only. The status of the PSC service automation connection. # Possible values: # "STATE_UNSPECIFIED" - An invalid state as the default case. # "ACTIVE" - The connection has been created successfully. # "FAILED" - The connection is not functional since some resources on the # connection fail to be created. # "CREATING" - The connection is being created. # "DELETING" - The connection is being deleted. # "CREATE_REPAIRING" - The connection is being repaired to complete # creation. # "DELETE_REPAIRING" - The connection is being repaired to complete # deletion. # @!attribute [r] consumer_network_status # @return [::String] # Output only. The status of the service connection policy. # Possible values: # "STATE_UNSPECIFIED" - Default state, when Connection Map is created # initially. # "VALID" - Set when policy and map configuration is valid, and their # matching can lead to allowing creation of PSC Connections subject to # other constraints like connections limit. # "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for # this network and Service Class # "POLICY_LIMIT_REACHED" - Service Connection Policy limit reached for # this network and Service Class # "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance # project is not in AllowedGoogleProducersResourceHierarchyLevels of the # matching ServiceConnectionPolicy. class PscAutoConnectionConfig 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::V1beta::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. # @!attribute [rw] psc_auto_connections # @return [::Array<::Google::Cloud::AlloyDB::V1beta::Instance::PscAutoConnectionConfig>] # Optional. Configurations for setting up PSC service automation. 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::V1beta::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. # @!attribute [r] network # @return [::String] # Output only. The resource link for the VPC network in which instance # resources are created and from which they are accessible via Private IP. # This will be the same value as the parent cluster's network. It is # specified in the form: // # `projects/{project_number}/global/networks/{network_id}`. # @!attribute [rw] allocated_ip_range_override # @return [::String] # Optional. Name of the allocated IP range for the private IP AlloyDB # instance, for example: "google-managed-services-default". If set, the # instance IPs will be created from this allocated range and will override # the IP range used by the parent cluster. The range name must comply with # [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically, # the name must be 1-63 characters long and match the regular expression # [a-z]([-a-z0-9]*[a-z0-9])?. 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 # Configuration for Managed Connection Pool (MCP). # @!attribute [rw] enabled # @return [::Boolean] # Optional. Whether to enable Managed Connection Pool (MCP). # @!attribute [rw] flags # @return [::Google::Protobuf::Map{::String => ::String}] # Optional. Connection Pool flags, as a list of "key": "value" pairs. # @!attribute [r] pooler_count # @return [::Integer] # Output only. The number of running poolers per instance. class ConnectionPoolConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class FlagsEntry 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 # Specifies whether an instance needs to spin up. module ActivationPolicy # The policy is not specified. ACTIVATION_POLICY_UNSPECIFIED = 0 # The instance is running. ALWAYS = 1 # The instance is not running. NEVER = 2 end end |