Class: Google::Apis::ComposerV1::ImageVersion

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

Overview

ImageVersion information

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) ⇒ ImageVersion

Returns a new instance of ImageVersion



191
192
193
# File 'generated/google/apis/composer_v1/classes.rb', line 191

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

Instance Attribute Details

#image_version_idString

The string identifier of the ImageVersion, in the form: "composer-x.y.z-airflow-a.b(.c)" Corresponds to the JSON property imageVersionId

Returns:

  • (String)


177
178
179
# File 'generated/google/apis/composer_v1/classes.rb', line 177

def image_version_id
  @image_version_id
end

#is_defaultBoolean Also known as: is_default?

Whether this is the default ImageVersion used by Composer during environment creation if no input ImageVersion is specified. Corresponds to the JSON property isDefault

Returns:

  • (Boolean)


183
184
185
# File 'generated/google/apis/composer_v1/classes.rb', line 183

def is_default
  @is_default
end

#supported_python_versionsArray<String>

supported python versions Corresponds to the JSON property supportedPythonVersions

Returns:

  • (Array<String>)


189
190
191
# File 'generated/google/apis/composer_v1/classes.rb', line 189

def supported_python_versions
  @supported_python_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



196
197
198
199
200
# File 'generated/google/apis/composer_v1/classes.rb', line 196

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