DatabaseInstanceSettings

data class DatabaseInstanceSettings(val activationPolicy: String? = null, val activeDirectoryConfig: DatabaseInstanceSettingsActiveDirectoryConfig? = null, val advancedMachineFeatures: DatabaseInstanceSettingsAdvancedMachineFeatures? = null, val availabilityType: String? = null, val backupConfiguration: DatabaseInstanceSettingsBackupConfiguration? = null, val collation: String? = null, val connectorEnforcement: String? = null, val dataCacheConfig: DatabaseInstanceSettingsDataCacheConfig? = null, val databaseFlags: List<DatabaseInstanceSettingsDatabaseFlag>? = null, val deletionProtectionEnabled: Boolean? = null, val denyMaintenancePeriod: DatabaseInstanceSettingsDenyMaintenancePeriod? = null, val diskAutoresize: Boolean? = null, val diskAutoresizeLimit: Int? = null, val diskSize: Int? = null, val diskType: String? = null, val edition: String? = null, val insightsConfig: DatabaseInstanceSettingsInsightsConfig? = null, val ipConfiguration: DatabaseInstanceSettingsIpConfiguration? = null, val locationPreference: DatabaseInstanceSettingsLocationPreference? = null, val maintenanceWindow: DatabaseInstanceSettingsMaintenanceWindow? = null, val passwordValidationPolicy: DatabaseInstanceSettingsPasswordValidationPolicy? = null, val pricingPlan: String? = null, val sqlServerAuditConfig: DatabaseInstanceSettingsSqlServerAuditConfig? = null, val tier: String, val timeZone: String? = null, val userLabels: Map<String, String>? = null, val version: Int? = null)

Constructors

Link copied to clipboard
constructor(activationPolicy: String? = null, activeDirectoryConfig: DatabaseInstanceSettingsActiveDirectoryConfig? = null, advancedMachineFeatures: DatabaseInstanceSettingsAdvancedMachineFeatures? = null, availabilityType: String? = null, backupConfiguration: DatabaseInstanceSettingsBackupConfiguration? = null, collation: String? = null, connectorEnforcement: String? = null, dataCacheConfig: DatabaseInstanceSettingsDataCacheConfig? = null, databaseFlags: List<DatabaseInstanceSettingsDatabaseFlag>? = null, deletionProtectionEnabled: Boolean? = null, denyMaintenancePeriod: DatabaseInstanceSettingsDenyMaintenancePeriod? = null, diskAutoresize: Boolean? = null, diskAutoresizeLimit: Int? = null, diskSize: Int? = null, diskType: String? = null, edition: String? = null, insightsConfig: DatabaseInstanceSettingsInsightsConfig? = null, ipConfiguration: DatabaseInstanceSettingsIpConfiguration? = null, locationPreference: DatabaseInstanceSettingsLocationPreference? = null, maintenanceWindow: DatabaseInstanceSettingsMaintenanceWindow? = null, passwordValidationPolicy: DatabaseInstanceSettingsPasswordValidationPolicy? = null, pricingPlan: String? = null, sqlServerAuditConfig: DatabaseInstanceSettingsSqlServerAuditConfig? = null, tier: String, timeZone: String? = null, userLabels: Map<String, String>? = null, version: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON_DEMAND.

Link copied to clipboard

The availability type of the Cloud SQL instance, high availability (REGIONAL) or single zone (ZONAL).' For all instances, ensure that settings.backup_configuration.enabled is set to true. For MySQL instances, ensure that settings.backup_configuration.binary_log_enabled is set to true. For Postgres and SQL Server instances, ensure that settings.backup_configuration.point_in_time_recovery_enabled is set to true. Defaults to ZONAL.

Link copied to clipboard
val collation: String? = null

The name of server instance collation.

Link copied to clipboard

Specifies if connections must use Cloud SQL connectors.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val diskAutoresize: Boolean? = null

Enables auto-resizing of the storage size. Defaults to true.

Link copied to clipboard

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

Link copied to clipboard
val diskSize: Int? = null

The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.

Link copied to clipboard
val diskType: String? = null

The type of data disk: PD_SSD or PD_HDD. Defaults to PD_SSD.

Link copied to clipboard
val edition: String? = null

The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.

Link copied to clipboard
val pricingPlan: String? = null

Pricing plan for this instance, can only be PER_USE.

Link copied to clipboard

The machine type to use. See tiers for more details and supported versions. Postgres supports only shared-core machine types, and custom machine types such as db-custom-2-13312. See the Custom Machine Type Documentation to learn about specifying custom machine types.

Link copied to clipboard
val timeZone: String? = null

The time_zone to be used by the database engine (supported only for SQL Server), in SQL Server timezone format.

Link copied to clipboard
val userLabels: Map<String, String>? = null

A set of key/value user label pairs to assign to the instance.

Link copied to clipboard
val version: Int? = null