Class: Google::Apis::DatamigrationV1beta1::CloudSqlSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datamigration_v1beta1/classes.rb,
lib/google/apis/datamigration_v1beta1/representations.rb,
lib/google/apis/datamigration_v1beta1/representations.rb

Overview

Settings for creating a Cloud SQL database instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSqlSettings

Returns a new instance of CloudSqlSettings.



345
346
347
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 345

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#activation_policyString

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

Returns:

  • (String)


260
261
262
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 260

def activation_policy
  @activation_policy
end

#auto_storage_increaseBoolean Also known as: auto_storage_increase?

[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

Returns:

  • (Boolean)


269
270
271
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 269

def auto_storage_increase
  @auto_storage_increase
end

#data_disk_size_gbFixnum

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB. Corresponds to the JSON property dataDiskSizeGb

Returns:

  • (Fixnum)


276
277
278
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 276

def data_disk_size_gb
  @data_disk_size_gb
end

#data_disk_typeString

The type of storage: PD_SSD (default) or PD_HDD. Corresponds to the JSON property dataDiskType

Returns:

  • (String)


281
282
283
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 281

def data_disk_type
  @data_disk_type
end

#database_flagsHash<String,String>

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

Returns:

  • (Hash<String,String>)


288
289
290
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 288

def database_flags
  @database_flags
end

#database_versionString

The database engine type and version. Corresponds to the JSON property databaseVersion

Returns:

  • (String)


293
294
295
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 293

def database_version
  @database_version
end

#ip_configGoogle::Apis::DatamigrationV1beta1::SqlIpConfig

IP Management configuration. Corresponds to the JSON property ipConfig



298
299
300
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 298

def ip_config
  @ip_config
end

#root_passwordString

Input only. Initial root password. Corresponds to the JSON property rootPassword

Returns:

  • (String)


303
304
305
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 303

def root_password
  @root_password
end

#root_password_setBoolean Also known as: root_password_set?

Output only. Indicates If this connection profile root password is stored. Corresponds to the JSON property rootPasswordSet

Returns:

  • (Boolean)


308
309
310
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 308

def root_password_set
  @root_password_set
end

#source_idString

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

Returns:

  • (String)


316
317
318
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 316

def source_id
  @source_id
end

#storage_auto_resize_limitFixnum

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

Returns:

  • (Fixnum)


322
323
324
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 322

def storage_auto_resize_limit
  @storage_auto_resize_limit
end

#tierString

The tier (or machine type) for this instance, for example: db-n1-standard-1 ( MySQL instances). For more information, see Cloud SQL Instance Settings. Corresponds to the JSON property tier

Returns:

  • (String)


329
330
331
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 329

def tier
  @tier
end

#user_labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


337
338
339
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 337

def user_labels
  @user_labels
end

#zoneString

The Google Cloud Platform zone where your Cloud SQL database instance is located. Corresponds to the JSON property zone

Returns:

  • (String)


343
344
345
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 343

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 350

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