[default: ON] If 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.
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" }.
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.
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).
The Database Migration Service source connection profile ID,
in the format:
projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID
The tier (or machine type) for this instance, for example:
db-n1-standard-1 (MySQL instances) or
db-custom-1-3840 (PostgreSQL instances).
For more information, see
Cloud SQL Instance
Settings.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eCloudSqlSettings\u003c/code\u003e class for the Database Migration v1 API is 2.5.0, with multiple previous versions available, ranging from 1.0.0 to 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCloudSqlSettings\u003c/code\u003e is used to define settings for creating a Cloud SQL database instance and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eCloudSqlSettings\u003c/code\u003e include options for managing the database instance's availability (\u003ccode\u003eAvailabilityType\u003c/code\u003e), storage (\u003ccode\u003eDataDiskSizeGb\u003c/code\u003e, \u003ccode\u003eDataDiskType\u003c/code\u003e), activation policy (\u003ccode\u003eActivationPolicy\u003c/code\u003e), and IP configuration (\u003ccode\u003eIpConfig\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCloudSqlSettings\u003c/code\u003e includes the ability to manage database flags, allowing for customization of instance behavior at startup.\u003c/p\u003e\n"],["\u003cp\u003eThe class also supports setting a root password, using a KMS key for encryption, and utilizing user-defined labels for resource management.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class CloudSqlSettings (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CloudSqlSettings)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.CloudSqlSettings)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.CloudSqlSettings)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.CloudSqlSettings)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.CloudSqlSettings)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.CloudSqlSettings)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.CloudSqlSettings)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.CloudSqlSettings)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.CloudSqlSettings) \n\n public sealed class CloudSqlSettings : IMessage\u003cCloudSqlSettings\u003e, IEquatable\u003cCloudSqlSettings\u003e, IDeepCloneable\u003cCloudSqlSettings\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class CloudSqlSettings.\n\nSettings for creating a Cloud SQL database instance. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CloudSqlSettings \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CloudSqlSettings](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CloudSqlSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CloudSqlSettings](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CloudSqlSettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CloudSqlSettings](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.CloudSqlSettings), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudDms.V1](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudDms.V1.dll\n\nConstructors\n------------\n\n### CloudSqlSettings()\n\n public CloudSqlSettings()\n\n### CloudSqlSettings(CloudSqlSettings)\n\n public CloudSqlSettings(CloudSqlSettings other)\n\nProperties\n----------\n\n### ActivationPolicy\n\n public CloudSqlSettings.Types.SqlActivationPolicy ActivationPolicy { get; set; }\n\nThe activation policy specifies when the instance is activated; it is\napplicable only when the instance state is 'RUNNABLE'. Valid values:\n\n'ALWAYS': The instance is on, and remains so even in\nthe absence of connection requests.\n\n`NEVER`: The instance is off; it is not activated, even if a\nconnection request arrives.\n\n### AutoStorageIncrease\n\n public bool? AutoStorageIncrease { get; set; }\n\n\\[default: ON\\] If you enable this setting, Cloud SQL checks your available\nstorage every 30 seconds. If the available storage falls below a threshold\nsize, Cloud SQL automatically adds additional storage capacity. If the\navailable storage repeatedly falls below the threshold size, Cloud SQL\ncontinues to add storage until it reaches the maximum of 30 TB.\n\n### AvailabilityType\n\n public CloudSqlSettings.Types.SqlAvailabilityType AvailabilityType { get; set; }\n\nOptional. Availability type. Potential values:\n\n- `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data availability.\n- `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available).\n\n### CmekKeyName\n\n public string CmekKeyName { get; set; }\n\nThe KMS key name used for the csql instance.\n\n### Collation\n\n public string Collation { get; set; }\n\nThe Cloud SQL default instance level collation.\n\n### DataDiskSizeGb\n\n public long? DataDiskSizeGb { get; set; }\n\nThe storage capacity available to the database, in GB.\nThe minimum (and default) size is 10GB.\n\n### DataDiskType\n\n public CloudSqlSettings.Types.SqlDataDiskType DataDiskType { get; set; }\n\nThe type of storage: `PD_SSD` (default) or `PD_HDD`.\n\n### DatabaseFlags\n\n public MapField\u003cstring, string\u003e DatabaseFlags { get; }\n\nThe database flags passed to the Cloud SQL instance at startup.\nAn object containing a list of \"key\": value pairs.\nExample: { \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }.\n\n### DatabaseVersion\n\n public CloudSqlSettings.Types.SqlDatabaseVersion DatabaseVersion { get; set; }\n\nThe database engine type and version.\n\n### Edition\n\n public CloudSqlSettings.Types.Edition Edition { get; set; }\n\nOptional. The edition of the given Cloud SQL instance.\n\n### IpConfig\n\n public SqlIpConfig IpConfig { get; set; }\n\nThe settings for IP Management. This allows to enable or disable the\ninstance IP and manage which external networks can connect to the instance.\nThe IPv4 address cannot be disabled.\n\n### RootPassword\n\n public string RootPassword { get; set; }\n\nInput only. Initial root password.\n\n### RootPasswordSet\n\n public bool RootPasswordSet { get; set; }\n\nOutput only. Indicates If this connection profile root password is stored.\n\n### SecondaryZone\n\n public string SecondaryZone { get; set; }\n\nOptional. The Google Cloud Platform zone where the failover Cloud SQL\ndatabase instance is located. Used when the Cloud SQL database availability\ntype is REGIONAL (i.e. multiple zones / highly available).\n\n### SourceId\n\n public string SourceId { get; set; }\n\nThe Database Migration Service source connection profile ID,\nin the format:\n`projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID`\n\n### StorageAutoResizeLimit\n\n public long? StorageAutoResizeLimit { get; set; }\n\nThe maximum size to which storage capacity can be automatically increased.\nThe default value is 0, which specifies that there is no limit.\n\n### Tier\n\n public string Tier { get; set; }\n\nThe tier (or machine type) for this instance, for example:\n`db-n1-standard-1` (MySQL instances) or\n`db-custom-1-3840` (PostgreSQL instances).\nFor more information, see\n[Cloud SQL Instance\nSettings](https://cloud.google.com/sql/docs/mysql/instance-settings).\n\n### UserLabels\n\n public MapField\u003cstring, string\u003e UserLabels { get; }\n\nThe resource labels for a Cloud SQL instance to use to annotate any related\nunderlying resources such as Compute Engine VMs.\nAn object containing a list of \"key\": \"value\" pairs.\n\nExample: `{ \"name\": \"wrench\", \"mass\": \"18kg\", \"count\": \"3\" }`.\n\n### Zone\n\n public string Zone { get; set; }\n\nThe Google Cloud Platform zone where your Cloud SQL database instance is\nlocated."]]