class Google::Apis::DatamigrationV1beta1::CloudSqlSettings

Settings for creating a Cloud SQL database instance.

Attributes

activation_policy[RW]

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. Corresponds to the JSON property `activationPolicy` @return [String]

auto_storage_increase[RW]
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. Corresponds to the JSON property `autoStorageIncrease` @return [Boolean]

auto_storage_increase?[RW]
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. Corresponds to the JSON property `autoStorageIncrease` @return [Boolean]

data_disk_size_gb[RW]

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB. Corresponds to the JSON property `dataDiskSizeGb` @return [Fixnum]

data_disk_type[RW]

The type of storage: `PD_SSD` (default) or `PD_HDD`. Corresponds to the JSON property `dataDiskType` @return [String]

database_flags[RW]

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” `. Corresponds to the JSON property `databaseFlags` @return [Hash<String,String>]

database_version[RW]

The database engine type and version. Corresponds to the JSON property `databaseVersion` @return [String]

ip_config[RW]

IP Management configuration. Corresponds to the JSON property `ipConfig` @return [Google::Apis::DatamigrationV1beta1::SqlIpConfig]

root_password[RW]

Input only. Initial root password. Corresponds to the JSON property `rootPassword` @return [String]

root_password_set[RW]

Output only. Indicates If this connection profile root password is stored. Corresponds to the JSON property `rootPasswordSet` @return [Boolean]

root_password_set?[RW]

Output only. Indicates If this connection profile root password is stored. Corresponds to the JSON property `rootPasswordSet` @return [Boolean]

source_id[RW]

The Database Migration Service source connection profile ID, in the format: ` projects/my_project_name/locations/us-central1/connectionProfiles/ connection_profile_ID` Corresponds to the JSON property `sourceId` @return [String]

storage_auto_resize_limit[RW]

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit. Corresponds to the JSON property `storageAutoResizeLimit` @return [Fixnum]

tier[RW]

The tier (or machine type) for this instance, for example: `db-n1-standard-1` ( MySQL instances). For more information, see [Cloud SQL Instance Settings]( cloud.google.com/sql/docs/mysql/instance-settings). Corresponds to the JSON property `tier` @return [String]

user_labels[RW]

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” “. Corresponds to the JSON property `userLabels` @return [Hash<String,String>]

zone[RW]

The Google Cloud Platform zone where your Cloud SQL datdabse instance is located. Corresponds to the JSON property `zone` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datamigration_v1beta1/classes.rb, line 315
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datamigration_v1beta1/classes.rb, line 320
def update!(**args)
  @activation_policy = args[:activation_policy] if args.key?(:activation_policy)
  @auto_storage_increase = args[:auto_storage_increase] if args.key?(:auto_storage_increase)
  @data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
  @data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
  @database_flags = args[:database_flags] if args.key?(:database_flags)
  @database_version = args[:database_version] if args.key?(:database_version)
  @ip_config = args[:ip_config] if args.key?(:ip_config)
  @root_password = args[:root_password] if args.key?(:root_password)
  @root_password_set = args[:root_password_set] if args.key?(:root_password_set)
  @source_id = args[:source_id] if args.key?(:source_id)
  @storage_auto_resize_limit = args[:storage_auto_resize_limit] if args.key?(:storage_auto_resize_limit)
  @tier = args[:tier] if args.key?(:tier)
  @user_labels = args[:user_labels] if args.key?(:user_labels)
  @zone = args[:zone] if args.key?(:zone)
end