# Cloud Composer V1 API - Class Google::Cloud::Orchestration::Airflow::Service::V1::CheckUpgradeRequest (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.4 1.2.0 1.1.0 1.0.1 0.11.0 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Cloud Composer V1 API class Google::Cloud::Orchestration::Airflow::Service::V1::CheckUpgradeRequest.

Request to check whether image upgrade will succeed.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #environment

    def environment() -> ::String

**Returns**

- (::String) --- Required. The resource name of the environment to check upgrade for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

### #environment=

    def environment=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the environment to check upgrade for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
**Returns**

- (::String) --- Required. The resource name of the environment to check upgrade for, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}"

### #image_version

    def image_version() -> ::String

**Returns**

- (::String) --- 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](https://semver.org), 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](https://docs.cloud.google.com/composer/docs/concepts/versioning/composer-versions) and [versioning
  overview](https://docs.cloud.google.com/composer/docs/concepts/versioning/composer-versioning-overview).

### #image_version=

    def image_version=(value) -> ::String

**Parameter**

- **value** (::String) --- 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](https://semver.org), 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](https://docs.cloud.google.com/composer/docs/concepts/versioning/composer-versions) and [versioning
  overview](https://docs.cloud.google.com/composer/docs/concepts/versioning/composer-versioning-overview).
**Returns**

- (::String) --- 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](https://semver.org), 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](https://docs.cloud.google.com/composer/docs/concepts/versioning/composer-versions) and [versioning
  overview](https://docs.cloud.google.com/composer/docs/concepts/versioning/composer-versioning-overview).