CloudSqlSettingsResponse class
Settings for creating a Cloud SQL database instance.
Constructors
-
CloudSqlSettingsResponse({required Input<
String> activationPolicy, required Input<bool> autoStorageIncrease, required Input<String> availabilityType, required Input<String> cmekKeyName, required Input<String> collation, required Input<DataCacheConfigResponse> dataCacheConfig, required Input<String> dataDiskSizeGb, required Input<String> dataDiskType, required Input<Map< databaseFlags, required Input<String, String> >String> databaseVersion, required Input<String> edition, required Input<SqlIpConfigResponse> ipConfig, required Input<String> rootPassword, required Input<bool> rootPasswordSet, required Input<String> secondaryZone, required Input<String> sourceId, required Input<String> storageAutoResizeLimit, required Input<String> tier, required Input<Map< userLabels, required Input<String, String> >String> zone}) -
Creates a new CloudSqlSettingsResponse.
activationPolicyThe activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values: 'ALWAYS': The instance is on, and remains so even in the absence of connection requests.NEVER: The instance is off; it is not activated, even if a connection request arrives. autoStorageIncreasedefault: ONIf you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.availabilityTypeOptional. Availability type. Potential values: *ZONAL: The instance serves data from only one zone. Outages in that zone affect data availability. *REGIONAL: The instance can serve data from more than one zone in a region (it is highly available).cmekKeyNameThe KMS key name used for the csql instance.collationThe Cloud SQL default instance level collation.dataCacheConfigOptional. Data cache is an optional feature available for Cloud SQL for MySQL Enterprise Plus edition only. For more information on data cache, see Data cache overview in Cloud SQL documentation.dataDiskSizeGbThe storage capacity available to the database, in GB. The minimum (and default) size is 10GB.dataDiskTypeThe type of storage:PD_SSD(default) orPD_HDD.databaseFlagsThe database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.databaseVersionThe database engine type and version.editionOptional. The edition of the given Cloud SQL instance.ipConfigThe settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.rootPasswordInput only. Initial root password.rootPasswordSetIndicates If this connection profile root password is stored.secondaryZoneOptional. The Google Cloud Platform zone where the failover Cloud SQL database instance is located. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).sourceIdThe Database Migration Service source connection profile ID, in the format:projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_IDstorageAutoResizeLimitThe maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.tierThe tier (or machine type) for this instance, for example:db-n1-standard-1(MySQL instances) ordb-custom-1-3840(PostgreSQL instances). For more information, see Cloud SQL Instance Settings.userLabelsThe resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example:{ "name": "wrench", "mass": "18kg", "count": "3" }.zoneThe Google Cloud Platform zone where your Cloud SQL database instance is located.const -
CloudSqlSettingsResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
activationPolicy
→ Input<
String> -
The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values: 'ALWAYS': The instance is on, and remains so even in the absence of connection requests.
NEVER: The instance is off; it is not activated, even if a connection request arrives.final -
autoStorageIncrease
→ Input<
bool> -
default: ONIf you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.final -
availabilityType
→ Input<
String> -
Optional. Availability type. Potential values: *
ZONAL: The instance serves data from only one zone. Outages in that zone affect data availability. *REGIONAL: The instance can serve data from more than one zone in a region (it is highly available).final -
cmekKeyName
→ Input<
String> -
The KMS key name used for the csql instance.
final
-
collation
→ Input<
String> -
The Cloud SQL default instance level collation.
final
-
databaseFlags
→ Input<
Map< String, String> > -
The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
final
-
databaseVersion
→ Input<
String> -
The database engine type and version.
final
-
dataCacheConfig
→ Input<
DataCacheConfigResponse> -
Optional. Data cache is an optional feature available for Cloud SQL for MySQL Enterprise Plus edition only. For more information on data cache, see Data cache overview in Cloud SQL documentation.
final
-
dataDiskSizeGb
→ Input<
String> -
The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.
final
-
dataDiskType
→ Input<
String> -
The type of storage:
PD_SSD(default) orPD_HDD.final -
edition
→ Input<
String> -
Optional. The edition of the given Cloud SQL instance.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ipConfig
→ Input<
SqlIpConfigResponse> -
The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.
final
-
rootPassword
→ Input<
String> -
Input only. Initial root password.
final
-
rootPasswordSet
→ Input<
bool> -
Indicates If this connection profile root password is stored.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secondaryZone
→ Input<
String> -
Optional. The Google Cloud Platform zone where the failover Cloud SQL database instance is located. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).
final
-
sourceId
→ Input<
String> -
The Database Migration Service source connection profile ID, in the format:
projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_IDfinal -
storageAutoResizeLimit
→ Input<
String> -
The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
final
-
tier
→ Input<
String> -
The tier (or machine type) for this instance, for example:
db-n1-standard-1(MySQL instances) ordb-custom-1-3840(PostgreSQL instances). For more information, see Cloud SQL Instance Settings.final -
userLabels
→ Input<
Map< String, String> > -
The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example:
{ "name": "wrench", "mass": "18kg", "count": "3" }.final -
zone
→ Input<
String> -
The Google Cloud Platform zone where your Cloud SQL database instance is located.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited