Class: Google::Apis::ComposerV1beta1::ImageVersion

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

Image Version 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.



311
312
313
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 311

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)


297
298
299
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 297

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)


303
304
305
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 303

def is_default
  @is_default
end

#supported_python_versionsArray<String>

supported python versions Corresponds to the JSON property supportedPythonVersions

Returns:

  • (Array<String>)


309
310
311
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 309

def supported_python_versions
  @supported_python_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



316
317
318
319
320
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 316

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