Class CloudSqlSettings
Settings for creating a Cloud SQL database instance.
Implements
Inherited Members
Namespace: Google.Apis.DatabaseMigrationService.v1beta1.Data
Assembly: Google.Apis.DatabaseMigrationService.v1beta1.dll
Syntax
public class CloudSqlSettings : IDirectResponseSchema
Properties
ActivationPolicy
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.
Declaration
[JsonProperty("activationPolicy")]
public virtual string ActivationPolicy { get; set; }
Property Value
Type | Description |
---|---|
string |
AutoStorageIncrease
[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.
Declaration
[JsonProperty("autoStorageIncrease")]
public virtual bool? AutoStorageIncrease { get; set; }
Property Value
Type | Description |
---|---|
bool? |
DataDiskSizeGb
The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.
Declaration
[JsonProperty("dataDiskSizeGb")]
public virtual long? DataDiskSizeGb { get; set; }
Property Value
Type | Description |
---|---|
long? |
DataDiskType
The type of storage: PD_SSD
(default) or PD_HDD
.
Declaration
[JsonProperty("dataDiskType")]
public virtual string DataDiskType { get; set; }
Property Value
Type | Description |
---|---|
string |
DatabaseFlags
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" }.
Declaration
[JsonProperty("databaseFlags")]
public virtual IDictionary<string, string> DatabaseFlags { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
DatabaseVersion
The database engine type and version.
Declaration
[JsonProperty("databaseVersion")]
public virtual string DatabaseVersion { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
IpConfig
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.
Declaration
[JsonProperty("ipConfig")]
public virtual SqlIpConfig IpConfig { get; set; }
Property Value
Type | Description |
---|---|
SqlIpConfig |
RootPassword
Input only. Initial root password.
Declaration
[JsonProperty("rootPassword")]
public virtual string RootPassword { get; set; }
Property Value
Type | Description |
---|---|
string |
RootPasswordSet
Output only. Indicates If this connection profile root password is stored.
Declaration
[JsonProperty("rootPasswordSet")]
public virtual bool? RootPasswordSet { get; set; }
Property Value
Type | Description |
---|---|
bool? |
SourceId
The Database Migration Service source connection profile ID, in the format:
projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID
Declaration
[JsonProperty("sourceId")]
public virtual string SourceId { get; set; }
Property Value
Type | Description |
---|---|
string |
StorageAutoResizeLimit
The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
Declaration
[JsonProperty("storageAutoResizeLimit")]
public virtual long? StorageAutoResizeLimit { get; set; }
Property Value
Type | Description |
---|---|
long? |
Tier
The tier (or machine type) for this instance, for example: db-n1-standard-1
(MySQL instances). For more
information, see Cloud SQL Instance Settings.
Declaration
[JsonProperty("tier")]
public virtual string Tier { get; set; }
Property Value
Type | Description |
---|---|
string |
UserLabels
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" }
.
Declaration
[JsonProperty("userLabels")]
public virtual IDictionary<string, string> UserLabels { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
Zone
The Google Cloud Platform zone where your Cloud SQL database instance is located.
Declaration
[JsonProperty("zone")]
public virtual string Zone { get; set; }
Property Value
Type | Description |
---|---|
string |