Class: Google::Apis::MigrationcenterV1alpha1::DatabasePreferencesCloudSqlCommon

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

Overview

Preferences common to Cloud SQL databases.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatabasePreferencesCloudSqlCommon

Returns a new instance of DatabasePreferencesCloudSqlCommon.



1882
1883
1884
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1882

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

Instance Attribute Details

#backupGoogle::Apis::MigrationcenterV1alpha1::DatabasePreferencesCloudSqlCommonBackup

Preferences for database backups. Corresponds to the JSON property backup



1847
1848
1849
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1847

def backup
  @backup
end

#commitment_planString

Optional. Commitment plan to consider when calculating costs. Only regular CUDs (not flexible) are currently available. Corresponds to the JSON property commitmentPlan

Returns:

  • (String)


1853
1854
1855
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1853

def commitment_plan
  @commitment_plan
end

#editionString

Optional. Cloud SQL edition. For SQL Server, only Enterprise is available. Corresponds to the JSON property edition

Returns:

  • (String)


1858
1859
1860
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1858

def edition
  @edition
end

#persistent_disk_typeString

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. Corresponds to the JSON property persistentDiskType

Returns:

  • (String)


1866
1867
1868
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1866

def persistent_disk_type
  @persistent_disk_type
end

#sizing_optimization_strategyString

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. Corresponds to the JSON property sizingOptimizationStrategy

Returns:

  • (String)


1875
1876
1877
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1875

def sizing_optimization_strategy
  @sizing_optimization_strategy
end

#zone_availabilityString

Optional. Preferred zone availability. Corresponds to the JSON property zoneAvailability

Returns:

  • (String)


1880
1881
1882
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1880

def zone_availability
  @zone_availability
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1887
1888
1889
1890
1891
1892
1893
1894
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1887

def update!(**args)
  @backup = args[:backup] if args.key?(:backup)
  @commitment_plan = args[:commitment_plan] if args.key?(:commitment_plan)
  @edition = args[:edition] if args.key?(:edition)
  @persistent_disk_type = args[:persistent_disk_type] if args.key?(:persistent_disk_type)
  @sizing_optimization_strategy = args[:sizing_optimization_strategy] if args.key?(:sizing_optimization_strategy)
  @zone_availability = args[:zone_availability] if args.key?(:zone_availability)
end