Class: Google::Apis::MigrationcenterV1alpha1::DatabasePreferencesCloudSqlCommon
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::DatabasePreferencesCloudSqlCommon
- 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
-
#backup ⇒ Google::Apis::MigrationcenterV1alpha1::DatabasePreferencesCloudSqlCommonBackup
Preferences for database backups.
-
#commitment_plan ⇒ String
Optional.
-
#edition ⇒ String
Optional.
-
#persistent_disk_type ⇒ String
Optional.
-
#sizing_optimization_strategy ⇒ String
Optional.
-
#zone_availability ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatabasePreferencesCloudSqlCommon
constructor
A new instance of DatabasePreferencesCloudSqlCommon.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DatabasePreferencesCloudSqlCommon
Returns a new instance of DatabasePreferencesCloudSqlCommon.
2081 2082 2083 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2081 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup ⇒ Google::Apis::MigrationcenterV1alpha1::DatabasePreferencesCloudSqlCommonBackup
Preferences for database backups.
Corresponds to the JSON property backup
2046 2047 2048 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2046 def backup @backup end |
#commitment_plan ⇒ String
Optional. Commitment plan to consider when calculating costs. Only regular
CUDs (not flexible) are currently available.
Corresponds to the JSON property commitmentPlan
2052 2053 2054 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2052 def commitment_plan @commitment_plan end |
#edition ⇒ String
Optional. Preferred Cloud SQL edition.
Corresponds to the JSON property edition
2057 2058 2059 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2057 def edition @edition end |
#persistent_disk_type ⇒ String
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
2065 2066 2067 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2065 def persistent_disk_type @persistent_disk_type end |
#sizing_optimization_strategy ⇒ String
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
2074 2075 2076 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2074 def sizing_optimization_strategy @sizing_optimization_strategy end |
#zone_availability ⇒ String
Optional. Preferred zone availability.
Corresponds to the JSON property zoneAvailability
2079 2080 2081 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2079 def zone_availability @zone_availability end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2086 2087 2088 2089 2090 2091 2092 2093 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2086 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 |