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.



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

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)


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

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)


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

def is_default
  @is_default
end

#supported_python_versionsArray<String>

supported python versions Corresponds to the JSON property supportedPythonVersions

Returns:

  • (Array<String>)


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

def supported_python_versions
  @supported_python_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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