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.



344
345
346
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 344

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)


330
331
332
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 330

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)


336
337
338
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 336

def is_default
  @is_default
end

#supported_python_versionsArray<String>

supported python versions Corresponds to the JSON property supportedPythonVersions

Returns:

  • (Array<String>)


342
343
344
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 342

def supported_python_versions
  @supported_python_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



349
350
351
352
353
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 349

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