Class: Google::Apis::ComposerV1::CheckUpgradeRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/composer_v1/classes.rb,
lib/google/apis/composer_v1/representations.rb,
lib/google/apis/composer_v1/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.



105
106
107
# File 'lib/google/apis/composer_v1/classes.rb', line 105

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

Instance Attribute Details

#image_versionString

Optional. 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]+(-preview\.[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 image version is a full semantic version, or an alias in the form of major version number or latest. When an alias is provided, the server replaces it with the current Cloud Composer version that satisfies the alias. The Apache Airflow portion of the image version is a full semantic version that points to one of the supported Apache Airflow versions, or an alias in the form of only major or major.minor versions specified. When an alias is provided, the server replaces it with the latest Apache Airflow version that satisfies the alias and is supported in the given Cloud Composer version. In all cases, the resolved image version is stored in the same field. See also version list and versioning overview. Corresponds to the JSON property imageVersion

Returns:

  • (String)


103
104
105
# File 'lib/google/apis/composer_v1/classes.rb', line 103

def image_version
  @image_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



110
111
112
# File 'lib/google/apis/composer_v1/classes.rb', line 110

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