Class: Google::Apis::ComposerV1beta1::DatabaseConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/composer_v1beta1/classes.rb,
generated/google/apis/composer_v1beta1/representations.rb,
generated/google/apis/composer_v1beta1/representations.rb

Overview

The configuration of Cloud SQL instance that is used by the Apache Airflow software.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DatabaseConfig

Returns a new instance of DatabaseConfig.



67
68
69
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 67

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

Instance Attribute Details

#machine_typeString

Optional. Cloud SQL tier used by Airflow database. If not specified, db-n1-standard-2 will be used. Corresponds to the JSON property machineType

Returns:

  • (String)


65
66
67
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 65

def machine_type
  @machine_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



72
73
74
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 72

def update!(**args)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
end