Resource: PreferenceSet
The preferences that apply to all assets in a given context.
| JSON representation | 
|---|
{ "name": string, "createTime": string, "updateTime": string, "displayName": string, "description": string, "regionPreferences": { object (  | 
              
| Fields | |
|---|---|
name | 
                
                   
 Output only. Name of the PreferenceSet.  | 
              
createTime | 
                
                   
 Output only. The timestamp when the preference set was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
updateTime | 
                
                   
 Output only. The timestamp when the preference set was last updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
displayName | 
                
                   
 User-friendly display name. Maximum length is 63 characters.  | 
              
description | 
                
                   
 A description of the preference set.  | 
              
regionPreferences | 
                
                   
 Optional. Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with. If unspecified, VirtualMachinePreferences.RegionPreferences is used.  | 
              
virtualMachinePreferences | 
                
                   
 A set of preferences that applies to all virtual machines in the context.  | 
              
databasePreferences | 
                
                   
 Optional. A set of preferences that applies to all databases in the context.  | 
              
DatabasePreferences
DatabasePreferences enables you to create sets of preferences for your migrated databases.
| JSON representation | 
|---|
{ "mssqlToCloudSqlForSqlServerPreferences": { object (  | 
                
| Fields | |
|---|---|
mssqlToCloudSqlForSqlServerPreferences | 
                  
                     
 Optional. Preferences for target SQL Server on Cloud SQL when migrating from source Microsoft SQL server.  | 
                
mysqlToCloudSqlForMysqlPreferences | 
                  
                     
 Optional. Preferences for target MySQL on Cloud SQL when migrating from source MySQL.  | 
                
postgresqlToCloudSqlForPostgresqlPreferences | 
                  
                     
 Optional. Preferences for target PostgreSQL on Cloud SQL when migrating from source PostgreSQL.  | 
                
SqlServer
Preferences for SQL Server on Cloud SQL.
| JSON representation | 
|---|
{ "common": { object (  | 
                
| Fields | |
|---|---|
common | 
                  
                     
 Optional. Preferences to Cloud SQL databases.  | 
                
multithreading | 
                  
                     
 Optional. Preferences for multithreading support.  | 
                
versionType | 
                  
                     
 Optional. Edition of Microsoft SQL version that is used on a Cloud SQL for SQL server instance.  | 
                
Common
Preferences common to Cloud SQL databases.
| JSON representation | 
|---|
{ "backup": { object (  | 
                
| Fields | |
|---|---|
backup | 
                  
                     
 Optional. Preferences for database backups.  | 
                
commitmentPlan | 
                  
                     
 Optional. Commitment plan to consider when calculating costs. Only regular CUDs (not flexible) are currently available.  | 
                
zoneAvailability | 
                  
                     
 Optional. Preferred zone availability.  | 
                
sizingOptimizationStrategy | 
                  
                     
 Optional. Sizing optimization strategy of the database. Currently supported for Cloud SQL are just two values: SIZING_OPTIMIZATION_STRATEGY_MODERATE and SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE. SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED will behave like SIZING_OPTIMIZATION_STRATEGY_MODERATE.  | 
                
persistentDiskType | 
                  
                     
 Optional. Persistent disk type to use. If unspecified, a disk type is recommended based on available usage data. For SQL Server, only SSD is available. For MySQL and PostgreSQL, only STANDARD (HDD) and SSD types are available.  | 
                
edition | 
                  
                     
 Optional. Preferred Cloud SQL edition.  | 
                
Backup
Preferences for database backups.
| JSON representation | 
|---|
{
  "backupMode": enum ( | 
                
| Fields | |
|---|---|
backupMode | 
                  
                     
 Optional. Automated backup mode.  | 
                
BackupMode
Automated backup mode.
| Enums | |
|---|---|
BACKUP_MODE_UNSPECIFIED | 
                  An unspecified database backup mode. | 
BACKUP_MODE_DISABLED | 
                  Automatic backups disabled, no additional charges for storage. | 
BACKUP_MODE_ENABLED | 
                  Automatic backups enabled, there will be additional charges for storage. | 
Multithreading
Preferences for multithreading support. See https://cloud.google.com/sql/docs/sqlserver/create-instance#smt-create-instance for more details.
| Enums | |
|---|---|
MULTITHREADING_UNSPECIFIED | 
                  Same as MULTITHREADING_AUTO. | 
MULTITHREADING_DISABLED | 
                  Disable simultaneous multithreading. | 
MULTITHREADING_ENABLED | 
                  Enable simultaneous multithreading. | 
MULTITHREADING_DISABLED_WITH_COMPENSATION | 
                  Disable simultaneous multithreading and increase number of VCPUs to compensate. | 
VersionType
Edition of Microsoft SQL Server version that is used on a Cloud SQL for SQL server instance.
| Enums | |
|---|---|
VERSION_TYPE_UNSPECIFIED | 
                  Unspecified SQL Server version type. | 
VERSION_TYPE_AUTO | 
                  Version will be deduced from the source asset. | 
VERSION_TYPE_EXPRESS | 
                  Version will be one of "Express" versions. | 
VERSION_TYPE_WEB | 
                  Version will be one of "Web" versions. | 
VERSION_TYPE_STANDARD | 
                  Version will be one of "Standard" versions. | 
VERSION_TYPE_ENTERPRISE | 
                  Version will be one of "Enterprise" versions. | 
MySql
Preferences for MySQL on Cloud SQL.
| JSON representation | 
|---|
{
  "common": {
    object ( | 
                
| Fields | |
|---|---|
common | 
                  
                     
 Optional. Preferences to Cloud SQL databases.  | 
                
PostgreSql
Preferences for PostgreSQL on Cloud SQL.
| JSON representation | 
|---|
{
  "common": {
    object ( | 
                
| Fields | |
|---|---|
common | 
                  
                     
 Optional. Preferences to Cloud SQL databases.  | 
                
Methods | 
            |
|---|---|
                
 | 
              Creates a new preference set in a given project and location. | 
                
 | 
              Deletes a preference set. | 
                
 | 
              Gets the details of a preference set. | 
                
 | 
              Lists all the preference sets in a given project and location. | 
                
 | 
              Updates the parameters of a preference set. |