Class: Google::Apis::ComposerV1beta1::CheckUpgradeRequest

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

Overview

Request to check whether image upgrade will succeed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CheckUpgradeRequest

Returns a new instance of CheckUpgradeRequest.



76
77
78
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 76

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

Instance Attribute Details

#image_versionString

The version of the software running in the environment. This encapsulates both the version of Cloud Composer functionality and the version of Apache Airflow. It must match the regular expression composer-([0-9]+\.[0-9]+\.[0-9]+|latest)- airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?. When used as input, the server also checks if the provided version is supported and denies the request for an unsupported version. The Cloud Composer portion of the version is a semantic version or latest. When the patch version is omitted, the current Cloud Composer patch version is selected. When latest is provided instead of an explicit version number, the server replaces latest with the current Cloud Composer version and stores that version number in the same field. The portion of the image version that follows airflow- is an official Apache Airflow repository release name. See also Version List. Corresponds to the JSON property imageVersion

Returns:

  • (String)


74
75
76
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 74

def image_version
  @image_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



81
82
83
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 81

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